index
int64 0
66.5k
| func_name
stringlengths 2
5.36k
| func_dep
stringlengths 16
2.19k
| func
stringlengths 8
55.3k
| test
stringlengths 0
7.07k
| opt
stringclasses 4
values | language
stringclasses 2
values | asm
stringlengths 0
45.4k
| ida_asm
stringlengths 0
44.7k
| ida_pseudo
stringlengths 0
44.3k
| ghidra_asm
stringlengths 0
49.1k
| ghidra_pseudo
stringlengths 0
64.7k
|
---|---|---|---|---|---|---|---|---|---|---|---|
62,300 |
binding_system_register_lambda
|
tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c
|
uint64_t binding_system_register_lambda(BindingSystem* system, uint64_t scope_id) {
assert(system != NULL);
// Check if we need to resize the lambda table
if (system->lambda_table.count >= system->lambda_table.capacity) {
// Calculate new capacity
size_t new_capacity = system->lambda_table.capacity == 0 ? 8 : system->lambda_table.capacity * 2;
// Allocate new arrays
uint64_t* new_ids = arena_alloc(system->arena, sizeof(uint64_t) * new_capacity);
uint64_t* new_scope_ids = arena_alloc(system->arena, sizeof(uint64_t) * new_capacity);
uint64_t* new_environment_ids = arena_alloc(system->arena, sizeof(uint64_t) * new_capacity);
if (!new_ids || !new_scope_ids || !new_environment_ids) {
return 0;
}
// Copy old data
for (size_t i = 0; i < system->lambda_table.count; i++) {
new_ids[i] = system->lambda_table.ids[i];
new_scope_ids[i] = system->lambda_table.scope_ids[i];
new_environment_ids[i] = system->lambda_table.environment_ids[i];
}
// Update lambda table
system->lambda_table.ids = new_ids;
system->lambda_table.scope_ids = new_scope_ids;
system->lambda_table.environment_ids = new_environment_ids;
system->lambda_table.capacity = new_capacity;
}
// Create new lambda
uint64_t lambda_id = system->next_lambda_id++;
// Add to lambda table
system->lambda_table.ids[system->lambda_table.count] = lambda_id;
system->lambda_table.scope_ids[system->lambda_table.count] = scope_id;
system->lambda_table.environment_ids[system->lambda_table.count] = 0; // No environment yet
system->lambda_table.count++;
// Associate lambda with scope if it's a lambda scope
if (system->scope_stack.types && system->scope_stack.lambda_ids) {
for (size_t i = 0; i < system->scope_stack.count; i++) {
if (system->scope_stack.ids[i] == scope_id &&
system->scope_stack.types[i] == SCOPE_LAMBDA) {
system->scope_stack.lambda_ids[i] = lambda_id;
break;
}
}
}
return lambda_id;
}
|
O3
|
c
|
binding_system_register_lambda:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x15365
movq %rsi, %rbx
movq %rdi, %r14
movq 0xc8(%rdi), %rdx
movq 0xd0(%rdi), %rax
cmpq %rax, %rdx
jae 0x1520b
movq 0xb0(%r14), %r15
movq 0xb8(%r14), %r12
movq 0xc0(%r14), %rax
jmp 0x152d5
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x8, %ebp
cmovneq %rcx, %rbp
movq (%r14), %rdi
leaq (,%rbp,8), %r13
movq %r13, %rsi
callq 0x32d3
movq %rax, %r15
movq (%r14), %rdi
movq %r13, %rsi
callq 0x32d3
movq %rax, %r12
movq (%r14), %rdi
movq %r13, %rsi
callq 0x32d3
testq %r15, %r15
setne %cl
testq %r12, %r12
setne %dl
andb %cl, %dl
testq %rax, %rax
setne %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x152b0
cmpq $0x0, 0xc8(%r14)
je 0x152b7
movq 0xb0(%r14), %rcx
movq 0xb8(%r14), %rsi
movq 0xc0(%r14), %rdi
xorl %r8d, %r8d
movq (%rcx,%r8,8), %rdx
movq %rdx, (%r15,%r8,8)
movq (%rsi,%r8,8), %rdx
movq %rdx, (%r12,%r8,8)
movq (%rdi,%r8,8), %rdx
movq %rdx, (%rax,%r8,8)
incq %r8
movq 0xc8(%r14), %rdx
cmpq %rdx, %r8
jb 0x15287
jmp 0x152b9
xorl %ecx, %ecx
jmp 0x15353
xorl %edx, %edx
movq %r15, 0xb0(%r14)
movq %r12, 0xb8(%r14)
movq %rax, 0xc0(%r14)
movq %rbp, 0xd0(%r14)
movq 0x128(%r14), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x128(%r14)
movq %rcx, (%r15,%rdx,8)
movq 0xc8(%r14), %rdx
movq %rbx, (%r12,%rdx,8)
movq 0xc8(%r14), %rdx
movq $0x0, (%rax,%rdx,8)
incq 0xc8(%r14)
movq 0x90(%r14), %rax
testq %rax, %rax
je 0x15353
movq 0x98(%r14), %rdx
testq %rdx, %rdx
je 0x15353
movq 0xa0(%r14), %rsi
testq %rsi, %rsi
je 0x15353
movq 0x80(%r14), %r8
xorl %edi, %edi
cmpq %rbx, (%r8,%rdi,8)
jne 0x15345
cmpl $0x2, (%rax,%rdi,4)
je 0x1534f
incq %rdi
cmpq %rdi, %rsi
jne 0x15339
jmp 0x15353
movq %rcx, (%rdx,%rdi,8)
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x60c5(%rip), %rdi # 0x1b431
leaq 0xbf26(%rip), %rsi # 0x21299
leaq 0xbf86(%rip), %rcx # 0x21300
movl $0x14, %edx
callq 0x2180
|
binding_system_register_lambda:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
test rdi, rdi
jz loc_15365
mov rbx, rsi
mov r14, rdi
mov rdx, [rdi+0C8h]
mov rax, [rdi+0D0h]
cmp rdx, rax
jnb short loc_1520B
mov r15, [r14+0B0h]
mov r12, [r14+0B8h]
mov rax, [r14+0C0h]
jmp loc_152D5
loc_1520B:
lea rcx, [rax+rax]
test rax, rax
mov ebp, 8
cmovnz rbp, rcx
mov rdi, [r14]
lea r13, ds:0[rbp*8]
mov rsi, r13
call arena_alloc
mov r15, rax
mov rdi, [r14]
mov rsi, r13
call arena_alloc
mov r12, rax
mov rdi, [r14]
mov rsi, r13
call arena_alloc
test r15, r15
setnz cl
test r12, r12
setnz dl
and dl, cl
test rax, rax
setnz cl
and cl, dl
cmp cl, 1
jnz short loc_152B0
cmp qword ptr [r14+0C8h], 0
jz short loc_152B7
mov rcx, [r14+0B0h]
mov rsi, [r14+0B8h]
mov rdi, [r14+0C0h]
xor r8d, r8d
loc_15287:
mov rdx, [rcx+r8*8]
mov [r15+r8*8], rdx
mov rdx, [rsi+r8*8]
mov [r12+r8*8], rdx
mov rdx, [rdi+r8*8]
mov [rax+r8*8], rdx
inc r8
mov rdx, [r14+0C8h]
cmp r8, rdx
jb short loc_15287
jmp short loc_152B9
loc_152B0:
xor ecx, ecx
jmp loc_15353
loc_152B7:
xor edx, edx
loc_152B9:
mov [r14+0B0h], r15
mov [r14+0B8h], r12
mov [r14+0C0h], rax
mov [r14+0D0h], rbp
loc_152D5:
mov rcx, [r14+128h]
lea rsi, [rcx+1]
mov [r14+128h], rsi
mov [r15+rdx*8], rcx
mov rdx, [r14+0C8h]
mov [r12+rdx*8], rbx
mov rdx, [r14+0C8h]
mov qword ptr [rax+rdx*8], 0
inc qword ptr [r14+0C8h]
mov rax, [r14+90h]
test rax, rax
jz short loc_15353
mov rdx, [r14+98h]
test rdx, rdx
jz short loc_15353
mov rsi, [r14+0A0h]
test rsi, rsi
jz short loc_15353
mov r8, [r14+80h]
xor edi, edi
loc_15339:
cmp [r8+rdi*8], rbx
jnz short loc_15345
cmp dword ptr [rax+rdi*4], 2
jz short loc_1534F
loc_15345:
inc rdi
cmp rsi, rdi
jnz short loc_15339
jmp short loc_15353
loc_1534F:
mov [rdx+rdi*8], rcx
loc_15353:
mov rax, rcx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_15365:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aUint64TBinding_7; "uint64_t binding_system_register_lambda"...
mov edx, 14h
call ___assert_fail
|
long long binding_system_register_lambda(long long *a1, long long a2)
{
unsigned long long v4; // rdx
unsigned long long v5; // rax
long long v6; // r15
long long v7; // r12
long long v8; // rax
long long v9; // rbp
long long v10; // rcx
long long v11; // rsi
long long v12; // rdi
unsigned long long v13; // r8
long long v14; // rcx
long long v15; // rax
long long v16; // rdx
long long v17; // rsi
long long v18; // rdi
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c",
20LL,
"uint64_t binding_system_register_lambda(BindingSystem *, uint64_t)");
v4 = a1[25];
v5 = a1[26];
if ( v4 >= v5 )
{
v9 = 8LL;
if ( v5 )
v9 = 2 * v5;
v6 = arena_alloc(*a1, 8 * v9);
v7 = arena_alloc(*a1, 8 * v9);
v8 = arena_alloc(*a1, 8 * v9);
if ( v6 == 0 || v7 == 0 || v8 == 0 )
return 0LL;
if ( a1[25] )
{
v10 = a1[22];
v11 = a1[23];
v12 = a1[24];
v13 = 0LL;
do
{
*(_QWORD *)(v6 + 8 * v13) = *(_QWORD *)(v10 + 8 * v13);
*(_QWORD *)(v7 + 8 * v13) = *(_QWORD *)(v11 + 8 * v13);
*(_QWORD *)(v8 + 8 * v13) = *(_QWORD *)(v12 + 8 * v13);
++v13;
v4 = a1[25];
}
while ( v13 < v4 );
}
else
{
v4 = 0LL;
}
a1[22] = v6;
a1[23] = v7;
a1[24] = v8;
a1[26] = v9;
}
else
{
v6 = a1[22];
v7 = a1[23];
v8 = a1[24];
}
v14 = a1[37];
a1[37] = v14 + 1;
*(_QWORD *)(v6 + 8 * v4) = v14;
*(_QWORD *)(v7 + 8 * a1[25]) = a2;
*(_QWORD *)(v8 + 8 * a1[25]++) = 0LL;
v15 = a1[18];
if ( v15 )
{
v16 = a1[19];
if ( v16 )
{
v17 = a1[20];
if ( v17 )
{
v18 = 0LL;
while ( *(_QWORD *)(a1[16] + 8 * v18) != a2 || *(_DWORD *)(v15 + 4 * v18) != 2 )
{
if ( v17 == ++v18 )
return v14;
}
*(_QWORD *)(v16 + 8 * v18) = v14;
}
}
}
return v14;
}
|
binding_system_register_lambda:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x00115365
MOV RBX,RSI
MOV R14,RDI
MOV RDX,qword ptr [RDI + 0xc8]
MOV RAX,qword ptr [RDI + 0xd0]
CMP RDX,RAX
JNC 0x0011520b
MOV R15,qword ptr [R14 + 0xb0]
MOV R12,qword ptr [R14 + 0xb8]
MOV RAX,qword ptr [R14 + 0xc0]
JMP 0x001152d5
LAB_0011520b:
LEA RCX,[RAX + RAX*0x1]
TEST RAX,RAX
MOV EBP,0x8
CMOVNZ RBP,RCX
MOV RDI,qword ptr [R14]
LEA R13,[RBP*0x8]
MOV RSI,R13
CALL 0x001032d3
MOV R15,RAX
MOV RDI,qword ptr [R14]
MOV RSI,R13
CALL 0x001032d3
MOV R12,RAX
MOV RDI,qword ptr [R14]
MOV RSI,R13
CALL 0x001032d3
TEST R15,R15
SETNZ CL
TEST R12,R12
SETNZ DL
AND DL,CL
TEST RAX,RAX
SETNZ CL
AND CL,DL
CMP CL,0x1
JNZ 0x001152b0
CMP qword ptr [R14 + 0xc8],0x0
JZ 0x001152b7
MOV RCX,qword ptr [R14 + 0xb0]
MOV RSI,qword ptr [R14 + 0xb8]
MOV RDI,qword ptr [R14 + 0xc0]
XOR R8D,R8D
LAB_00115287:
MOV RDX,qword ptr [RCX + R8*0x8]
MOV qword ptr [R15 + R8*0x8],RDX
MOV RDX,qword ptr [RSI + R8*0x8]
MOV qword ptr [R12 + R8*0x8],RDX
MOV RDX,qword ptr [RDI + R8*0x8]
MOV qword ptr [RAX + R8*0x8],RDX
INC R8
MOV RDX,qword ptr [R14 + 0xc8]
CMP R8,RDX
JC 0x00115287
JMP 0x001152b9
LAB_001152b0:
XOR ECX,ECX
JMP 0x00115353
LAB_001152b7:
XOR EDX,EDX
LAB_001152b9:
MOV qword ptr [R14 + 0xb0],R15
MOV qword ptr [R14 + 0xb8],R12
MOV qword ptr [R14 + 0xc0],RAX
MOV qword ptr [R14 + 0xd0],RBP
LAB_001152d5:
MOV RCX,qword ptr [R14 + 0x128]
LEA RSI,[RCX + 0x1]
MOV qword ptr [R14 + 0x128],RSI
MOV qword ptr [R15 + RDX*0x8],RCX
MOV RDX,qword ptr [R14 + 0xc8]
MOV qword ptr [R12 + RDX*0x8],RBX
MOV RDX,qword ptr [R14 + 0xc8]
MOV qword ptr [RAX + RDX*0x8],0x0
INC qword ptr [R14 + 0xc8]
MOV RAX,qword ptr [R14 + 0x90]
TEST RAX,RAX
JZ 0x00115353
MOV RDX,qword ptr [R14 + 0x98]
TEST RDX,RDX
JZ 0x00115353
MOV RSI,qword ptr [R14 + 0xa0]
TEST RSI,RSI
JZ 0x00115353
MOV R8,qword ptr [R14 + 0x80]
XOR EDI,EDI
LAB_00115339:
CMP qword ptr [R8 + RDI*0x8],RBX
JNZ 0x00115345
CMP dword ptr [RAX + RDI*0x4],0x2
JZ 0x0011534f
LAB_00115345:
INC RDI
CMP RSI,RDI
JNZ 0x00115339
JMP 0x00115353
LAB_0011534f:
MOV qword ptr [RDX + RDI*0x8],RCX
LAB_00115353:
MOV RAX,RCX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00115365:
LEA RDI,[0x11b431]
LEA RSI,[0x121299]
LEA RCX,[0x121300]
MOV EDX,0x14
CALL 0x00102180
|
long binding_system_register_lambda(int8 *param_1,long param_2)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
long lVar5;
ulong uVar6;
long lVar7;
long lVar8;
ulong uVar9;
if (param_1 == (int8 *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c"
,0x14,"uint64_t binding_system_register_lambda(BindingSystem *, uint64_t)");
}
uVar6 = param_1[0x19];
uVar9 = param_1[0x1a];
if (uVar6 < uVar9) {
lVar4 = param_1[0x16];
lVar5 = param_1[0x17];
lVar8 = param_1[0x18];
}
else {
lVar7 = 8;
if (uVar9 != 0) {
lVar7 = uVar9 * 2;
}
lVar8 = lVar7 * 8;
lVar4 = arena_alloc(*param_1,lVar8);
lVar5 = arena_alloc(*param_1,lVar8);
lVar8 = arena_alloc(*param_1,lVar8);
if (lVar8 == 0 || (lVar5 == 0 || lVar4 == 0)) {
return 0;
}
if (param_1[0x19] == 0) {
uVar6 = 0;
}
else {
lVar1 = param_1[0x16];
lVar2 = param_1[0x17];
lVar3 = param_1[0x18];
uVar9 = 0;
do {
*(int8 *)(lVar4 + uVar9 * 8) = *(int8 *)(lVar1 + uVar9 * 8);
*(int8 *)(lVar5 + uVar9 * 8) = *(int8 *)(lVar2 + uVar9 * 8);
*(int8 *)(lVar8 + uVar9 * 8) = *(int8 *)(lVar3 + uVar9 * 8);
uVar9 = uVar9 + 1;
uVar6 = param_1[0x19];
} while (uVar9 < uVar6);
}
param_1[0x16] = lVar4;
param_1[0x17] = lVar5;
param_1[0x18] = lVar8;
param_1[0x1a] = lVar7;
}
lVar7 = param_1[0x25];
param_1[0x25] = lVar7 + 1;
*(long *)(lVar4 + uVar6 * 8) = lVar7;
*(long *)(lVar5 + param_1[0x19] * 8) = param_2;
*(int8 *)(lVar8 + param_1[0x19] * 8) = 0;
param_1[0x19] = param_1[0x19] + 1;
if (((param_1[0x12] != 0) && (param_1[0x13] != 0)) && (param_1[0x14] != 0)) {
lVar8 = 0;
do {
if ((*(long *)(param_1[0x10] + lVar8 * 8) == param_2) &&
(*(int *)(param_1[0x12] + lVar8 * 4) == 2)) {
*(long *)(param_1[0x13] + lVar8 * 8) = lVar7;
return lVar7;
}
lVar8 = lVar8 + 1;
} while (param_1[0x14] != lVar8);
}
return lVar7;
}
|
|
62,301 |
ma_apply_undo_key_insert
|
eloqsql/storage/maria/ma_key_recover.c
|
my_bool _ma_apply_undo_key_insert(MARIA_HA *info, LSN undo_lsn,
const uchar *header, uint length)
{
LSN lsn;
my_bool res;
uint keynr;
uchar key_buff[MARIA_MAX_KEY_BUFF];
MARIA_SHARE *share= info->s;
MARIA_KEY key;
my_off_t new_root;
struct st_msg_to_write_hook_for_undo_key msg;
DBUG_ENTER("_ma_apply_undo_key_insert");
share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS |
STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
keynr= key_nr_korr(header);
length-= KEY_NR_STORE_SIZE;
/* We have to copy key as _ma_ck_real_delete() may change it */
memcpy(key_buff, header + KEY_NR_STORE_SIZE, length);
DBUG_DUMP("key_buff", key_buff, length);
new_root= share->state.key_root[keynr];
/*
Change the key to an internal structure.
It's safe to have SEARCH_USER_KEY_HAS_TRANSID even if there isn't
a transaction id, as ha_key_cmp() will stop comparison when key length
is reached.
For index with transid flag, the ref_length of the key is not correct.
This should however be safe as long as this key is only used for
comparsion against other keys (not for packing or for read-next etc as
in this case we use data_length + ref_length, which is correct.
*/
key.keyinfo= share->keyinfo + keynr;
key.data= key_buff;
key.data_length= length - share->rec_reflength;
key.ref_length= share->rec_reflength;
key.flag= SEARCH_USER_KEY_HAS_TRANSID;
res= ((share->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) ?
maria_rtree_real_delete(info, &key, &new_root) :
_ma_ck_real_delete(info, &key, &new_root));
if (res)
_ma_mark_file_crashed(share);
msg.root= &share->state.key_root[keynr];
msg.value= new_root;
msg.keynr= keynr;
if (_ma_write_clr(info, undo_lsn, *msg.root == msg.value ?
LOGREC_UNDO_KEY_INSERT : LOGREC_UNDO_KEY_INSERT_WITH_ROOT,
0, 0, &lsn, (void*) &msg))
res= 1;
_ma_fast_unlock_key_del(info);
_ma_unpin_all_pages_and_finalize_row(info, lsn);
DBUG_RETURN(res);
}
|
O3
|
c
|
ma_apply_undo_key_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa48, %rsp # imm = 0xA48
movl %ecx, %r12d
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r15
orl $0x1b1, 0x170(%r15) # imm = 0x1B1
movq %rsi, -0xa20(%rbp)
movzbl (%rdx), %r14d
decl %r12d
leaq 0x1(%rdx), %rsi
leaq -0xa10(%rbp), %r13
movl $0x9d3, %ecx # imm = 0x9D3
movq %r13, %rdi
movq %r12, %rdx
callq 0x29410
movq 0x118(%r15), %rax
movq (%rax,%r14,8), %rax
movq %rax, -0xa18(%rbp)
movq 0x570(%r15), %rax
imulq $0x118, %r14, %rcx # imm = 0x118
leaq (%rax,%rcx), %rdx
movq %rdx, -0xa40(%rbp)
movq %r13, -0xa48(%rbp)
movl 0x740(%r15), %edx
subl %edx, %r12d
movl %r12d, -0xa38(%rbp)
movl %edx, -0xa34(%rbp)
movl $0x80000, -0xa30(%rbp) # imm = 0x80000
cmpb $0x2, 0xa4(%rax,%rcx)
jne 0x40ff9
leaq -0xa48(%rbp), %rsi
leaq -0xa18(%rbp), %rdx
movq %rbx, %rdi
callq 0x6267f
jmp 0x4100f
leaq -0xa48(%rbp), %rsi
leaq -0xa18(%rbp), %rdx
movq %rbx, %rdi
callq 0x59050
movl %eax, %r12d
testb %al, %al
je 0x4101e
movq %r15, %rdi
callq 0x42c36
movq 0x118(%r15), %rax
leaq (%rax,%r14,8), %rax
leaq -0xa68(%rbp), %rcx
movq %rax, (%rcx)
movq -0xa18(%rbp), %rsi
movq %rsi, 0x8(%rcx)
movl %r14d, 0x10(%rcx)
xorl %edx, %edx
cmpq %rsi, (%rax)
setne %dl
addl $0x15, %edx
movq %rcx, (%rsp)
leaq -0xa28(%rbp), %r9
movq %rbx, %rdi
movq -0xa20(%rbp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fdc1
movl %eax, %r14d
cmpb $0x0, 0x67e(%rbx)
je 0x41080
movq %rbx, %rdi
callq 0x413fe
testb %r14b, %r14b
movzbl %r12b, %eax
movl $0x1, %r14d
cmovel %eax, %r14d
movq -0xa28(%rbp), %rsi
movq %rbx, %rdi
callq 0x3fd44
movq 0x8(%rbx), %rax
movq $0x0, 0x90(%rax)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x410d3
movl %r14d, %eax
addq $0xa48, %rsp # imm = 0xA48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
|
_ma_apply_undo_key_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A48h
mov r12d, ecx
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r15, [rdi]
or dword ptr [r15+170h], 1B1h
mov [rbp+var_A20], rsi
movzx r14d, byte ptr [rdx]
dec r12d
lea rsi, [rdx+1]
lea r13, [rbp+var_A10]
mov ecx, 9D3h
mov rdi, r13
mov rdx, r12
call ___memcpy_chk
mov rax, [r15+118h]
mov rax, [rax+r14*8]
mov [rbp+var_A18], rax
mov rax, [r15+570h]
imul rcx, r14, 118h
lea rdx, [rax+rcx]
mov [rbp+var_A40], rdx
mov [rbp+var_A48], r13
mov edx, [r15+740h]
sub r12d, edx
mov [rbp+var_A38], r12d
mov [rbp+var_A34], edx
mov [rbp+var_A30], 80000h
cmp byte ptr [rax+rcx+0A4h], 2
jnz short loc_40FF9
lea rsi, [rbp+var_A48]
lea rdx, [rbp+var_A18]
mov rdi, rbx
call maria_rtree_real_delete
jmp short loc_4100F
loc_40FF9:
lea rsi, [rbp+var_A48]
lea rdx, [rbp+var_A18]
mov rdi, rbx
call _ma_ck_real_delete
loc_4100F:
mov r12d, eax
test al, al
jz short loc_4101E
mov rdi, r15
call _ma_mark_file_crashed
loc_4101E:
mov rax, [r15+118h]
lea rax, [rax+r14*8]
lea rcx, [rbp+var_A68]
mov [rcx], rax
mov rsi, [rbp+var_A18]
mov [rcx+8], rsi
mov [rcx+10h], r14d
xor edx, edx
cmp [rax], rsi
setnz dl
add edx, 15h
mov [rsp+0A70h+var_A70], rcx
lea r9, [rbp+var_A28]
mov rdi, rbx
mov rsi, [rbp+var_A20]
xor ecx, ecx
xor r8d, r8d
call _ma_write_clr
mov r14d, eax
cmp byte ptr [rbx+67Eh], 0
jz short loc_41080
mov rdi, rbx
call _ma_unlock_key_del
loc_41080:
test r14b, r14b
movzx eax, r12b
mov r14d, 1
cmovz r14d, eax
mov rsi, [rbp+var_A28]
mov rdi, rbx
call _ma_unpin_all_pages
mov rax, [rbx+8]
mov qword ptr [rax+90h], 0
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_410D3
mov eax, r14d
add rsp, 0A48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_410D3:
call ___stack_chk_fail
|
long long ma_apply_undo_key_insert(long long a1, long long a2, unsigned __int8 *a3, int a4)
{
long long v4; // r15
long long v5; // r14
long long v6; // r12
int v7; // edx
unsigned __int8 v8; // al
unsigned __int8 v9; // r12
char v10; // r14
bool v11; // zf
unsigned int v12; // r14d
_QWORD v14[2]; // [rsp+8h] [rbp-A68h] BYREF
int v15; // [rsp+18h] [rbp-A58h]
_BYTE *v16; // [rsp+28h] [rbp-A48h] BYREF
long long v17; // [rsp+30h] [rbp-A40h]
int v18; // [rsp+38h] [rbp-A38h]
int v19; // [rsp+3Ch] [rbp-A34h]
int v20; // [rsp+40h] [rbp-A30h]
signed long long v21; // [rsp+48h] [rbp-A28h] BYREF
long long v22; // [rsp+50h] [rbp-A20h]
long long v23; // [rsp+58h] [rbp-A18h] BYREF
_BYTE v24[2528]; // [rsp+60h] [rbp-A10h] BYREF
unsigned long long v25; // [rsp+A40h] [rbp-30h]
v25 = __readfsqword(0x28u);
v4 = *(_QWORD *)a1;
*(_DWORD *)(*(_QWORD *)a1 + 368LL) |= 0x1B1u;
v22 = a2;
v5 = *a3;
v6 = (unsigned int)(a4 - 1);
__memcpy_chk(v24, a3 + 1, v6, 2515LL);
v23 = *(_QWORD *)(*(_QWORD *)(v4 + 280) + 8 * v5);
v17 = *(_QWORD *)(v4 + 1392) + 280 * v5;
v16 = v24;
v7 = *(_DWORD *)(v4 + 1856);
v18 = v6 - v7;
v19 = v7;
v20 = 0x80000;
if ( *(_BYTE *)(v17 + 164) == 2 )
v8 = maria_rtree_real_delete(a1, &v16, &v23);
else
v8 = ma_ck_real_delete(a1, &v16, &v23);
v9 = v8;
if ( v8 )
ma_mark_file_crashed(v4);
v14[0] = *(_QWORD *)(v4 + 280) + 8 * v5;
v14[1] = v23;
v15 = v5;
v10 = ma_write_clr(
(long long *)a1,
v22,
(unsigned int)(*(_QWORD *)v14[0] != v23) + 21,
0,
0,
(unsigned long long)&v21,
(long long)v14);
if ( *(_BYTE *)(a1 + 1662) )
ma_unlock_key_del(a1);
v11 = v10 == 0;
v12 = 1;
if ( v11 )
v12 = v9;
ma_unpin_all_pages(a1, v21);
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL) = 0LL;
return v12;
}
|
_ma_apply_undo_key_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa48
MOV R12D,ECX
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R15,qword ptr [RDI]
OR dword ptr [R15 + 0x170],0x1b1
MOV qword ptr [RBP + -0xa20],RSI
MOVZX R14D,byte ptr [RDX]
DEC R12D
LEA RSI,[RDX + 0x1]
LEA R13,[RBP + -0xa10]
MOV ECX,0x9d3
MOV RDI,R13
MOV RDX,R12
CALL 0x00129410
MOV RAX,qword ptr [R15 + 0x118]
MOV RAX,qword ptr [RAX + R14*0x8]
MOV qword ptr [RBP + -0xa18],RAX
MOV RAX,qword ptr [R15 + 0x570]
IMUL RCX,R14,0x118
LEA RDX,[RAX + RCX*0x1]
MOV qword ptr [RBP + -0xa40],RDX
MOV qword ptr [RBP + -0xa48],R13
MOV EDX,dword ptr [R15 + 0x740]
SUB R12D,EDX
MOV dword ptr [RBP + -0xa38],R12D
MOV dword ptr [RBP + -0xa34],EDX
MOV dword ptr [RBP + -0xa30],0x80000
CMP byte ptr [RAX + RCX*0x1 + 0xa4],0x2
JNZ 0x00140ff9
LEA RSI,[RBP + -0xa48]
LEA RDX,[RBP + -0xa18]
MOV RDI,RBX
CALL 0x0016267f
JMP 0x0014100f
LAB_00140ff9:
LEA RSI,[RBP + -0xa48]
LEA RDX,[RBP + -0xa18]
MOV RDI,RBX
CALL 0x00159050
LAB_0014100f:
MOV R12D,EAX
TEST AL,AL
JZ 0x0014101e
MOV RDI,R15
CALL 0x00142c36
LAB_0014101e:
MOV RAX,qword ptr [R15 + 0x118]
LEA RAX,[RAX + R14*0x8]
LEA RCX,[RBP + -0xa68]
MOV qword ptr [RCX],RAX
MOV RSI,qword ptr [RBP + -0xa18]
MOV qword ptr [RCX + 0x8],RSI
MOV dword ptr [RCX + 0x10],R14D
XOR EDX,EDX
CMP qword ptr [RAX],RSI
SETNZ DL
ADD EDX,0x15
MOV qword ptr [RSP],RCX
LEA R9,[RBP + -0xa28]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0xa20]
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0013fdc1
MOV R14D,EAX
CMP byte ptr [RBX + 0x67e],0x0
JZ 0x00141080
MOV RDI,RBX
CALL 0x001413fe
LAB_00141080:
TEST R14B,R14B
MOVZX EAX,R12B
MOV R14D,0x1
CMOVZ R14D,EAX
MOV RSI,qword ptr [RBP + -0xa28]
MOV RDI,RBX
CALL 0x0013fd44
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RAX + 0x90],0x0
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001410d3
MOV EAX,R14D
ADD RSP,0xa48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001410d3:
CALL 0x00129250
|
char _ma_apply_undo_key_insert(long *param_1,int8 param_2,byte *param_3,int param_4)
{
byte bVar1;
long lVar2;
char cVar3;
char cVar4;
char cVar5;
ulong uVar6;
long in_FS_OFFSET;
long *local_a70;
long local_a68;
uint local_a60;
int1 *local_a50;
long local_a48;
int local_a40;
int local_a3c;
int4 local_a38;
int8 local_a30;
int8 local_a28;
long local_a20;
int1 local_a18 [2528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar2 = *param_1;
*(uint *)(lVar2 + 0x170) = *(uint *)(lVar2 + 0x170) | 0x1b1;
bVar1 = *param_3;
uVar6 = (ulong)bVar1;
local_a28 = param_2;
__memcpy_chk(local_a18,param_3 + 1,param_4 + -1,0x9d3);
local_a20 = *(long *)(*(long *)(lVar2 + 0x118) + uVar6 * 8);
local_a48 = *(long *)(lVar2 + 0x570) + uVar6 * 0x118;
local_a3c = *(int *)(lVar2 + 0x740);
local_a40 = (param_4 + -1) - local_a3c;
local_a38 = 0x80000;
local_a50 = local_a18;
if (*(char *)(*(long *)(lVar2 + 0x570) + 0xa4 + uVar6 * 0x118) == '\x02') {
cVar3 = maria_rtree_real_delete(param_1,&local_a50,&local_a20);
}
else {
cVar3 = _ma_ck_real_delete(param_1,&local_a50,&local_a20);
}
if (cVar3 != '\0') {
_ma_mark_file_crashed(lVar2);
}
local_a70 = (long *)(*(long *)(lVar2 + 0x118) + uVar6 * 8);
local_a68 = local_a20;
local_a60 = (uint)bVar1;
cVar4 = _ma_write_clr(param_1,local_a28,(*local_a70 != local_a20) + '\x15',0,0,&local_a30,
&local_a70);
if (*(char *)((long)param_1 + 0x67e) != '\0') {
_ma_unlock_key_del(param_1);
}
cVar5 = '\x01';
if (cVar4 == '\0') {
cVar5 = cVar3;
}
_ma_unpin_all_pages(param_1,local_a30);
*(int8 *)(param_1[1] + 0x90) = 0;
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return cVar5;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
62,302 |
my_atod
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
double my_atod(const char *number, const char *end, int *error)
{
double val= 0.0;
char buffer[MAX_DBL_STR + 1];
int len= (int)(end - number);
*error= errno= 0;
if (len > MAX_DBL_STR)
{
*error= 1;
len= MAX_DBL_STR;
}
memcpy(buffer, number, len);
buffer[len]= '\0';
val= strtod(buffer, NULL);
if (errno)
*error= errno;
return val;
}
|
O3
|
c
|
my_atod:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp # imm = 0x448
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
subq %rdi, %r15
callq 0x13060
movq %rax, %r14
movl $0x0, (%rax)
xorl %eax, %eax
cmpl $0x436, %r15d # imm = 0x436
setge %al
movl %eax, (%rbx)
movslq %r15d, %rax
movl $0x435, %r15d # imm = 0x435
cmovlq %rax, %r15
leaq -0x470(%rbp), %r13
movl $0x436, %ecx # imm = 0x436
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x13770
movb $0x0, -0x470(%rbp,%r15)
movq %r13, %rdi
xorl %esi, %esi
callq 0x13350
movl (%r14), %eax
testl %eax, %eax
je 0x25446
movl %eax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x25467
addq $0x448, %rsp # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
my_atod:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 448h
mov rbx, rdx
mov r15, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
sub r15, rdi
call ___errno_location
mov r14, rax
mov dword ptr [rax], 0
xor eax, eax
cmp r15d, 436h
setnl al
mov [rbx], eax
movsxd rax, r15d
mov r15d, 435h
cmovl r15, rax
lea r13, [rbp+var_470]
mov ecx, 436h
mov rdi, r13
mov rsi, r12
mov rdx, r15
call ___memcpy_chk
mov [rbp+r15+var_470], 0
mov rdi, r13
xor esi, esi
call _strtod
mov eax, [r14]
test eax, eax
jz short loc_25446
mov [rbx], eax
loc_25446:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_25467
add rsp, 448h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_25467:
call ___stack_chk_fail
|
unsigned long long my_atod(long long a1, int a2, _DWORD *a3)
{
_DWORD *v4; // r14
long long v5; // r15
_BYTE v7[1088]; // [rsp+0h] [rbp-470h] BYREF
unsigned long long v8; // [rsp+440h] [rbp-30h]
v8 = __readfsqword(0x28u);
v4 = (_DWORD *)__errno_location(a1);
*v4 = 0;
*a3 = a2 - (int)a1 >= 1078;
v5 = 1077LL;
if ( a2 - (int)a1 < 1078 )
v5 = a2 - (int)a1;
__memcpy_chk(v7, a1, v5, 1078LL);
v7[v5] = 0;
strtod(v7, 0LL);
if ( *v4 )
*a3 = *v4;
return __readfsqword(0x28u);
}
|
my_atod:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x448
MOV RBX,RDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
SUB R15,RDI
CALL 0x00113060
MOV R14,RAX
MOV dword ptr [RAX],0x0
XOR EAX,EAX
CMP R15D,0x436
SETGE AL
MOV dword ptr [RBX],EAX
MOVSXD RAX,R15D
MOV R15D,0x435
CMOVL R15,RAX
LEA R13,[RBP + -0x470]
MOV ECX,0x436
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL 0x00113770
MOV byte ptr [RBP + R15*0x1 + -0x470],0x0
MOV RDI,R13
XOR ESI,ESI
CALL 0x00113350
MOV EAX,dword ptr [R14]
TEST EAX,EAX
JZ 0x00125446
MOV dword ptr [RBX],EAX
LAB_00125446:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00125467
ADD RSP,0x448
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00125467:
CALL 0x00113500
|
void my_atod(int8 param_1,int param_2,uint *param_3)
{
uint *puVar1;
long lVar2;
long in_FS_OFFSET;
char local_478 [1088];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
param_2 = param_2 - (int)param_1;
puVar1 = (uint *)__errno_location();
*puVar1 = 0;
*param_3 = (uint)(0x435 < param_2);
lVar2 = 0x435;
if (param_2 < 0x436) {
lVar2 = (long)param_2;
}
__memcpy_chk(local_478,param_1,lVar2,0x436);
local_478[lVar2] = '\0';
strtod(local_478,(char **)0x0);
if (*puVar1 != 0) {
*param_3 = *puVar1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
62,303 |
google::protobuf::compiler::objectivec::TextFormatDecodeData::AddString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
|
void TextFormatDecodeData::AddString(int32_t key,
const std::string& input_for_decode,
const std::string& desired_output) {
for (std::vector<DataEntry>::const_iterator i = entries_.begin();
i != entries_.end(); ++i) {
if (i->first == key) {
std::cerr << "error: duplicate key (" << key
<< ") making TextFormat data, input: \"" << input_for_decode
<< "\", desired: \"" << desired_output << "\"." << std::endl;
std::cerr.flush();
abort();
}
}
const std::string& data = TextFormatDecodeData::DecodeDataForString(
input_for_decode, desired_output);
entries_.push_back(DataEntry(key, data));
}
|
O0
|
cpp
|
google::protobuf::compiler::objectivec::TextFormatDecodeData::AddString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movl %esi, 0xac(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
movq 0xb0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x8d950
movq %rax, 0x88(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x8d980
movq 0x18(%rsp), %rdi
callq 0x8da00
movq %rax, 0x80(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x8d9c0
testb $0x1, %al
jne 0x8a2b5
jmp 0x8a374
leaq 0x90(%rsp), %rdi
callq 0x8da30
movl (%rax), %eax
cmpl 0xac(%rsp), %eax
jne 0x8a360
movq 0x467d08(%rip), %rdi # 0x4f1fe0
leaq 0x326896(%rip), %rsi # 0x3b0b75
callq 0x21660
movq %rax, %rdi
movl 0xac(%rsp), %esi
callq 0x21360
movq %rax, %rdi
leaq 0x32688f(%rip), %rsi # 0x3b0b8c
callq 0x21660
movq %rax, %rdi
movq 0xa0(%rsp), %rsi
callq 0x21330
movq %rax, %rdi
leaq 0x326893(%rip), %rsi # 0x3b0baf
callq 0x21660
movq %rax, %rdi
movq 0x98(%rsp), %rsi
callq 0x21330
movq %rax, %rdi
leaq 0x376aca(%rip), %rsi # 0x400e05
callq 0x21660
movq %rax, %rdi
movq 0x467c86(%rip), %rsi # 0x4f1fd0
callq 0x21ab0
movq 0x467c8a(%rip), %rdi # 0x4f1fe0
callq 0x21580
callq 0x21770
jmp 0x8a362
leaq 0x90(%rsp), %rdi
callq 0x8da40
jmp 0x8a285
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
leaq 0x58(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x8a430
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x78(%rsp)
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rdi
leaq 0xac(%rsp), %rsi
callq 0x8da90
jmp 0x8a3c0
movq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x8da60
jmp 0x8a3d1
leaq 0x30(%rsp), %rdi
callq 0x8dad0
leaq 0x58(%rsp), %rdi
callq 0x21cc8
addq $0xb8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0x8a415
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x8dad0
leaq 0x58(%rsp), %rdi
callq 0x21cc8
movq 0x28(%rsp), %rdi
callq 0x21700
nopl (%rax)
|
_ZN6google8protobuf8compiler10objectivec20TextFormatDecodeData9AddStringEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_C], esi
mov [rsp+0B8h+var_18], rdx
mov [rsp+0B8h+var_20], rcx
mov rdi, [rsp+0B8h+var_8]
mov [rsp+0B8h+var_A0], rdi
call _ZNSt6vectorISt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE5beginEv; std::vector<std::pair<int,std::string>>::begin(void)
mov [rsp+0B8h+var_30], rax
lea rdi, [rsp+0B8h+var_28]
lea rsi, [rsp+0B8h+var_30]
call _ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS8_SaIS8_EEEC2IPS8_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISH_SG_EE7__valueESD_E6__typeEEE
loc_8A285:
mov rdi, [rsp+0B8h+var_A0]
call _ZNSt6vectorISt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE3endEv; std::vector<std::pair<int,std::string>>::end(void)
mov [rsp+0B8h+var_38], rax
lea rdi, [rsp+0B8h+var_28]
lea rsi, [rsp+0B8h+var_38]
call _ZN9__gnu_cxxneIPKSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEPS8_St6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSF_IT0_SH_EE; __gnu_cxx::operator!=<std::pair<int,std::string> const*,std::pair<int,std::string>*,std::vector<std::pair<int,std::string>>>(__gnu_cxx::__normal_iterator<std::pair<int,std::string> const*,std::vector<std::pair<int,std::string>>> const&,__gnu_cxx::__normal_iterator<std::pair<int,std::string>*,std::vector<std::pair<int,std::string>>> const&)
test al, 1
jnz short loc_8A2B5
jmp loc_8A374
loc_8A2B5:
lea rdi, [rsp+0B8h+var_28]
call _ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS8_SaIS8_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<int,std::string> const*,std::vector<std::pair<int,std::string>>>::operator->(void)
mov eax, [rax]
cmp eax, [rsp+0B8h+var_C]
jnz loc_8A360
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, aErrorDuplicate; "error: duplicate key ("
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
mov esi, [rsp+0B8h+var_C]
call __ZNSolsEi; std::ostream::operator<<(int)
mov rdi, rax
lea rsi, aMakingTextform; ") making TextFormat data, input: \""
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
mov rsi, [rsp+0B8h+var_18]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, aDesired; "\", desired: \""
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
mov rsi, [rsp+0B8h+var_20]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, aWhichIsNotDefi+76h; "\"."
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr
call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &))
mov rdi, cs:_ZSt4cerr_ptr; this
call __ZNSo5flushEv; std::ostream::flush(void)
call _abort
loc_8A360:
jmp short $+2
loc_8A362:
lea rdi, [rsp+0B8h+var_28]
call _ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS8_SaIS8_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<int,std::string> const*,std::vector<std::pair<int,std::string>>>::operator++(void)
jmp loc_8A285
loc_8A374:
mov rsi, [rsp+0B8h+var_18]
mov rdx, [rsp+0B8h+var_20]
lea rdi, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_B0], rdi
call _ZN6google8protobuf8compiler10objectivec20TextFormatDecodeData19DecodeDataForStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_; google::protobuf::compiler::objectivec::TextFormatDecodeData::DecodeDataForString(std::string const&,std::string const&)
mov rcx, [rsp+0B8h+var_B0]
mov rax, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_40], rcx
mov [rsp+0B8h+var_A8], rax
mov rdx, [rsp+0B8h+var_40]
lea rdi, [rsp+0B8h+var_88]
lea rsi, [rsp+0B8h+var_C]
call _ZNSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IRiTnNSt9enable_ifIXclsr5_PCCPE13_MoveCopyPairILb1ET_S5_EEEbE4typeELb1EEEOSA_RKS5_
jmp short $+2
loc_8A3C0:
mov rdi, [rsp+0B8h+var_A8]
lea rsi, [rsp+0B8h+var_88]
call _ZNSt6vectorISt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE9push_backEOS7_; std::vector<std::pair<int,std::string>>::push_back(std::pair<int,std::string>&&)
jmp short $+2
loc_8A3D1:
lea rdi, [rsp+0B8h+var_88]
call _ZNSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::pair<int,std::string>::~pair()
lea rdi, [rsp+0B8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
add rsp, 0B8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
jmp short loc_8A415
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_28]
call _ZNSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::pair<int,std::string>::~pair()
loc_8A415:
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+arg_20]
call __Unwind_Resume
|
void google::protobuf::compiler::objectivec::TextFormatDecodeData::AddString(
long long a1,
unsigned int a2,
long long a3,
long long a4)
{
_DWORD *v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // rax
_BYTE v12[40]; // [rsp+30h] [rbp-88h] BYREF
_BYTE v13[32]; // [rsp+58h] [rbp-60h] BYREF
_BYTE *v14; // [rsp+78h] [rbp-40h]
long long v15; // [rsp+80h] [rbp-38h] BYREF
long long v16; // [rsp+88h] [rbp-30h] BYREF
_BYTE v17[8]; // [rsp+90h] [rbp-28h] BYREF
long long v18; // [rsp+98h] [rbp-20h]
long long v19; // [rsp+A0h] [rbp-18h]
unsigned int v20; // [rsp+ACh] [rbp-Ch] BYREF
long long v21; // [rsp+B0h] [rbp-8h]
v21 = a1;
v20 = a2;
v19 = a3;
v18 = a4;
v16 = std::vector<std::pair<int,std::string>>::begin();
__gnu_cxx::__normal_iterator<std::pair<int,std::string> const*,std::vector<std::pair<int,std::string>>>::__normal_iterator<std::pair<int,std::string>*>(
v17,
&v16);
while ( 1 )
{
v15 = std::vector<std::pair<int,std::string>>::end(a1);
if ( (__gnu_cxx::operator!=<std::pair<int,std::string> const*,std::pair<int,std::string>*,std::vector<std::pair<int,std::string>>>(
v17,
&v15) & 1) == 0 )
break;
v4 = (_DWORD *)__gnu_cxx::__normal_iterator<std::pair<int,std::string> const*,std::vector<std::pair<int,std::string>>>::operator->(v17);
if ( *v4 == v20 )
{
v5 = std::operator<<<std::char_traits<char>>(&std::cerr, "error: duplicate key (");
v6 = std::ostream::operator<<(v5, v20);
v7 = std::operator<<<std::char_traits<char>>(v6, ") making TextFormat data, input: \"");
v8 = std::operator<<<char>(v7, v19);
v9 = std::operator<<<std::char_traits<char>>(v8, "\", desired: \"");
v10 = std::operator<<<char>(v9, v18);
v11 = std::operator<<<std::char_traits<char>>(v10, "\".");
std::ostream::operator<<(v11, &std::endl<char,std::char_traits<char>>);
std::ostream::flush((std::ostream *)&std::cerr);
abort();
}
__gnu_cxx::__normal_iterator<std::pair<int,std::string> const*,std::vector<std::pair<int,std::string>>>::operator++(v17);
}
google::protobuf::compiler::objectivec::TextFormatDecodeData::DecodeDataForString(v13, v19, v18);
v14 = v13;
ZNSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IRiTnNSt9enable_ifIXclsr5_PCCPE13_MoveCopyPairILb1ET_S5_EEEbE4typeELb1EEEOSA_RKS5_(
v12,
&v20,
v13);
std::vector<std::pair<int,std::string>>::push_back(a1, v12);
std::pair<int,std::string>::~pair(v12);
std::string::~string(v13);
}
|
AddString:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV dword ptr [RSP + 0xac],ESI
MOV qword ptr [RSP + 0xa0],RDX
MOV qword ptr [RSP + 0x98],RCX
MOV RDI,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0018d950
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x88]
CALL 0x0018d980
LAB_0018a285:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0018da00
MOV qword ptr [RSP + 0x80],RAX
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x80]
CALL 0x0018d9c0
TEST AL,0x1
JNZ 0x0018a2b5
JMP 0x0018a374
LAB_0018a2b5:
LEA RDI,[RSP + 0x90]
CALL 0x0018da30
MOV EAX,dword ptr [RAX]
CMP EAX,dword ptr [RSP + 0xac]
JNZ 0x0018a360
MOV RDI,qword ptr [0x005f1fe0]
LEA RSI,[0x4b0b75]
CALL 0x00121660
MOV RDI,RAX
MOV ESI,dword ptr [RSP + 0xac]
CALL 0x00121360
MOV RDI,RAX
LEA RSI,[0x4b0b8c]
CALL 0x00121660
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0xa0]
CALL 0x00121330
MOV RDI,RAX
LEA RSI,[0x4b0baf]
CALL 0x00121660
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x00121330
MOV RDI,RAX
LEA RSI,[0x500e05]
CALL 0x00121660
MOV RDI,RAX
MOV RSI,qword ptr [0x005f1fd0]
CALL 0x00121ab0
MOV RDI,qword ptr [0x005f1fe0]
CALL 0x00121580
CALL 0x00121770
LAB_0018a360:
JMP 0x0018a362
LAB_0018a362:
LEA RDI,[RSP + 0x90]
CALL 0x0018da40
JMP 0x0018a285
LAB_0018a374:
MOV RSI,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RSP + 0x98]
LEA RDI,[RSP + 0x58]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0018a430
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x78],RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RDX,qword ptr [RSP + 0x78]
LAB_0018a3ac:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0xac]
CALL 0x0018da90
JMP 0x0018a3c0
LAB_0018a3c0:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x30]
CALL 0x0018da60
LAB_0018a3cf:
JMP 0x0018a3d1
LAB_0018a3d1:
LEA RDI,[RSP + 0x30]
CALL 0x0018dad0
LEA RDI,[RSP + 0x58]
CALL 0x00121cc8
ADD RSP,0xb8
RET
|
/* google::protobuf::compiler::objectivec::TextFormatDecodeData::AddString(int, std::__cxx11::string
const&, std::__cxx11::string const&) */
void __thiscall
google::protobuf::compiler::objectivec::TextFormatDecodeData::AddString
(TextFormatDecodeData *this,int param_1,string *param_2,string *param_3)
{
bool bVar1;
int *piVar2;
ostream *poVar3;
pair local_88 [40];
TextFormatDecodeData local_60 [32];
TextFormatDecodeData *local_40;
int8 local_38;
int8 local_30;
__normal_iterator<std::pair<int,std::__cxx11::string>const*,std::vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>>
local_28 [8];
string *local_20;
string *local_18;
int local_c;
TextFormatDecodeData *local_8;
local_20 = param_3;
local_18 = param_2;
local_c = param_1;
local_8 = this;
local_30 = std::
vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>
::begin((vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>
*)this);
__gnu_cxx::
__normal_iterator<std::pair<int,std::__cxx11::string>const*,std::vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>>
::__normal_iterator<std::pair<int,std::__cxx11::string>*>(local_28,(__normal_iterator *)&local_30)
;
while( true ) {
local_38 = std::
vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>
::end((vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>
*)this);
bVar1 = __gnu_cxx::operator!=(local_28,(__normal_iterator *)&local_38);
if (!bVar1) {
DecodeDataForString(local_60,local_18,local_20);
/* try { // try from 0018a3ac to 0018a3bd has its CatchHandler @ 0018a3ed */
local_40 = local_60;
_ZNSt4pairIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IRiTnNSt9enable_ifIXclsr5_PCCPE13_MoveCopyPairILb1ET_S5_EEEbE4typeELb1EEEOSA_RKS5_
(local_88,&local_c,local_60);
/* try { // try from 0018a3c0 to 0018a3ce has its CatchHandler @ 0018a3fd */
std::
vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>
::push_back((vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>
*)this,local_88);
std::pair<int,std::__cxx11::string>::~pair((pair<int,std::__cxx11::string> *)local_88);
std::__cxx11::string::~string((string *)local_60);
return;
}
piVar2 = (int *)__gnu_cxx::
__normal_iterator<std::pair<int,std::__cxx11::string>const*,std::vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>>
::operator->(local_28);
if (*piVar2 == local_c) break;
__gnu_cxx::
__normal_iterator<std::pair<int,std::__cxx11::string>const*,std::vector<std::pair<int,std::__cxx11::string>,std::allocator<std::pair<int,std::__cxx11::string>>>>
::operator++(local_28);
}
poVar3 = std::operator<<((ostream *)PTR_cerr_005f1fe0,"error: duplicate key (");
poVar3 = (ostream *)std::ostream::operator<<(poVar3,local_c);
poVar3 = std::operator<<(poVar3,") making TextFormat data, input: \"");
poVar3 = std::operator<<(poVar3,local_18);
poVar3 = std::operator<<(poVar3,"\", desired: \"");
poVar3 = std::operator<<(poVar3,local_20);
poVar3 = std::operator<<(poVar3,"\".");
std::ostream::operator<<
(poVar3,(_func_ostream_ptr_ostream_ptr *)PTR_endl<char,std_char_traits<char>>_005f1fd0);
std::ostream::flush();
/* WARNING: Subroutine does not return */
abort();
}
|
|
62,304 |
js_operator_in
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int js_operator_in(JSContext *ctx, JSValue *sp)
{
JSValue op1, op2;
JSAtom atom;
int ret;
op1 = sp[-2];
op2 = sp[-1];
if (JS_VALUE_GET_TAG(op2) != JS_TAG_OBJECT) {
JS_ThrowTypeError(ctx, "invalid 'in' operand");
return -1;
}
atom = JS_ValueToAtom(ctx, op1);
if (unlikely(atom == JS_ATOM_NULL))
return -1;
ret = JS_HasProperty(ctx, op2, atom);
JS_FreeAtom(ctx, atom);
if (ret < 0)
return -1;
JS_FreeValue(ctx, op1);
JS_FreeValue(ctx, op2);
sp[-2] = js_bool(ret);
return 0;
}
|
O0
|
c
|
js_operator_in:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq -0x20(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq -0x18(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rax
movq -0x10(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpl $-0x1, %eax
je 0x6ba10
movq 0x58(%rsp), %rdi
leaq 0xa15cd(%rip), %rsi # 0x10cfbf
movb $0x0, %al
callq 0x2c040
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF
jmp 0x6baee
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x2ff40
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
sete %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6ba4e
movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF
jmp 0x6baee
movq 0x58(%rsp), %rdi
movl 0x2c(%rsp), %ecx
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x2fc10
movl %eax, 0x28(%rsp)
movq 0x58(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x27d80
cmpl $0x0, 0x28(%rsp)
jge 0x6ba89
movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF
jmp 0x6baee
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x229d0
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x229d0
movq 0x50(%rsp), %rax
movq %rax, (%rsp)
movl 0x28(%rsp), %edi
callq 0x55f90
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, -0x20(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, -0x18(%rax)
movl $0x0, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopw (%rax,%rax)
|
js_operator_in:
sub rsp, 68h
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_18], rsi
mov rax, [rsp+68h+var_18]
mov rcx, [rax-20h]
mov [rsp+68h+var_28], rcx
mov rax, [rax-18h]
mov [rsp+68h+var_20], rax
mov rax, [rsp+68h+var_18]
mov rcx, [rax-10h]
mov [rsp+68h+var_38], rcx
mov rax, [rax-8]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_30]
cmp eax, 0FFFFFFFFh
jz short loc_6BA10
mov rdi, [rsp+68h+var_10]
lea rsi, aInvalidInOpera; "invalid 'in' operand"
mov al, 0
call JS_ThrowTypeError
mov [rsp+68h+var_50], rax
mov [rsp+68h+var_48], rdx
mov [rsp+68h+var_4], 0FFFFFFFFh
jmp loc_6BAEE
loc_6BA10:
mov rdi, [rsp+68h+var_10]
mov rsi, [rsp+68h+var_28]
mov rdx, [rsp+68h+var_20]
call JS_ValueToAtom
mov [rsp+68h+var_3C], eax
cmp [rsp+68h+var_3C], 0
setz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_6BA4E
mov [rsp+68h+var_4], 0FFFFFFFFh
jmp loc_6BAEE
loc_6BA4E:
mov rdi, [rsp+68h+var_10]
mov ecx, [rsp+68h+var_3C]
mov rsi, [rsp+68h+var_38]
mov rdx, [rsp+68h+var_30]
call JS_HasProperty
mov [rsp+68h+var_40], eax
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_3C]
call JS_FreeAtom
cmp [rsp+68h+var_40], 0
jge short loc_6BA89
mov [rsp+68h+var_4], 0FFFFFFFFh
jmp short loc_6BAEE
loc_6BA89:
mov rdi, [rsp+68h+var_10]
mov rsi, [rsp+68h+var_28]
mov rdx, [rsp+68h+var_20]
call JS_FreeValue
mov rdi, [rsp+68h+var_10]
mov rsi, [rsp+68h+var_38]
mov rdx, [rsp+68h+var_30]
call JS_FreeValue
mov rax, [rsp+68h+var_18]
mov [rsp+68h+var_68], rax
mov edi, [rsp+68h+var_40]
call js_bool
mov rcx, rax
mov rax, [rsp+68h+var_68]
mov [rsp+68h+var_60], rcx
mov [rsp+68h+var_58], rdx
mov rcx, [rsp+68h+var_60]
mov [rax-20h], rcx
mov rcx, [rsp+68h+var_58]
mov [rax-18h], rcx
mov [rsp+68h+var_4], 0
loc_6BAEE:
mov eax, [rsp+68h+var_4]
add rsp, 68h
retn
|
long long js_operator_in(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
long long a14)
{
long long v14; // rdx
char v16; // [rsp+0h] [rbp-68h]
int HasProperty; // [rsp+28h] [rbp-40h]
unsigned int v18; // [rsp+2Ch] [rbp-3Ch]
long long v19; // [rsp+30h] [rbp-38h]
long long v20; // [rsp+38h] [rbp-30h]
long long v21; // [rsp+40h] [rbp-28h]
long long v22; // [rsp+48h] [rbp-20h]
v21 = *(_QWORD *)(a2 - 32);
v22 = *(_QWORD *)(a2 - 24);
v19 = *(_QWORD *)(a2 - 16);
v20 = *(_QWORD *)(a2 - 8);
if ( (_DWORD)v20 == -1 )
{
v18 = JS_ValueToAtom(a1, v21, v22);
if ( v18 )
{
HasProperty = JS_HasProperty(a1, v19, -1, v18);
JS_FreeAtom(a1, v18);
if ( HasProperty >= 0 )
{
JS_FreeValue(a1, v21, v22);
JS_FreeValue(a1, v19, v20);
*(_QWORD *)(a2 - 32) = js_bool(HasProperty);
*(_QWORD *)(a2 - 24) = v14;
return 0;
}
else
{
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
else
{
JS_ThrowTypeError(
a1,
(long long)"invalid 'in' operand",
a3,
*(_QWORD *)(a2 - 16),
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v16);
return (unsigned int)-1;
}
}
|
js_operator_in:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RSI
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RAX + -0x20]
MOV qword ptr [RSP + 0x40],RCX
MOV RAX,qword ptr [RAX + -0x18]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RAX + -0x10]
MOV qword ptr [RSP + 0x30],RCX
MOV RAX,qword ptr [RAX + -0x8]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
CMP EAX,-0x1
JZ 0x0016ba10
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20cfbf]
MOV AL,0x0
CALL 0x0012c040
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV dword ptr [RSP + 0x64],0xffffffff
JMP 0x0016baee
LAB_0016ba10:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x0012ff40
MOV dword ptr [RSP + 0x2c],EAX
CMP dword ptr [RSP + 0x2c],0x0
SETZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0016ba4e
MOV dword ptr [RSP + 0x64],0xffffffff
JMP 0x0016baee
LAB_0016ba4e:
MOV RDI,qword ptr [RSP + 0x58]
MOV ECX,dword ptr [RSP + 0x2c]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x0012fc10
MOV dword ptr [RSP + 0x28],EAX
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x2c]
CALL 0x00127d80
CMP dword ptr [RSP + 0x28],0x0
JGE 0x0016ba89
MOV dword ptr [RSP + 0x64],0xffffffff
JMP 0x0016baee
LAB_0016ba89:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x001229d0
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x001229d0
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP],RAX
MOV EDI,dword ptr [RSP + 0x28]
CALL 0x00155f90
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP + 0x10],RDX
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + -0x20],RCX
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + -0x18],RCX
MOV dword ptr [RSP + 0x64],0x0
LAB_0016baee:
MOV EAX,dword ptr [RSP + 0x64]
ADD RSP,0x68
RET
|
int4 js_operator_in(int8 param_1,long param_2)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
int iVar5;
int iVar6;
int1 auVar7 [16];
int4 local_4;
uVar1 = *(int8 *)(param_2 + -0x20);
uVar2 = *(int8 *)(param_2 + -0x18);
uVar3 = *(int8 *)(param_2 + -0x10);
uVar4 = *(int8 *)(param_2 + -8);
if ((int)uVar4 == -1) {
iVar5 = JS_ValueToAtom(param_1,uVar1,uVar2);
if (iVar5 == 0) {
local_4 = 0xffffffff;
}
else {
iVar6 = JS_HasProperty(param_1,uVar3,uVar4,iVar5);
JS_FreeAtom(param_1,iVar5);
if (iVar6 < 0) {
local_4 = 0xffffffff;
}
else {
JS_FreeValue(param_1,uVar1,uVar2);
JS_FreeValue(param_1,uVar3,uVar4);
auVar7 = js_bool(iVar6);
*(int1 (*) [16])(param_2 + -0x20) = auVar7;
local_4 = 0;
}
}
}
else {
JS_ThrowTypeError(param_1,"invalid \'in\' operand");
local_4 = 0xffffffff;
}
return local_4;
}
|
|
62,305 |
fmt::v10::basic_format_parse_context<char>::next_arg_id()
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h
|
FMT_CONSTEXPR auto next_arg_id() -> int {
if (next_arg_id_ < 0) {
detail::throw_format_error(
"cannot switch from manual to automatic argument indexing");
return 0;
}
int id = next_arg_id_++;
do_check_arg_id(id);
return id;
}
|
O0
|
c
|
fmt::v10::basic_format_parse_context<char>::next_arg_id():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
cmpl $0x0, 0x10(%rax)
jge 0xaac94
leaq 0x6f2d0(%rip), %rdi # 0x119f5f
callq 0x8ecd0
movq (%rsp), %rdi
movl 0x10(%rdi), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rdi)
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %esi
callq 0xaacc0
movl 0xc(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
|
_ZN3fmt3v1026basic_format_parse_contextIcE11next_arg_idEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_18], rax
cmp dword ptr [rax+10h], 0
jge short loc_AAC94
lea rdi, aCannotSwitchFr; "cannot switch from manual to automatic "...
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
loc_AAC94:
mov rdi, [rsp+18h+var_18]
mov eax, [rdi+10h]
mov ecx, eax
add ecx, 1
mov [rdi+10h], ecx
mov [rsp+18h+var_C], eax
mov esi, [rsp+18h+var_C]
call _ZN3fmt3v1026basic_format_parse_contextIcE15do_check_arg_idEi; fmt::v10::basic_format_parse_context<char>::do_check_arg_id(int)
mov eax, [rsp+18h+var_C]
add rsp, 18h
retn
|
long long fmt::v10::basic_format_parse_context<char>::next_arg_id(long long a1, const char *a2)
{
unsigned int v2; // eax
unsigned int v4; // [rsp+Ch] [rbp-Ch]
if ( *(int *)(a1 + 16) < 0 )
fmt::v10::detail::throw_format_error(
(fmt::v10::detail *)"cannot switch from manual to automatic argument indexing",
a2);
v2 = *(_DWORD *)(a1 + 16);
*(_DWORD *)(a1 + 16) = v2 + 1;
v4 = v2;
fmt::v10::basic_format_parse_context<char>::do_check_arg_id(a1, v2);
return v4;
}
|
next_arg_id:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
CMP dword ptr [RAX + 0x10],0x0
JGE 0x001aac94
LEA RDI,[0x219f5f]
CALL 0x0018ecd0
LAB_001aac94:
MOV RDI,qword ptr [RSP]
MOV EAX,dword ptr [RDI + 0x10]
MOV ECX,EAX
ADD ECX,0x1
MOV dword ptr [RDI + 0x10],ECX
MOV dword ptr [RSP + 0xc],EAX
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x001aacc0
MOV EAX,dword ptr [RSP + 0xc]
ADD RSP,0x18
RET
|
/* fmt::v10::basic_format_parse_context<char>::next_arg_id() */
int __thiscall
fmt::v10::basic_format_parse_context<char>::next_arg_id(basic_format_parse_context<char> *this)
{
int iVar1;
if (*(int *)(this + 0x10) < 0) {
/* WARNING: Subroutine does not return */
v10::detail::throw_format_error("cannot switch from manual to automatic argument indexing");
}
iVar1 = *(int *)(this + 0x10);
*(int *)(this + 0x10) = iVar1 + 1;
do_check_arg_id((int)this);
return iVar1;
}
|
|
62,306 |
stbi__png_info_raw(stbi__png*, int*, int*, int*)
|
llama.cpp/examples/llava/../../common/stb_image.h
|
static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)
{
if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) {
stbi__rewind( p->s );
return 0;
}
if (x) *x = p->s->img_x;
if (y) *y = p->s->img_y;
if (comp) *comp = p->s->img_n;
return 1;
}
|
O3
|
c
|
stbi__png_info_raw(stbi__png*, int*, int*, int*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
xorl %ebp, %ebp
movl $0x2, %esi
xorl %edx, %edx
callq 0x2fedb
testl %eax, %eax
je 0x3792e
testq %r12, %r12
je 0x3790c
movq (%r14), %rax
movl (%rax), %eax
movl %eax, (%r12)
testq %r15, %r15
je 0x3791a
movq (%r14), %rax
movl 0x4(%rax), %eax
movl %eax, (%r15)
movl $0x1, %ebp
testq %rbx, %rbx
je 0x3793f
movq (%r14), %rax
movl 0x8(%rax), %eax
movl %eax, (%rbx)
jmp 0x3793f
movq (%r14), %rax
movups 0xd0(%rax), %xmm0
movups %xmm0, 0xc0(%rax)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ZL18stbi__png_info_rawP9stbi__pngPiS1_S1_:
push rbp
push r15
push r14
push r12
push rbx
mov rbx, rcx
mov r15, rdx
mov r12, rsi
mov r14, rdi
xor ebp, ebp
mov esi, 2
xor edx, edx
call _ZL20stbi__parse_png_fileP9stbi__pngii; stbi__parse_png_file(stbi__png *,int,int)
test eax, eax
jz short loc_3792E
test r12, r12
jz short loc_3790C
mov rax, [r14]
mov eax, [rax]
mov [r12], eax
loc_3790C:
test r15, r15
jz short loc_3791A
mov rax, [r14]
mov eax, [rax+4]
mov [r15], eax
loc_3791A:
mov ebp, 1
test rbx, rbx
jz short loc_3793F
mov rax, [r14]
mov eax, [rax+8]
mov [rbx], eax
jmp short loc_3793F
loc_3792E:
mov rax, [r14]
movups xmm0, xmmword ptr [rax+0D0h]
movups xmmword ptr [rax+0C0h], xmm0
loc_3793F:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long stbi__png_info_raw(long long *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)
{
unsigned int v6; // ebp
v6 = 0;
if ( (unsigned int)stbi__parse_png_file(a1, 2, 0) )
{
if ( a2 )
*a2 = *(_DWORD *)*a1;
if ( a3 )
*a3 = *(_DWORD *)(*a1 + 4);
v6 = 1;
if ( a4 )
*a4 = *(_DWORD *)(*a1 + 8);
}
else
{
*(_OWORD *)(*a1 + 192) = *(_OWORD *)(*a1 + 208);
}
return v6;
}
|
stbi__png_info_raw:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RCX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
XOR EBP,EBP
MOV ESI,0x2
XOR EDX,EDX
CALL 0x0012fedb
TEST EAX,EAX
JZ 0x0013792e
TEST R12,R12
JZ 0x0013790c
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX]
MOV dword ptr [R12],EAX
LAB_0013790c:
TEST R15,R15
JZ 0x0013791a
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [R15],EAX
LAB_0013791a:
MOV EBP,0x1
TEST RBX,RBX
JZ 0x0013793f
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBX],EAX
JMP 0x0013793f
LAB_0013792e:
MOV RAX,qword ptr [R14]
MOVUPS XMM0,xmmword ptr [RAX + 0xd0]
MOVUPS xmmword ptr [RAX + 0xc0],XMM0
LAB_0013793f:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* stbi__png_info_raw(stbi__png*, int*, int*, int*) */
int8 stbi__png_info_raw(stbi__png *param_1,int *param_2,int *param_3,int *param_4)
{
long lVar1;
int iVar2;
int8 uVar3;
uVar3 = 0;
iVar2 = stbi__parse_png_file(param_1,2,0);
if (iVar2 == 0) {
lVar1 = *(long *)param_1;
*(int8 *)(lVar1 + 0xc0) = *(int8 *)(lVar1 + 0xd0);
*(int8 *)(lVar1 + 200) = *(int8 *)(lVar1 + 0xd8);
}
else {
if (param_2 != (int *)0x0) {
*param_2 = **(int **)param_1;
}
if (param_3 != (int *)0x0) {
*param_3 = *(int *)(*(long *)param_1 + 4);
}
uVar3 = 1;
if (param_4 != (int *)0x0) {
*param_4 = *(int *)(*(long *)param_1 + 8);
}
}
return uVar3;
}
|
|
62,307 |
js_promise_constructor
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_promise_constructor(JSContext *ctx, JSValue new_target,
int argc, JSValue *argv)
{
JSValue executor;
JSValue obj;
JSPromiseData *s;
JSValue args[2], ret;
int i;
executor = argv[0];
if (check_function(ctx, executor))
return JS_EXCEPTION;
obj = js_create_from_ctor(ctx, new_target, JS_CLASS_PROMISE);
if (JS_IsException(obj))
return JS_EXCEPTION;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
goto fail;
s->promise_state = JS_PROMISE_PENDING;
s->is_handled = FALSE;
for(i = 0; i < 2; i++)
init_list_head(&s->promise_reactions[i]);
s->promise_result = JS_UNDEFINED;
JS_SetOpaqueInternal(obj, s);
if (js_create_resolving_functions(ctx, args, obj))
goto fail;
ret = JS_Call(ctx, executor, JS_UNDEFINED, 2, args);
if (JS_IsException(ret)) {
JSValue ret2, error;
error = JS_GetException(ctx);
ret2 = JS_Call(ctx, args[1], JS_UNDEFINED, 1, &error);
JS_FreeValue(ctx, error);
if (JS_IsException(ret2))
goto fail1;
JS_FreeValue(ctx, ret2);
}
JS_FreeValue(ctx, ret);
JS_FreeValue(ctx, args[0]);
JS_FreeValue(ctx, args[1]);
return obj;
fail1:
JS_FreeValue(ctx, args[0]);
JS_FreeValue(ctx, args[1]);
fail:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O2
|
c
|
js_promise_constructor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq (%r8), %r13
movq 0x8(%r8), %rbp
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3d04a
pushq $0x6
popq %r14
testl %eax, %eax
jne 0x33bb2
pushq $0x31
popq %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3400a
movq %rdx, %r15
cmpl $0x6, %r15d
je 0x33bb2
movq %rax, %r12
pushq $0x40
popq %rsi
movq %rbx, %rdi
callq 0x1adf1
testq %rax, %rax
je 0x33ba4
andl $0x0, (%rax)
andl $0x0, 0x28(%rax)
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
andl $0x0, 0x30(%rax)
movq $0x3, 0x38(%rax)
movq %rax, 0x30(%r12)
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x4aef0
testl %eax, %eax
je 0x33bcb
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1bbce
xorl %eax, %eax
xorl %ecx, %ecx
orq %rcx, %rax
movq %r14, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
pushq $0x3
popq %r8
pushq $0x2
popq %r9
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x25a66
movq %rdx, %rbp
cmpl $0x6, %ebp
jne 0x33ca2
movq %rax, 0x38(%rsp)
movq 0x18(%rbx), %rax
movups 0xf0(%rax), %xmm0
andl $0x0, 0xf0(%rax)
movq $0x4, 0xf8(%rax)
leaq 0x40(%rsp), %rax
movaps %xmm0, (%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rax, (%rsp)
pushq $0x3
popq %r8
pushq $0x1
popq %r9
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x25a66
movq %rax, 0x30(%rsp)
movq %rdx, %r13
leaq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x1bbce
cmpl $0x6, %r13d
jne 0x33c8d
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
jmp 0x33ba4
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r13, %rdx
callq 0x1bbce
movq 0x38(%rsp), %rax
movq %rbx, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x1bbce
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r12, %rcx
andq %rax, %rcx
movl %r12d, %eax
movq %r15, %r14
jmp 0x33bb6
|
js_promise_constructor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov r13, [r8]
mov rbp, [r8+8]
mov rsi, r13
mov rdx, rbp
call check_function
push 6
pop r14
test eax, eax
jnz loc_33BB2
push 31h ; '1'
pop rcx
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call js_create_from_ctor
mov r15, rdx
cmp r15d, 6
jz short loc_33BB2
mov r12, rax
push 40h ; '@'
pop rsi
mov rdi, rbx
call js_mallocz
test rax, rax
jz short loc_33BA4
and dword ptr [rax], 0
and dword ptr [rax+28h], 0
lea rcx, [rax+8]
mov [rax+8], rcx
mov [rax+10h], rcx
mov rcx, rax
add rcx, 18h
mov [rax+18h], rcx
mov [rax+20h], rcx
and dword ptr [rax+30h], 0
mov qword ptr [rax+38h], 3
mov [r12+30h], rax
lea rsi, [rsp+88h+var_78]
mov rdi, rbx
mov rdx, r12
mov rcx, r15
call js_create_resolving_functions
test eax, eax
jz short loc_33BCB
loc_33BA4:
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call JS_FreeValue
loc_33BB2:
xor eax, eax
xor ecx, ecx
loc_33BB6:
or rax, rcx
mov rdx, r14
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_33BCB:
lea rax, [rsp+88h+var_78]
mov [rsp+88h+var_88], rax
push 3
pop r8
push 2
pop r9
mov rdi, rbx
mov rsi, r13
mov rdx, rbp
xor ecx, ecx
call JS_Call
mov rbp, rdx
cmp ebp, 6
jnz loc_33CA2
mov [rsp+88h+var_50], rax
mov rax, [rbx+18h]
movups xmm0, xmmword ptr [rax+0F0h]
and dword ptr [rax+0F0h], 0
mov qword ptr [rax+0F8h], 4
lea rax, [rsp+88h+var_48]
movaps xmmword ptr [rax], xmm0
mov rsi, [rsp+88h+var_68]
mov rdx, [rsp+88h+var_60]
mov [rsp+88h+var_88], rax
push 3
pop r8
push 1
pop r9
mov rdi, rbx
xor ecx, ecx
call JS_Call
mov [rsp+88h+var_58], rax
mov r13, rdx
lea rax, [rsp+88h+var_48]
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rbx
call JS_FreeValue
cmp r13d, 6
jnz short loc_33C8D
mov rsi, [rsp+88h+var_78]
mov rdx, [rsp+88h+var_70]
mov rdi, rbx
call JS_FreeValue
mov rsi, [rsp+88h+var_68]
mov rdx, [rsp+88h+var_60]
mov rdi, rbx
call JS_FreeValue
jmp loc_33BA4
loc_33C8D:
mov rdi, rbx
mov rsi, [rsp+88h+var_58]
mov rdx, r13
call JS_FreeValue
mov rax, [rsp+88h+var_50]
loc_33CA2:
mov rdi, rbx
mov rsi, rax
mov rdx, rbp
call JS_FreeValue
mov rsi, [rsp+88h+var_78]
mov rdx, [rsp+88h+var_70]
mov rdi, rbx
call JS_FreeValue
mov rsi, [rsp+88h+var_68]
mov rdx, [rsp+88h+var_60]
mov rdi, rbx
call JS_FreeValue
mov rax, 0FFFFFFFF00000000h
mov rcx, r12
and rcx, rax
mov eax, r12d
mov r14, r15
jmp loc_33BB6
|
unsigned long long js_promise_constructor(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
long long v6; // r13
long long v7; // rbp
long long v8; // rax
long long v9; // rdx
long long v10; // r15
long long v11; // r12
long long v12; // rax
long long v13; // rax
unsigned long long v14; // rcx
long long v16; // rax
long long v17; // rdx
long long v18; // rbp
long long v19; // rax
__int128 v20; // xmm0
long long v21; // rdx
long long v22; // r13
long long v23; // [rsp+10h] [rbp-78h] BYREF
long long v24; // [rsp+18h] [rbp-70h]
long long v25; // [rsp+20h] [rbp-68h]
long long v26; // [rsp+28h] [rbp-60h]
long long v27; // [rsp+30h] [rbp-58h]
long long v28; // [rsp+38h] [rbp-50h]
__int128 v29; // [rsp+40h] [rbp-48h] BYREF
v6 = *a5;
v7 = a5[1];
if ( (unsigned int)check_function(a1, *a5, v7) )
goto LABEL_6;
v8 = js_create_from_ctor(a1, a2, a3, 49LL);
v10 = v9;
if ( (_DWORD)v9 == 6 )
goto LABEL_6;
v11 = v8;
v12 = js_mallocz(a1, 0x40uLL);
if ( v12 )
{
*(_DWORD *)v12 = 0;
*(_DWORD *)(v12 + 40) = 0;
*(_QWORD *)(v12 + 8) = v12 + 8;
*(_QWORD *)(v12 + 16) = v12 + 8;
*(_QWORD *)(v12 + 24) = v12 + 24;
*(_QWORD *)(v12 + 32) = v12 + 24;
*(_DWORD *)(v12 + 48) = 0;
*(_QWORD *)(v12 + 56) = 3LL;
*(_QWORD *)(v11 + 48) = v12;
if ( !(unsigned int)js_create_resolving_functions(a1, &v23, v11, v10) )
{
v16 = JS_Call(a1, v6, v7, 0, 3, 2, (long long)&v23);
v18 = v17;
if ( (_DWORD)v17 == 6 )
{
v28 = v16;
v19 = *(_QWORD *)(a1 + 24);
v20 = *(_OWORD *)(v19 + 240);
*(_DWORD *)(v19 + 240) = 0;
*(_QWORD *)(v19 + 248) = 4LL;
v29 = v20;
v27 = JS_Call(a1, v25, v26, 0, 3, 1, (long long)&v29);
v22 = v21;
JS_FreeValue(a1, v29, *((long long *)&v29 + 1));
if ( (_DWORD)v22 == 6 )
{
JS_FreeValue(a1, v23, v24);
JS_FreeValue(a1, v25, v26);
goto LABEL_5;
}
JS_FreeValue(a1, v27, v22);
v16 = v28;
}
JS_FreeValue(a1, v16, v18);
JS_FreeValue(a1, v23, v24);
JS_FreeValue(a1, v25, v26);
v14 = v11 & 0xFFFFFFFF00000000LL;
v13 = (unsigned int)v11;
return v14 | v13;
}
}
LABEL_5:
JS_FreeValue(a1, v11, v10);
LABEL_6:
v13 = 0LL;
v14 = 0LL;
return v14 | v13;
}
|
js_promise_constructor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV R13,qword ptr [R8]
MOV RBP,qword ptr [R8 + 0x8]
MOV RSI,R13
MOV RDX,RBP
CALL 0x0013d04a
PUSH 0x6
POP R14
TEST EAX,EAX
JNZ 0x00133bb2
PUSH 0x31
POP RCX
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x0013400a
MOV R15,RDX
CMP R15D,0x6
JZ 0x00133bb2
MOV R12,RAX
PUSH 0x40
POP RSI
MOV RDI,RBX
CALL 0x0011adf1
TEST RAX,RAX
JZ 0x00133ba4
AND dword ptr [RAX],0x0
AND dword ptr [RAX + 0x28],0x0
LEA RCX,[RAX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,RAX
ADD RCX,0x18
MOV qword ptr [RAX + 0x18],RCX
MOV qword ptr [RAX + 0x20],RCX
AND dword ptr [RAX + 0x30],0x0
MOV qword ptr [RAX + 0x38],0x3
MOV qword ptr [R12 + 0x30],RAX
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
MOV RDX,R12
MOV RCX,R15
CALL 0x0014aef0
TEST EAX,EAX
JZ 0x00133bcb
LAB_00133ba4:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x0011bbce
LAB_00133bb2:
XOR EAX,EAX
XOR ECX,ECX
LAB_00133bb6:
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00133bcb:
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
PUSH 0x3
POP R8
PUSH 0x2
POP R9
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
XOR ECX,ECX
CALL 0x00125a66
MOV RBP,RDX
CMP EBP,0x6
JNZ 0x00133ca2
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RBX + 0x18]
MOVUPS XMM0,xmmword ptr [RAX + 0xf0]
AND dword ptr [RAX + 0xf0],0x0
MOV qword ptr [RAX + 0xf8],0x4
LEA RAX,[RSP + 0x40]
MOVAPS xmmword ptr [RAX],XMM0
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP],RAX
PUSH 0x3
POP R8
PUSH 0x1
POP R9
MOV RDI,RBX
XOR ECX,ECX
CALL 0x00125a66
MOV qword ptr [RSP + 0x30],RAX
MOV R13,RDX
LEA RAX,[RSP + 0x40]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x0011bbce
CMP R13D,0x6
JNZ 0x00133c8d
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,RBX
CALL 0x0011bbce
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RDI,RBX
CALL 0x0011bbce
JMP 0x00133ba4
LAB_00133c8d:
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,R13
CALL 0x0011bbce
MOV RAX,qword ptr [RSP + 0x38]
LAB_00133ca2:
MOV RDI,RBX
MOV RSI,RAX
MOV RDX,RBP
CALL 0x0011bbce
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,RBX
CALL 0x0011bbce
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RDI,RBX
CALL 0x0011bbce
MOV RAX,-0x100000000
MOV RCX,R12
AND RCX,RAX
MOV EAX,R12D
MOV R14,R15
JMP 0x00133bb6
|
int1 [16]
js_promise_constructor
(long param_1,int8 param_2,int8 param_3,int8 param_4,int8 *param_5
)
{
int8 uVar1;
long lVar2;
int iVar3;
int4 *puVar4;
ulong uVar5;
int8 uVar6;
ulong uVar7;
int8 uVar8;
int1 auVar9 [16];
int1 auVar10 [16];
int8 local_78;
int8 local_70;
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
uVar6 = *param_5;
uVar1 = param_5[1];
iVar3 = check_function(param_1,uVar6,uVar1);
if (iVar3 == 0) {
auVar9 = js_create_from_ctor(param_1,param_2,param_3,0x31);
uVar8 = auVar9._8_8_;
uVar5 = auVar9._0_8_;
if (auVar9._8_4_ != 6) {
puVar4 = (int4 *)js_mallocz(param_1,0x40);
if (puVar4 != (int4 *)0x0) {
*puVar4 = 0;
puVar4[10] = 0;
*(int4 **)(puVar4 + 2) = puVar4 + 2;
*(int4 **)(puVar4 + 4) = puVar4 + 2;
*(int4 **)(puVar4 + 6) = puVar4 + 6;
*(int4 **)(puVar4 + 8) = puVar4 + 6;
puVar4[0xc] = 0;
*(int8 *)(puVar4 + 0xe) = 3;
*(int4 **)(uVar5 + 0x30) = puVar4;
iVar3 = js_create_resolving_functions(param_1,&local_78,uVar5,uVar8);
if (iVar3 == 0) {
auVar9 = JS_Call(param_1,uVar6,uVar1,0,3,2,&local_78);
uVar6 = auVar9._0_8_;
if (auVar9._8_4_ == 6) {
lVar2 = *(long *)(param_1 + 0x18);
local_48 = *(int4 *)(lVar2 + 0xf0);
uStack_44 = *(int4 *)(lVar2 + 0xf4);
uStack_40 = *(int4 *)(lVar2 + 0xf8);
uStack_3c = *(int4 *)(lVar2 + 0xfc);
*(int4 *)(lVar2 + 0xf0) = 0;
*(int8 *)(lVar2 + 0xf8) = 4;
local_50 = auVar9._0_8_;
auVar10 = JS_Call(param_1,local_68,local_60,0,3,1,&local_48);
local_58 = auVar10._0_8_;
JS_FreeValue(param_1,CONCAT44(uStack_44,local_48),CONCAT44(uStack_3c,uStack_40));
if (auVar10._8_4_ == 6) {
JS_FreeValue(param_1,local_78,local_70);
JS_FreeValue(param_1,local_68,local_60);
goto LAB_00133ba4;
}
JS_FreeValue(param_1,local_58,auVar10._8_8_);
uVar6 = local_50;
}
JS_FreeValue(param_1,uVar6,auVar9._8_8_);
JS_FreeValue(param_1,local_78,local_70);
JS_FreeValue(param_1,local_68,local_60);
uVar7 = uVar5 & 0xffffffff00000000;
uVar5 = uVar5 & 0xffffffff;
goto LAB_00133bb6;
}
}
LAB_00133ba4:
JS_FreeValue(param_1,uVar5,uVar8);
}
}
uVar5 = 0;
uVar7 = 0;
uVar8 = 6;
LAB_00133bb6:
auVar9._0_8_ = uVar5 | uVar7;
auVar9._8_8_ = uVar8;
return auVar9;
}
|
|
62,308 |
OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
|
int
FaceVertex::initCompleteSubset(Subset * subsetPtr) const {
Subset & subset = *subsetPtr;
//
// Initialize with tags and assign the extent:
//
int numFaces = GetNumFaces();
subset.Initialize(GetTag());
subset._numFacesTotal = (short) numFaces;
if (isInterior()) {
subset._numFacesBefore = 0;
subset._numFacesAfter = (short)(numFaces - 1);
} else if (isOrdered()) {
subset._numFacesBefore = _faceInRing;
subset._numFacesAfter = (short)(numFaces - 1 - subset._numFacesBefore);
} else {
// Unordered faces -- boundary needs to identify its orientation:
subset._numFacesAfter = 0;
for (int f = GetFaceNext(_faceInRing); f >= 0; f = GetFaceNext(f)) {
++ subset._numFacesAfter;
}
subset._numFacesBefore = (short)(numFaces - 1 - subset._numFacesAfter);
}
return subset._numFacesTotal;
}
|
O0
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*) const:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
callq 0xd4690
movq -0x48(%rbp), %rsi
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x1e(%rbp), %rdi
movq %rdi, -0x38(%rbp)
callq 0xd3840
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xd3b10
jmp 0x188c00
leaq -0x1e(%rbp), %rdi
callq 0xc8e30
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x6(%rax)
callq 0xc67c0
testb $0x1, %al
jne 0x188c26
jmp 0x188c60
movq -0x18(%rbp), %rax
movw $0x0, 0x2(%rax)
movl -0x1c(%rbp), %eax
subl $0x1, %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x4(%rax)
jmp 0x188d00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1e(%rbp), %rdi
callq 0xc8e30
jmp 0x188d0e
movq -0x48(%rbp), %rdi
callq 0xcfba0
testb $0x1, %al
jne 0x188c6f
jmp 0x188c9f
movq -0x48(%rbp), %rax
movw 0x9a(%rax), %cx
movq -0x18(%rbp), %rax
movw %cx, 0x2(%rax)
movl -0x1c(%rbp), %eax
subl $0x1, %eax
movq -0x18(%rbp), %rcx
movswl 0x2(%rcx), %ecx
subl %ecx, %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x4(%rax)
jmp 0x188cfe
movq -0x48(%rbp), %rdi
movq -0x18(%rbp), %rax
movw $0x0, 0x4(%rax)
movswl 0x9a(%rdi), %esi
callq 0xd23f0
movl %eax, -0x30(%rbp)
cmpl $0x0, -0x30(%rbp)
jl 0x188ce3
movq -0x18(%rbp), %rax
movw 0x4(%rax), %cx
addw $0x1, %cx
movw %cx, 0x4(%rax)
movq -0x48(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0xd23f0
movl %eax, -0x30(%rbp)
jmp 0x188cbc
movl -0x1c(%rbp), %eax
subl $0x1, %eax
movq -0x18(%rbp), %rcx
movswl 0x4(%rcx), %ecx
subl %ecx, %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x2(%rax)
jmp 0x188d00
movq -0x18(%rbp), %rax
movswl 0x6(%rax), %eax
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0xd58b0
nopw (%rax,%rax)
|
_ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex18initCompleteSubsetEPNS1_16FaceVertexSubsetE:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]; this
mov [rbp+var_48], rdi
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex11GetNumFacesEv; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetNumFaces(void)
mov rsi, [rbp+var_48]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
lea rdi, [rbp+var_1E]; this
mov [rbp+var_38], rdi
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex6GetTagEv; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetTag(void)
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_38]
call __ZN10OpenSubdiv6v3_6_03Bfr16FaceVertexSubset10InitializeENS1_9VertexTagE; OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset::Initialize(OpenSubdiv::v3_6_0::Bfr::VertexTag)
jmp short $+2
loc_188C00:
lea rdi, [rbp+var_1E]; this
call __ZN10OpenSubdiv6v3_6_03Bfr9VertexTagD2Ev; OpenSubdiv::v3_6_0::Bfr::VertexTag::~VertexTag()
mov rdi, [rbp+var_48]; this
mov eax, [rbp+var_1C]
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+6], cx
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex10isInteriorEv; OpenSubdiv::v3_6_0::Bfr::FaceVertex::isInterior(void)
test al, 1
jnz short loc_188C26
jmp short loc_188C60
loc_188C26:
mov rax, [rbp+var_18]
mov word ptr [rax+2], 0
mov eax, [rbp+var_1C]
sub eax, 1
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+4], cx
jmp loc_188D00
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
lea rdi, [rbp+var_1E]; this
call __ZN10OpenSubdiv6v3_6_03Bfr9VertexTagD2Ev; OpenSubdiv::v3_6_0::Bfr::VertexTag::~VertexTag()
jmp loc_188D0E
loc_188C60:
mov rdi, [rbp+var_48]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex9isOrderedEv; OpenSubdiv::v3_6_0::Bfr::FaceVertex::isOrdered(void)
test al, 1
jnz short loc_188C6F
jmp short loc_188C9F
loc_188C6F:
mov rax, [rbp+var_48]
mov cx, [rax+9Ah]
mov rax, [rbp+var_18]
mov [rax+2], cx
mov eax, [rbp+var_1C]
sub eax, 1
mov rcx, [rbp+var_18]
movsx ecx, word ptr [rcx+2]
sub eax, ecx
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+4], cx
jmp short loc_188CFE
loc_188C9F:
mov rdi, [rbp+var_48]; this
mov rax, [rbp+var_18]
mov word ptr [rax+4], 0
movsx esi, word ptr [rdi+9Ah]; int
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex11GetFaceNextEi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceNext(int)
mov [rbp+var_30], eax
loc_188CBC:
cmp [rbp+var_30], 0
jl short loc_188CE3
mov rax, [rbp+var_18]
mov cx, [rax+4]
add cx, 1
mov [rax+4], cx
mov rdi, [rbp+var_48]; this
mov esi, [rbp+var_30]; int
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex11GetFaceNextEi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceNext(int)
mov [rbp+var_30], eax
jmp short loc_188CBC
loc_188CE3:
mov eax, [rbp+var_1C]
sub eax, 1
mov rcx, [rbp+var_18]
movsx ecx, word ptr [rcx+4]
sub eax, ecx
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+2], cx
loc_188CFE:
jmp short $+2
loc_188D00:
mov rax, [rbp+var_18]
movsx eax, word ptr [rax+6]
add rsp, 50h
pop rbp
retn
loc_188D0E:
mov rdi, [rbp+var_28]
call __Unwind_Resume
|
long long OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(
OpenSubdiv::v3_6_0::Bfr::FaceVertex *this,
OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset *a2)
{
int i; // [rsp+20h] [rbp-30h]
_BYTE v4[2]; // [rsp+32h] [rbp-1Eh] BYREF
int NumFaces; // [rsp+34h] [rbp-1Ch]
OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset *v6; // [rsp+38h] [rbp-18h]
OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset *v7; // [rsp+40h] [rbp-10h]
OpenSubdiv::v3_6_0::Bfr::FaceVertex *v8; // [rsp+48h] [rbp-8h]
v8 = this;
v7 = a2;
v6 = a2;
NumFaces = OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetNumFaces(this);
OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetTag((OpenSubdiv::v3_6_0::Bfr::FaceVertex *)v4);
OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset::Initialize(a2, v4);
OpenSubdiv::v3_6_0::Bfr::VertexTag::~VertexTag((OpenSubdiv::v3_6_0::Bfr::VertexTag *)v4);
*((_WORD *)v6 + 3) = NumFaces;
if ( (OpenSubdiv::v3_6_0::Bfr::FaceVertex::isInterior(this) & 1) != 0 )
{
*((_WORD *)v6 + 1) = 0;
*((_WORD *)v6 + 2) = NumFaces - 1;
}
else if ( (OpenSubdiv::v3_6_0::Bfr::FaceVertex::isOrdered(this) & 1) != 0 )
{
*((_WORD *)v6 + 1) = *((_WORD *)this + 77);
*((_WORD *)v6 + 2) = NumFaces - 1 - *((_WORD *)v6 + 1);
}
else
{
*((_WORD *)v6 + 2) = 0;
for ( i = OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceNext(this, *((__int16 *)this + 77));
i >= 0;
i = OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceNext(this, i) )
{
++*((_WORD *)v6 + 2);
}
*((_WORD *)v6 + 1) = NumFaces - 1 - *((_WORD *)v6 + 2);
}
return (unsigned int)*((__int16 *)v6 + 3);
}
| |||
62,309 |
OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
|
int
FaceVertex::initCompleteSubset(Subset * subsetPtr) const {
Subset & subset = *subsetPtr;
//
// Initialize with tags and assign the extent:
//
int numFaces = GetNumFaces();
subset.Initialize(GetTag());
subset._numFacesTotal = (short) numFaces;
if (isInterior()) {
subset._numFacesBefore = 0;
subset._numFacesAfter = (short)(numFaces - 1);
} else if (isOrdered()) {
subset._numFacesBefore = _faceInRing;
subset._numFacesAfter = (short)(numFaces - 1 - subset._numFacesBefore);
} else {
// Unordered faces -- boundary needs to identify its orientation:
subset._numFacesAfter = 0;
for (int f = GetFaceNext(_faceInRing); f >= 0; f = GetFaceNext(f)) {
++ subset._numFacesAfter;
}
subset._numFacesBefore = (short)(numFaces - 1 - subset._numFacesAfter);
}
return subset._numFacesTotal;
}
|
O2
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*) const:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movzwl 0x2(%rdi), %r15d
movzwl 0x98(%rdi), %eax
movw %ax, (%rsi)
andl $0x0, 0x2(%rsi)
andl $0x0, 0x8(%rsi)
movw %r15w, 0x6(%rsi)
movzwl 0x98(%rdi), %eax
testb $0x1, %al
jne 0x9692b
leal -0x1(%r15), %eax
jmp 0x96944
movq %rdi, %r14
btl $0x8, %eax
movzwl 0x9a(%rdi), %eax
jb 0x9694a
movw %ax, 0x2(%rbx)
notl %eax
addl %r15d, %eax
movw %ax, 0x4(%rbx)
jmp 0x96974
cwtl
movq %r14, %rdi
movl %eax, %esi
callq 0x54170
movzwl 0x4(%rbx), %ecx
testl %eax, %eax
js 0x96965
incl %ecx
movw %cx, 0x4(%rbx)
jmp 0x9694b
notl %ecx
addl %ecx, %r15d
movw %r15w, 0x2(%rbx)
movzwl 0x6(%rbx), %r15d
movswl %r15w, %eax
popq %rbx
popq %r14
popq %r15
retq
|
_ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex18initCompleteSubsetEPNS1_16FaceVertexSubsetE:
push r15
push r14
push rbx
mov rbx, rsi
movzx r15d, word ptr [rdi+2]
movzx eax, word ptr [rdi+98h]
mov [rsi], ax
and dword ptr [rsi+2], 0
and dword ptr [rsi+8], 0
mov [rsi+6], r15w
movzx eax, word ptr [rdi+98h]
test al, 1
jnz short loc_9692B
lea eax, [r15-1]
jmp short loc_96944
loc_9692B:
mov r14, rdi
bt eax, 8
movzx eax, word ptr [rdi+9Ah]
jb short loc_9694A
mov [rbx+2], ax
not eax
add eax, r15d
loc_96944:
mov [rbx+4], ax
jmp short loc_96974
loc_9694A:
cwde
loc_9694B:
mov rdi, r14; this
mov esi, eax; int
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex11GetFaceNextEi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceNext(int)
movzx ecx, word ptr [rbx+4]
test eax, eax
js short loc_96965
inc ecx
mov [rbx+4], cx
jmp short loc_9694B
loc_96965:
not ecx
add r15d, ecx
mov [rbx+2], r15w
movzx r15d, word ptr [rbx+6]
loc_96974:
movsx eax, r15w
pop rbx
pop r14
pop r15
retn
|
long long OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(
OpenSubdiv::v3_6_0::Bfr::FaceVertex *this,
long long a2)
{
__int16 v2; // r15
__int16 v3; // ax
__int16 v4; // ax
bool v5; // cf
int FaceNext; // eax
__int16 v7; // cx
v2 = *((_WORD *)this + 1);
*(_WORD *)a2 = *((_WORD *)this + 76);
*(_DWORD *)(a2 + 2) = 0;
*(_DWORD *)(a2 + 8) = 0;
*(_WORD *)(a2 + 6) = v2;
v3 = *((_WORD *)this + 76);
if ( (v3 & 1) == 0 )
{
v4 = v2 - 1;
LABEL_5:
*(_WORD *)(a2 + 4) = v4;
return (unsigned int)v2;
}
v5 = (v3 & 0x100) != 0;
LOWORD(FaceNext) = *((_WORD *)this + 77);
if ( !v5 )
{
*(_WORD *)(a2 + 2) = FaceNext;
v4 = v2 + ~(_WORD)FaceNext;
goto LABEL_5;
}
FaceNext = (__int16)FaceNext;
while ( 1 )
{
FaceNext = OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceNext(this, FaceNext);
v7 = *(_WORD *)(a2 + 4);
if ( FaceNext < 0 )
break;
*(_WORD *)(a2 + 4) = v7 + 1;
}
*(_WORD *)(a2 + 2) = ~v7 + v2;
return (unsigned int)*(__int16 *)(a2 + 6);
}
|
initCompleteSubset:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOVZX R15D,word ptr [RDI + 0x2]
MOVZX EAX,word ptr [RDI + 0x98]
MOV word ptr [RSI],AX
AND dword ptr [RSI + 0x2],0x0
AND dword ptr [RSI + 0x8],0x0
MOV word ptr [RSI + 0x6],R15W
MOVZX EAX,word ptr [RDI + 0x98]
TEST AL,0x1
JNZ 0x0019692b
LEA EAX,[R15 + -0x1]
JMP 0x00196944
LAB_0019692b:
MOV R14,RDI
BT EAX,0x8
MOVZX EAX,word ptr [RDI + 0x9a]
JC 0x0019694a
MOV word ptr [RBX + 0x2],AX
NOT EAX
ADD EAX,R15D
LAB_00196944:
MOV word ptr [RBX + 0x4],AX
JMP 0x00196974
LAB_0019694a:
CWDE
LAB_0019694b:
MOV RDI,R14
MOV ESI,EAX
CALL 0x00154170
MOVZX ECX,word ptr [RBX + 0x4]
TEST EAX,EAX
JS 0x00196965
INC ECX
MOV word ptr [RBX + 0x4],CX
JMP 0x0019694b
LAB_00196965:
NOT ECX
ADD R15D,ECX
MOV word ptr [RBX + 0x2],R15W
MOVZX R15D,word ptr [RBX + 0x6]
LAB_00196974:
MOVSX EAX,R15W
POP RBX
POP R14
POP R15
RET
|
/* OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*)
const */
int __thiscall
OpenSubdiv::v3_6_0::Bfr::FaceVertex::initCompleteSubset(FaceVertex *this,FaceVertexSubset *param_1)
{
ushort uVar1;
short sVar2;
int iVar3;
short sVar4;
sVar4 = *(short *)(this + 2);
*(int2 *)param_1 = *(int2 *)(this + 0x98);
*(int4 *)(param_1 + 2) = 0;
*(int4 *)(param_1 + 8) = 0;
*(short *)(param_1 + 6) = sVar4;
if ((*(ushort *)(this + 0x98) & 1) == 0) {
sVar2 = sVar4 + -1;
}
else {
uVar1 = *(ushort *)(this + 0x9a);
if ((*(ushort *)(this + 0x98) >> 8 & 1) != 0) {
iVar3 = (int)(short)uVar1;
while( true ) {
iVar3 = GetFaceNext(this,iVar3);
if (iVar3 < 0) break;
*(ushort *)(param_1 + 4) = *(ushort *)(param_1 + 4) + 1;
}
*(ushort *)(param_1 + 2) = sVar4 + ~*(ushort *)(param_1 + 4);
sVar4 = *(short *)(param_1 + 6);
goto LAB_00196974;
}
*(ushort *)(param_1 + 2) = uVar1;
sVar2 = ~uVar1 + sVar4;
}
*(short *)(param_1 + 4) = sVar2;
LAB_00196974:
return (int)sVar4;
}
|
|
62,310 |
my_hash_sort_latin1_de
|
eloqsql/strings/ctype-latin1.c
|
void my_hash_sort_latin1_de(CHARSET_INFO *cs __attribute__((unused)),
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
const uchar *end;
register ulong m1= *nr1, m2= *nr2;
/*
Remove end space. We have to do this to be able to compare
'AE' and 'Ä' as identical
*/
end= skip_trailing_space(key, len);
for (; key < end ; key++)
{
uint X= (uint) combo1map[(uint) *key];
MY_HASH_ADD(m1, m2, X);
if ((X= combo2map[*key]))
{
MY_HASH_ADD(m1, m2, X);
}
}
*nr1= m1;
*nr2= m2;
}
|
O3
|
c
|
my_hash_sort_latin1_de:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
leaq (%rsi,%rdx), %r9
cmpq $0x15, %rdx
jb 0x3eb7f
movq %r9, %rdx
andq $-0x4, %rdx
cmpq %rsi, %rdx
jbe 0x3eb7f
leaq 0x3(%rsi), %rax
andq $-0x4, %rax
movq %r9, %rdi
movb -0x1(%r9), %r10b
cmpq %rdx, %r9
jbe 0x3ec28
leaq -0x1(%rdi), %r9
cmpb $0x20, %r10b
je 0x3eb63
jmp 0x3eb82
movq %r9, %rdi
movq (%rcx), %r11
movq (%r8), %rax
cmpq %rsi, %rdi
jbe 0x3ec15
leaq -0x1(%rdi), %rdx
cmpb $0x20, -0x1(%rdi)
movq %rdx, %rdi
je 0x3eb88
incq %rdx
leaq 0x16bd68(%rip), %r9 # 0x1aa910
leaq 0x16be61(%rip), %r10 # 0x1aaa10
movq %r11, %rdi
movzbl (%rsi), %r14d
movzbl (%r14,%r9), %ebx
movl %r11d, %r15d
andl $0x3f, %r15d
addq %rax, %r15
imulq %rbx, %r15
shlq $0x8, %rdi
addq %r15, %rdi
xorq %r11, %rdi
leaq 0x3(%rax), %rbx
movzbl (%r14,%r10), %r11d
testq %r11, %r11
je 0x3ec05
movl %edi, %r14d
andl $0x3f, %r14d
addq %rbx, %r14
imulq %r11, %r14
movq %rdi, %r11
shlq $0x8, %r11
addq %r14, %r11
xorq %r11, %rdi
addq $0x6, %rax
movq %rax, %rbx
jmp 0x3ec08
movq %rbx, %rax
incq %rsi
movq %rdi, %r11
cmpq %rdx, %rsi
jb 0x3ebb2
jmp 0x3ec1b
movq %r11, %rdi
movq %rax, %rbx
movq %rdi, (%rcx)
movq %rbx, (%r8)
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x20, %r10b
setne %r9b
cmpq %rdx, %rax
setae %dl
orb %r9b, %dl
jne 0x3eb82
movq %rdi, %rdx
movq %rdx, %rdi
cmpq %rax, %rdx
jbe 0x3eb82
leaq -0x4(%rdi), %rdx
cmpl $0x20202020, -0x4(%rdi) # imm = 0x20202020
je 0x3ec42
jmp 0x3eb82
|
my_hash_sort_latin1_de:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
lea r9, [rsi+rdx]
cmp rdx, 15h
jb short loc_3EB7F
mov rdx, r9
and rdx, 0FFFFFFFFFFFFFFFCh
cmp rdx, rsi
jbe short loc_3EB7F
lea rax, [rsi+3]
and rax, 0FFFFFFFFFFFFFFFCh
loc_3EB63:
mov rdi, r9
mov r10b, [r9-1]
cmp r9, rdx
jbe loc_3EC28
lea r9, [rdi-1]
cmp r10b, 20h ; ' '
jz short loc_3EB63
jmp short loc_3EB82
loc_3EB7F:
mov rdi, r9
loc_3EB82:
mov r11, [rcx]
mov rax, [r8]
loc_3EB88:
cmp rdi, rsi
jbe loc_3EC15
lea rdx, [rdi-1]
cmp byte ptr [rdi-1], 20h ; ' '
mov rdi, rdx
jz short loc_3EB88
inc rdx
lea r9, combo1map
lea r10, combo2map
mov rdi, r11
loc_3EBB2:
movzx r14d, byte ptr [rsi]
movzx ebx, byte ptr [r14+r9]
mov r15d, r11d
and r15d, 3Fh
add r15, rax
imul r15, rbx
shl rdi, 8
add rdi, r15
xor rdi, r11
lea rbx, [rax+3]
movzx r11d, byte ptr [r14+r10]
test r11, r11
jz short loc_3EC05
mov r14d, edi
and r14d, 3Fh
add r14, rbx
imul r14, r11
mov r11, rdi
shl r11, 8
add r11, r14
xor rdi, r11
add rax, 6
mov rbx, rax
jmp short loc_3EC08
loc_3EC05:
mov rax, rbx
loc_3EC08:
inc rsi
mov r11, rdi
cmp rsi, rdx
jb short loc_3EBB2
jmp short loc_3EC1B
loc_3EC15:
mov rdi, r11
mov rbx, rax
loc_3EC1B:
mov [rcx], rdi
mov [r8], rbx
pop rbx
pop r14
pop r15
pop rbp
retn
loc_3EC28:
cmp r10b, 20h ; ' '
setnz r9b
cmp rax, rdx
setnb dl
or dl, r9b
jnz loc_3EB82
mov rdx, rdi
loc_3EC42:
mov rdi, rdx
cmp rdx, rax
jbe loc_3EB82
lea rdx, [rdi-4]
cmp dword ptr [rdi-4], 20202020h
jz short loc_3EC42
jmp loc_3EB82
|
long long my_hash_sort_latin1_de(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
long long *a4,
long long *a5)
{
unsigned long long v5; // r9
unsigned long long v6; // rdx
unsigned long long v7; // rax
unsigned long long v8; // rdi
char v9; // r10
long long v10; // r11
long long result; // rax
unsigned long long v12; // rdx
unsigned long long v14; // rdx
long long v15; // rdi
long long v16; // r14
long long v17; // rbx
unsigned long long v18; // rdx
v5 = (unsigned long long)&a2[a3];
if ( a3 < 0x15 || (v6 = v5 & 0xFFFFFFFFFFFFFFFCLL, (v5 & 0xFFFFFFFFFFFFFFFCLL) <= (unsigned long long)a2) )
{
v8 = v5;
}
else
{
v7 = (unsigned long long)(a2 + 3) & 0xFFFFFFFFFFFFFFFCLL;
while ( 1 )
{
v8 = v5;
v9 = *(_BYTE *)(v5 - 1);
if ( v5 <= v6 )
break;
--v5;
if ( v9 != 32 )
goto LABEL_8;
}
if ( v9 == 32 && v7 < v6 )
{
v18 = v5;
do
{
v8 = v18;
if ( v18 <= v7 )
break;
v18 -= 4LL;
}
while ( *(_DWORD *)(v8 - 4) == 538976288 );
}
}
LABEL_8:
v10 = *a4;
result = *a5;
do
{
if ( v8 <= (unsigned long long)a2 )
{
v15 = *a4;
v17 = *a5;
goto LABEL_18;
}
v12 = v8 - 1;
}
while ( *(_BYTE *)--v8 == 32 );
v14 = v12 + 1;
v15 = *a4;
do
{
v16 = *a2;
v15 = v10 ^ (combo1map[v16] * (result + (v10 & 0x3F)) + (v15 << 8));
v17 = result + 3;
if ( combo2map[v16] )
{
v15 ^= combo2map[v16] * (v17 + (v15 & 0x3F)) + (v15 << 8);
result += 6LL;
v17 = result;
}
else
{
result += 3LL;
}
++a2;
v10 = v15;
}
while ( (unsigned long long)a2 < v14 );
LABEL_18:
*a4 = v15;
*a5 = v17;
return result;
}
|
my_hash_sort_latin1_de:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
LEA R9,[RSI + RDX*0x1]
CMP RDX,0x15
JC 0x0013eb7f
MOV RDX,R9
AND RDX,-0x4
CMP RDX,RSI
JBE 0x0013eb7f
LEA RAX,[RSI + 0x3]
AND RAX,-0x4
LAB_0013eb63:
MOV RDI,R9
MOV R10B,byte ptr [R9 + -0x1]
CMP R9,RDX
JBE 0x0013ec28
LEA R9,[RDI + -0x1]
CMP R10B,0x20
JZ 0x0013eb63
JMP 0x0013eb82
LAB_0013eb7f:
MOV RDI,R9
LAB_0013eb82:
MOV R11,qword ptr [RCX]
MOV RAX,qword ptr [R8]
LAB_0013eb88:
CMP RDI,RSI
JBE 0x0013ec15
LEA RDX,[RDI + -0x1]
CMP byte ptr [RDI + -0x1],0x20
MOV RDI,RDX
JZ 0x0013eb88
INC RDX
LEA R9,[0x2aa910]
LEA R10,[0x2aaa10]
MOV RDI,R11
LAB_0013ebb2:
MOVZX R14D,byte ptr [RSI]
MOVZX EBX,byte ptr [R14 + R9*0x1]
MOV R15D,R11D
AND R15D,0x3f
ADD R15,RAX
IMUL R15,RBX
SHL RDI,0x8
ADD RDI,R15
XOR RDI,R11
LEA RBX,[RAX + 0x3]
MOVZX R11D,byte ptr [R14 + R10*0x1]
TEST R11,R11
JZ 0x0013ec05
MOV R14D,EDI
AND R14D,0x3f
ADD R14,RBX
IMUL R14,R11
MOV R11,RDI
SHL R11,0x8
ADD R11,R14
XOR RDI,R11
ADD RAX,0x6
MOV RBX,RAX
JMP 0x0013ec08
LAB_0013ec05:
MOV RAX,RBX
LAB_0013ec08:
INC RSI
MOV R11,RDI
CMP RSI,RDX
JC 0x0013ebb2
JMP 0x0013ec1b
LAB_0013ec15:
MOV RDI,R11
MOV RBX,RAX
LAB_0013ec1b:
MOV qword ptr [RCX],RDI
MOV qword ptr [R8],RBX
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0013ec28:
CMP R10B,0x20
SETNZ R9B
CMP RAX,RDX
SETNC DL
OR DL,R9B
JNZ 0x0013eb82
MOV RDX,RDI
LAB_0013ec42:
MOV RDI,RDX
CMP RDX,RAX
JBE 0x0013eb82
LEA RDX,[RDI + -0x4]
CMP dword ptr [RDI + -0x4],0x20202020
JZ 0x0013ec42
JMP 0x0013eb82
|
void my_hash_sort_latin1_de
(int8 param_1,byte *param_2,ulong param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
long lVar3;
byte *pbVar4;
byte *pbVar5;
ulong uVar6;
pbVar5 = param_2 + param_3;
if ((0x14 < param_3) && (pbVar4 = (byte *)((ulong)pbVar5 & 0xfffffffffffffffc), param_2 < pbVar4))
{
pbVar1 = pbVar5;
do {
pbVar5 = pbVar1;
if (pbVar5 <= pbVar4) {
pbVar1 = pbVar5;
if ((byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc) < pbVar4 && pbVar5[-1] == 0x20)
goto LAB_0013ec42;
break;
}
pbVar1 = pbVar5 + -1;
} while (pbVar5[-1] == 0x20);
}
goto LAB_0013eb82;
while (pbVar1 = pbVar5 + -4, *(int *)(pbVar5 + -4) == 0x20202020) {
LAB_0013ec42:
pbVar5 = pbVar1;
if (pbVar5 <= (byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc)) break;
}
LAB_0013eb82:
uVar6 = *param_4;
lVar2 = *param_5;
do {
pbVar4 = pbVar5;
lVar3 = lVar2;
if (pbVar4 <= param_2) goto LAB_0013ec1b;
pbVar5 = pbVar4 + -1;
} while (pbVar4[-1] == 0x20);
do {
uVar6 = uVar6 * 0x100 + ((ulong)((uint)uVar6 & 0x3f) + lVar2) * (ulong)(byte)combo1map[*param_2]
^ uVar6;
lVar3 = lVar2 + 3;
if ((ulong)(byte)combo2map[*param_2] != 0) {
uVar6 = uVar6 ^ uVar6 * 0x100 +
((ulong)((uint)uVar6 & 0x3f) + lVar3) * (ulong)(byte)combo2map[*param_2];
lVar3 = lVar2 + 6;
}
param_2 = param_2 + 1;
lVar2 = lVar3;
} while (param_2 < pbVar4);
LAB_0013ec1b:
*param_4 = uVar6;
*param_5 = lVar3;
return;
}
|
|
62,311 |
minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
|
monkey531[P]llama/common/minja.hpp
|
Value do_evaluate(const std::shared_ptr<Context> & context) const override {
auto result = Value::object();
for (const auto& [key, value] : elements) {
if (!key) throw std::runtime_error("Dict key is null");
if (!value) throw std::runtime_error("Dict value is null");
result.set(key->evaluate(context), value->evaluate(context));
}
return result;
}
|
O3
|
cpp
|
minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x30, %edi
callq 0x1a8d0
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x9ba29(%rip), %rcx # 0x12a448
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
leaq 0xa8(%rsp), %r12
movq %rax, 0x8(%r12)
movq %rcx, (%r12)
movq %rbx, (%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8eef6
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x8ea68
callq 0x6d9b6
movq 0x20(%r15), %rbx
movq 0x28(%r15), %r15
cmpq %r15, %rbx
je 0x8ebcd
leaq 0x58(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x8ebe3
cmpq $0x0, 0x10(%rbx)
je 0x8ec01
movq %r13, %rdi
movq %r14, %rdx
callq 0x860d4
movq 0x10(%rbx), %rsi
movq %rbp, %rdi
movq %r14, %rdx
callq 0x860d4
movq (%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x8ecf6
leaq 0x48(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58aa4
movq %r12, %rdi
callq 0x5df92
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x8eae9
callq 0x6d9b6
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x8eaf8
callq 0x6d9b6
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8eb07
callq 0x6d9b6
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x8eb3d
movq 0x9d470(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x8eb28
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x8eb32
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x8eb3d
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x98(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58aa4
movq %r12, %rdi
callq 0x5df92
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x8eb69
callq 0x6d9b6
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x8eb7b
callq 0x6d9b6
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x8eb8a
callq 0x6d9b6
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x8ebc0
movq 0x9d3ed(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x8ebab
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x8ebb5
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x8ebc0
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x20, %rbx
cmpq %r15, %rbx
jne 0x8ea83
movq (%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a450
movq %rax, %r15
leaq 0x61e3a(%rip), %rsi # 0xf0a31
movq %rax, %rdi
callq 0x1a330
jmp 0x8ec1d
movl $0x10, %edi
callq 0x1a450
movq %rax, %r15
leaq 0x61e2d(%rip), %rsi # 0xf0a42
movq %rax, %rdi
callq 0x1a330
movq 0x9d3cc(%rip), %rsi # 0x12bff0
movq 0x9d335(%rip), %rdx # 0x12bf60
movq %r15, %rdi
callq 0x1af30
jmp 0x8ec35
movq %rax, %r14
movq %r15, %rdi
callq 0x1a690
jmp 0x8ec65
jmp 0x8ec62
movq %rax, %r14
jmp 0x8ec56
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x863c6
leaq 0x58(%rsp), %rdi
callq 0x863c6
jmp 0x8ec65
movq %rax, %r14
movq (%rsp), %rdi
callq 0x863c6
movq %r14, %rdi
callq 0x1afb0
|
_ZNK5minja8DictExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov qword ptr [rax+20h], 0
lea r12, [rsp+0E8h+var_40]
mov [r12+8], rax
mov [r12], rcx
mov [rsp+0E8h+var_E8], rbx
mov rdi, rbx
mov rsi, r12
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
mov rdi, [r12+8]
test rdi, rdi
jz short loc_8EA68
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EA68:
mov rbx, [r15+20h]
mov r15, [r15+28h]
cmp rbx, r15
jz loc_8EBCD
lea r13, [rsp+0E8h+var_90]
lea rbp, [rsp+0E8h+var_E0]
loc_8EA83:
mov rsi, [rbx]
test rsi, rsi
jz loc_8EBE3
cmp qword ptr [rbx+10h], 0
jz loc_8EC01
mov rdi, r13
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rsi, [rbx+10h]
mov rdi, rbp
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, [rsp+0E8h+var_E8]; this
mov rsi, r13; minja::Value *
mov rdx, rbp; minja::Value *
call _ZN5minja5Value3setERKS0_S2_; minja::Value::set(minja::Value const&,minja::Value const&)
lea r12, [rsp+0E8h+var_A0]
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+0E8h+var_A8]
test rdi, rdi
jz short loc_8EAE9
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EAE9:
mov rdi, [rsp+0E8h+var_B8]
test rdi, rdi
jz short loc_8EAF8
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EAF8:
mov rdi, [rsp+0E8h+var_C8]
test rdi, rdi
jz short loc_8EB07
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EB07:
mov rdi, [rsp+0E8h+var_D8]
test rdi, rdi
jz short loc_8EB3D
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8EB28
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_8EB32
loc_8EB28:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_8EB32:
cmp eax, 1
jnz short loc_8EB3D
mov rax, [rdi]
call qword ptr [rax+18h]
loc_8EB3D:
lea r12, [rsp+0E8h+var_50]
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+0E8h+var_58]
test rdi, rdi
jz short loc_8EB69
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EB69:
mov rdi, [rsp+0E8h+var_68]
test rdi, rdi
jz short loc_8EB7B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EB7B:
mov rdi, [rsp+0E8h+var_78]
test rdi, rdi
jz short loc_8EB8A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EB8A:
mov rdi, [rsp+0E8h+var_88]
test rdi, rdi
jz short loc_8EBC0
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8EBAB
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_8EBB5
loc_8EBAB:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_8EBB5:
cmp eax, 1
jnz short loc_8EBC0
mov rax, [rdi]
call qword ptr [rax+18h]
loc_8EBC0:
add rbx, 20h ; ' '
cmp rbx, r15
jnz loc_8EA83
loc_8EBCD:
mov rax, [rsp+0E8h+var_E8]
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8EBE3:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aDictKeyIsNull; "Dict key is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_8EC1D
loc_8EC01:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aDictValueIsNul; "Dict value is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_8EC1D:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short $+2
loc_8EC35:
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_8EC65
jmp short loc_8EC62
mov r14, rax
jmp short loc_8EC56
mov r14, rax
lea rdi, [rsp+0E8h+var_E0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_8EC56:
lea rdi, [rsp+0E8h+var_90]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_8EC65
loc_8EC62:
mov r14, rax
loc_8EC65:
mov rdi, [rsp+0E8h+var_E8]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r14
call __Unwind_Resume
|
minja::Value * minja::DictExpr::do_evaluate(minja::Value *a1, long long a2)
{
long long v2; // rax
void (****v3)(void); // rbx
void (****v4)(void); // r15
long long v5; // rdi
signed __int32 v6; // eax
long long v7; // rdi
signed __int32 v8; // eax
std::runtime_error *exception; // r15
_BYTE v12[8]; // [rsp+8h] [rbp-E0h] BYREF
long long v13; // [rsp+10h] [rbp-D8h]
volatile signed __int32 *v14; // [rsp+20h] [rbp-C8h]
volatile signed __int32 *v15; // [rsp+30h] [rbp-B8h]
volatile signed __int32 *v16; // [rsp+40h] [rbp-A8h]
char v17[16]; // [rsp+48h] [rbp-A0h] BYREF
_BYTE v18[8]; // [rsp+58h] [rbp-90h] BYREF
long long v19; // [rsp+60h] [rbp-88h]
volatile signed __int32 *v20; // [rsp+70h] [rbp-78h]
volatile signed __int32 *v21; // [rsp+80h] [rbp-68h]
volatile signed __int32 *v22; // [rsp+90h] [rbp-58h]
char v23[16]; // [rsp+98h] [rbp-50h] BYREF
long long v24; // [rsp+A8h] [rbp-40h] BYREF
volatile signed __int32 *v25; // [rsp+B0h] [rbp-38h]
v2 = operator new(0x30uLL);
*(_QWORD *)(v2 + 8) = 0x100000001LL;
*(_QWORD *)v2 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v2 + 16) = 0LL;
*(_QWORD *)(v2 + 32) = 0LL;
v25 = (volatile signed __int32 *)v2;
v24 = v2 + 16;
minja::Value::Value(a1, &v24);
if ( v25 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v25);
v3 = *(void (*****)(void))(a2 + 32);
v4 = *(void (*****)(void))(a2 + 40);
if ( v3 != v4 )
{
while ( *v3 )
{
if ( !v3[2] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Dict value is null");
LABEL_34:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v18, *v3);
minja::Expression::evaluate((long long)v12, v3[2]);
minja::Value::set(a1, (const minja::Value *)v18, (const minja::Value *)v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v17);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v17);
if ( v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
v5 = v13;
if ( v13 )
{
if ( _libc_single_threaded )
{
v6 = *(_DWORD *)(v13 + 12);
*(_DWORD *)(v13 + 12) = v6 - 1;
}
else
{
v6 = _InterlockedExchangeAdd((volatile signed __int32 *)(v13 + 12), 0xFFFFFFFF);
}
if ( v6 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v5 + 24LL))(v5, 0LL);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v23);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v23);
if ( v22 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v22);
if ( v21 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v21);
if ( v20 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v20);
v7 = v19;
if ( v19 )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(v19 + 12);
*(_DWORD *)(v19 + 12) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(v19 + 12), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
v3 += 4;
if ( v3 == v4 )
return a1;
}
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Dict key is null");
goto LABEL_34;
}
return a1;
}
|
do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV EDI,0x30
CALL 0x0011a8d0
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x22a448]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RAX + 0x20],0x0
LEA R12,[RSP + 0xa8]
MOV qword ptr [R12 + 0x8],RAX
MOV qword ptr [R12],RCX
MOV qword ptr [RSP],RBX
MOV RDI,RBX
MOV RSI,R12
CALL 0x0018eef6
MOV RDI,qword ptr [R12 + 0x8]
TEST RDI,RDI
JZ 0x0018ea68
CALL 0x0016d9b6
LAB_0018ea68:
MOV RBX,qword ptr [R15 + 0x20]
MOV R15,qword ptr [R15 + 0x28]
CMP RBX,R15
JZ 0x0018ebcd
LEA R13,[RSP + 0x58]
LEA RBP,[RSP + 0x8]
LAB_0018ea83:
MOV RSI,qword ptr [RBX]
TEST RSI,RSI
JZ 0x0018ebe3
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0018ec01
LAB_0018ea9a:
MOV RDI,R13
MOV RDX,R14
CALL 0x001860d4
MOV RSI,qword ptr [RBX + 0x10]
LAB_0018eaa9:
MOV RDI,RBP
MOV RDX,R14
CALL 0x001860d4
LAB_0018eab4:
MOV RDI,qword ptr [RSP]
MOV RSI,R13
MOV RDX,RBP
CALL 0x0018ecf6
LAB_0018eac3:
LEA R12,[RSP + 0x48]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00158aa4
MOV RDI,R12
CALL 0x0015df92
MOV RDI,qword ptr [RSP + 0x40]
TEST RDI,RDI
JZ 0x0018eae9
CALL 0x0016d9b6
LAB_0018eae9:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x0018eaf8
CALL 0x0016d9b6
LAB_0018eaf8:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0018eb07
CALL 0x0016d9b6
LAB_0018eb07:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x0018eb3d
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0018eb28
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0018eb32
LAB_0018eb28:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0018eb32:
CMP EAX,0x1
JNZ 0x0018eb3d
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0018eb3d:
LEA R12,[RSP + 0x98]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00158aa4
MOV RDI,R12
CALL 0x0015df92
MOV RDI,qword ptr [RSP + 0x90]
TEST RDI,RDI
JZ 0x0018eb69
CALL 0x0016d9b6
LAB_0018eb69:
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x0018eb7b
CALL 0x0016d9b6
LAB_0018eb7b:
MOV RDI,qword ptr [RSP + 0x70]
TEST RDI,RDI
JZ 0x0018eb8a
CALL 0x0016d9b6
LAB_0018eb8a:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x0018ebc0
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0018ebab
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0018ebb5
LAB_0018ebab:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0018ebb5:
CMP EAX,0x1
JNZ 0x0018ebc0
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0018ebc0:
ADD RBX,0x20
CMP RBX,R15
JNZ 0x0018ea83
LAB_0018ebcd:
MOV RAX,qword ptr [RSP]
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018ebe3:
MOV EDI,0x10
CALL 0x0011a450
MOV R15,RAX
LAB_0018ebf0:
LEA RSI,[0x1f0a31]
MOV RDI,RAX
CALL 0x0011a330
LAB_0018ebff:
JMP 0x0018ec1d
LAB_0018ec01:
MOV EDI,0x10
CALL 0x0011a450
MOV R15,RAX
LAB_0018ec0e:
LEA RSI,[0x1f0a42]
MOV RDI,RAX
CALL 0x0011a330
LAB_0018ec1d:
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,R15
CALL 0x0011af30
|
/* minja::DictExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
DictExpr * __thiscall minja::DictExpr::do_evaluate(DictExpr *this,shared_ptr *param_1)
{
int *piVar1;
int8 *puVar2;
int iVar3;
runtime_error *this_00;
int8 *puVar4;
Expression local_e0 [8];
long *local_d8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_c8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_b8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_a8;
data local_a0 [16];
Expression local_90 [8];
long *local_88;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
data local_50 [16];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
local_38 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x30);
*(int8 *)(local_38 + 8) = 0x100000001;
*(int ***)local_38 = &PTR___Sp_counted_ptr_inplace_0022a458;
local_40 = local_38 + 0x10;
*(int8 *)(local_38 + 0x10) = 0;
*(int8 *)(local_38 + 0x18) = 0;
*(int8 *)(local_38 + 0x20) = 0;
Value::Value((Value *)this,(shared_ptr *)&local_40);
if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38);
}
puVar4 = *(int8 **)(param_1 + 0x20);
puVar2 = *(int8 **)(param_1 + 0x28);
if (puVar4 != puVar2) {
do {
if ((shared_ptr *)*puVar4 == (shared_ptr *)0x0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018ebf0 to 0018ebfe has its CatchHandler @ 0018ec35 */
std::runtime_error::runtime_error(this_00,"Dict key is null");
LAB_0018ec1d:
/* try { // try from 0018ec1d to 0018ec32 has its CatchHandler @ 0018ec62 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
if (puVar4[2] == 0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018ec0e to 0018ec1c has its CatchHandler @ 0018ec33 */
std::runtime_error::runtime_error(this_00,"Dict value is null");
goto LAB_0018ec1d;
}
/* try { // try from 0018ea9a to 0018eaa4 has its CatchHandler @ 0018ec42 */
Expression::evaluate(local_90,(shared_ptr *)*puVar4);
/* try { // try from 0018eaa9 to 0018eab3 has its CatchHandler @ 0018ec44 */
Expression::evaluate(local_e0,(shared_ptr *)puVar4[2]);
/* try { // try from 0018eab4 to 0018eac2 has its CatchHandler @ 0018ec49 */
Value::set((Value *)this,(Value *)local_90,(Value *)local_e0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_a0,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_a0);
if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8);
}
if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8);
}
if (local_c8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_c8);
}
if (local_d8 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_d8 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_d8 + 0xc);
*(int *)((long)local_d8 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_d8 + 0x18))();
}
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_50,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_50);
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_78);
}
if (local_88 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_88 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_88 + 0xc);
*(int *)((long)local_88 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_88 + 0x18))();
}
}
puVar4 = puVar4 + 4;
} while (puVar4 != puVar2);
}
return this;
}
|
|
62,312 |
js_Date_parse
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_Date_parse(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue s, rv;
int fields[9];
double fields1[9];
double d;
int i, c;
JSString *sp;
uint8_t buf[128];
BOOL is_local;
rv = JS_NAN;
s = JS_ToString(ctx, argv[0]);
if (JS_IsException(s))
return JS_EXCEPTION;
sp = JS_VALUE_GET_STRING(s);
/* convert the string as a byte array */
for (i = 0; i < sp->len && i < (int)countof(buf) - 1; i++) {
c = string_get(sp, i);
if (c > 255)
c = (c == 0x2212) ? '-' : 'x';
buf[i] = c;
}
buf[i] = '\0';
if (js_date_parse_isostring(buf, fields, &is_local)
|| js_date_parse_otherstring(buf, fields, &is_local)) {
static int const field_max[6] = { 0, 11, 31, 24, 59, 59 };
BOOL valid = TRUE;
/* check field maximum values */
for (i = 1; i < 6; i++) {
if (fields[i] > field_max[i])
valid = FALSE;
}
/* special case 24:00:00.000 */
if (fields[3] == 24 && (fields[4] | fields[5] | fields[6]))
valid = FALSE;
if (valid) {
for(i = 0; i < 7; i++)
fields1[i] = fields[i];
d = set_date_fields(fields1, is_local) - fields[8] * 60000;
rv = JS_NewFloat64(ctx, d);
}
}
JS_FreeValue(ctx, s);
return rv;
}
|
O0
|
c
|
js_Date_parse:
subq $0x1e8, %rsp # imm = 0x1E8
movq %rsi, 0x1a8(%rsp)
movq %rdx, 0x1b0(%rsp)
movq %rdi, 0x1a0(%rsp)
movl %ecx, 0x19c(%rsp)
movq %r8, 0x190(%rsp)
movsd 0x73bba(%rip), %xmm0 # 0x10c100
movsd %xmm0, 0x38(%rsp)
movq $0x7, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x170(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x1a0(%rsp), %rdi
movq 0x190(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x28a80
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x180(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x188(%rsp)
movq 0x180(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x985e5
movl $0x0, 0x1b8(%rsp)
movq $0x6, 0x1c0(%rsp)
jmp 0x988bb
movq 0x180(%rsp), %rax
movq %rax, 0xd8(%rsp)
movl $0x0, 0xe4(%rsp)
movl 0xe4(%rsp), %ecx
movq 0xd8(%rsp), %rax
movq 0x4(%rax), %rax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
movl %eax, %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, 0xf(%rsp)
jge 0x98634
cmpl $0x7f, 0xe4(%rsp)
setl %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x9863e
jmp 0x986b2
movq 0xd8(%rsp), %rdi
movl 0xe4(%rsp), %esi
callq 0x5b910
movl %eax, 0xe0(%rsp)
cmpl $0xff, 0xe0(%rsp)
jle 0x98687
movl 0xe0(%rsp), %edx
movl $0x78, %eax
movl $0x2d, %ecx
cmpl $0x2212, %edx # imm = 0x2212
cmovel %ecx, %eax
movl %eax, 0xe0(%rsp)
movl 0xe0(%rsp), %eax
movb %al, %cl
movslq 0xe4(%rsp), %rax
movb %cl, 0x50(%rsp,%rax)
movl 0xe4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xe4(%rsp)
jmp 0x98600
movslq 0xe4(%rsp), %rax
movb $0x0, 0x50(%rsp,%rax)
leaq 0x50(%rsp), %rdi
leaq 0x140(%rsp), %rsi
leaq 0x4c(%rsp), %rdx
callq 0x988e0
cmpl $0x0, %eax
jne 0x986fb
leaq 0x50(%rsp), %rdi
leaq 0x140(%rsp), %rsi
leaq 0x4c(%rsp), %rdx
callq 0x98c50
cmpl $0x0, %eax
je 0x9887e
movl $0x1, 0x24(%rsp)
movl $0x1, 0xe4(%rsp)
cmpl $0x6, 0xe4(%rsp)
jge 0x98758
movslq 0xe4(%rsp), %rax
movl 0x140(%rsp,%rax,4), %eax
movslq 0xe4(%rsp), %rdx
leaq 0x7387a(%rip), %rcx # 0x10bfb0
cmpl (%rcx,%rdx,4), %eax
jle 0x98743
movl $0x0, 0x24(%rsp)
jmp 0x98745
movl 0xe4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xe4(%rsp)
jmp 0x9870e
cmpl $0x18, 0x14c(%rsp)
jne 0x98784
movl 0x150(%rsp), %eax
orl 0x154(%rsp), %eax
orl 0x158(%rsp), %eax
cmpl $0x0, %eax
je 0x98784
movl $0x0, 0x24(%rsp)
cmpl $0x0, 0x24(%rsp)
je 0x9887c
movl $0x0, 0xe4(%rsp)
cmpl $0x7, 0xe4(%rsp)
jge 0x987d9
movslq 0xe4(%rsp), %rax
cvtsi2sdl 0x140(%rsp,%rax,4), %xmm0
movslq 0xe4(%rsp), %rax
movsd %xmm0, 0xf0(%rsp,%rax,8)
movl 0xe4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xe4(%rsp)
jmp 0x9879a
movl 0x4c(%rsp), %esi
leaq 0xf0(%rsp), %rdi
callq 0x98160
movl 0x160(%rsp), %eax
imull $0xea60, %eax, %eax # imm = 0xEA60
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x1a0(%rsp), %rax
movsd 0xe8(%rsp), %xmm0
movq %rax, 0x1d0(%rsp)
movsd %xmm0, 0x1c8(%rsp)
movsd 0x1c8(%rsp), %xmm0
callq 0x7cf60
movq %rax, 0x1d8(%rsp)
movq %rdx, 0x1e0(%rsp)
movq 0x1d8(%rsp), %rcx
movq 0x1e0(%rsp), %rax
movq %rcx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x170(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x178(%rsp)
jmp 0x9887e
movq 0x1a0(%rsp), %rdi
movq 0x180(%rsp), %rsi
movq 0x188(%rsp), %rdx
callq 0x229d0
movq 0x170(%rsp), %rax
movq %rax, 0x1b8(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x1b8(%rsp), %rax
movq 0x1c0(%rsp), %rdx
addq $0x1e8, %rsp # imm = 0x1E8
retq
nopw %cs:(%rax,%rax)
|
js_Date_parse:
sub rsp, 1E8h
mov [rsp+1E8h+var_40], rsi
mov [rsp+1E8h+var_38], rdx
mov [rsp+1E8h+var_48], rdi
mov [rsp+1E8h+var_4C], ecx
mov [rsp+1E8h+var_58], r8
movsd xmm0, cs:qword_10C100
movsd [rsp+1E8h+var_1B0], xmm0
mov [rsp+1E8h+var_1A8], 7
mov rax, [rsp+1E8h+var_1B0]
mov [rsp+1E8h+var_78], rax
mov rax, [rsp+1E8h+var_1A8]
mov [rsp+1E8h+var_70], rax
mov rdi, [rsp+1E8h+var_48]
mov rax, [rsp+1E8h+var_58]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_ToString
mov [rsp+1E8h+var_1C0], rax
mov [rsp+1E8h+var_1B8], rdx
mov rax, [rsp+1E8h+var_1C0]
mov [rsp+1E8h+var_68], rax
mov rax, [rsp+1E8h+var_1B8]
mov [rsp+1E8h+var_60], rax
mov rdi, [rsp+1E8h+var_68]
mov rsi, [rsp+1E8h+var_60]
call JS_IsException_1
cmp eax, 0
jz short loc_985E5
mov dword ptr [rsp+1E8h+var_30], 0
mov [rsp+1E8h+var_28], 6
jmp loc_988BB
loc_985E5:
mov rax, [rsp+1E8h+var_68]
mov [rsp+1E8h+var_110], rax
mov [rsp+1E8h+var_104], 0
loc_98600:
mov ecx, [rsp+1E8h+var_104]
mov rax, [rsp+1E8h+var_110]
mov rax, [rax+4]
and rax, 7FFFFFFFh
mov edx, eax
xor eax, eax
cmp ecx, edx
mov [rsp+1E8h+var_1D9], al
jge short loc_98634
cmp [rsp+1E8h+var_104], 7Fh
setl al
mov [rsp+1E8h+var_1D9], al
loc_98634:
mov al, [rsp+1E8h+var_1D9]
test al, 1
jnz short loc_9863E
jmp short loc_986B2
loc_9863E:
mov rdi, [rsp+1E8h+var_110]
mov esi, [rsp+1E8h+var_104]
call string_get
mov [rsp+1E8h+var_108], eax
cmp [rsp+1E8h+var_108], 0FFh
jle short loc_98687
mov edx, [rsp+1E8h+var_108]
mov eax, 78h ; 'x'
mov ecx, 2Dh ; '-'
cmp edx, 2212h
cmovz eax, ecx
mov [rsp+1E8h+var_108], eax
loc_98687:
mov eax, [rsp+1E8h+var_108]
mov cl, al
movsxd rax, [rsp+1E8h+var_104]
mov [rsp+rax+1E8h+var_198], cl
mov eax, [rsp+1E8h+var_104]
add eax, 1
mov [rsp+1E8h+var_104], eax
jmp loc_98600
loc_986B2:
movsxd rax, [rsp+1E8h+var_104]
mov [rsp+rax+1E8h+var_198], 0
lea rdi, [rsp+1E8h+var_198]
lea rsi, [rsp+1E8h+var_A8]
lea rdx, [rsp+1E8h+var_19C]
call js_date_parse_isostring
cmp eax, 0
jnz short loc_986FB
lea rdi, [rsp+1E8h+var_198]
lea rsi, [rsp+1E8h+var_A8]
lea rdx, [rsp+1E8h+var_19C]
call js_date_parse_otherstring
cmp eax, 0
jz loc_9887E
loc_986FB:
mov [rsp+1E8h+var_1C4], 1
mov [rsp+1E8h+var_104], 1
loc_9870E:
cmp [rsp+1E8h+var_104], 6
jge short loc_98758
movsxd rax, [rsp+1E8h+var_104]
mov eax, [rsp+rax*4+1E8h+var_A8]
movsxd rdx, [rsp+1E8h+var_104]
lea rcx, js_Date_parse_field_max
cmp eax, [rcx+rdx*4]
jle short loc_98743
mov [rsp+1E8h+var_1C4], 0
loc_98743:
jmp short $+2
loc_98745:
mov eax, [rsp+1E8h+var_104]
add eax, 1
mov [rsp+1E8h+var_104], eax
jmp short loc_9870E
loc_98758:
cmp [rsp+1E8h+var_9C], 18h
jnz short loc_98784
mov eax, [rsp+1E8h+var_98]
or eax, [rsp+1E8h+var_94]
or eax, [rsp+1E8h+var_90]
cmp eax, 0
jz short loc_98784
mov [rsp+1E8h+var_1C4], 0
loc_98784:
cmp [rsp+1E8h+var_1C4], 0
jz loc_9887C
mov [rsp+1E8h+var_104], 0
loc_9879A:
cmp [rsp+1E8h+var_104], 7
jge short loc_987D9
movsxd rax, [rsp+1E8h+var_104]
cvtsi2sd xmm0, [rsp+rax*4+1E8h+var_A8]
movsxd rax, [rsp+1E8h+var_104]
movsd [rsp+rax*8+1E8h+var_F8], xmm0
mov eax, [rsp+1E8h+var_104]
add eax, 1
mov [rsp+1E8h+var_104], eax
jmp short loc_9879A
loc_987D9:
mov esi, [rsp+1E8h+var_19C]
lea rdi, [rsp+1E8h+var_F8]
call set_date_fields
mov eax, [rsp+1E8h+var_88]
imul eax, 0EA60h
cvtsi2sd xmm1, eax
subsd xmm0, xmm1
movsd [rsp+1E8h+var_100], xmm0
mov rax, [rsp+1E8h+var_48]
movsd xmm0, [rsp+1E8h+var_100]
mov [rsp+1E8h+var_18], rax
movsd [rsp+1E8h+var_20], xmm0
movsd xmm0, [rsp+1E8h+var_20]
call __JS_NewFloat64_0
mov [rsp+1E8h+var_10], rax
mov [rsp+1E8h+var_8], rdx
mov rcx, [rsp+1E8h+var_10]
mov rax, [rsp+1E8h+var_8]
mov [rsp+1E8h+var_1D8], rcx
mov [rsp+1E8h+var_1D0], rax
mov rax, [rsp+1E8h+var_1D8]
mov [rsp+1E8h+var_78], rax
mov rax, [rsp+1E8h+var_1D0]
mov [rsp+1E8h+var_70], rax
loc_9887C:
jmp short $+2
loc_9887E:
mov rdi, [rsp+1E8h+var_48]
mov rsi, [rsp+1E8h+var_68]
mov rdx, [rsp+1E8h+var_60]
call JS_FreeValue
mov rax, [rsp+1E8h+var_78]
mov [rsp+1E8h+var_30], rax
mov rax, [rsp+1E8h+var_70]
mov [rsp+1E8h+var_28], rax
loc_988BB:
mov rax, [rsp+1E8h+var_30]
mov rdx, [rsp+1E8h+var_28]
add rsp, 1E8h
retn
|
long long js_Date_parse(long long a1, long long a2, long long a3, long long a4, long long *a5, long long a6)
{
long long v6; // rdx
int v7; // eax
double v8; // xmm0_8
long long v9; // rdx
bool v11; // [rsp+Fh] [rbp-1D9h]
int v12; // [rsp+24h] [rbp-1C4h]
int v13; // [rsp+4Ch] [rbp-19Ch] BYREF
_BYTE v14[136]; // [rsp+50h] [rbp-198h] BYREF
long long v15; // [rsp+D8h] [rbp-110h]
int v16; // [rsp+E0h] [rbp-108h]
int i; // [rsp+E4h] [rbp-104h]
double v18; // [rsp+E8h] [rbp-100h]
double v19[10]; // [rsp+F0h] [rbp-F8h] BYREF
_DWORD v20[12]; // [rsp+140h] [rbp-A8h] BYREF
long long v21; // [rsp+170h] [rbp-78h]
long long v22; // [rsp+178h] [rbp-70h]
long long v23; // [rsp+180h] [rbp-68h]
long long v24; // [rsp+188h] [rbp-60h]
long long *v25; // [rsp+190h] [rbp-58h]
int v26; // [rsp+19Ch] [rbp-4Ch]
long long v27; // [rsp+1A0h] [rbp-48h]
long long v28; // [rsp+1A8h] [rbp-40h]
long long v29; // [rsp+1B0h] [rbp-38h]
long long v30; // [rsp+1B8h] [rbp-30h]
long long v31; // [rsp+1C0h] [rbp-28h]
double v32; // [rsp+1C8h] [rbp-20h]
long long v33; // [rsp+1D0h] [rbp-18h]
long long v34; // [rsp+1D8h] [rbp-10h]
long long v35; // [rsp+1E0h] [rbp-8h]
v28 = a2;
v29 = a3;
v27 = a1;
v26 = a4;
v25 = a5;
v21 = 0x7FF8000000000000LL;
v22 = 7LL;
v23 = JS_ToString(a1, *a5, a5[1], a4, (long long)a5, a6);
v24 = v6;
if ( JS_IsException_1(v23, v6) )
{
LODWORD(v30) = 0;
v31 = 6LL;
}
else
{
v15 = v23;
for ( i = 0; ; ++i )
{
v11 = 0;
if ( i < (*(_DWORD *)(v15 + 4) & 0x7FFFFFFF) )
v11 = i < 127;
if ( !v11 )
break;
v16 = string_get(v15, i);
if ( v16 > 255 )
{
v7 = 120;
if ( v16 == 8722 )
v7 = 45;
v16 = v7;
}
v14[i] = v16;
}
v14[i] = 0;
if ( (unsigned int)js_date_parse_isostring(v14, v20, &v13)
|| (unsigned int)js_date_parse_otherstring(v14, v20, &v13) )
{
v12 = 1;
for ( i = 1; i < 6; ++i )
{
if ( v20[i] > js_Date_parse_field_max[i] )
v12 = 0;
}
if ( v20[3] == 24 && v20[6] | v20[5] | v20[4] )
v12 = 0;
if ( v12 )
{
for ( i = 0; i < 7; ++i )
v19[i] = (double)(int)v20[i];
v8 = set_date_fields(v19, v13);
v18 = v8 - (double)(60000 * v20[8]);
v33 = v27;
v32 = v18;
v34 = _JS_NewFloat64_0(v18);
v35 = v9;
v21 = v34;
v22 = v9;
}
}
JS_FreeValue(v27, v23, v24);
v30 = v21;
v31 = v22;
}
return v30;
}
|
js_Date_parse:
SUB RSP,0x1e8
MOV qword ptr [RSP + 0x1a8],RSI
MOV qword ptr [RSP + 0x1b0],RDX
MOV qword ptr [RSP + 0x1a0],RDI
MOV dword ptr [RSP + 0x19c],ECX
MOV qword ptr [RSP + 0x190],R8
MOVSD XMM0,qword ptr [0x0020c100]
MOVSD qword ptr [RSP + 0x38],XMM0
MOV qword ptr [RSP + 0x40],0x7
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x170],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x178],RAX
MOV RDI,qword ptr [RSP + 0x1a0]
MOV RAX,qword ptr [RSP + 0x190]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00128a80
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x180],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x188],RAX
MOV RDI,qword ptr [RSP + 0x180]
MOV RSI,qword ptr [RSP + 0x188]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001985e5
MOV dword ptr [RSP + 0x1b8],0x0
MOV qword ptr [RSP + 0x1c0],0x6
JMP 0x001988bb
LAB_001985e5:
MOV RAX,qword ptr [RSP + 0x180]
MOV qword ptr [RSP + 0xd8],RAX
MOV dword ptr [RSP + 0xe4],0x0
LAB_00198600:
MOV ECX,dword ptr [RSP + 0xe4]
MOV RAX,qword ptr [RSP + 0xd8]
MOV RAX,qword ptr [RAX + 0x4]
AND RAX,0x7fffffff
MOV EDX,EAX
XOR EAX,EAX
CMP ECX,EDX
MOV byte ptr [RSP + 0xf],AL
JGE 0x00198634
CMP dword ptr [RSP + 0xe4],0x7f
SETL AL
MOV byte ptr [RSP + 0xf],AL
LAB_00198634:
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x0019863e
JMP 0x001986b2
LAB_0019863e:
MOV RDI,qword ptr [RSP + 0xd8]
MOV ESI,dword ptr [RSP + 0xe4]
CALL 0x0015b910
MOV dword ptr [RSP + 0xe0],EAX
CMP dword ptr [RSP + 0xe0],0xff
JLE 0x00198687
MOV EDX,dword ptr [RSP + 0xe0]
MOV EAX,0x78
MOV ECX,0x2d
CMP EDX,0x2212
CMOVZ EAX,ECX
MOV dword ptr [RSP + 0xe0],EAX
LAB_00198687:
MOV EAX,dword ptr [RSP + 0xe0]
MOV CL,AL
MOVSXD RAX,dword ptr [RSP + 0xe4]
MOV byte ptr [RSP + RAX*0x1 + 0x50],CL
MOV EAX,dword ptr [RSP + 0xe4]
ADD EAX,0x1
MOV dword ptr [RSP + 0xe4],EAX
JMP 0x00198600
LAB_001986b2:
MOVSXD RAX,dword ptr [RSP + 0xe4]
MOV byte ptr [RSP + RAX*0x1 + 0x50],0x0
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x140]
LEA RDX,[RSP + 0x4c]
CALL 0x001988e0
CMP EAX,0x0
JNZ 0x001986fb
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x140]
LEA RDX,[RSP + 0x4c]
CALL 0x00198c50
CMP EAX,0x0
JZ 0x0019887e
LAB_001986fb:
MOV dword ptr [RSP + 0x24],0x1
MOV dword ptr [RSP + 0xe4],0x1
LAB_0019870e:
CMP dword ptr [RSP + 0xe4],0x6
JGE 0x00198758
MOVSXD RAX,dword ptr [RSP + 0xe4]
MOV EAX,dword ptr [RSP + RAX*0x4 + 0x140]
MOVSXD RDX,dword ptr [RSP + 0xe4]
LEA RCX,[0x20bfb0]
CMP EAX,dword ptr [RCX + RDX*0x4]
JLE 0x00198743
MOV dword ptr [RSP + 0x24],0x0
LAB_00198743:
JMP 0x00198745
LAB_00198745:
MOV EAX,dword ptr [RSP + 0xe4]
ADD EAX,0x1
MOV dword ptr [RSP + 0xe4],EAX
JMP 0x0019870e
LAB_00198758:
CMP dword ptr [RSP + 0x14c],0x18
JNZ 0x00198784
MOV EAX,dword ptr [RSP + 0x150]
OR EAX,dword ptr [RSP + 0x154]
OR EAX,dword ptr [RSP + 0x158]
CMP EAX,0x0
JZ 0x00198784
MOV dword ptr [RSP + 0x24],0x0
LAB_00198784:
CMP dword ptr [RSP + 0x24],0x0
JZ 0x0019887c
MOV dword ptr [RSP + 0xe4],0x0
LAB_0019879a:
CMP dword ptr [RSP + 0xe4],0x7
JGE 0x001987d9
MOVSXD RAX,dword ptr [RSP + 0xe4]
CVTSI2SD XMM0,dword ptr [RSP + RAX*0x4 + 0x140]
MOVSXD RAX,dword ptr [RSP + 0xe4]
MOVSD qword ptr [RSP + RAX*0x8 + 0xf0],XMM0
MOV EAX,dword ptr [RSP + 0xe4]
ADD EAX,0x1
MOV dword ptr [RSP + 0xe4],EAX
JMP 0x0019879a
LAB_001987d9:
MOV ESI,dword ptr [RSP + 0x4c]
LEA RDI,[RSP + 0xf0]
CALL 0x00198160
MOV EAX,dword ptr [RSP + 0x160]
IMUL EAX,EAX,0xea60
CVTSI2SD XMM1,EAX
SUBSD XMM0,XMM1
MOVSD qword ptr [RSP + 0xe8],XMM0
MOV RAX,qword ptr [RSP + 0x1a0]
MOVSD XMM0,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x1d0],RAX
MOVSD qword ptr [RSP + 0x1c8],XMM0
MOVSD XMM0,qword ptr [RSP + 0x1c8]
CALL 0x0017cf60
MOV qword ptr [RSP + 0x1d8],RAX
MOV qword ptr [RSP + 0x1e0],RDX
MOV RCX,qword ptr [RSP + 0x1d8]
MOV RAX,qword ptr [RSP + 0x1e0]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x170],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x178],RAX
LAB_0019887c:
JMP 0x0019887e
LAB_0019887e:
MOV RDI,qword ptr [RSP + 0x1a0]
MOV RSI,qword ptr [RSP + 0x180]
MOV RDX,qword ptr [RSP + 0x188]
CALL 0x001229d0
MOV RAX,qword ptr [RSP + 0x170]
MOV qword ptr [RSP + 0x1b8],RAX
MOV RAX,qword ptr [RSP + 0x178]
MOV qword ptr [RSP + 0x1c0],RAX
LAB_001988bb:
MOV RAX,qword ptr [RSP + 0x1b8]
MOV RDX,qword ptr [RSP + 0x1c0]
ADD RSP,0x1e8
RET
|
int1 [16]
js_Date_parse(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int1 auVar1 [16];
int iVar2;
bool bVar3;
int4 local_19c;
int1 local_198 [136];
long local_110;
int local_108;
int local_104;
double local_100;
double local_f8 [10];
int local_a8 [8];
int local_88;
int1 local_78 [16];
int1 local_68 [16];
int8 *local_58;
int4 local_4c;
int8 local_48;
int8 local_40;
int8 local_38;
int4 local_30;
int4 uStack_2c;
int8 local_28;
double local_20;
int8 local_18;
int1 local_10 [16];
local_78._0_8_ = DAT_0020c100;
local_78._8_8_ = 7;
local_58 = param_5;
local_4c = param_4;
local_48 = param_1;
local_40 = param_2;
local_38 = param_3;
local_68 = JS_ToString(param_1,*param_5,param_5[1]);
iVar2 = JS_IsException(local_68._0_8_,local_68._8_8_);
if (iVar2 != 0) {
local_30 = 0;
local_28 = 6;
goto LAB_001988bb;
}
local_110 = local_68._0_8_;
for (local_104 = 0;
local_104 < (int)((uint)*(int8 *)(local_110 + 4) & 0x7fffffff) && local_104 < 0x7f;
local_104 = local_104 + 1) {
local_108 = string_get(local_110,local_104);
if ((0xff < local_108) && (bVar3 = local_108 == 0x2212, local_108 = 0x78, bVar3)) {
local_108 = 0x2d;
}
local_198[local_104] = (char)local_108;
}
local_198[local_104] = 0;
iVar2 = js_date_parse_isostring(local_198,local_a8,&local_19c);
if (iVar2 == 0) {
iVar2 = js_date_parse_otherstring(local_198,local_a8,&local_19c);
if (iVar2 != 0) goto LAB_001986fb;
}
else {
LAB_001986fb:
bVar3 = true;
for (local_104 = 1; local_104 < 6; local_104 = local_104 + 1) {
if (*(int *)(js_Date_parse_field_max + (long)local_104 * 4) < local_a8[local_104]) {
bVar3 = false;
}
}
if ((local_a8[3] == 0x18) && ((local_a8[4] != 0 || local_a8[5] != 0) || local_a8[6] != 0)) {
bVar3 = false;
}
if (bVar3) {
for (local_104 = 0; local_104 < 7; local_104 = local_104 + 1) {
local_f8[local_104] = (double)local_a8[local_104];
}
local_100 = (double)set_date_fields(local_f8,local_19c);
local_100 = local_100 - (double)(local_88 * 60000);
local_18 = local_48;
local_20 = local_100;
local_10 = __JS_NewFloat64(local_100);
local_78 = local_10;
}
}
JS_FreeValue(local_48,local_68._0_8_,local_68._8_8_);
local_30 = local_78._0_4_;
uStack_2c = local_78._4_4_;
local_28 = local_78._8_8_;
LAB_001988bb:
auVar1._4_4_ = uStack_2c;
auVar1._0_4_ = local_30;
auVar1._8_8_ = local_28;
return auVar1;
}
|
|
62,313 |
correctTableCB(LefDefParser::lefrCallbackType_e, LefDefParser::lefiCorrectionTable*, void*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lefdiff/diffLefRW.cpp
|
int correctTableCB(lefrCallbackType_e c, lefiCorrectionTable* table,
lefiUserData ud) {
int i, j, k, l;
lefiCorrectionEdge *edge;
lefiCorrectionResistance *resist;
lefiCorrectionVictim *victim;
checkType(c);
if (ud != userData) dataError();
fprintf(fout, "CROSSTALK CORRECTIONTABLE %d\n", table->num());
for (i = 0; i < table->numEdges(); i++) {
edge = table->edge(i);
// resistances
if (edge->numResistances()) {
for (j = 0; j < edge->numResistances(); j++) {
resist = edge->resistance(j);
fprintf(fout, "CROSSTALK CORRECTIONTABLE %d RESISTANCE %g\n",
table->num(), chkNum(resist->num(j)));
// victims
for (k = 0; k < resist->numVictims(); k++) {
victim = resist->victim(k);
if (victim->length() > 0)
fprintf(fout,
"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g VICTIMLEN %g\n",
table->num(), chkNum(resist->num(j)),
chkNum(victim->length()));
for (l = 0; l < victim->numCorrections(); l++)
fprintf(fout,
"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g VICTIM GTH %g CORRECTIONFACTOR %g\n",
table->num(), chkNum(resist->num(j)),
chkNum(victim->length()), chkNum(victim->correction(l)));
}
}
}
}
return 0;
}
|
O3
|
cpp
|
correctTableCB(LefDefParser::lefrCallbackType_e, LefDefParser::lefiCorrectionTable*, void*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r15
cmpl $0x39, %edi
jb 0x5cd0
movq 0x71736(%rip), %rcx # 0x773f0
leaq 0x45536(%rip), %rdi # 0x4b1f7
movl $0x27, %esi
movl $0x1, %edx
callq 0x23b0
cmpq %rbx, 0x71729(%rip) # 0x77400
je 0x5cf6
movq 0x71710(%rip), %rcx # 0x773f0
leaq 0x454e5(%rip), %rdi # 0x4b1cc
movl $0x2a, %esi
movl $0x1, %edx
callq 0x23b0
movq 0x716f3(%rip), %rbx # 0x773f0
movq %r15, %rdi
callq 0x16208
leaq 0x45b36(%rip), %rsi # 0x4b842
xorl %ebp, %ebp
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x22c0
movq %r15, %rdi
callq 0x1620c
testl %eax, %eax
jle 0x60c5
movq %r15, 0x10(%rsp)
movq %r15, %rdi
movl %ebp, 0x18(%rsp)
movl %ebp, %esi
callq 0x16210
movq %rax, %rbx
movq %rax, %rdi
callq 0x15fe8
testl %eax, %eax
je 0x60af
movq %rbx, %rdi
callq 0x15fe8
testl %eax, %eax
jle 0x60af
xorl %r14d, %r14d
movq %rbx, 0x30(%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x15fec
movq %rax, %rbp
movq 0x71673(%rip), %rbx # 0x773f0
movq %r15, %rdi
callq 0x16208
movl %eax, %r15d
movq %rbp, %rdi
movl %r14d, %esi
callq 0x15dfc
movapd %xmm0, %xmm1
andpd 0x45271(%rip), %xmm1 # 0x4b010
ucomisd 0x452e9(%rip), %xmm1 # 0x4b090
jbe 0x5de0
cvttsd2si %xmm0, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
ja 0x5de0
addsd 0x452b8(%rip), %xmm0 # 0x4b098
movq %rbx, %rdi
leaq 0x45a76(%rip), %rsi # 0x4b860
movl %r15d, %edx
movb $0x1, %al
callq 0x22c0
movq %rbp, %rdi
callq 0x15de8
testl %eax, %eax
jle 0x6091
xorl %ebx, %ebx
movq %rbp, %rdi
movl %ebx, 0x1c(%rsp)
movl %ebx, %esi
callq 0x15dec
movq %rax, %r15
movq %rax, %rdi
callq 0x15b9c
ucomisd 0x45279(%rip), %xmm0 # 0x4b0a0
jbe 0x5f0c
movq 0x715bc(%rip), %rbx # 0x773f0
movq 0x10(%rsp), %rdi
callq 0x16208
movl %eax, %r12d
movq %rbp, %rdi
movl %r14d, %esi
callq 0x15dfc
movapd %xmm0, %xmm1
andpd 0x451b8(%rip), %xmm1 # 0x4b010
ucomisd 0x45230(%rip), %xmm1 # 0x4b090
jbe 0x5e99
cvttsd2si %xmm0, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
ja 0x5e99
addsd 0x451ff(%rip), %xmm0 # 0x4b098
movapd %xmm0, (%rsp)
movq %r15, %rdi
callq 0x15b9c
movapd %xmm0, %xmm1
andpd 0x4515e(%rip), %xmm0 # 0x4b010
ucomisd 0x451d6(%rip), %xmm0 # 0x4b090
jbe 0x5ef3
cvttsd2si %xmm1, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
ja 0x5ef3
addsd 0x451a5(%rip), %xmm1 # 0x4b098
movapd (%rsp), %xmm0
movq %rbx, %rdi
leaq 0x4598a(%rip), %rsi # 0x4b88c
movl %r12d, %edx
movb $0x2, %al
callq 0x22c0
movq %r15, %rdi
callq 0x15b8a
testl %eax, %eax
jle 0x607b
xorl %r12d, %r12d
movq 0x714ca(%rip), %r13 # 0x773f0
movq 0x10(%rsp), %rdi
callq 0x16208
movl %eax, %ebx
movq %rbp, %rdi
movl %r14d, %esi
callq 0x15dfc
movapd %xmm0, %xmm1
andpd 0x450c7(%rip), %xmm1 # 0x4b010
ucomisd 0x4513f(%rip), %xmm1 # 0x4b090
jbe 0x5f8a
cvttsd2si %xmm0, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
ja 0x5f8a
addsd 0x4510e(%rip), %xmm0 # 0x4b098
movapd %xmm0, (%rsp)
movq %r15, %rdi
callq 0x15b9c
movapd %xmm0, %xmm1
andpd 0x4506d(%rip), %xmm1 # 0x4b010
ucomisd 0x450e5(%rip), %xmm1 # 0x4b090
jbe 0x5fe4
cvttsd2si %xmm0, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
ja 0x5fe4
addsd 0x450b4(%rip), %xmm0 # 0x4b098
movapd %xmm0, 0x20(%rsp)
movq %r15, %rdi
movl %r12d, %esi
callq 0x15b8e
movapd %xmm0, %xmm2
andpd 0x4500f(%rip), %xmm0 # 0x4b010
ucomisd 0x45087(%rip), %xmm0 # 0x4b090
jbe 0x6049
cvttsd2si %xmm2, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
addq %rcx, %rax
movabsq $0x3333333333333332, %rcx # imm = 0x3333333333333332
cmpq %rcx, %rax
movapd (%rsp), %xmm0
ja 0x604e
addsd 0x45051(%rip), %xmm2 # 0x4b098
jmp 0x604e
movapd (%rsp), %xmm0
movapd 0x20(%rsp), %xmm1
movq %r13, %rdi
leaq 0x45867(%rip), %rsi # 0x4b8c5
movl %ebx, %edx
movb $0x3, %al
callq 0x22c0
incl %r12d
movq %r15, %rdi
callq 0x15b8a
cmpl %eax, %r12d
jl 0x5f1f
movl 0x1c(%rsp), %ebx
incl %ebx
movq %rbp, %rdi
callq 0x15de8
cmpl %eax, %ebx
jl 0x5e06
incl %r14d
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x15fe8
cmpl %eax, %r14d
movq 0x10(%rsp), %r15
jl 0x5d68
movl 0x18(%rsp), %ebp
incl %ebp
movq %r15, %rdi
callq 0x1620c
cmpl %eax, %ebp
jl 0x5d2f
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_Z14correctTableCBN12LefDefParser18lefrCallbackType_eEPNS_19lefiCorrectionTableEPv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rdx
mov r15, rsi
cmp edi, 39h ; '9'
jb short loc_5CD0
mov rcx, cs:fout
lea rdi, aErrorCallbackT; "ERROR: callback type is out of bounds!"...
mov esi, 27h ; '''
mov edx, 1
call _fwrite
loc_5CD0:
cmp cs:userData, rbx
jz short loc_5CF6
mov rcx, cs:fout
lea rdi, aErrorReturnedU; "ERROR: returned user data is not correc"...
mov esi, 2Ah ; '*'
mov edx, 1
call _fwrite
loc_5CF6:
mov rbx, cs:fout
mov rdi, r15; this
call _ZN12LefDefParser19lefiCorrectionTable3numEv; LefDefParser::lefiCorrectionTable::num(void)
lea rsi, aCrosstalkCorre; "CROSSTALK CORRECTIONTABLE %d\n"
xor ebp, ebp
mov rdi, rbx
mov edx, eax
xor eax, eax
call _fprintf
mov rdi, r15; this
call _ZN12LefDefParser19lefiCorrectionTable8numEdgesEv; LefDefParser::lefiCorrectionTable::numEdges(void)
test eax, eax
jle loc_60C5
mov [rsp+68h+var_58], r15
loc_5D2F:
mov rdi, r15; this
mov [rsp+68h+var_50], ebp
mov esi, ebp; int
call _ZN12LefDefParser19lefiCorrectionTable4edgeEi; LefDefParser::lefiCorrectionTable::edge(int)
mov rbx, rax
mov rdi, rax; this
call _ZN12LefDefParser18lefiCorrectionEdge14numResistancesEv; LefDefParser::lefiCorrectionEdge::numResistances(void)
test eax, eax
jz loc_60AF
mov rdi, rbx; this
call _ZN12LefDefParser18lefiCorrectionEdge14numResistancesEv; LefDefParser::lefiCorrectionEdge::numResistances(void)
test eax, eax
jle loc_60AF
xor r14d, r14d
mov [rsp+68h+var_38], rbx
loc_5D68:
mov rdi, rbx; this
mov esi, r14d; int
call _ZN12LefDefParser18lefiCorrectionEdge10resistanceEi; LefDefParser::lefiCorrectionEdge::resistance(int)
mov rbp, rax
mov rbx, cs:fout
mov rdi, r15; this
call _ZN12LefDefParser19lefiCorrectionTable3numEv; LefDefParser::lefiCorrectionTable::num(void)
mov r15d, eax
mov rdi, rbp; this
mov esi, r14d; int
call _ZN12LefDefParser24lefiCorrectionResistance3numEi; LefDefParser::lefiCorrectionResistance::num(int)
movapd xmm1, xmm0
andpd xmm1, cs:xmmword_4B010
ucomisd xmm1, cs:qword_4B090
jbe short loc_5DE0
cvttsd2si rax, xmm0
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rax, rcx
mov rcx, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
ja short loc_5DE0
addsd xmm0, cs:qword_4B098
loc_5DE0:
mov rdi, rbx
lea rsi, aCrosstalkCorre_0; "CROSSTALK CORRECTIONTABLE %d RESISTANCE"...
mov edx, r15d
mov al, 1
call _fprintf
mov rdi, rbp; this
call _ZN12LefDefParser24lefiCorrectionResistance10numVictimsEv; LefDefParser::lefiCorrectionResistance::numVictims(void)
test eax, eax
jle loc_6091
xor ebx, ebx
loc_5E06:
mov rdi, rbp; this
mov [rsp+68h+var_4C], ebx
mov esi, ebx; int
call _ZN12LefDefParser24lefiCorrectionResistance6victimEi; LefDefParser::lefiCorrectionResistance::victim(int)
mov r15, rax
mov rdi, rax; this
call _ZN12LefDefParser20lefiCorrectionVictim6lengthEv; LefDefParser::lefiCorrectionVictim::length(void)
ucomisd xmm0, cs:qword_4B0A0
jbe loc_5F0C
mov rbx, cs:fout
mov rdi, [rsp+68h+var_58]; this
call _ZN12LefDefParser19lefiCorrectionTable3numEv; LefDefParser::lefiCorrectionTable::num(void)
mov r12d, eax
mov rdi, rbp; this
mov esi, r14d; int
call _ZN12LefDefParser24lefiCorrectionResistance3numEi; LefDefParser::lefiCorrectionResistance::num(int)
movapd xmm1, xmm0
andpd xmm1, cs:xmmword_4B010
ucomisd xmm1, cs:qword_4B090
jbe short loc_5E99
cvttsd2si rax, xmm0
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rax, rcx
mov rcx, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
ja short loc_5E99
addsd xmm0, cs:qword_4B098
loc_5E99:
movapd [rsp+68h+var_68], xmm0
mov rdi, r15; this
call _ZN12LefDefParser20lefiCorrectionVictim6lengthEv; LefDefParser::lefiCorrectionVictim::length(void)
movapd xmm1, xmm0
andpd xmm0, cs:xmmword_4B010
ucomisd xmm0, cs:qword_4B090
jbe short loc_5EF3
cvttsd2si rax, xmm1
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rax, rcx
mov rcx, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
ja short loc_5EF3
addsd xmm1, cs:qword_4B098
loc_5EF3:
movapd xmm0, [rsp+68h+var_68]
mov rdi, rbx
lea rsi, aCrosstalkCorre_1; "CROSSTALK CORRECTIONTABLE %d RESISTANCE"...
mov edx, r12d
mov al, 2
call _fprintf
loc_5F0C:
mov rdi, r15; this
call _ZN12LefDefParser20lefiCorrectionVictim14numCorrectionsEv; LefDefParser::lefiCorrectionVictim::numCorrections(void)
test eax, eax
jle loc_607B
xor r12d, r12d
loc_5F1F:
mov r13, cs:fout
mov rdi, [rsp+68h+var_58]; this
call _ZN12LefDefParser19lefiCorrectionTable3numEv; LefDefParser::lefiCorrectionTable::num(void)
mov ebx, eax
mov rdi, rbp; this
mov esi, r14d; int
call _ZN12LefDefParser24lefiCorrectionResistance3numEi; LefDefParser::lefiCorrectionResistance::num(int)
movapd xmm1, xmm0
andpd xmm1, cs:xmmword_4B010
ucomisd xmm1, cs:qword_4B090
jbe short loc_5F8A
cvttsd2si rax, xmm0
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rax, rcx
mov rcx, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
ja short loc_5F8A
addsd xmm0, cs:qword_4B098
loc_5F8A:
movapd [rsp+68h+var_68], xmm0
mov rdi, r15; this
call _ZN12LefDefParser20lefiCorrectionVictim6lengthEv; LefDefParser::lefiCorrectionVictim::length(void)
movapd xmm1, xmm0
andpd xmm1, cs:xmmword_4B010
ucomisd xmm1, cs:qword_4B090
jbe short loc_5FE4
cvttsd2si rax, xmm0
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rax, rcx
mov rcx, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
ja short loc_5FE4
addsd xmm0, cs:qword_4B098
loc_5FE4:
movapd [rsp+68h+var_48], xmm0
mov rdi, r15; this
mov esi, r12d; int
call _ZN12LefDefParser20lefiCorrectionVictim10correctionEi; LefDefParser::lefiCorrectionVictim::correction(int)
movapd xmm2, xmm0
andpd xmm0, cs:xmmword_4B010
ucomisd xmm0, cs:qword_4B090
jbe short loc_6049
cvttsd2si rax, xmm2
mov rcx, 0CCCCCCCCCCCCCCCDh
imul rax, rcx
mov rcx, 1999999999999999h
add rax, rcx
mov rcx, 3333333333333332h
cmp rax, rcx
movapd xmm0, [rsp+68h+var_68]
ja short loc_604E
addsd xmm2, cs:qword_4B098
jmp short loc_604E
loc_6049:
movapd xmm0, [rsp+68h+var_68]
loc_604E:
movapd xmm1, [rsp+68h+var_48]
mov rdi, r13
lea rsi, aCrosstalkCorre_2; "CROSSTALK CORRECTIONTABLE %d RESISTANCE"...
mov edx, ebx
mov al, 3
call _fprintf
inc r12d
mov rdi, r15; this
call _ZN12LefDefParser20lefiCorrectionVictim14numCorrectionsEv; LefDefParser::lefiCorrectionVictim::numCorrections(void)
cmp r12d, eax
jl loc_5F1F
loc_607B:
mov ebx, [rsp+68h+var_4C]
inc ebx
mov rdi, rbp; this
call _ZN12LefDefParser24lefiCorrectionResistance10numVictimsEv; LefDefParser::lefiCorrectionResistance::numVictims(void)
cmp ebx, eax
jl loc_5E06
loc_6091:
inc r14d
mov rbx, [rsp+68h+var_38]
mov rdi, rbx; this
call _ZN12LefDefParser18lefiCorrectionEdge14numResistancesEv; LefDefParser::lefiCorrectionEdge::numResistances(void)
cmp r14d, eax
mov r15, [rsp+68h+var_58]
jl loc_5D68
loc_60AF:
mov ebp, [rsp+68h+var_50]
inc ebp
mov rdi, r15; this
call _ZN12LefDefParser19lefiCorrectionTable8numEdgesEv; LefDefParser::lefiCorrectionTable::numEdges(void)
cmp ebp, eax
jl loc_5D2F
loc_60C5:
xor eax, eax
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long correctTableCB(unsigned int a1, LefDefParser::lefiCorrectionTable *a2, long long a3, __m128 a4)
{
LefDefParser::lefiCorrectionTable *v5; // r15
long long v6; // rbx
int v7; // eax
int v8; // ebp
LefDefParser::lefiCorrectionEdge *v9; // rbx
int v10; // r14d
LefDefParser::lefiCorrectionResistance *v11; // rbp
long long v12; // rbx
int v13; // r15d
int v14; // ebx
LefDefParser::lefiCorrectionVictim *v15; // r15
long long v16; // rbx
int v17; // r12d
double v18; // xmm1_8
int v19; // r12d
long long v20; // r13
int v21; // ebx
double v22; // xmm2_8
__m128 v24; // [rsp+0h] [rbp-68h]
int v25; // [rsp+18h] [rbp-50h]
int v26; // [rsp+1Ch] [rbp-4Ch]
double v27; // [rsp+20h] [rbp-48h]
LefDefParser::lefiCorrectionEdge *v28; // [rsp+30h] [rbp-38h]
v5 = a2;
if ( a1 >= 0x39 )
fwrite("ERROR: callback type is out of bounds!\n", 39LL, 1LL, fout);
if ( userData != a3 )
fwrite("ERROR: returned user data is not correct!\n", 42LL, 1LL, fout);
v6 = fout;
v7 = LefDefParser::lefiCorrectionTable::num(a2);
v8 = 0;
*(double *)a4.m128_u64 = fprintf(v6, "CROSSTALK CORRECTIONTABLE %d\n", v7);
if ( (int)LefDefParser::lefiCorrectionTable::numEdges(a2) > 0 )
{
do
{
v25 = v8;
v9 = (LefDefParser::lefiCorrectionEdge *)LefDefParser::lefiCorrectionTable::edge(v5, v8);
if ( (unsigned int)LefDefParser::lefiCorrectionEdge::numResistances(v9)
&& (int)LefDefParser::lefiCorrectionEdge::numResistances(v9) > 0 )
{
v10 = 0;
v28 = v9;
do
{
v11 = (LefDefParser::lefiCorrectionResistance *)LefDefParser::lefiCorrectionEdge::resistance(v9, v10);
v12 = fout;
v13 = LefDefParser::lefiCorrectionTable::num(v5);
LefDefParser::lefiCorrectionResistance::num(v11, v10);
if ( fabs(*(double *)a4.m128_u64) > 1000004.0
&& 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)*(double *)a4.m128_u64 + 0x1999999999999999LL <= 0x3333333333333332LL )
{
*(double *)a4.m128_u64 = *(double *)a4.m128_u64 + 3.0;
}
*(double *)a4.m128_u64 = fprintf(
v12,
"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g\n",
v13,
*(double *)a4.m128_u64);
if ( (int)LefDefParser::lefiCorrectionResistance::numVictims(v11) > 0 )
{
v14 = 0;
do
{
v26 = v14;
v15 = (LefDefParser::lefiCorrectionVictim *)LefDefParser::lefiCorrectionResistance::victim(v11, v14);
LefDefParser::lefiCorrectionVictim::length(v15);
if ( *(double *)a4.m128_u64 > 0.0 )
{
v16 = fout;
v17 = LefDefParser::lefiCorrectionTable::num(a2);
LefDefParser::lefiCorrectionResistance::num(v11, v10);
if ( fabs(*(double *)a4.m128_u64) > 1000004.0
&& 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)*(double *)a4.m128_u64 + 0x1999999999999999LL <= 0x3333333333333332LL )
{
*(double *)a4.m128_u64 = *(double *)a4.m128_u64 + 3.0;
}
LefDefParser::lefiCorrectionVictim::length(v15);
v18 = *(double *)a4.m128_u64;
if ( fabs(*(double *)a4.m128_u64) > 1000004.0
&& 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)*(double *)a4.m128_u64 + 0x1999999999999999LL <= 0x3333333333333332LL )
{
v18 = *(double *)a4.m128_u64 + 3.0;
}
*(double *)a4.m128_u64 = fprintf(
v16,
"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g VICTIMLEN %g\n",
v17,
*(double *)a4.m128_u64,
v18);
}
if ( (int)LefDefParser::lefiCorrectionVictim::numCorrections(v15) > 0 )
{
v19 = 0;
do
{
v20 = fout;
v21 = LefDefParser::lefiCorrectionTable::num(a2);
LefDefParser::lefiCorrectionResistance::num(v11, v10);
if ( fabs(*(double *)a4.m128_u64) > 1000004.0
&& 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)*(double *)a4.m128_u64 + 0x1999999999999999LL <= 0x3333333333333332LL )
{
*(double *)a4.m128_u64 = *(double *)a4.m128_u64 + 3.0;
}
v24 = a4;
LefDefParser::lefiCorrectionVictim::length(v15);
if ( fabs(*(double *)a4.m128_u64) > 1000004.0
&& 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)*(double *)a4.m128_u64 + 0x1999999999999999LL <= 0x3333333333333332LL )
{
*(double *)a4.m128_u64 = *(double *)a4.m128_u64 + 3.0;
}
v27 = *(double *)a4.m128_u64;
LefDefParser::lefiCorrectionVictim::correction(v15, v19);
v22 = *(double *)a4.m128_u64;
if ( fabs(*(double *)a4.m128_u64) <= 1000004.0 )
{
a4 = v24;
}
else
{
a4 = v24;
if ( 0xCCCCCCCCCCCCCCCDLL * (unsigned int)(int)v22 + 0x1999999999999999LL <= 0x3333333333333332LL )
v22 = v22 + 3.0;
}
*(double *)a4.m128_u64 = fprintf(
v20,
"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g VICTIM GTH %g CORRECTIONFACTOR %g\n",
v21,
*(double *)a4.m128_u64,
v27,
v22);
++v19;
}
while ( v19 < (int)LefDefParser::lefiCorrectionVictim::numCorrections(v15) );
}
v14 = v26 + 1;
}
while ( v26 + 1 < (int)LefDefParser::lefiCorrectionResistance::numVictims(v11) );
}
++v10;
v9 = v28;
v5 = a2;
}
while ( v10 < (int)LefDefParser::lefiCorrectionEdge::numResistances(v28) );
}
v8 = v25 + 1;
}
while ( v25 + 1 < (int)LefDefParser::lefiCorrectionTable::numEdges(v5) );
}
return 0LL;
}
|
correctTableCB:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RDX
MOV R15,RSI
CMP EDI,0x39
JC 0x00105cd0
MOV RCX,qword ptr [0x001773f0]
LEA RDI,[0x14b1f7]
MOV ESI,0x27
MOV EDX,0x1
CALL 0x001023b0
LAB_00105cd0:
CMP qword ptr [0x00177400],RBX
JZ 0x00105cf6
MOV RCX,qword ptr [0x001773f0]
LEA RDI,[0x14b1cc]
MOV ESI,0x2a
MOV EDX,0x1
CALL 0x001023b0
LAB_00105cf6:
MOV RBX,qword ptr [0x001773f0]
MOV RDI,R15
CALL 0x00116208
LEA RSI,[0x14b842]
XOR EBP,EBP
MOV RDI,RBX
MOV EDX,EAX
XOR EAX,EAX
CALL 0x001022c0
MOV RDI,R15
CALL 0x0011620c
TEST EAX,EAX
JLE 0x001060c5
MOV qword ptr [RSP + 0x10],R15
LAB_00105d2f:
MOV RDI,R15
MOV dword ptr [RSP + 0x18],EBP
MOV ESI,EBP
CALL 0x00116210
MOV RBX,RAX
MOV RDI,RAX
CALL 0x00115fe8
TEST EAX,EAX
JZ 0x001060af
MOV RDI,RBX
CALL 0x00115fe8
TEST EAX,EAX
JLE 0x001060af
XOR R14D,R14D
MOV qword ptr [RSP + 0x30],RBX
LAB_00105d68:
MOV RDI,RBX
MOV ESI,R14D
CALL 0x00115fec
MOV RBP,RAX
MOV RBX,qword ptr [0x001773f0]
MOV RDI,R15
CALL 0x00116208
MOV R15D,EAX
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00115dfc
MOVAPD XMM1,XMM0
ANDPD XMM1,xmmword ptr [0x0014b010]
UCOMISD XMM1,qword ptr [0x0014b090]
JBE 0x00105de0
CVTTSD2SI RAX,XMM0
MOV RCX,-0x3333333333333333
IMUL RAX,RCX
MOV RCX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
JA 0x00105de0
ADDSD XMM0,qword ptr [0x0014b098]
LAB_00105de0:
MOV RDI,RBX
LEA RSI,[0x14b860]
MOV EDX,R15D
MOV AL,0x1
CALL 0x001022c0
MOV RDI,RBP
CALL 0x00115de8
TEST EAX,EAX
JLE 0x00106091
XOR EBX,EBX
LAB_00105e06:
MOV RDI,RBP
MOV dword ptr [RSP + 0x1c],EBX
MOV ESI,EBX
CALL 0x00115dec
MOV R15,RAX
MOV RDI,RAX
CALL 0x00115b9c
UCOMISD XMM0,qword ptr [0x0014b0a0]
JBE 0x00105f0c
MOV RBX,qword ptr [0x001773f0]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00116208
MOV R12D,EAX
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00115dfc
MOVAPD XMM1,XMM0
ANDPD XMM1,xmmword ptr [0x0014b010]
UCOMISD XMM1,qword ptr [0x0014b090]
JBE 0x00105e99
CVTTSD2SI RAX,XMM0
MOV RCX,-0x3333333333333333
IMUL RAX,RCX
MOV RCX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
JA 0x00105e99
ADDSD XMM0,qword ptr [0x0014b098]
LAB_00105e99:
MOVAPD xmmword ptr [RSP],XMM0
MOV RDI,R15
CALL 0x00115b9c
MOVAPD XMM1,XMM0
ANDPD XMM0,xmmword ptr [0x0014b010]
UCOMISD XMM0,qword ptr [0x0014b090]
JBE 0x00105ef3
CVTTSD2SI RAX,XMM1
MOV RCX,-0x3333333333333333
IMUL RAX,RCX
MOV RCX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
JA 0x00105ef3
ADDSD XMM1,qword ptr [0x0014b098]
LAB_00105ef3:
MOVAPD XMM0,xmmword ptr [RSP]
MOV RDI,RBX
LEA RSI,[0x14b88c]
MOV EDX,R12D
MOV AL,0x2
CALL 0x001022c0
LAB_00105f0c:
MOV RDI,R15
CALL 0x00115b8a
TEST EAX,EAX
JLE 0x0010607b
XOR R12D,R12D
LAB_00105f1f:
MOV R13,qword ptr [0x001773f0]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00116208
MOV EBX,EAX
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00115dfc
MOVAPD XMM1,XMM0
ANDPD XMM1,xmmword ptr [0x0014b010]
UCOMISD XMM1,qword ptr [0x0014b090]
JBE 0x00105f8a
CVTTSD2SI RAX,XMM0
MOV RCX,-0x3333333333333333
IMUL RAX,RCX
MOV RCX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
JA 0x00105f8a
ADDSD XMM0,qword ptr [0x0014b098]
LAB_00105f8a:
MOVAPD xmmword ptr [RSP],XMM0
MOV RDI,R15
CALL 0x00115b9c
MOVAPD XMM1,XMM0
ANDPD XMM1,xmmword ptr [0x0014b010]
UCOMISD XMM1,qword ptr [0x0014b090]
JBE 0x00105fe4
CVTTSD2SI RAX,XMM0
MOV RCX,-0x3333333333333333
IMUL RAX,RCX
MOV RCX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
JA 0x00105fe4
ADDSD XMM0,qword ptr [0x0014b098]
LAB_00105fe4:
MOVAPD xmmword ptr [RSP + 0x20],XMM0
MOV RDI,R15
MOV ESI,R12D
CALL 0x00115b8e
MOVAPD XMM2,XMM0
ANDPD XMM0,xmmword ptr [0x0014b010]
UCOMISD XMM0,qword ptr [0x0014b090]
JBE 0x00106049
CVTTSD2SI RAX,XMM2
MOV RCX,-0x3333333333333333
IMUL RAX,RCX
MOV RCX,0x1999999999999999
ADD RAX,RCX
MOV RCX,0x3333333333333332
CMP RAX,RCX
MOVAPD XMM0,xmmword ptr [RSP]
JA 0x0010604e
ADDSD XMM2,qword ptr [0x0014b098]
JMP 0x0010604e
LAB_00106049:
MOVAPD XMM0,xmmword ptr [RSP]
LAB_0010604e:
MOVAPD XMM1,xmmword ptr [RSP + 0x20]
MOV RDI,R13
LEA RSI,[0x14b8c5]
MOV EDX,EBX
MOV AL,0x3
CALL 0x001022c0
INC R12D
MOV RDI,R15
CALL 0x00115b8a
CMP R12D,EAX
JL 0x00105f1f
LAB_0010607b:
MOV EBX,dword ptr [RSP + 0x1c]
INC EBX
MOV RDI,RBP
CALL 0x00115de8
CMP EBX,EAX
JL 0x00105e06
LAB_00106091:
INC R14D
MOV RBX,qword ptr [RSP + 0x30]
MOV RDI,RBX
CALL 0x00115fe8
CMP R14D,EAX
MOV R15,qword ptr [RSP + 0x10]
JL 0x00105d68
LAB_001060af:
MOV EBP,dword ptr [RSP + 0x18]
INC EBP
MOV RDI,R15
CALL 0x0011620c
CMP EBP,EAX
JL 0x00105d2f
LAB_001060c5:
XOR EAX,EAX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* correctTableCB(LefDefParser::lefrCallbackType_e, LefDefParser::lefiCorrectionTable*, void*) */
int8 correctTableCB(uint param_1,lefiCorrectionTable *param_2,long param_3)
{
FILE *pFVar1;
uint uVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
lefiCorrectionEdge *this;
lefiCorrectionResistance *this_00;
lefiCorrectionVictim *this_01;
int iVar7;
double dVar8;
double dVar9;
double dVar10;
if (0x38 < param_1) {
fwrite("ERROR: callback type is out of bounds!\n",0x27,1,fout);
}
if (userData != param_3) {
fwrite("ERROR: returned user data is not correct!\n",0x2a,1,fout);
}
pFVar1 = fout;
uVar2 = LefDefParser::lefiCorrectionTable::num(param_2);
iVar7 = 0;
fprintf(pFVar1,"CROSSTALK CORRECTIONTABLE %d\n",(ulong)uVar2);
iVar3 = LefDefParser::lefiCorrectionTable::numEdges(param_2);
if (0 < iVar3) {
do {
this = (lefiCorrectionEdge *)LefDefParser::lefiCorrectionTable::edge(param_2,iVar7);
iVar3 = LefDefParser::lefiCorrectionEdge::numResistances(this);
if ((iVar3 != 0) &&
(iVar3 = LefDefParser::lefiCorrectionEdge::numResistances(this), 0 < iVar3)) {
iVar3 = 0;
do {
this_00 = (lefiCorrectionResistance *)
LefDefParser::lefiCorrectionEdge::resistance(this,iVar3);
pFVar1 = fout;
uVar2 = LefDefParser::lefiCorrectionTable::num(param_2);
dVar8 = (double)LefDefParser::lefiCorrectionResistance::num(this_00,iVar3);
if ((DAT_0014b090 < (double)((ulong)dVar8 & _DAT_0014b010)) &&
((long)dVar8 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333)) {
dVar8 = dVar8 + _DAT_0014b098;
}
fprintf(pFVar1,"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g\n",dVar8,(ulong)uVar2);
iVar4 = LefDefParser::lefiCorrectionResistance::numVictims(this_00);
if (0 < iVar4) {
iVar4 = 0;
do {
this_01 = (lefiCorrectionVictim *)
LefDefParser::lefiCorrectionResistance::victim(this_00,iVar4);
dVar8 = (double)LefDefParser::lefiCorrectionVictim::length(this_01);
pFVar1 = fout;
if (_DAT_0014b0a0 < dVar8) {
uVar2 = LefDefParser::lefiCorrectionTable::num(param_2);
dVar8 = (double)LefDefParser::lefiCorrectionResistance::num(this_00,iVar3);
if ((DAT_0014b090 < (double)((ulong)dVar8 & _DAT_0014b010)) &&
((long)dVar8 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333)) {
dVar8 = dVar8 + _DAT_0014b098;
}
dVar9 = (double)LefDefParser::lefiCorrectionVictim::length(this_01);
if ((DAT_0014b090 < (double)((ulong)dVar9 & _DAT_0014b010)) &&
((long)dVar9 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333)) {
dVar9 = dVar9 + _DAT_0014b098;
}
fprintf(pFVar1,"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g VICTIMLEN %g\n",dVar8,
dVar9,(ulong)uVar2);
}
iVar5 = LefDefParser::lefiCorrectionVictim::numCorrections(this_01);
if (0 < iVar5) {
iVar5 = 0;
do {
pFVar1 = fout;
uVar2 = LefDefParser::lefiCorrectionTable::num(param_2);
dVar8 = (double)LefDefParser::lefiCorrectionResistance::num(this_00,iVar3);
if ((DAT_0014b090 < (double)((ulong)dVar8 & _DAT_0014b010)) &&
((long)dVar8 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333))
{
dVar8 = dVar8 + _DAT_0014b098;
}
dVar9 = (double)LefDefParser::lefiCorrectionVictim::length(this_01);
if ((DAT_0014b090 < (double)((ulong)dVar9 & _DAT_0014b010)) &&
((long)dVar9 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333))
{
dVar9 = dVar9 + _DAT_0014b098;
}
dVar10 = (double)LefDefParser::lefiCorrectionVictim::correction(this_01,iVar5);
if ((DAT_0014b090 < (double)((ulong)dVar10 & _DAT_0014b010)) &&
((long)dVar10 * -0x3333333333333333 + 0x1999999999999999U < 0x3333333333333333)
) {
dVar10 = dVar10 + _DAT_0014b098;
}
fprintf(pFVar1,
"CROSSTALK CORRECTIONTABLE %d RESISTANCE %g VICTIM GTH %g CORRECTIONFACTOR %g\n"
,dVar8,dVar9,dVar10,(ulong)uVar2);
iVar5 = iVar5 + 1;
iVar6 = LefDefParser::lefiCorrectionVictim::numCorrections(this_01);
} while (iVar5 < iVar6);
}
iVar4 = iVar4 + 1;
iVar5 = LefDefParser::lefiCorrectionResistance::numVictims(this_00);
} while (iVar4 < iVar5);
}
iVar3 = iVar3 + 1;
iVar4 = LefDefParser::lefiCorrectionEdge::numResistances(this);
} while (iVar3 < iVar4);
}
iVar7 = iVar7 + 1;
iVar3 = LefDefParser::lefiCorrectionTable::numEdges(param_2);
} while (iVar7 < iVar3);
}
return 0;
}
|
|
62,314 |
plutovg_matrix_map_rect
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-matrix.c
|
void plutovg_matrix_map_rect(const plutovg_matrix_t* matrix, const plutovg_rect_t* src, plutovg_rect_t* dst)
{
plutovg_point_t p[4];
p[0].x = src->x;
p[0].y = src->y;
p[1].x = src->x + src->w;
p[1].y = src->y;
p[2].x = src->x + src->w;
p[2].y = src->y + src->h;
p[3].x = src->x;
p[3].y = src->y + src->h;
plutovg_matrix_map_points(matrix, p, p, 4);
float l = p[0].x;
float t = p[0].y;
float r = p[0].x;
float b = p[0].y;
for(int i = 1; i < 4; i++) {
if(p[i].x < l) l = p[i].x;
if(p[i].x > r) r = p[i].x;
if(p[i].y < t) t = p[i].y;
if(p[i].y > b) b = p[i].y;
}
dst->x = l;
dst->y = t;
dst->w = r - l;
dst->h = b - t;
}
|
O2
|
c
|
plutovg_matrix_map_rect:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movsd (%rsi), %xmm0
movq %rsp, %r14
movsd %xmm0, (%r14)
movsd 0x8(%rsi), %xmm1
addps %xmm0, %xmm1
movss %xmm1, 0x8(%r14)
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1]
movss %xmm2, 0xc(%r14)
movlps %xmm1, 0x10(%r14)
movss %xmm0, 0x18(%r14)
shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1]
movss %xmm1, 0x1c(%r14)
pushq $0x4
popq %rcx
movq %r14, %rsi
movq %r14, %rdx
callq 0x78c4
pushq $0x1
popq %rax
movsd (%r14), %xmm0
movaps %xmm0, %xmm1
cmpq $0x4, %rax
je 0x7986
movsd (%rsp,%rax,8), %xmm2
movaps %xmm2, %xmm3
minps %xmm0, %xmm3
maxps %xmm1, %xmm2
incq %rax
movaps %xmm3, %xmm0
movaps %xmm2, %xmm1
jmp 0x7967
subps %xmm0, %xmm1
movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
|
plutovg_matrix_map_rect:
push r14
push rbx
sub rsp, 28h
mov rbx, rdx
movsd xmm0, qword ptr [rsi]
mov r14, rsp
movsd qword ptr [r14], xmm0
movsd xmm1, qword ptr [rsi+8]
addps xmm1, xmm0
movss dword ptr [r14+8], xmm1
movaps xmm2, xmm0
shufps xmm2, xmm0, 55h ; 'U'
movss dword ptr [r14+0Ch], xmm2
movlps qword ptr [r14+10h], xmm1
movss dword ptr [r14+18h], xmm0
shufps xmm1, xmm1, 55h ; 'U'
movss dword ptr [r14+1Ch], xmm1
push 4
pop rcx
mov rsi, r14
mov rdx, r14
call plutovg_matrix_map_points
push 1
pop rax
movsd xmm0, qword ptr [r14]
movaps xmm1, xmm0
loc_7967:
cmp rax, 4
jz short loc_7986
movsd xmm2, [rsp+rax*8+38h+var_38]
movaps xmm3, xmm2
minps xmm3, xmm0
maxps xmm2, xmm1
inc rax
movaps xmm0, xmm3
movaps xmm1, xmm2
jmp short loc_7967
loc_7986:
subps xmm1, xmm0
movlhps xmm0, xmm1
movups xmmword ptr [rbx], xmm0
add rsp, 28h
pop rbx
pop r14
retn
|
long long plutovg_matrix_map_rect(float *a1, unsigned long long *a2, __m128 *a3)
{
__m128 v4; // xmm0
__m128 v5; // xmm1
long long result; // rax
__m128 v7; // xmm0
__m128 v8; // xmm1
__m128 v9; // xmm3
__m128 v10; // xmm2
unsigned long long v11; // [rsp+0h] [rbp-38h] BYREF
__int32 v12; // [rsp+8h] [rbp-30h]
unsigned __int32 v13; // [rsp+Ch] [rbp-2Ch]
double v14; // [rsp+10h] [rbp-28h] BYREF
__int32 v15; // [rsp+18h] [rbp-20h]
unsigned __int32 v16; // [rsp+1Ch] [rbp-1Ch]
v11 = *a2;
v4 = (__m128)v11;
v5 = _mm_add_ps((__m128)a2[1], (__m128)v11);
v12 = v5.m128_i32[0];
v13 = _mm_shuffle_ps(v4, v4, 85).m128_u32[0];
_mm_storel_ps(&v14, v5);
v15 = v4.m128_i32[0];
v16 = _mm_shuffle_ps(v5, v5, 85).m128_u32[0];
plutovg_matrix_map_points(a1, (float *)&v11, (float *)&v11, 4);
result = 1LL;
v7 = (__m128)v11;
v8 = (__m128)v11;
while ( result != 4 )
{
v9 = _mm_min_ps((__m128)*(&v11 + result), v7);
v10 = _mm_max_ps((__m128)*(&v11 + result++), v8);
v7 = v9;
v8 = v10;
}
*a3 = _mm_movelh_ps(v7, _mm_sub_ps(v8, v7));
return result;
}
|
plutovg_matrix_map_rect:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDX
MOVSD XMM0,qword ptr [RSI]
MOV R14,RSP
MOVSD qword ptr [R14],XMM0
MOVSD XMM1,qword ptr [RSI + 0x8]
ADDPS XMM1,XMM0
MOVSS dword ptr [R14 + 0x8],XMM1
MOVAPS XMM2,XMM0
SHUFPS XMM2,XMM0,0x55
MOVSS dword ptr [R14 + 0xc],XMM2
MOVLPS qword ptr [R14 + 0x10],XMM1
MOVSS dword ptr [R14 + 0x18],XMM0
SHUFPS XMM1,XMM1,0x55
MOVSS dword ptr [R14 + 0x1c],XMM1
PUSH 0x4
POP RCX
MOV RSI,R14
MOV RDX,R14
CALL 0x001078c4
PUSH 0x1
POP RAX
MOVSD XMM0,qword ptr [R14]
MOVAPS XMM1,XMM0
LAB_00107967:
CMP RAX,0x4
JZ 0x00107986
MOVSD XMM2,qword ptr [RSP + RAX*0x8]
MOVAPS XMM3,XMM2
MINPS XMM3,XMM0
MAXPS XMM2,XMM1
INC RAX
MOVAPS XMM0,XMM3
MOVAPS XMM1,XMM2
JMP 0x00107967
LAB_00107986:
SUBPS XMM1,XMM0
MOVLHPS XMM0,XMM1
MOVUPS xmmword ptr [RBX],XMM0
ADD RSP,0x28
POP RBX
POP R14
RET
|
void plutovg_matrix_map_rect(int8 param_1,ulong *param_2,float *param_3)
{
int1 auVar1 [16];
long lVar2;
float fVar3;
float fVar4;
int4 uVar5;
int4 uVar6;
float fVar7;
float fVar8;
int4 uVar9;
int4 uVar10;
int1 auVar11 [16];
int1 auVar12 [16];
int1 auVar13 [16];
ulong local_38;
float local_30;
float fStack_2c;
int8 local_28;
float local_20;
float local_1c;
local_38 = *param_2;
local_20 = (float)local_38;
fStack_2c = (float)(local_38 >> 0x20);
local_30 = (float)param_2[1] + local_20;
local_1c = (float)(param_2[1] >> 0x20) + fStack_2c;
local_28 = CONCAT44(local_1c,local_30);
plutovg_matrix_map_points(param_1,&local_38,&local_38,4);
fVar3 = (float)local_38;
fVar4 = (float)(local_38 >> 0x20);
uVar5 = 0;
uVar6 = 0;
fVar7 = fVar3;
fVar8 = fVar4;
uVar9 = uVar5;
uVar10 = uVar6;
for (lVar2 = 1; lVar2 != 4; lVar2 = lVar2 + 1) {
auVar11._8_8_ = 0;
auVar11._0_8_ = (&local_38)[lVar2];
auVar13._8_8_ = 0;
auVar13._0_8_ = (&local_38)[lVar2];
auVar12._4_4_ = fVar4;
auVar12._0_4_ = fVar3;
auVar12._8_4_ = uVar5;
auVar12._12_4_ = uVar6;
auVar13 = minps(auVar13,auVar12);
auVar1._4_4_ = fVar8;
auVar1._0_4_ = fVar7;
auVar1._8_4_ = uVar9;
auVar1._12_4_ = uVar10;
auVar12 = maxps(auVar11,auVar1);
fVar3 = auVar13._0_4_;
fVar4 = auVar13._4_4_;
uVar5 = auVar13._8_4_;
uVar6 = auVar13._12_4_;
fVar7 = auVar12._0_4_;
fVar8 = auVar12._4_4_;
uVar9 = auVar12._8_4_;
uVar10 = auVar12._12_4_;
}
*param_3 = fVar3;
param_3[1] = fVar4;
param_3[2] = fVar7 - fVar3;
param_3[3] = fVar8 - fVar4;
return;
}
|
|
62,315 |
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const
|
monkey531[P]llama/common/json.hpp
|
const_reference at(KeyType && key) const
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return it->second;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0x6db7f
movq %rsi, %r15
movq 0x8(%r14), %r12
movq (%r12), %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
je 0x6db69
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1a1a0
testl %eax, %eax
je 0x6db5e
addq $0x30, %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
jne 0x6db3f
jmp 0x6db61
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
cmpq %rbx, %rax
je 0x6dbdd
addq $0x20, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1a390
movq %rax, %rbx
movq %r14, %rdi
callq 0x42dd6
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0x43ede(%rip), %rsi # 0xb1a7f
leaq 0x20(%rsp), %rdi
callq 0x73575
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x42b7e
xorl %ebp, %ebp
leaq 0x736fc(%rip), %rsi # 0xe12c8
leaq -0x1cb37(%rip), %rdx # 0x5109c
movq %rbx, %rdi
callq 0x1acd0
jmp 0x6dc56
movl $0x20, %edi
callq 0x1a390
movq %rax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x1a330
leaq (%rax,%r15), %rdx
movq %rsp, %rdi
movq %r15, %rsi
callq 0x20d82
leaq 0x43e9d(%rip), %rsi # 0xb1aaf
leaq 0x43e9c(%rip), %rcx # 0xb1ab5
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x73b52
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x73eca
xorl %ebp, %ebp
leaq 0x73769(%rip), %rsi # 0xe13b0
leaq -0x1cbb2(%rip), %rdx # 0x5109c
movq %rbx, %rdi
callq 0x1acd0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dc74
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a740
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dcbf
movq 0x10(%rsp), %rsi
jmp 0x6dcb7
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dcc9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x6dcc9
jmp 0x6dcc6
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dcbf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a740
testb %bpl, %bpl
jne 0x6dcc9
jmp 0x6dcd1
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a530
movq %r14, %rdi
callq 0x1ad30
nop
|
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push r12; int
push rbx; char
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_6DB7F
mov r15, rsi
mov r12, [r14+8]
mov rbx, [r12]
mov rax, [r12+8]
cmp rbx, rax
jz short loc_6DB69
loc_6DB3F:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_6DB5E
add rbx, 30h ; '0'
mov rax, [r12+8]
cmp rbx, rax
jnz short loc_6DB3F
jmp short loc_6DB61
loc_6DB5E:
mov rax, rbx
loc_6DB61:
mov rcx, [r14+8]
mov rbx, [rcx+8]
loc_6DB69:
cmp rax, rbx
jz short loc_6DBDD
add rax, 20h ; ' '
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_6DB7F:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov rdx, rsp
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_48]
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_6DC56
loc_6DBDD:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r12, [rsp+68h+var_58]
mov [r12-10h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
mov rdi, rsp
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
lea rdx, [rsp+68h+var_48]
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6DC56:
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6DC74
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6DC74:
mov rdi, [rsp+68h+var_68]
cmp rdi, r12
jz short loc_6DCBF
mov rsi, [rsp+68h+var_58]
jmp short loc_6DCB7
mov r14, rax
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_6DCC9
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6DCC9
jmp short loc_6DCC6
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6DCBF
mov rsi, [rsp+68h+var_38]
loc_6DCB7:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6DCBF:
test bpl, bpl
jnz short loc_6DCC9
jmp short loc_6DCD1
loc_6DCC6:
mov r14, rax
loc_6DCC9:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6DCD1:
mov rdi, r14
call __Unwind_Resume
|
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x0016db7f
MOV R15,RSI
MOV R12,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JZ 0x0016db69
LAB_0016db3f:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011a1a0
TEST EAX,EAX
JZ 0x0016db5e
ADD RBX,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JNZ 0x0016db3f
JMP 0x0016db61
LAB_0016db5e:
MOV RAX,RBX
LAB_0016db61:
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
LAB_0016db69:
CMP RAX,RBX
JZ 0x0016dbdd
ADD RAX,0x20
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0016db7f:
MOV EDI,0x20
CALL 0x0011a390
MOV RBX,RAX
MOV RDI,R14
CALL 0x00142dd6
MOV RDX,RSP
MOV qword ptr [RDX],RAX
LAB_0016db9a:
LEA RSI,[0x1b1a7f]
LEA RDI,[RSP + 0x20]
CALL 0x00173575
MOV BPL,0x1
LAB_0016dbae:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x00142b7e
XOR EBP,EBP
LEA RSI,[0x1e12c8]
LEA RDX,[0x15109c]
MOV RDI,RBX
CALL 0x0011acd0
LAB_0016dbdd:
MOV EDI,0x20
CALL 0x0011a390
MOV RBX,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x0011a330
LEA RDX,[RAX + R15*0x1]
LAB_0016dc00:
MOV RDI,RSP
MOV RSI,R15
CALL 0x00120d82
LAB_0016dc0b:
LEA RSI,[0x1b1aaf]
LEA RCX,[0x1b1ab5]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00173b52
MOV BPL,0x1
LAB_0016dc29:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x00173eca
XOR EBP,EBP
LEA RSI,[0x1e13b0]
LEA RDX,[0x15109c]
MOV RDI,RBX
CALL 0x0011acd0
|
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
long *plVar1;
int iVar2;
char *pcVar3;
int8 uVar4;
size_t sVar5;
char *pcVar6;
char *local_68 [2];
char local_58 [16];
detail local_48 [32];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar4 = __cxa_allocate_exception(0x20);
local_68[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 0016db9a to 0016dbaa has its CatchHandler @ 0016dcc6 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(local_48,"cannot use at() with ",local_68);
/* try { // try from 0016dbae to 0016dbda has its CatchHandler @ 0016dca1 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar4,0x130,local_48,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
plVar1 = *(long **)(param_1 + 8);
pcVar6 = (char *)*plVar1;
pcVar3 = (char *)plVar1[1];
if (pcVar6 != pcVar3) {
do {
pcVar3 = pcVar6;
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar6 = pcVar3 + 0x30;
pcVar3 = (char *)plVar1[1];
} while (pcVar6 != pcVar3);
pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8);
}
if (pcVar3 == pcVar6) {
uVar4 = __cxa_allocate_exception(0x20);
local_68[0] = local_58;
sVar5 = strlen(param_2);
/* try { // try from 0016dc00 to 0016dc0a has its CatchHandler @ 0016dc9f */
std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5);
/* try { // try from 0016dc0b to 0016dc25 has its CatchHandler @ 0016dc84 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(local_48,"key \'",(string *)local_68,"\' not found");
/* try { // try from 0016dc29 to 0016dc55 has its CatchHandler @ 0016dc56 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar4,0x193,local_48,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return pcVar3 + 0x20;
}
|
||
62,316 |
Overworld::is_inside_terrain(glm::vec<3, long, (glm::qualifier)0> const&)
|
untodesu[P]voxelius/game/server/overworld.cc
|
bool Overworld::is_inside_terrain(const voxel_pos &vpos)
{
auto variation_noise = fnlGetNoise3D(&m_fnl_terrain, vpos.x, vpos.y, vpos.z);
auto variation = m_terrain_variation.get_value() * (1.0f - (variation_noise * variation_noise));
auto noise = variation * fnlGetNoise3D(&m_fnl_terrain, vpos.x, vpos.y, vpos.z) - vpos.y;
return noise > 0.0f;
}
|
O3
|
cpp
|
Overworld::is_inside_terrain(glm::vec<3, long, (glm::qualifier)0> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
cvtsi2ssq (%rsi), %xmm0
movq %rdi, %r14
cvtsi2ssq 0x8(%rsi), %xmm1
leaq 0x3dc(%rdi), %r15
cvtsi2ssq 0x10(%rsi), %xmm2
movq %r15, %rdi
callq 0xa5681
xorps %xmm2, %xmm2
cvtsi2ssl 0x308(%r14), %xmm2
mulss %xmm0, %xmm0
movss 0x96b73(%rip), %xmm4 # 0xb680c
cvtsi2ssq (%rbx), %xmm3
subss %xmm0, %xmm4
xorps %xmm1, %xmm1
cvtsi2ssq 0x8(%rbx), %xmm1
mulss %xmm2, %xmm4
movss %xmm4, 0xc(%rsp)
xorps %xmm2, %xmm2
cvtsi2ssq 0x10(%rbx), %xmm2
movq %r15, %rdi
movaps %xmm3, %xmm0
callq 0xa5681
xorps %xmm1, %xmm1
cvtsi2ssq 0x8(%rbx), %xmm1
mulss 0xc(%rsp), %xmm0
subss %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
seta %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZN9Overworld17is_inside_terrainERKN3glm3vecILi3ElLNS0_9qualifierE0EEE:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
cvtsi2ss xmm0, qword ptr [rsi]
mov r14, rdi
cvtsi2ss xmm1, qword ptr [rsi+8]
lea r15, [rdi+3DCh]
cvtsi2ss xmm2, qword ptr [rsi+10h]
mov rdi, r15
call fnlGetNoise3D
xorps xmm2, xmm2
cvtsi2ss xmm2, dword ptr [r14+308h]
mulss xmm0, xmm0
movss xmm4, cs:dword_B680C
cvtsi2ss xmm3, qword ptr [rbx]
subss xmm4, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm1, qword ptr [rbx+8]
mulss xmm4, xmm2
movss [rsp+28h+var_1C], xmm4
xorps xmm2, xmm2
cvtsi2ss xmm2, qword ptr [rbx+10h]
mov rdi, r15
movaps xmm0, xmm3
call fnlGetNoise3D
xorps xmm1, xmm1
cvtsi2ss xmm1, qword ptr [rbx+8]
mulss xmm0, [rsp+28h+var_1C]
subss xmm0, xmm1
xorps xmm1, xmm1
ucomiss xmm0, xmm1
setnbe al
add rsp, 10h
pop rbx
pop r14
pop r15
retn
|
bool Overworld::is_inside_terrain(long long a1, _QWORD *a2)
{
double Noise3D; // xmm0_8
double v3; // xmm0_8
float v5; // [rsp+Ch] [rbp-1Ch]
Noise3D = fnlGetNoise3D(a1 + 988, (float)(int)*a2, (float)(int)a2[1], (float)(int)a2[2]);
v5 = (float)(1.0 - (float)(*(float *)&Noise3D * *(float *)&Noise3D)) * (float)*(int *)(a1 + 776);
v3 = fnlGetNoise3D(a1 + 988, (float)(int)*a2, (float)(int)a2[1], (float)(int)a2[2]);
return (float)((float)(*(float *)&v3 * v5) - (float)(int)a2[1]) > 0.0;
}
|
is_inside_terrain:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
CVTSI2SS XMM0,qword ptr [RSI]
MOV R14,RDI
CVTSI2SS XMM1,qword ptr [RSI + 0x8]
LEA R15,[RDI + 0x3dc]
CVTSI2SS XMM2,qword ptr [RSI + 0x10]
MOV RDI,R15
CALL 0x001a5681
XORPS XMM2,XMM2
CVTSI2SS XMM2,dword ptr [R14 + 0x308]
MULSS XMM0,XMM0
MOVSS XMM4,dword ptr [0x001b680c]
CVTSI2SS XMM3,qword ptr [RBX]
SUBSS XMM4,XMM0
XORPS XMM1,XMM1
CVTSI2SS XMM1,qword ptr [RBX + 0x8]
MULSS XMM4,XMM2
MOVSS dword ptr [RSP + 0xc],XMM4
XORPS XMM2,XMM2
CVTSI2SS XMM2,qword ptr [RBX + 0x10]
MOV RDI,R15
MOVAPS XMM0,XMM3
CALL 0x001a5681
XORPS XMM1,XMM1
CVTSI2SS XMM1,qword ptr [RBX + 0x8]
MULSS XMM0,dword ptr [RSP + 0xc]
SUBSS XMM0,XMM1
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
SETA AL
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* Overworld::is_inside_terrain(glm::vec<3, long, (glm::qualifier)0> const&) */
bool __thiscall Overworld::is_inside_terrain(Overworld *this,vec *param_1)
{
int iVar1;
float fVar2;
float fVar3;
fVar2 = (float)fnlGetNoise3D((float)*(long *)param_1,(float)*(long *)(param_1 + 8),
(float)*(long *)(param_1 + 0x10),this + 0x3dc);
iVar1 = *(int *)(this + 0x308);
fVar3 = DAT_001b680c - fVar2 * fVar2;
fVar2 = (float)fnlGetNoise3D((float)*(long *)param_1,(float)*(long *)(param_1 + 8),
(float)*(long *)(param_1 + 0x10),this + 0x3dc);
return 0.0 < fVar2 * fVar3 * (float)iVar1 - (float)*(long *)(param_1 + 8);
}
|
|
62,317 |
translog_interpret_file_header
|
eloqsql/storage/maria/ma_loghandler.c
|
void translog_interpret_file_header(LOGHANDLER_FILE_INFO *desc,
uchar *page_buff)
{
uchar *ptr;
ptr= page_buff + sizeof(maria_trans_file_magic);
desc->timestamp= uint8korr(ptr);
ptr+= 8;
desc->maria_version= uint4korr(ptr);
ptr+= 4;
desc->mysql_version= uint4korr(ptr);
ptr+= 4;
desc->server_id= uint4korr(ptr);
ptr+= 4;
desc->page_size= uint2korr(ptr) + 1;
ptr+= 2;
desc->file_number= uint3korr(ptr);
ptr+= 3;
desc->max_lsn= lsn_korr(ptr);
}
|
O3
|
c
|
translog_interpret_file_header:
pushq %rbp
movq %rsp, %rbp
movq 0xc(%rsi), %rax
movq %rax, 0x8(%rdi)
movl 0x14(%rsi), %eax
movq %rax, 0x10(%rdi)
movl 0x18(%rsi), %eax
movq %rax, 0x18(%rdi)
movl 0x1c(%rsi), %eax
movq %rax, 0x20(%rdi)
movzwl 0x20(%rsi), %eax
incq %rax
movq %rax, 0x28(%rdi)
movzwl 0x22(%rsi), %eax
movzbl 0x24(%rsi), %ecx
shll $0x10, %ecx
orq %rax, %rcx
movq %rcx, 0x30(%rdi)
movzwl 0x25(%rsi), %eax
shlq $0x20, %rax
movzbl 0x27(%rsi), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x28(%rsi), %eax
orq %rcx, %rax
movq %rax, (%rdi)
popq %rbp
retq
|
translog_interpret_file_header:
push rbp
mov rbp, rsp
mov rax, [rsi+0Ch]
mov [rdi+8], rax
mov eax, [rsi+14h]
mov [rdi+10h], rax
mov eax, [rsi+18h]
mov [rdi+18h], rax
mov eax, [rsi+1Ch]
mov [rdi+20h], rax
movzx eax, word ptr [rsi+20h]
inc rax
mov [rdi+28h], rax
movzx eax, word ptr [rsi+22h]
movzx ecx, byte ptr [rsi+24h]
shl ecx, 10h
or rcx, rax
mov [rdi+30h], rcx
movzx eax, word ptr [rsi+25h]
shl rax, 20h
movzx ecx, byte ptr [rsi+27h]
shl rcx, 30h
or rcx, rax
mov eax, [rsi+28h]
or rax, rcx
mov [rdi], rax
pop rbp
retn
|
unsigned long long translog_interpret_file_header(unsigned long long *a1, long long a2)
{
unsigned long long result; // rax
a1[1] = *(_QWORD *)(a2 + 12);
a1[2] = *(unsigned int *)(a2 + 20);
a1[3] = *(unsigned int *)(a2 + 24);
a1[4] = *(unsigned int *)(a2 + 28);
a1[5] = *(unsigned __int16 *)(a2 + 32) + 1LL;
a1[6] = *(unsigned __int16 *)(a2 + 34) | (unsigned long long)(*(unsigned __int8 *)(a2 + 36) << 16);
result = ((unsigned long long)*(unsigned __int16 *)(a2 + 37) << 32) | ((unsigned long long)*(unsigned __int8 *)(a2 + 39) << 48) | *(unsigned int *)(a2 + 40);
*a1 = result;
return result;
}
|
translog_interpret_file_header:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RSI + 0xc]
MOV qword ptr [RDI + 0x8],RAX
MOV EAX,dword ptr [RSI + 0x14]
MOV qword ptr [RDI + 0x10],RAX
MOV EAX,dword ptr [RSI + 0x18]
MOV qword ptr [RDI + 0x18],RAX
MOV EAX,dword ptr [RSI + 0x1c]
MOV qword ptr [RDI + 0x20],RAX
MOVZX EAX,word ptr [RSI + 0x20]
INC RAX
MOV qword ptr [RDI + 0x28],RAX
MOVZX EAX,word ptr [RSI + 0x22]
MOVZX ECX,byte ptr [RSI + 0x24]
SHL ECX,0x10
OR RCX,RAX
MOV qword ptr [RDI + 0x30],RCX
MOVZX EAX,word ptr [RSI + 0x25]
SHL RAX,0x20
MOVZX ECX,byte ptr [RSI + 0x27]
SHL RCX,0x30
OR RCX,RAX
MOV EAX,dword ptr [RSI + 0x28]
OR RAX,RCX
MOV qword ptr [RDI],RAX
POP RBP
RET
|
void translog_interpret_file_header(ulong *param_1,long param_2)
{
param_1[1] = *(ulong *)(param_2 + 0xc);
param_1[2] = (ulong)*(uint *)(param_2 + 0x14);
param_1[3] = (ulong)*(uint *)(param_2 + 0x18);
param_1[4] = (ulong)*(uint *)(param_2 + 0x1c);
param_1[5] = (ulong)*(ushort *)(param_2 + 0x20) + 1;
param_1[6] = (ulong)*(uint3 *)(param_2 + 0x22);
*param_1 = (ulong)*(uint *)(param_2 + 0x28) |
(ulong)*(byte *)(param_2 + 0x27) << 0x30 | (ulong)*(ushort *)(param_2 + 0x25) << 0x20;
return;
}
|
|
62,318 |
JS_ReadObject2
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_ReadObject2(JSContext *ctx, const uint8_t *buf, size_t buf_len,
int flags, JSSABTab *psab_tab)
{
BCReaderState ss, *s = &ss;
JSValue obj;
ctx->binary_object_count += 1;
ctx->binary_object_size += buf_len;
memset(s, 0, sizeof(*s));
s->ctx = ctx;
s->buf_start = buf;
s->buf_end = buf + buf_len;
s->ptr = buf;
s->allow_bytecode = ((flags & JS_READ_OBJ_BYTECODE) != 0);
s->allow_sab = ((flags & JS_READ_OBJ_SAB) != 0);
s->allow_reference = ((flags & JS_READ_OBJ_REFERENCE) != 0);
if (s->allow_bytecode)
s->first_atom = JS_ATOM_END;
else
s->first_atom = 1;
if (JS_ReadObjectAtoms(s)) {
obj = JS_EXCEPTION;
} else {
obj = JS_ReadObjectRec(s);
}
if (psab_tab) {
psab_tab->tab = s->sab_tab;
psab_tab->len = s->sab_tab_len;
} else {
js_free(ctx, s->sab_tab);
}
bc_reader_free(s);
return obj;
}
|
O0
|
c
|
JS_ReadObject2:
subq $0xc8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movl %ecx, 0x9c(%rsp)
movq %r8, 0x90(%rsp)
leaq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xb0(%rsp), %rax
movzwl 0x30(%rax), %ecx
addl $0x1, %ecx
movw %cx, 0x30(%rax)
movq 0xa0(%rsp), %rdx
movq 0xb0(%rsp), %rax
movslq 0x34(%rax), %rcx
addq %rdx, %rcx
movl %ecx, 0x34(%rax)
movq 0x20(%rsp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0xe370
movq 0xb0(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0xa8(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xa8(%rsp), %rcx
addq 0xa0(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0xa8(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movl 0x9c(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %edx
movq 0x20(%rsp), %rax
movl 0x34(%rax), %ecx
andl $0xff, %edx
shll $0x8, %edx
andl $0xffff00ff, %ecx # imm = 0xFFFF00FF
orl %edx, %ecx
movl %ecx, 0x34(%rax)
movl 0x9c(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %edx
movq 0x20(%rsp), %rax
movl 0x34(%rax), %ecx
andl $0xff, %edx
andl $0xffffff00, %ecx # imm = 0xFFFFFF00
orl %edx, %ecx
movl %ecx, 0x34(%rax)
movl 0x9c(%rsp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %edx
movq 0x20(%rsp), %rax
movl 0x34(%rax), %ecx
andl $0xff, %edx
shll $0x10, %edx
andl $0xff00ffff, %ecx # imm = 0xFF00FFFF
orl %edx, %ecx
movl %ecx, 0x34(%rax)
movq 0x20(%rsp), %rax
movl 0x34(%rax), %eax
shll $0x10, %eax
sarl $0x18, %eax
cmpl $0x0, %eax
je 0x51ff2
movq 0x20(%rsp), %rax
movl $0xe0, 0x20(%rax)
jmp 0x51ffe
movq 0x20(%rsp), %rax
movl $0x1, 0x20(%rax)
movq 0x20(%rsp), %rdi
callq 0x520e0
cmpl $0x0, %eax
je 0x5203a
movl $0x0, 0x10(%rsp)
movq $0x6, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x52066
movq 0x20(%rsp), %rdi
callq 0x52390
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xc0(%rsp)
cmpq $0x0, 0x90(%rsp)
je 0x5209c
movq 0x20(%rsp), %rax
movq 0x48(%rax), %rcx
movq 0x90(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
movslq 0x50(%rax), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x520b2
movq 0xb0(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x48(%rax), %rsi
callq 0x280a0
movq 0x20(%rsp), %rdi
callq 0x52d10
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rdx
addq $0xc8, %rsp
retq
nopw %cs:(%rax,%rax)
|
JS_ReadObject2:
sub rsp, 0C8h
mov [rsp+0C8h+var_18], rdi
mov [rsp+0C8h+var_20], rsi
mov [rsp+0C8h+var_28], rdx
mov [rsp+0C8h+var_2C], ecx
mov [rsp+0C8h+var_38], r8
lea rax, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_A8], rax
mov rax, [rsp+0C8h+var_18]
movzx ecx, word ptr [rax+30h]
add ecx, 1
mov [rax+30h], cx
mov rdx, [rsp+0C8h+var_28]
mov rax, [rsp+0C8h+var_18]
movsxd rcx, dword ptr [rax+34h]
add rcx, rdx
mov [rax+34h], ecx
mov rdi, [rsp+0C8h+var_A8]
xor esi, esi
mov edx, 68h ; 'h'
call _memset
mov rcx, [rsp+0C8h+var_18]
mov rax, [rsp+0C8h+var_A8]
mov [rax], rcx
mov rcx, [rsp+0C8h+var_20]
mov rax, [rsp+0C8h+var_A8]
mov [rax+8], rcx
mov rcx, [rsp+0C8h+var_20]
add rcx, [rsp+0C8h+var_28]
mov rax, [rsp+0C8h+var_A8]
mov [rax+18h], rcx
mov rcx, [rsp+0C8h+var_20]
mov rax, [rsp+0C8h+var_A8]
mov [rax+10h], rcx
mov eax, [rsp+0C8h+var_2C]
and eax, 1
cmp eax, 0
setnz al
and al, 1
movzx edx, al
mov rax, [rsp+0C8h+var_A8]
mov ecx, [rax+34h]
and edx, 0FFh
shl edx, 8
and ecx, 0FFFF00FFh
or ecx, edx
mov [rax+34h], ecx
mov eax, [rsp+0C8h+var_2C]
and eax, 4
cmp eax, 0
setnz al
and al, 1
movzx edx, al
mov rax, [rsp+0C8h+var_A8]
mov ecx, [rax+34h]
and edx, 0FFh
and ecx, 0FFFFFF00h
or ecx, edx
mov [rax+34h], ecx
mov eax, [rsp+0C8h+var_2C]
and eax, 8
cmp eax, 0
setnz al
and al, 1
movzx edx, al
mov rax, [rsp+0C8h+var_A8]
mov ecx, [rax+34h]
and edx, 0FFh
shl edx, 10h
and ecx, 0FF00FFFFh
or ecx, edx
mov [rax+34h], ecx
mov rax, [rsp+0C8h+var_A8]
mov eax, [rax+34h]
shl eax, 10h
sar eax, 18h
cmp eax, 0
jz short loc_51FF2
mov rax, [rsp+0C8h+var_A8]
mov dword ptr [rax+20h], 0E0h
jmp short loc_51FFE
loc_51FF2:
mov rax, [rsp+0C8h+var_A8]
mov dword ptr [rax+20h], 1
loc_51FFE:
mov rdi, [rsp+0C8h+var_A8]
call JS_ReadObjectAtoms
cmp eax, 0
jz short loc_5203A
mov dword ptr [rsp+0C8h+var_B8], 0
mov [rsp+0C8h+var_B0], 6
mov rax, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_B0]
mov [rsp+0C8h+var_8], rax
jmp short loc_52066
loc_5203A:
mov rdi, [rsp+0C8h+var_A8]
call JS_ReadObjectRec
mov [rsp+0C8h+var_C8], rax
mov [rsp+0C8h+var_C0], rdx
mov rax, [rsp+0C8h+var_C8]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_8], rax
loc_52066:
cmp [rsp+0C8h+var_38], 0
jz short loc_5209C
mov rax, [rsp+0C8h+var_A8]
mov rcx, [rax+48h]
mov rax, [rsp+0C8h+var_38]
mov [rax], rcx
mov rax, [rsp+0C8h+var_A8]
movsxd rcx, dword ptr [rax+50h]
mov rax, [rsp+0C8h+var_38]
mov [rax+8], rcx
jmp short loc_520B2
loc_5209C:
mov rdi, [rsp+0C8h+var_18]
mov rax, [rsp+0C8h+var_A8]
mov rsi, [rax+48h]
call js_free
loc_520B2:
mov rdi, [rsp+0C8h+var_A8]
call bc_reader_free
mov rax, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
|
long long JS_ReadObject2(long long a1, long long a2, long long a3, int a4, _QWORD *a5)
{
long long v5; // rdx
long long v7; // [rsp+10h] [rbp-B8h]
_QWORD v8[4]; // [rsp+28h] [rbp-A0h] BYREF
int v9; // [rsp+48h] [rbp-80h]
unsigned int v10; // [rsp+5Ch] [rbp-6Ch]
long long v11; // [rsp+70h] [rbp-58h]
int v12; // [rsp+78h] [rbp-50h]
_QWORD *v13; // [rsp+90h] [rbp-38h]
int v14; // [rsp+9Ch] [rbp-2Ch]
long long v15; // [rsp+A0h] [rbp-28h]
long long v16; // [rsp+A8h] [rbp-20h]
long long v17; // [rsp+B0h] [rbp-18h]
long long ObjectRec; // [rsp+B8h] [rbp-10h]
long long v19; // [rsp+C0h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
++*(_WORD *)(a1 + 48);
*(_DWORD *)(v17 + 52) += v15;
memset(v8, 0LL, 104LL);
v8[0] = v17;
v8[1] = v16;
v8[3] = v15 + v16;
v8[2] = v16;
v10 = (((v14 & 1) != 0) << 8) | v10 & 0xFFFF00FF;
v10 = ((v14 & 4) != 0) | v10 & 0xFFFFFF00;
v10 = (((v14 & 8) != 0) << 16) | v10 & 0xFF00FFFF;
if ( (__int16)v10 >> 8 )
v9 = 224;
else
v9 = 1;
if ( (unsigned int)JS_ReadObjectAtoms(v8) )
{
LODWORD(v7) = 0;
ObjectRec = v7;
v19 = 6LL;
}
else
{
ObjectRec = JS_ReadObjectRec(v8);
v19 = v5;
}
if ( v13 )
{
*v13 = v11;
v13[1] = v12;
}
else
{
js_free(v17, v11);
}
bc_reader_free(v8);
return ObjectRec;
}
|
JS_ReadObject2:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV dword ptr [RSP + 0x9c],ECX
MOV qword ptr [RSP + 0x90],R8
LEA RAX,[RSP + 0x28]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOVZX ECX,word ptr [RAX + 0x30]
ADD ECX,0x1
MOV word ptr [RAX + 0x30],CX
MOV RDX,qword ptr [RSP + 0xa0]
MOV RAX,qword ptr [RSP + 0xb0]
MOVSXD RCX,dword ptr [RAX + 0x34]
ADD RCX,RDX
MOV dword ptr [RAX + 0x34],ECX
MOV RDI,qword ptr [RSP + 0x20]
XOR ESI,ESI
MOV EDX,0x68
CALL 0x0010e370
MOV RCX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RSP + 0xa8]
ADD RCX,qword ptr [RSP + 0xa0]
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x18],RCX
MOV RCX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x10],RCX
MOV EAX,dword ptr [RSP + 0x9c]
AND EAX,0x1
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EDX,AL
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RAX + 0x34]
AND EDX,0xff
SHL EDX,0x8
AND ECX,0xffff00ff
OR ECX,EDX
MOV dword ptr [RAX + 0x34],ECX
MOV EAX,dword ptr [RSP + 0x9c]
AND EAX,0x4
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EDX,AL
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RAX + 0x34]
AND EDX,0xff
AND ECX,0xffffff00
OR ECX,EDX
MOV dword ptr [RAX + 0x34],ECX
MOV EAX,dword ptr [RSP + 0x9c]
AND EAX,0x8
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EDX,AL
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RAX + 0x34]
AND EDX,0xff
SHL EDX,0x10
AND ECX,0xff00ffff
OR ECX,EDX
MOV dword ptr [RAX + 0x34],ECX
MOV RAX,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RAX + 0x34]
SHL EAX,0x10
SAR EAX,0x18
CMP EAX,0x0
JZ 0x00151ff2
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX + 0x20],0xe0
JMP 0x00151ffe
LAB_00151ff2:
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX + 0x20],0x1
LAB_00151ffe:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001520e0
CMP EAX,0x0
JZ 0x0015203a
MOV dword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x6
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x00152066
LAB_0015203a:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00152390
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0xc0],RAX
LAB_00152066:
CMP qword ptr [RSP + 0x90],0x0
JZ 0x0015209c
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RAX + 0x50]
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001520b2
LAB_0015209c:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x48]
CALL 0x001280a0
LAB_001520b2:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00152d10
MOV RAX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
int1 [16]
JS_ReadObject2(long param_1,long param_2,long param_3,uint param_4,int8 *param_5)
{
int iVar1;
uint uVar2;
uint uStack_b4;
long local_a0;
long local_98;
long local_90;
long local_88;
int4 local_80;
uint local_6c;
int8 local_58;
int local_50;
int8 *local_38;
uint local_2c;
long local_28;
long local_20;
long local_18;
int1 local_10 [16];
*(short *)(param_1 + 0x30) = *(short *)(param_1 + 0x30) + 1;
*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + (int)param_3;
local_38 = param_5;
local_2c = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
memset(&local_a0,0,0x68);
local_a0 = local_18;
local_98 = local_20;
local_88 = local_20 + local_28;
local_90 = local_20;
uVar2 = local_6c & 0xff000000 | (uint)((local_2c & 1) != 0) << 8 | (uint)((local_2c & 4) != 0);
local_6c = uVar2 | (uint)((local_2c & 8) != 0) << 0x10;
if ((int)(uVar2 << 0x10) >> 0x18 == 0) {
local_80 = 1;
}
else {
local_80 = 0xe0;
}
iVar1 = JS_ReadObjectAtoms(&local_a0);
if (iVar1 == 0) {
local_10 = JS_ReadObjectRec(&local_a0);
}
else {
local_10._8_8_ = 6;
local_10._0_8_ = (ulong)uStack_b4 << 0x20;
}
if (local_38 == (int8 *)0x0) {
js_free(local_18,local_58);
}
else {
*local_38 = local_58;
local_38[1] = (long)local_50;
}
bc_reader_free(&local_a0);
return local_10;
}
|
|
62,319 |
JS_ReadObject2
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_ReadObject2(JSContext *ctx, const uint8_t *buf, size_t buf_len,
int flags, JSSABTab *psab_tab)
{
BCReaderState ss, *s = &ss;
JSValue obj;
ctx->binary_object_count += 1;
ctx->binary_object_size += buf_len;
memset(s, 0, sizeof(*s));
s->ctx = ctx;
s->buf_start = buf;
s->buf_end = buf + buf_len;
s->ptr = buf;
s->allow_bytecode = ((flags & JS_READ_OBJ_BYTECODE) != 0);
s->allow_sab = ((flags & JS_READ_OBJ_SAB) != 0);
s->allow_reference = ((flags & JS_READ_OBJ_REFERENCE) != 0);
if (s->allow_bytecode)
s->first_atom = JS_ATOM_END;
else
s->first_atom = 1;
if (JS_ReadObjectAtoms(s)) {
obj = JS_EXCEPTION;
} else {
obj = JS_ReadObjectRec(s);
}
if (psab_tab) {
psab_tab->tab = s->sab_tab;
psab_tab->len = s->sab_tab_len;
} else {
js_free(ctx, s->sab_tab);
}
bc_reader_free(s);
return obj;
}
|
O2
|
c
|
JS_ReadObject2:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %rbx
movq %rdi, %r14
incw 0x30(%rdi)
addl %edx, 0x34(%rdi)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
andq $0x0, 0x60(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x40(%rdi)
movq %r14, (%rdi)
movq %rsi, 0x8(%rdi)
addq %rsi, %rdx
movq %rdx, 0x18(%rdi)
movq %rsi, 0x10(%rdi)
movl %ecx, %eax
andl $0x1, %eax
shll $0x8, %eax
movl %ecx, %edx
shrl $0x2, %edx
andl $0x1, %edx
andl $0x8, %ecx
shll $0xd, %ecx
orl %edx, %ecx
orl %eax, %ecx
movl %ecx, 0x34(%rdi)
testl %eax, %eax
pushq $0x1
popq %rax
movl $0xe0, %ecx
cmovel %eax, %ecx
movl %ecx, 0x20(%rdi)
leaq 0xf(%rsp), %rsi
callq 0x40d14
testl %eax, %eax
jne 0x2e889
movzbl 0xf(%rsp), %edx
cmpl $0x13, %edx
jne 0x2e873
leaq 0x34(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x40d44
testl %eax, %eax
jne 0x2e889
movl 0x34(%rsp), %r13d
cmpq $0xf4241, %r13 # imm = 0xF4241
jb 0x2e90b
movq 0x10(%rsp), %rdi
leaq 0x5b24a(%rip), %rsi # 0x89ab1
movl %r13d, %edx
xorl %eax, %eax
callq 0x20321
jmp 0x2e889
movq 0x10(%rsp), %rdi
leaq 0x5b211(%rip), %rsi # 0x89a90
pushq $0x13
popq %rcx
xorl %eax, %eax
callq 0x2016b
pushq $0x6
popq %r15
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x58(%rsp), %rsi
testq %rbx, %rbx
je 0x2e8ab
movq %rsi, (%rbx)
movslq 0x60(%rsp), %rax
movq %rax, 0x8(%rbx)
jmp 0x2e8b3
movq %r14, %rdi
callq 0x1ae1e
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x2e8e4
xorl %ebx, %ebx
movl 0x34(%rsp), %eax
movq 0x10(%rsp), %rdi
cmpq %rax, %rbx
jae 0x2e8df
movl (%rsi,%rbx,4), %esi
callq 0x1e545
incq %rbx
movq 0x38(%rsp), %rsi
jmp 0x2e8bf
callq 0x1ae1e
movq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x1ae1e
orq %r13, %r12
movq %r12, %rax
movq %r15, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r13d, %r13d
je 0x2e92f
movq 0x10(%rsp), %rdi
movq %r13, %rsi
shlq $0x2, %rsi
callq 0x1adf1
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2e9d4
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
movl %r13d, %eax
cmpq %rax, %r12
jae 0x2e9de
movq %r15, %rdi
leaq 0xe(%rsp), %rsi
callq 0x40d14
testl %eax, %eax
jne 0x2e889
movzbl 0xe(%rsp), %ebp
testl %ebp, %ebp
je 0x2e991
cmpb $0x4, %bpl
jae 0x2ea00
movq %r15, %rdi
callq 0x40d76
testq %rax, %rax
je 0x2e889
movq 0x10(%rsp), %rcx
movq 0x18(%rcx), %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0x1e0eb
jmp 0x2e9ba
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
subq %rcx, %rax
cmpq $0x3, %rax
jle 0x2ea2b
movl (%rcx), %eax
addq $0x4, %rcx
movq %rcx, 0x20(%rsp)
cmpl $0xe0, %eax
jge 0x2ea13
testl %eax, %eax
je 0x2e9d4
movq 0x38(%rsp), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x34(%rsp), %r13d
jmp 0x2e937
orl $-0x1, 0x40(%rsp)
jmp 0x2e889
leaq 0x10(%rsp), %rdi
callq 0x2ea3a
movq %rdx, %r15
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
andq %rax, %r12
movl %eax, %r13d
jmp 0x2e893
movq 0x10(%rsp), %rdi
leaq 0x5b0d3(%rip), %rsi # 0x89adf
movl %ebp, %edx
jmp 0x2e86a
movq 0x10(%rsp), %rdi
leaq 0x5b0ae(%rip), %rsi # 0x89acd
xorl %eax, %eax
callq 0x20321
jmp 0x2e889
leaq 0x10(%rsp), %rdi
callq 0x40e2c
jmp 0x2e889
|
JS_ReadObject2:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, r8
mov r14, rdi
inc word ptr [rdi+30h]
add [rdi+34h], edx
xorps xmm0, xmm0
lea rdi, [rsp+0A8h+var_98]
movups xmmword ptr [rdi+30h], xmm0
movups xmmword ptr [rdi+20h], xmm0
and qword ptr [rdi+60h], 0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+40h], xmm0
mov [rdi], r14
mov [rdi+8], rsi
add rdx, rsi
mov [rdi+18h], rdx
mov [rdi+10h], rsi
mov eax, ecx
and eax, 1
shl eax, 8
mov edx, ecx
shr edx, 2
and edx, 1
and ecx, 8
shl ecx, 0Dh
or ecx, edx
or ecx, eax
mov [rdi+34h], ecx
test eax, eax
push 1
pop rax
mov ecx, 0E0h
cmovz ecx, eax
mov [rdi+20h], ecx
lea rsi, [rsp+0A8h+var_99]
call bc_get_u8
test eax, eax
jnz short loc_2E889
movzx edx, [rsp+0A8h+var_99]
cmp edx, 13h
jnz short loc_2E873
lea rsi, [rsp+0A8h+var_74]
lea rdi, [rsp+0A8h+var_98]
call bc_get_leb128
test eax, eax
jnz short loc_2E889
mov r13d, [rsp+0A8h+var_74]
cmp r13, 0F4241h
jb loc_2E90B
mov rdi, [rsp+0A8h+var_98]
lea rsi, aUnreasonableAt; "unreasonable atom count: %u"
mov edx, r13d
loc_2E86A:
xor eax, eax
call JS_ThrowInternalError
jmp short loc_2E889
loc_2E873:
mov rdi, [rsp+0A8h+var_98]
lea rsi, aInvalidVersion; "invalid version (%d expected=%d)"
push 13h
pop rcx
xor eax, eax
call JS_ThrowSyntaxError
loc_2E889:
push 6
pop r15
xor r13d, r13d
xor r12d, r12d
loc_2E893:
mov rsi, [rsp+0A8h+var_50]
test rbx, rbx
jz short loc_2E8AB
mov [rbx], rsi
movsxd rax, [rsp+0A8h+var_48]
mov [rbx+8], rax
jmp short loc_2E8B3
loc_2E8AB:
mov rdi, r14
call js_free
loc_2E8B3:
mov rsi, [rsp+0A8h+var_70]
test rsi, rsi
jz short loc_2E8E4
xor ebx, ebx
loc_2E8BF:
mov eax, [rsp+0A8h+var_74]
mov rdi, [rsp+0A8h+var_98]
cmp rbx, rax
jnb short loc_2E8DF
mov esi, [rsi+rbx*4]
call JS_FreeAtom
inc rbx
mov rsi, [rsp+0A8h+var_70]
jmp short loc_2E8BF
loc_2E8DF:
call js_free
loc_2E8E4:
mov rdi, [rsp+0A8h+var_98]
mov rsi, [rsp+0A8h+var_60]
call js_free
or r12, r13
mov rax, r12
mov rdx, r15
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2E90B:
test r13d, r13d
jz short loc_2E92F
mov rdi, [rsp+0A8h+var_98]
mov rsi, r13
shl rsi, 2
call js_mallocz
mov [rsp+0A8h+var_70], rax
test rax, rax
jz loc_2E9D4
loc_2E92F:
xor r12d, r12d
lea r15, [rsp+0A8h+var_98]
loc_2E937:
mov eax, r13d
cmp r12, rax
jnb loc_2E9DE
mov rdi, r15
lea rsi, [rsp+0A8h+var_9A]
call bc_get_u8
test eax, eax
jnz loc_2E889
movzx ebp, [rsp+0A8h+var_9A]
test ebp, ebp
jz short loc_2E991
cmp bpl, 4
jnb loc_2EA00
mov rdi, r15
call JS_ReadString
test rax, rax
jz loc_2E889
mov rcx, [rsp+0A8h+var_98]
mov rdi, [rcx+18h]
mov rsi, rax
mov edx, ebp
call __JS_NewAtom
jmp short loc_2E9BA
loc_2E991:
mov rcx, [rsp+0A8h+var_88]
mov rax, [rsp+0A8h+var_80]
sub rax, rcx
cmp rax, 3
jle loc_2EA2B
mov eax, [rcx]
add rcx, 4
mov [rsp+0A8h+var_88], rcx
cmp eax, 0E0h
jge short loc_2EA13
loc_2E9BA:
test eax, eax
jz short loc_2E9D4
mov rcx, [rsp+0A8h+var_70]
mov [rcx+r12*4], eax
inc r12
mov r13d, [rsp+0A8h+var_74]
jmp loc_2E937
loc_2E9D4:
or [rsp+0A8h+var_68], 0FFFFFFFFh
jmp loc_2E889
loc_2E9DE:
lea rdi, [rsp+0A8h+var_98]
call JS_ReadObjectRec
mov r15, rdx
mov r12, 0FFFFFFFF00000000h
and r12, rax
mov r13d, eax
jmp loc_2E893
loc_2EA00:
mov rdi, [rsp+0A8h+var_98]
lea rsi, aInvalidSymbolT; "invalid symbol type %d"
mov edx, ebp
jmp loc_2E86A
loc_2EA13:
mov rdi, [rsp+0A8h+var_98]
lea rsi, aOutOfRangeAtom; "out of range atom"
xor eax, eax
call JS_ThrowInternalError
jmp loc_2E889
loc_2EA2B:
lea rdi, [rsp+0A8h+var_98]
call bc_read_error_end
jmp loc_2E889
|
unsigned long long JS_ReadObject2(
long long a1,
long long a2,
long long a3,
unsigned int a4,
_QWORD *a5,
double a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
int v15; // eax
int v16; // ecx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
unsigned int v26; // r13d
long long v27; // rdi
const char *v28; // rsi
long long v29; // rdx
long long v30; // r13
unsigned long long v31; // r12
long long v32; // rsi
unsigned long long j; // rbx
unsigned long long i; // r12
long long v36; // rdx
unsigned int v37; // ebp
_QWORD *String; // rax
int v39; // eax
long long v40; // rcx
long long ObjectRec; // rax
char v42; // [rsp+0h] [rbp-A8h]
unsigned __int8 v43; // [rsp+Eh] [rbp-9Ah] BYREF
unsigned __int8 v44; // [rsp+Fh] [rbp-99h] BYREF
long long v45[2]; // [rsp+10h] [rbp-98h] BYREF
int *v46; // [rsp+20h] [rbp-88h]
long long v47; // [rsp+28h] [rbp-80h]
__int128 v48; // [rsp+30h] [rbp-78h] BYREF
__int128 v49; // [rsp+40h] [rbp-68h]
__int128 v50; // [rsp+50h] [rbp-58h]
__int128 v51; // [rsp+60h] [rbp-48h]
long long v52; // [rsp+70h] [rbp-38h]
++*(_WORD *)(a1 + 48);
*(_DWORD *)(a1 + 52) += a3;
v49 = 0LL;
v48 = 0LL;
v52 = 0LL;
v51 = 0LL;
v50 = 0LL;
v45[0] = a1;
v45[1] = a2;
v47 = a2 + a3;
v46 = (int *)a2;
v15 = (a4 & 1) << 8;
DWORD1(v49) = v15 | (a4 >> 2) & 1 | ((a4 & 8) << 13);
v16 = 224;
if ( !v15 )
v16 = 1;
LODWORD(v48) = v16;
if ( (unsigned int)bc_get_u8(v45, &v44) )
goto LABEL_10;
if ( v44 == 19 )
{
if ( !(unsigned int)bc_get_leb128(v45, (char *)&v48 + 4) )
{
v26 = DWORD1(v48);
if ( DWORD1(v48) < 0xF4241uLL )
{
if ( !DWORD1(v48) || (*((_QWORD *)&v48 + 1) = js_mallocz(v45[0], 4LL * DWORD1(v48))) != 0LL )
{
for ( i = 0LL; ; ++i )
{
if ( i >= v26 )
{
ObjectRec = JS_ReadObjectRec(v45);
v31 = ObjectRec & 0xFFFFFFFF00000000LL;
v30 = (unsigned int)ObjectRec;
goto LABEL_11;
}
if ( (unsigned int)bc_get_u8(v45, &v43) )
goto LABEL_10;
v37 = v43;
if ( v43 )
{
if ( v43 >= 4u )
{
v27 = v45[0];
v28 = "invalid symbol type %d";
v29 = v43;
goto LABEL_8;
}
String = (_QWORD *)JS_ReadString(v45);
if ( !String )
goto LABEL_10;
v39 = _JS_NewAtom(*(_QWORD *)(v45[0] + 24), String, v37);
}
else
{
if ( v47 - (long long)v46 <= 3 )
{
bc_read_error_end(v45);
goto LABEL_10;
}
v39 = *v46;
v40 = (long long)++v46;
if ( v39 >= 224 )
{
JS_ThrowInternalError(
v45[0],
(long long)"out of range atom",
v36,
v40,
v22,
v23,
(__m128)0LL,
a7,
a8,
a9,
v24,
v25,
a12,
a13,
v42);
goto LABEL_10;
}
}
if ( !v39 )
break;
*(_DWORD *)(*((_QWORD *)&v48 + 1) + 4 * i) = v39;
v26 = DWORD1(v48);
}
}
LODWORD(v49) = -1;
}
else
{
v27 = v45[0];
v28 = "unreasonable atom count: %u";
v29 = DWORD1(v48);
LABEL_8:
JS_ThrowInternalError(v27, (long long)v28, v29, v21, v22, v23, (__m128)0LL, a7, a8, a9, v24, v25, a12, a13, v42);
}
}
}
else
{
JS_ThrowSyntaxError(
v45[0],
(long long)"invalid version (%d expected=%d)",
v44,
19LL,
v17,
v18,
(__m128)0LL,
a7,
a8,
a9,
v19,
v20,
a12,
a13,
v42);
}
LABEL_10:
v30 = 0LL;
v31 = 0LL;
LABEL_11:
if ( a5 )
{
*a5 = *((_QWORD *)&v50 + 1);
a5[1] = (int)v51;
}
else
{
js_free(a1, *((long long *)&v50 + 1));
}
v32 = *((_QWORD *)&v48 + 1);
if ( *((_QWORD *)&v48 + 1) )
{
for ( j = 0LL; j < DWORD1(v48); ++j )
{
JS_FreeAtom(v45[0], *(_DWORD *)(v32 + 4 * j));
v32 = *((_QWORD *)&v48 + 1);
}
js_free(v45[0], v32);
}
js_free(v45[0], *((long long *)&v49 + 1));
return v30 | v31;
}
|
JS_ReadObject2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBX,R8
MOV R14,RDI
INC word ptr [RDI + 0x30]
ADD dword ptr [RDI + 0x34],EDX
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x10]
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
AND qword ptr [RDI + 0x60],0x0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOV qword ptr [RDI],R14
MOV qword ptr [RDI + 0x8],RSI
ADD RDX,RSI
MOV qword ptr [RDI + 0x18],RDX
MOV qword ptr [RDI + 0x10],RSI
MOV EAX,ECX
AND EAX,0x1
SHL EAX,0x8
MOV EDX,ECX
SHR EDX,0x2
AND EDX,0x1
AND ECX,0x8
SHL ECX,0xd
OR ECX,EDX
OR ECX,EAX
MOV dword ptr [RDI + 0x34],ECX
TEST EAX,EAX
PUSH 0x1
POP RAX
MOV ECX,0xe0
CMOVZ ECX,EAX
MOV dword ptr [RDI + 0x20],ECX
LEA RSI,[RSP + 0xf]
CALL 0x00140d14
TEST EAX,EAX
JNZ 0x0012e889
MOVZX EDX,byte ptr [RSP + 0xf]
CMP EDX,0x13
JNZ 0x0012e873
LEA RSI,[RSP + 0x34]
LEA RDI,[RSP + 0x10]
CALL 0x00140d44
TEST EAX,EAX
JNZ 0x0012e889
MOV R13D,dword ptr [RSP + 0x34]
CMP R13,0xf4241
JC 0x0012e90b
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x189ab1]
MOV EDX,R13D
LAB_0012e86a:
XOR EAX,EAX
CALL 0x00120321
JMP 0x0012e889
LAB_0012e873:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x189a90]
PUSH 0x13
POP RCX
XOR EAX,EAX
CALL 0x0012016b
LAB_0012e889:
PUSH 0x6
POP R15
XOR R13D,R13D
XOR R12D,R12D
LAB_0012e893:
MOV RSI,qword ptr [RSP + 0x58]
TEST RBX,RBX
JZ 0x0012e8ab
MOV qword ptr [RBX],RSI
MOVSXD RAX,dword ptr [RSP + 0x60]
MOV qword ptr [RBX + 0x8],RAX
JMP 0x0012e8b3
LAB_0012e8ab:
MOV RDI,R14
CALL 0x0011ae1e
LAB_0012e8b3:
MOV RSI,qword ptr [RSP + 0x38]
TEST RSI,RSI
JZ 0x0012e8e4
XOR EBX,EBX
LAB_0012e8bf:
MOV EAX,dword ptr [RSP + 0x34]
MOV RDI,qword ptr [RSP + 0x10]
CMP RBX,RAX
JNC 0x0012e8df
MOV ESI,dword ptr [RSI + RBX*0x4]
CALL 0x0011e545
INC RBX
MOV RSI,qword ptr [RSP + 0x38]
JMP 0x0012e8bf
LAB_0012e8df:
CALL 0x0011ae1e
LAB_0012e8e4:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x0011ae1e
OR R12,R13
MOV RAX,R12
MOV RDX,R15
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012e90b:
TEST R13D,R13D
JZ 0x0012e92f
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,R13
SHL RSI,0x2
CALL 0x0011adf1
MOV qword ptr [RSP + 0x38],RAX
TEST RAX,RAX
JZ 0x0012e9d4
LAB_0012e92f:
XOR R12D,R12D
LEA R15,[RSP + 0x10]
LAB_0012e937:
MOV EAX,R13D
CMP R12,RAX
JNC 0x0012e9de
MOV RDI,R15
LEA RSI,[RSP + 0xe]
CALL 0x00140d14
TEST EAX,EAX
JNZ 0x0012e889
MOVZX EBP,byte ptr [RSP + 0xe]
TEST EBP,EBP
JZ 0x0012e991
CMP BPL,0x4
JNC 0x0012ea00
MOV RDI,R15
CALL 0x00140d76
TEST RAX,RAX
JZ 0x0012e889
MOV RCX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RCX + 0x18]
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0011e0eb
JMP 0x0012e9ba
LAB_0012e991:
MOV RCX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
SUB RAX,RCX
CMP RAX,0x3
JLE 0x0012ea2b
MOV EAX,dword ptr [RCX]
ADD RCX,0x4
MOV qword ptr [RSP + 0x20],RCX
CMP EAX,0xe0
JGE 0x0012ea13
LAB_0012e9ba:
TEST EAX,EAX
JZ 0x0012e9d4
MOV RCX,qword ptr [RSP + 0x38]
MOV dword ptr [RCX + R12*0x4],EAX
INC R12
MOV R13D,dword ptr [RSP + 0x34]
JMP 0x0012e937
LAB_0012e9d4:
OR dword ptr [RSP + 0x40],0xffffffff
JMP 0x0012e889
LAB_0012e9de:
LEA RDI,[RSP + 0x10]
CALL 0x0012ea3a
MOV R15,RDX
MOV R12,-0x100000000
AND R12,RAX
MOV R13D,EAX
JMP 0x0012e893
LAB_0012ea00:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x189adf]
MOV EDX,EBP
JMP 0x0012e86a
LAB_0012ea13:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x189acd]
XOR EAX,EAX
CALL 0x00120321
JMP 0x0012e889
LAB_0012ea2b:
LEA RDI,[RSP + 0x10]
CALL 0x00140e2c
JMP 0x0012e889
|
int1 [16]
JS_ReadObject2(long param_1,int *param_2,long param_3,uint param_4,int8 *param_5)
{
int iVar1;
long lVar2;
ulong uVar3;
uint uVar4;
char *pcVar5;
ulong uVar6;
ulong uVar7;
int8 uVar8;
int1 auVar9 [16];
byte local_9a;
char local_99;
long local_98;
int *local_90;
int *local_88;
long local_80;
int4 local_78;
uint uStack_74;
long lStack_70;
long local_68;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
*(short *)(param_1 + 0x30) = *(short *)(param_1 + 0x30) + 1;
*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + (int)param_3;
uStack_60 = 0;
lStack_70 = 0;
local_38 = 0;
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
local_80 = param_3 + (long)param_2;
local_68 = (ulong)((param_4 & 8) << 0xd | param_4 >> 2 & 1 | (param_4 & 1) << 8) << 0x20;
local_78 = 0xe0;
if ((param_4 & 1) == 0) {
local_78 = 1;
}
uStack_74 = 0;
local_98 = param_1;
local_90 = param_2;
local_88 = param_2;
iVar1 = bc_get_u8(&local_98,&local_99);
if (iVar1 == 0) {
if (local_99 == '\x13') {
iVar1 = bc_get_leb128(&local_98,&uStack_74);
if (iVar1 == 0) {
uVar7 = (ulong)uStack_74;
if (uVar7 < 0xf4241) {
if (uStack_74 != 0) {
lStack_70 = js_mallocz(local_98,uVar7 << 2);
if (lStack_70 == 0) {
LAB_0012e9d4:
local_68 = CONCAT44(local_68._4_4_,0xffffffff);
goto LAB_0012e889;
}
}
for (uVar6 = 0; uVar6 < uVar7; uVar6 = uVar6 + 1) {
iVar1 = bc_get_u8(&local_98,&local_9a);
if (iVar1 != 0) goto LAB_0012e889;
if (local_9a == 0) {
if (local_80 - (long)local_88 < 4) {
bc_read_error_end(&local_98);
goto LAB_0012e889;
}
iVar1 = *local_88;
local_88 = local_88 + 1;
if (0xdf < iVar1) {
JS_ThrowInternalError(local_98,"out of range atom");
goto LAB_0012e889;
}
}
else {
uVar4 = (uint)local_9a;
if (3 < local_9a) {
pcVar5 = "invalid symbol type %d";
uVar7 = (ulong)uVar4;
goto LAB_0012e86a;
}
lVar2 = JS_ReadString(&local_98);
if (lVar2 == 0) goto LAB_0012e889;
iVar1 = __JS_NewAtom(*(int8 *)(local_98 + 0x18),lVar2,uVar4);
}
if (iVar1 == 0) goto LAB_0012e9d4;
*(int *)(lStack_70 + uVar6 * 4) = iVar1;
uVar7 = (ulong)uStack_74;
}
auVar9 = JS_ReadObjectRec(&local_98);
uVar8 = auVar9._8_8_;
uVar7 = auVar9._0_8_ & 0xffffffff00000000;
uVar6 = auVar9._0_8_ & 0xffffffff;
goto LAB_0012e893;
}
pcVar5 = "unreasonable atom count: %u";
LAB_0012e86a:
JS_ThrowInternalError(local_98,pcVar5,uVar7);
}
}
else {
JS_ThrowSyntaxError(local_98,"invalid version (%d expected=%d)",local_99,0x13);
}
}
LAB_0012e889:
uVar8 = 6;
uVar6 = 0;
uVar7 = 0;
LAB_0012e893:
if (param_5 == (int8 *)0x0) {
js_free(param_1);
}
else {
*param_5 = uStack_50;
param_5[1] = (long)(int)local_48;
}
if (lStack_70 != 0) {
for (uVar3 = 0; uVar3 < uStack_74; uVar3 = uVar3 + 1) {
JS_FreeAtom(local_98,*(int4 *)(lStack_70 + uVar3 * 4));
}
js_free(local_98);
}
js_free(local_98,uStack_60);
auVar9._8_8_ = uVar8;
auVar9._0_8_ = uVar7 | uVar6;
return auVar9;
}
|
|
62,320 |
JS_ReadObject2
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_ReadObject2(JSContext *ctx, const uint8_t *buf, size_t buf_len,
int flags, JSSABTab *psab_tab)
{
BCReaderState ss, *s = &ss;
JSValue obj;
ctx->binary_object_count += 1;
ctx->binary_object_size += buf_len;
memset(s, 0, sizeof(*s));
s->ctx = ctx;
s->buf_start = buf;
s->buf_end = buf + buf_len;
s->ptr = buf;
s->allow_bytecode = ((flags & JS_READ_OBJ_BYTECODE) != 0);
s->allow_sab = ((flags & JS_READ_OBJ_SAB) != 0);
s->allow_reference = ((flags & JS_READ_OBJ_REFERENCE) != 0);
if (s->allow_bytecode)
s->first_atom = JS_ATOM_END;
else
s->first_atom = 1;
if (JS_ReadObjectAtoms(s)) {
obj = JS_EXCEPTION;
} else {
obj = JS_ReadObjectRec(s);
}
if (psab_tab) {
psab_tab->tab = s->sab_tab;
psab_tab->len = s->sab_tab_len;
} else {
js_free(ctx, s->sab_tab);
}
bc_reader_free(s);
return obj;
}
|
O3
|
c
|
JS_ReadObject2:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %rbx
movq %rdi, %r14
incw 0x30(%rdi)
addl %edx, 0x34(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rsp)
movups %xmm0, 0x40(%rsp)
movups %xmm0, 0x30(%rsp)
movups %xmm0, 0x60(%rsp)
movups %xmm0, 0x50(%rsp)
movq $0x0, 0x70(%rsp)
movq %rdi, 0x10(%rsp)
movq %rsi, 0x18(%rsp)
leaq (%rsi,%rdx), %rax
movq %rax, 0x28(%rsp)
movl %ecx, %eax
andl $0x1, %eax
shll $0x8, %eax
movl %ecx, %edi
shrl $0x2, %edi
andl $0x1, %edi
andl $0x8, %ecx
shll $0xd, %ecx
orl %edi, %ecx
orl %eax, %ecx
movl %ecx, 0x44(%rsp)
testl %eax, %eax
movl $0x1, %eax
movl $0xe0, %ecx
cmovel %eax, %ecx
movl %ecx, 0x30(%rsp)
testq %rdx, %rdx
jle 0x37918
leaq 0x1(%rsi), %rax
movq %rax, 0x20(%rsp)
movzbl (%rsi), %edx
cmpl $0x13, %edx
jne 0x37733
leaq 0x34(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x4b618
movl $0x6, %r15d
testl %eax, %eax
je 0x377e4
xorl %r13d, %r13d
jmp 0x37752
leaq 0x6f396(%rip), %rsi # 0xa6ad0
xorl %r13d, %r13d
movq %r14, %rdi
movl $0x13, %ecx
xorl %eax, %eax
callq 0x26d01
movl $0x6, %r15d
xorl %r12d, %r12d
movq 0x58(%rsp), %rsi
testq %rbx, %rbx
je 0x3776d
movq %rsi, (%rbx)
movslq 0x60(%rsp), %rax
movq %rax, 0x8(%rbx)
jmp 0x37775
movq %r14, %rdi
callq 0x2148d
movq 0x10(%rsp), %rbx
movq 0x38(%rsp), %r14
testq %r14, %r14
je 0x377bf
movq %r13, 0x8(%rsp)
movq %r15, %r13
movl 0x34(%rsp), %ebp
testq %rbp, %rbp
je 0x377ac
xorl %r15d, %r15d
movl (%r14,%r15,4), %esi
movq %rbx, %rdi
callq 0x24f3d
incq %r15
cmpq %r15, %rbp
jne 0x37798
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2148d
movq %r13, %r15
movq 0x8(%rsp), %r13
movq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x2148d
orq %r13, %r12
movq %r12, %rax
movq %r15, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x34(%rsp), %edx
cmpq $0xf4241, %rdx # imm = 0xF4241
jb 0x3780c
movq 0x10(%rsp), %rdi
leaq 0x6f2f4(%rip), %rsi # 0xa6af1
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x26ec3
jmp 0x37752
testq %rdx, %rdx
jne 0x37833
leaq 0x10(%rsp), %rdi
callq 0x3797c
movq %rdx, %r15
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
andq %rax, %r12
movl %eax, %r13d
jmp 0x37755
movq 0x10(%rsp), %r12
shlq $0x2, %rdx
movq %r12, %rdi
movq %rdx, %rsi
callq 0xf0db
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x3772e
movq %r12, 0x8(%rsp)
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rax, %rdx
subq %rcx, %rdx
testq %rdx, %rdx
jle 0x3794c
leaq 0x1(%rcx), %rdx
movq %rdx, 0x20(%rsp)
movzbl (%rcx), %ebp
testl %ebp, %ebp
je 0x378bc
cmpb $0x4, %bpl
jae 0x37902
leaq 0x10(%rsp), %rdi
callq 0x4b695
testq %rax, %rax
je 0x37752
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq 0x18(%rcx), %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0x2497a
jmp 0x378dc
subq %rdx, %rax
cmpq $0x3, %rax
jle 0x3794c
movl 0x1(%rcx), %eax
addq $0x5, %rcx
movq %rcx, 0x20(%rsp)
cmpl $0xe0, %eax
jge 0x37931
testl %eax, %eax
je 0x37752
movq 0x38(%rsp), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x34(%rsp), %eax
cmpq %rax, %r12
jb 0x37860
jmp 0x37811
leaq 0x6f216(%rip), %rsi # 0xa6b1f
xorl %r13d, %r13d
movq 0x8(%rsp), %rdi
movl %ebp, %edx
jmp 0x37800
leaq 0x6f217(%rip), %rsi # 0xa6b36
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x26d01
jmp 0x3774c
leaq 0x6f1d5(%rip), %rsi # 0xa6b0d
xorl %r13d, %r13d
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x26ec3
jmp 0x37752
cmpl $0x0, 0x40(%rsp)
je 0x37958
xorl %r13d, %r13d
jmp 0x3796e
leaq 0x6f1d7(%rip), %rsi # 0xa6b36
xorl %r13d, %r13d
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x26d01
xorl %r12d, %r12d
movl $0x6, %r15d
jmp 0x37755
|
JS_ReadObject2:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, r8
mov r14, rdi
inc word ptr [rdi+30h]
add [rdi+34h], edx
xorps xmm0, xmm0
movups [rsp+0A8h+var_88], xmm0
movups [rsp+0A8h+var_68], xmm0
movups [rsp+0A8h+var_78], xmm0
movups [rsp+0A8h+var_48], xmm0
movups [rsp+0A8h+var_58], xmm0
mov [rsp+0A8h+var_38], 0
mov [rsp+0A8h+var_98], rdi
mov [rsp+0A8h+var_90], rsi
lea rax, [rsi+rdx]
mov qword ptr [rsp+0A8h+var_88+8], rax
mov eax, ecx
and eax, 1
shl eax, 8
mov edi, ecx
shr edi, 2
and edi, 1
and ecx, 8
shl ecx, 0Dh
or ecx, edi
or ecx, eax
mov dword ptr [rsp+0A8h+var_68+4], ecx
test eax, eax
mov eax, 1
mov ecx, 0E0h
cmovz ecx, eax
mov dword ptr [rsp+0A8h+var_78], ecx
test rdx, rdx
jle loc_37918
lea rax, [rsi+1]
mov qword ptr [rsp+0A8h+var_88], rax
movzx edx, byte ptr [rsi]
cmp edx, 13h
jnz short loc_37733
lea rsi, [rsp+0A8h+var_78+4]
lea rdi, [rsp+0A8h+var_98]
call bc_get_leb128
mov r15d, 6
test eax, eax
jz loc_377E4
loc_3772E:
xor r13d, r13d
jmp short loc_37752
loc_37733:
lea rsi, aInvalidVersion; "invalid version (%d expected=%d)"
xor r13d, r13d
mov rdi, r14
mov ecx, 13h
xor eax, eax
call JS_ThrowSyntaxError
loc_3774C:
mov r15d, 6
loc_37752:
xor r12d, r12d
loc_37755:
mov rsi, qword ptr [rsp+0A8h+var_58+8]
test rbx, rbx
jz short loc_3776D
mov [rbx], rsi
movsxd rax, dword ptr [rsp+0A8h+var_48]
mov [rbx+8], rax
jmp short loc_37775
loc_3776D:
mov rdi, r14
call js_free
loc_37775:
mov rbx, [rsp+0A8h+var_98]
mov r14, qword ptr [rsp+0A8h+var_78+8]
test r14, r14
jz short loc_377BF
mov [rsp+0A8h+var_A0], r13
mov r13, r15
mov ebp, dword ptr [rsp+0A8h+var_78+4]
test rbp, rbp
jz short loc_377AC
xor r15d, r15d
loc_37798:
mov esi, [r14+r15*4]
mov rdi, rbx
call JS_FreeAtom
inc r15
cmp rbp, r15
jnz short loc_37798
loc_377AC:
mov rdi, rbx
mov rsi, r14
call js_free
mov r15, r13
mov r13, [rsp+0A8h+var_A0]
loc_377BF:
mov rsi, qword ptr [rsp+0A8h+var_68+8]
mov rdi, rbx
call js_free
or r12, r13
mov rax, r12
mov rdx, r15
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_377E4:
mov edx, dword ptr [rsp+0A8h+var_78+4]
cmp rdx, 0F4241h
jb short loc_3780C
mov rdi, [rsp+0A8h+var_98]
lea rsi, aUnreasonableAt; "unreasonable atom count: %u"
xor r13d, r13d
loc_37800:
xor eax, eax
call JS_ThrowInternalError
jmp loc_37752
loc_3780C:
test rdx, rdx
jnz short loc_37833
loc_37811:
lea rdi, [rsp+0A8h+var_98]
call JS_ReadObjectRec
mov r15, rdx
mov r12, 0FFFFFFFF00000000h
and r12, rax
mov r13d, eax
jmp loc_37755
loc_37833:
mov r12, [rsp+0A8h+var_98]
shl rdx, 2
mov rdi, r12
mov rsi, rdx
call js_mallocz
mov qword ptr [rsp+0A8h+var_78+8], rax
test rax, rax
jz loc_3772E
mov [rsp+0A8h+var_A0], r12
xor r13d, r13d
xor r12d, r12d
loc_37860:
mov rcx, qword ptr [rsp+0A8h+var_88]
mov rax, qword ptr [rsp+0A8h+var_88+8]
mov rdx, rax
sub rdx, rcx
test rdx, rdx
jle loc_3794C
lea rdx, [rcx+1]
mov qword ptr [rsp+0A8h+var_88], rdx
movzx ebp, byte ptr [rcx]
test ebp, ebp
jz short loc_378BC
cmp bpl, 4
jnb short loc_37902
lea rdi, [rsp+0A8h+var_98]
call JS_ReadString
test rax, rax
jz loc_37752
mov rcx, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_A0], rcx
mov rdi, [rcx+18h]
mov rsi, rax
mov edx, ebp
call __JS_NewAtom
jmp short loc_378DC
loc_378BC:
sub rax, rdx
cmp rax, 3
jle loc_3794C
mov eax, [rcx+1]
add rcx, 5
mov qword ptr [rsp+0A8h+var_88], rcx
cmp eax, 0E0h
jge short loc_37931
loc_378DC:
test eax, eax
jz loc_37752
mov rcx, qword ptr [rsp+0A8h+var_78+8]
mov [rcx+r12*4], eax
inc r12
mov eax, dword ptr [rsp+0A8h+var_78+4]
cmp r12, rax
jb loc_37860
jmp loc_37811
loc_37902:
lea rsi, aInvalidSymbolT; "invalid symbol type %d"
xor r13d, r13d
mov rdi, [rsp+0A8h+var_A0]
mov edx, ebp
jmp loc_37800
loc_37918:
lea rsi, aReadAfterTheEn; "read after the end of the buffer"
xor r13d, r13d
mov rdi, r14
xor eax, eax
call JS_ThrowSyntaxError
jmp loc_3774C
loc_37931:
lea rsi, aOutOfRangeAtom; "out of range atom"
xor r13d, r13d
mov rdi, [rsp+0A8h+var_A0]
xor eax, eax
call JS_ThrowInternalError
jmp loc_37752
loc_3794C:
cmp dword ptr [rsp+0A8h+var_68], 0
jz short loc_37958
xor r13d, r13d
jmp short loc_3796E
loc_37958:
lea rsi, aReadAfterTheEn; "read after the end of the buffer"
xor r13d, r13d
mov rdi, [rsp+0A8h+var_A0]
xor eax, eax
call JS_ThrowSyntaxError
loc_3796E:
xor r12d, r12d
mov r15d, 6
jmp loc_37755
|
unsigned long long JS_ReadObject2(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned int a4,
_QWORD *a5,
long long a6,
double a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
int v16; // eax
long long v17; // rcx
long long v18; // rdx
unsigned __int8 *v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // r13
unsigned long long v25; // r12
long long v26; // rbx
long long v27; // r14
long long v28; // rbp
long long v29; // r15
long long v31; // rdx
long long v32; // rdi
const char *v33; // rsi
long long ObjectRec; // rax
long long v35; // r12
unsigned long long v36; // r12
long long v37; // rdx
unsigned int v38; // ebp
long long String; // rax
int v40; // eax
long long v41; // rcx
char v42; // [rsp+0h] [rbp-A8h]
long long v43; // [rsp+8h] [rbp-A0h]
long long v44[2]; // [rsp+10h] [rbp-98h] BYREF
unsigned __int8 *v45; // [rsp+20h] [rbp-88h]
unsigned __int8 *v46; // [rsp+28h] [rbp-80h]
__int128 v47; // [rsp+30h] [rbp-78h] BYREF
__int128 v48; // [rsp+40h] [rbp-68h]
__int128 v49; // [rsp+50h] [rbp-58h]
__int128 v50; // [rsp+60h] [rbp-48h]
long long v51; // [rsp+70h] [rbp-38h]
++*(_WORD *)(a1 + 48);
*(_DWORD *)(a1 + 52) += a3;
v45 = 0LL;
v48 = 0LL;
v47 = 0LL;
v50 = 0LL;
v49 = 0LL;
v51 = 0LL;
v44[0] = a1;
v44[1] = (long long)a2;
v46 = &a2[a3];
v16 = (a4 & 1) << 8;
DWORD1(v48) = v16 | (a4 >> 2) & 1 | ((a4 & 8) << 13);
v17 = 224LL;
if ( !v16 )
v17 = 1LL;
LODWORD(v47) = v17;
if ( a3 <= 0 )
{
v24 = 0LL;
JS_ThrowSyntaxError(
a1,
(long long)"read after the end of the buffer",
a3,
v17,
(long long)a5,
a6,
(__m128)0LL,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v42);
goto LABEL_8;
}
v45 = a2 + 1;
v18 = *a2;
if ( (_DWORD)v18 != 19 )
{
v24 = 0LL;
JS_ThrowSyntaxError(
a1,
(long long)"invalid version (%d expected=%d)",
v18,
19LL,
(long long)a5,
a6,
(__m128)0LL,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v42);
goto LABEL_8;
}
if ( (unsigned int)bc_get_leb128(v44, (char *)&v47 + 4) )
{
LABEL_6:
v24 = 0LL;
LABEL_8:
v25 = 0LL;
goto LABEL_9;
}
v31 = DWORD1(v47);
if ( DWORD1(v47) >= 0xF4241uLL )
{
v32 = v44[0];
v33 = "unreasonable atom count: %u";
v24 = 0LL;
LABEL_20:
JS_ThrowInternalError(
v32,
(long long)v33,
v31,
(long long)v19,
v20,
v21,
(__m128)0LL,
a8,
a9,
a10,
v22,
v23,
a13,
a14,
v42);
goto LABEL_8;
}
if ( DWORD1(v47) )
{
v35 = v44[0];
*((_QWORD *)&v47 + 1) = js_mallocz(v44[0], 4LL * DWORD1(v47));
if ( !*((_QWORD *)&v47 + 1) )
goto LABEL_6;
v43 = v35;
v24 = 0LL;
v36 = 0LL;
while ( 1 )
{
v19 = v45;
v37 = v46 - v45;
if ( v46 - v45 <= 0 )
break;
v37 = (long long)++v45;
v38 = *v19;
if ( *v19 )
{
if ( (unsigned __int8)v38 >= 4u )
{
v33 = "invalid symbol type %d";
v24 = 0LL;
v32 = v43;
v31 = *v19;
goto LABEL_20;
}
String = JS_ReadString(v44);
if ( !String )
goto LABEL_8;
v43 = v44[0];
v40 = _JS_NewAtom(*(_QWORD *)(v44[0] + 24), String, v38);
}
else
{
if ( (long long)&v46[-v37] <= 3 )
break;
v40 = *(_DWORD *)(v19 + 1);
v41 = (long long)(v19 + 5);
v45 = (unsigned __int8 *)v41;
if ( v40 >= 224 )
{
v24 = 0LL;
JS_ThrowInternalError(
v43,
(long long)"out of range atom",
v37,
v41,
v20,
v21,
(__m128)0LL,
a8,
a9,
a10,
v22,
v23,
a13,
a14,
v42);
goto LABEL_8;
}
}
if ( !v40 )
goto LABEL_8;
*(_DWORD *)(*((_QWORD *)&v47 + 1) + 4 * v36++) = v40;
if ( v36 >= DWORD1(v47) )
goto LABEL_22;
}
v24 = 0LL;
if ( !(_DWORD)v48 )
JS_ThrowSyntaxError(
v43,
(long long)"read after the end of the buffer",
v37,
(long long)v19,
v20,
v21,
(__m128)0LL,
a8,
a9,
a10,
v22,
v23,
a13,
a14,
v42);
v25 = 0LL;
}
else
{
LABEL_22:
ObjectRec = JS_ReadObjectRec(v44);
v25 = ObjectRec & 0xFFFFFFFF00000000LL;
v24 = (unsigned int)ObjectRec;
}
LABEL_9:
if ( a5 )
{
*a5 = *((_QWORD *)&v49 + 1);
a5[1] = (int)v50;
}
else
{
js_free(a1, *((long long *)&v49 + 1));
}
v26 = v44[0];
v27 = *((_QWORD *)&v47 + 1);
if ( *((_QWORD *)&v47 + 1) )
{
v28 = DWORD1(v47);
if ( DWORD1(v47) )
{
v29 = 0LL;
do
JS_FreeAtom(v26, *(_DWORD *)(v27 + 4 * v29++));
while ( v28 != v29 );
}
js_free(v26, v27);
}
js_free(v26, *((long long *)&v48 + 1));
return v24 | v25;
}
|
JS_ReadObject2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBX,R8
MOV R14,RDI
INC word ptr [RDI + 0x30]
ADD dword ptr [RDI + 0x34],EDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x20],XMM0
MOVUPS xmmword ptr [RSP + 0x40],XMM0
MOVUPS xmmword ptr [RSP + 0x30],XMM0
MOVUPS xmmword ptr [RSP + 0x60],XMM0
MOVUPS xmmword ptr [RSP + 0x50],XMM0
MOV qword ptr [RSP + 0x70],0x0
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x18],RSI
LEA RAX,[RSI + RDX*0x1]
MOV qword ptr [RSP + 0x28],RAX
MOV EAX,ECX
AND EAX,0x1
SHL EAX,0x8
MOV EDI,ECX
SHR EDI,0x2
AND EDI,0x1
AND ECX,0x8
SHL ECX,0xd
OR ECX,EDI
OR ECX,EAX
MOV dword ptr [RSP + 0x44],ECX
TEST EAX,EAX
MOV EAX,0x1
MOV ECX,0xe0
CMOVZ ECX,EAX
MOV dword ptr [RSP + 0x30],ECX
TEST RDX,RDX
JLE 0x00137918
LEA RAX,[RSI + 0x1]
MOV qword ptr [RSP + 0x20],RAX
MOVZX EDX,byte ptr [RSI]
CMP EDX,0x13
JNZ 0x00137733
LEA RSI,[RSP + 0x34]
LEA RDI,[RSP + 0x10]
CALL 0x0014b618
MOV R15D,0x6
TEST EAX,EAX
JZ 0x001377e4
LAB_0013772e:
XOR R13D,R13D
JMP 0x00137752
LAB_00137733:
LEA RSI,[0x1a6ad0]
XOR R13D,R13D
MOV RDI,R14
MOV ECX,0x13
XOR EAX,EAX
CALL 0x00126d01
LAB_0013774c:
MOV R15D,0x6
LAB_00137752:
XOR R12D,R12D
LAB_00137755:
MOV RSI,qword ptr [RSP + 0x58]
TEST RBX,RBX
JZ 0x0013776d
MOV qword ptr [RBX],RSI
MOVSXD RAX,dword ptr [RSP + 0x60]
MOV qword ptr [RBX + 0x8],RAX
JMP 0x00137775
LAB_0013776d:
MOV RDI,R14
CALL 0x0012148d
LAB_00137775:
MOV RBX,qword ptr [RSP + 0x10]
MOV R14,qword ptr [RSP + 0x38]
TEST R14,R14
JZ 0x001377bf
MOV qword ptr [RSP + 0x8],R13
MOV R13,R15
MOV EBP,dword ptr [RSP + 0x34]
TEST RBP,RBP
JZ 0x001377ac
XOR R15D,R15D
LAB_00137798:
MOV ESI,dword ptr [R14 + R15*0x4]
MOV RDI,RBX
CALL 0x00124f3d
INC R15
CMP RBP,R15
JNZ 0x00137798
LAB_001377ac:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012148d
MOV R15,R13
MOV R13,qword ptr [RSP + 0x8]
LAB_001377bf:
MOV RSI,qword ptr [RSP + 0x48]
MOV RDI,RBX
CALL 0x0012148d
OR R12,R13
MOV RAX,R12
MOV RDX,R15
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001377e4:
MOV EDX,dword ptr [RSP + 0x34]
CMP RDX,0xf4241
JC 0x0013780c
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x1a6af1]
XOR R13D,R13D
LAB_00137800:
XOR EAX,EAX
CALL 0x00126ec3
JMP 0x00137752
LAB_0013780c:
TEST RDX,RDX
JNZ 0x00137833
LAB_00137811:
LEA RDI,[RSP + 0x10]
CALL 0x0013797c
MOV R15,RDX
MOV R12,-0x100000000
AND R12,RAX
MOV R13D,EAX
JMP 0x00137755
LAB_00137833:
MOV R12,qword ptr [RSP + 0x10]
SHL RDX,0x2
MOV RDI,R12
MOV RSI,RDX
CALL 0x0010f0db
MOV qword ptr [RSP + 0x38],RAX
TEST RAX,RAX
JZ 0x0013772e
MOV qword ptr [RSP + 0x8],R12
XOR R13D,R13D
XOR R12D,R12D
LAB_00137860:
MOV RCX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
MOV RDX,RAX
SUB RDX,RCX
TEST RDX,RDX
JLE 0x0013794c
LEA RDX,[RCX + 0x1]
MOV qword ptr [RSP + 0x20],RDX
MOVZX EBP,byte ptr [RCX]
TEST EBP,EBP
JZ 0x001378bc
CMP BPL,0x4
JNC 0x00137902
LEA RDI,[RSP + 0x10]
CALL 0x0014b695
TEST RAX,RAX
JZ 0x00137752
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [RCX + 0x18]
MOV RSI,RAX
MOV EDX,EBP
CALL 0x0012497a
JMP 0x001378dc
LAB_001378bc:
SUB RAX,RDX
CMP RAX,0x3
JLE 0x0013794c
MOV EAX,dword ptr [RCX + 0x1]
ADD RCX,0x5
MOV qword ptr [RSP + 0x20],RCX
CMP EAX,0xe0
JGE 0x00137931
LAB_001378dc:
TEST EAX,EAX
JZ 0x00137752
MOV RCX,qword ptr [RSP + 0x38]
MOV dword ptr [RCX + R12*0x4],EAX
INC R12
MOV EAX,dword ptr [RSP + 0x34]
CMP R12,RAX
JC 0x00137860
JMP 0x00137811
LAB_00137902:
LEA RSI,[0x1a6b1f]
XOR R13D,R13D
MOV RDI,qword ptr [RSP + 0x8]
MOV EDX,EBP
JMP 0x00137800
LAB_00137918:
LEA RSI,[0x1a6b36]
XOR R13D,R13D
MOV RDI,R14
XOR EAX,EAX
CALL 0x00126d01
JMP 0x0013774c
LAB_00137931:
LEA RSI,[0x1a6b0d]
XOR R13D,R13D
MOV RDI,qword ptr [RSP + 0x8]
XOR EAX,EAX
CALL 0x00126ec3
JMP 0x00137752
LAB_0013794c:
CMP dword ptr [RSP + 0x40],0x0
JZ 0x00137958
XOR R13D,R13D
JMP 0x0013796e
LAB_00137958:
LEA RSI,[0x1a6b36]
XOR R13D,R13D
MOV RDI,qword ptr [RSP + 0x8]
XOR EAX,EAX
CALL 0x00126d01
LAB_0013796e:
XOR R12D,R12D
MOV R15D,0x6
JMP 0x00137755
|
int1 [16]
JS_ReadObject2(long param_1,char *param_2,long param_3,uint param_4,int8 *param_5)
{
byte *pbVar1;
byte bVar2;
uint uVar3;
long lVar4;
int iVar5;
long lVar6;
ulong uVar7;
char *pcVar8;
ulong uVar9;
ulong uVar10;
ulong uVar11;
int8 uVar12;
int1 auVar13 [16];
long local_a0;
long local_98;
char *local_90;
byte *local_88;
char *pcStack_80;
int4 local_78;
uint uStack_74;
long lStack_70;
long local_68;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
*(short *)(param_1 + 0x30) = *(short *)(param_1 + 0x30) + 1;
*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + (int)param_3;
local_88 = (byte *)0x0;
uStack_60 = 0;
lStack_70 = 0;
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
local_38 = 0;
pcStack_80 = param_2 + param_3;
local_68 = (ulong)((param_4 & 8) << 0xd | param_4 >> 2 & 1 | (param_4 & 1) << 8) << 0x20;
local_78 = 0xe0;
if ((param_4 & 1) == 0) {
local_78 = 1;
}
uStack_74 = 0;
uVar3 = uStack_74;
uStack_74 = 0;
local_98 = param_1;
local_90 = param_2;
if (param_3 < 1) {
uStack_74 = uVar3;
JS_ThrowSyntaxError(param_1,"read after the end of the buffer");
}
else {
local_88 = (byte *)(param_2 + 1);
if (*param_2 == '\x13') {
iVar5 = bc_get_leb128(&local_98,&uStack_74);
local_a0 = local_98;
if (iVar5 == 0) {
uVar9 = (ulong)uStack_74;
if (uVar9 < 0xf4241) {
if (uVar9 != 0) {
lStack_70 = js_mallocz(local_98,uVar9 << 2);
if (lStack_70 == 0) goto LAB_00137752;
uVar9 = 0;
do {
pbVar1 = local_88;
if ((long)pcStack_80 - (long)local_88 < 1) {
LAB_0013794c:
local_88 = pbVar1;
if ((int)local_68 == 0) {
JS_ThrowSyntaxError(local_a0,"read after the end of the buffer");
}
uVar10 = 0;
uVar9 = 0;
uVar12 = 6;
goto LAB_00137755;
}
pbVar1 = local_88 + 1;
bVar2 = *local_88;
if (bVar2 == 0) {
if ((long)pcStack_80 - (long)pbVar1 < 4) goto LAB_0013794c;
iVar5 = *(int *)(local_88 + 1);
local_88 = local_88 + 5;
if (0xdf < iVar5) {
JS_ThrowInternalError(local_a0,"out of range atom");
goto LAB_00137752;
}
}
else {
local_88 = pbVar1;
if (3 < bVar2) {
pcVar8 = "invalid symbol type %d";
uVar9 = (ulong)(uint)bVar2;
goto LAB_00137800;
}
lVar6 = JS_ReadString(&local_98);
if (lVar6 == 0) goto LAB_00137752;
local_a0 = local_98;
iVar5 = __JS_NewAtom(*(int8 *)(local_98 + 0x18),lVar6,(uint)bVar2);
}
if (iVar5 == 0) goto LAB_00137752;
*(int *)(lStack_70 + uVar9 * 4) = iVar5;
uVar9 = uVar9 + 1;
} while (uVar9 < uStack_74);
}
auVar13 = JS_ReadObjectRec(&local_98);
uVar12 = auVar13._8_8_;
uVar9 = auVar13._0_8_ & 0xffffffff00000000;
uVar10 = auVar13._0_8_ & 0xffffffff;
goto LAB_00137755;
}
pcVar8 = "unreasonable atom count: %u";
LAB_00137800:
JS_ThrowInternalError(local_a0,pcVar8,uVar9);
}
}
else {
JS_ThrowSyntaxError(param_1,"invalid version (%d expected=%d)",*param_2,0x13);
}
}
LAB_00137752:
uVar10 = 0;
uVar12 = 6;
uVar9 = 0;
LAB_00137755:
if (param_5 == (int8 *)0x0) {
js_free(param_1);
}
else {
*param_5 = uStack_50;
param_5[1] = (long)(int)local_48;
}
lVar4 = lStack_70;
lVar6 = local_98;
if (lStack_70 != 0) {
uVar7 = (ulong)uStack_74;
if (uVar7 != 0) {
uVar11 = 0;
do {
JS_FreeAtom(lVar6,*(int4 *)(lVar4 + uVar11 * 4));
uVar11 = uVar11 + 1;
} while (uVar7 != uVar11);
}
js_free(lVar6,lVar4);
}
js_free(lVar6,uStack_60);
auVar13._8_8_ = uVar12;
auVar13._0_8_ = uVar9 | uVar10;
return auVar13;
}
|
|
62,321 |
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char)
|
monkey531[P]llama/common/json.hpp
|
void dump_integer(NumberType x)
{
static constexpr std::array<std::array<char, 2>, 100> digits_to_99
{
{
{{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
{{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
{{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
{{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
{{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
{{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
{{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
{{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
{{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
{{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
}
};
// special case for "0"
if (x == 0)
{
o->write_character('0');
return;
}
// use a pointer to fill the buffer
auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
number_unsigned_t abs_value;
unsigned int n_chars{};
if (is_negative_number(x))
{
*buffer_ptr = '-';
abs_value = remove_sign(static_cast<number_integer_t>(x));
// account one more byte for the minus sign
n_chars = 1 + count_digits(abs_value);
}
else
{
abs_value = static_cast<number_unsigned_t>(x);
n_chars = count_digits(abs_value);
}
// spare 1 byte for '\0'
JSON_ASSERT(n_chars < number_buffer.size() - 1);
// jump to the end to generate the string from backward,
// so we later avoid reversing the result
buffer_ptr += n_chars;
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
while (abs_value >= 100)
{
const auto digits_index = static_cast<unsigned>((abs_value % 100));
abs_value /= 100;
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
if (abs_value >= 10)
{
const auto digits_index = static_cast<unsigned>(abs_value);
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
else
{
*(--buffer_ptr) = static_cast<char>('0' + abs_value);
}
o->write_characters(number_buffer.data(), n_chars);
}
|
O0
|
cpp
|
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char):
subq $0x48, %rsp
movb %sil, %al
movq %rdi, 0x40(%rsp)
movb %al, 0x3f(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movzbl 0x3f(%rsp), %eax
cmpl $0x0, %eax
jne 0x1947f0
movq 0x10(%rsp), %rdi
callq 0x193910
movq %rax, %rdi
movq (%rdi), %rax
movl $0x30, %esi
callq *(%rax)
jmp 0x194a3c
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
callq 0x1957e0
movq 0x10(%rsp), %rdi
movq %rax, 0x30(%rsp)
movl $0x0, 0x24(%rsp)
movzbl 0x3f(%rsp), %esi
callq 0x1957f0
testb $0x1, %al
jne 0x194820
jmp 0x194856
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rax
movb $0x2d, (%rax)
movzbl 0x3f(%rsp), %eax
movl %eax, %esi
callq 0x195810
movq 0x10(%rsp), %rdi
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rsi
callq 0x195890
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x194873
movq 0x10(%rsp), %rdi
movzbl 0x3f(%rsp), %eax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rsi
callq 0x195890
movl %eax, 0x24(%rsp)
movq 0x10(%rsp), %rdi
movl 0x24(%rsp), %eax
movq %rax, 0x8(%rsp)
addq $0x10, %rdi
callq 0x195920
movq %rax, %rcx
movq 0x8(%rsp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jb 0x1948bc
leaq 0x7edb2(%rip), %rdi # 0x213654
movl $0x4952, %esi # imm = 0x4952
leaq 0x7edf0(%rip), %rdx # 0x21369e
leaq 0x84794(%rip), %rcx # 0x219049
movb $0x0, %al
callq 0x5c070
movl 0x24(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
cmpq $0x64, 0x28(%rsp)
jb 0x194972
movq 0x28(%rsp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movl %edx, %eax
movl %eax, 0x20(%rsp)
movq 0x28(%rsp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, 0x28(%rsp)
movl 0x20(%rsp), %eax
movl %eax, %esi
leaq 0x86b99(%rip), %rdi # 0x21b4aa
callq 0x195930
movq %rax, %rdi
movl $0x1, %esi
callq 0x195960
movb (%rax), %cl
movq 0x30(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x30(%rsp)
movb %cl, -0x1(%rax)
movl 0x20(%rsp), %eax
movl %eax, %esi
leaq 0x86b64(%rip), %rdi # 0x21b4aa
callq 0x195930
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x195960
movb (%rax), %cl
movq 0x30(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x30(%rsp)
movb %cl, -0x1(%rax)
jmp 0x1948cf
cmpq $0xa, 0x28(%rsp)
jb 0x1949ee
movq 0x28(%rsp), %rax
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movl %eax, %esi
leaq 0x86b1a(%rip), %rdi # 0x21b4aa
callq 0x195930
movq %rax, %rdi
movl $0x1, %esi
callq 0x195960
movb (%rax), %cl
movq 0x30(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x30(%rsp)
movb %cl, -0x1(%rax)
movl 0x1c(%rsp), %eax
movl %eax, %esi
leaq 0x86ae5(%rip), %rdi # 0x21b4aa
callq 0x195930
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x195960
movb (%rax), %cl
movq 0x30(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x30(%rsp)
movb %cl, -0x1(%rax)
jmp 0x194a0d
movq 0x28(%rsp), %rax
addq $0x30, %rax
movb %al, %cl
movq 0x30(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x30(%rsp)
movb %cl, -0x1(%rax)
movq 0x10(%rsp), %rdi
callq 0x193910
movq 0x10(%rsp), %rdi
movq %rax, (%rsp)
addq $0x10, %rdi
callq 0x195990
movq (%rsp), %rdi
movq %rax, %rsi
movl 0x24(%rsp), %eax
movl %eax, %edx
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
sub rsp, 48h
mov al, sil
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_9], al
mov rax, [rsp+48h+var_8]
mov [rsp+48h+var_38], rax
movzx eax, [rsp+48h+var_9]
cmp eax, 0
jnz short loc_1947F0
mov rdi, [rsp+48h+var_38]
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_36detail23output_adapter_protocolIcEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
mov rax, [rdi]
mov esi, 30h ; '0'
call qword ptr [rax]
jmp loc_194A3C
loc_1947F0:
mov rdi, [rsp+48h+var_38]
add rdi, 10h
call _ZNSt5arrayIcLm64EE5beginEv; std::array<char,64ul>::begin(void)
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_18], rax
mov [rsp+48h+var_24], 0
movzx esi, [rsp+48h+var_9]
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE18is_negative_numberIhTnNSt9enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeELi0EEEbSJ_
test al, 1
jnz short loc_194820
jmp short loc_194856
loc_194820:
mov rdi, [rsp+48h+var_38]
mov rax, [rsp+48h+var_18]
mov byte ptr [rax], 2Dh ; '-'
movzx eax, [rsp+48h+var_9]
mov esi, eax
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11remove_signEl; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::remove_sign(long)
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_20], rax
mov rsi, [rsp+48h+var_20]
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12count_digitsEm; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::count_digits(ulong)
add eax, 1
mov [rsp+48h+var_24], eax
jmp short loc_194873
loc_194856:
mov rdi, [rsp+48h+var_38]
movzx eax, [rsp+48h+var_9]
mov [rsp+48h+var_20], rax
mov rsi, [rsp+48h+var_20]
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12count_digitsEm; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::count_digits(ulong)
mov [rsp+48h+var_24], eax
loc_194873:
mov rdi, [rsp+48h+var_38]
mov eax, [rsp+48h+var_24]
mov [rsp+48h+var_40], rax
add rdi, 10h
call _ZNKSt5arrayIcLm64EE4sizeEv; std::array<char,64ul>::size(void)
mov rcx, rax
mov rax, [rsp+48h+var_40]
sub rcx, 1
cmp rax, rcx
jb short loc_1948BC
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 4952h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1"
mov al, 0
call _ggml_abort
loc_1948BC:
mov ecx, [rsp+48h+var_24]
mov rax, [rsp+48h+var_18]
mov ecx, ecx
add rax, rcx
mov [rsp+48h+var_18], rax
loc_1948CF:
cmp [rsp+48h+var_20], 64h ; 'd'
jb loc_194972
mov rax, [rsp+48h+var_20]
mov ecx, 64h ; 'd'
xor edx, edx
div rcx
mov eax, edx
mov [rsp+48h+var_28], eax
mov rax, [rsp+48h+var_20]
mov ecx, 64h ; 'd'
xor edx, edx
div rcx
mov [rsp+48h+var_20], rax
mov eax, [rsp+48h+var_28]
mov esi, eax
lea rdi, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
call _ZNKSt5arrayIS_IcLm2EELm100EEixEm; std::array<std::array<char,2ul>,100ul>::operator[](ulong)
mov rdi, rax
mov esi, 1
call _ZNKSt5arrayIcLm2EEixEm; std::array<char,2ul>::operator[](ulong)
mov cl, [rax]
mov rax, [rsp+48h+var_18]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+48h+var_18], rdx
mov [rax-1], cl
mov eax, [rsp+48h+var_28]
mov esi, eax
lea rdi, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
call _ZNKSt5arrayIS_IcLm2EELm100EEixEm; std::array<std::array<char,2ul>,100ul>::operator[](ulong)
mov rdi, rax
xor eax, eax
mov esi, eax
call _ZNKSt5arrayIcLm2EEixEm; std::array<char,2ul>::operator[](ulong)
mov cl, [rax]
mov rax, [rsp+48h+var_18]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+48h+var_18], rdx
mov [rax-1], cl
jmp loc_1948CF
loc_194972:
cmp [rsp+48h+var_20], 0Ah
jb short loc_1949EE
mov rax, [rsp+48h+var_20]
mov [rsp+48h+var_2C], eax
mov eax, [rsp+48h+var_2C]
mov esi, eax
lea rdi, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
call _ZNKSt5arrayIS_IcLm2EELm100EEixEm; std::array<std::array<char,2ul>,100ul>::operator[](ulong)
mov rdi, rax
mov esi, 1
call _ZNKSt5arrayIcLm2EEixEm; std::array<char,2ul>::operator[](ulong)
mov cl, [rax]
mov rax, [rsp+48h+var_18]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+48h+var_18], rdx
mov [rax-1], cl
mov eax, [rsp+48h+var_2C]
mov esi, eax
lea rdi, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
call _ZNKSt5arrayIS_IcLm2EELm100EEixEm; std::array<std::array<char,2ul>,100ul>::operator[](ulong)
mov rdi, rax
xor eax, eax
mov esi, eax
call _ZNKSt5arrayIcLm2EEixEm; std::array<char,2ul>::operator[](ulong)
mov cl, [rax]
mov rax, [rsp+48h+var_18]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+48h+var_18], rdx
mov [rax-1], cl
jmp short loc_194A0D
loc_1949EE:
mov rax, [rsp+48h+var_20]
add rax, 30h ; '0'
mov cl, al
mov rax, [rsp+48h+var_18]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+48h+var_18], rdx
mov [rax-1], cl
loc_194A0D:
mov rdi, [rsp+48h+var_38]
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_36detail23output_adapter_protocolIcEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_48], rax
add rdi, 10h
call _ZNSt5arrayIcLm64EE4dataEv; std::array<char,64ul>::data(void)
mov rdi, [rsp+48h+var_48]
mov rsi, rax
mov eax, [rsp+48h+var_24]
mov edx, eax
mov rax, [rdi]
call qword ptr [rax+8]
loc_194A3C:
add rsp, 48h
retn
|
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
long long a1,
unsigned __int8 a2)
{
long long ( ***v2)(_QWORD, long long); // rax
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // rax
long long v9; // [rsp+0h] [rbp-48h]
unsigned int v10; // [rsp+20h] [rbp-28h]
unsigned int v11; // [rsp+24h] [rbp-24h]
unsigned long long v12; // [rsp+28h] [rbp-20h]
_BYTE *v13; // [rsp+30h] [rbp-18h]
_BYTE *v14; // [rsp+30h] [rbp-18h]
if ( a2 )
{
v13 = (_BYTE *)std::array<char,64ul>::begin(a1 + 16);
if ( (ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE18is_negative_numberIhTnNSt9enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeELi0EEEbSJ_(
a1,
a2) & 1) != 0 )
{
*v13 = 45;
v12 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::remove_sign(
a1,
a2);
v11 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::count_digits(
a1,
v12)
+ 1;
}
else
{
v12 = a2;
v11 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::count_digits(
a1,
a2);
}
if ( v11 >= (unsigned long long)(std::array<char,64ul>::size(a1 + 16) - 1) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
18770LL,
"GGML_ASSERT(%s) failed",
"n_chars < number_buffer.size() - 1");
v14 = &v13[v11];
while ( v12 >= 0x64 )
{
v10 = v12 % 0x64;
v12 /= 0x64uLL;
v4 = std::array<std::array<char,2ul>,100ul>::operator[](
&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99,
v10);
*(v14 - 1) = *(_BYTE *)std::array<char,2ul>::operator[](v4, 1LL);
v5 = std::array<std::array<char,2ul>,100ul>::operator[](
&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99,
v10);
v14 -= 2;
*v14 = *(_BYTE *)std::array<char,2ul>::operator[](v5, 0LL);
}
if ( v12 < 0xA )
{
*(v14 - 1) = v12 + 48;
}
else
{
v6 = std::array<std::array<char,2ul>,100ul>::operator[](
&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99,
(unsigned int)v12);
*(v14 - 1) = *(_BYTE *)std::array<char,2ul>::operator[](v6, 1LL);
v7 = std::array<std::array<char,2ul>,100ul>::operator[](
&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99,
(unsigned int)v12);
*(v14 - 2) = *(_BYTE *)std::array<char,2ul>::operator[](v7, 0LL);
}
v9 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a1);
v8 = std::array<char,64ul>::data(a1 + 16);
return (*(long long ( **)(long long, long long, _QWORD))(*(_QWORD *)v9 + 8LL))(v9, v8, v11);
}
else
{
v2 = (long long ( ***)(_QWORD, long long))std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a1);
return (**v2)(v2, 48LL);
}
}
| |||
62,322 |
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char)
|
monkey531[P]llama/common/json.hpp
|
void dump_integer(NumberType x)
{
static constexpr std::array<std::array<char, 2>, 100> digits_to_99
{
{
{{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
{{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
{{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
{{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
{{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
{{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
{{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
{{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
{{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
{{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
}
};
// special case for "0"
if (x == 0)
{
o->write_character('0');
return;
}
// use a pointer to fill the buffer
auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
number_unsigned_t abs_value;
unsigned int n_chars{};
if (is_negative_number(x))
{
*buffer_ptr = '-';
abs_value = remove_sign(static_cast<number_integer_t>(x));
// account one more byte for the minus sign
n_chars = 1 + count_digits(abs_value);
}
else
{
abs_value = static_cast<number_unsigned_t>(x);
n_chars = count_digits(abs_value);
}
// spare 1 byte for '\0'
JSON_ASSERT(n_chars < number_buffer.size() - 1);
// jump to the end to generate the string from backward,
// so we later avoid reversing the result
buffer_ptr += n_chars;
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
while (abs_value >= 100)
{
const auto digits_index = static_cast<unsigned>((abs_value % 100));
abs_value /= 100;
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
if (abs_value >= 10)
{
const auto digits_index = static_cast<unsigned>(abs_value);
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
else
{
*(--buffer_ptr) = static_cast<char>('0' + abs_value);
}
o->write_characters(number_buffer.data(), n_chars);
}
|
O2
|
cpp
|
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x89ec8
movq %rsi, %r14
js 0x89edd
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8a284
jmp 0x89efc
movq (%rbx), %rdi
movq (%rdi), %rax
movq (%rax), %rax
pushq $0x30
popq %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
movb $0x2d, 0x10(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8a24c
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8a284
incl %eax
cmpl $0x3f, %eax
jae 0x89f72
leaq 0x10(%rbx), %rsi
movl %eax, %ecx
leaq (%rsi,%rcx), %rdi
pushq $0x64
popq %r9
leaq 0x2fda7(%rip), %r8 # 0xb9cbd
cmpq $0x64, %r14
jb 0x89f38
movq %r14, %rax
xorl %edx, %edx
divq %r9
movl %edx, %edx
movzwl (%r8,%rdx,2), %edx
movw %dx, -0x2(%rdi)
addq $-0x2, %rdi
movq %rax, %r14
jmp 0x89f16
cmpq $0xa, %r14
jb 0x89f4f
movb (%r8,%r14,2), %al
movb 0x1(%r8,%r14,2), %dl
movb %dl, -0x1(%rdi)
pushq $-0x2
popq %rdx
jmp 0x89f59
orb $0x30, %r14b
pushq $-0x1
popq %rdx
movl %r14d, %eax
movb %al, (%rdi,%rdx)
movq (%rbx), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
movq %rcx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
leaq 0x28143(%rip), %rdi # 0xb20bc
leaq 0x28186(%rip), %rdx # 0xb2106
leaq 0x2d6c3(%rip), %rcx # 0xb764a
movl $0x4952, %esi # imm = 0x4952
xorl %eax, %eax
callq 0x250e0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
push r14
push rbx
push rax
mov rbx, rdi
test rsi, rsi
jz short loc_89EC8
mov r14, rsi
js short loc_89EDD
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12count_digitsEm; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::count_digits(ulong)
jmp short loc_89EFC
loc_89EC8:
mov rdi, [rbx]
mov rax, [rdi]
mov rax, [rax]
push 30h ; '0'
pop rsi
add rsp, 8
pop rbx
pop r14
jmp rax
loc_89EDD:
mov byte ptr [rbx+10h], 2Dh ; '-'
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11remove_signEl; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::remove_sign(long)
mov r14, rax
mov rdi, rbx
mov rsi, rax
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12count_digitsEm; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::count_digits(ulong)
inc eax
loc_89EFC:
cmp eax, 3Fh ; '?'
jnb short loc_89F72
lea rsi, [rbx+10h]
mov ecx, eax
lea rdi, [rsi+rcx]
push 64h ; 'd'
pop r9
lea r8, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99; "000102030405060708091011121314151617181"...
loc_89F16:
cmp r14, 64h ; 'd'
jb short loc_89F38
mov rax, r14
xor edx, edx
div r9
mov edx, edx
movzx edx, word ptr [r8+rdx*2]
mov [rdi-2], dx
add rdi, 0FFFFFFFFFFFFFFFEh
mov r14, rax
jmp short loc_89F16
loc_89F38:
cmp r14, 0Ah
jb short loc_89F4F
mov al, [r8+r14*2]
mov dl, [r8+r14*2+1]
mov [rdi-1], dl
push 0FFFFFFFFFFFFFFFEh
pop rdx
jmp short loc_89F59
loc_89F4F:
or r14b, 30h
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov eax, r14d
loc_89F59:
mov [rdi+rdx], al
mov rdi, [rbx]
mov rax, [rdi]
mov rax, [rax+8]
mov rdx, rcx
add rsp, 8
pop rbx
pop r14
jmp rax
loc_89F72:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1"
mov esi, 4952h
xor eax, eax
call _ggml_abort
nop
|
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
_QWORD *a1,
long long a2)
{
unsigned long long v3; // r14
unsigned int v4; // eax
_QWORD *v6; // rsi
long long v7; // rcx
long long v8; // rdi
char v9; // al
long long v10; // rdx
if ( !a2 )
return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL);
v3 = a2;
if ( a2 < 0 )
{
*((_BYTE *)a1 + 16) = 45;
v3 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::remove_sign(
a1,
a2);
v4 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::count_digits(
a1,
v3)
+ 1;
}
else
{
v4 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::count_digits(
a1,
a2);
}
if ( v4 >= 0x3F )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
18770LL,
"GGML_ASSERT(%s) failed",
"n_chars < number_buffer.size() - 1");
return nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float();
}
else
{
v6 = a1 + 2;
v7 = v4;
v8 = (long long)a1 + v4 + 16;
while ( v3 >= 0x64 )
{
*(_WORD *)(v8 - 2) = *(_WORD *)&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * (v3 % 0x64)];
v8 -= 2LL;
v3 /= 0x64uLL;
}
if ( v3 < 0xA )
{
v10 = -1LL;
v9 = v3 | 0x30;
}
else
{
v9 = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * v3];
*(_BYTE *)(v8 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * v3 + 1];
v10 = -2LL;
}
*(_BYTE *)(v8 + v10) = v9;
return (*(long long ( **)(_QWORD, _QWORD *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, v6, v7);
}
}
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
TEST RSI,RSI
JZ 0x00189ec8
MOV R14,RSI
JS 0x00189edd
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018a284
JMP 0x00189efc
LAB_00189ec8:
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
PUSH 0x30
POP RSI
ADD RSP,0x8
POP RBX
POP R14
JMP RAX
LAB_00189edd:
MOV byte ptr [RBX + 0x10],0x2d
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018a24c
MOV R14,RAX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0018a284
INC EAX
LAB_00189efc:
CMP EAX,0x3f
JNC 0x00189f72
LEA RSI,[RBX + 0x10]
MOV ECX,EAX
LEA RDI,[RSI + RCX*0x1]
PUSH 0x64
POP R9
LEA R8,[0x1b9cbd]
LAB_00189f16:
CMP R14,0x64
JC 0x00189f38
MOV RAX,R14
XOR EDX,EDX
DIV R9
MOV EDX,EDX
MOVZX EDX,word ptr [R8 + RDX*0x2]
MOV word ptr [RDI + -0x2],DX
ADD RDI,-0x2
MOV R14,RAX
JMP 0x00189f16
LAB_00189f38:
CMP R14,0xa
JC 0x00189f4f
MOV AL,byte ptr [R8 + R14*0x2]
MOV DL,byte ptr [R8 + R14*0x2 + 0x1]
MOV byte ptr [RDI + -0x1],DL
PUSH -0x2
POP RDX
JMP 0x00189f59
LAB_00189f4f:
OR R14B,0x30
PUSH -0x1
POP RDX
MOV EAX,R14D
LAB_00189f59:
MOV byte ptr [RDI + RDX*0x1],AL
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,RCX
ADD RSP,0x8
POP RBX
POP R14
JMP RAX
LAB_00189f72:
LEA RDI,[0x1b20bc]
LEA RDX,[0x1b2106]
LEA RCX,[0x1b764a]
MOV ESI,0x4952
XOR EAX,EAX
CALL 0x001250e0
|
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_
(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*param_1,ulong param_2)
{
uint uVar1;
int iVar2;
long lVar3;
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*psVar4;
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
sVar5;
if (param_2 == 0) {
/* WARNING: Could not recover jumptable at 0x00189edb. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)**(int8 **)param_1)(*(int8 **)param_1,0x30);
return;
}
if ((long)param_2 < 0) {
param_1[0x10] =
(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
)0x2d;
param_2 = nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::remove_sign(param_1,param_2);
iVar2 = nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::count_digits(param_1,param_2);
uVar1 = iVar2 + 1;
}
else {
uVar1 = nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::count_digits(param_1,param_2);
}
if (uVar1 < 0x3f) {
psVar4 = param_1 + 0x10 + uVar1;
for (; 99 < param_2; param_2 = param_2 / 100) {
*(int2 *)(psVar4 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (param_2 % 100) * 2);
psVar4 = psVar4 + -2;
}
if (param_2 < 10) {
sVar5 = (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
)((byte)param_2 | 0x30);
lVar3 = -1;
}
else {
sVar5 = *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ param_2 * 2);
psVar4[-1] = *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ param_2 * 2 + 1);
lVar3 = -2;
}
psVar4[lVar3] = sVar5;
/* WARNING: Could not recover jumptable at 0x00189f70. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(**(long **)param_1 + 8))(*(long **)param_1,param_1 + 0x10,(ulong)uVar1);
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x4952,
"GGML_ASSERT(%s) failed","n_chars < number_buffer.size() - 1");
}
|
|
62,323 |
init_available_charsets
|
eloqsql/mysys/charset.c
|
static void init_available_charsets(void)
{
char fname[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
struct charset_info_st **cs;
MY_CHARSET_LOADER loader;
DBUG_ENTER("init_available_charsets");
bzero((char*) &all_charsets,sizeof(all_charsets));
bzero((char*) &my_collation_statistics, sizeof(my_collation_statistics));
my_hash_init2(key_memory_charsets, &charset_name_hash, 16,
&my_charset_latin1, 64, 0, 0, get_charset_key,
0, 0, HASH_UNIQUE);
init_compiled_charsets(MYF(0));
/* Copy compiled charsets */
for (cs= (struct charset_info_st**) all_charsets;
cs < (struct charset_info_st**) all_charsets +
array_elements(all_charsets)-1 ;
cs++)
{
if (*cs)
{
DBUG_ASSERT(cs[0]->mbmaxlen <= MY_CS_MBMAXLEN);
if (cs[0]->m_ctype)
if (init_state_maps(*cs))
*cs= NULL;
}
}
my_charset_loader_init_mysys(&loader);
strmov(get_charsets_dir(fname), MY_CHARSET_INDEX);
my_read_charset_file(&loader, fname, MYF(0));
DBUG_VOID_RETURN;
}
|
O3
|
c
|
init_available_charsets:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x300, %rsp # imm = 0x300
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq 0xb6d777(%rip), %rbx # 0xbffab0
movl $0x4000, %edx # imm = 0x4000
movq %rbx, %rdi
xorl %esi, %esi
callq 0x292c0
leaq 0xb717d1(%rip), %rdi # 0xc03b20
movl $0x4000, %edx # imm = 0x4000
xorl %esi, %esi
callq 0x292c0
leaq 0xb7639a(%rip), %rax # 0xc086fc
movl (%rax), %edi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x10fc(%rip), %rax # 0x9346f
movq %rax, 0x8(%rsp)
movl $0x1, 0x20(%rsp)
movq $0x0, (%rsp)
leaq 0xb71721(%rip), %rsi # 0xc03ab0
leaq 0x319b8a(%rip), %rcx # 0x3abf20
movl $0x40, %r8d
movl $0x10, %edx
xorl %r9d, %r9d
callq 0x93741
xorl %edi, %edi
callq 0xa7bdc
movq $-0x8, %r14
movq 0x8(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x923da
cmpq $0x0, 0x40(%rdi)
je 0x923da
callq 0x932ba
testb %al, %al
je 0x923da
movq $0x0, 0x8(%rbx,%r14)
addq $0x8, %r14
cmpq $0x3ff0, %r14 # imm = 0x3FF0
jb 0x923b7
leaq -0x2e0(%rbp), %rbx
movb $0x0, (%rbx)
leaq -0x8ae(%rip), %rax # 0x91b4a
movq %rax, 0x80(%rbx)
leaq -0x8ad(%rip), %rax # 0x91b59
movq %rax, 0x88(%rbx)
leaq -0x8a0(%rip), %rax # 0x91b74
movq %rax, 0x90(%rbx)
leaq 0xd788(%rip), %rax # 0x9fbaa
movq %rax, 0x98(%rbx)
leaq 0x2f32c0(%rip), %rax # 0x3856f0
movq (%rax), %rax
movq %rax, 0xa0(%rbx)
leaq -0x8af(%rip), %rax # 0x91b92
movq %rax, 0xa8(%rbx)
leaq -0x230(%rbp), %r14
movq %r14, %rdi
callq 0x920d7
movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49
movq %rcx, (%rax)
movw $0x6c, 0x8(%rax)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x93480
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0x92492
addq $0x300, %rsp # imm = 0x300
popq %rbx
popq %r14
popq %rbp
retq
callq 0x29270
|
init_available_charsets:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 300h
mov rax, fs:28h
mov [rbp+var_18], rax
lea rbx, all_charsets
mov edx, 4000h
mov rdi, rbx
xor esi, esi
call _memset
lea rdi, my_collation_statistics
mov edx, 4000h
xor esi, esi
call _memset
lea rax, key_memory_charsets
mov edi, [rax]
xorps xmm0, xmm0
movups [rsp+310h+var_300], xmm0
lea rax, get_charset_key
mov [rsp+310h+var_308], rax
mov [rsp+310h+var_2F0], 1
mov [rsp+310h+var_310], 0
lea rsi, charset_name_hash
lea rcx, my_charset_latin1
mov r8d, 40h ; '@'
mov edx, 10h
xor r9d, r9d
call my_hash_init2
xor edi, edi
call init_compiled_charsets
mov r14, 0FFFFFFFFFFFFFFF8h
loc_923B7:
mov rdi, [rbx+r14+8]
test rdi, rdi
jz short loc_923DA
cmp qword ptr [rdi+40h], 0
jz short loc_923DA
call init_state_maps
test al, al
jz short loc_923DA
mov qword ptr [rbx+r14+8], 0
loc_923DA:
add r14, 8
cmp r14, 3FF0h
jb short loc_923B7
lea rbx, [rbp+var_2E0]
mov byte ptr [rbx], 0
lea rax, my_once_alloc_c
mov [rbx+80h], rax
lea rax, my_malloc_c
mov [rbx+88h], rax
lea rax, my_realloc_c
mov [rbx+90h], rax
lea rax, my_free
mov [rbx+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rbx+0A0h], rax
lea rax, add_collation
mov [rbx+0A8h], rax
lea r14, [rbp+var_230]
mov rdi, r14
call get_charsets_dir
mov rcx, 6D782E7865646E49h
mov [rax], rcx
mov word ptr [rax+8], 6Ch ; 'l'
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_read_charset_file
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz short loc_92492
add rsp, 300h
pop rbx
pop r14
pop rbp
retn
loc_92492:
call ___stack_chk_fail
|
unsigned long long init_available_charsets()
{
unsigned long long v0; // r14
long long v1; // rdi
_BYTE v3[128]; // [rsp+30h] [rbp-2E0h] BYREF
long long ( *v4)(long long); // [rsp+B0h] [rbp-260h]
long long ( *v5)(long long); // [rsp+B8h] [rbp-258h]
long long ( *v6)(long long, long long, long long, long long, long long, long long); // [rsp+C0h] [rbp-250h]
long long ( *v7)(_QWORD); // [rsp+C8h] [rbp-248h]
long long ( *v8)(); // [rsp+D0h] [rbp-240h]
long long ( *v9)(unsigned int *); // [rsp+D8h] [rbp-238h]
_BYTE v10[536]; // [rsp+E0h] [rbp-230h] BYREF
unsigned long long v11; // [rsp+2F8h] [rbp-18h]
v11 = __readfsqword(0x28u);
memset(all_charsets, 0LL, sizeof(all_charsets));
memset(my_collation_statistics, 0LL, sizeof(my_collation_statistics));
my_hash_init2(
key_memory_charsets,
(unsigned int)&charset_name_hash,
16,
(unsigned int)&my_charset_latin1,
64,
0,
0LL,
(long long)get_charset_key,
0LL,
0LL,
1);
init_compiled_charsets(0LL);
v0 = 0x1FFFFFFFFFFFFFFFLL;
do
{
v1 = all_charsets[v0 + 1];
if ( v1 && *(_QWORD *)(v1 + 64) && (unsigned __int8)init_state_maps(v1) )
all_charsets[v0 + 1] = 0LL;
++v0;
}
while ( v0 < 2046 );
v3[0] = 0;
v4 = my_once_alloc_c;
v5 = my_malloc_c;
v6 = my_realloc_c;
v7 = my_free;
v8 = my_charset_error_reporter;
v9 = add_collation;
strcpy((char *)get_charsets_dir((long long)v10), "Index.xml");
my_read_charset_file(v3, v10, 0LL);
return __readfsqword(0x28u);
}
|
init_available_charsets:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x300
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RBX,[0xcffab0]
MOV EDX,0x4000
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001292c0
LEA RDI,[0xd03b20]
MOV EDX,0x4000
XOR ESI,ESI
CALL 0x001292c0
LEA RAX,[0xd086fc]
MOV EDI,dword ptr [RAX]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x10],XMM0
LEA RAX,[0x19346f]
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RSP + 0x20],0x1
MOV qword ptr [RSP],0x0
LEA RSI,[0xd03ab0]
LEA RCX,[0x4abf20]
MOV R8D,0x40
MOV EDX,0x10
XOR R9D,R9D
CALL 0x00193741
XOR EDI,EDI
CALL 0x001a7bdc
MOV R14,-0x8
LAB_001923b7:
MOV RDI,qword ptr [RBX + R14*0x1 + 0x8]
TEST RDI,RDI
JZ 0x001923da
CMP qword ptr [RDI + 0x40],0x0
JZ 0x001923da
CALL 0x001932ba
TEST AL,AL
JZ 0x001923da
MOV qword ptr [RBX + R14*0x1 + 0x8],0x0
LAB_001923da:
ADD R14,0x8
CMP R14,0x3ff0
JC 0x001923b7
LEA RBX,[RBP + -0x2e0]
MOV byte ptr [RBX],0x0
LEA RAX,[0x191b4a]
MOV qword ptr [RBX + 0x80],RAX
LEA RAX,[0x191b59]
MOV qword ptr [RBX + 0x88],RAX
LEA RAX,[0x191b74]
MOV qword ptr [RBX + 0x90],RAX
LEA RAX,[0x19fbaa]
MOV qword ptr [RBX + 0x98],RAX
LEA RAX,[0x4856f0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xa0],RAX
LEA RAX,[0x191b92]
MOV qword ptr [RBX + 0xa8],RAX
LEA R14,[RBP + -0x230]
MOV RDI,R14
CALL 0x001920d7
MOV RCX,0x6d782e7865646e49
MOV qword ptr [RAX],RCX
MOV word ptr [RAX + 0x8],0x6c
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x00193480
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x00192492
ADD RSP,0x300
POP RBX
POP R14
POP RBP
RET
LAB_00192492:
CALL 0x00129270
|
void init_available_charsets(void)
{
char cVar1;
int8 *puVar2;
ulong uVar3;
long in_FS_OFFSET;
int1 local_2e8 [128];
code *local_268;
code *local_260;
code *local_258;
code *local_250;
int *local_248;
code *local_240;
int1 local_238 [536];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
memset(&all_charsets,0,0x4000);
memset(my_collation_statistics,0,0x4000);
my_hash_init2(key_memory_charsets,charset_name_hash,0x10,&my_charset_latin1,0x40,0,0,
get_charset_key,0,0,1);
init_compiled_charsets(0);
uVar3 = 0xfffffffffffffff8;
do {
if ((*(long *)((long)&DAT_00cffab8 + uVar3) != 0) &&
(*(long *)(*(long *)((long)&DAT_00cffab8 + uVar3) + 0x40) != 0)) {
cVar1 = init_state_maps();
if (cVar1 != '\0') {
*(int8 *)((long)&DAT_00cffab8 + uVar3) = 0;
}
}
uVar3 = uVar3 + 8;
} while (uVar3 < 0x3ff0);
local_2e8[0] = 0;
local_268 = my_once_alloc_c;
local_260 = my_malloc_c;
local_258 = my_realloc_c;
local_250 = my_free;
local_248 = my_charset_error_reporter;
local_240 = add_collation;
puVar2 = (int8 *)get_charsets_dir(local_238);
*puVar2 = 0x6d782e7865646e49;
*(int2 *)(puVar2 + 1) = 0x6c;
my_read_charset_file(local_2e8,local_238,0);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
62,324 |
inline_mysql_file_seek
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline my_off_t
inline_mysql_file_seek(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t pos, int whence, myf flags)
{
my_off_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_seek(file, pos, whence, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_seek(file, pos, whence, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_seek:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x2718a0(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x8, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x4f953
leaq 0x27185a(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
xorl %esi, %esi
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xf6020
movq %rax, -0x38(%rbp)
leaq 0x271823(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4f972
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xf6020
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
inline_mysql_file_seek_1:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 8
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_4F953
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
xor esi, esi
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
xor ecx, ecx
mov esi, ecx
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_4F972
loc_4F953:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_4F972:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_seek_1(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h]
long long v9; // [rsp+58h] [rbp-38h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+78h] [rbp-18h]
unsigned int v14; // [rsp+7Ch] [rbp-14h]
long long v15; // [rsp+80h] [rbp-10h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 8LL);
if ( !v8 )
return my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD, long long, _QWORD))PSI_server[66])(v8, 0LL, v15, v14);
v9 = my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[67])(v8, 0LL);
return v9;
}
|
inline_mysql_file_seek:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x8
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0014f953
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
XOR ESI,ESI
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f6020
MOV qword ptr [RBP + -0x38],RAX
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014f972
LAB_0014f953:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f6020
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014f972:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
int8
inline_mysql_file_seek
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int8 local_40;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int8 local_10;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,8);
if (local_48 == 0) {
local_10 = my_seek(local_20,local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,0,local_18,local_1c);
local_40 = my_seek(local_20,local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x218))(local_48,0);
local_10 = local_40;
}
return local_10;
}
|
|
62,325 |
my_charset_is_ascii_compatible
|
eloqsql/strings/ctype-simple.c
|
static my_bool
my_charset_is_ascii_compatible(CHARSET_INFO *cs)
{
uint i;
if (!cs->tab_to_uni)
return 1;
for (i= 0; i < 128; i++)
{
if (cs->tab_to_uni[i] != i)
return 0;
}
return 1;
}
|
O0
|
c
|
my_charset_is_ascii_compatible:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x68(%rax)
jne 0x4b689
movb $0x1, -0x1(%rbp)
jmp 0x4b6c4
movl $0x0, -0x14(%rbp)
cmpl $0x80, -0x14(%rbp)
jae 0x4b6c0
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rax
movl -0x14(%rbp), %ecx
movzwl (%rax,%rcx,2), %eax
cmpl -0x14(%rbp), %eax
je 0x4b6b3
movb $0x0, -0x1(%rbp)
jmp 0x4b6c4
jmp 0x4b6b5
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x4b690
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax)
|
my_charset_is_ascii_compatible:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp qword ptr [rax+68h], 0
jnz short loc_4B689
mov [rbp+var_1], 1
jmp short loc_4B6C4
loc_4B689:
mov [rbp+var_14], 0
loc_4B690:
cmp [rbp+var_14], 80h
jnb short loc_4B6C0
mov rax, [rbp+var_10]
mov rax, [rax+68h]
mov ecx, [rbp+var_14]
movzx eax, word ptr [rax+rcx*2]
cmp eax, [rbp+var_14]
jz short loc_4B6B3
mov [rbp+var_1], 0
jmp short loc_4B6C4
loc_4B6B3:
jmp short $+2
loc_4B6B5:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_4B690
loc_4B6C0:
mov [rbp+var_1], 1
loc_4B6C4:
mov al, [rbp+var_1]
pop rbp
retn
|
char my_charset_is_ascii_compatible(long long a1)
{
unsigned int i; // [rsp+0h] [rbp-14h]
if ( !*(_QWORD *)(a1 + 104) )
return 1;
for ( i = 0; i < 0x80; ++i )
{
if ( *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 2LL * i) != i )
return 0;
}
return 1;
}
|
my_charset_is_ascii_compatible:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x68],0x0
JNZ 0x0014b689
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0014b6c4
LAB_0014b689:
MOV dword ptr [RBP + -0x14],0x0
LAB_0014b690:
CMP dword ptr [RBP + -0x14],0x80
JNC 0x0014b6c0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x68]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX EAX,word ptr [RAX + RCX*0x2]
CMP EAX,dword ptr [RBP + -0x14]
JZ 0x0014b6b3
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0014b6c4
LAB_0014b6b3:
JMP 0x0014b6b5
LAB_0014b6b5:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0014b690
LAB_0014b6c0:
MOV byte ptr [RBP + -0x1],0x1
LAB_0014b6c4:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int1 my_charset_is_ascii_compatible(long param_1)
{
uint local_1c;
if (*(long *)(param_1 + 0x68) != 0) {
for (local_1c = 0; local_1c < 0x80; local_1c = local_1c + 1) {
if (*(ushort *)(*(long *)(param_1 + 0x68) + (ulong)local_1c * 2) != local_1c) {
return 0;
}
}
}
return 1;
}
|
|
62,326 |
testing::internal::CmpHelperSTREQ(char const*, char const*, wchar_t const*, wchar_t const*)
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
|
AssertionResult CmpHelperSTREQ(const char* lhs_expression,
const char* rhs_expression, const wchar_t* lhs,
const wchar_t* rhs) {
if (String::WideCStringEquals(lhs, rhs)) {
return AssertionSuccess();
}
return EqFailure(lhs_expression, rhs_expression, PrintToString(lhs),
PrintToString(rhs), false);
}
|
O1
|
cpp
|
testing::internal::CmpHelperSTREQ(char const*, char const*, wchar_t const*, wchar_t const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rcx, 0x8(%rsp)
movq %r8, (%rsp)
testq %r8, %r8
sete %al
testq %rcx, %rcx
je 0x1f6f6
testq %r8, %r8
je 0x1f707
movq %rcx, %rdi
movq %r8, %rsi
callq 0x86d0
testl %eax, %eax
sete %al
testb %al, %al
je 0x1f707
movb $0x1, (%rbx)
movq $0x0, 0x8(%rbx)
jmp 0x1f774
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x33db8
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0x33db8
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %r9d, %r9d
callq 0x1dd98
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f759
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f774
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f7a4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x1f7a4
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f7bf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing8internal14CmpHelperSTREQEPKcS2_PKwS4_:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov [rsp+68h+var_60], rcx
mov [rsp+68h+var_68], r8
test r8, r8
setz al
test rcx, rcx
jz short loc_1F6F6
test r8, r8
jz short loc_1F707
mov rdi, rcx
mov rsi, r8
call _wcscmp
test eax, eax
setz al
loc_1F6F6:
test al, al
jz short loc_1F707
mov byte ptr [rbx], 1
mov qword ptr [rbx+8], 0
jmp short loc_1F774
loc_1F707:
lea rdi, [rsp+68h+var_38]
lea rsi, [rsp+68h+var_60]
call _ZN7testing13PrintToStringIPKwEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<wchar_t const*>(wchar_t const* const&)
lea rdi, [rsp+68h+var_58]
mov rsi, rsp
call _ZN7testing13PrintToStringIPKwEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<wchar_t const*>(wchar_t const* const&)
lea rcx, [rsp+68h+var_38]
lea r8, [rsp+68h+var_58]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
xor r9d, r9d
call _ZN7testing8internal9EqFailureEPKcS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_b; testing::internal::EqFailure(char const*,char const*,std::string const&,std::string const&,bool)
lea rax, [rsp+68h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1F759
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F759:
lea rax, [rsp+68h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1F774
mov rsi, [rsp+68h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F774:
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1F7A4
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1F7A4
mov rbx, rax
loc_1F7A4:
lea rax, [rsp+arg_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1F7BF
mov rsi, [rsp+arg_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F7BF:
mov rdi, rbx
call __Unwind_Resume
|
CmpHelperSTREQ:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP],R8
TEST R8,R8
SETZ AL
TEST RCX,RCX
JZ 0x0011f6f6
TEST R8,R8
JZ 0x0011f707
MOV RDI,RCX
MOV RSI,R8
CALL 0x001086d0
TEST EAX,EAX
SETZ AL
LAB_0011f6f6:
TEST AL,AL
JZ 0x0011f707
MOV byte ptr [RBX],0x1
MOV qword ptr [RBX + 0x8],0x0
JMP 0x0011f774
LAB_0011f707:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x8]
CALL 0x00133db8
LAB_0011f716:
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
CALL 0x00133db8
LAB_0011f723:
LEA RCX,[RSP + 0x30]
LEA R8,[RSP + 0x10]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
XOR R9D,R9D
CALL 0x0011dd98
LAB_0011f73e:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011f759
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001084e0
LAB_0011f759:
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011f774
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001084e0
LAB_0011f774:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::CmpHelperSTREQ(char const*, char const*, wchar_t const*, wchar_t const*) */
internal * __thiscall
testing::internal::CmpHelperSTREQ
(internal *this,char *param_1,char *param_2,wchar_t *param_3,wchar_t *param_4)
{
int iVar1;
bool bVar2;
wchar_t *local_68;
wchar_t *local_60;
long *local_58 [2];
long local_48 [2];
long *local_38 [2];
long local_28 [2];
bVar2 = param_4 == (wchar_t *)0x0;
local_68 = param_4;
local_60 = param_3;
if (param_3 != (wchar_t *)0x0) {
if (param_4 == (wchar_t *)0x0) goto LAB_0011f707;
iVar1 = wcscmp(param_3,param_4);
bVar2 = iVar1 == 0;
}
if (bVar2) {
*this = (internal)0x1;
*(int8 *)(this + 8) = 0;
return this;
}
LAB_0011f707:
PrintToString<wchar_t_const*>((testing *)local_38,&local_60);
/* try { // try from 0011f716 to 0011f722 has its CatchHandler @ 0011f7a1 */
PrintToString<wchar_t_const*>((testing *)local_58,&local_68);
/* try { // try from 0011f723 to 0011f73d has its CatchHandler @ 0011f781 */
EqFailure(this,param_1,param_2,(string *)local_38,(string *)local_58,false);
if (local_58[0] != local_48) {
operator_delete(local_58[0],local_48[0] + 1);
}
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return this;
}
|
||
62,327 |
inline_mysql_file_seek
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline my_off_t
inline_mysql_file_seek(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t pos, int whence, myf flags)
{
my_off_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_seek(file, pos, whence, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_seek(file, pos, whence, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_seek:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1dfe30(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x8, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xe0323
leaq 0x1dfdea(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
xorl %esi, %esi
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xf4ca0
movq %rax, -0x38(%rbp)
leaq 0x1dfdb3(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xe0342
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xf4ca0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
inline_mysql_file_seek_6:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 8
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_E0323
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
xor esi, esi
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
xor ecx, ecx
mov esi, ecx
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_E0342
loc_E0323:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_E0342:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_seek_6(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h]
long long v9; // [rsp+58h] [rbp-38h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+78h] [rbp-18h]
unsigned int v14; // [rsp+7Ch] [rbp-14h]
long long v15; // [rsp+80h] [rbp-10h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 8LL);
if ( !v8 )
return my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD, long long, _QWORD))PSI_server[66])(v8, 0LL, v15, v14);
v9 = my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[67])(v8, 0LL);
return v9;
}
|
inline_mysql_file_seek:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x8
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001e0323
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
XOR ESI,ESI
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f4ca0
MOV qword ptr [RBP + -0x38],RAX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001e0342
LAB_001e0323:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f4ca0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001e0342:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
int8
inline_mysql_file_seek
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int8 local_40;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int8 local_10;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,8);
if (local_48 == 0) {
local_10 = my_seek(local_20,local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,0,local_18,local_1c);
local_40 = my_seek(local_20,local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x218))(local_48,0);
local_10 = local_40;
}
return local_10;
}
|
|
62,328 |
inline_mysql_rwlock_unlock
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_rwlock_unlock(
mysql_rwlock_t *that)
{
int result;
#ifdef HAVE_PSI_RWLOCK_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_RWLOCK_CALL(unlock_rwlock)(that->m_psi);
#endif
result= rw_unlock(&that->m_rwlock);
return result;
}
|
O0
|
c
|
inline_mysql_rwlock_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xa75c1
leaq 0x218b0e(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x168(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0xfa120
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_rwlock_unlock_5:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_A75C1
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+168h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+90h]
call rax
loc_A75C1:
mov rdi, [rbp+var_8]
call my_rw_unlock
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_rwlock_unlock_5(long long a1)
{
if ( *(_QWORD *)(a1 + 144) )
((void ( *)(_QWORD))PSI_server[45])(*(_QWORD *)(a1 + 144));
return (unsigned int)my_rw_unlock(a1);
}
|
inline_mysql_rwlock_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001a75c1
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x168]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x90]
CALL RAX
LAB_001a75c1:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fa120
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int4 inline_mysql_rwlock_unlock(long param_1)
{
int4 uVar1;
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x168))(*(int8 *)(param_1 + 0x90));
}
uVar1 = my_rw_unlock(param_1);
return uVar1;
}
|
|
62,329 |
settings::add_input(int, ConfigInt&, settings_location, char const*, bool)
|
untodesu[P]voxelius/game/client/settings.cc
|
void settings::add_input(int priority, ConfigInt &value, settings_location location, const char *name, bool tooltip)
{
auto setting_value = new SettingValue_InputInt;
setting_value->type = setting_type::INPUT_INT;
setting_value->priority = priority;
setting_value->has_tooltip = tooltip;
setting_value->value = &value;
setting_value->name = name;
setting_value->wid = fmt::format("###{}", static_cast<const void *>(setting_value->value));
values[static_cast<unsigned int>(location)].push_back(setting_value);
values_all.push_back(setting_value);
}
|
O2
|
cpp
|
settings::add_input(int, ConfigInt&, settings_location, char const*, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r14d
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r12
movl %edi, %r13d
movl $0xa0, %edi
callq 0x26940
movq %rax, %rbx
movq %rax, %rdi
callq 0x65ee0
movl $0x1, 0x8(%rbx)
movl %r13d, 0x74(%rbx)
movb %r14b, 0x70(%rbx)
movq %r12, 0x98(%rbx)
leaq 0x50(%rbx), %rdi
movq %r15, %rsi
callq 0x271c0
movq 0x98(%rbx), %rax
movq %rsp, %rcx
movq %rax, (%rcx)
leaq 0x11197c(%rip), %rsi # 0x1764c3
leaq 0x8(%rsp), %r14
pushq $0x5
popq %rdx
movq %r14, %rdi
callq 0x65e81
leaq 0x78(%rbx), %rdi
movq %r14, %rsi
callq 0x26b30
movq %r14, %rdi
callq 0x272a8
movl %ebp, %eax
imulq $0x18, %rax, %rax
leaq 0x1f1ce8(%rip), %rdi # 0x256860
addq %rax, %rdi
movq %rbx, (%r14)
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x6667a
movq %rbx, (%r14)
leaq 0x1f1cb3(%rip), %rdi # 0x256848
leaq 0x8(%rsp), %rsi
callq 0x6667a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN8settings9add_inputEiR9ConfigInt17settings_locationPKcb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14d, r8d
mov r15, rcx
mov ebp, edx
mov r12, rsi
mov r13d, edi
mov edi, 0A0h; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax; this
call _ZN21SettingValue_InputIntC2Ev; SettingValue_InputInt::SettingValue_InputInt(void)
mov dword ptr [rbx+8], 1
mov [rbx+74h], r13d
mov [rbx+70h], r14b
mov [rbx+98h], r12
lea rdi, [rbx+50h]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*)
mov rax, [rbx+98h]
mov rcx, rsp
mov [rcx], rax
lea rsi, asc_1764C0+3; "###{}"
lea r14, [rsp+58h+var_50]
push 5
pop rdx
mov rdi, r14
call _ZN3fmt3v116formatIJPKvEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOSC_; fmt::v11::format<void const*>(fmt::v11::basic_format_string<char,fmt::v11::type_identity<void const*>::type>,void const*&&)
lea rdi, [rbx+78h]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov eax, ebp
imul rax, 18h
lea rdi, _ZL6values; values
add rdi, rax
mov [r14], rbx
lea r14, [rsp+58h+var_50]
mov rsi, r14
call _ZNSt6vectorIP12SettingValueSaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<SettingValue *>::emplace_back<SettingValue *>(SettingValue * &&)
mov [r14], rbx
lea rdi, _ZL10values_all; values_all
lea rsi, [rsp+58h+var_50]
call _ZNSt6vectorIP12SettingValueSaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<SettingValue *>::emplace_back<SettingValue *>(SettingValue * &&)
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long settings::add_input(int a1, long long a2, unsigned int a3, long long a4, char a5)
{
long long v8; // rbx
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
long long v14; // [rsp+0h] [rbp-58h] BYREF
_QWORD v15[10]; // [rsp+8h] [rbp-50h] BYREF
v8 = operator new(0xA0uLL);
SettingValue_InputInt::SettingValue_InputInt((SettingValue_InputInt *)v8);
*(_DWORD *)(v8 + 8) = 1;
*(_DWORD *)(v8 + 116) = a1;
*(_BYTE *)(v8 + 112) = a5;
*(_QWORD *)(v8 + 152) = a2;
std::string::assign(v8 + 80, a4, v9, v10, v11, v12);
v14 = *(_QWORD *)(v8 + 152);
fmt::v11::format<void const*>(v15, "###{}", 5LL, &v14);
std::string::operator=(v8 + 120, v15);
std::string::~string(v15);
v15[0] = v8;
std::vector<SettingValue *>::emplace_back<SettingValue *>(&values[3 * a3], v15);
v15[0] = v8;
return std::vector<SettingValue *>::emplace_back<SettingValue *>(&values_all, v15);
}
|
add_input:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14D,R8D
MOV R15,RCX
MOV EBP,EDX
MOV R12,RSI
MOV R13D,EDI
MOV EDI,0xa0
CALL 0x00126940
MOV RBX,RAX
MOV RDI,RAX
CALL 0x00165ee0
MOV dword ptr [RBX + 0x8],0x1
MOV dword ptr [RBX + 0x74],R13D
MOV byte ptr [RBX + 0x70],R14B
MOV qword ptr [RBX + 0x98],R12
LEA RDI,[RBX + 0x50]
MOV RSI,R15
CALL 0x001271c0
MOV RAX,qword ptr [RBX + 0x98]
MOV RCX,RSP
MOV qword ptr [RCX],RAX
LEA RSI,[0x2764c3]
LEA R14,[RSP + 0x8]
PUSH 0x5
POP RDX
MOV RDI,R14
CALL 0x00165e81
LEA RDI,[RBX + 0x78]
MOV RSI,R14
CALL 0x00126b30
MOV RDI,R14
CALL 0x001272a8
MOV EAX,EBP
IMUL RAX,RAX,0x18
LEA RDI,[0x356860]
ADD RDI,RAX
MOV qword ptr [R14],RBX
LEA R14,[RSP + 0x8]
MOV RSI,R14
CALL 0x0016667a
MOV qword ptr [R14],RBX
LEA RDI,[0x356848]
LEA RSI,[RSP + 0x8]
CALL 0x0016667a
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* settings::add_input(int, ConfigInt&, settings_location, char const*, bool) */
void settings::add_input(int4 param_1,int8 param_2,uint param_3,int8 param_4,
SettingValue_InputInt param_5)
{
SettingValue_InputInt *this;
SettingValue_InputInt *local_50 [4];
this = (SettingValue_InputInt *)operator_new(0xa0);
SettingValue_InputInt::SettingValue_InputInt(this);
*(int4 *)(this + 8) = 1;
*(int4 *)(this + 0x74) = param_1;
this[0x70] = param_5;
*(int8 *)(this + 0x98) = param_2;
std::__cxx11::string::assign((char *)(this + 0x50));
fmt::v11::format<void_const*>((string *)local_50,"###{}",5);
std::__cxx11::string::operator=((string *)(this + 0x78),(string *)local_50);
std::__cxx11::string::~string((string *)local_50);
local_50[0] = this;
std::vector<SettingValue*,std::allocator<SettingValue*>>::emplace_back<SettingValue*>
((vector<SettingValue*,std::allocator<SettingValue*>> *)(&values + (ulong)param_3 * 3),
(SettingValue **)local_50);
local_50[0] = this;
std::vector<SettingValue*,std::allocator<SettingValue*>>::emplace_back<SettingValue*>
((vector<SettingValue*,std::allocator<SettingValue*>> *)&values_all,
(SettingValue **)local_50);
return;
}
|
|
62,330 |
conc_212
|
eloqsql/libmariadb/unittest/libmariadb/features-10_2.c
|
static int conc_212(MYSQL *mysql)
{
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
int rc;
rc= mariadb_stmt_execute_direct(stmt, "SELECT 1, 2", -1);
check_stmt_rc(rc, stmt);
mysql_stmt_store_result(stmt);
mysql_stmt_free_result(stmt);
rc= mariadb_stmt_execute_direct(stmt, "SELECT 1, 2", -1);
check_stmt_rc(rc, stmt);
mysql_stmt_store_result(stmt);
mysql_stmt_free_result(stmt);
rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1");
check_mysql_rc(rc,mysql);
rc= mysql_stmt_close(stmt);
return OK;
}
|
O3
|
c
|
conc_212:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x21598
movq %rax, %r14
leaq 0x20a80(%rip), %rsi # 0x3572a
movq %rax, %rdi
movq $-0x1, %rdx
callq 0x22f18
testl %eax, %eax
je 0x14cdd
movq %r14, %rdi
callq 0x21038
leaq 0x2033c(%rip), %rdi # 0x35008
leaq 0x209ca(%rip), %rdx # 0x3569d
movq %rax, %rsi
movl $0x9e, %ecx
jmp 0x14d25
movq %r14, %rdi
callq 0x21c06
movq %r14, %rdi
callq 0x212e8
leaq 0x20a36(%rip), %rsi # 0x3572a
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x22f18
testl %eax, %eax
je 0x14d3c
movq %r14, %rdi
callq 0x21038
leaq 0x202f2(%rip), %rdi # 0x35008
leaq 0x20980(%rip), %rdx # 0x3569d
movq %rax, %rsi
movl $0xa3, %ecx
xorl %eax, %eax
callq 0x157cf
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x21c06
movq %r14, %rdi
callq 0x212e8
leaq 0x209e3(%rip), %rsi # 0x35736
movq %rbx, %rdi
callq 0x1aed9
testl %eax, %eax
je 0x14d9a
movl %eax, %r15d
movq %rbx, %rdi
callq 0x1cf52
movq %rax, %r14
movq %rbx, %rdi
callq 0x1cf3d
leaq 0x203d1(%rip), %rdi # 0x3514d
leaq 0x2091a(%rip), %r8 # 0x3569d
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movl $0xa8, %r9d
xorl %eax, %eax
callq 0x157cf
jmp 0x14d2c
movq %r14, %rdi
callq 0x20fa9
xorl %eax, %eax
jmp 0x14d31
|
conc_212:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
call mysql_stmt_init
mov r14, rax
lea rsi, aSelect12; "SELECT 1, 2"
mov rdi, rax
mov rdx, 0FFFFFFFFFFFFFFFFh
call mariadb_stmt_execute_direct
test eax, eax
jz short loc_14CDD
mov rdi, r14
call mysql_stmt_error
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov rsi, rax
mov ecx, 9Eh
jmp short loc_14D25
loc_14CDD:
mov rdi, r14
call mysql_stmt_store_result
mov rdi, r14
call mysql_stmt_free_result
lea rsi, aSelect12; "SELECT 1, 2"
mov rdi, r14
mov rdx, 0FFFFFFFFFFFFFFFFh
call mariadb_stmt_execute_direct
test eax, eax
jz short loc_14D3C
mov rdi, r14
call mysql_stmt_error
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov rsi, rax
mov ecx, 0A3h
loc_14D25:
xor eax, eax
call diag
loc_14D2C:
mov eax, 1
loc_14D31:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_14D3C:
mov rdi, r14
call mysql_stmt_store_result
mov rdi, r14
call mysql_stmt_free_result
lea rsi, aDropTableIfExi; "DROP TABLE IF EXISTS t1"
mov rdi, rbx
call mysql_query
test eax, eax
jz short loc_14D9A
mov r15d, eax
mov rdi, rbx
call mysql_error
mov r14, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r15d
mov rdx, r14
mov ecx, eax
mov r9d, 0A8h
xor eax, eax
call diag
jmp short loc_14D2C
loc_14D9A:
mov rdi, r14
call mysql_stmt_close
xor eax, eax
jmp short loc_14D31
|
long long conc_212(long long a1)
{
long long v1; // r14
int v2; // esi
int v3; // r8d
int v4; // r9d
int v5; // ecx
int v7; // eax
int v8; // r15d
int v9; // r14d
int v10; // eax
v1 = mysql_stmt_init(a1);
if ( (unsigned int)mariadb_stmt_execute_direct(v1, "SELECT 1, 2", -1LL) )
{
v2 = mysql_stmt_error(v1);
v5 = 158;
LABEL_5:
diag(
(unsigned int)"Error: %s (%s: %d)",
v2,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/features-10_2.c",
v5,
v3,
v4);
return 1LL;
}
mysql_stmt_store_result(v1);
mysql_stmt_free_result(v1);
if ( (unsigned int)mariadb_stmt_execute_direct(v1, "SELECT 1, 2", -1LL) )
{
v2 = mysql_stmt_error(v1);
v5 = 163;
goto LABEL_5;
}
mysql_stmt_store_result(v1);
mysql_stmt_free_result(v1);
v7 = mysql_query(a1, "DROP TABLE IF EXISTS t1");
if ( !v7 )
{
mysql_stmt_close(v1);
return 0LL;
}
v8 = v7;
v9 = mysql_error(a1);
v10 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v8,
v9,
v10,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/features-10_2.c",
168);
return 1LL;
}
|
conc_212:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x00121598
MOV R14,RAX
LEA RSI,[0x13572a]
MOV RDI,RAX
MOV RDX,-0x1
CALL 0x00122f18
TEST EAX,EAX
JZ 0x00114cdd
MOV RDI,R14
CALL 0x00121038
LEA RDI,[0x135008]
LEA RDX,[0x13569d]
MOV RSI,RAX
MOV ECX,0x9e
JMP 0x00114d25
LAB_00114cdd:
MOV RDI,R14
CALL 0x00121c06
MOV RDI,R14
CALL 0x001212e8
LEA RSI,[0x13572a]
MOV RDI,R14
MOV RDX,-0x1
CALL 0x00122f18
TEST EAX,EAX
JZ 0x00114d3c
MOV RDI,R14
CALL 0x00121038
LEA RDI,[0x135008]
LEA RDX,[0x13569d]
MOV RSI,RAX
MOV ECX,0xa3
LAB_00114d25:
XOR EAX,EAX
CALL 0x001157cf
LAB_00114d2c:
MOV EAX,0x1
LAB_00114d31:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00114d3c:
MOV RDI,R14
CALL 0x00121c06
MOV RDI,R14
CALL 0x001212e8
LEA RSI,[0x135736]
MOV RDI,RBX
CALL 0x0011aed9
TEST EAX,EAX
JZ 0x00114d9a
MOV R15D,EAX
MOV RDI,RBX
CALL 0x0011cf52
MOV R14,RAX
MOV RDI,RBX
CALL 0x0011cf3d
LEA RDI,[0x13514d]
LEA R8,[0x13569d]
MOV ESI,R15D
MOV RDX,R14
MOV ECX,EAX
MOV R9D,0xa8
XOR EAX,EAX
CALL 0x001157cf
JMP 0x00114d2c
LAB_00114d9a:
MOV RDI,R14
CALL 0x00120fa9
XOR EAX,EAX
JMP 0x00114d31
|
int8 conc_212(int8 param_1)
{
int iVar1;
int4 uVar2;
int8 uVar3;
int8 uVar4;
uVar3 = mysql_stmt_init();
iVar1 = mariadb_stmt_execute_direct(uVar3,"SELECT 1, 2",0xffffffffffffffff);
if (iVar1 == 0) {
mysql_stmt_store_result(uVar3);
mysql_stmt_free_result(uVar3);
iVar1 = mariadb_stmt_execute_direct(uVar3,"SELECT 1, 2",0xffffffffffffffff);
if (iVar1 == 0) {
mysql_stmt_store_result(uVar3);
mysql_stmt_free_result(uVar3);
iVar1 = mysql_query(param_1,"DROP TABLE IF EXISTS t1");
if (iVar1 != 0) {
uVar3 = mysql_error(param_1);
uVar2 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/features-10_2.c"
,0xa8);
return 1;
}
mysql_stmt_close(uVar3);
return 0;
}
uVar3 = mysql_stmt_error(uVar3);
uVar4 = 0xa3;
}
else {
uVar3 = mysql_stmt_error(uVar3);
uVar4 = 0x9e;
}
diag("Error: %s (%s: %d)",uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/features-10_2.c",
uVar4);
return 1;
}
|
|
62,331 |
POINTonE1_Deserialize_Z
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e1.c
|
static BLST_ERROR POINTonE1_Deserialize_Z(POINTonE1_affine *out,
const unsigned char in[96])
{
unsigned char in0 = in[0];
if ((in0 & 0xe0) == 0)
return POINTonE1_Deserialize_BE(out, in);
if (in0 & 0x80) /* compressed bit */
return POINTonE1_Uncompress_Z(out, in);
if (in0 & 0x40) { /* infinity bit */
if (byte_is_zero(in0 & 0x3f) & bytes_are_zero(in+1, 95)) {
vec_zero(out, sizeof(*out));
return BLST_SUCCESS;
}
}
return BLST_BAD_ENCODING;
}
|
O0
|
c
|
POINTonE1_Deserialize_Z:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movzbl -0x19(%rbp), %eax
andl $0xe0, %eax
cmpl $0x0, %eax
jne 0xa944c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xb84e0
movl %eax, -0x4(%rbp)
jmp 0xa94cd
movzbl -0x19(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xa946c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa92c0
movl %eax, -0x4(%rbp)
jmp 0xa94cd
movzbl -0x19(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xa94c6
movzbl -0x19(%rbp), %eax
andl $0x3f, %eax
movzbl %al, %edi
callq 0xb8370
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x1, %rdi
movl $0x5f, %esi
callq 0xb5b50
movq %rax, %rcx
movq -0x28(%rbp), %rax
andq %rcx, %rax
cmpq $0x0, %rax
je 0xa94c4
movq -0x10(%rbp), %rdi
movl $0x60, %esi
callq 0xa87c0
movl $0x0, -0x4(%rbp)
jmp 0xa94cd
jmp 0xa94c6
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
POINTonE1_Deserialize_Z:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_19], al
movzx eax, [rbp+var_19]
and eax, 0E0h
cmp eax, 0
jnz short loc_A944C
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call POINTonE1_Deserialize_BE
mov [rbp+var_4], eax
jmp loc_A94CD
loc_A944C:
movzx eax, [rbp+var_19]
and eax, 80h
cmp eax, 0
jz short loc_A946C
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call POINTonE1_Uncompress_Z
mov [rbp+var_4], eax
jmp short loc_A94CD
loc_A946C:
movzx eax, [rbp+var_19]
and eax, 40h
cmp eax, 0
jz short loc_A94C6
movzx eax, [rbp+var_19]
and eax, 3Fh
movzx edi, al
call _byte_is_zero
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
add rdi, 1
mov esi, 5Fh ; '_'
call bytes_are_zero
mov rcx, rax
mov rax, [rbp+var_28]
and rax, rcx
cmp rax, 0
jz short loc_A94C4
mov rdi, [rbp+var_10]
mov esi, 60h ; '`'
call vec_zero
mov [rbp+var_4], 0
jmp short loc_A94CD
loc_A94C4:
jmp short $+2
loc_A94C6:
mov [rbp+var_4], 1
loc_A94CD:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long POINTonE1_Deserialize_Z(long long a1, char *a2)
{
long long is_zero; // [rsp+8h] [rbp-28h]
char v4; // [rsp+17h] [rbp-19h]
v4 = *a2;
if ( (*a2 & 0xE0) != 0 )
{
if ( v4 < 0 )
{
return (unsigned int)POINTonE1_Uncompress_Z(a1, a2);
}
else if ( (v4 & 0x40) != 0 && (is_zero = byte_is_zero(v4 & 0x3F), (bytes_are_zero(a2 + 1, 95LL) & is_zero) != 0) )
{
vec_zero(a1, 0x60uLL);
return 0;
}
else
{
return 1;
}
}
else
{
return (unsigned int)POINTonE1_Deserialize_BE(a1, a2);
}
}
|
POINTonE1_Deserialize_Z:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0xe0
CMP EAX,0x0
JNZ 0x001a944c
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001b84e0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001a94cd
LAB_001a944c:
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001a946c
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001a92c0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001a94cd
LAB_001a946c:
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001a94c6
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0x3f
MOVZX EDI,AL
CALL 0x001b8370
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x1
MOV ESI,0x5f
CALL 0x001b5b50
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,RCX
CMP RAX,0x0
JZ 0x001a94c4
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x60
CALL 0x001a87c0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001a94cd
LAB_001a94c4:
JMP 0x001a94c6
LAB_001a94c6:
MOV dword ptr [RBP + -0x4],0x1
LAB_001a94cd:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 POINTonE1_Deserialize_Z(int8 param_1,byte *param_2)
{
byte bVar1;
ulong uVar2;
ulong uVar3;
int4 local_c;
bVar1 = *param_2;
if ((bVar1 & 0xe0) == 0) {
local_c = POINTonE1_Deserialize_BE(param_1,param_2);
}
else if ((bVar1 & 0x80) == 0) {
if ((bVar1 & 0x40) != 0) {
uVar2 = byte_is_zero(bVar1 & 0x3f);
uVar3 = bytes_are_zero(param_2 + 1,0x5f);
if ((uVar2 & uVar3) != 0) {
vec_zero(param_1,0x60);
return 0;
}
}
local_c = 1;
}
else {
local_c = POINTonE1_Uncompress_Z(param_1,param_2);
}
return local_c;
}
|
|
62,332 |
testing::internal::GoogleTestFailureException::GoogleTestFailureException(testing::TestPartResult const&)
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
|
GoogleTestFailureException::GoogleTestFailureException(
const TestPartResult& failure)
: ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {}
|
O1
|
cpp
|
testing::internal::GoogleTestFailureException::GoogleTestFailureException(testing::TestPartResult const&):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x209f1
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x8a40
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x209b9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x37f38(%rip), %rax # 0x588f8
movq %rax, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x209e9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing8internal26GoogleTestFailureExceptionC2ERKNS_14TestPartResultE:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
mov rdi, r14
call _ZN7testing8internalL27PrintTestPartResultToStringB5cxx11ERKNS_14TestPartResultE; testing::internal::PrintTestPartResultToString(testing::TestPartResult const&)
mov rsi, [r14]; char *
mov rdi, rbx; this
call __ZNSt13runtime_errorC2EPKc; std::runtime_error::runtime_error(char const*)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_209B9
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_209B9:
lea rax, off_588F8
mov [rbx], rax
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_209E9
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_209E9:
mov rdi, rbx
call __Unwind_Resume
|
void (** testing::internal::GoogleTestFailureException::GoogleTestFailureException(
testing::internal::GoogleTestFailureException *this,
const testing::TestPartResult *a2))(std::runtime_error *__hidden this)
{
void (**result)(std::runtime_error *__hidden); // rax
char *v3; // [rsp+8h] [rbp-30h] BYREF
long long v4; // [rsp+18h] [rbp-20h] BYREF
testing::internal::PrintTestPartResultToString[abi:cxx11](&v3, a2);
std::runtime_error::runtime_error(this, v3);
if ( v3 != (char *)&v4 )
operator delete(v3, v4 + 1);
result = off_588F8;
*(_QWORD *)this = off_588F8;
return result;
}
|
GoogleTestFailureException:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001209f1
MOV RSI,qword ptr [R14]
LAB_00120996:
MOV RDI,RBX
CALL 0x00108a40
LAB_0012099e:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001209b9
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_001209b9:
LEA RAX,[0x1588f8]
MOV qword ptr [RBX],RAX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* testing::internal::GoogleTestFailureException::GoogleTestFailureException(testing::TestPartResult
const&) */
void __thiscall
testing::internal::GoogleTestFailureException::GoogleTestFailureException
(GoogleTestFailureException *this,TestPartResult *param_1)
{
long *local_30 [2];
long local_20 [2];
PrintTestPartResultToString_abi_cxx11_((internal *)local_30,param_1);
/* try { // try from 00120996 to 0012099d has its CatchHandler @ 001209cb */
std::runtime_error::runtime_error((runtime_error *)this,(char *)local_30[0]);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
*(int ***)this = &PTR__runtime_error_001588f8;
return;
}
|
|
62,333 |
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json.hpp
|
T & operator[](KeyType && key)
{
return emplace(std::forward<KeyType>(key), T{}).first->second;
}
|
O1
|
cpp
|
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x40(%rsp), %r14
movq $0x0, 0x8(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%r14)
movaps %xmm0, -0x30(%r14)
movaps %xmm0, -0x20(%r14)
movaps %xmm0, -0x10(%r14)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x58ac0
movq %r14, %rdi
movl $0x1, %esi
callq 0x58ac0
movq %rsp, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8e298
movq %rax, %rbx
movq %r14, %rdi
xorl %esi, %esi
callq 0x58ac0
movq %r14, %rdi
callq 0x5e2ac
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8d8cf
callq 0x6dc18
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x8d8de
callq 0x6dc18
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8d8ed
callq 0x6dc18
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8d923
movq 0xa168a(%rip), %rax # 0x12ef88
cmpb $0x0, (%rax)
je 0x8d90e
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x8d918
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x8d923
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x10, %rbx
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x87254
movq %rbx, %rdi
callq 0x1bfd0
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_:
push r15
push r14
push rbx
sub rsp, 50h
mov rbx, rsi
mov r15, rdi
lea r14, [rsp+68h+var_28]
mov qword ptr [r14+8], 0
xorps xmm0, xmm0
movaps xmmword ptr [r14-40h], xmm0
movaps xmmword ptr [r14-30h], xmm0
movaps xmmword ptr [r14-20h], xmm0
movaps xmmword ptr [r14-10h], xmm0
mov byte ptr [r14], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdx, rsp
mov rdi, r15
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_
mov rbx, rax
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_8D8CF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8D8CF:
mov rdi, [rsp+68h+var_40]
test rdi, rdi
jz short loc_8D8DE
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8D8DE:
mov rdi, [rsp+68h+var_50]
test rdi, rdi
jz short loc_8D8ED
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8D8ED:
mov rdi, [rsp+68h+var_60]
test rdi, rdi
jz short loc_8D923
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8D90E
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_8D918
loc_8D90E:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_8D918:
cmp eax, 1
jnz short loc_8D923
mov rax, [rdi]
call qword ptr [rax+18h]
loc_8D923:
add rbx, 10h
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_(
long long a1,
long long a2)
{
long long v2; // rbx
long long v3; // rdi
signed __int32 v4; // eax
__int128 v6; // [rsp+0h] [rbp-68h] BYREF
__int128 v7; // [rsp+10h] [rbp-58h]
__int128 v8; // [rsp+20h] [rbp-48h]
__int128 v9; // [rsp+30h] [rbp-38h]
char v10[8]; // [rsp+40h] [rbp-28h] BYREF
long long v11; // [rsp+48h] [rbp-20h]
v11 = 0LL;
v6 = 0LL;
v7 = 0LL;
v8 = 0LL;
v9 = 0LL;
v10[0] = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_(
a1,
a2,
&v6);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10);
if ( *((_QWORD *)&v9 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v9 + 1));
if ( *((_QWORD *)&v8 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v8 + 1));
if ( *((_QWORD *)&v7 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v7 + 1));
v3 = *((_QWORD *)&v6 + 1);
if ( *((_QWORD *)&v6 + 1) )
{
if ( _libc_single_threaded )
{
v4 = *(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL) = v4 - 1;
}
else
{
v4 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v6 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v4 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v3 + 24LL))(v3, 0LL);
}
return v2 + 16;
}
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RSI
MOV R15,RDI
LEA R14,[RSP + 0x40]
MOV qword ptr [R14 + 0x8],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R14 + -0x40],XMM0
MOVAPS xmmword ptr [R14 + -0x30],XMM0
MOVAPS xmmword ptr [R14 + -0x20],XMM0
MOVAPS xmmword ptr [R14 + -0x10],XMM0
MOV byte ptr [R14],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158ac0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158ac0
LAB_0018d89d:
MOV RDX,RSP
MOV RDI,R15
MOV RSI,RBX
CALL 0x0018e298
LAB_0018d8ab:
MOV RBX,RAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158ac0
MOV RDI,R14
CALL 0x0015e2ac
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0018d8cf
CALL 0x0016dc18
LAB_0018d8cf:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0018d8de
CALL 0x0016dc18
LAB_0018d8de:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0018d8ed
CALL 0x0016dc18
LAB_0018d8ed:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0018d923
MOV RAX,qword ptr [0x0022ef88]
CMP byte ptr [RAX],0x0
JZ 0x0018d90e
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0018d918
LAB_0018d90e:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0018d918:
CMP EAX,0x1
JNZ 0x0018d923
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0018d923:
ADD RBX,0x10
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
long _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_
(int8 param_1,int8 param_2)
{
int *piVar1;
int iVar2;
long lVar3;
bool bVar4;
int8 local_68;
long *plStack_60;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_50;
int8 local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_40;
int8 local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_30;
data local_28 [8];
int8 local_20;
local_20 = 0;
local_68 = 0;
plStack_60 = (long *)0x0;
local_58 = 0;
p_Stack_50 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_48 = 0;
p_Stack_40 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_38 = 0;
p_Stack_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_28[0] = (data)0x0;
bVar4 = SUB81(local_28,0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
/* try { // try from 0018d89d to 0018d8aa has its CatchHandler @ 0018d934 */
lVar3 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_
(param_1,param_2,&local_68);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_28);
if (p_Stack_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_30);
}
if (p_Stack_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_40);
}
if (p_Stack_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_50);
}
if (plStack_60 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022ef88 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_60 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)plStack_60 + 0xc);
*(int *)((long)plStack_60 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*plStack_60 + 0x18))();
}
}
return lVar3 + 0x10;
}
|
|
62,334 |
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json.hpp
|
T & operator[](KeyType && key)
{
return emplace(std::forward<KeyType>(key), T{}).first->second;
}
|
O3
|
cpp
|
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x40(%rsp), %r14
movq $0x0, 0x8(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%r14)
movaps %xmm0, -0x30(%r14)
movaps %xmm0, -0x20(%r14)
movaps %xmm0, -0x10(%r14)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x58484
movq %r14, %rdi
movl $0x1, %esi
callq 0x58484
movq %rsp, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8cc36
movq %rax, %rbx
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movq %r14, %rdi
callq 0x5d972
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8c31b
callq 0x6d396
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x8c32a
callq 0x6d396
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8c339
callq 0x6d396
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8c36f
movq 0x9fc3e(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x8c35a
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x8c364
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x8c36f
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x10, %rbx
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x85d32
movq %rbx, %rdi
callq 0x1afd0
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_:
push r15
push r14
push rbx
sub rsp, 50h
mov rbx, rsi
mov r15, rdi
lea r14, [rsp+68h+var_28]
mov qword ptr [r14+8], 0
xorps xmm0, xmm0
movaps xmmword ptr [r14-40h], xmm0
movaps xmmword ptr [r14-30h], xmm0
movaps xmmword ptr [r14-20h], xmm0
movaps xmmword ptr [r14-10h], xmm0
mov byte ptr [r14], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdx, rsp
mov rdi, r15
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_
mov rbx, rax
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_8C31B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8C31B:
mov rdi, [rsp+68h+var_40]
test rdi, rdi
jz short loc_8C32A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8C32A:
mov rdi, [rsp+68h+var_50]
test rdi, rdi
jz short loc_8C339
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8C339:
mov rdi, [rsp+68h+var_60]
test rdi, rdi
jz short loc_8C36F
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8C35A
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_8C364
loc_8C35A:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_8C364:
cmp eax, 1
jnz short loc_8C36F
mov rax, [rdi]
call qword ptr [rax+18h]
loc_8C36F:
add rbx, 10h
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_(
long long a1,
long long a2)
{
long long v2; // rbx
long long v3; // rdi
signed __int32 v4; // eax
__int128 v6; // [rsp+0h] [rbp-68h] BYREF
__int128 v7; // [rsp+10h] [rbp-58h]
__int128 v8; // [rsp+20h] [rbp-48h]
__int128 v9; // [rsp+30h] [rbp-38h]
char v10[8]; // [rsp+40h] [rbp-28h] BYREF
long long v11; // [rsp+48h] [rbp-20h]
v11 = 0LL;
v6 = 0LL;
v7 = 0LL;
v8 = 0LL;
v9 = 0LL;
v10[0] = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_(
a1,
a2,
&v6);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10);
if ( *((_QWORD *)&v9 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v9 + 1));
if ( *((_QWORD *)&v8 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v8 + 1));
if ( *((_QWORD *)&v7 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v7 + 1));
v3 = *((_QWORD *)&v6 + 1);
if ( *((_QWORD *)&v6 + 1) )
{
if ( _libc_single_threaded )
{
v4 = *(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL) = v4 - 1;
}
else
{
v4 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v6 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v4 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v3 + 24LL))(v3, 0LL);
}
return v2 + 16;
}
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RSI
MOV R15,RDI
LEA R14,[RSP + 0x40]
MOV qword ptr [R14 + 0x8],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R14 + -0x40],XMM0
MOVAPS xmmword ptr [R14 + -0x30],XMM0
MOVAPS xmmword ptr [R14 + -0x20],XMM0
MOVAPS xmmword ptr [R14 + -0x10],XMM0
MOV byte ptr [R14],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158484
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158484
LAB_0018c2e9:
MOV RDX,RSP
MOV RDI,R15
MOV RSI,RBX
CALL 0x0018cc36
LAB_0018c2f7:
MOV RBX,RAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158484
MOV RDI,R14
CALL 0x0015d972
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0018c31b
CALL 0x0016d396
LAB_0018c31b:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0018c32a
CALL 0x0016d396
LAB_0018c32a:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0018c339
CALL 0x0016d396
LAB_0018c339:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0018c36f
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0018c35a
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0018c364
LAB_0018c35a:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0018c364:
CMP EAX,0x1
JNZ 0x0018c36f
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0018c36f:
ADD RBX,0x10
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
long _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_
(int8 param_1,int8 param_2)
{
int *piVar1;
int iVar2;
long lVar3;
bool bVar4;
int8 local_68;
long *plStack_60;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_50;
int8 local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_40;
int8 local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_30;
data local_28 [8];
int8 local_20;
local_20 = 0;
local_68 = 0;
plStack_60 = (long *)0x0;
local_58 = 0;
p_Stack_50 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_48 = 0;
p_Stack_40 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_38 = 0;
p_Stack_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_28[0] = (data)0x0;
bVar4 = SUB81(local_28,0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
/* try { // try from 0018c2e9 to 0018c2f6 has its CatchHandler @ 0018c380 */
lVar3 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_
(param_1,param_2,&local_68);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_28);
if (p_Stack_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_30);
}
if (p_Stack_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_40);
}
if (p_Stack_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_50);
}
if (plStack_60 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_60 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)plStack_60 + 0xc);
*(int *)((long)plStack_60 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*plStack_60 + 0x18))();
}
}
return lVar3 + 0x10;
}
|
|
62,335 |
stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int)
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// need to generate two samples vertically for every one in input
int i;
STBI_NOTUSED(hs);
for (i=0; i < w; ++i)
out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2);
return out;
}
|
O2
|
c
|
stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int):
movq %rdi, %rax
xorl %edi, %edi
testl %ecx, %ecx
cmovlel %edi, %ecx
cmpq %rdi, %rcx
je 0x41625
movzbl (%rsi,%rdi), %r8d
leal (%r8,%r8,2), %r8d
movzbl (%rdx,%rdi), %r9d
addl %r9d, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, (%rax,%rdi)
incq %rdi
jmp 0x415fe
retq
|
_ZL22stbi__resample_row_v_2PhS_S_ii:
mov rax, rdi
xor edi, edi
test ecx, ecx
cmovle ecx, edi
loc_415FE:
cmp rcx, rdi
jz short locret_41625
movzx r8d, byte ptr [rsi+rdi]
lea r8d, [r8+r8*2]
movzx r9d, byte ptr [rdx+rdi]
add r8d, r9d
add r8d, 2
shr r8d, 2
mov [rax+rdi], r8b
inc rdi
jmp short loc_415FE
locret_41625:
retn
|
unsigned __int8 * stbi__resample_row_v_2(
unsigned __int8 *a1,
unsigned __int8 *a2,
unsigned __int8 *a3,
long long a4)
{
unsigned __int8 *result; // rax
long long v5; // rdi
result = a1;
v5 = 0LL;
if ( (int)a4 <= 0 )
a4 = 0LL;
while ( a4 != v5 )
{
result[v5] = (a3[v5] + 3 * (unsigned int)a2[v5] + 2) >> 2;
++v5;
}
return result;
}
|
stbi__resample_row_v_2:
MOV RAX,RDI
XOR EDI,EDI
TEST ECX,ECX
CMOVLE ECX,EDI
LAB_001415fe:
CMP RCX,RDI
JZ 0x00141625
MOVZX R8D,byte ptr [RSI + RDI*0x1]
LEA R8D,[R8 + R8*0x2]
MOVZX R9D,byte ptr [RDX + RDI*0x1]
ADD R8D,R9D
ADD R8D,0x2
SHR R8D,0x2
MOV byte ptr [RAX + RDI*0x1],R8B
INC RDI
JMP 0x001415fe
LAB_00141625:
RET
|
/* stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int) */
void stbi__resample_row_v_2(uchar *param_1,uchar *param_2,uchar *param_3,int param_4,int param_5)
{
ulong uVar1;
ulong uVar2;
uVar2 = 0;
uVar1 = (ulong)(uint)param_4;
if (param_4 < 1) {
uVar1 = uVar2;
}
for (; uVar1 != uVar2; uVar2 = uVar2 + 1) {
param_1[uVar2] =
(uchar)((uint)param_2[uVar2] + (uint)param_2[uVar2] * 2 + (uint)param_3[uVar2] + 2 >> 2);
}
return;
}
|
|
62,336 |
mysql_real_query_cont
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
int STDCALL
mysql_real_query_cont(int *ret, MYSQL *mysql, int ready_status)
{
MK_ASYNC_CONT_BODY(
mysql,
1,
r_int)
}
|
O3
|
c
|
mysql_real_query_cont:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x480(%rsi), %rax
movq 0x28(%rax), %r15
cmpb $0x0, 0x15(%r15)
je 0x28e8e
movb $0x1, 0x14(%r15)
movl %edx, 0x4(%r15)
leaq 0x38(%r15), %rdi
callq 0x2d8b3
movb $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x28ee9
movl (%r15), %r15d
jmp 0x28f53
movl $0x7de, 0x90(%r14) # imm = 0x7DE
leaq 0x297(%r14), %rdi
leaq 0x1fbb9(%rip), %rax # 0x48a60
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x29c(%r14)
leaq 0x97(%r14), %rdi
leaq 0x1fba4(%rip), %rax # 0x48a70
movq 0x70(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movb %r15b, 0x296(%r14)
movl $0x1, (%rbx)
jmp 0x28f53
movb $0x0, 0x15(%r15)
js 0x28ef6
movl 0x8(%r15), %eax
jmp 0x28f4e
movl $0x7d8, 0x90(%r14) # imm = 0x7D8
leaq 0x297(%r14), %rdi
leaq 0x1fb51(%rip), %rax # 0x48a60
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x29c(%r14)
leaq 0x97(%r14), %rdi
leaq 0x1fb3c(%rip), %rax # 0x48a70
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movb %r15b, 0x296(%r14)
movl $0x1, %eax
movl %eax, (%rbx)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
mysql_real_query_cont:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+480h]
mov r15, [rax+28h]
cmp byte ptr [r15+15h], 0
jz short loc_28E8E
mov byte ptr [r15+14h], 1
mov [r15+4], edx
lea rdi, [r15+38h]
call my_context_continue
mov byte ptr [r15+14h], 0
test eax, eax
jle short loc_28EE9
mov r15d, [r15]
jmp loc_28F53
loc_28E8E:
mov dword ptr [r14+90h], 7DEh
lea rdi, [r14+297h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [r14+29Ch], r15b
lea rdi, [r14+97h]
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 1FFh
call _strncpy
mov [r14+296h], r15b
mov dword ptr [rbx], 1
jmp short loc_28F53
loc_28EE9:
mov byte ptr [r15+15h], 0
js short loc_28EF6
mov eax, [r15+8]
jmp short loc_28F4E
loc_28EF6:
mov dword ptr [r14+90h], 7D8h
lea rdi, [r14+297h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [r14+29Ch], r15b
lea rdi, [r14+97h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov [r14+296h], r15b
mov eax, 1
loc_28F4E:
mov [rbx], eax
xor r15d, r15d
loc_28F53:
mov eax, r15d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long mysql_real_query_cont(int *a1, long long a2, unsigned int a3)
{
unsigned int *v3; // r15
int v4; // eax
unsigned int v5; // r15d
int v6; // eax
v3 = *(unsigned int **)(*(_QWORD *)(a2 + 1152) + 40LL);
if ( *((_BYTE *)v3 + 21) )
{
*((_BYTE *)v3 + 20) = 1;
v3[1] = a3;
v4 = my_context_continue(v3 + 14);
*((_BYTE *)v3 + 20) = 0;
if ( v4 <= 0 )
{
*((_BYTE *)v3 + 21) = 0;
if ( v4 < 0 )
{
*(_DWORD *)(a2 + 144) = 2008;
strncpy(a2 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a2 + 668) = 0;
strncpy(a2 + 151, client_errors[8], 511LL);
*(_BYTE *)(a2 + 662) = 0;
v6 = 1;
}
else
{
v6 = v3[2];
}
*a1 = v6;
return 0;
}
else
{
return *v3;
}
}
else
{
*(_DWORD *)(a2 + 144) = 2014;
strncpy(a2 + 663, SQLSTATE_UNKNOWN, 5LL);
v5 = 0;
*(_BYTE *)(a2 + 668) = 0;
strncpy(a2 + 151, client_errors[14], 511LL);
*(_BYTE *)(a2 + 662) = 0;
*a1 = 1;
}
return v5;
}
|
mysql_real_query_cont:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x480]
MOV R15,qword ptr [RAX + 0x28]
CMP byte ptr [R15 + 0x15],0x0
JZ 0x00128e8e
MOV byte ptr [R15 + 0x14],0x1
MOV dword ptr [R15 + 0x4],EDX
LEA RDI,[R15 + 0x38]
CALL 0x0012d8b3
MOV byte ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x00128ee9
MOV R15D,dword ptr [R15]
JMP 0x00128f53
LAB_00128e8e:
MOV dword ptr [R14 + 0x90],0x7de
LEA RDI,[R14 + 0x297]
LEA RAX,[0x148a60]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [R14 + 0x29c],R15B
LEA RDI,[R14 + 0x97]
LEA RAX,[0x148a70]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x1ff
CALL 0x00113220
MOV byte ptr [R14 + 0x296],R15B
MOV dword ptr [RBX],0x1
JMP 0x00128f53
LAB_00128ee9:
MOV byte ptr [R15 + 0x15],0x0
JS 0x00128ef6
MOV EAX,dword ptr [R15 + 0x8]
JMP 0x00128f4e
LAB_00128ef6:
MOV dword ptr [R14 + 0x90],0x7d8
LEA RDI,[R14 + 0x297]
LEA RAX,[0x148a60]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [R14 + 0x29c],R15B
LEA RDI,[R14 + 0x97]
LEA RAX,[0x148a70]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV byte ptr [R14 + 0x296],R15B
MOV EAX,0x1
LAB_00128f4e:
MOV dword ptr [RBX],EAX
XOR R15D,R15D
LAB_00128f53:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_real_query_cont(int4 *param_1,long param_2,int4 param_3)
{
int4 *puVar1;
int iVar2;
int4 uVar3;
puVar1 = *(int4 **)(*(long *)(param_2 + 0x480) + 0x28);
if (*(char *)((long)puVar1 + 0x15) == '\0') {
*(int4 *)(param_2 + 0x90) = 0x7de;
strncpy((char *)(param_2 + 0x297),SQLSTATE_UNKNOWN,5);
uVar3 = 0;
*(int1 *)(param_2 + 0x29c) = 0;
strncpy((char *)(param_2 + 0x97),PTR_s_Commands_out_of_sync__you_can_t_r_00148ae0,0x1ff);
*(int1 *)(param_2 + 0x296) = 0;
*param_1 = 1;
}
else {
*(int1 *)(puVar1 + 5) = 1;
puVar1[1] = param_3;
iVar2 = my_context_continue(puVar1 + 0xe);
*(int1 *)(puVar1 + 5) = 0;
if (iVar2 < 1) {
*(int1 *)((long)puVar1 + 0x15) = 0;
if (iVar2 < 0) {
*(int4 *)(param_2 + 0x90) = 0x7d8;
strncpy((char *)(param_2 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_2 + 0x29c) = 0;
strncpy((char *)(param_2 + 0x97),PTR_s_Client_run_out_of_memory_00148ab0,0x1ff);
*(int1 *)(param_2 + 0x296) = 0;
uVar3 = 1;
}
else {
uVar3 = puVar1[2];
}
*param_1 = uVar3;
uVar3 = 0;
}
else {
uVar3 = *puVar1;
}
}
return uVar3;
}
|
|
62,337 |
my_atoll
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
static long long my_atoll(const char *str, const char *end_str, int *error)
{
const char *p=str;
const char *end;
long long ret;
while (p < end_str && isspace(*p))
p++;
ret = my_strtoll(p, end_str - p, &end, error);
while(end < end_str && isspace(*end))
end++;
if(end != end_str)
*error= 1;
return ret;
}
|
O0
|
c
|
my_atoll:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x31(%rbp)
jae 0x2d86f
callq 0x12450
movq (%rax), %rax
movq -0x20(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x2d878
jmp 0x2d886
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x2d83c
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
subq %rax, %rsi
movq -0x18(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x2da00
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x32(%rbp)
jae 0x2d8d9
callq 0x12450
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x32(%rbp)
movb -0x32(%rbp), %al
testb $0x1, %al
jne 0x2d8e2
jmp 0x2d8f0
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x2d8a6
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
je 0x2d904
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq -0x30(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop
|
my_atoll:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
loc_2D83C:
mov rcx, [rbp+var_20]
xor eax, eax
cmp rcx, [rbp+var_10]
mov [rbp+var_31], al
jnb short loc_2D86F
call ___ctype_b_loc
mov rax, [rax]
mov rcx, [rbp+var_20]
movsx ecx, byte ptr [rcx]
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2]
and eax, 2000h
cmp eax, 0
setnz al
mov [rbp+var_31], al
loc_2D86F:
mov al, [rbp+var_31]
test al, 1
jnz short loc_2D878
jmp short loc_2D886
loc_2D878:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_2D83C
loc_2D886:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_20]
sub rsi, rax
mov rcx, [rbp+var_18]
lea rdx, [rbp+var_28]
call my_strtoll
mov [rbp+var_30], rax
loc_2D8A6:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_10]
mov [rbp+var_32], al
jnb short loc_2D8D9
call ___ctype_b_loc
mov rax, [rax]
mov rcx, [rbp+var_28]
movsx ecx, byte ptr [rcx]
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2]
and eax, 2000h
cmp eax, 0
setnz al
mov [rbp+var_32], al
loc_2D8D9:
mov al, [rbp+var_32]
test al, 1
jnz short loc_2D8E2
jmp short loc_2D8F0
loc_2D8E2:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_2D8A6
loc_2D8F0:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jz short loc_2D904
mov rax, [rbp+var_18]
mov dword ptr [rax], 1
loc_2D904:
mov rax, [rbp+var_30]
add rsp, 40h
pop rbp
retn
|
long long my_atoll(char *a1, char *a2, _DWORD *a3)
{
bool v4; // [rsp+Eh] [rbp-32h]
bool v5; // [rsp+Fh] [rbp-31h]
long long v6; // [rsp+10h] [rbp-30h]
char *v7; // [rsp+18h] [rbp-28h] BYREF
char *i; // [rsp+20h] [rbp-20h]
_DWORD *v9; // [rsp+28h] [rbp-18h]
char *v10; // [rsp+30h] [rbp-10h]
char *v11; // [rsp+38h] [rbp-8h]
v11 = a1;
v10 = a2;
v9 = a3;
for ( i = a1; ; ++i )
{
v5 = 0;
if ( i < v10 )
v5 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * *i) & 0x2000) != 0;
if ( !v5 )
break;
}
v6 = my_strtoll(i, v10 - i, &v7, v9);
while ( 1 )
{
v4 = 0;
if ( v7 < v10 )
v4 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * *v7) & 0x2000) != 0;
if ( !v4 )
break;
++v7;
}
if ( v7 != v10 )
*v9 = 1;
return v6;
}
|
my_atoll:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
LAB_0012d83c:
MOV RCX,qword ptr [RBP + -0x20]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x10]
MOV byte ptr [RBP + -0x31],AL
JNC 0x0012d86f
CALL 0x00112450
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x20]
MOVSX ECX,byte ptr [RCX]
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2]
AND EAX,0x2000
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x31],AL
LAB_0012d86f:
MOV AL,byte ptr [RBP + -0x31]
TEST AL,0x1
JNZ 0x0012d878
JMP 0x0012d886
LAB_0012d878:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0012d83c
LAB_0012d886:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x18]
LEA RDX,[RBP + -0x28]
CALL 0x0012da00
MOV qword ptr [RBP + -0x30],RAX
LAB_0012d8a6:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x10]
MOV byte ptr [RBP + -0x32],AL
JNC 0x0012d8d9
CALL 0x00112450
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RCX]
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2]
AND EAX,0x2000
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x32],AL
LAB_0012d8d9:
MOV AL,byte ptr [RBP + -0x32]
TEST AL,0x1
JNZ 0x0012d8e2
JMP 0x0012d8f0
LAB_0012d8e2:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0012d8a6
LAB_0012d8f0:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JZ 0x0012d904
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x1
LAB_0012d904:
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x40
POP RBP
RET
|
int8 my_atoll(char *param_1,char *param_2,int4 *param_3)
{
ushort **ppuVar1;
int8 uVar2;
bool bVar3;
char *local_30;
char *local_28;
int4 *local_20;
char *local_18;
char *local_10;
local_28 = param_1;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar3 = false;
if (local_28 < local_18) {
ppuVar1 = __ctype_b_loc();
bVar3 = ((*ppuVar1)[(int)*local_28] & 0x2000) != 0;
}
if (!bVar3) break;
local_28 = local_28 + 1;
}
uVar2 = my_strtoll(local_28,(long)local_18 - (long)local_28,&local_30,local_20);
while( true ) {
bVar3 = false;
if (local_30 < local_18) {
ppuVar1 = __ctype_b_loc();
bVar3 = ((*ppuVar1)[(int)*local_30] & 0x2000) != 0;
}
if (!bVar3) break;
local_30 = local_30 + 1;
}
if (local_30 != local_18) {
*local_20 = 1;
}
return uVar2;
}
|
|
62,338 |
nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)
|
ng-log[P]ng-log/src/logging.cc
|
LogDestination::LogDestination(LogSeverity severity, const char* base_filename)
: fileobject_(severity, base_filename), logger_(&fileobject_) {}
|
O1
|
cpp
|
nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x25f48(%rip), %rax # 0x307c0
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movq $0x0, 0x28(%rdi)
leaq 0x38(%rdi), %r14
testq %rdx, %rdx
setne 0x30(%rdi)
leaq 0x195d6(%rip), %r15 # 0x23e76
cmovneq %rdx, %r15
leaq 0x48(%rdi), %r12
movq %r12, 0x38(%rdi)
movq %r15, %rdi
callq 0x71f0
leaq (%rax,%r15), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa614
callq 0x222ff
leaq 0x58(%rbx), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0xa750
leaq 0x88(%rbx), %rax
movq %rax, 0x78(%rbx)
xorl %eax, %eax
movq %rax, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
movq %rax, 0x98(%rbx)
movl %ebp, 0xa0(%rbx)
movaps 0x18dd8(%rip), %xmm0 # 0x236e0
movups %xmm0, 0xa4(%rbx)
movq %rax, 0xb8(%rbx)
callq 0x7070
movq %rax, 0xc0(%rbx)
movq %rbx, 0xc8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa938
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xa94f
movq (%r12), %rsi
incq %rsi
callq 0x906c
movq %rbx, %rdi
callq 0x79b0
nop
|
_ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc:
push rbp; Alternative name is 'nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)'
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, esi
mov rbx, rdi
lea rax, off_307C0
mov [rdi], rax
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
movups xmmword ptr [rdi+18h], xmm0
mov qword ptr [rdi+28h], 0
lea r14, [rdi+38h]
test rdx, rdx
setnz byte ptr [rdi+30h]
lea r15, asc_23E74+2; ""
cmovnz r15, rdx
lea r12, [rdi+48h]
mov [rdi+38h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
mov rdi, r14; this
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rbx+58h]; this
lea rdx, [rsp+38h+var_29]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+88h]
mov [rbx+78h], rax
xor eax, eax
mov [rbx+80h], rax
mov byte ptr [rbx+88h], 0
mov [rbx+98h], rax
mov [rbx+0A0h], ebp
movaps xmm0, cs:xmmword_236E0
movups xmmword ptr [rbx+0A4h], xmm0
mov [rbx+0B8h], rax
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov [rbx+0C0h], rax
mov [rbx+0C8h], rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_A938:
mov rbx, rax
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_A94F
mov rsi, [r12]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_A94F:
mov rdi, rbx
call __Unwind_Resume
|
long long nglog::LogDestination::LogDestination(long long a1, int a2, char *a3)
{
nglog::tools *v3; // r14
char *v4; // r15
long long v5; // rax
_BYTE *v6; // rax
long long result; // rax
*(_QWORD *)a1 = off_307C0;
*(_OWORD *)(a1 + 8) = 0LL;
*(_OWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v3 = (nglog::tools *)(a1 + 56);
*(_BYTE *)(a1 + 48) = a3 != 0LL;
v4 = "";
if ( a3 )
v4 = a3;
*(_QWORD *)(a1 + 56) = a1 + 72;
v5 = strlen(v4);
std::string::_M_construct<char const*>(v3, v4, (long long)&v4[v5]);
v6 = (_BYTE *)nglog::tools::ProgramInvocationShortName(v3);
std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 88), v6);
*(_QWORD *)(a1 + 120) = a1 + 136;
*(_QWORD *)(a1 + 128) = 0LL;
*(_BYTE *)(a1 + 136) = 0;
*(_QWORD *)(a1 + 152) = 0LL;
*(_DWORD *)(a1 + 160) = a2;
*(_OWORD *)(a1 + 164) = xmmword_236E0;
*(_QWORD *)(a1 + 184) = 0LL;
result = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)(a1 + 88));
*(_QWORD *)(a1 + 192) = result;
*(_QWORD *)(a1 + 200) = a1;
return result;
}
|
LogDestination:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x1307c0]
MOV qword ptr [RDI],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOV qword ptr [RDI + 0x28],0x0
LEA R14,[RDI + 0x38]
TEST RDX,RDX
SETNZ byte ptr [RDI + 0x30]
LEA R15,[0x123e76]
CMOVNZ R15,RDX
LEA R12,[RDI + 0x48]
MOV qword ptr [RDI + 0x38],R12
MOV RDI,R15
CALL 0x001071f0
LEA RDX,[RAX + R15*0x1]
MOV RDI,R14
MOV RSI,R15
CALL 0x0010a614
LAB_0010a8c3:
CALL 0x001222ff
LEA RDI,[RBX + 0x58]
LAB_0010a8cc:
LEA RDX,[RSP + 0xf]
MOV RSI,RAX
CALL 0x0010a750
LAB_0010a8d9:
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x78],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x80],RAX
MOV byte ptr [RBX + 0x88],0x0
MOV qword ptr [RBX + 0x98],RAX
MOV dword ptr [RBX + 0xa0],EBP
MOVAPS XMM0,xmmword ptr [0x001236e0]
MOVUPS xmmword ptr [RBX + 0xa4],XMM0
MOV qword ptr [RBX + 0xb8],RAX
CALL 0x00107070
MOV qword ptr [RBX + 0xc0],RAX
MOV qword ptr [RBX + 0xc8],RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) */
void __thiscall
nglog::LogDestination::LogDestination(LogDestination *this,int4 param_2,char *param_3)
{
size_t sVar1;
char *pcVar2;
int8 uVar3;
allocator local_29;
*(int ***)this = &PTR__LogFileObject_001307c0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (LogDestination)(param_3 != (char *)0x0);
pcVar2 = "";
if (param_3 != (char *)0x0) {
pcVar2 = param_3;
}
*(LogDestination **)(this + 0x38) = this + 0x48;
sVar1 = strlen(pcVar2);
std::__cxx11::string::_M_construct<char_const*>(this + 0x38,pcVar2,pcVar2 + sVar1);
/* try { // try from 0010a8c3 to 0010a8c7 has its CatchHandler @ 0010a938 */
pcVar2 = (char *)tools::ProgramInvocationShortName();
/* try { // try from 0010a8cc to 0010a8d8 has its CatchHandler @ 0010a936 */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x58),pcVar2,&local_29);
*(LogDestination **)(this + 0x78) = this + 0x88;
*(int8 *)(this + 0x80) = 0;
this[0x88] = (LogDestination)0x0;
*(int8 *)(this + 0x98) = 0;
*(int4 *)(this + 0xa0) = param_2;
uVar3 = _UNK_001236e8;
*(int8 *)(this + 0xa4) = _DAT_001236e0;
*(int8 *)(this + 0xac) = uVar3;
*(int8 *)(this + 0xb8) = 0;
uVar3 = std::chrono::_V2::system_clock::now();
*(int8 *)(this + 0xc0) = uVar3;
*(LogDestination **)(this + 200) = this;
return;
}
|
|
62,339 |
nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)
|
ng-log[P]ng-log/src/logging.cc
|
LogDestination::LogDestination(LogSeverity severity, const char* base_filename)
: fileobject_(severity, base_filename), logger_(&fileobject_) {}
|
O2
|
cpp
|
nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x25500(%rip), %rax # 0x30810
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
andq $0x0, 0x28(%rdi)
testq %rdx, %rdx
setne 0x30(%rdi)
leaq 0x38(%rdi), %r14
leaq 0x15b46(%rip), %rsi # 0x20e7b
cmovneq %rdx, %rsi
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0xa210
callq 0x1e995
leaq 0x58(%rbx), %rdi
leaq 0xe(%rsp), %rdx
movq %rax, %rsi
callq 0xa210
leaq 0x88(%rbx), %rax
movq %rax, 0x78(%rbx)
andq $0x0, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
andq $0x0, 0x98(%rbx)
movl %ebp, 0xa0(%rbx)
movaps 0x15375(%rip), %xmm0 # 0x20700
movups %xmm0, 0xa4(%rbx)
andq $0x0, 0xb8(%rbx)
callq 0x8070
movq %rax, 0xc0(%rbx)
movq %rbx, 0xc8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xb3b8
movq %rax, %rbx
movq %r14, %rdi
callq 0x8b78
movq %rbx, %rdi
callq 0x8a40
nop
|
_ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc:
push rbp; Alternative name is 'nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)'
push r14
push rbx
sub rsp, 10h
mov ebp, esi
mov rbx, rdi
lea rax, off_30810
mov [rdi], rax
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
movups xmmword ptr [rdi+18h], xmm0
and qword ptr [rdi+28h], 0
test rdx, rdx
setnz byte ptr [rdi+30h]
lea r14, [rdi+38h]
lea rsi, asc_20E79+2; ""
cmovnz rsi, rdx
lea rdx, [rsp+28h+var_19]
mov rdi, r14; this
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rbx+58h]; this
lea rdx, [rsp+28h+var_1A]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+88h]
mov [rbx+78h], rax
and qword ptr [rbx+80h], 0
mov byte ptr [rbx+88h], 0
and qword ptr [rbx+98h], 0
mov [rbx+0A0h], ebp
movaps xmm0, cs:xmmword_20700
movups xmmword ptr [rbx+0A4h], xmm0
and qword ptr [rbx+0B8h], 0
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov [rbx+0C0h], rax
mov [rbx+0C8h], rbx
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
jmp short $+2
loc_B3B8:
mov rbx, rax
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
|
long long nglog::LogDestination::LogDestination(long long a1, int a2, char *a3)
{
char *v5; // rsi
nglog::tools *v6; // rdi
long long v7; // rax
long long result; // rax
*(_QWORD *)a1 = off_30810;
*(_OWORD *)(a1 + 8) = 0LL;
*(_OWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = a3 != 0LL;
v5 = "";
if ( a3 )
v5 = a3;
v6 = (nglog::tools *)(a1 + 56);
std::string::basic_string<std::allocator<char>>(v6, (long long)v5);
v7 = nglog::tools::ProgramInvocationShortName(v6);
std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 88), v7);
*(_QWORD *)(a1 + 120) = a1 + 136;
*(_QWORD *)(a1 + 128) = 0LL;
*(_BYTE *)(a1 + 136) = 0;
*(_QWORD *)(a1 + 152) = 0LL;
*(_DWORD *)(a1 + 160) = a2;
*(_OWORD *)(a1 + 164) = xmmword_20700;
*(_QWORD *)(a1 + 184) = 0LL;
result = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)(a1 + 88));
*(_QWORD *)(a1 + 192) = result;
*(_QWORD *)(a1 + 200) = a1;
return result;
}
|
LogDestination:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x130810]
MOV qword ptr [RDI],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
AND qword ptr [RDI + 0x28],0x0
TEST RDX,RDX
SETNZ byte ptr [RDI + 0x30]
LEA R14,[RDI + 0x38]
LEA RSI,[0x120e7b]
CMOVNZ RSI,RDX
LEA RDX,[RSP + 0xf]
MOV RDI,R14
CALL 0x0010a210
LAB_0010b346:
CALL 0x0011e995
LEA RDI,[RBX + 0x58]
LAB_0010b34f:
LEA RDX,[RSP + 0xe]
MOV RSI,RAX
CALL 0x0010a210
LAB_0010b35c:
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x78],RAX
AND qword ptr [RBX + 0x80],0x0
MOV byte ptr [RBX + 0x88],0x0
AND qword ptr [RBX + 0x98],0x0
MOV dword ptr [RBX + 0xa0],EBP
MOVAPS XMM0,xmmword ptr [0x00120700]
MOVUPS xmmword ptr [RBX + 0xa4],XMM0
AND qword ptr [RBX + 0xb8],0x0
CALL 0x00108070
MOV qword ptr [RBX + 0xc0],RAX
MOV qword ptr [RBX + 0xc8],RBX
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) */
void __thiscall
nglog::LogDestination::LogDestination(LogDestination *this,int4 param_2,char *param_3)
{
char *pcVar1;
int8 uVar2;
allocator local_1a;
allocator local_19;
*(int ***)this = &PTR__LogFileObject_00130810;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (LogDestination)(param_3 != (char *)0x0);
pcVar1 = "";
if (param_3 != (char *)0x0) {
pcVar1 = param_3;
}
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x38),pcVar1,&local_19);
/* try { // try from 0010b346 to 0010b34a has its CatchHandler @ 0010b3b8 */
pcVar1 = (char *)tools::ProgramInvocationShortName();
/* try { // try from 0010b34f to 0010b35b has its CatchHandler @ 0010b3b6 */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x58),pcVar1,&local_1a);
*(LogDestination **)(this + 0x78) = this + 0x88;
*(int8 *)(this + 0x80) = 0;
this[0x88] = (LogDestination)0x0;
*(int8 *)(this + 0x98) = 0;
*(int4 *)(this + 0xa0) = param_2;
uVar2 = _UNK_00120708;
*(int8 *)(this + 0xa4) = _DAT_00120700;
*(int8 *)(this + 0xac) = uVar2;
*(int8 *)(this + 0xb8) = 0;
uVar2 = std::chrono::_V2::system_clock::now();
*(int8 *)(this + 0xc0) = uVar2;
*(LogDestination **)(this + 200) = this;
return;
}
|
|
62,340 |
spdlog::details::source_linenum_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
|
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override {
if (msg.source.empty()) {
ScopedPadder p(0, padinfo_, dest);
return;
}
auto field_size = ScopedPadder::count_digits(msg.source.line);
ScopedPadder p(field_size, padinfo_, dest);
fmt_helper::append_int(msg.source.line, dest);
}
|
O0
|
c
|
spdlog::details::source_linenum_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rdi
addq $0x38, %rdi
callq 0x55310
testb $0x1, %al
jne 0x78445
jmp 0x78462
movq (%rsp), %rdx
addq $0x8, %rdx
movq 0x18(%rsp), %rcx
leaq 0x17(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x546d0
jmp 0x784a2
movq 0x28(%rsp), %rax
movl 0x40(%rax), %edi
callq 0x77450
movq (%rsp), %rdx
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movl %eax, %esi
addq $0x8, %rdx
movq 0x18(%rsp), %rcx
leaq 0xf(%rsp), %rdi
callq 0x546d0
movq 0x28(%rsp), %rax
movl 0x40(%rax), %edi
movq 0x18(%rsp), %rsi
callq 0x54fa0
addq $0x38, %rsp
retq
nopw (%rax,%rax)
|
_ZN6spdlog7details24source_linenum_formatterINS0_18null_scoped_padderEE6formatERKNS0_7log_msgERK2tmRN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov [rsp+38h+var_18], rdx
mov [rsp+38h+var_20], rcx
mov rax, [rsp+38h+var_8]
mov [rsp+38h+var_38], rax
mov rdi, [rsp+38h+var_10]
add rdi, 38h ; '8'; this
call _ZNK6spdlog10source_loc5emptyEv; spdlog::source_loc::empty(void)
test al, 1
jnz short loc_78445
jmp short loc_78462
loc_78445:
mov rdx, [rsp+38h+var_38]
add rdx, 8
mov rcx, [rsp+38h+var_20]
lea rdi, [rsp+38h+var_21]
xor eax, eax
mov esi, eax
call _ZN6spdlog7details18null_scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::null_scoped_padder::null_scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &)
jmp short loc_784A2
loc_78462:
mov rax, [rsp+38h+var_10]
mov edi, [rax+40h]
call _ZN6spdlog7details18null_scoped_padder12count_digitsIiEEjT_; spdlog::details::null_scoped_padder::count_digits<int>(int)
mov rdx, [rsp+38h+var_38]
mov [rsp+38h+var_28], eax
mov eax, [rsp+38h+var_28]
mov esi, eax
add rdx, 8
mov rcx, [rsp+38h+var_20]
lea rdi, [rsp+38h+var_29]
call _ZN6spdlog7details18null_scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::null_scoped_padder::null_scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &)
mov rax, [rsp+38h+var_10]
mov edi, [rax+40h]
mov rsi, [rsp+38h+var_20]
call _ZN6spdlog7details10fmt_helper10append_intIiEEvT_RN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::fmt_helper::append_int<int>(int,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &)
loc_784A2:
add rsp, 38h
retn
|
void spdlog::details::source_linenum_formatter<spdlog::details::null_scoped_padder>::format(
long long a1,
long long a2,
long long a3,
_QWORD *a4)
{
if ( spdlog::source_loc::empty((spdlog::source_loc *)(a2 + 56)) )
{
spdlog::details::null_scoped_padder::null_scoped_padder();
}
else
{
spdlog::details::null_scoped_padder::count_digits<int>();
spdlog::details::null_scoped_padder::null_scoped_padder();
spdlog::details::fmt_helper::append_int<int>(*(_DWORD *)(a2 + 64), a4);
}
}
|
format:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x18],RCX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0x38
CALL 0x00155310
TEST AL,0x1
JNZ 0x00178445
JMP 0x00178462
LAB_00178445:
MOV RDX,qword ptr [RSP]
ADD RDX,0x8
MOV RCX,qword ptr [RSP + 0x18]
LEA RDI,[RSP + 0x17]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001546d0
JMP 0x001784a2
LAB_00178462:
MOV RAX,qword ptr [RSP + 0x28]
MOV EDI,dword ptr [RAX + 0x40]
CALL 0x00177450
MOV RDX,qword ptr [RSP]
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,dword ptr [RSP + 0x10]
MOV ESI,EAX
ADD RDX,0x8
MOV RCX,qword ptr [RSP + 0x18]
LEA RDI,[RSP + 0xf]
CALL 0x001546d0
MOV RAX,qword ptr [RSP + 0x28]
MOV EDI,dword ptr [RAX + 0x40]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00154fa0
LAB_001784a2:
ADD RSP,0x38
RET
|
/* spdlog::details::source_linenum_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg
const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char> >&) */
void __thiscall
spdlog::details::source_linenum_formatter<spdlog::details::null_scoped_padder>::format
(source_linenum_formatter<spdlog::details::null_scoped_padder> *this,log_msg *param_1,
tm *param_2,basic_memory_buffer *param_3)
{
ulong uVar1;
null_scoped_padder local_29;
uint local_28;
null_scoped_padder local_21;
basic_memory_buffer *local_20;
tm *local_18;
log_msg *local_10;
source_linenum_formatter<spdlog::details::null_scoped_padder> *local_8;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
uVar1 = source_loc::empty((source_loc *)(param_1 + 0x38));
if ((uVar1 & 1) == 0) {
local_28 = null_scoped_padder::count_digits<int>(*(int *)(local_10 + 0x40));
null_scoped_padder::null_scoped_padder
(&local_29,(ulong)local_28,(padding_info *)(this + 8),local_20);
fmt_helper::append_int<int>(*(int *)(local_10 + 0x40),local_20);
}
else {
null_scoped_padder::null_scoped_padder(&local_21,0,(padding_info *)(this + 8),local_20);
}
return;
}
|
|
62,341 |
minja::Value::size() const
|
monkey531[P]llama/common/./minja.hpp
|
size_t size() const {
if (is_object()) return object_->size();
if (is_array()) return array_->size();
if (is_string()) return primitive_.get<std::string>().length();
throw std::runtime_error("Value is not an array or object: " + dump());
}
|
O0
|
cpp
|
minja::Value::size() const:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq 0x88(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xa5180
testb $0x1, %al
jne 0xd3977
jmp 0xd399a
movq 0x10(%rsp), %rdi
addq $0x20, %rdi
callq 0xa1ad0
movq %rax, %rdi
callq 0xc9e90
movq %rax, 0x90(%rsp)
jmp 0xd3adc
movq 0x10(%rsp), %rdi
callq 0xa4990
testb $0x1, %al
jne 0xd39aa
jmp 0xd39cd
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
callq 0xa19f0
movq %rax, %rdi
callq 0xa1a00
movq %rax, 0x90(%rsp)
jmp 0xd3adc
movq 0x10(%rsp), %rdi
callq 0xa1f30
testb $0x1, %al
jne 0xd39dd
jmp 0xd3a11
movq 0x10(%rsp), %rsi
addq $0x40, %rsi
leaq 0x68(%rsp), %rdi
callq 0xa4e20
leaq 0x68(%rsp), %rdi
callq 0x50830
movq %rax, 0x90(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x510c0
jmp 0xd3adc
movb $0x1, 0x1b(%rsp)
movl $0x10, %edi
callq 0x50540
movq 0x10(%rsp), %rsi
movq %rax, 0x8(%rsp)
leaq 0x28(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x9feb0
jmp 0xd3a3d
leaq 0xfdd4e(%rip), %rsi # 0x1d1792
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x7a6e0
jmp 0xd3a55
movq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x50390
jmp 0xd3a66
movq 0x8(%rsp), %rdi
movb $0x0, 0x1b(%rsp)
movq 0x180539(%rip), %rsi # 0x253fb0
movq 0x1804fa(%rip), %rdx # 0x253f78
callq 0x508f0
jmp 0xd3af6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0xd3ac7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0xd3abd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x510c0
leaq 0x28(%rsp), %rdi
callq 0x510c0
testb $0x1, 0x1b(%rsp)
jne 0xd3ad0
jmp 0xd3ada
movq 0x8(%rsp), %rdi
callq 0x50c40
jmp 0xd3aec
movq 0x90(%rsp), %rax
addq $0x98, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
|
_ZNK5minja5Value4sizeEv:
sub rsp, 98h
mov [rsp+98h+var_10], rdi
mov rdi, [rsp+98h+var_10]; this
mov [rsp+98h+var_88], rdi
call _ZNK5minja5Value9is_objectEv; minja::Value::is_object(void)
test al, 1
jnz short loc_D3977
jmp short loc_D399A
loc_D3977:
mov rdi, [rsp+98h+var_88]
add rdi, 20h ; ' '
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE4sizeEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::size(void)
mov [rsp+98h+var_8], rax
jmp loc_D3ADC
loc_D399A:
mov rdi, [rsp+98h+var_88]; this
call _ZNK5minja5Value8is_arrayEv; minja::Value::is_array(void)
test al, 1
jnz short loc_D39AA
jmp short loc_D39CD
loc_D39AA:
mov rdi, [rsp+98h+var_88]
add rdi, 10h
call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
call _ZNKSt6vectorIN5minja5ValueESaIS1_EE4sizeEv; std::vector<minja::Value>::size(void)
mov [rsp+98h+var_8], rax
jmp loc_D3ADC
loc_D39CD:
mov rdi, [rsp+98h+var_88]; this
call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void)
test al, 1
jnz short loc_D39DD
jmp short loc_D3A11
loc_D39DD:
mov rsi, [rsp+98h+var_88]
add rsi, 40h ; '@'; __int64
lea rdi, [rsp+98h+var_30]; void *
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3getIS9_S9_EEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv
lea rdi, [rsp+98h+var_30]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void)
mov [rsp+98h+var_8], rax
lea rdi, [rsp+98h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_D3ADC
loc_D3A11:
mov [rsp+98h+var_7D], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+98h+var_88]
mov [rsp+98h+var_90], rax
lea rdi, [rsp+98h+var_70]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_D3A3D:
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+98h+var_50]
lea rdx, [rsp+98h+var_70]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_D3A55:
mov rdi, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_50]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_D3A66:
mov rdi, [rsp+98h+var_90]; void *
mov [rsp+98h+var_7D], 0
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp short loc_D3AF6
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
jmp short loc_D3AC7
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
jmp short loc_D3ABD
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_D3ABD:
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_D3AC7:
test [rsp+arg_13], 1
jnz short loc_D3AD0
jmp short loc_D3ADA
loc_D3AD0:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_D3ADA:
jmp short loc_D3AEC
loc_D3ADC:
mov rax, [rsp+98h+var_8]
add rsp, 98h
retn
loc_D3AEC:
mov rdi, [rsp+arg_18]
call __Unwind_Resume
loc_D3AF6:
nop word ptr [rax+rax+00000000h]
|
long long minja::Value::size(minja::Value *this)
{
_QWORD *v1; // rax
_QWORD *v2; // rax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
void *exception; // [rsp+8h] [rbp-90h]
_BYTE v9[32]; // [rsp+28h] [rbp-70h] BYREF
_BYTE v10[32]; // [rsp+48h] [rbp-50h] BYREF
_BYTE v11[32]; // [rsp+68h] [rbp-30h] BYREF
minja::Value *v12; // [rsp+88h] [rbp-10h]
long long v13; // [rsp+90h] [rbp-8h]
v12 = this;
if ( minja::Value::is_object(this) )
{
v1 = (_QWORD *)std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 32);
return std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::size(v1);
}
else if ( minja::Value::is_array(this) )
{
v2 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 16);
return std::vector<minja::Value>::size(v2);
}
else
{
if ( !minja::Value::is_string(this) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Value is not an array or object: ", (long long)v9);
std::runtime_error::runtime_error(exception, v10);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get<std::string,std::string>(
v11,
(long long)this + 64,
v3,
v4,
v5,
v6);
v13 = std::string::length(v11);
std::string::~string(v11);
}
return v13;
}
|
size:
SUB RSP,0x98
MOV qword ptr [RSP + 0x88],RDI
MOV RDI,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x001a5180
TEST AL,0x1
JNZ 0x001d3977
JMP 0x001d399a
LAB_001d3977:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x20
CALL 0x001a1ad0
MOV RDI,RAX
CALL 0x001c9e90
MOV qword ptr [RSP + 0x90],RAX
JMP 0x001d3adc
LAB_001d399a:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001a4990
TEST AL,0x1
JNZ 0x001d39aa
JMP 0x001d39cd
LAB_001d39aa:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x10
CALL 0x001a19f0
MOV RDI,RAX
CALL 0x001a1a00
MOV qword ptr [RSP + 0x90],RAX
JMP 0x001d3adc
LAB_001d39cd:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001a1f30
TEST AL,0x1
JNZ 0x001d39dd
JMP 0x001d3a11
LAB_001d39dd:
MOV RSI,qword ptr [RSP + 0x10]
ADD RSI,0x40
LEA RDI,[RSP + 0x68]
CALL 0x001a4e20
LEA RDI,[RSP + 0x68]
CALL 0x00150830
MOV qword ptr [RSP + 0x90],RAX
LEA RDI,[RSP + 0x68]
CALL 0x001510c0
JMP 0x001d3adc
LAB_001d3a11:
MOV byte ptr [RSP + 0x1b],0x1
MOV EDI,0x10
CALL 0x00150540
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
LAB_001d3a2a:
LEA RDI,[RSP + 0x28]
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0019feb0
JMP 0x001d3a3d
LAB_001d3a3d:
LEA RSI,[0x2d1792]
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0x28]
CALL 0x0017a6e0
JMP 0x001d3a55
LAB_001d3a55:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x48]
CALL 0x00150390
JMP 0x001d3a66
LAB_001d3a66:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x1b],0x0
MOV RSI,qword ptr [0x00353fb0]
MOV RDX,qword ptr [0x00353f78]
CALL 0x001508f0
LAB_001d3adc:
MOV RAX,qword ptr [RSP + 0x90]
ADD RSP,0x98
RET
|
/* minja::Value::size() const */
int8 __thiscall minja::Value::size(Value *this)
{
ulong uVar1;
vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*this_00;
vector<minja::Value,std::allocator<minja::Value>> *this_01;
runtime_error *this_02;
int1 local_70 [32];
string local_50 [32];
string local_30 [32];
Value *local_10;
int8 local_8;
local_10 = this;
uVar1 = is_object(this);
if ((uVar1 & 1) == 0) {
uVar1 = is_array(this);
if ((uVar1 & 1) == 0) {
uVar1 = is_string(this);
if ((uVar1 & 1) == 0) {
this_02 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001d3a2a to 001d3a3a has its CatchHandler @ 001d3a85 */
dump_abi_cxx11_((int)local_70,SUB81(this,0));
/* try { // try from 001d3a3d to 001d3a52 has its CatchHandler @ 001d3a95 */
std::operator+((char *)local_50,(string *)"Value is not an array or object: ");
/* try { // try from 001d3a55 to 001d3a82 has its CatchHandler @ 001d3aa5 */
std::runtime_error::runtime_error(this_02,local_50);
/* WARNING: Subroutine does not return */
__cxa_throw(this_02,PTR_typeinfo_00353fb0,PTR__runtime_error_00353f78);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::get<std::__cxx11::string,std::__cxx11::string>();
local_8 = std::__cxx11::string::length();
std::__cxx11::string::~string(local_30);
}
else {
this_01 = (vector<minja::Value,std::allocator<minja::Value>> *)
std::
__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false>
::operator->((__shared_ptr_access<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2,false,false>
*)(this + 0x10));
local_8 = std::vector<minja::Value,std::allocator<minja::Value>>::size(this_01);
}
}
else {
this_00 = (vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*)std::
__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>
::operator->((__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>
*)(this + 0x20));
local_8 = std::
vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::size(this_00);
}
return local_8;
}
|
|
62,342 |
my_8bit_charset_flags_from_data
|
eloqsql/strings/ctype-simple.c
|
uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs)
{
uint flags= 0;
if (my_charset_is_8bit_pure_ascii(cs))
flags|= MY_CS_PUREASCII;
if (!my_charset_is_ascii_compatible(cs))
flags|= MY_CS_NONASCII;
return flags;
}
|
O3
|
c
|
my_8bit_charset_flags_from_data:
movq 0x68(%rdi), %rcx
testq %rcx, %rcx
je 0x38008
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
xorl %edx, %edx
cmpw $0x80, (%rcx,%rdx,2)
jae 0x37fef
incq %rdx
cmpq $0x100, %rdx # imm = 0x100
jne 0x37fd6
movl $0x1000, %eax # imm = 0x1000
xorl %edx, %edx
movzwl (%rcx,%rdx,2), %esi
cmpq %rsi, %rdx
jne 0x3800b
incq %rdx
cmpq $0x80, %rdx
jne 0x37ff1
jmp 0x38010
xorl %eax, %eax
retq
orl $0x2000, %eax # imm = 0x2000
popq %rbp
retq
|
my_8bit_charset_flags_from_data:
mov rcx, [rdi+68h]
test rcx, rcx
jz short loc_38008
push rbp
mov rbp, rsp
xor eax, eax
xor edx, edx
loc_37FD6:
cmp word ptr [rcx+rdx*2], 80h
jnb short loc_37FEF
inc rdx
cmp rdx, 100h
jnz short loc_37FD6
mov eax, 1000h
loc_37FEF:
xor edx, edx
loc_37FF1:
movzx esi, word ptr [rcx+rdx*2]
cmp rdx, rsi
jnz short loc_3800B
inc rdx
cmp rdx, 80h
jnz short loc_37FF1
jmp short loc_38010
loc_38008:
xor eax, eax
retn
loc_3800B:
or eax, 2000h
loc_38010:
pop rbp
retn
|
long long my_8bit_charset_flags_from_data(long long a1)
{
long long v1; // rcx
long long result; // rax
long long v3; // rdx
long long v4; // rdx
v1 = *(_QWORD *)(a1 + 104);
if ( !v1 )
return 0LL;
result = 0LL;
v3 = 0LL;
while ( *(_WORD *)(v1 + 2 * v3) < 0x80u )
{
if ( ++v3 == 256 )
{
result = 4096LL;
break;
}
}
v4 = 0LL;
while ( v4 == *(unsigned __int16 *)(v1 + 2 * v4) )
{
if ( ++v4 == 128 )
return result;
}
return (unsigned int)result | 0x2000;
}
|
my_8bit_charset_flags_from_data:
MOV RCX,qword ptr [RDI + 0x68]
TEST RCX,RCX
JZ 0x00138008
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
XOR EDX,EDX
LAB_00137fd6:
CMP word ptr [RCX + RDX*0x2],0x80
JNC 0x00137fef
INC RDX
CMP RDX,0x100
JNZ 0x00137fd6
MOV EAX,0x1000
LAB_00137fef:
XOR EDX,EDX
LAB_00137ff1:
MOVZX ESI,word ptr [RCX + RDX*0x2]
CMP RDX,RSI
JNZ 0x0013800b
INC RDX
CMP RDX,0x80
JNZ 0x00137ff1
JMP 0x00138010
LAB_00138008:
XOR EAX,EAX
RET
LAB_0013800b:
OR EAX,0x2000
LAB_00138010:
POP RBP
RET
|
uint my_8bit_charset_flags_from_data(long param_1)
{
long lVar1;
uint uVar2;
long lVar3;
ulong uVar4;
lVar1 = *(long *)(param_1 + 0x68);
if (lVar1 == 0) {
return 0;
}
uVar2 = 0;
lVar3 = 0;
do {
if (0x7f < *(ushort *)(lVar1 + lVar3 * 2)) goto LAB_00137fef;
lVar3 = lVar3 + 1;
} while (lVar3 != 0x100);
uVar2 = 0x1000;
LAB_00137fef:
uVar4 = 0;
do {
if (uVar4 != *(ushort *)(lVar1 + uVar4 * 2)) {
return uVar2 | 0x2000;
}
uVar4 = uVar4 + 1;
} while (uVar4 != 0x80);
return uVar2;
}
|
|
62,343 |
ulight::html::match_comment(std::basic_string_view<char8_t, std::char_traits<char8_t>>)
|
ulight/src/main/cpp/html.cpp
|
Match_Result match_comment(std::u8string_view str)
{
// https://html.spec.whatwg.org/dev/syntax.html#comments
if (!str.starts_with(comment_prefix)) {
return {};
}
std::size_t length = comment_prefix.length();
str.remove_prefix(comment_prefix.length());
if (str.starts_with(u8'>') || str.starts_with(u8"->")) {
return {};
}
while (!str.empty()) {
const std::size_t plain_prefix_length = str.find_first_of(u8"<-");
if (plain_prefix_length == std::u8string_view::npos) {
return { .length = length + str.length(), .terminated = false };
}
str.remove_prefix(plain_prefix_length);
length += plain_prefix_length;
if (str.starts_with(comment_suffix)) {
return { .length = length + comment_suffix.length(), .terminated = true };
}
if (str.starts_with(u8"<!--")) {
if (str.starts_with(comment_suffix_degenerate)) {
return { .length = length + comment_suffix_degenerate.length(),
.terminated = true };
}
return {};
}
if (str.starts_with(u8"--!>")) {
return {};
}
++length;
str.remove_prefix(1);
}
return { .length = length, .terminated = false };
}
|
O0
|
cpp
|
ulight::html::match_comment(std::basic_string_view<char8_t, std::char_traits<char8_t>>):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x20(%rbp)
movq %rsi, -0x18(%rbp)
movq 0x193a6(%rip), %rax # 0x295a0
movq %rax, -0x30(%rbp)
movq 0x193a3(%rip), %rax # 0x295a8
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0x20(%rbp), %rdi
callq 0xb520
testb $0x1, %al
jne 0x1022f
movq $0x0, -0x10(%rbp)
movb $0x0, -0x8(%rbp)
jmp 0x10426
leaq 0x1936a(%rip), %rdi # 0x295a0
callq 0x6d60
movq %rax, -0x38(%rbp)
leaq 0x1935a(%rip), %rdi # 0x295a0
callq 0x6d60
movq %rax, %rsi
leaq -0x20(%rbp), %rdi
callq 0xb4e0
leaq -0x20(%rbp), %rdi
movl $0x3e, %esi
callq 0xb260
testb $0x1, %al
jne 0x1027f
leaq -0x20(%rbp), %rdi
leaq 0xc209(%rip), %rsi # 0x1c47d
callq 0xb190
testb $0x1, %al
jne 0x1027f
jmp 0x10290
movq $0x0, -0x10(%rbp)
movb $0x0, -0x8(%rbp)
jmp 0x10426
jmp 0x10292
leaq -0x20(%rbp), %rdi
callq 0xb350
xorb $-0x1, %al
testb $0x1, %al
jne 0x102a6
jmp 0x1041a
leaq -0x20(%rbp), %rdi
leaq 0xc1be(%rip), %rsi # 0x1c46f
xorl %eax, %eax
movl %eax, %edx
callq 0x12190
movq %rax, -0x40(%rbp)
cmpq $-0x1, -0x40(%rbp)
jne 0x102ed
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x6d60
movq %rax, %rcx
movq -0x68(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movb $0x0, -0x8(%rbp)
jmp 0x10426
movq -0x40(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0xb4e0
movq -0x40(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0x192a3(%rip), %rax # 0x295b0
movq %rax, -0x50(%rbp)
movq 0x192a0(%rip), %rax # 0x295b8
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x20(%rbp), %rdi
callq 0xb520
testb $0x1, %al
jne 0x10333
jmp 0x1035e
movq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x1926e(%rip), %rdi # 0x295b0
callq 0x6d60
movq %rax, %rcx
movq -0x70(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movb $0x1, -0x8(%rbp)
jmp 0x10426
leaq -0x20(%rbp), %rdi
leaq 0xbf63(%rip), %rsi # 0x1c2cc
callq 0xb190
testb $0x1, %al
jne 0x10374
jmp 0x103d7
movq 0x19245(%rip), %rax # 0x295c0
movq %rax, -0x60(%rbp)
movq 0x19242(%rip), %rax # 0x295c8
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
leaq -0x20(%rbp), %rdi
callq 0xb520
testb $0x1, %al
jne 0x103a1
jmp 0x103c9
movq -0x38(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x19210(%rip), %rdi # 0x295c0
callq 0x6d60
movq %rax, %rcx
movq -0x78(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movb $0x1, -0x8(%rbp)
jmp 0x10426
movq $0x0, -0x10(%rbp)
movb $0x0, -0x8(%rbp)
jmp 0x10426
leaq -0x20(%rbp), %rdi
leaq 0xc090(%rip), %rsi # 0x1c472
callq 0xb190
testb $0x1, %al
jne 0x103ed
jmp 0x103fb
movq $0x0, -0x10(%rbp)
movb $0x0, -0x8(%rbp)
jmp 0x10426
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
leaq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0xb4e0
jmp 0x10292
movq -0x38(%rbp), %rax
movq %rax, -0x10(%rbp)
movb $0x0, -0x8(%rbp)
movq -0x10(%rbp), %rax
movb -0x8(%rbp), %dl
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN6ulight4html13match_commentESt17basic_string_viewIDuSt11char_traitsIDuEE:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_20], rdi
mov [rbp+var_18], rsi
mov rax, cs:_ZN6ulight4html12_GLOBAL__N_114comment_prefixE; ulight::html::`anonymous namespace'::comment_prefix
mov [rbp+var_30], rax
mov rax, cs:off_295A8; "<!--"
mov [rbp+var_28], rax
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_28]
lea rdi, [rbp+var_20]
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withES2_; std::u8string_view::starts_with(std::u8string_view)
test al, 1
jnz short loc_1022F
mov [rbp+var_10], 0
mov [rbp+var_8], 0
jmp loc_10426
loc_1022F:
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_prefixE; ulight::html::`anonymous namespace'::comment_prefix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov [rbp+var_38], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_prefixE; ulight::html::`anonymous namespace'::comment_prefix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rsi, rax
lea rdi, [rbp+var_20]
call _ZNSt17basic_string_viewIDuSt11char_traitsIDuEE13remove_prefixEm; std::u8string_view::remove_prefix(ulong)
lea rdi, [rbp+var_20]
mov esi, 3Eh ; '>'
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withEDu; std::u8string_view::starts_with(char8_t)
test al, 1
jnz short loc_1027F
lea rdi, [rbp+var_20]
lea rsi, asc_1C47A+3; "->"
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withEPKDu; std::u8string_view::starts_with(char8_t const*)
test al, 1
jnz short loc_1027F
jmp short loc_10290
loc_1027F:
mov [rbp+var_10], 0
mov [rbp+var_8], 0
jmp loc_10426
loc_10290:
jmp short $+2
loc_10292:
lea rdi, [rbp+var_20]
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE5emptyEv; std::u8string_view::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_102A6
jmp loc_1041A
loc_102A6:
lea rdi, [rbp+var_20]
lea rsi, asc_1C46F; "<-"
xor eax, eax
mov edx, eax
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE13find_first_ofEPKDum; std::u8string_view::find_first_of(char8_t const*,ulong)
mov [rbp+var_40], rax
cmp [rbp+var_40], 0FFFFFFFFFFFFFFFFh
jnz short loc_102ED
mov rax, [rbp+var_38]
mov [rbp+var_68], rax
lea rdi, [rbp+var_20]
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rcx, rax
mov rax, [rbp+var_68]
add rax, rcx
mov [rbp+var_10], rax
mov [rbp+var_8], 0
jmp loc_10426
loc_102ED:
mov rsi, [rbp+var_40]
lea rdi, [rbp+var_20]
call _ZNSt17basic_string_viewIDuSt11char_traitsIDuEE13remove_prefixEm; std::u8string_view::remove_prefix(ulong)
mov rax, [rbp+var_40]
add rax, [rbp+var_38]
mov [rbp+var_38], rax
mov rax, cs:_ZN6ulight4html12_GLOBAL__N_114comment_suffixE; ulight::html::`anonymous namespace'::comment_suffix
mov [rbp+var_50], rax
mov rax, cs:off_295B8; "-->"
mov [rbp+var_48], rax
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_48]
lea rdi, [rbp+var_20]
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withES2_; std::u8string_view::starts_with(std::u8string_view)
test al, 1
jnz short loc_10333
jmp short loc_1035E
loc_10333:
mov rax, [rbp+var_38]
mov [rbp+var_70], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_suffixE; ulight::html::`anonymous namespace'::comment_suffix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rcx, rax
mov rax, [rbp+var_70]
add rax, rcx
mov [rbp+var_10], rax
mov [rbp+var_8], 1
jmp loc_10426
loc_1035E:
lea rdi, [rbp+var_20]
lea rsi, asc_1C2CC; "<!--"
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withEPKDu; std::u8string_view::starts_with(char8_t const*)
test al, 1
jnz short loc_10374
jmp short loc_103D7
loc_10374:
mov rax, cs:_ZN6ulight4html12_GLOBAL__N_125comment_suffix_degenerateE; ulight::html::`anonymous namespace'::comment_suffix_degenerate
mov [rbp+var_60], rax
mov rax, cs:off_295C8; "<!-->"
mov [rbp+var_58], rax
mov rsi, [rbp+var_60]
mov rdx, [rbp+var_58]
lea rdi, [rbp+var_20]
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withES2_; std::u8string_view::starts_with(std::u8string_view)
test al, 1
jnz short loc_103A1
jmp short loc_103C9
loc_103A1:
mov rax, [rbp+var_38]
mov [rbp+var_78], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_125comment_suffix_degenerateE; ulight::html::`anonymous namespace'::comment_suffix_degenerate
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rcx, rax
mov rax, [rbp+var_78]
add rax, rcx
mov [rbp+var_10], rax
mov [rbp+var_8], 1
jmp short loc_10426
loc_103C9:
mov [rbp+var_10], 0
mov [rbp+var_8], 0
jmp short loc_10426
loc_103D7:
lea rdi, [rbp+var_20]
lea rsi, asc_1C472; "--!>"
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE11starts_withEPKDu; std::u8string_view::starts_with(char8_t const*)
test al, 1
jnz short loc_103ED
jmp short loc_103FB
loc_103ED:
mov [rbp+var_10], 0
mov [rbp+var_8], 0
jmp short loc_10426
loc_103FB:
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_38], rax
lea rdi, [rbp+var_20]
mov esi, 1
call _ZNSt17basic_string_viewIDuSt11char_traitsIDuEE13remove_prefixEm; std::u8string_view::remove_prefix(ulong)
jmp loc_10292
loc_1041A:
mov rax, [rbp+var_38]
mov [rbp+var_10], rax
mov [rbp+var_8], 0
loc_10426:
mov rax, [rbp+var_10]
mov dl, [rbp+var_8]
add rsp, 80h
pop rbp
retn
|
long long ulight::html::match_comment(unsigned long long a1, unsigned long long a2)
{
long long v2; // rax
long long first_of; // [rsp+40h] [rbp-40h]
long long v5; // [rsp+48h] [rbp-38h]
long long v6; // [rsp+48h] [rbp-38h]
unsigned long long v7[2]; // [rsp+60h] [rbp-20h] BYREF
long long v8; // [rsp+70h] [rbp-10h]
char v9; // [rsp+78h] [rbp-8h]
v7[0] = a1;
v7[1] = a2;
if ( std::u8string_view::starts_with(v7, (unsigned long long)&byte_4, (long long)"<!--") )
{
v5 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_prefix);
v2 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_prefix);
std::u8string_view::remove_prefix(v7, v2);
if ( std::u8string_view::starts_with((long long)v7, 0x3Eu)
|| (std::u8string_view::starts_with((long long)v7, "->") & 1) != 0 )
{
v8 = 0LL;
v9 = 0;
}
else
{
while ( 1 )
{
if ( std::u8string_view::empty(v7) )
{
v8 = v5;
v9 = 0;
return v8;
}
first_of = std::u8string_view::find_first_of(v7, "<-", 0LL);
if ( first_of == -1 )
{
v8 = std::u8string_view::length((long long)v7) + v5;
v9 = 0;
return v8;
}
std::u8string_view::remove_prefix(v7, first_of);
v6 = v5 + first_of;
if ( std::u8string_view::starts_with(v7, (unsigned long long)&dword_0 + 3, (long long)"-->") )
{
v8 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_suffix) + v6;
v9 = 1;
return v8;
}
if ( (std::u8string_view::starts_with((long long)v7, "<!--") & 1) != 0 )
break;
if ( (std::u8string_view::starts_with((long long)v7, "--!>") & 1) != 0 )
{
v8 = 0LL;
v9 = 0;
return v8;
}
v5 = v6 + 1;
std::u8string_view::remove_prefix(v7, 1LL);
}
if ( std::u8string_view::starts_with(v7, (unsigned long long)&byte_5, (long long)"<!-->") )
{
v8 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_suffix_degenerate) + v6;
v9 = 1;
}
else
{
v8 = 0LL;
v9 = 0;
}
}
}
else
{
v8 = 0LL;
v9 = 0;
}
return v8;
}
|
match_comment:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [0x001295a0]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [0x001295a8]
MOV qword ptr [RBP + -0x28],RAX
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0x20]
CALL 0x0010b520
TEST AL,0x1
JNZ 0x0011022f
MOV qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x8],0x0
JMP 0x00110426
LAB_0011022f:
LEA RDI,[0x1295a0]
CALL 0x00106d60
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[0x1295a0]
CALL 0x00106d60
MOV RSI,RAX
LEA RDI,[RBP + -0x20]
CALL 0x0010b4e0
LEA RDI,[RBP + -0x20]
MOV ESI,0x3e
CALL 0x0010b260
TEST AL,0x1
JNZ 0x0011027f
LEA RDI,[RBP + -0x20]
LEA RSI,[0x11c47d]
CALL 0x0010b190
TEST AL,0x1
JNZ 0x0011027f
JMP 0x00110290
LAB_0011027f:
MOV qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x8],0x0
JMP 0x00110426
LAB_00110290:
JMP 0x00110292
LAB_00110292:
LEA RDI,[RBP + -0x20]
CALL 0x0010b350
XOR AL,0xff
TEST AL,0x1
JNZ 0x001102a6
JMP 0x0011041a
LAB_001102a6:
LEA RDI,[RBP + -0x20]
LEA RSI,[0x11c46f]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00112190
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],-0x1
JNZ 0x001102ed
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x68],RAX
LEA RDI,[RBP + -0x20]
CALL 0x00106d60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV byte ptr [RBP + -0x8],0x0
JMP 0x00110426
LAB_001102ed:
MOV RSI,qword ptr [RBP + -0x40]
LEA RDI,[RBP + -0x20]
CALL 0x0010b4e0
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [0x001295b0]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [0x001295b8]
MOV qword ptr [RBP + -0x48],RAX
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
LEA RDI,[RBP + -0x20]
CALL 0x0010b520
TEST AL,0x1
JNZ 0x00110333
JMP 0x0011035e
LAB_00110333:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x70],RAX
LEA RDI,[0x1295b0]
CALL 0x00106d60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x70]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV byte ptr [RBP + -0x8],0x1
JMP 0x00110426
LAB_0011035e:
LEA RDI,[RBP + -0x20]
LEA RSI,[0x11c2cc]
CALL 0x0010b190
TEST AL,0x1
JNZ 0x00110374
JMP 0x001103d7
LAB_00110374:
MOV RAX,qword ptr [0x001295c0]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [0x001295c8]
MOV qword ptr [RBP + -0x58],RAX
MOV RSI,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RBP + -0x58]
LEA RDI,[RBP + -0x20]
CALL 0x0010b520
TEST AL,0x1
JNZ 0x001103a1
JMP 0x001103c9
LAB_001103a1:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x78],RAX
LEA RDI,[0x1295c0]
CALL 0x00106d60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV byte ptr [RBP + -0x8],0x1
JMP 0x00110426
LAB_001103c9:
MOV qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x8],0x0
JMP 0x00110426
LAB_001103d7:
LEA RDI,[RBP + -0x20]
LEA RSI,[0x11c472]
CALL 0x0010b190
TEST AL,0x1
JNZ 0x001103ed
JMP 0x001103fb
LAB_001103ed:
MOV qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x8],0x0
JMP 0x00110426
LAB_001103fb:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[RBP + -0x20]
MOV ESI,0x1
CALL 0x0010b4e0
JMP 0x00110292
LAB_0011041a:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x10],RAX
MOV byte ptr [RBP + -0x8],0x0
LAB_00110426:
MOV RAX,qword ptr [RBP + -0x10]
MOV DL,byte ptr [RBP + -0x8]
ADD RSP,0x80
POP RBP
RET
|
/* ulight::html::match_comment(std::basic_string_view<char8_t, std::char_traits<char8_t> >) */
int1 [16] __thiscall ulight::html::match_comment(html *this,int8 param_2)
{
ulong uVar1;
int8 uVar2;
int1 auVar3 [16];
long local_40;
html *local_28;
int8 local_20;
long local_18;
int1 local_10;
local_28 = this;
local_20 = param_2;
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
(&local_28,(anonymous_namespace)::comment_prefix,PTR_DAT_001295a8);
uVar2 = auVar3._8_8_;
if ((auVar3 & (int1 [16])0x1) == (int1 [16])0x0) {
local_18 = 0;
local_10 = 0;
}
else {
local_40 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)
&(anonymous_namespace)::comment_prefix);
uVar1 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)
&(anonymous_namespace)::comment_prefix);
std::basic_string_view<char8_t,std::char_traits<char8_t>>::remove_prefix
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,uVar1);
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,'>');
uVar2 = auVar3._8_8_;
if ((auVar3 & (int1 [16])0x1) == (int1 [16])0x0) {
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,"->");
uVar2 = auVar3._8_8_;
if ((auVar3 & (int1 [16])0x1) == (int1 [16])0x0) {
while( true ) {
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::empty
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28);
uVar2 = auVar3._8_8_;
if (((auVar3._0_8_ ^ 0xff) & 1) == 0) break;
uVar1 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::find_first_of
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,"<-",
0);
if (uVar1 == 0xffffffffffffffff) {
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28);
uVar2 = auVar3._8_8_;
local_18 = local_40 + auVar3._0_8_;
local_10 = 0;
goto LAB_00110426;
}
std::basic_string_view<char8_t,std::char_traits<char8_t>>::remove_prefix
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,uVar1);
local_40 = uVar1 + local_40;
uVar1 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
(&local_28,(anonymous_namespace)::comment_suffix,PTR_DAT_001295b8);
if ((uVar1 & 1) != 0) {
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)
&(anonymous_namespace)::comment_suffix);
uVar2 = auVar3._8_8_;
local_18 = local_40 + auVar3._0_8_;
local_10 = 1;
goto LAB_00110426;
}
uVar1 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,
"<!--");
if ((uVar1 & 1) != 0) {
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
(&local_28,(anonymous_namespace)::comment_suffix_degenerate,
PTR_DAT_001295c8);
uVar2 = auVar3._8_8_;
if ((auVar3 & (int1 [16])0x1) == (int1 [16])0x0) {
local_18 = 0;
local_10 = 0;
}
else {
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)
&(anonymous_namespace)::comment_suffix_degenerate);
uVar2 = auVar3._8_8_;
local_18 = local_40 + auVar3._0_8_;
local_10 = 1;
}
goto LAB_00110426;
}
auVar3 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::starts_with
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,
"--!>");
uVar2 = auVar3._8_8_;
if ((auVar3 & (int1 [16])0x1) != (int1 [16])0x0) {
local_18 = 0;
local_10 = 0;
goto LAB_00110426;
}
local_40 = local_40 + 1;
std::basic_string_view<char8_t,std::char_traits<char8_t>>::remove_prefix
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&local_28,1);
}
local_18 = local_40;
local_10 = 0;
goto LAB_00110426;
}
}
local_18 = 0;
local_10 = 0;
}
LAB_00110426:
auVar3._9_7_ = (int7)((ulong)uVar2 >> 8);
auVar3[8] = local_10;
auVar3._0_8_ = local_18;
return auVar3;
}
|
|
62,344 |
my_error_register
|
eloqsql/mysys/my_error.c
|
int my_error_register(const char** (*get_errmsgs)(int error), uint first,
uint last)
{
struct my_err_head *meh_p;
struct my_err_head **search_meh_pp;
/* Allocate a new header structure. */
if (! (meh_p= (struct my_err_head*) my_malloc(key_memory_my_err_head,
sizeof(struct my_err_head),
MYF(MY_WME))))
return 1;
meh_p->get_errmsgs= get_errmsgs;
meh_p->meh_first= first;
meh_p->meh_last= last;
/* Search for the right position in the list. */
for (search_meh_pp= &my_errmsgs_list;
*search_meh_pp;
search_meh_pp= &(*search_meh_pp)->meh_next)
{
if ((*search_meh_pp)->meh_last > first)
break;
}
/* Error numbers must be unique. No overlapping is allowed. */
if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last))
{
my_free(meh_p);
return 1;
}
/* Insert header into the chain. */
meh_p->meh_next= *search_meh_pp;
*search_meh_pp= meh_p;
return 0;
}
|
O3
|
c
|
my_error_register:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
leaq 0x33b74e(%rip), %rax # 0x366670
movl (%rax), %edi
movl $0x18, %esi
movl $0x10, %edx
callq 0x2b691
movl $0x1, %ebx
testq %rax, %rax
je 0x2af79
movq %r12, 0x8(%rax)
movl %r15d, 0x10(%rax)
movl %r14d, 0x14(%rax)
leaq 0x2c4a28(%rip), %rcx # 0x2ef978
movq %rcx, %rdx
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x2af67
cmpl %r15d, 0x14(%rcx)
jbe 0x2af50
cmpl %r14d, 0x10(%rcx)
jbe 0x2af71
movq %rcx, (%rax)
movq %rax, (%rdx)
xorl %ebx, %ebx
jmp 0x2af79
movq %rax, %rdi
callq 0x2b8be
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
my_error_register:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14d, edx
mov r15d, esi
mov r12, rdi
lea rax, key_memory_my_err_head
mov edi, [rax]
mov esi, 18h
mov edx, 10h
call my_malloc
mov ebx, 1
test rax, rax
jz short loc_2AF79
mov [rax+8], r12
mov [rax+10h], r15d
mov [rax+14h], r14d
lea rcx, my_errmsgs_list
loc_2AF50:
mov rdx, rcx
mov rcx, [rcx]
test rcx, rcx
jz short loc_2AF67
cmp [rcx+14h], r15d
jbe short loc_2AF50
cmp [rcx+10h], r14d
jbe short loc_2AF71
loc_2AF67:
mov [rax], rcx
mov [rdx], rax
xor ebx, ebx
jmp short loc_2AF79
loc_2AF71:
mov rdi, rax
call my_free
loc_2AF79:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long my_error_register(long long a1, unsigned int a2, unsigned int a3)
{
long long v4; // rax
unsigned int v5; // ebx
long long **v6; // rcx
_QWORD *v7; // rdx
v4 = my_malloc(key_memory_my_err_head, 24LL, 16LL);
v5 = 1;
if ( v4 )
{
*(_QWORD *)(v4 + 8) = a1;
*(_DWORD *)(v4 + 16) = a2;
*(_DWORD *)(v4 + 20) = a3;
v6 = &my_errmsgs_list;
do
{
v7 = v6;
v6 = (long long **)*v6;
if ( !v6 )
goto LABEL_6;
}
while ( *((_DWORD *)v6 + 5) <= a2 );
if ( *((_DWORD *)v6 + 4) > a3 )
{
LABEL_6:
*(_QWORD *)v4 = v6;
*v7 = v4;
return 0;
}
my_free(v4);
}
return v5;
}
|
my_error_register:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14D,EDX
MOV R15D,ESI
MOV R12,RDI
LEA RAX,[0x466670]
MOV EDI,dword ptr [RAX]
MOV ESI,0x18
MOV EDX,0x10
CALL 0x0012b691
MOV EBX,0x1
TEST RAX,RAX
JZ 0x0012af79
MOV qword ptr [RAX + 0x8],R12
MOV dword ptr [RAX + 0x10],R15D
MOV dword ptr [RAX + 0x14],R14D
LEA RCX,[0x3ef978]
LAB_0012af50:
MOV RDX,RCX
MOV RCX,qword ptr [RCX]
TEST RCX,RCX
JZ 0x0012af67
CMP dword ptr [RCX + 0x14],R15D
JBE 0x0012af50
CMP dword ptr [RCX + 0x10],R14D
JBE 0x0012af71
LAB_0012af67:
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],RAX
XOR EBX,EBX
JMP 0x0012af79
LAB_0012af71:
MOV RDI,RAX
CALL 0x0012b8be
LAB_0012af79:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 my_error_register(long param_1,uint param_2,uint param_3)
{
int **ppuVar1;
long *plVar2;
int **ppuVar3;
int8 uVar4;
plVar2 = (long *)my_malloc(key_memory_my_err_head,0x18,0x10);
uVar4 = 1;
if (plVar2 != (long *)0x0) {
plVar2[1] = param_1;
*(uint *)(plVar2 + 2) = param_2;
*(uint *)((long)plVar2 + 0x14) = param_3;
ppuVar1 = &my_errmsgs_list;
do {
ppuVar3 = ppuVar1;
ppuVar1 = (int **)*ppuVar3;
if (ppuVar1 == (int **)0x0) goto LAB_0012af67;
} while (*(uint *)((long)ppuVar1 + 0x14) <= param_2);
if (param_3 < *(uint *)(ppuVar1 + 2)) {
LAB_0012af67:
*plVar2 = (long)ppuVar1;
*ppuVar3 = (int *)plVar2;
uVar4 = 0;
}
else {
my_free(plVar2);
}
}
return uVar4;
}
|
|
62,345 |
uf_endspace_selected
|
eloqsql/storage/maria/ma_packrec.c
|
static void uf_endspace_selected(MARIA_COLUMNDEF *rec,
MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill(end - spaces, spaces, ' ');
}
else
decode_bytes(rec,bit_buff,to,end);
}
|
O3
|
c
|
uf_endspace_selected:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x457e4
movl (%r15), %r14d
decl %eax
movl %eax, 0x4(%r15)
btl %eax, %r14d
jb 0x45823
jmp 0x45802
movq %r15, %rdi
movq %rdx, %r14
callq 0x45138
movq %r14, %rdx
movl $0x1f, 0x4(%r15)
movl (%r15), %r14d
testl %r14d, %r14d
js 0x4581e
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x452f5
movl $0x1f, %eax
movl 0x24(%r12), %r13d
movl %eax, %ecx
subl %r13d, %ecx
jae 0x45877
subl %eax, %r13d
movl %eax, %eax
leaq 0x9b805(%rip), %rcx # 0xe1040
andl (%rcx,%rax,4), %r14d
movl %r13d, %ecx
shll %cl, %r14d
movq %r15, %rdi
movq %r12, -0x30(%rbp)
movq %rdx, %r12
callq 0x45138
movq %r12, %rdx
movq -0x30(%rbp), %r12
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r15)
movl (%r15), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r14d
jmp 0x4588e
movl %ecx, 0x4(%r15)
shrl %cl, %r14d
movl 0x24(%r12), %eax
leaq 0x9b7b6(%rip), %rcx # 0xe1040
andl (%rcx,%rax,4), %r14d
movl %r14d, %r13d
leaq (%rdx,%r13), %rax
cmpq %rbx, %rax
jbe 0x458b1
movl $0x1, 0x28(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %r14
negq %r14
cmpq %rbx, %rax
je 0x458cb
leaq (%rbx,%r14), %rcx
movq %r12, %rdi
movq %r15, %rsi
callq 0x452f5
addq %r14, %rbx
movq %rbx, %rdi
movl $0x20, %esi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x292a0
|
uf_endspace_selected:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r15, rsi
mov r12, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_457E4
mov r14d, [r15]
dec eax
mov [r15+4], eax
bt r14d, eax
jb short loc_45823
jmp short loc_45802
loc_457E4:
mov rdi, r15
mov r14, rdx
call fill_buffer
mov rdx, r14
mov dword ptr [r15+4], 1Fh
mov r14d, [r15]
test r14d, r14d
js short loc_4581E
loc_45802:
mov rdi, r12
mov rsi, r15
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes
loc_4581E:
mov eax, 1Fh
loc_45823:
mov r13d, [r12+24h]
mov ecx, eax
sub ecx, r13d
jnb short loc_45877
sub r13d, eax
mov eax, eax
lea rcx, mask
and r14d, [rcx+rax*4]
mov ecx, r13d
shl r14d, cl
mov rdi, r15
mov [rbp+var_30], r12
mov r12, rdx
call fill_buffer
mov rdx, r12
mov r12, [rbp+var_30]
mov eax, 20h ; ' '
sub eax, r13d
mov [r15+4], eax
mov eax, [r15]
neg r13d
mov ecx, r13d
shr eax, cl
add r14d, eax
jmp short loc_4588E
loc_45877:
mov [r15+4], ecx
shr r14d, cl
mov eax, [r12+24h]
lea rcx, mask
and r14d, [rcx+rax*4]
loc_4588E:
mov r13d, r14d
lea rax, [rdx+r13]
cmp rax, rbx
jbe short loc_458B1
mov dword ptr [r15+28h], 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_458B1:
mov r14, r13
neg r14
cmp rax, rbx
jz short loc_458CB
lea rcx, [rbx+r14]
mov rdi, r12
mov rsi, r15
call decode_bytes
loc_458CB:
add rbx, r14
mov rdi, rbx
mov esi, 20h ; ' '
mov rdx, r13
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
|
_BYTE * uf_endspace_selected(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4)
{
long long v5; // r12
unsigned int v6; // eax
unsigned int v7; // r14d
unsigned int v8; // eax
_BYTE *v9; // r14
_BYTE *result; // rax
unsigned int v11; // r13d
unsigned int v12; // ecx
int v13; // r13d
int v14; // r14d
_BYTE *v15; // r12
unsigned int v16; // r14d
v5 = a1;
v6 = a2[1];
if ( v6 )
{
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( !_bittest((const int *)&v7, v8) )
return decode_bytes(a1, (long long)a2, a3, a4);
}
else
{
v9 = a3;
fill_buffer((long long)a2);
a3 = v9;
a2[1] = 31;
v7 = *a2;
if ( (*a2 & 0x80000000) == 0 )
return decode_bytes(a1, (long long)a2, a3, a4);
v8 = 31;
}
v11 = *(_DWORD *)(a1 + 36);
v12 = v8 - v11;
if ( v8 >= v11 )
{
a2[1] = v12;
v16 = mask[*(unsigned int *)(a1 + 36)] & (v7 >> v12);
}
else
{
v13 = v11 - v8;
v14 = (mask[v8] & v7) << v13;
v15 = a3;
fill_buffer((long long)a2);
a3 = v15;
v5 = a1;
a2[1] = 32 - v13;
v16 = (*a2 >> -(char)v13) + v14;
}
result = &a3[v16];
if ( result <= a4 )
{
if ( result != a4 )
decode_bytes(v5, (long long)a2, a3, &a4[-v16]);
return (_BYTE *)memset(&a4[-v16], 32LL, v16);
}
else
{
a2[10] = 1;
}
return result;
}
|
uf_endspace_selected:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R15,RSI
MOV R12,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x001457e4
MOV R14D,dword ptr [R15]
DEC EAX
MOV dword ptr [R15 + 0x4],EAX
BT R14D,EAX
JC 0x00145823
JMP 0x00145802
LAB_001457e4:
MOV RDI,R15
MOV R14,RDX
CALL 0x00145138
MOV RDX,R14
MOV dword ptr [R15 + 0x4],0x1f
MOV R14D,dword ptr [R15]
TEST R14D,R14D
JS 0x0014581e
LAB_00145802:
MOV RDI,R12
MOV RSI,R15
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001452f5
LAB_0014581e:
MOV EAX,0x1f
LAB_00145823:
MOV R13D,dword ptr [R12 + 0x24]
MOV ECX,EAX
SUB ECX,R13D
JNC 0x00145877
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1e1040]
AND R14D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R14D,CL
MOV RDI,R15
MOV qword ptr [RBP + -0x30],R12
MOV R12,RDX
CALL 0x00145138
MOV RDX,R12
MOV R12,qword ptr [RBP + -0x30]
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R15 + 0x4],EAX
MOV EAX,dword ptr [R15]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R14D,EAX
JMP 0x0014588e
LAB_00145877:
MOV dword ptr [R15 + 0x4],ECX
SHR R14D,CL
MOV EAX,dword ptr [R12 + 0x24]
LEA RCX,[0x1e1040]
AND R14D,dword ptr [RCX + RAX*0x4]
LAB_0014588e:
MOV R13D,R14D
LEA RAX,[RDX + R13*0x1]
CMP RAX,RBX
JBE 0x001458b1
MOV dword ptr [R15 + 0x28],0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001458b1:
MOV R14,R13
NEG R14
CMP RAX,RBX
JZ 0x001458cb
LEA RCX,[RBX + R14*0x1]
MOV RDI,R12
MOV RSI,R15
CALL 0x001452f5
LAB_001458cb:
ADD RBX,R14
MOV RDI,RBX
MOV ESI,0x20
MOV RDX,R13
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001292a0
|
void uf_endspace_selected(long param_1,uint *param_2,long param_3,ulong param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
ulong __n;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
if ((int)uVar5 < 0) {
uVar3 = 0x1f;
goto LAB_00145823;
}
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) != 0) {
LAB_00145823:
uVar1 = *(uint *)(param_1 + 0x24);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x24)];
}
__n = (ulong)uVar5;
if (param_3 + __n <= param_4) {
if (param_3 + __n != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 + -__n);
}
memset((void *)(param_4 + -__n),0x20,__n);
return;
}
param_2[10] = 1;
return;
}
}
decode_bytes(param_1,param_2,param_3,param_4);
return;
}
|
|
62,346 |
mbedtls_pk_can_do
|
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/pk.c
|
int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type)
{
/* A context with null pk_info is not set up yet and can't do anything.
* For backward compatibility, also accept NULL instead of a context
* pointer. */
if (ctx == NULL || ctx->pk_info == NULL) {
return 0;
}
return ctx->pk_info->can_do(type);
}
|
O3
|
c
|
mbedtls_pk_can_do:
testq %rdi, %rdi
je 0x8b7fe
movq (%rdi), %rax
testq %rax, %rax
je 0x8b7fe
movl %esi, %edi
jmpq *0x18(%rax)
xorl %eax, %eax
retq
|
mbedtls_pk_can_do:
test rdi, rdi
jz short loc_8B7FE
mov rax, [rdi]
test rax, rax
jz short loc_8B7FE
mov edi, esi
jmp qword ptr [rax+18h]
loc_8B7FE:
xor eax, eax
retn
|
long long mbedtls_pk_can_do(long long a1, unsigned int a2)
{
if ( a1 && *(_QWORD *)a1 )
return (*(long long ( **)(_QWORD))(*(_QWORD *)a1 + 24LL))(a2);
else
return 0LL;
}
|
mbedtls_pk_can_do:
TEST RDI,RDI
JZ 0x0018b7fe
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x0018b7fe
MOV EDI,ESI
JMP qword ptr [RAX + 0x18]
LAB_0018b7fe:
XOR EAX,EAX
RET
|
int8 mbedtls_pk_can_do(long *param_1,int4 param_2)
{
int8 uVar1;
if ((param_1 != (long *)0x0) && (*param_1 != 0)) {
/* WARNING: Could not recover jumptable at 0x0018b7fb. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar1 = (**(code **)(*param_1 + 0x18))(param_2);
return uVar1;
}
return 0;
}
|
|
62,347 |
my_thread_init
|
eloqsql/mysys/my_thr_init.c
|
my_bool my_thread_init(void)
{
struct st_my_thread_var *tmp;
my_bool error=0;
if (!my_thread_global_init_done)
return 1; /* cannot proceed with uninitialized library */
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init(): pthread_self: %p\n", pthread_self());
#endif
if (my_thread_var)
{
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init() called more than once in thread 0x%lx\n",
(long) pthread_self());
#endif
goto end;
}
#ifdef _MSC_VER
install_sigabrt_handler();
#endif
if (!(tmp= (struct st_my_thread_var *) calloc(1, sizeof(*tmp))))
{
error= 1;
goto end;
}
set_mysys_var(tmp);
tmp->pthread_self= pthread_self();
my_thread_init_thr_mutex(tmp);
tmp->stack_ends_here= (char*)&tmp +
STACK_DIRECTION * (long)my_thread_stack_size;
mysql_mutex_lock(&THR_LOCK_threads);
tmp->id= tmp->dbug_id= ++thread_id;
++THR_thread_count;
mysql_mutex_unlock(&THR_LOCK_threads);
tmp->init= 1;
#ifndef DBUG_OFF
/* Generate unique name for thread */
(void) my_thread_name();
#endif
end:
return error;
}
|
O3
|
c
|
my_thread_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movb $0x1, %bl
cmpb $0x1, 0x38d294(%rip) # 0x3d6a80
jne 0x498c5
leaq 0x38d28b(%rip), %r15 # 0x3d6a84
movl (%r15), %edi
callq 0x26540
testq %rax, %rax
jne 0x498c3
movl $0x1, %edi
movl $0xf0, %esi
callq 0x26230
movq %rax, -0x20(%rbp)
testq %rax, %rax
je 0x498c5
movq %rax, %r14
movl (%r15), %edi
movq %rax, %rsi
callq 0x260c0
callq 0x262c0
movq %rax, 0xc8(%r14)
movq %r14, %rdi
callq 0x496e3
leaq 0x2d2e71(%rip), %rax # 0x31c6c0
leaq -0x20(%rbp), %rcx
addq (%rax), %rcx
movq %rcx, 0xb8(%r14)
leaq 0x38d154(%rip), %rbx # 0x3d69b8
cmpq $0x0, 0x40(%rbx)
jne 0x498d2
leaq 0x38d146(%rip), %rdi # 0x3d69b8
callq 0x264d0
movq 0x38d20a(%rip), %rax # 0x3d6a88
incq %rax
movq %rax, 0x38d200(%rip) # 0x3d6a88
movq -0x20(%rbp), %rcx
movq %rax, 0xd8(%rcx)
movq %rax, 0xd0(%rcx)
leaq 0x38cf17(%rip), %rax # 0x3d67b8
incl (%rax)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0x498d9
leaq 0x38d105(%rip), %rdi # 0x3d69b8
callq 0x26250
movq -0x20(%rbp), %rax
movb $0x1, 0xe8(%rax)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2b9c0
jmp 0x49877
leaq 0x2d35f8(%rip), %rax # 0x31ced8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x498ac
|
my_thread_init:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov bl, 1
cmp cs:my_thread_global_init_done, 1
jnz loc_498C5
lea r15, THR_KEY_mysys
mov edi, [r15]
call _pthread_getspecific
test rax, rax
jnz loc_498C3
mov edi, 1
mov esi, 0F0h
call _calloc
mov [rbp+var_20], rax
test rax, rax
jz loc_498C5
mov r14, rax
mov edi, [r15]
mov rsi, rax
call _pthread_setspecific
call _pthread_self
mov [r14+0C8h], rax
mov rdi, r14
call my_thread_init_thr_mutex
lea rax, my_thread_stack_size
lea rcx, [rbp+var_20]
add rcx, [rax]
mov [r14+0B8h], rcx
lea rbx, THR_LOCK_threads
cmp qword ptr [rbx+40h], 0
jnz short loc_498D2
lea rdi, THR_LOCK_threads
call _pthread_mutex_lock
loc_49877:
mov rax, cs:thread_id
inc rax
mov cs:thread_id, rax
mov rcx, [rbp+var_20]
mov [rcx+0D8h], rax
mov [rcx+0D0h], rax
lea rax, THR_thread_count
inc dword ptr [rax]
mov rdi, [rbx+40h]
test rdi, rdi
jnz short loc_498D9
loc_498AC:
lea rdi, THR_LOCK_threads
call _pthread_mutex_unlock
mov rax, [rbp+var_20]
mov byte ptr [rax+0E8h], 1
loc_498C3:
xor ebx, ebx
loc_498C5:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_498D2:
call my_thread_init_cold_1
jmp short loc_49877
loc_498D9:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_498AC
|
long long my_thread_init()
{
long long v0; // rax
unsigned int v1; // ebx
long long v2; // rax
long long v3; // r14
long long v4; // rax
long long v5; // rcx
_QWORD v7[4]; // [rsp+0h] [rbp-20h] BYREF
v7[0] = v0;
LOBYTE(v1) = 1;
if ( my_thread_global_init_done == 1 )
{
if ( pthread_getspecific(THR_KEY_mysys) )
return 0;
v2 = calloc(1LL, 240LL);
v7[0] = v2;
if ( v2 )
{
v3 = v2;
pthread_setspecific(THR_KEY_mysys, v2);
*(_QWORD *)(v3 + 200) = pthread_self();
my_thread_init_thr_mutex(v3);
*(_QWORD *)(v3 + 184) = (char *)v7 + (_QWORD)my_thread_stack_size;
if ( THR_LOCK_threads[8] )
my_thread_init_cold_1();
else
pthread_mutex_lock(THR_LOCK_threads);
v4 = thread_id + 1;
thread_id = v4;
v5 = v7[0];
*(_QWORD *)(v7[0] + 216LL) = v4;
*(_QWORD *)(v5 + 208) = v4;
++THR_thread_count;
if ( THR_LOCK_threads[8] )
PSI_server[44]();
pthread_mutex_unlock(THR_LOCK_threads);
*(_BYTE *)(v7[0] + 232LL) = 1;
return 0;
}
}
return v1;
}
|
my_thread_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV BL,0x1
CMP byte ptr [0x004d6a80],0x1
JNZ 0x001498c5
LEA R15,[0x4d6a84]
MOV EDI,dword ptr [R15]
CALL 0x00126540
TEST RAX,RAX
JNZ 0x001498c3
MOV EDI,0x1
MOV ESI,0xf0
CALL 0x00126230
MOV qword ptr [RBP + -0x20],RAX
TEST RAX,RAX
JZ 0x001498c5
MOV R14,RAX
MOV EDI,dword ptr [R15]
MOV RSI,RAX
CALL 0x001260c0
CALL 0x001262c0
MOV qword ptr [R14 + 0xc8],RAX
MOV RDI,R14
CALL 0x001496e3
LEA RAX,[0x41c6c0]
LEA RCX,[RBP + -0x20]
ADD RCX,qword ptr [RAX]
MOV qword ptr [R14 + 0xb8],RCX
LEA RBX,[0x4d69b8]
CMP qword ptr [RBX + 0x40],0x0
JNZ 0x001498d2
LEA RDI,[0x4d69b8]
CALL 0x001264d0
LAB_00149877:
MOV RAX,qword ptr [0x004d6a88]
INC RAX
MOV qword ptr [0x004d6a88],RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV qword ptr [RCX + 0xd8],RAX
MOV qword ptr [RCX + 0xd0],RAX
LEA RAX,[0x4d67b8]
INC dword ptr [RAX]
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JNZ 0x001498d9
LAB_001498ac:
LEA RDI,[0x4d69b8]
CALL 0x00126250
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0xe8],0x1
LAB_001498c3:
XOR EBX,EBX
LAB_001498c5:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001498d2:
CALL 0x0012b9c0
JMP 0x00149877
LAB_001498d9:
LEA RAX,[0x41ced8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001498ac
|
ulong my_thread_init(void)
{
void *pvVar1;
pthread_t pVar2;
long lVar3;
int8 unaff_RBX;
ulong uVar4;
void *local_28;
uVar4 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (my_thread_global_init_done == '\x01') {
pvVar1 = pthread_getspecific(THR_KEY_mysys);
if (pvVar1 == (void *)0x0) {
pvVar1 = calloc(1,0xf0);
if (pvVar1 == (void *)0x0) goto LAB_001498c5;
local_28 = pvVar1;
pthread_setspecific(THR_KEY_mysys,pvVar1);
pVar2 = pthread_self();
*(pthread_t *)((long)pvVar1 + 200) = pVar2;
my_thread_init_thr_mutex(pvVar1);
*(long *)((long)pvVar1 + 0xb8) = (long)&local_28 + my_thread_stack_size;
if (THR_LOCK_threads._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_threads);
}
else {
my_thread_init_cold_1();
}
lVar3 = thread_id + 1;
thread_id = lVar3;
*(long *)((long)local_28 + 0xd8) = lVar3;
*(long *)((long)local_28 + 0xd0) = lVar3;
THR_thread_count = THR_thread_count + 1;
if (THR_LOCK_threads._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_threads);
*(int1 *)((long)local_28 + 0xe8) = 1;
}
uVar4 = 0;
}
LAB_001498c5:
return uVar4 & 0xffffffff;
}
|
|
62,348 |
minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&)
|
monkey531[P]llama/common/minja.hpp
|
MacroTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p)
: TemplateToken(Type::Macro, location, pre, post), name(std::move(n)), params(std::move(p)) {}
|
O2
|
cpp
|
minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&):
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %r8d
movl %edx, %ecx
movq %rsi, %rdx
movq %rdi, %r15
pushq $0xd
popq %rsi
callq 0x6218e
leaq 0x8a7dd(%rip), %rax # 0xfcde8
addq $0x10, %rax
movq %rax, (%r15)
andq $0x0, 0x38(%r15)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x30(%r15)
andq $0x0, (%r14)
movups (%rbx), %xmm0
movups %xmm0, 0x40(%r15)
movq 0x10(%rbx), %rax
movq %rax, 0x50(%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
popq %rbx
popq %r14
popq %r15
retq
|
_ZN5minja18MacroTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_INS_10ExpressionEEESaISJ_EE:
push r15
push r14
push rbx
mov rbx, r9
mov r14, r8
mov r8d, ecx
mov ecx, edx
mov rdx, rsi
mov r15, rdi
push 0Dh
pop rsi
call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling)
lea rax, _ZTVN5minja18MacroTemplateTokenE; `vtable for'minja::MacroTemplateToken
add rax, 10h
mov [r15], rax
and qword ptr [r15+38h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r15+30h], xmm0
and qword ptr [r14], 0
movups xmm0, xmmword ptr [rbx]
movups xmmword ptr [r15+40h], xmm0
mov rax, [rbx+10h]
mov [r15+50h], rax
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
and qword ptr [rbx+10h], 0
pop rbx
pop r14
pop r15
retn
|
long long minja::MacroTemplateToken::MacroTemplateToken(
long long a1,
long long a2,
int a3,
int a4,
__int128 *a5,
long long a6)
{
__int128 v8; // xmm0
long long result; // rax
minja::TemplateToken::TemplateToken(a1, 13, a2, a3, a4);
*(_QWORD *)a1 = &`vtable for'minja::MacroTemplateToken + 2;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a5 = 0LL;
*(_OWORD *)(a1 + 64) = *(_OWORD *)a6;
result = *(_QWORD *)(a6 + 16);
*(_QWORD *)(a1 + 80) = result;
*(_OWORD *)a6 = 0LL;
*(_QWORD *)(a6 + 16) = 0LL;
return result;
}
|
MacroTemplateToken:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,R9
MOV R14,R8
MOV R8D,ECX
MOV ECX,EDX
MOV RDX,RSI
MOV R15,RDI
PUSH 0xd
POP RSI
CALL 0x0016218e
LEA RAX,[0x1fcde8]
ADD RAX,0x10
MOV qword ptr [R15],RAX
AND qword ptr [R15 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x30],XMM0
AND qword ptr [R14],0x0
MOVUPS XMM0,xmmword ptr [RBX]
MOVUPS xmmword ptr [R15 + 0x40],XMM0
MOV RAX,qword ptr [RBX + 0x10]
MOV qword ptr [R15 + 0x50],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RBX + 0x10],0x0
POP RBX
POP R14
POP R15
RET
|
/* minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&,
std::vector<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> >,
std::allocator<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> > > >&&) */
void __thiscall
minja::MacroTemplateToken::MacroTemplateToken
(MacroTemplateToken *this,int8 param_1,int4 param_3,int4 param_4,
int8 *param_5,int8 *param_6)
{
int8 uVar1;
TemplateToken::TemplateToken((TemplateToken *)this,0xd,param_1,param_3,param_4);
*(int ***)this = &PTR__MacroTemplateToken_001fcdf8;
*(int8 *)(this + 0x38) = 0;
uVar1 = param_5[1];
param_5[1] = 0;
*(int8 *)(this + 0x30) = *param_5;
*(int8 *)(this + 0x38) = uVar1;
*param_5 = 0;
uVar1 = param_6[1];
*(int8 *)(this + 0x40) = *param_6;
*(int8 *)(this + 0x48) = uVar1;
*(int8 *)(this + 0x50) = param_6[2];
*param_6 = 0;
param_6[1] = 0;
param_6[2] = 0;
return;
}
|
|
62,349 |
my_convert
|
eloqsql/strings/ctype.c
|
uint32
my_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs,
const char *from, uint32 from_length,
CHARSET_INFO *from_cs, uint *errors)
{
uint32 length, length2;
/*
If any of the character sets is not ASCII compatible,
immediately switch to slow mb_wc->wc_mb method.
*/
if ((to_cs->state | from_cs->state) & MY_CS_NONASCII)
return my_convert_using_func(to, to_length,
to_cs, to_cs->cset->wc_mb,
from, from_length,
from_cs, from_cs->cset->mb_wc,
errors);
length= length2= MY_MIN(to_length, from_length);
#if defined(__i386__) || defined(__x86_64__)
/*
Special loop for i386, it allows to refer to a
non-aligned memory block as UINT32, which makes
it possible to copy four bytes at once. This
gives about 10% performance improvement comparing
to byte-by-byte loop.
*/
for ( ; length >= 4; length-= 4, from+= 4, to+= 4)
{
if ((*(uint32*)from) & 0x80808080)
break;
*((uint32*) to)= *((const uint32*) from);
}
#endif /* __i386__ */
for (; ; *to++= *from++, length--)
{
if (!length)
{
*errors= 0;
return length2;
}
if (*((unsigned char*) from) > 0x7F) /* A non-ASCII character */
{
uint32 copied_length= length2 - length;
to_length-= copied_length;
from_length-= copied_length;
return copied_length + my_convert_using_func(to, to_length, to_cs,
to_cs->cset->wc_mb,
from, from_length, from_cs,
from_cs->cset->mb_wc,
errors);
}
}
DBUG_ASSERT(FALSE); // Should never get to here
return 0; // Make compiler happy
}
|
O3
|
c
|
my_convert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %rax
movl %r8d, %r9d
movq %rcx, %r8
movq 0x10(%rbp), %r10
movl 0xc(%rax), %ecx
orl 0xc(%rdx), %ecx
btl $0xd, %ecx
jb 0x35dfc
cmpl %r9d, %esi
movl %r9d, %ebx
cmovbl %esi, %ebx
movl %ebx, %ecx
cmpl $0x4, %ebx
jb 0x35dd5
movl (%r8), %r11d
testl $0x80808080, %r11d # imm = 0x80808080
jne 0x35dd9
movl %r11d, (%rdi)
addl $-0x4, %ecx
addq $0x4, %r8
addq $0x4, %rdi
cmpl $0x3, %ecx
ja 0x35db6
testl %ecx, %ecx
je 0x35df3
movl %ecx, %r14d
xorl %r15d, %r15d
movb (%r8,%r15), %cl
testb %cl, %cl
js 0x35e29
movb %cl, (%rdi,%r15)
incq %r15
cmpl %r15d, %r14d
jne 0x35ddf
movl $0x0, (%r10)
jmp 0x35e6e
movl %esi, %esi
movq 0xb8(%rdx), %rcx
movq 0x30(%rcx), %rcx
movl %r9d, %r9d
movq 0xb8(%rax), %r11
subq $0x8, %rsp
pushq %r10
pushq 0x28(%r11)
pushq %rax
callq 0x35c8b
addq $0x28, %rsp
jmp 0x35e74
addl %r14d, %esi
subl %ebx, %esi
subl %r15d, %esi
addl %r14d, %r9d
subl %ebx, %r9d
subl %r15d, %r9d
movq 0xb8(%rdx), %rcx
movq 0x30(%rcx), %rcx
movq 0xb8(%rax), %r11
addq %r15, %rdi
addq %r15, %r8
subq $0x8, %rsp
pushq %r10
pushq 0x28(%r11)
pushq %rax
callq 0x35c8b
addq $0x20, %rsp
subl %r14d, %ebx
addl %r15d, %ebx
addl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
my_convert:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rax, r9
mov r9d, r8d
mov r8, rcx
mov r10, [rbp+arg_0]
mov ecx, [rax+0Ch]
or ecx, [rdx+0Ch]
bt ecx, 0Dh
jb short loc_35DFC
cmp esi, r9d
mov ebx, r9d
cmovb ebx, esi
mov ecx, ebx
cmp ebx, 4
jb short loc_35DD5
loc_35DB6:
mov r11d, [r8]
test r11d, 80808080h
jnz short loc_35DD9
mov [rdi], r11d
add ecx, 0FFFFFFFCh
add r8, 4
add rdi, 4
cmp ecx, 3
ja short loc_35DB6
loc_35DD5:
test ecx, ecx
jz short loc_35DF3
loc_35DD9:
mov r14d, ecx
xor r15d, r15d
loc_35DDF:
mov cl, [r8+r15]
test cl, cl
js short loc_35E29
mov [rdi+r15], cl
inc r15
cmp r14d, r15d
jnz short loc_35DDF
loc_35DF3:
mov dword ptr [r10], 0
jmp short loc_35E6E
loc_35DFC:
mov esi, esi
mov rcx, [rdx+0B8h]
mov rcx, [rcx+30h]
mov r9d, r9d
mov r11, [rax+0B8h]
sub rsp, 8
push r10
push qword ptr [r11+28h]
push rax
call my_convert_using_func
add rsp, 28h
jmp short loc_35E74
loc_35E29:
add esi, r14d
sub esi, ebx
sub esi, r15d
add r9d, r14d
sub r9d, ebx
sub r9d, r15d
mov rcx, [rdx+0B8h]
mov rcx, [rcx+30h]
mov r11, [rax+0B8h]
add rdi, r15
add r8, r15
sub rsp, 8
push r10
push qword ptr [r11+28h]
push rax
call my_convert_using_func
add rsp, 20h
sub ebx, r14d
add ebx, r15d
add ebx, eax
loc_35E6E:
mov eax, ebx
add rsp, 8
loc_35E74:
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long my_convert(
_DWORD *a1,
unsigned int a2,
long long a3,
long long a4,
unsigned int a5,
long long a6,
_DWORD *a7)
{
_DWORD *v9; // r8
unsigned int v10; // ebx
unsigned int v11; // ecx
unsigned int v12; // r14d
long long v13; // r15
char v14; // cl
v9 = (_DWORD *)a4;
if ( ((*(_DWORD *)(a3 + 12) | *(_DWORD *)(a6 + 12)) & 0x2000) != 0 )
return my_convert_using_func(
(long long)a1,
a2,
a3,
*(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a3 + 184) + 48LL),
a4,
a5,
a6,
*(long long ( **)(long long, long long *, long long, unsigned long long))(*(_QWORD *)(a6 + 184) + 40LL),
a7);
v10 = a5;
if ( a2 < a5 )
v10 = a2;
v11 = v10;
if ( v10 >= 4 )
{
while ( (*v9 & 0x80808080) == 0 )
{
*a1 = *v9;
v11 -= 4;
++v9;
++a1;
if ( v11 <= 3 )
goto LABEL_7;
}
goto LABEL_8;
}
LABEL_7:
if ( v11 )
{
LABEL_8:
v12 = v11;
v13 = 0LL;
do
{
v14 = *((_BYTE *)v9 + v13);
if ( v14 < 0 )
return (unsigned int)my_convert_using_func(
(long long)a1 + v13,
v12 + a2 - v10 - (unsigned int)v13,
a3,
*(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a3 + 184)
+ 48LL),
(long long)v9 + v13,
v12 + a5 - v10 - (unsigned int)v13,
a6,
*(long long ( **)(long long, long long *, long long, unsigned long long))(*(_QWORD *)(a6 + 184) + 40LL),
a7)
+ (_DWORD)v13
+ v10
- v12;
*((_BYTE *)a1 + v13++) = v14;
}
while ( v12 != (_DWORD)v13 );
}
*a7 = 0;
return v10;
}
|
my_convert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RAX,R9
MOV R9D,R8D
MOV R8,RCX
MOV R10,qword ptr [RBP + 0x10]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,dword ptr [RDX + 0xc]
BT ECX,0xd
JC 0x00135dfc
CMP ESI,R9D
MOV EBX,R9D
CMOVC EBX,ESI
MOV ECX,EBX
CMP EBX,0x4
JC 0x00135dd5
LAB_00135db6:
MOV R11D,dword ptr [R8]
TEST R11D,0x80808080
JNZ 0x00135dd9
MOV dword ptr [RDI],R11D
ADD ECX,-0x4
ADD R8,0x4
ADD RDI,0x4
CMP ECX,0x3
JA 0x00135db6
LAB_00135dd5:
TEST ECX,ECX
JZ 0x00135df3
LAB_00135dd9:
MOV R14D,ECX
XOR R15D,R15D
LAB_00135ddf:
MOV CL,byte ptr [R8 + R15*0x1]
TEST CL,CL
JS 0x00135e29
MOV byte ptr [RDI + R15*0x1],CL
INC R15
CMP R14D,R15D
JNZ 0x00135ddf
LAB_00135df3:
MOV dword ptr [R10],0x0
JMP 0x00135e6e
LAB_00135dfc:
MOV ESI,ESI
MOV RCX,qword ptr [RDX + 0xb8]
MOV RCX,qword ptr [RCX + 0x30]
MOV R9D,R9D
MOV R11,qword ptr [RAX + 0xb8]
SUB RSP,0x8
PUSH R10
PUSH qword ptr [R11 + 0x28]
PUSH RAX
CALL 0x00135c8b
ADD RSP,0x28
JMP 0x00135e74
LAB_00135e29:
ADD ESI,R14D
SUB ESI,EBX
SUB ESI,R15D
ADD R9D,R14D
SUB R9D,EBX
SUB R9D,R15D
MOV RCX,qword ptr [RDX + 0xb8]
MOV RCX,qword ptr [RCX + 0x30]
MOV R11,qword ptr [RAX + 0xb8]
ADD RDI,R15
ADD R8,R15
SUB RSP,0x8
PUSH R10
PUSH qword ptr [R11 + 0x28]
PUSH RAX
CALL 0x00135c8b
ADD RSP,0x20
SUB EBX,R14D
ADD EBX,R15D
ADD EBX,EAX
LAB_00135e6e:
MOV EAX,EBX
ADD RSP,0x8
LAB_00135e74:
POP RBX
POP R14
POP R15
POP RBP
RET
|
ulong my_convert(uint *param_1,uint param_2,long param_3,uint *param_4,uint param_5,long param_6,
int4 *param_7)
{
int iVar1;
ulong uVar2;
uint uVar3;
uint uVar5;
int iVar6;
long lVar7;
ulong uVar4;
uVar2 = (ulong)param_5;
if (((*(uint *)(param_6 + 0xc) | *(uint *)(param_3 + 0xc)) >> 0xd & 1) == 0) {
if (param_2 < param_5) {
uVar2 = (ulong)param_2;
}
uVar5 = (uint)uVar2;
uVar3 = uVar5;
uVar4 = uVar2;
while (3 < uVar3) {
uVar3 = (uint)uVar4;
if ((*param_4 & 0x80808080) != 0) goto LAB_00135dd9;
*param_1 = *param_4;
uVar3 = uVar3 - 4;
uVar4 = (ulong)uVar3;
param_4 = param_4 + 1;
param_1 = param_1 + 1;
}
if (uVar3 != 0) {
LAB_00135dd9:
lVar7 = 0;
do {
if (*(char *)((long)param_4 + lVar7) < '\0') {
iVar6 = (int)lVar7;
iVar1 = my_convert_using_func
((long)param_1 + lVar7,((param_2 + uVar3) - uVar5) - iVar6,param_3,
*(int8 *)(*(long *)(param_3 + 0xb8) + 0x30),(long)param_4 + lVar7
,((param_5 + uVar3) - uVar5) - iVar6,param_6,
*(int8 *)(*(long *)(param_6 + 0xb8) + 0x28),param_7);
return (ulong)((uVar5 - uVar3) + iVar6 + iVar1);
}
*(char *)((long)param_1 + lVar7) = *(char *)((long)param_4 + lVar7);
lVar7 = lVar7 + 1;
} while (uVar3 != (uint)lVar7);
}
*param_7 = 0;
}
else {
uVar2 = my_convert_using_func
(param_1,param_2,param_3,*(int8 *)(*(long *)(param_3 + 0xb8) + 0x30),
param_4,uVar2,param_6,*(int8 *)(*(long *)(param_6 + 0xb8) + 0x28),
param_7);
}
return uVar2;
}
|
|
62,350 |
test_soft_max_back::vars[abi:cxx11]()
|
monkey531[P]llama/tests/test-backend-ops.cpp
|
std::string vars() override {
return VARS_TO_STR4(type, ne, scale, max_bias);
}
|
O2
|
cpp
|
test_soft_max_back::vars[abi:cxx11]():
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp # imm = 0x1A0
movq %rsi, %r14
movq %rdi, %rbx
movl 0x38(%rsi), %esi
leaq 0x180(%rsp), %r15
movq %r15, %rdi
callq 0x18e2b
leaq 0x7df2(%rip), %rsi # 0x30db6
leaq 0xc0(%rsp), %rdi
movq %r15, %rdx
callq 0x1ca87
leaq 0x7d9c(%rip), %rdx # 0x30d77
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x1cff2
leaq 0x40(%r14), %rsi
leaq 0x80(%rsp), %rdi
callq 0x18e53
leaq 0x7e24(%rip), %rsi # 0x30e2c
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x1ca87
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0x1cf8b
leaq 0x7d36(%rip), %rdx # 0x30d77
leaq 0x120(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x1cff2
leaq 0x60(%r14), %rsi
leaq 0x40(%rsp), %rdi
callq 0x18fe5
leaq 0x7ed8(%rip), %rsi # 0x30f43
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x1ca87
leaq 0x140(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x1cf8b
leaq 0x7cdc(%rip), %rdx # 0x30d77
leaq 0x160(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x1cff2
addq $0x64, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0x18fe5
leaq 0x7fbc(%rip), %rsi # 0x31082
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x1ca87
leaq 0x160(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x1cf8b
leaq 0x20(%rsp), %rdi
callq 0xf280
movq %rsp, %rdi
callq 0xf280
leaq 0x160(%rsp), %rdi
callq 0xf280
leaq 0x140(%rsp), %rdi
callq 0xf280
leaq 0x60(%rsp), %rdi
callq 0xf280
leaq 0x40(%rsp), %rdi
callq 0xf280
leaq 0x120(%rsp), %rdi
callq 0xf280
leaq 0x100(%rsp), %rdi
callq 0xf280
leaq 0xa0(%rsp), %rdi
callq 0xf280
leaq 0x80(%rsp), %rdi
callq 0xf280
leaq 0xe0(%rsp), %rdi
callq 0xf280
leaq 0xc0(%rsp), %rdi
callq 0xf280
leaq 0x180(%rsp), %rdi
callq 0xf280
movq %rbx, %rax
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xf280
jmp 0x291a5
movq %rax, %rbx
movq %rsp, %rdi
callq 0xf280
jmp 0x291b2
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0xf280
jmp 0x291c4
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0xf280
jmp 0x291d6
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xf280
leaq 0x40(%rsp), %rdi
callq 0xf280
leaq 0x120(%rsp), %rdi
callq 0xf280
leaq 0x100(%rsp), %rdi
callq 0xf280
leaq 0xa0(%rsp), %rdi
callq 0xf280
leaq 0x80(%rsp), %rdi
callq 0xf280
leaq 0xe0(%rsp), %rdi
callq 0xf280
leaq 0xc0(%rsp), %rdi
callq 0xf280
leaq 0x180(%rsp), %rdi
callq 0xf280
movq %rbx, %rdi
callq 0xfb30
movq %rax, %rbx
jmp 0x291e0
movq %rax, %rbx
jmp 0x291ea
movq %rax, %rbx
jmp 0x291f7
movq %rax, %rbx
jmp 0x29204
movq %rax, %rbx
jmp 0x29211
movq %rax, %rbx
jmp 0x2921e
movq %rax, %rbx
jmp 0x2922b
movq %rax, %rbx
jmp 0x29238
nop
|
_ZN18test_soft_max_back4varsB5cxx11Ev:
push r15
push r14
push rbx
sub rsp, 1A0h
mov r14, rsi
mov rbx, rdi
mov esi, [rsi+38h]
lea r15, [rsp+1B8h+var_38]
mov rdi, r15
call _ZL10var_to_strB5cxx119ggml_type; var_to_str(ggml_type)
lea rsi, aPoolType+5; "type="
lea rdi, [rsp+1B8h+var_F8]
mov rdx, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rdx, asc_30D77; ","
lea rdi, [rsp+1B8h+var_D8]
lea rsi, [rsp+1B8h+var_F8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rsi, [r14+40h]
lea rdi, [rsp+1B8h+var_138]
call _ZL10var_to_strIlLm4EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt5arrayIT_XT0_EE; var_to_str<long,4ul>(std::array<long,4ul> const&)
lea rsi, aNe; "ne="
lea rdi, [rsp+1B8h+var_118]
lea rdx, [rsp+1B8h+var_138]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rdi, [rsp+1B8h+var_B8]
lea rsi, [rsp+1B8h+var_D8]
lea rdx, [rsp+1B8h+var_118]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdx, asc_30D77; ","
lea rdi, [rsp+1B8h+var_98]
lea rsi, [rsp+1B8h+var_B8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rsi, [r14+60h]
lea rdi, [rsp+1B8h+var_178]
call _ZL10var_to_strIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; var_to_str<float>(float const&)
lea rsi, aScale; "scale="
lea rdi, [rsp+1B8h+var_158]
lea rdx, [rsp+1B8h+var_178]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rdi, [rsp+1B8h+var_78]
lea rsi, [rsp+1B8h+var_98]
lea rdx, [rsp+1B8h+var_158]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdx, asc_30D77; ","
lea rdi, [rsp+1B8h+var_58]
lea rsi, [rsp+1B8h+var_78]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
add r14, 64h ; 'd'
mov rdi, rsp
mov rsi, r14
call _ZL10var_to_strIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; var_to_str<float>(float const&)
lea rsi, aMaxBias; "max_bias="
lea rdi, [rsp+1B8h+var_198]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rsi, [rsp+1B8h+var_58]
lea rdx, [rsp+1B8h+var_198]
mov rdi, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdi, [rsp+1B8h+var_198]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_78]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_158]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_178]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_B8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_118]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_138]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_D8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_F8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1B8h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 1A0h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_291A5
mov rbx, rax
loc_291A5:
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_291B2
mov rbx, rax
loc_291B2:
lea rdi, [rsp+arg_158]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_291C4
mov rbx, rax
loc_291C4:
lea rdi, [rsp+arg_138]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_291D6
mov rbx, rax
loc_291D6:
lea rdi, [rsp+arg_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_291E0:
lea rdi, [rsp+arg_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_291EA:
lea rdi, [rsp+arg_118]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_291F7:
lea rdi, [rsp+arg_F8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_29204:
lea rdi, [rsp+arg_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_29211:
lea rdi, [rsp+arg_78]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_2921E:
lea rdi, [rsp+arg_D8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_2922B:
lea rdi, [rsp+arg_B8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_29238:
lea rdi, [rsp+arg_178]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
mov rbx, rax
jmp short loc_291E0
mov rbx, rax
jmp short loc_291EA
mov rbx, rax
jmp short loc_291F7
mov rbx, rax
jmp short loc_29204
mov rbx, rax
jmp short loc_29211
mov rbx, rax
jmp short loc_2921E
mov rbx, rax
jmp short loc_2922B
mov rbx, rax
jmp short loc_29238
|
long long test_soft_max_back::vars[abi:cxx11](long long a1, long long a2)
{
_BYTE v3[32]; // [rsp+0h] [rbp-1B8h] BYREF
_QWORD v4[4]; // [rsp+20h] [rbp-198h] BYREF
_BYTE v5[32]; // [rsp+40h] [rbp-178h] BYREF
_QWORD v6[4]; // [rsp+60h] [rbp-158h] BYREF
_BYTE v7[32]; // [rsp+80h] [rbp-138h] BYREF
_QWORD v8[4]; // [rsp+A0h] [rbp-118h] BYREF
_BYTE v9[32]; // [rsp+C0h] [rbp-F8h] BYREF
_QWORD v10[4]; // [rsp+E0h] [rbp-D8h] BYREF
_BYTE v11[32]; // [rsp+100h] [rbp-B8h] BYREF
_QWORD v12[4]; // [rsp+120h] [rbp-98h] BYREF
_BYTE v13[32]; // [rsp+140h] [rbp-78h] BYREF
_QWORD v14[4]; // [rsp+160h] [rbp-58h] BYREF
_BYTE v15[56]; // [rsp+180h] [rbp-38h] BYREF
var_to_str[abi:cxx11]((long long)v15, *(_DWORD *)(a2 + 56));
std::operator+<char>((long long)v9, (long long)"type=", (long long)v15);
std::operator+<char>((long long)v10, (long long)v9, (long long)",");
var_to_str<long,4ul>((long long)v7, a2 + 64);
std::operator+<char>((long long)v8, (long long)"ne=", (long long)v7);
std::operator+<char>((long long)v11, v10, v8);
std::operator+<char>((long long)v12, (long long)v11, (long long)",");
var_to_str<float>((std::__cxx11 *)v5, (float *)(a2 + 96));
std::operator+<char>((long long)v6, (long long)"scale=", (long long)v5);
std::operator+<char>((long long)v13, v12, v6);
std::operator+<char>((long long)v14, (long long)v13, (long long)",");
var_to_str<float>((std::__cxx11 *)v3, (float *)(a2 + 100));
std::operator+<char>((long long)v4, (long long)"max_bias=", (long long)v3);
std::operator+<char>(a1, v14, v4);
std::string::~string(v4);
std::string::~string(v3);
std::string::~string(v14);
std::string::~string(v13);
std::string::~string(v6);
std::string::~string(v5);
std::string::~string(v12);
std::string::~string(v11);
std::string::~string(v8);
std::string::~string(v7);
std::string::~string(v10);
std::string::~string(v9);
std::string::~string(v15);
return a1;
}
|
vars[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x1a0
MOV R14,RSI
MOV RBX,RDI
MOV ESI,dword ptr [RSI + 0x38]
LEA R15,[RSP + 0x180]
MOV RDI,R15
CALL 0x00118e2b
LAB_00128fbd:
LEA RSI,[0x130db6]
LEA RDI,[RSP + 0xc0]
MOV RDX,R15
CALL 0x0011ca87
LAB_00128fd4:
LEA RDX,[0x130d77]
LEA RDI,[RSP + 0xe0]
LEA RSI,[RSP + 0xc0]
CALL 0x0011cff2
LEA RSI,[R14 + 0x40]
LAB_00128ff4:
LEA RDI,[RSP + 0x80]
CALL 0x00118e53
LAB_00129001:
LEA RSI,[0x130e2c]
LEA RDI,[RSP + 0xa0]
LEA RDX,[RSP + 0x80]
CALL 0x0011ca87
LAB_0012901d:
LEA RDI,[RSP + 0x100]
LEA RSI,[RSP + 0xe0]
LEA RDX,[RSP + 0xa0]
CALL 0x0011cf8b
LAB_0012903a:
LEA RDX,[0x130d77]
LEA RDI,[RSP + 0x120]
LEA RSI,[RSP + 0x100]
CALL 0x0011cff2
LEA RSI,[R14 + 0x60]
LAB_0012905a:
LEA RDI,[RSP + 0x40]
CALL 0x00118fe5
LAB_00129064:
LEA RSI,[0x130f43]
LEA RDI,[RSP + 0x60]
LEA RDX,[RSP + 0x40]
CALL 0x0011ca87
LAB_0012907a:
LEA RDI,[RSP + 0x140]
LEA RSI,[RSP + 0x120]
LEA RDX,[RSP + 0x60]
CALL 0x0011cf8b
LAB_00129094:
LEA RDX,[0x130d77]
LEA RDI,[RSP + 0x160]
LEA RSI,[RSP + 0x140]
CALL 0x0011cff2
ADD R14,0x64
LAB_001290b4:
MOV RDI,RSP
MOV RSI,R14
CALL 0x00118fe5
LAB_001290bf:
LEA RSI,[0x131082]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0011ca87
LAB_001290d3:
LEA RSI,[RSP + 0x160]
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011cf8b
LAB_001290e8:
LEA RDI,[RSP + 0x20]
CALL 0x0010f280
MOV RDI,RSP
CALL 0x0010f280
LEA RDI,[RSP + 0x160]
CALL 0x0010f280
LEA RDI,[RSP + 0x140]
CALL 0x0010f280
LEA RDI,[RSP + 0x60]
CALL 0x0010f280
LEA RDI,[RSP + 0x40]
CALL 0x0010f280
LEA RDI,[RSP + 0x120]
CALL 0x0010f280
LEA RDI,[RSP + 0x100]
CALL 0x0010f280
LEA RDI,[RSP + 0xa0]
CALL 0x0010f280
LEA RDI,[RSP + 0x80]
CALL 0x0010f280
LEA RDI,[RSP + 0xe0]
CALL 0x0010f280
LEA RDI,[RSP + 0xc0]
CALL 0x0010f280
LEA RDI,[RSP + 0x180]
CALL 0x0010f280
MOV RAX,RBX
ADD RSP,0x1a0
POP RBX
POP R14
POP R15
RET
|
/* test_soft_max_back::vars[abi:cxx11]() */
void test_soft_max_back::vars_abi_cxx11_(void)
{
long in_RSI;
string *in_RDI;
string asStack_1b8 [32];
string local_198 [32];
string local_178 [32];
string local_158 [32];
string local_138 [32];
string local_118 [32];
string local_f8 [32];
string local_d8 [32];
string local_b8 [32];
string local_98 [32];
string local_78 [32];
string local_58 [32];
string local_38 [32];
var_to_str_abi_cxx11_(local_38,*(int4 *)(in_RSI + 0x38));
/* try { // try from 00128fbd to 00128fd3 has its CatchHandler @ 00129270 */
std::operator+((char *)local_f8,(string *)0x130db6);
/* try { // try from 00128fd4 to 00128fef has its CatchHandler @ 0012926b */
std::operator+(local_d8,(char *)local_f8);
/* try { // try from 00128ff4 to 00129000 has its CatchHandler @ 00129266 */
var_to_str<long,4ul>(local_138);
/* try { // try from 00129001 to 0012901c has its CatchHandler @ 00129261 */
std::operator+((char *)local_118,(string *)&DAT_00130e2c);
/* try { // try from 0012901d to 00129039 has its CatchHandler @ 0012925c */
std::operator+(local_b8,local_d8);
/* try { // try from 0012903a to 00129055 has its CatchHandler @ 00129257 */
std::operator+(local_98,(char *)local_b8);
/* try { // try from 0012905a to 00129063 has its CatchHandler @ 00129252 */
var_to_str<float>((float *)local_178);
/* try { // try from 00129064 to 00129079 has its CatchHandler @ 0012924d */
std::operator+((char *)local_158,(string *)"scale=");
/* try { // try from 0012907a to 00129093 has its CatchHandler @ 001291d3 */
std::operator+(local_78,local_98);
/* try { // try from 00129094 to 001290af has its CatchHandler @ 001291c1 */
std::operator+(local_58,(char *)local_78);
/* try { // try from 001290b4 to 001290be has its CatchHandler @ 001291af */
var_to_str<float>((float *)asStack_1b8);
/* try { // try from 001290bf to 001290d2 has its CatchHandler @ 001291a2 */
std::operator+((char *)local_198,(string *)"max_bias=");
/* try { // try from 001290d3 to 001290e7 has its CatchHandler @ 00129193 */
std::operator+(in_RDI,local_58);
std::__cxx11::string::~string(local_198);
std::__cxx11::string::~string(asStack_1b8);
std::__cxx11::string::~string(local_58);
std::__cxx11::string::~string(local_78);
std::__cxx11::string::~string(local_158);
std::__cxx11::string::~string(local_178);
std::__cxx11::string::~string(local_98);
std::__cxx11::string::~string(local_b8);
std::__cxx11::string::~string(local_118);
std::__cxx11::string::~string(local_138);
std::__cxx11::string::~string(local_d8);
std::__cxx11::string::~string(local_f8);
std::__cxx11::string::~string(local_38);
return;
}
|
|
62,351 |
lf_hash_iterate
|
eloqsql/mysys/lf_hash.cc
|
int lf_hash_iterate(LF_HASH *hash, LF_PINS *pins,
my_hash_walk_action action, void *argument)
{
CURSOR cursor;
uint bucket= 0;
int res;
LF_SLIST **el;
el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket);
if (unlikely(!el))
return 0; /* if there's no bucket==0, the hash is empty */
if (*el == NULL && unlikely(initialize_bucket(hash, el, bucket, pins)))
return 0; /* if there's no bucket==0, the hash is empty */
res= l_find(el, 0, 0, (uchar*)argument, 0, &cursor, pins, action);
lf_unpin(pins, 2);
lf_unpin(pins, 1);
lf_unpin(pins, 0);
return res;
}
|
O0
|
cpp
|
lf_hash_iterate:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x10(%rbp), %rdi
movl -0x44(%rbp), %esi
callq 0xfcdc0
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0xfe122
movl $0x0, -0x4(%rbp)
jmp 0xfe1d1
movq -0x50(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xfe151
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x44(%rbp), %edx
movq -0x18(%rbp), %rcx
callq 0xfd800
cmpl $0x0, %eax
je 0xfe151
movl $0x0, -0x4(%rbp)
jmp 0xfe1d1
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %r10
movq -0x20(%rbp), %rax
xorl %edx, %edx
movl %edx, %r8d
xorl %edx, %edx
leaq -0x40(%rbp), %r9
movq %r8, %rsi
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xfe1e0
movl %eax, -0x48(%rbp)
jmp 0xfe182
jmp 0xfe184
movq -0x18(%rbp), %rcx
movq $0x0, -0x58(%rbp)
movq -0x58(%rbp), %rax
xchgq %rax, 0x10(%rcx)
jmp 0xfe19a
jmp 0xfe19c
jmp 0xfe19e
movq -0x18(%rbp), %rcx
movq $0x0, -0x60(%rbp)
movq -0x60(%rbp), %rax
xchgq %rax, 0x8(%rcx)
jmp 0xfe1b4
jmp 0xfe1b6
jmp 0xfe1b8
movq -0x18(%rbp), %rcx
movq $0x0, -0x68(%rbp)
movq -0x68(%rbp), %rax
xchgq %rax, (%rcx)
movl -0x48(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
|
lf_hash_iterate:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_44], 0
mov rdi, [rbp+var_10]
mov esi, [rbp+var_44]
call lf_dynarray_lvalue
mov [rbp+var_50], rax
cmp [rbp+var_50], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_FE122
mov [rbp+var_4], 0
jmp loc_FE1D1
loc_FE122:
mov rax, [rbp+var_50]
cmp qword ptr [rax], 0
jnz short loc_FE151
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_50]
mov edx, [rbp+var_44]
mov rcx, [rbp+var_18]
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
cmp eax, 0
jz short loc_FE151
mov [rbp+var_4], 0
jmp loc_FE1D1
loc_FE151:
mov rdi, [rbp+var_50]
mov rcx, [rbp+var_28]
mov r10, [rbp+var_18]
mov rax, [rbp+var_20]
xor edx, edx
mov r8d, edx
xor edx, edx
lea r9, [rbp+var_40]
mov rsi, r8
mov [rsp+80h+var_80], r10
mov [rsp+80h+var_78], rax
call _ZL6l_findPP8LF_SLISTPK15charset_info_stjPKhmP6CURSORP7LF_PINSPFcPvSB_E; l_find(LF_SLIST **,charset_info_st const*,uint,uchar const*,ulong,CURSOR *,LF_PINS *,char (*)(void *,void *))
mov [rbp+var_48], eax
jmp short $+2
loc_FE182:
jmp short $+2
loc_FE184:
mov rcx, [rbp+var_18]
mov [rbp+var_58], 0
mov rax, [rbp+var_58]
xchg rax, [rcx+10h]
jmp short $+2
loc_FE19A:
jmp short $+2
loc_FE19C:
jmp short $+2
loc_FE19E:
mov rcx, [rbp+var_18]
mov [rbp+var_60], 0
mov rax, [rbp+var_60]
xchg rax, [rcx+8]
jmp short $+2
loc_FE1B4:
jmp short $+2
loc_FE1B6:
jmp short $+2
loc_FE1B8:
mov rcx, [rbp+var_18]
mov [rbp+var_68], 0
mov rax, [rbp+var_68]
xchg rax, [rcx]
mov eax, [rbp+var_48]
mov [rbp+var_4], eax
loc_FE1D1:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long lf_hash_iterate(long long a1, volatile long long *a2, long long a3, long long a4)
{
volatile signed long long *v5; // [rsp+30h] [rbp-50h]
unsigned int v6; // [rsp+38h] [rbp-48h]
char v7; // [rsp+40h] [rbp-40h] BYREF
long long v8; // [rsp+58h] [rbp-28h]
long long v9; // [rsp+60h] [rbp-20h]
volatile long long *v10; // [rsp+68h] [rbp-18h]
long long v11; // [rsp+70h] [rbp-10h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
v5 = (volatile signed long long *)lf_dynarray_lvalue(a1, 0);
if ( v5 )
{
if ( *v5 || !(unsigned int)initialize_bucket(v11, v5, 0, (long long)v10) )
{
v6 = l_find((_DWORD)v5, 0, 0, v8, 0, (unsigned int)&v7, (long long)v10, v9);
_InterlockedExchange64(v10 + 2, 0LL);
_InterlockedExchange64(v10 + 1, 0LL);
_InterlockedExchange64(v10, 0LL);
return v6;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
|
lf_hash_iterate:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x44],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x44]
CALL 0x001fcdc0
MOV qword ptr [RBP + -0x50],RAX
CMP qword ptr [RBP + -0x50],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001fe122
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001fe1d1
LAB_001fe122:
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX],0x0
JNZ 0x001fe151
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,dword ptr [RBP + -0x44]
MOV RCX,qword ptr [RBP + -0x18]
CALL 0x001fd800
CMP EAX,0x0
JZ 0x001fe151
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001fe1d1
LAB_001fe151:
MOV RDI,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x28]
MOV R10,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
XOR EDX,EDX
MOV R8D,EDX
XOR EDX,EDX
LEA R9,[RBP + -0x40]
MOV RSI,R8
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001fe1e0
MOV dword ptr [RBP + -0x48],EAX
JMP 0x001fe182
LAB_001fe182:
JMP 0x001fe184
LAB_001fe184:
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x58],0x0
MOV RAX,qword ptr [RBP + -0x58]
XCHG qword ptr [RCX + 0x10],RAX
JMP 0x001fe19a
LAB_001fe19a:
JMP 0x001fe19c
LAB_001fe19c:
JMP 0x001fe19e
LAB_001fe19e:
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x60],0x0
MOV RAX,qword ptr [RBP + -0x60]
XCHG qword ptr [RCX + 0x8],RAX
JMP 0x001fe1b4
LAB_001fe1b4:
JMP 0x001fe1b6
LAB_001fe1b6:
JMP 0x001fe1b8
LAB_001fe1b8:
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x68],0x0
MOV RAX,qword ptr [RBP + -0x68]
XCHG qword ptr [RCX],RAX
MOV EAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + -0x4],EAX
LAB_001fe1d1:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
lf_hash_iterate(st_lf_hash *param_1,LF_PINS *param_2,_func_char_void_ptr_void_ptr *param_3,
uchar *param_4)
{
int iVar1;
LF_SLIST **ppLVar2;
CURSOR local_48 [24];
uchar *local_30;
_func_char_void_ptr_void_ptr *local_28;
LF_PINS *local_20;
st_lf_hash *local_18;
int4 local_c;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
ppLVar2 = (LF_SLIST **)lf_dynarray_lvalue(param_1,0);
if (ppLVar2 == (LF_SLIST **)0x0) {
local_c = 0;
}
else {
if ((*ppLVar2 == (LF_SLIST *)0x0) &&
(iVar1 = initialize_bucket(local_18,ppLVar2,0,local_20), iVar1 != 0)) {
return 0;
}
local_c = l_find(ppLVar2,(charset_info_st *)0x0,0,local_30,0,local_48,local_20,local_28);
LOCK();
*(int8 *)(local_20 + 0x10) = 0;
UNLOCK();
LOCK();
*(int8 *)(local_20 + 8) = 0;
UNLOCK();
LOCK();
*(int8 *)local_20 = 0;
UNLOCK();
}
return local_c;
}
|
|
62,352 |
my_mutex_init
|
eloqsql/mysys/thr_mutex.c
|
void my_mutex_init()
{
/* Initialize mutex attributes */
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
/*
Set mutex type to "fast" a.k.a "adaptive"
In this case the thread may steal the mutex from some other thread
that is waiting for the same mutex. This will save us some
context switches but may cause a thread to 'starve forever' while
waiting for the mutex (not likely if the code within the mutex is
short).
*/
pthread_mutexattr_init(&my_fast_mutexattr);
pthread_mutexattr_settype(&my_fast_mutexattr,
PTHREAD_MUTEX_ADAPTIVE_NP);
#endif
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
/*
Set mutex type to "errorcheck"
*/
pthread_mutexattr_init(&my_errorcheck_mutexattr);
pthread_mutexattr_settype(&my_errorcheck_mutexattr,
PTHREAD_MUTEX_ERRORCHECK);
#endif
#if defined(SAFE_MUTEX_DEFINED)
safe_mutex_global_init();
#endif
}
|
O3
|
c
|
my_mutex_init:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x33f6fb(%rip), %rbx # 0x366958
movq %rbx, %rdi
callq 0x24070
movq %rbx, %rdi
movl $0x3, %esi
callq 0x24460
leaq 0x33f6e3(%rip), %rbx # 0x36695c
movq %rbx, %rdi
callq 0x24070
movq %rbx, %rdi
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x24460
|
my_mutex_init:
push rbp
mov rbp, rsp
push rbx
push rax
lea rbx, my_fast_mutexattr
mov rdi, rbx
call _pthread_mutexattr_init
mov rdi, rbx
mov esi, 3
call _pthread_mutexattr_settype
lea rbx, my_errorcheck_mutexattr
mov rdi, rbx
call _pthread_mutexattr_init
mov rdi, rbx
mov esi, 2
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutexattr_settype
|
long long my_mutex_init()
{
pthread_mutexattr_init(&my_fast_mutexattr);
pthread_mutexattr_settype(&my_fast_mutexattr, 3LL);
pthread_mutexattr_init(&my_errorcheck_mutexattr);
return pthread_mutexattr_settype(&my_errorcheck_mutexattr, 2LL);
}
|
my_mutex_init:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
LEA RBX,[0x466958]
MOV RDI,RBX
CALL 0x00124070
MOV RDI,RBX
MOV ESI,0x3
CALL 0x00124460
LEA RBX,[0x46695c]
MOV RDI,RBX
CALL 0x00124070
MOV RDI,RBX
MOV ESI,0x2
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00124460
|
void my_mutex_init(void)
{
pthread_mutexattr_init((pthread_mutexattr_t *)&my_fast_mutexattr);
pthread_mutexattr_settype((pthread_mutexattr_t *)&my_fast_mutexattr,3);
pthread_mutexattr_init((pthread_mutexattr_t *)&my_errorcheck_mutexattr);
pthread_mutexattr_settype((pthread_mutexattr_t *)&my_errorcheck_mutexattr,2);
return;
}
|
|
62,353 |
add_compiled_collation
|
eloqsql/mysys/charset.c
|
void add_compiled_collation(struct charset_info_st *cs)
{
DBUG_ASSERT(cs->number < array_elements(all_charsets));
all_charsets[cs->number]= cs;
cs->state|= MY_CS_AVAILABLE;
if ((my_hash_insert(&charset_name_hash, (uchar*) cs)))
{
#ifndef DBUG_OFF
CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash,
(uchar*) cs->cs_name.str,
cs->cs_name.length);
DBUG_ASSERT(org);
DBUG_ASSERT(org->cs_name.str == cs->cs_name.str);
DBUG_ASSERT(org->cs_name.length == strlen(cs->cs_name.str));
#endif
}
}
|
O3
|
c
|
add_compiled_collation:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rsi
movl (%rdi), %eax
leaq 0xb6dd9f(%rip), %rcx # 0xc01600
movq %rdi, (%rcx,%rax,8)
orb $0x2, 0xd(%rdi)
leaq 0xb71d90(%rip), %rdi # 0xc05600
popq %rbp
jmp 0x9519a
|
add_compiled_collation:
push rbp
mov rbp, rsp
mov rsi, rdi
mov eax, [rdi]
lea rcx, all_charsets
mov [rcx+rax*8], rdi
or byte ptr [rdi+0Dh], 2
lea rdi, charset_name_hash
pop rbp
jmp my_hash_insert
|
long long add_compiled_collation(unsigned int *a1)
{
all_charsets[*a1] = a1;
*((_BYTE *)a1 + 13) |= 2u;
return my_hash_insert(&charset_name_hash, a1);
}
|
add_compiled_collation:
PUSH RBP
MOV RBP,RSP
MOV RSI,RDI
MOV EAX,dword ptr [RDI]
LEA RCX,[0xd01600]
MOV qword ptr [RCX + RAX*0x8],RDI
OR byte ptr [RDI + 0xd],0x2
LEA RDI,[0xd05600]
POP RBP
JMP 0x0019519a
|
void add_compiled_collation(uint *param_1)
{
(&all_charsets)[*param_1] = param_1;
*(byte *)((long)param_1 + 0xd) = *(byte *)((long)param_1 + 0xd) | 2;
my_hash_insert(charset_name_hash,param_1);
return;
}
|
|
62,354 |
ma_pvio_cache_read
|
eloqsql/libmariadb/libmariadb/ma_pvio.c
|
ssize_t ma_pvio_cache_read(MARIADB_PVIO *pvio, uchar *buffer, size_t length)
{
ssize_t r;
if (!pvio)
return -1;
if (!pvio->cache)
return ma_pvio_read(pvio, buffer, length);
if (pvio->cache + pvio->cache_size > pvio->cache_pos)
{
ssize_t remaining = pvio->cache + pvio->cache_size - pvio->cache_pos;
assert(remaining > 0);
r= MIN((ssize_t)length, remaining);
memcpy(buffer, pvio->cache_pos, r);
pvio->cache_pos+= r;
}
else if (length >= PVIO_READ_AHEAD_CACHE_MIN_SIZE)
{
r= ma_pvio_read(pvio, buffer, length);
}
else
{
r= ma_pvio_read(pvio, pvio->cache, PVIO_READ_AHEAD_CACHE_SIZE);
if (r > 0)
{
if (length < (size_t)r)
{
pvio->cache_size= r;
pvio->cache_pos= pvio->cache + length;
r= length;
}
memcpy(buffer, pvio->cache, r);
}
}
return r;
}
|
O0
|
c
|
ma_pvio_cache_read:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x29218
movq $-0x1, -0x8(%rbp)
jmp 0x29359
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2923d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x28e10
movq %rax, -0x8(%rbp)
jmp 0x29359
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x292c4
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jge 0x2928a
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x29292
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x28(%rbp), %rdx
callq 0x13360
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
jmp 0x29351
cmpq $0x800, -0x20(%rbp) # imm = 0x800
jb 0x292e5
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x28e10
movq %rax, -0x28(%rbp)
jmp 0x2934f
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x4000, %edx # imm = 0x4000
callq 0x28e10
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jle 0x2934d
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x29338
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x28(%rbp), %rdx
callq 0x13360
jmp 0x2934f
jmp 0x29351
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_pvio_cache_read:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_10], 0
jnz short loc_29218
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_29359
loc_29218:
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jnz short loc_2923D
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call ma_pvio_read
mov [rbp+var_8], rax
jmp loc_29359
loc_2923D:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
add rax, [rcx+18h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jbe short loc_292C4
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
add rax, [rcx+18h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jge short loc_2928A
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
jmp short loc_29292
loc_2928A:
mov rax, [rbp+var_30]
mov [rbp+var_38], rax
loc_29292:
mov rax, [rbp+var_38]
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+10h]
mov rdx, [rbp+var_28]
call _memcpy
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
add rcx, [rax+10h]
mov [rax+10h], rcx
jmp loc_29351
loc_292C4:
cmp [rbp+var_20], 800h
jb short loc_292E5
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call ma_pvio_read
mov [rbp+var_28], rax
jmp short loc_2934F
loc_292E5:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov edx, 4000h
call ma_pvio_read
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jle short loc_2934D
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jnb short loc_29338
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+8]
add rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_20]
mov [rbp+var_28], rax
loc_29338:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rdx, [rbp+var_28]
call _memcpy
loc_2934D:
jmp short $+2
loc_2934F:
jmp short $+2
loc_29351:
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_29359:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long ma_pvio_cache_read(_QWORD *a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+18h] [rbp-28h]
if ( !a1 )
return -1LL;
if ( !a1[1] )
return ma_pvio_read(a1, a2, a3);
if ( a1[3] + a1[1] <= a1[2] )
{
if ( a3 < 0x800 )
{
v5 = ma_pvio_read(a1, a1[1], 0x4000LL);
if ( v5 > 0 )
{
if ( a3 < v5 )
{
a1[3] = v5;
a1[2] = a3 + a1[1];
v5 = a3;
}
memcpy(a2, a1[1], v5);
}
}
else
{
return ma_pvio_read(a1, a2, a3);
}
}
else
{
if ( (signed long long)a3 >= a1[3] + a1[1] - a1[2] )
v4 = a1[3] + a1[1] - a1[2];
else
v4 = a3;
v5 = v4;
memcpy(a2, a1[2], v4);
a1[2] += v4;
}
return v5;
}
|
ma_pvio_cache_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x00129218
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00129359
LAB_00129218:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0012923d
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00128e10
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00129359
LAB_0012923d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RCX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JBE 0x001292c4
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RCX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JGE 0x0012928a
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00129292
LAB_0012928a:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
LAB_00129292:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113360
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x00129351
LAB_001292c4:
CMP qword ptr [RBP + -0x20],0x800
JC 0x001292e5
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00128e10
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0012934f
LAB_001292e5:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV EDX,0x4000
CALL 0x00128e10
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JLE 0x0012934d
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JNC 0x00129338
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x28],RAX
LAB_00129338:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113360
LAB_0012934d:
JMP 0x0012934f
LAB_0012934f:
JMP 0x00129351
LAB_00129351:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_00129359:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
ulong ma_pvio_cache_read(long param_1,void *param_2,ulong param_3)
{
size_t local_40;
ulong local_30;
ulong local_10;
if (param_1 == 0) {
local_10 = 0xffffffffffffffff;
}
else if (*(long *)(param_1 + 8) == 0) {
local_10 = ma_pvio_read(param_1,param_2,param_3);
}
else {
if (*(ulong *)(param_1 + 0x10) < (ulong)(*(long *)(param_1 + 8) + *(long *)(param_1 + 0x18))) {
local_40 = (*(long *)(param_1 + 8) + *(long *)(param_1 + 0x18)) - *(long *)(param_1 + 0x10);
if ((long)param_3 < (long)local_40) {
local_40 = param_3;
}
local_30 = local_40;
memcpy(param_2,*(void **)(param_1 + 0x10),local_40);
*(size_t *)(param_1 + 0x10) = local_40 + *(long *)(param_1 + 0x10);
}
else if (param_3 < 0x800) {
local_30 = ma_pvio_read(param_1,*(int8 *)(param_1 + 8),0x4000);
if (0 < (long)local_30) {
if (param_3 < local_30) {
*(ulong *)(param_1 + 0x18) = local_30;
*(ulong *)(param_1 + 0x10) = *(long *)(param_1 + 8) + param_3;
local_30 = param_3;
}
memcpy(param_2,*(void **)(param_1 + 8),local_30);
}
}
else {
local_30 = ma_pvio_read(param_1,param_2,param_3);
}
local_10 = local_30;
}
return local_10;
}
|
|
62,355 |
mi_get_binary_pack_key
|
eloqsql/storage/myisam/mi_search.c
|
uint _mi_get_binary_pack_key(register MI_KEYDEF *keyinfo, uint nod_flag,
register uchar **page_pos, register uchar *key)
{
reg1 HA_KEYSEG *keyseg;
uchar *start_key,*page,*page_end,*from,*from_end;
uint length,tmp;
DBUG_ENTER("_mi_get_binary_pack_key");
page= *page_pos;
page_end=page+HA_MAX_KEY_BUFF+1;
start_key=key;
/*
Keys are compressed the following way:
prefix length Packed length of prefix common with prev key (1 or 3 bytes)
for each key segment:
[is null] Null indicator if can be null (1 byte, zero means null)
[length] Packed length if varlength (1 or 3 bytes)
key segment 'length' bytes of key segment value
pointer Reference to the data file (last_keyseg->length).
get_key_length() is a macro. It gets the prefix length from 'page'
and puts it into 'length'. It increments 'page' by 1 or 3, depending
on the packed length of the prefix length.
*/
get_key_length(length,page);
if (length)
{
if (length > keyinfo->maxlength)
{
DBUG_PRINT("error",
("Found too long binary packed key: %u of %u at %p",
length, keyinfo->maxlength, *page_pos));
DBUG_DUMP("key", *page_pos, 16);
goto crashed; /* Wrong key */
}
/* Key is packed against prev key, take prefix from prev key. */
from= key;
from_end= key + length;
}
else
{
/* Key is not packed against prev key, take all from page buffer. */
from= page;
from_end= page_end;
}
/*
The trouble is that key can be split in two parts:
The first part (prefix) is in from .. from_end - 1.
The second part starts at page.
The split can be at every byte position. So we need to check for
the end of the first part before using every byte.
*/
for (keyseg=keyinfo->seg ; keyseg->type ;keyseg++)
{
if (keyseg->flag & HA_NULL_PART)
{
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
if (!(*key++ = *from++))
continue; /* Null part */
}
if (keyseg->flag & (HA_VAR_LENGTH_PART | HA_BLOB_PART | HA_SPACE_PACK))
{
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
/* Get length of dynamic length key part */
if ((length= (*key++ = *from++)) == 255)
{
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
length= (uint) ((*key++ = *from++)) << 8;
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
length+= (uint) ((*key++ = *from++));
}
if (length > keyseg->length)
goto crashed;
}
else
length=keyseg->length;
if ((tmp=(uint) (from_end-from)) <= length)
{
key+=tmp; /* Use old key */
length-=tmp;
from=page; from_end=page_end;
}
DBUG_PRINT("info",("key: %p from: %p length: %u",
key, from, length));
memmove((uchar*) key, (uchar*) from, (size_t) length);
key+=length;
from+=length;
}
/*
Last segment (type == 0) contains length of data pointer.
If we have mixed key blocks with data pointer and key block pointer,
we have to copy both.
*/
length=keyseg->length+nod_flag;
if ((tmp=(uint) (from_end-from)) <= length)
{
/* Remaining length is less or equal max possible length. */
memcpy(key+tmp,page,length-tmp); /* Get last part of key */
*page_pos= page+length-tmp;
}
else
{
/*
Remaining length is greater than max possible length.
This can happen only if we switched to the new key bytes already.
'page_end' is calculated with MI_MAX_KEY_BUFF. So it can be far
behind the real end of the key.
*/
if (from_end != page_end)
{
DBUG_PRINT("error",("Error when unpacking key"));
goto crashed; /* Error */
}
/* Copy data pointer and, if appropriate, key block pointer. */
memcpy((uchar*) key,(uchar*) from,(size_t) length);
*page_pos= from+length;
}
DBUG_RETURN((uint) (key-start_key)+keyseg->length);
crashed:
mi_print_error(keyinfo->share, HA_ERR_CRASHED);
my_errno= HA_ERR_CRASHED;
DBUG_RETURN(0);
}
|
O3
|
c
|
mi_get_binary_pack_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, -0x2c(%rbp)
movq %rdx, -0x50(%rbp)
movq (%rdx), %rax
movzbl (%rax), %r8d
cmpl $0xff, %r8d
je 0x8aa4d
movl $0x1, %esi
jmp 0x8aa5e
movzwl 0x1(%rax), %edx
rolw $0x8, %dx
movzwl %dx, %r8d
movl $0x3, %esi
leaq 0x4b9(%rax), %r9
addq %rax, %rsi
movq %rsi, %r12
movq %r9, %rax
testl %r8d, %r8d
movq %rcx, -0x38(%rbp)
movq %rdi, -0x40(%rbp)
je 0x8aa99
movzwl 0x16(%rdi), %eax
cmpl %eax, %r8d
ja 0x8abe1
movl %r8d, %eax
movq -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rcx, %r12
movq -0x40(%rbp), %rdi
movq 0x28(%rdi), %r15
cmpb $0x0, 0x18(%r15)
movq %rsi, -0x48(%rbp)
je 0x8abbd
movq %rcx, %rbx
movq %r9, -0x58(%rbp)
movzwl 0x12(%r15), %ecx
testb $0x10, %cl
jne 0x8aac2
movq %rax, %r14
jmp 0x8aaed
movq %rsi, %rcx
movq %r9, %r14
cmpq %rax, %r12
je 0x8aad3
movq %r12, %rcx
movq %rax, %r14
movb (%rcx), %al
movq %rcx, %r12
incq %r12
movb %al, (%rbx)
incq %rbx
testb %al, %al
je 0x8aba6
movzwl 0x12(%r15), %ecx
testb $0x29, %cl
je 0x8ab17
movq %rsi, %rcx
movq %r9, %rdx
cmpq %r14, %r12
je 0x8ab03
movq %r12, %rcx
movq %r14, %rdx
movzbl (%rcx), %eax
incq %rcx
movb %al, (%rbx)
cmpl $0xff, %eax
je 0x8ab1e
incq %rbx
jmp 0x8ab5d
movzwl 0x14(%r15), %eax
jmp 0x8ab6c
movq %rsi, %r8
movq %r9, %rdi
cmpq %rdx, %rcx
je 0x8ab2f
movq %rcx, %r8
movq %rdx, %rdi
movzbl (%r8), %eax
incq %r8
movb %al, 0x1(%rbx)
movq %rsi, %rcx
movq %r9, %rdx
cmpq %rdi, %r8
je 0x8ab4a
movq %r8, %rcx
movq %rdi, %rdx
shll $0x8, %eax
movzbl (%rcx), %edi
incq %rcx
movb %dil, 0x2(%rbx)
addq $0x3, %rbx
orl %edi, %eax
movzwl 0x14(%r15), %edi
movq %rcx, %r12
movq %rdx, %r14
cmpl %edi, %eax
ja 0x8abe1
movq %r14, %rdx
subq %r12, %rdx
movl %eax, %ecx
subl %edx, %ecx
jae 0x8ab7c
movl %eax, %ecx
jmp 0x8ab87
movl %edx, %eax
addq %rax, %rbx
movq %rsi, %r12
movq %r9, %r14
movl %ecx, %r13d
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2a130
addq %r13, %rbx
addq %r13, %r12
movq -0x48(%rbp), %rsi
movq -0x58(%rbp), %r9
leaq 0x20(%r15), %r13
cmpb $0x0, 0x38(%r15)
movq %r14, %rax
movq %r13, %r15
jne 0x8aab3
jmp 0x8abc6
movq %r15, %r13
movq %rcx, %rbx
movq %rax, %r14
movzwl 0x14(%r13), %r15d
addl -0x2c(%rbp), %r15d
movq %r14, %rax
subq %r12, %rax
movl %r15d, %edx
subl %eax, %edx
jae 0x8ac08
cmpq %r9, %r14
je 0x8ac20
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x8012a
callq 0xa8dda
movl $0x7e, (%rax)
xorl %eax, %eax
jmp 0x8ac45
movl %eax, %r14d
leaq (%rbx,%r14), %rdi
callq 0x2a0a0
movl %r15d, %r12d
addq -0x48(%rbp), %r12
subq %r14, %r12
jmp 0x8ac34
movl %r15d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2a0a0
addq %r14, %r12
movq -0x50(%rbp), %rax
movq %r12, (%rax)
subl -0x38(%rbp), %ebx
movzwl 0x14(%r13), %eax
addl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_mi_get_binary_pack_key:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_2C], esi
mov [rbp+var_50], rdx
mov rax, [rdx]
movzx r8d, byte ptr [rax]
cmp r8d, 0FFh
jz short loc_8AA4D
mov esi, 1
jmp short loc_8AA5E
loc_8AA4D:
movzx edx, word ptr [rax+1]
rol dx, 8
movzx r8d, dx
mov esi, 3
loc_8AA5E:
lea r9, [rax+4B9h]
add rsi, rax
mov r12, rsi
mov rax, r9
test r8d, r8d
mov [rbp+var_38], rcx
mov [rbp+var_40], rdi
jz short loc_8AA99
movzx eax, word ptr [rdi+16h]
cmp r8d, eax
ja loc_8ABE1
mov eax, r8d
mov rcx, [rbp+var_38]
add rax, rcx
mov r12, rcx
mov rdi, [rbp+var_40]
loc_8AA99:
mov r15, [rdi+28h]
cmp byte ptr [r15+18h], 0
mov [rbp+var_48], rsi
jz loc_8ABBD
mov rbx, rcx
mov [rbp+var_58], r9
loc_8AAB3:
movzx ecx, word ptr [r15+12h]
test cl, 10h
jnz short loc_8AAC2
mov r14, rax
jmp short loc_8AAED
loc_8AAC2:
mov rcx, rsi
mov r14, r9
cmp r12, rax
jz short loc_8AAD3
mov rcx, r12
mov r14, rax
loc_8AAD3:
mov al, [rcx]
mov r12, rcx
inc r12
mov [rbx], al
inc rbx
test al, al
jz loc_8ABA6
movzx ecx, word ptr [r15+12h]
loc_8AAED:
test cl, 29h
jz short loc_8AB17
mov rcx, rsi
mov rdx, r9
cmp r12, r14
jz short loc_8AB03
mov rcx, r12
mov rdx, r14
loc_8AB03:
movzx eax, byte ptr [rcx]
inc rcx
mov [rbx], al
cmp eax, 0FFh
jz short loc_8AB1E
inc rbx
jmp short loc_8AB5D
loc_8AB17:
movzx eax, word ptr [r15+14h]
jmp short loc_8AB6C
loc_8AB1E:
mov r8, rsi
mov rdi, r9
cmp rcx, rdx
jz short loc_8AB2F
mov r8, rcx
mov rdi, rdx
loc_8AB2F:
movzx eax, byte ptr [r8]
inc r8
mov [rbx+1], al
mov rcx, rsi
mov rdx, r9
cmp r8, rdi
jz short loc_8AB4A
mov rcx, r8
mov rdx, rdi
loc_8AB4A:
shl eax, 8
movzx edi, byte ptr [rcx]
inc rcx
mov [rbx+2], dil
add rbx, 3
or eax, edi
loc_8AB5D:
movzx edi, word ptr [r15+14h]
mov r12, rcx
mov r14, rdx
cmp eax, edi
ja short loc_8ABE1
loc_8AB6C:
mov rdx, r14
sub rdx, r12
mov ecx, eax
sub ecx, edx
jnb short loc_8AB7C
mov ecx, eax
jmp short loc_8AB87
loc_8AB7C:
mov eax, edx
add rbx, rax
mov r12, rsi
mov r14, r9
loc_8AB87:
mov r13d, ecx
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _memmove
add rbx, r13
add r12, r13
mov rsi, [rbp+var_48]
mov r9, [rbp+var_58]
loc_8ABA6:
lea r13, [r15+20h]
cmp byte ptr [r15+38h], 0
mov rax, r14
mov r15, r13
jnz loc_8AAB3
jmp short loc_8ABC6
loc_8ABBD:
mov r13, r15
mov rbx, rcx
mov r14, rax
loc_8ABC6:
movzx r15d, word ptr [r13+14h]
add r15d, [rbp+var_2C]
mov rax, r14
sub rax, r12
mov edx, r15d
sub edx, eax
jnb short loc_8AC08
cmp r14, r9
jz short loc_8AC20
loc_8ABE1:
mov rax, [rbp+var_40]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
xor eax, eax
jmp short loc_8AC45
loc_8AC08:
mov r14d, eax
lea rdi, [rbx+r14]
call _memcpy
mov r12d, r15d
add r12, [rbp+var_48]
sub r12, r14
jmp short loc_8AC34
loc_8AC20:
mov r14d, r15d
mov rdi, rbx
mov rsi, r12
mov rdx, r14
call _memcpy
add r12, r14
loc_8AC34:
mov rax, [rbp+var_50]
mov [rax], r12
sub ebx, dword ptr [rbp+var_38]
movzx eax, word ptr [r13+14h]
add eax, ebx
loc_8AC45:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mi_get_binary_pack_key(long long a1, int a2, unsigned __int8 **a3, unsigned __int8 *a4)
{
long long v4; // rax
unsigned int v5; // r8d
long long v6; // rsi
unsigned __int8 *v7; // r9
unsigned __int8 *v8; // rsi
unsigned __int8 *v9; // r12
unsigned __int8 *v10; // rax
long long v11; // r15
unsigned __int8 *v12; // rbx
__int16 v13; // cx
unsigned __int8 *v14; // r14
unsigned __int8 *v15; // rcx
unsigned __int8 v16; // al
unsigned __int8 *v17; // rcx
unsigned __int8 *v18; // rdx
unsigned int v19; // eax
unsigned __int8 *v20; // rcx
unsigned __int8 *v21; // r8
unsigned __int8 *v22; // rdi
int v23; // eax
unsigned __int8 *v24; // r8
unsigned __int8 *v25; // rcx
int v26; // edi
unsigned int v27; // ecx
long long v28; // r13
long long v29; // r13
bool v30; // zf
unsigned int v31; // r15d
unsigned int v32; // eax
long long v33; // rdx
const char *v34; // rsi
long long v36; // r14
unsigned __int8 *v37; // r12
unsigned __int8 *v38; // [rsp+8h] [rbp-58h]
unsigned __int8 *v40; // [rsp+18h] [rbp-48h]
int v42; // [rsp+28h] [rbp-38h]
v4 = (long long)*a3;
v5 = **a3;
if ( v5 == 255 )
{
v5 = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8);
v6 = 3LL;
}
else
{
v6 = 1LL;
}
v7 = (unsigned __int8 *)(v4 + 1209);
v8 = (unsigned __int8 *)(v4 + v6);
v9 = v8;
v10 = (unsigned __int8 *)(v4 + 1209);
v42 = (int)a4;
if ( v5 )
{
if ( v5 > *(unsigned __int16 *)(a1 + 22) )
{
LABEL_36:
v34 = *(const char **)(*(_QWORD *)a1 + 616LL);
mi_report_error(126, (long long)v34);
*(_DWORD *)my_thread_var(126LL, v34) = 126;
return 0LL;
}
v10 = &a4[v5];
v9 = a4;
}
v11 = *(_QWORD *)(a1 + 40);
v40 = v8;
if ( *(_BYTE *)(v11 + 24) )
{
v12 = a4;
v38 = v7;
while ( 1 )
{
v13 = *(_WORD *)(v11 + 18);
if ( (v13 & 0x10) != 0 )
{
v15 = v8;
v14 = v7;
if ( v9 != v10 )
{
v15 = v9;
v14 = v10;
}
v16 = *v15;
v9 = v15 + 1;
*v12++ = *v15;
if ( !v16 )
goto LABEL_31;
v13 = *(_WORD *)(v11 + 18);
}
else
{
v14 = v10;
}
if ( (v13 & 0x29) != 0 )
{
v17 = v8;
v18 = v7;
if ( v9 != v14 )
{
v17 = v9;
v18 = v14;
}
v19 = *v17;
v20 = v17 + 1;
*v12 = v19;
if ( v19 == 255 )
{
v21 = v8;
v22 = v7;
if ( v20 != v18 )
{
v21 = v20;
v22 = v18;
}
v23 = *v21;
v24 = v21 + 1;
v12[1] = v23;
v25 = v8;
v18 = v7;
if ( v24 != v22 )
{
v25 = v24;
v18 = v22;
}
v26 = *v25;
v20 = v25 + 1;
v12[2] = v26;
v12 += 3;
v19 = v26 | (v23 << 8);
}
else
{
++v12;
}
v9 = v20;
v14 = v18;
if ( v19 > *(unsigned __int16 *)(v11 + 20) )
goto LABEL_36;
}
else
{
v19 = *(unsigned __int16 *)(v11 + 20);
}
v27 = v19 - ((_DWORD)v14 - (_DWORD)v9);
if ( v19 >= (int)v14 - (int)v9 )
{
v12 += (unsigned int)((_DWORD)v14 - (_DWORD)v9);
v9 = v8;
v14 = v7;
}
else
{
v27 = v19;
}
v28 = v27;
memmove(v12, v9, v27);
v12 += v28;
v9 += v28;
v8 = v40;
v7 = v38;
LABEL_31:
v29 = v11 + 32;
v30 = *(_BYTE *)(v11 + 56) == 0;
v10 = v14;
v11 += 32LL;
if ( v30 )
goto LABEL_34;
}
}
v29 = *(_QWORD *)(a1 + 40);
v12 = a4;
v14 = v10;
LABEL_34:
v31 = a2 + *(unsigned __int16 *)(v29 + 20);
v32 = (_DWORD)v14 - (_DWORD)v9;
v33 = v31 - ((_DWORD)v14 - (_DWORD)v9);
if ( v31 >= (int)v14 - (int)v9 )
{
v36 = v32;
memcpy(&v12[v32], v8, v33);
v37 = &v40[v31 - v36];
}
else
{
if ( v14 != v7 )
goto LABEL_36;
memcpy(v12, v9, v31);
v37 = &v9[v31];
}
*a3 = v37;
return (_DWORD)v12 - v42 + (unsigned int)*(unsigned __int16 *)(v29 + 20);
}
|
_mi_get_binary_pack_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV dword ptr [RBP + -0x2c],ESI
MOV qword ptr [RBP + -0x50],RDX
MOV RAX,qword ptr [RDX]
MOVZX R8D,byte ptr [RAX]
CMP R8D,0xff
JZ 0x0018aa4d
MOV ESI,0x1
JMP 0x0018aa5e
LAB_0018aa4d:
MOVZX EDX,word ptr [RAX + 0x1]
ROL DX,0x8
MOVZX R8D,DX
MOV ESI,0x3
LAB_0018aa5e:
LEA R9,[RAX + 0x4b9]
ADD RSI,RAX
MOV R12,RSI
MOV RAX,R9
TEST R8D,R8D
MOV qword ptr [RBP + -0x38],RCX
MOV qword ptr [RBP + -0x40],RDI
JZ 0x0018aa99
MOVZX EAX,word ptr [RDI + 0x16]
CMP R8D,EAX
JA 0x0018abe1
MOV EAX,R8D
MOV RCX,qword ptr [RBP + -0x38]
ADD RAX,RCX
MOV R12,RCX
MOV RDI,qword ptr [RBP + -0x40]
LAB_0018aa99:
MOV R15,qword ptr [RDI + 0x28]
CMP byte ptr [R15 + 0x18],0x0
MOV qword ptr [RBP + -0x48],RSI
JZ 0x0018abbd
MOV RBX,RCX
MOV qword ptr [RBP + -0x58],R9
LAB_0018aab3:
MOVZX ECX,word ptr [R15 + 0x12]
TEST CL,0x10
JNZ 0x0018aac2
MOV R14,RAX
JMP 0x0018aaed
LAB_0018aac2:
MOV RCX,RSI
MOV R14,R9
CMP R12,RAX
JZ 0x0018aad3
MOV RCX,R12
MOV R14,RAX
LAB_0018aad3:
MOV AL,byte ptr [RCX]
MOV R12,RCX
INC R12
MOV byte ptr [RBX],AL
INC RBX
TEST AL,AL
JZ 0x0018aba6
MOVZX ECX,word ptr [R15 + 0x12]
LAB_0018aaed:
TEST CL,0x29
JZ 0x0018ab17
MOV RCX,RSI
MOV RDX,R9
CMP R12,R14
JZ 0x0018ab03
MOV RCX,R12
MOV RDX,R14
LAB_0018ab03:
MOVZX EAX,byte ptr [RCX]
INC RCX
MOV byte ptr [RBX],AL
CMP EAX,0xff
JZ 0x0018ab1e
INC RBX
JMP 0x0018ab5d
LAB_0018ab17:
MOVZX EAX,word ptr [R15 + 0x14]
JMP 0x0018ab6c
LAB_0018ab1e:
MOV R8,RSI
MOV RDI,R9
CMP RCX,RDX
JZ 0x0018ab2f
MOV R8,RCX
MOV RDI,RDX
LAB_0018ab2f:
MOVZX EAX,byte ptr [R8]
INC R8
MOV byte ptr [RBX + 0x1],AL
MOV RCX,RSI
MOV RDX,R9
CMP R8,RDI
JZ 0x0018ab4a
MOV RCX,R8
MOV RDX,RDI
LAB_0018ab4a:
SHL EAX,0x8
MOVZX EDI,byte ptr [RCX]
INC RCX
MOV byte ptr [RBX + 0x2],DIL
ADD RBX,0x3
OR EAX,EDI
LAB_0018ab5d:
MOVZX EDI,word ptr [R15 + 0x14]
MOV R12,RCX
MOV R14,RDX
CMP EAX,EDI
JA 0x0018abe1
LAB_0018ab6c:
MOV RDX,R14
SUB RDX,R12
MOV ECX,EAX
SUB ECX,EDX
JNC 0x0018ab7c
MOV ECX,EAX
JMP 0x0018ab87
LAB_0018ab7c:
MOV EAX,EDX
ADD RBX,RAX
MOV R12,RSI
MOV R14,R9
LAB_0018ab87:
MOV R13D,ECX
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x0012a130
ADD RBX,R13
ADD R12,R13
MOV RSI,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x58]
LAB_0018aba6:
LEA R13,[R15 + 0x20]
CMP byte ptr [R15 + 0x38],0x0
MOV RAX,R14
MOV R15,R13
JNZ 0x0018aab3
JMP 0x0018abc6
LAB_0018abbd:
MOV R13,R15
MOV RBX,RCX
MOV R14,RAX
LAB_0018abc6:
MOVZX R15D,word ptr [R13 + 0x14]
ADD R15D,dword ptr [RBP + -0x2c]
MOV RAX,R14
SUB RAX,R12
MOV EDX,R15D
SUB EDX,EAX
JNC 0x0018ac08
CMP R14,R9
JZ 0x0018ac20
LAB_0018abe1:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0018012a
CALL 0x001a8dda
MOV dword ptr [RAX],0x7e
XOR EAX,EAX
JMP 0x0018ac45
LAB_0018ac08:
MOV R14D,EAX
LEA RDI,[RBX + R14*0x1]
CALL 0x0012a0a0
MOV R12D,R15D
ADD R12,qword ptr [RBP + -0x48]
SUB R12,R14
JMP 0x0018ac34
LAB_0018ac20:
MOV R14D,R15D
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
CALL 0x0012a0a0
ADD R12,R14
LAB_0018ac34:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],R12
SUB EBX,dword ptr [RBP + -0x38]
MOVZX EAX,word ptr [R13 + 0x14]
ADD EAX,EBX
LAB_0018ac45:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int _mi_get_binary_pack_key(long *param_1,int param_2,int8 *param_3,byte *param_4)
{
byte *pbVar1;
char cVar2;
byte bVar3;
byte bVar4;
uint uVar5;
int iVar6;
byte *pbVar7;
int4 *puVar8;
ushort uVar9;
byte *pbVar10;
byte *pbVar11;
byte *__dest;
long lVar12;
byte *pbVar13;
byte *pbVar14;
ulong uVar15;
uint uVar16;
int local_40;
pbVar13 = (byte *)*param_3;
uVar5 = (uint)*pbVar13;
if (*pbVar13 == 0xff) {
uVar5 = (uint)(ushort)(*(ushort *)(pbVar13 + 1) << 8 | *(ushort *)(pbVar13 + 1) >> 8);
lVar12 = 3;
}
else {
lVar12 = 1;
}
pbVar1 = pbVar13 + 0x4b9;
pbVar13 = pbVar13 + lVar12;
pbVar7 = pbVar1;
pbVar11 = pbVar13;
if (uVar5 == 0) {
LAB_0018aa99:
cVar2 = *(char *)(param_1[5] + 0x18);
lVar12 = param_1[5];
__dest = param_4;
while (cVar2 != '\0') {
uVar9 = *(ushort *)(lVar12 + 0x12);
pbVar14 = pbVar7;
if ((uVar9 & 0x10) == 0) {
LAB_0018aaed:
if ((uVar9 & 0x29) == 0) {
uVar5 = (uint)*(ushort *)(lVar12 + 0x14);
}
else {
pbVar7 = pbVar13;
pbVar10 = pbVar1;
if (pbVar11 != pbVar14) {
pbVar7 = pbVar11;
pbVar10 = pbVar14;
}
bVar3 = *pbVar7;
uVar5 = (uint)bVar3;
pbVar11 = pbVar7 + 1;
*__dest = bVar3;
if (bVar3 == 0xff) {
pbVar7 = pbVar1;
pbVar14 = pbVar13;
if (pbVar11 != pbVar10) {
pbVar7 = pbVar10;
pbVar14 = pbVar11;
}
bVar3 = *pbVar14;
__dest[1] = bVar3;
pbVar11 = pbVar13;
pbVar10 = pbVar1;
if (pbVar14 + 1 != pbVar7) {
pbVar11 = pbVar14 + 1;
pbVar10 = pbVar7;
}
bVar4 = *pbVar11;
pbVar11 = pbVar11 + 1;
__dest[2] = bVar4;
__dest = __dest + 3;
uVar5 = (uint)CONCAT11(bVar3,bVar4);
}
else {
__dest = __dest + 1;
}
pbVar14 = pbVar10;
if (*(ushort *)(lVar12 + 0x14) < uVar5) goto LAB_0018abe1;
}
uVar16 = (uint)((long)pbVar14 - (long)pbVar11);
if (uVar16 <= uVar5) {
__dest = __dest + ((long)pbVar14 - (long)pbVar11 & 0xffffffff);
pbVar11 = pbVar13;
pbVar14 = pbVar1;
uVar5 = uVar5 - uVar16;
}
uVar15 = (ulong)uVar5;
memmove(__dest,pbVar11,uVar15);
__dest = __dest + uVar15;
pbVar11 = pbVar11 + uVar15;
}
else {
pbVar10 = pbVar13;
pbVar14 = pbVar1;
if (pbVar11 != pbVar7) {
pbVar10 = pbVar11;
pbVar14 = pbVar7;
}
bVar3 = *pbVar10;
pbVar11 = pbVar10 + 1;
*__dest = bVar3;
__dest = __dest + 1;
if (bVar3 != 0) {
uVar9 = *(ushort *)(lVar12 + 0x12);
goto LAB_0018aaed;
}
}
cVar2 = *(char *)(lVar12 + 0x38);
lVar12 = lVar12 + 0x20;
pbVar7 = pbVar14;
}
uVar16 = (uint)*(ushort *)(lVar12 + 0x14) + param_2;
uVar5 = (uint)((long)pbVar7 - (long)pbVar11);
if (uVar16 < uVar5) {
if (pbVar7 != pbVar1) goto LAB_0018abe1;
memcpy(__dest,pbVar11,(ulong)uVar16);
pbVar11 = pbVar11 + uVar16;
}
else {
uVar15 = (long)pbVar7 - (long)pbVar11 & 0xffffffff;
memcpy(__dest + uVar15,pbVar13,(ulong)(uVar16 - uVar5));
pbVar11 = pbVar13 + (uVar16 - uVar15);
}
*param_3 = pbVar11;
local_40 = (int)param_4;
iVar6 = (uint)*(ushort *)(lVar12 + 0x14) + ((int)__dest - local_40);
}
else {
if (uVar5 <= *(ushort *)((long)param_1 + 0x16)) {
pbVar7 = param_4 + uVar5;
pbVar11 = param_4;
goto LAB_0018aa99;
}
LAB_0018abe1:
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar8 = (int4 *)_my_thread_var();
*puVar8 = 0x7e;
iVar6 = 0;
}
return iVar6;
}
|
|
62,356 |
OpenSubdiv::v3_6_0::Bfr::FaceVertex::FaceIndicesMatchAtEdgeEnd(int, int, int const*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/../bfr/../bfr/faceVertex.h
|
inline bool
FaceVertex::FaceIndicesMatchAtEdgeEnd(int facePrev, int faceNext,
Index const indices[]) const {
return GetFaceIndexTrailing(facePrev, indices) ==
GetFaceIndexLeading(faceNext, indices);
}
|
O2
|
c
|
OpenSubdiv::v3_6_0::Bfr::FaceVertex::FaceIndicesMatchAtEdgeEnd(int, int, int const*) const:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movq %rdi, %r14
movq %rcx, %rdx
callq 0x52060
movswl 0x9c(%r14), %ecx
testl %ecx, %ecx
je 0x95eeb
imull %ebp, %ecx
jmp 0x95ef5
movq 0x60(%r14), %rcx
movslq %ebp, %rdx
movl (%rcx,%rdx,4), %ecx
movslq %ecx, %rcx
cmpl 0x4(%rbx,%rcx,4), %eax
sete %al
popq %rbx
popq %r14
popq %rbp
retq
|
_ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex25FaceIndicesMatchAtEdgeEndEiiPKi:
push rbp
push r14
push rbx
mov rbx, rcx
mov ebp, edx
mov r14, rdi
mov rdx, rcx; int *
call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex20GetFaceIndexTrailingEiPKi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceIndexTrailing(int,int const*)
movsx ecx, word ptr [r14+9Ch]
test ecx, ecx
jz short loc_95EEB
imul ecx, ebp
jmp short loc_95EF5
loc_95EEB:
mov rcx, [r14+60h]
movsxd rdx, ebp
mov ecx, [rcx+rdx*4]
loc_95EF5:
movsxd rcx, ecx
cmp eax, [rbx+rcx*4+4]
setz al
pop rbx
pop r14
pop rbp
retn
|
bool OpenSubdiv::v3_6_0::Bfr::FaceVertex::FaceIndicesMatchAtEdgeEnd(
OpenSubdiv::v3_6_0::Bfr::FaceVertex *this,
int a2,
int a3,
const int *a4)
{
int FaceIndexTrailing; // eax
int v7; // ecx
FaceIndexTrailing = OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetFaceIndexTrailing(this, a2, a4);
if ( *((_WORD *)this + 78) )
v7 = a3 * *((__int16 *)this + 78);
else
v7 = *(_DWORD *)(*((_QWORD *)this + 12) + 4LL * a3);
return FaceIndexTrailing == a4[v7 + 1];
}
|
FaceIndicesMatchAtEdgeEnd:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RCX
MOV EBP,EDX
MOV R14,RDI
MOV RDX,RCX
CALL 0x00152060
MOVSX ECX,word ptr [R14 + 0x9c]
TEST ECX,ECX
JZ 0x00195eeb
IMUL ECX,EBP
JMP 0x00195ef5
LAB_00195eeb:
MOV RCX,qword ptr [R14 + 0x60]
MOVSXD RDX,EBP
MOV ECX,dword ptr [RCX + RDX*0x4]
LAB_00195ef5:
MOVSXD RCX,ECX
CMP EAX,dword ptr [RBX + RCX*0x4 + 0x4]
SETZ AL
POP RBX
POP R14
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Bfr::FaceVertex::FaceIndicesMatchAtEdgeEnd(int, int, int const*) const */
bool __thiscall
OpenSubdiv::v3_6_0::Bfr::FaceVertex::FaceIndicesMatchAtEdgeEnd
(FaceVertex *this,int param_1,int param_2,int *param_3)
{
int iVar1;
int iVar2;
iVar1 = GetFaceIndexTrailing(this,param_1,param_3);
if (*(short *)(this + 0x9c) == 0) {
iVar2 = *(int *)(*(long *)(this + 0x60) + (long)param_2 * 4);
}
else {
iVar2 = *(short *)(this + 0x9c) * param_2;
}
return iVar1 == param_3[(long)iVar2 + 1];
}
|
|
62,357 |
bchange
|
eloqsql/strings/bchange.c
|
void bchange(register uchar *dst, size_t old_length, register const uchar *src,
size_t new_length, size_t tot_length)
{
size_t rest=tot_length-old_length;
if (old_length < new_length)
bmove_upp(dst+rest+new_length,dst+tot_length,rest);
else
bmove(dst+new_length,dst+old_length,rest);
memcpy(dst,src,new_length);
}
|
O3
|
c
|
bchange:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movq %r8, %rdx
subq %rsi, %rdx
cmpq %rcx, %rsi
jae 0x6334e
leaq (%r15,%rdx), %rdi
addq %rbx, %rdi
addq %r15, %r8
movq %r8, %rsi
callq 0x63374
jmp 0x6335a
leaq (%r15,%rbx), %rdi
addq %r15, %rsi
callq 0x28610
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x282a0
nop
|
bchange:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rcx
mov r14, rdx
mov r15, rdi
mov rdx, r8
sub rdx, rsi
cmp rsi, rcx
jnb short loc_6334E
lea rdi, [r15+rdx]
add rdi, rbx
add r8, r15
mov rsi, r8
call bmove_upp
jmp short loc_6335A
loc_6334E:
lea rdi, [r15+rbx]
add rsi, r15
call _memmove
loc_6335A:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _memcpy
|
long long bchange(long long a1, unsigned long long a2, long long a3, unsigned long long a4, long long a5)
{
long long v7; // rdx
v7 = a5 - a2;
if ( a2 >= a4 )
memmove(a1 + a4, a1 + a2, v7);
else
bmove_upp(a4 + a1 + v7, a1 + a5, v7);
return memcpy(a1, a3, a4);
}
|
bchange:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
MOV RDX,R8
SUB RDX,RSI
CMP RSI,RCX
JNC 0x0016334e
LEA RDI,[R15 + RDX*0x1]
ADD RDI,RBX
ADD R8,R15
MOV RSI,R8
CALL 0x00163374
JMP 0x0016335a
LAB_0016334e:
LEA RDI,[R15 + RBX*0x1]
ADD RSI,R15
CALL 0x00128610
LAB_0016335a:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001282a0
|
void bchange(void *param_1,ulong param_2,void *param_3,ulong param_4,long param_5)
{
if (param_2 < param_4) {
bmove_upp((long)param_1 + param_4 + (param_5 - param_2),param_5 + (long)param_1);
}
else {
memmove((void *)((long)param_1 + param_4),(void *)(param_2 + (long)param_1),param_5 - param_2);
}
memcpy(param_1,param_3,param_4);
return;
}
|
|
62,358 |
common_tokenize(llama_vocab const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool)
|
monkey531[P]llama/common/common.cpp
|
std::vector<llama_token> common_tokenize(
const struct llama_vocab * vocab,
const std::string & text,
bool add_special,
bool parse_special) {
// upper limit for the number of tokens
int n_tokens = text.length() + 2 * add_special;
std::vector<llama_token> result(n_tokens);
n_tokens = llama_tokenize(vocab, text.data(), text.length(), result.data(), result.size(), add_special, parse_special);
if (n_tokens < 0) {
result.resize(-n_tokens);
int check = llama_tokenize(vocab, text.data(), text.length(), result.data(), result.size(), add_special, parse_special);
GGML_ASSERT(check == -n_tokens);
} else {
result.resize(n_tokens);
}
return result;
}
|
O1
|
cpp
|
common_tokenize(llama_vocab const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
leal (%r14,%r14), %eax
addl 0x8(%rdx), %eax
movslq %eax, %rsi
leaq 0x17(%rsp), %rdx
callq 0x793b8
movq (%r12), %rsi
movl 0x8(%r12), %edx
movq (%rbx), %rcx
movq 0x8(%rbx), %r8
subq %rcx, %r8
shrq $0x2, %r8
movl %ebp, (%rsp)
movq %r15, %rdi
movl %r14d, %r9d
callq 0x1c020
movl %eax, %r13d
testl %eax, %eax
js 0x75a14
movl %r13d, %esi
movq %rbx, %rdi
callq 0x79442
jmp 0x75a51
negl %r13d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x79442
movq (%r12), %rsi
movl 0x8(%r12), %edx
movq (%rbx), %rcx
movq 0x8(%rbx), %r8
subq %rcx, %r8
shrq $0x2, %r8
movzbl %bpl, %eax
movl %eax, (%rsp)
movzbl %r14b, %r9d
movq %r15, %rdi
callq 0x1c020
cmpl %r13d, %eax
jne 0x75a63
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7d057(%rip), %rdi # 0xf2ac1
leaq 0x7a212(%rip), %rdx # 0xefc83
leaq 0x7d6c9(%rip), %rcx # 0xf3141
movl $0x6b8, %esi # imm = 0x6B8
xorl %eax, %eax
callq 0x1be90
jmp 0x75a86
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x75a9d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1b8c0
movq %r14, %rdi
callq 0x1bf90
|
_Z15common_tokenizePK11llama_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov ebp, r8d
mov r14d, ecx
mov r12, rdx
mov r15, rsi
mov rbx, rdi
lea eax, [r14+r14]
add eax, [rdx+8]
movsxd rsi, eax
lea rdx, [rsp+48h+var_31]
call _ZNSt6vectorIiSaIiEEC2EmRKS0_; std::vector<int>::vector(ulong,std::allocator<int> const&)
mov rsi, [r12]
mov edx, [r12+8]
mov rcx, [rbx]
mov r8, [rbx+8]
sub r8, rcx
shr r8, 2
mov [rsp+48h+var_48], ebp
mov rdi, r15
mov r9d, r14d
call _llama_tokenize
mov r13d, eax
test eax, eax
js short loc_75A14
mov esi, r13d
mov rdi, rbx
call _ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
jmp short loc_75A51
loc_75A14:
neg r13d
mov rdi, rbx
mov rsi, r13
call _ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rsi, [r12]
mov edx, [r12+8]
mov rcx, [rbx]
mov r8, [rbx+8]
sub r8, rcx
shr r8, 2
movzx eax, bpl
mov [rsp+48h+var_48], eax
movzx r9d, r14b
mov rdi, r15
call _llama_tokenize
cmp eax, r13d
jnz short loc_75A63
loc_75A51:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_75A63:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCheckNTokens; "check == -n_tokens"
mov esi, 6B8h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_75A86:
mov r14, rax
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_75A9D
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75A9D:
mov rdi, r14
call __Unwind_Resume
|
_QWORD * common_tokenize(_QWORD *a1, long long a2, _QWORD *a3, unsigned int a4, int a5)
{
int v8; // eax
int v9; // r13d
long long v11; // r14
_BYTE v12[49]; // [rsp+17h] [rbp-31h] BYREF
std::vector<int>::vector(a1, (int)(*((_DWORD *)a3 + 2) + 2 * a4), v12);
v8 = llama_tokenize(a2, *a3, *((unsigned int *)a3 + 2), *a1, (a1[1] - *a1) >> 2, a4, a5);
if ( v8 < 0 )
{
v9 = -v8;
std::vector<int>::resize(a1, (unsigned int)-v8);
if ( (unsigned int)llama_tokenize(
a2,
*a3,
*((unsigned int *)a3 + 2),
*a1,
(a1[1] - *a1) >> 2,
(unsigned __int8)a4,
(unsigned __int8)a5) != v9 )
{
v11 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
1720LL,
"GGML_ASSERT(%s) failed",
"check == -n_tokens");
if ( *a1 )
operator delete((void *)*a1, a1[2] - *a1);
_Unwind_Resume(v11);
}
}
else
{
std::vector<int>::resize(a1, (unsigned int)v8);
}
return a1;
}
|
common_tokenize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV EBP,R8D
MOV R14D,ECX
MOV R12,RDX
MOV R15,RSI
MOV RBX,RDI
LEA EAX,[R14 + R14*0x1]
ADD EAX,dword ptr [RDX + 0x8]
MOVSXD RSI,EAX
LEA RDX,[RSP + 0x17]
CALL 0x001793b8
MOV RSI,qword ptr [R12]
MOV EDX,dword ptr [R12 + 0x8]
MOV RCX,qword ptr [RBX]
MOV R8,qword ptr [RBX + 0x8]
SUB R8,RCX
SHR R8,0x2
LAB_001759f2:
MOV dword ptr [RSP],EBP
MOV RDI,R15
MOV R9D,R14D
CALL 0x0011c020
MOV R13D,EAX
TEST EAX,EAX
JS 0x00175a14
MOV ESI,R13D
MOV RDI,RBX
CALL 0x00179442
JMP 0x00175a51
LAB_00175a14:
NEG R13D
MOV RDI,RBX
MOV RSI,R13
CALL 0x00179442
MOV RSI,qword ptr [R12]
MOV EDX,dword ptr [R12 + 0x8]
MOV RCX,qword ptr [RBX]
MOV R8,qword ptr [RBX + 0x8]
SUB R8,RCX
SHR R8,0x2
LAB_00175a39:
MOVZX EAX,BPL
MOV dword ptr [RSP],EAX
MOVZX R9D,R14B
MOV RDI,R15
CALL 0x0011c020
CMP EAX,R13D
JNZ 0x00175a63
LAB_00175a51:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00175a63:
LEA RDI,[0x1f2ac1]
LEA RDX,[0x1efc83]
LEA RCX,[0x1f3141]
MOV ESI,0x6b8
XOR EAX,EAX
CALL 0x0011be90
|
/* common_tokenize(llama_vocab const*, std::__cxx11::string const&, bool, bool) */
llama_vocab * common_tokenize(llama_vocab *param_1,string *param_2,bool param_3,bool param_4)
{
uint uVar1;
uint uVar2;
int7 in_register_00000009;
int7 in_register_00000011;
int8 *puVar3;
uint in_R8D;
puVar3 = (int8 *)CONCAT71(in_register_00000011,param_3);
std::vector<int,std::allocator<int>>::vector
((ulong)param_1,
(allocator *)
(long)((int)CONCAT71(in_register_00000009,param_4) * 2 + *(int *)(puVar3 + 1)));
/* try { // try from 001759f2 to 00175a21 has its CatchHandler @ 00175a86 */
uVar1 = llama_tokenize(param_2,*puVar3,*(int4 *)(puVar3 + 1),*(long *)param_1,
(ulong)(*(long *)(param_1 + 8) - *(long *)param_1) >> 2,
CONCAT71(in_register_00000009,param_4) & 0xffffffff,in_R8D);
if ((int)uVar1 < 0) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)param_1,(ulong)-uVar1);
/* try { // try from 00175a39 to 00175a83 has its CatchHandler @ 00175a84 */
uVar2 = llama_tokenize(param_2,*puVar3,*(int4 *)(puVar3 + 1),*(long *)param_1,
(ulong)(*(long *)(param_1 + 8) - *(long *)param_1) >> 2,param_4,
in_R8D & 0xff);
if (uVar2 != -uVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x6b8
,"GGML_ASSERT(%s) failed","check == -n_tokens");
}
}
else {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)param_1,(ulong)uVar1);
}
return param_1;
}
|
|
62,359 |
my_like_range_simple
|
eloqsql/strings/ctype-simple.c
|
my_bool my_like_range_simple(CHARSET_INFO *cs,
const char *ptr, size_t ptr_length,
pbool escape, pbool w_one, pbool w_many,
size_t res_length,
char *min_str,char *max_str,
size_t *min_length, size_t *max_length)
{
const char *end= ptr + ptr_length;
char *min_org=min_str;
char *min_end=min_str+res_length;
size_t charlen= res_length / cs->mbmaxlen;
for (; ptr != end && min_str != min_end && charlen > 0 ; ptr++, charlen--)
{
if (*ptr == escape && ptr+1 != end)
{
ptr++; /* Skip escape */
*min_str++= *max_str++ = *ptr;
continue;
}
if (*ptr == w_one) /* '_' in SQL */
{
*min_str++='\0'; /* This should be min char */
*max_str++= (char) cs->max_sort_char;
continue;
}
if (*ptr == w_many) /* '%' in SQL */
{
/* Calculate length of keys */
*min_length= (cs->state & (MY_CS_BINSORT | MY_CS_NOPAD)) ?
(size_t) (min_str - min_org) :
res_length;
*max_length= res_length;
do
{
*min_str++= 0;
*max_str++= (char) cs->max_sort_char;
} while (min_str != min_end);
return 0;
}
*min_str++= *max_str++ = *ptr;
}
*min_length= *max_length = (size_t) (min_str - min_org);
while (min_str != min_end)
*min_str++= *max_str++ = ' '; /* Because if key compression */
return 0;
}
|
O0
|
c
|
my_like_range_simple:
pushq %rbp
movq %rsp, %rbp
movl %r8d, -0x60(%rbp)
movl %ecx, %eax
movl -0x60(%rbp), %ecx
movl %eax, -0x5c(%rbp)
movq %rdx, %rax
movl -0x5c(%rbp), %edx
movq %rax, -0x58(%rbp)
movq %rsi, %rax
movq -0x58(%rbp), %rsi
movq %rax, -0x50(%rbp)
movq %rdi, %r8
movq -0x50(%rbp), %rdi
movb %r9b, %al
movq 0x30(%rbp), %r9
movq 0x28(%rbp), %r9
movq 0x20(%rbp), %r9
movq 0x18(%rbp), %r9
movq 0x10(%rbp), %r9
movq %r8, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movb %dl, -0x21(%rbp)
movb %cl, -0x22(%rbp)
movb %al, -0x23(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%rbp), %rax
addq 0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x9c(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x61(%rbp)
je 0x4aed8
movq 0x18(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x61(%rbp)
je 0x4aed8
cmpq $0x0, -0x48(%rbp)
seta %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0x4aee4
jmp 0x4b059
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x21(%rbp), %ecx
cmpl %ecx, %eax
jne 0x4af3a
movq -0x18(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
je 0x4af3a
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb (%rax), %cl
movq 0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x20(%rbp)
movb %cl, (%rax)
movq 0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rbp)
movb %cl, (%rax)
jmp 0x4b03c
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x22(%rbp), %ecx
cmpl %ecx, %eax
jne 0x4af7e
movq 0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rbp)
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rax
movb %al, %cl
movq 0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x20(%rbp)
movb %cl, (%rax)
jmp 0x4b03c
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x23(%rbp), %ecx
cmpl %ecx, %eax
jne 0x4b014
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x20010, %eax # imm = 0x20010
cmpl $0x0, %eax
je 0x4afb3
movq 0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x70(%rbp)
jmp 0x4afbb
movq 0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rcx
movq 0x28(%rbp), %rax
movq %rcx, (%rax)
movq 0x10(%rbp), %rcx
movq 0x30(%rbp), %rax
movq %rcx, (%rax)
movq 0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rbp)
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rax
movb %al, %cl
movq 0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x20(%rbp)
movb %cl, (%rax)
movq 0x18(%rbp), %rax
cmpq -0x40(%rbp), %rax
jne 0x4afd1
movb $0x0, -0x1(%rbp)
jmp 0x4b0a6
movq -0x18(%rbp), %rax
movb (%rax), %cl
movq 0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x20(%rbp)
movb %cl, (%rax)
movq 0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x48(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x4aeaf
movq 0x18(%rbp), %rcx
movq -0x38(%rbp), %rax
subq %rax, %rcx
movq 0x30(%rbp), %rax
movq %rcx, (%rax)
movq 0x28(%rbp), %rax
movq %rcx, (%rax)
movq 0x18(%rbp), %rax
cmpq -0x40(%rbp), %rax
je 0x4b0a2
movq 0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rbp)
movb $0x20, (%rax)
movq 0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rbp)
movb $0x20, (%rax)
jmp 0x4b072
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax,%rax)
|
my_like_range_simple:
push rbp
mov rbp, rsp
mov [rbp+var_60], r8d
mov eax, ecx
mov ecx, [rbp+var_60]
mov [rbp+var_5C], eax
mov rax, rdx
mov edx, [rbp+var_5C]
mov [rbp+var_58], rax
mov rax, rsi
mov rsi, [rbp+var_58]
mov [rbp+var_50], rax
mov r8, rdi
mov rdi, [rbp+var_50]
mov al, r9b
mov r9, [rbp+arg_20]
mov r9, [rbp+arg_18]
mov r9, [rbp+arg_10]
mov r9, [rbp+arg_8]
mov r9, [rbp+arg_0]
mov [rbp+var_10], r8
mov [rbp+var_18], rdi
mov [rbp+var_20], rsi
mov [rbp+var_21], dl
mov [rbp+var_22], cl
mov [rbp+var_23], al
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
mov [rbp+var_30], rax
mov rax, [rbp+arg_8]
mov [rbp+var_38], rax
mov rax, [rbp+arg_8]
add rax, [rbp+arg_0]
mov [rbp+var_40], rax
mov rax, [rbp+arg_0]
mov rcx, [rbp+var_10]
mov ecx, [rcx+9Ch]
xor edx, edx
div rcx
mov [rbp+var_48], rax
loc_4AEAF:
mov rcx, [rbp+var_18]
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_61], al
jz short loc_4AED8
mov rcx, [rbp+arg_8]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_61], al
jz short loc_4AED8
cmp [rbp+var_48], 0
setnbe al
mov [rbp+var_61], al
loc_4AED8:
mov al, [rbp+var_61]
test al, 1
jnz short loc_4AEE4
jmp loc_4B059
loc_4AEE4:
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
movsx ecx, [rbp+var_21]
cmp eax, ecx
jnz short loc_4AF3A
mov rax, [rbp+var_18]
add rax, 1
cmp rax, [rbp+var_30]
jz short loc_4AF3A
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov cl, [rax]
mov rax, [rbp+arg_10]
mov rdx, rax
add rdx, 1
mov [rbp+arg_10], rdx
mov [rax], cl
mov rax, [rbp+arg_8]
mov rdx, rax
add rdx, 1
mov [rbp+arg_8], rdx
mov [rax], cl
jmp loc_4B03C
loc_4AF3A:
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
movsx ecx, [rbp+var_22]
cmp eax, ecx
jnz short loc_4AF7E
mov rax, [rbp+arg_8]
mov rcx, rax
add rcx, 1
mov [rbp+arg_8], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov rax, [rax+0A8h]
mov cl, al
mov rax, [rbp+arg_10]
mov rdx, rax
add rdx, 1
mov [rbp+arg_10], rdx
mov [rax], cl
jmp loc_4B03C
loc_4AF7E:
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
movsx ecx, [rbp+var_23]
cmp eax, ecx
jnz loc_4B014
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
and eax, 20010h
cmp eax, 0
jz short loc_4AFB3
mov rax, [rbp+arg_8]
mov rcx, [rbp+var_38]
sub rax, rcx
mov [rbp+var_70], rax
jmp short loc_4AFBB
loc_4AFB3:
mov rax, [rbp+arg_0]
mov [rbp+var_70], rax
loc_4AFBB:
mov rcx, [rbp+var_70]
mov rax, [rbp+arg_18]
mov [rax], rcx
mov rcx, [rbp+arg_0]
mov rax, [rbp+arg_20]
mov [rax], rcx
loc_4AFD1:
mov rax, [rbp+arg_8]
mov rcx, rax
add rcx, 1
mov [rbp+arg_8], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov rax, [rax+0A8h]
mov cl, al
mov rax, [rbp+arg_10]
mov rdx, rax
add rdx, 1
mov [rbp+arg_10], rdx
mov [rax], cl
mov rax, [rbp+arg_8]
cmp rax, [rbp+var_40]
jnz short loc_4AFD1
mov [rbp+var_1], 0
jmp loc_4B0A6
loc_4B014:
mov rax, [rbp+var_18]
mov cl, [rax]
mov rax, [rbp+arg_10]
mov rdx, rax
add rdx, 1
mov [rbp+arg_10], rdx
mov [rax], cl
mov rax, [rbp+arg_8]
mov rdx, rax
add rdx, 1
mov [rbp+arg_8], rdx
mov [rax], cl
loc_4B03C:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
mov rax, [rbp+var_48]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_48], rax
jmp loc_4AEAF
loc_4B059:
mov rcx, [rbp+arg_8]
mov rax, [rbp+var_38]
sub rcx, rax
mov rax, [rbp+arg_20]
mov [rax], rcx
mov rax, [rbp+arg_18]
mov [rax], rcx
loc_4B072:
mov rax, [rbp+arg_8]
cmp rax, [rbp+var_40]
jz short loc_4B0A2
mov rax, [rbp+arg_10]
mov rcx, rax
add rcx, 1
mov [rbp+arg_10], rcx
mov byte ptr [rax], 20h ; ' '
mov rax, [rbp+arg_8]
mov rcx, rax
add rcx, 1
mov [rbp+arg_8], rcx
mov byte ptr [rax], 20h ; ' '
jmp short loc_4B072
loc_4B0A2:
mov [rbp+var_1], 0
loc_4B0A6:
mov al, [rbp+var_1]
pop rbp
retn
|
char my_like_range_simple(
long long a1,
_BYTE *a2,
long long a3,
char a4,
char a5,
char a6,
unsigned long long a7,
_BYTE *a8,
_BYTE *a9,
unsigned long long *a10,
_QWORD *a11)
{
char v11; // cl
_BYTE *v12; // rax
_BYTE *v13; // rax
_BYTE *v14; // rax
_BYTE *v15; // rax
_BYTE *v16; // rax
_BYTE *v17; // rax
char v18; // cl
_BYTE *v19; // rax
_BYTE *v20; // rax
_BYTE *v21; // rax
_BYTE *v22; // rax
unsigned long long v24; // [rsp+0h] [rbp-70h]
bool v25; // [rsp+Fh] [rbp-61h]
unsigned long long i; // [rsp+28h] [rbp-48h]
_BYTE *v27; // [rsp+30h] [rbp-40h]
long long v28; // [rsp+38h] [rbp-38h]
_BYTE *v29; // [rsp+40h] [rbp-30h]
_BYTE *v31; // [rsp+58h] [rbp-18h]
v31 = a2;
v29 = &a2[a3];
v28 = (long long)a8;
v27 = &a8[a7];
for ( i = a7 / *(unsigned int *)(a1 + 156); ; --i )
{
v25 = 0;
if ( v31 != v29 )
{
v25 = 0;
if ( a8 != v27 )
v25 = i != 0;
}
if ( !v25 )
{
*a11 = &a8[-v28];
*a10 = (unsigned long long)&a8[-v28];
while ( a8 != v27 )
{
v21 = a9++;
*v21 = 32;
v22 = a8++;
*v22 = 32;
}
return 0;
}
if ( (char)*v31 == a4 && v31 + 1 != v29 )
{
v11 = *++v31;
v12 = a9++;
*v12 = *v31;
v13 = a8++;
*v13 = v11;
goto LABEL_19;
}
if ( (char)*v31 == a5 )
{
v14 = a8++;
*v14 = 0;
v15 = a9++;
*v15 = *(_QWORD *)(a1 + 168);
goto LABEL_19;
}
if ( (char)*v31 == a6 )
break;
v18 = *v31;
v19 = a9++;
*v19 = *v31;
v20 = a8++;
*v20 = v18;
LABEL_19:
++v31;
}
if ( (*(_DWORD *)(a1 + 12) & 0x20010) != 0 )
v24 = (unsigned long long)&a8[-v28];
else
v24 = a7;
*a10 = v24;
*a11 = a7;
do
{
v16 = a8++;
*v16 = 0;
v17 = a9++;
*v17 = *(_QWORD *)(a1 + 168);
}
while ( a8 != v27 );
return 0;
}
|
my_like_range_simple:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x60],R8D
MOV EAX,ECX
MOV ECX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x5c],EAX
MOV RAX,RDX
MOV EDX,dword ptr [RBP + -0x5c]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,RSI
MOV RSI,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x50],RAX
MOV R8,RDI
MOV RDI,qword ptr [RBP + -0x50]
MOV AL,R9B
MOV R9,qword ptr [RBP + 0x30]
MOV R9,qword ptr [RBP + 0x28]
MOV R9,qword ptr [RBP + 0x20]
MOV R9,qword ptr [RBP + 0x18]
MOV R9,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],R8
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RSI
MOV byte ptr [RBP + -0x21],DL
MOV byte ptr [RBP + -0x22],CL
MOV byte ptr [RBP + -0x23],AL
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x18]
ADD RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x9c]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x48],RAX
LAB_0014aeaf:
MOV RCX,qword ptr [RBP + -0x18]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x61],AL
JZ 0x0014aed8
MOV RCX,qword ptr [RBP + 0x18]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x61],AL
JZ 0x0014aed8
CMP qword ptr [RBP + -0x48],0x0
SETA AL
MOV byte ptr [RBP + -0x61],AL
LAB_0014aed8:
MOV AL,byte ptr [RBP + -0x61]
TEST AL,0x1
JNZ 0x0014aee4
JMP 0x0014b059
LAB_0014aee4:
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RBP + -0x21]
CMP EAX,ECX
JNZ 0x0014af3a
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x0014af3a
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + 0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + 0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + 0x18]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + 0x18],RDX
MOV byte ptr [RAX],CL
JMP 0x0014b03c
LAB_0014af3a:
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RBP + -0x22]
CMP EAX,ECX
JNZ 0x0014af7e
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + 0x18],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa8]
MOV CL,AL
MOV RAX,qword ptr [RBP + 0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + 0x20],RDX
MOV byte ptr [RAX],CL
JMP 0x0014b03c
LAB_0014af7e:
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RBP + -0x23]
CMP EAX,ECX
JNZ 0x0014b014
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x20010
CMP EAX,0x0
JZ 0x0014afb3
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,qword ptr [RBP + -0x38]
SUB RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
JMP 0x0014afbb
LAB_0014afb3:
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x70],RAX
LAB_0014afbb:
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + 0x28]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RBP + 0x30]
MOV qword ptr [RAX],RCX
LAB_0014afd1:
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + 0x18],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa8]
MOV CL,AL
MOV RAX,qword ptr [RBP + 0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + 0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + 0x18]
CMP RAX,qword ptr [RBP + -0x40]
JNZ 0x0014afd1
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0014b0a6
LAB_0014b014:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + 0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + 0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + 0x18]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + 0x18],RDX
MOV byte ptr [RAX],CL
LAB_0014b03c:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0014aeaf
LAB_0014b059:
MOV RCX,qword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + -0x38]
SUB RCX,RAX
MOV RAX,qword ptr [RBP + 0x30]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + 0x28]
MOV qword ptr [RAX],RCX
LAB_0014b072:
MOV RAX,qword ptr [RBP + 0x18]
CMP RAX,qword ptr [RBP + -0x40]
JZ 0x0014b0a2
MOV RAX,qword ptr [RBP + 0x20]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + 0x20],RCX
MOV byte ptr [RAX],0x20
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + 0x18],RCX
MOV byte ptr [RAX],0x20
JMP 0x0014b072
LAB_0014b0a2:
MOV byte ptr [RBP + -0x1],0x0
LAB_0014b0a6:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int8
my_like_range_simple
(long param_1,char *param_2,long param_3,char param_4,char param_5,char param_6,
ulong param_7,char *param_8,char *param_9,ulong *param_10,ulong *param_11)
{
char cVar1;
char *pcVar2;
char *pcVar3;
ulong uVar4;
bool bVar5;
ulong local_78;
ulong local_50;
char *local_20;
pcVar3 = param_8;
pcVar2 = param_8 + param_7;
local_50 = param_7 / *(uint *)(param_1 + 0x9c);
local_20 = param_2;
while( true ) {
bVar5 = false;
if ((local_20 != param_2 + param_3) && (bVar5 = false, param_8 != pcVar2)) {
bVar5 = local_50 != 0;
}
if (!bVar5) break;
if ((*local_20 == param_4) && (local_20 + 1 != param_2 + param_3)) {
local_20 = local_20 + 1;
cVar1 = *local_20;
*param_9 = cVar1;
*param_8 = cVar1;
}
else if (*local_20 == param_5) {
*param_8 = '\0';
*param_9 = (char)*(int8 *)(param_1 + 0xa8);
}
else {
if (*local_20 == param_6) {
if ((*(uint *)(param_1 + 0xc) & 0x20010) == 0) {
local_78 = param_7;
}
else {
local_78 = (long)param_8 - (long)pcVar3;
}
*param_10 = local_78;
*param_11 = param_7;
do {
pcVar3 = param_8 + 1;
*param_8 = '\0';
*param_9 = (char)*(int8 *)(param_1 + 0xa8);
param_8 = pcVar3;
param_9 = param_9 + 1;
} while (pcVar3 != pcVar2);
return 0;
}
cVar1 = *local_20;
*param_9 = cVar1;
*param_8 = cVar1;
}
param_9 = param_9 + 1;
param_8 = param_8 + 1;
local_20 = local_20 + 1;
local_50 = local_50 - 1;
}
uVar4 = (long)param_8 - (long)pcVar3;
*param_11 = uVar4;
*param_10 = uVar4;
while (param_8 != pcVar2) {
*param_9 = ' ';
*param_8 = ' ';
param_8 = param_8 + 1;
param_9 = param_9 + 1;
}
return 0;
}
|
|
62,360 |
ftxui::ButtonOption::Border()
|
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/component_options.cpp
|
ButtonOption ButtonOption::Border() {
ButtonOption option;
option.transform = [](const EntryState& s) {
auto element = text(s.label) | border;
if (s.active) {
element |= bold;
}
if (s.focused) {
element |= inverted;
}
return element;
};
return option;
}
|
O1
|
cpp
|
ftxui::ButtonOption::Border():
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x36f26
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
leaq 0x1259(%rip), %rcx # 0x35dea
movq %rcx, 0x18(%rsp)
leaq 0x1465(%rip), %rdx # 0x36002
movq %rdx, 0x10(%rsp)
movups 0x48(%rbx), %xmm1
movaps %xmm1, (%rsp)
movups %xmm0, 0x48(%rbx)
movq 0x58(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x58(%rbx)
movq 0x60(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x60(%rbx)
testq %rax, %rax
je 0x34bda
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x106a9
nop
|
_ZN5ftxui12ButtonOption6BorderEv:
push rbx
sub rsp, 20h
mov rbx, rdi
call _ZN5ftxui12ButtonOptionC2Ev; ftxui::ButtonOption::ButtonOption(void)
xorps xmm0, xmm0
movaps [rsp+28h+var_28], xmm0
lea rcx, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEERKNS1_10EntryStateEEZNS1_12ButtonOption6BorderEvE3$_0E9_M_invokeERKSt9_Any_dataS6_; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::ButtonOption::Border(void)::$_0>::_M_invoke(std::_Any_data const&,ftxui::EntryState const&)
mov [rsp+28h+var_10], rcx
lea rdx, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEERKNS1_10EntryStateEEZNS1_12ButtonOption6BorderEvE3$_0E10_M_managerERSt9_Any_dataRKSB_St18_Manager_operation; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::ButtonOption::Border(void)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsp+28h+var_18], rdx
movups xmm1, xmmword ptr [rbx+48h]
movaps [rsp+28h+var_28], xmm1
movups xmmword ptr [rbx+48h], xmm0
mov rax, [rbx+58h]
mov [rsp+28h+var_18], rax
mov [rbx+58h], rdx
mov rdx, [rbx+60h]
mov [rsp+28h+var_10], rdx
mov [rbx+60h], rcx
test rax, rax
jz short loc_34BDA
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_34BDA:
mov rax, rbx
add rsp, 20h
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
|
ftxui::ButtonOption * ftxui::ButtonOption::Border(ftxui::ButtonOption *this)
{
long long ( *v1)(); // rax
__int128 v3; // [rsp+0h] [rbp-28h] BYREF
long long ( *v4)(); // [rsp+10h] [rbp-18h]
long long ( *v5)(); // [rsp+18h] [rbp-10h]
ftxui::ButtonOption::ButtonOption(this);
v3 = 0LL;
v5 = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::ButtonOption::Border(void)::$_0>::_M_invoke;
v4 = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::ButtonOption::Border(void)::$_0>::_M_manager;
v3 = *(_OWORD *)((char *)this + 72);
*(_OWORD *)((char *)this + 72) = 0LL;
v4 = (long long ( *)())*((_QWORD *)this + 11);
v1 = v4;
*((_QWORD *)this + 11) = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::ButtonOption::Border(void)::$_0>::_M_manager;
v5 = (long long ( *)())*((_QWORD *)this + 12);
*((_QWORD *)this + 12) = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::ButtonOption::Border(void)::$_0>::_M_invoke;
if ( v1 )
((void ( *)(__int128 *, __int128 *, long long))v1)(&v3, &v3, 3LL);
return this;
}
|
Border:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
CALL 0x00136f26
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
LEA RCX,[0x135dea]
MOV qword ptr [RSP + 0x18],RCX
LEA RDX,[0x136002]
MOV qword ptr [RSP + 0x10],RDX
MOVUPS XMM1,xmmword ptr [RBX + 0x48]
MOVAPS xmmword ptr [RSP],XMM1
MOVUPS xmmword ptr [RBX + 0x48],XMM0
MOV RAX,qword ptr [RBX + 0x58]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RBX + 0x58],RDX
MOV RDX,qword ptr [RBX + 0x60]
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RBX + 0x60],RCX
TEST RAX,RAX
JZ 0x00134bda
LAB_00134bcd:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00134bda:
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* ftxui::ButtonOption::Border() */
ButtonOption * __thiscall ftxui::ButtonOption::Border(ButtonOption *this)
{
int8 local_28;
int8 uStack_20;
code *local_18;
int8 local_10;
ButtonOption(this);
local_28 = *(int8 *)(this + 0x48);
uStack_20 = *(int8 *)(this + 0x50);
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
local_18 = *(code **)(this + 0x58);
*(code **)(this + 0x58) =
std::
_Function_handler<std::shared_ptr<ftxui::Node>(ftxui::EntryState_const&),ftxui::ButtonOption::Border()::$_0>
::_M_manager;
local_10 = *(int8 *)(this + 0x60);
*(code **)(this + 0x60) =
std::
_Function_handler<std::shared_ptr<ftxui::Node>(ftxui::EntryState_const&),ftxui::ButtonOption::Border()::$_0>
::_M_invoke;
if (local_18 != (code *)0x0) {
/* try { // try from 00134bcd to 00134bd9 has its CatchHandler @ 00134be3 */
(*local_18)(&local_28,&local_28,3);
}
return this;
}
|
|
62,361 |
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at(unsigned long)
|
monkey531[P]llama/common/json.hpp
|
reference at(size_type idx)
{
// at only works for arrays
if (JSON_HEDLEY_LIKELY(is_array()))
{
JSON_TRY
{
return set_parent(m_data.m_value.array->at(idx));
}
JSON_CATCH (std::out_of_range&)
{
// create better exception explanation
JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at(unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r15
cmpb $0x2, (%rdi)
jne 0xab052
movq %rsi, %r12
movq 0x8(%r15), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
cmpq %rsi, %rdx
jbe 0xab0b1
shlq $0x4, %r12
addq %r12, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1a450
movq %rax, %r14
movq %r15, %rdi
callq 0x5f468
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x46037(%rip), %rsi # 0xf10ad
movq %rsp, %rdi
callq 0xab411
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x130, %esi # imm = 0x130
movq %r15, %rcx
callq 0x5f210
xorl %ebp, %ebp
leaq 0x7eebb(%rip), %rsi # 0x129f58
leaq -0x4fa06(%rip), %rdx # 0x5b69e
movq %r14, %rdi
callq 0x1af10
jmp 0xab139
leaq 0x4553f(%rip), %rdi # 0xf05f7
movq %r12, %rsi
xorl %eax, %eax
callq 0x1ad10
movq %rax, %rbx
cmpl $0x1, %edx
jne 0xab1e3
movq %rbx, %rdi
callq 0x1a390
movl $0x20, %edi
callq 0x1a450
movq %rax, %r14
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x5da52
leaq 0x45f98(%rip), %rsi # 0xf108f
leaq 0x45f9e(%rip), %rcx # 0xf109c
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0xab36c
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x191, %esi # imm = 0x191
movq %r15, %rcx
callq 0x5d800
xorl %ebp, %ebp
leaq 0x7edae(%rip), %rsi # 0x129ed8
leaq -0x4fa93(%rip), %rdx # 0x5b69e
movq %r14, %rdi
callq 0x1af10
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xab157
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xab172
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a8e0
testb %bpl, %bpl
jne 0xab19c
jmp 0xab1a4
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xab19c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a8e0
jmp 0xab19c
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a690
callq 0x1ae50
jmp 0xab1e3
movq %rax, %rdi
callq 0x22203
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xab1d1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8e0
testb %bpl, %bpl
jne 0xab1db
jmp 0xab1e3
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a690
movq %rbx, %rdi
callq 0x1af90
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atEm:
push rbp; char
push r15; int
push r14; int
push r12; int
push rbx; char
sub rsp, 40h
mov r15, rdi
cmp byte ptr [rdi], 2
jnz short loc_AB052
mov r12, rsi
mov rcx, [r15+8]
mov rax, [rcx]
mov rdx, [rcx+8]
sub rdx, rax
sar rdx, 4
cmp rdx, rsi
jbe short loc_AB0B1
shl r12, 4
add rax, r12
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_AB052:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+68h+var_48]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 130h; int
mov rcx, r15
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp loc_AB139
loc_AB0B1:
lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"...
mov rsi, r12
xor eax, eax
call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
mov rbx, rax
cmp edx, 1
jnz loc_AB1E3
mov rdi, rbx; void *
call ___cxa_begin_catch
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rdi, [rsp+68h+var_48]; this
mov rsi, r12; unsigned __int64
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
lea rsi, aArrayIndex; "array index "
lea rcx, aIsOutOfRange; " is out of range"
mov rdi, rsp
lea rdx, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA13_KcS8_RA17_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[13],std::string,char const(&)[17]>(char const(&)[13],std::string,char const(&)[17] &&)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 191h; int
mov rcx, r15
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_AB139:
mov rbx, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AB157
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AB157:
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AB172
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AB172:
test bpl, bpl
jnz short loc_AB19C
jmp short loc_AB1A4
mov rbx, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AB19C
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_AB19C
mov rbx, rax
loc_AB19C:
mov rdi, r14; void *
call ___cxa_free_exception
loc_AB1A4:
call ___cxa_end_catch
jmp short loc_AB1E3
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AB1D1
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AB1D1:
test bpl, bpl
jnz short loc_AB1DB
jmp short loc_AB1E3
mov rbx, rax
loc_AB1DB:
mov rdi, r14; void *
call ___cxa_free_exception
loc_AB1E3:
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::at(
long long a1,
unsigned long long a2)
{
_QWORD *v2; // rcx
unsigned long long v3; // rdx
nlohmann::json_abi_v3_11_3::detail::exception *exception; // r14
_QWORD v6[6]; // [rsp+0h] [rbp-68h] BYREF
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v6[4] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v6, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v2 = *(_QWORD **)(a1 + 8);
v3 = (long long)(v2[1] - *v2) >> 4;
if ( v3 <= a2 )
std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", a2, v3);
return 16 * a2 + *v2;
}
|
at:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R15,RDI
CMP byte ptr [RDI],0x2
JNZ 0x001ab052
MOV R12,RSI
MOV RCX,qword ptr [R15 + 0x8]
MOV RAX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x8]
SUB RDX,RAX
SAR RDX,0x4
CMP RDX,RSI
JBE 0x001ab0b1
SHL R12,0x4
ADD RAX,R12
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001ab052:
MOV EDI,0x20
CALL 0x0011a450
MOV R14,RAX
MOV RDI,R15
CALL 0x0015f468
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LAB_001ab06f:
LEA RSI,[0x1f10ad]
MOV RDI,RSP
CALL 0x001ab411
MOV BPL,0x1
LAB_001ab081:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x130
MOV RCX,R15
CALL 0x0015f210
XOR EBP,EBP
LEA RSI,[0x229f58]
LEA RDX,[0x15b69e]
MOV RDI,R14
CALL 0x0011af10
LAB_001ab0b1:
LEA RDI,[0x1f05f7]
MOV RSI,R12
XOR EAX,EAX
CALL 0x0011ad10
LAB_001ab0c2:
MOV RBX,RAX
CMP EDX,0x1
JNZ 0x001ab1e3
MOV RDI,RBX
CALL 0x0011a390
MOV EDI,0x20
CALL 0x0011a450
MOV R14,RAX
LAB_001ab0e3:
LEA RDI,[RSP + 0x20]
MOV RSI,R12
CALL 0x0015da52
LAB_001ab0f0:
LEA RSI,[0x1f108f]
LEA RCX,[0x1f109c]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x001ab36c
MOV BPL,0x1
LAB_001ab10e:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x191
MOV RCX,R15
CALL 0x0015d800
XOR EBP,EBP
LEA RSI,[0x229ed8]
LEA RDX,[0x15b69e]
MOV RDI,R14
CALL 0x0011af10
LAB_001ab1e3:
MOV RDI,RBX
CALL 0x0011af90
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::at(unsigned long) */
long __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::at(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,ulong param_1)
{
long lVar1;
int8 uVar2;
int1 auVar3 [12];
detail adStack_68 [32];
char *local_48 [4];
if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
uVar2 = __cxa_allocate_exception(0x20);
local_48[0] = (char *)type_name(this);
/* try { // try from 001ab06f to 001ab07d has its CatchHandler @ 001ab1d8 */
detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(adStack_68,"cannot use at() with ",local_48);
/* try { // try from 001ab081 to 001ab0ab has its CatchHandler @ 001ab1b3 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x130,adStack_68,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
lVar1 = **(long **)(this + 8);
if (param_1 < (ulong)((*(long **)(this + 8))[1] - lVar1 >> 4)) {
return lVar1 + param_1 * 0x10;
}
/* try { // try from 001ab0b1 to 001ab0c1 has its CatchHandler @ 001ab0c2 */
auVar3 = std::__throw_out_of_range_fmt
("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",
param_1);
/* catch(type#1 @ 0022e868) { ... } // from try @ 001ab0b1 with catch @ 001ab0c2
*/
if (auVar3._8_4_ == 1) {
__cxa_begin_catch(auVar3._0_8_);
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 001ab0e3 to 001ab0ef has its CatchHandler @ 001ab199 */
std::__cxx11::to_string((__cxx11 *)local_48,param_1);
/* try { // try from 001ab0f0 to 001ab10a has its CatchHandler @ 001ab179 */
detail::concat<std::__cxx11::string,char_const(&)[13],std::__cxx11::string,char_const(&)[17]>
(adStack_68,"array index ",(string *)local_48," is out of range");
/* try { // try from 001ab10e to 001ab138 has its CatchHandler @ 001ab139 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x191,adStack_68,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::out_of_range::typeinfo,detail::exception::~exception);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(auVar3._0_8_);
}
|
|
62,362 |
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const
|
monkey531[P]llama/common/json.hpp
|
bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
}
|
O3
|
cpp
|
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x5f195
testq %rax, %rax
je 0x5f1f3
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x5f175
cmpl $0x1, %eax
jne 0x5f17f
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x5f187
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x5f187
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1a440
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8e3cc(%rip), %rsi # 0xed57e
leaq 0x8e3f5(%rip), %rdx # 0xed5ae
leaq 0x8(%rsp), %rdi
callq 0x22610
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x5f248
xorl %ebp, %ebp
leaq 0xcad34(%rip), %rsi # 0x129f18
leaq -0x38ad(%rip), %rdx # 0x5b93e
movq %rbx, %rdi
callq 0x1af30
leaq 0x8d35f(%rip), %rdi # 0xec559
leaq 0x8d3a2(%rip), %rdx # 0xec5a3
leaq 0x92625(%rip), %rcx # 0xf182d
movl $0x3422, %esi # imm = 0x3422
xorl %eax, %eax
callq 0x1aec0
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f22e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a900
testb %bpl, %bpl
jne 0x5f238
jmp 0x5f240
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a680
movq %r14, %rdi
callq 0x1afc0
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
push rbp; char
push r15; int
push r14; __int64
push rbx; int
sub rsp, 28h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_5F195
test rax, rax
jz loc_5F1F3
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_5F175
cmp eax, 1
jnz short loc_5F17F
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_5F187
loc_5F175:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_5F187
loc_5F17F:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_5F187:
setz al
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_5F195:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+48h+var_30]
mov [r15-10h], r15
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdx, aCannotCompareI+30h; ""
lea rdi, [rsp+48h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0D4h; int
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_5F1F3:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 3422h
xor eax, eax
call _ggml_abort
mov r14, rax
mov rdi, [rsp+48h+var_40]; void *
cmp rdi, r15
jz short loc_5F22E
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F22E:
test bpl, bpl
jnz short loc_5F238
jmp short loc_5F240
mov r14, rax
loc_5F238:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_5F240:
mov rdi, r14
call __Unwind_Resume
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x0015f195
TEST RAX,RAX
JZ 0x0015f1f3
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x0015f175
CMP EAX,0x1
JNZ 0x0015f17f
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x0015f187
LAB_0015f175:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x0015f187
LAB_0015f17f:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_0015f187:
SETZ AL
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0015f195:
MOV EDI,0x20
CALL 0x0011a440
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0015f1ab:
LEA RSI,[0x1ed57e]
LEA RDX,[0x1ed5ae]
LEA RDI,[RSP + 0x8]
CALL 0x00122610
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0015f1c9:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x0015f248
XOR EBP,EBP
LEA RSI,[0x229f18]
LEA RDX,[0x15b93e]
MOV RDI,RBX
CALL 0x0011af30
LAB_0015f1f3:
LEA RDI,[0x1ec559]
LEA RDX,[0x1ec5a3]
LEA RCX,[0x1f182d]
MOV ESI,0x3422
XOR EAX,EAX
CALL 0x0011aec0
|
int8
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(int8 *param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
bool bVar4;
int1 *local_40 [2];
int1 local_30 [16];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_40[0] = local_30;
/* try { // try from 0015f1ab to 0015f1c2 has its CatchHandler @ 0015f235 */
std::__cxx11::string::_M_construct<char_const*>
(local_40,"cannot compare iterators of different containers","");
/* try { // try from 0015f1c9 to 0015f1f2 has its CatchHandler @ 0015f214 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xd4,local_40,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (pcVar1 != (char *)0x0) {
if (*pcVar1 == '\x02') {
lVar2 = param_1[2];
bVar4 = lVar2 == param_2[2];
}
else if (*pcVar1 == '\x01') {
lVar2 = param_1[1];
bVar4 = lVar2 == param_2[1];
}
else {
lVar2 = param_1[3];
bVar4 = lVar2 == param_2[3];
}
return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4);
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
|
||
62,363 |
PVG_FT_Stroker_GetCounts
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c
|
PVG_FT_Error PVG_FT_Stroker_GetCounts(PVG_FT_Stroker stroker,
PVG_FT_UInt* anum_points,
PVG_FT_UInt* anum_contours)
{
PVG_FT_UInt count1, count2, num_points = 0;
PVG_FT_UInt count3, count4, num_contours = 0;
PVG_FT_Error error;
error = ft_stroke_border_get_counts(stroker->borders + 0, &count1, &count2);
if (error) goto Exit;
error = ft_stroke_border_get_counts(stroker->borders + 1, &count3, &count4);
if (error) goto Exit;
num_points = count1 + count3;
num_contours = count2 + count4;
Exit:
*anum_points = num_points;
*anum_contours = num_contours;
return error;
}
|
O1
|
c
|
PVG_FT_Stroker_GetCounts:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq $0x70, %rdi
leaq 0x8(%rsp), %rsi
leaq 0x14(%rsp), %r13
movq %r13, %rdx
callq 0x1ea6c
addq $0x98, %r15
leaq 0x10(%rsp), %rbp
leaq 0xc(%rsp), %r12
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x1ea6c
movl (%r12), %eax
addl (%r13), %eax
movl (%rbp), %ecx
leaq 0x8(%rsp), %rdx
addl (%rdx), %ecx
movl %ecx, (%r14)
movl %eax, (%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
PVG_FT_Stroker_GetCounts:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
add rdi, 70h ; 'p'
lea rsi, [rsp+48h+var_40]
lea r13, [rsp+48h+var_34]
mov rdx, r13
call ft_stroke_border_get_counts
add r15, 98h
lea rbp, [rsp+48h+var_38]
lea r12, [rsp+48h+var_3C]
mov rdi, r15
mov rsi, rbp
mov rdx, r12
call ft_stroke_border_get_counts
mov eax, [r12]
add eax, [r13+0]
mov ecx, [rbp+0]
lea rdx, [rsp+48h+var_40]
add ecx, [rdx]
mov [r14], ecx
mov [rbx], eax
xor eax, eax
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long PVG_FT_Stroker_GetCounts(long long a1, _DWORD *a2, _DWORD *a3)
{
int v4; // eax
int v6; // [rsp+8h] [rbp-40h] BYREF
int v7; // [rsp+Ch] [rbp-3Ch] BYREF
int v8; // [rsp+10h] [rbp-38h] BYREF
_DWORD v9[13]; // [rsp+14h] [rbp-34h] BYREF
ft_stroke_border_get_counts((unsigned int *)(a1 + 112), &v6, v9);
ft_stroke_border_get_counts((unsigned int *)(a1 + 152), &v8, &v7);
v4 = v9[0] + v7;
*a2 = v6 + v8;
*a3 = v4;
return 0LL;
}
|
PVG_FT_Stroker_GetCounts:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
ADD RDI,0x70
LEA RSI,[RSP + 0x8]
LEA R13,[RSP + 0x14]
MOV RDX,R13
CALL 0x0011ea6c
ADD R15,0x98
LEA RBP,[RSP + 0x10]
LEA R12,[RSP + 0xc]
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R12
CALL 0x0011ea6c
MOV EAX,dword ptr [R12]
ADD EAX,dword ptr [R13]
MOV ECX,dword ptr [RBP]
LEA RDX,[RSP + 0x8]
ADD ECX,dword ptr [RDX]
MOV dword ptr [R14],ECX
MOV dword ptr [RBX],EAX
XOR EAX,EAX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 PVG_FT_Stroker_GetCounts(long param_1,int *param_2,int *param_3)
{
int local_40;
int local_3c;
int local_38;
int local_34;
ft_stroke_border_get_counts(param_1 + 0x70,&local_40,&local_34);
ft_stroke_border_get_counts(param_1 + 0x98,&local_38,&local_3c);
*param_2 = local_38 + local_40;
*param_3 = local_3c + local_34;
return 0;
}
|
|
62,364 |
my_charpos_utf16
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_charpos_utf16(CHARSET_INFO *cs,
const char *b, const char *e, size_t pos)
{
const char *b0= b;
uint charlen;
for ( ; pos; b+= charlen, pos--)
{
if (!(charlen= my_ismbchar(cs, b, e)))
return (e + 2 - b0); /* Error, return pos outside the string */
}
return (size_t) (pos ? (e + 2 - b0) : (b - b0));
}
|
O0
|
c
|
my_charpos_utf16:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xfcdb5
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x100450
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jne 0xfcd95
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0xfcde8
jmp 0xfcd97
movl -0x34(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0xfcd60
cmpq $0x0, -0x28(%rbp)
je 0xfcdd1
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
jmp 0xfcde0
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_charpos_utf16:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_FCD60:
cmp [rbp+var_28], 0
jz short loc_FCDB5
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call my_ismbchar_1
mov [rbp+var_34], eax
cmp eax, 0
jnz short loc_FCD95
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_8], rax
jmp short loc_FCDE8
loc_FCD95:
jmp short $+2
loc_FCD97:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_28]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_28], rax
jmp short loc_FCD60
loc_FCDB5:
cmp [rbp+var_28], 0
jz short loc_FCDD1
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
jmp short loc_FCDE0
loc_FCDD1:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
loc_FCDE0:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_FCDE8:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4)
{
unsigned int v5; // [rsp+Ch] [rbp-34h]
long long v8; // [rsp+28h] [rbp-18h]
v8 = a2;
while ( a4 )
{
v5 = my_ismbchar_1(a1, v8, a3);
if ( !v5 )
return a3 + 2 - a2;
v8 += v5;
--a4;
}
return v8 - a2;
}
|
my_charpos_utf16:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_001fcd60:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001fcdb5
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00200450
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JNZ 0x001fcd95
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001fcde8
LAB_001fcd95:
JMP 0x001fcd97
LAB_001fcd97:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001fcd60
LAB_001fcdb5:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001fcdd1
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001fcde0
LAB_001fcdd1:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
LAB_001fcde0:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001fcde8:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001fcdbc) */
long my_charpos_utf16(int8 param_1,long param_2,long param_3,long param_4)
{
uint uVar1;
long local_30;
long local_20;
local_30 = param_4;
local_20 = param_2;
while( true ) {
if (local_30 == 0) {
return local_20 - param_2;
}
uVar1 = my_ismbchar(param_1,local_20,param_3);
if (uVar1 == 0) break;
local_20 = local_20 + (ulong)uVar1;
local_30 = local_30 + -1;
}
return (param_3 + 2) - param_2;
}
|
|
62,365 |
my_caseup_8bit
|
eloqsql/strings/ctype-simple.c
|
size_t my_caseup_8bit(CHARSET_INFO * cs, const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)))
{
const char *end= src + srclen;
register const uchar *map= cs->to_upper;
DBUG_ASSERT(srclen <= dstlen);
for ( ; src != end ; src++)
*dst++= (char) map[(uchar) *src];
return srclen;
}
|
O0
|
c
|
my_caseup_8bit:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x125dc2
jmp 0x125dc4
movq -0x10(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x125dfb
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x125dc4
movq -0x18(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_caseup_8bit:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax+50h]
mov [rbp+var_38], rax
jmp short $+2
loc_125DC2:
jmp short $+2
loc_125DC4:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_30]
jz short loc_125DFB
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_125DC4
loc_125DFB:
mov rax, [rbp+var_18]
pop rbp
retn
|
long long my_caseup_8bit(long long a1, unsigned __int8 *a2, long long a3, _BYTE *a4)
{
_BYTE *v4; // rax
long long v6; // [rsp+0h] [rbp-38h]
unsigned __int8 *v8; // [rsp+28h] [rbp-10h]
v8 = a2;
v6 = *(_QWORD *)(a1 + 80);
while ( v8 != &a2[a3] )
{
v4 = a4++;
*v4 = *(_BYTE *)(v6 + *v8++);
}
return a3;
}
| |||
62,366 |
my_caseup_8bit
|
eloqsql/strings/ctype-simple.c
|
size_t my_caseup_8bit(CHARSET_INFO * cs, const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)))
{
const char *end= src + srclen;
register const uchar *map= cs->to_upper;
DBUG_ASSERT(srclen <= dstlen);
for ( ; src != end ; src++)
*dst++= (char) map[(uchar) *src];
return srclen;
}
|
O3
|
c
|
my_caseup_8bit:
movq %rdx, %rax
testq %rdx, %rdx
je 0xbda7b
pushq %rbp
movq %rsp, %rbp
movq 0x50(%rdi), %rdx
xorl %edi, %edi
movzbl (%rsi,%rdi), %r8d
movb (%rdx,%r8), %r8b
movb %r8b, (%rcx,%rdi)
incq %rdi
cmpq %rdi, %rax
jne 0xbda65
popq %rbp
retq
|
my_caseup_8bit:
mov rax, rdx
test rdx, rdx
jz short locret_BDA7B
push rbp
mov rbp, rsp
mov rdx, [rdi+50h]
xor edi, edi
loc_BDA65:
movzx r8d, byte ptr [rsi+rdi]
mov r8b, [rdx+r8]
mov [rcx+rdi], r8b
inc rdi
cmp rax, rdi
jnz short loc_BDA65
pop rbp
locret_BDA7B:
retn
|
long long my_caseup_8bit(long long a1, long long a2, long long a3, long long a4)
{
long long result; // rax
long long v5; // rdx
long long v6; // rdi
result = a3;
if ( a3 )
{
v5 = *(_QWORD *)(a1 + 80);
v6 = 0LL;
do
{
*(_BYTE *)(a4 + v6) = *(_BYTE *)(v5 + *(unsigned __int8 *)(a2 + v6));
++v6;
}
while ( result != v6 );
}
return result;
}
|
my_caseup_8bit:
MOV RAX,RDX
TEST RDX,RDX
JZ 0x001bda7b
PUSH RBP
MOV RBP,RSP
MOV RDX,qword ptr [RDI + 0x50]
XOR EDI,EDI
LAB_001bda65:
MOVZX R8D,byte ptr [RSI + RDI*0x1]
MOV R8B,byte ptr [RDX + R8*0x1]
MOV byte ptr [RCX + RDI*0x1],R8B
INC RDI
CMP RAX,RDI
JNZ 0x001bda65
POP RBP
LAB_001bda7b:
RET
|
void my_caseup_8bit(long param_1,long param_2,long param_3,long param_4)
{
long lVar1;
long lVar2;
if (param_3 != 0) {
lVar1 = *(long *)(param_1 + 0x50);
lVar2 = 0;
do {
*(int1 *)(param_4 + lVar2) = *(int1 *)(lVar1 + (ulong)*(byte *)(param_2 + lVar2));
lVar2 = lVar2 + 1;
} while (param_3 != lVar2);
}
return;
}
|
|
62,367 |
my_scan_mb2
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_scan_mb2(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *end, int sequence_type)
{
const char *str0= str;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
int res;
switch (sequence_type)
{
case MY_SEQ_SPACES:
for (res= mb_wc(cs, &wc, (const uchar *) str, (const uchar *) end);
res > 0 && wc == ' ';
str+= res,
res= mb_wc(cs, &wc, (const uchar *) str, (const uchar *) end))
{
}
return (size_t) (str - str0);
case MY_SEQ_NONSPACES:
DBUG_ASSERT(0); /* Not implemented */
/* pass through */
default:
return 0;
}
}
|
O0
|
c
|
my_scan_mb2:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x48(%rbp)
subl $0x2, %eax
je 0x62af9
jmp 0x62aef
movl -0x48(%rbp), %eax
subl $0x3, %eax
je 0x62b70
jmp 0x62b76
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x38(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x44(%rbp)
movb %al, -0x49(%rbp)
jle 0x62b28
cmpq $0x20, -0x38(%rbp)
sete %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0x62b31
jmp 0x62b5f
jmp 0x62b33
movl -0x44(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x38(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
jmp 0x62b12
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0x62b7e
jmp 0x62b72
jmp 0x62b74
jmp 0x62b76
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_scan_mb2:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax+0B8h]
mov rax, [rax+28h]
mov [rbp+var_40], rax
mov eax, [rbp+var_24]
mov [rbp+var_48], eax
sub eax, 2
jz short loc_62AF9
jmp short $+2
loc_62AEF:
mov eax, [rbp+var_48]
sub eax, 3
jz short loc_62B70
jmp short loc_62B76
loc_62AF9:
mov rax, [rbp+var_40]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
lea rsi, [rbp+var_38]
call rax
mov [rbp+var_44], eax
loc_62B12:
xor eax, eax
cmp [rbp+var_44], 0
mov [rbp+var_49], al
jle short loc_62B28
cmp [rbp+var_38], 20h ; ' '
setz al
mov [rbp+var_49], al
loc_62B28:
mov al, [rbp+var_49]
test al, 1
jnz short loc_62B31
jmp short loc_62B5F
loc_62B31:
jmp short $+2
loc_62B33:
mov ecx, [rbp+var_44]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_40]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
lea rsi, [rbp+var_38]
call rax
mov [rbp+var_44], eax
jmp short loc_62B12
loc_62B5F:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_8], rax
jmp short loc_62B7E
loc_62B70:
jmp short $+2
loc_62B72:
jmp short $+2
loc_62B74:
jmp short $+2
loc_62B76:
mov [rbp+var_8], 0
loc_62B7E:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
|
long long my_scan_mb2(long long a1, long long a2, long long a3, int a4)
{
bool v5; // [rsp+7h] [rbp-49h]
int i; // [rsp+Ch] [rbp-44h]
long long ( *v7)(long long, long long *, long long, long long); // [rsp+10h] [rbp-40h]
long long v8; // [rsp+18h] [rbp-38h] BYREF
long long v9; // [rsp+20h] [rbp-30h]
int v10; // [rsp+2Ch] [rbp-24h]
long long v11; // [rsp+30h] [rbp-20h]
long long v12; // [rsp+38h] [rbp-18h]
long long v13; // [rsp+40h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a2;
v7 = *(long long ( **)(long long, long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
if ( a4 != 2 )
return 0LL;
for ( i = v7(v13, &v8, v12, v11); ; i = v7(v13, &v8, v12, v11) )
{
v5 = 0;
if ( i > 0 )
v5 = v8 == 32;
if ( !v5 )
break;
v12 += i;
}
return v12 - v9;
}
|
my_scan_mb2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x48],EAX
SUB EAX,0x2
JZ 0x00162af9
JMP 0x00162aef
LAB_00162aef:
MOV EAX,dword ptr [RBP + -0x48]
SUB EAX,0x3
JZ 0x00162b70
JMP 0x00162b76
LAB_00162af9:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x38]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
LAB_00162b12:
XOR EAX,EAX
CMP dword ptr [RBP + -0x44],0x0
MOV byte ptr [RBP + -0x49],AL
JLE 0x00162b28
CMP qword ptr [RBP + -0x38],0x20
SETZ AL
MOV byte ptr [RBP + -0x49],AL
LAB_00162b28:
MOV AL,byte ptr [RBP + -0x49]
TEST AL,0x1
JNZ 0x00162b31
JMP 0x00162b5f
LAB_00162b31:
JMP 0x00162b33
LAB_00162b33:
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x38]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
JMP 0x00162b12
LAB_00162b5f:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00162b7e
LAB_00162b70:
JMP 0x00162b72
LAB_00162b72:
JMP 0x00162b74
LAB_00162b74:
JMP 0x00162b76
LAB_00162b76:
MOV qword ptr [RBP + -0x8],0x0
LAB_00162b7e:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
long my_scan_mb2(long param_1,long param_2,int8 param_3,int param_4)
{
code *pcVar1;
int local_4c;
long local_40;
long local_38;
int local_2c;
int8 local_28;
long local_20;
long local_18;
long local_10;
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
if (param_4 == 2) {
local_38 = param_2;
local_2c = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_4c = (*pcVar1)(param_1,&local_40,param_2,param_3);
while (0 < local_4c && local_40 == 0x20) {
local_20 = local_20 + local_4c;
local_4c = (*pcVar1)(local_18,&local_40,local_20,local_28);
}
local_10 = local_20 - local_38;
}
else {
local_10 = 0;
}
return local_10;
}
|
|
62,368 |
my_close
|
eloqsql/mysys/my_open.c
|
int my_close(File fd, myf MyFlags)
{
int err;
char *name= NULL;
DBUG_ENTER("my_close");
DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE)))
MyFlags|= my_global_flags;
if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN)
{
name= my_file_info[fd].name;
my_file_info[fd].name= NULL;
my_file_info[fd].type= UNOPEN;
}
#ifndef _WIN32
err= close(fd);
#else
err= my_win_close(fd);
#endif
if (err)
{
DBUG_PRINT("error",("Got error %d on close",err));
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
name,errno);
}
if (name)
{
my_free(name);
}
my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
DBUG_RETURN(err);
}
|
O0
|
c
|
my_close:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
jmp 0x2a609
movq -0x10(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
jne 0x2a629
leaq 0x35e60a(%rip), %rax # 0x388c28
movq (%rax), %rax
orq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
leaq 0x1a6d4d(%rip), %rcx # 0x1d1380
cmpl (%rcx), %eax
jae 0x2a6a6
leaq 0x1a6d4a(%rip), %rax # 0x1d1388
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
je 0x2a6a6
leaq 0x1a6d2f(%rip), %rax # 0x1d1388
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
leaq 0x1a6d13(%rip), %rax # 0x1d1388
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
leaq 0x1a6cf7(%rip), %rax # 0x1d1388
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movl -0x4(%rbp), %edi
callq 0x24650
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x2a714
jmp 0x2a6b9
jmp 0x2a6bb
callq 0x24040
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
callq 0x2bad0
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
je 0x2a712
movq -0x10(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x24040
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl (%rax), %ecx
movl $0x4, %edi
movb $0x0, %al
callq 0x27d80
jmp 0x2a714
cmpq $0x0, -0x20(%rbp)
je 0x2a724
movq -0x20(%rbp), %rdi
callq 0x29db0
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
movl -0x24(%rbp), %eax
leaq 0x35e4ff(%rip), %rcx # 0x388c34
lock
xaddl %eax, (%rcx)
movl %eax, -0x28(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_close:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_20], 0
jmp short $+2
loc_2A609:
mov rax, [rbp+var_10]
and rax, 18h
cmp rax, 0
jnz short loc_2A629
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_10]
mov [rbp+var_10], rax
loc_2A629:
mov eax, [rbp+var_4]
lea rcx, my_file_limit
cmp eax, [rcx]
jnb short loc_2A6A6
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+8], 0
jz short loc_2A6A6
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_20], rax
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
mov qword ptr [rax], 0
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
mov dword ptr [rax+8], 0
loc_2A6A6:
mov edi, [rbp+var_4]
call _close
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_2A714
jmp short $+2
loc_2A6B9:
jmp short $+2
loc_2A6BB:
call ___errno_location
mov eax, [rax]
mov [rbp+var_2C], eax
call _my_thread_var
mov ecx, [rbp+var_2C]
mov [rax], ecx
mov rax, [rbp+var_10]
and rax, 18h
cmp rax, 0
jz short loc_2A712
mov rax, [rbp+var_10]
and rax, 440h
or rax, 4
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
call ___errno_location
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
mov ecx, [rax]
mov edi, 4
mov al, 0
call my_error
loc_2A712:
jmp short $+2
loc_2A714:
cmp [rbp+var_20], 0
jz short loc_2A724
mov rdi, [rbp+var_20]
call my_free
loc_2A724:
mov [rbp+var_24], 0FFFFFFFFh
mov eax, [rbp+var_24]
lea rcx, my_file_opened
lock xadd [rcx], eax
mov [rbp+var_28], eax
mov eax, [rbp+var_14]
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
add rsp, 50h
pop rbp
retn
|
long long my_close(unsigned int a1, __int16 a2)
{
unsigned int *v2; // rax
int v4; // [rsp+24h] [rbp-2Ch]
long long v5; // [rsp+30h] [rbp-20h]
unsigned int v6; // [rsp+3Ch] [rbp-14h]
__int16 v7; // [rsp+40h] [rbp-10h]
v7 = a2;
v5 = 0LL;
if ( (a2 & 0x18) == 0 )
v7 = a2 | my_global_flags;
if ( a1 < my_file_limit && *((_DWORD *)my_file_info + 4 * (int)a1 + 2) )
{
v5 = *((_QWORD *)my_file_info + 2 * (int)a1);
*((_QWORD *)my_file_info + 2 * (int)a1) = 0LL;
*((_DWORD *)my_file_info + 4 * (int)a1 + 2) = 0;
}
v6 = close(a1);
if ( v6 )
{
v4 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var() = v4;
if ( (v7 & 0x18) != 0 )
{
v2 = (unsigned int *)__errno_location();
my_error(4u, v7 & 0x440 | 4LL, v5, *v2);
}
}
if ( v5 )
my_free(v5);
_InterlockedExchangeAdd(my_file_opened, 0xFFFFFFFF);
return v6;
}
|
my_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x20],0x0
JMP 0x0012a609
LAB_0012a609:
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x18
CMP RAX,0x0
JNZ 0x0012a629
LEA RAX,[0x488c28]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
LAB_0012a629:
MOV EAX,dword ptr [RBP + -0x4]
LEA RCX,[0x2d1380]
CMP EAX,dword ptr [RCX]
JNC 0x0012a6a6
LEA RAX,[0x2d1388]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x0
JZ 0x0012a6a6
LEA RAX,[0x2d1388]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LEA RAX,[0x2d1388]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RAX],0x0
LEA RAX,[0x2d1388]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV dword ptr [RAX + 0x8],0x0
LAB_0012a6a6:
MOV EDI,dword ptr [RBP + -0x4]
CALL 0x00124650
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x0012a714
JMP 0x0012a6b9
LAB_0012a6b9:
JMP 0x0012a6bb
LAB_0012a6bb:
CALL 0x00124040
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CALL 0x0012bad0
MOV ECX,dword ptr [RBP + -0x2c]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x18
CMP RAX,0x0
JZ 0x0012a712
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
CALL 0x00124040
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX]
MOV EDI,0x4
MOV AL,0x0
CALL 0x00127d80
LAB_0012a712:
JMP 0x0012a714
LAB_0012a714:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0012a724
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00129db0
LAB_0012a724:
MOV dword ptr [RBP + -0x24],0xffffffff
MOV EAX,dword ptr [RBP + -0x24]
LEA RCX,[0x488c34]
XADD.LOCK dword ptr [RCX],EAX
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
ADD RSP,0x50
POP RBP
RET
|
int my_close(uint param_1,ulong param_2)
{
int iVar1;
int iVar2;
int *piVar3;
long local_28;
ulong local_18;
local_28 = 0;
local_18 = param_2;
if ((param_2 & 0x18) == 0) {
local_18 = my_global_flags | param_2;
}
if ((param_1 < my_file_limit) && (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) != 0)) {
local_28 = *(long *)(my_file_info + (long)(int)param_1 * 0x10);
*(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = 0;
*(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = 0;
}
iVar2 = close(param_1);
if (iVar2 != 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((local_18 & 0x18) != 0) {
piVar3 = __errno_location();
my_error(4,local_18 & 0x440 | 4,local_28,*piVar3);
}
}
if (local_28 != 0) {
my_free(local_28);
}
LOCK();
my_file_opened = my_file_opened + -1;
UNLOCK();
return iVar2;
}
|
|
62,369 |
my_close
|
eloqsql/mysys/my_open.c
|
int my_close(File fd, myf MyFlags)
{
int err;
char *name= NULL;
DBUG_ENTER("my_close");
DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE)))
MyFlags|= my_global_flags;
if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN)
{
name= my_file_info[fd].name;
my_file_info[fd].name= NULL;
my_file_info[fd].type= UNOPEN;
}
#ifndef _WIN32
err= close(fd);
#else
err= my_win_close(fd);
#endif
if (err)
{
DBUG_PRINT("error",("Got error %d on close",err));
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
name,errno);
}
if (name)
{
my_free(name);
}
my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
DBUG_RETURN(err);
}
|
O3
|
c
|
my_close:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
xorl %ebx, %ebx
movl $0x0, %r14d
testb $0x18, %r12b
jne 0x28686
leaq 0x33ea45(%rip), %rax # 0x3670c8
movq (%rax), %r14
leaq 0x2c7ce3(%rip), %rax # 0x2f0370
cmpl %edi, (%rax)
jbe 0x286c5
leaq 0x2c7ce0(%rip), %rax # 0x2f0378
movq (%rax), %rdx
movslq %edi, %rcx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rdx,%rcx)
je 0x286c3
addq %rcx, %rdx
movq (%rdx), %rbx
movq $0x0, (%rdx)
movq (%rax), %rax
movl $0x0, 0x8(%rax,%rcx)
jmp 0x286c5
xorl %ebx, %ebx
callq 0x246b0
movl %eax, %r15d
testl %eax, %eax
je 0x2870e
orq %r12, %r14
callq 0x24050
movq %rax, %r12
movl (%rax), %r13d
callq 0x2974a
movl %r13d, (%rax)
testb $0x18, %r14b
je 0x2870e
andl $0x440, %r14d # imm = 0x440
orq $0x4, %r14
movl (%r12), %ecx
movl $0x4, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x26d87
testq %rbx, %rbx
je 0x2871b
movq %rbx, %rdi
callq 0x28146
leaq 0x33e9b2(%rip), %rax # 0x3670d4
lock
decl (%rax)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
my_close:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rsi
xor ebx, ebx
mov r14d, 0
test r12b, 18h
jnz short loc_28686
lea rax, my_global_flags
mov r14, [rax]
loc_28686:
lea rax, my_file_limit
cmp [rax], edi
jbe short loc_286C5
lea rax, my_file_info
mov rdx, [rax]
movsxd rcx, edi
shl rcx, 4
cmp dword ptr [rdx+rcx+8], 0
jz short loc_286C3
add rdx, rcx
mov rbx, [rdx]
mov qword ptr [rdx], 0
mov rax, [rax]
mov dword ptr [rax+rcx+8], 0
jmp short loc_286C5
loc_286C3:
xor ebx, ebx
loc_286C5:
call _close
mov r15d, eax
test eax, eax
jz short loc_2870E
or r14, r12
call ___errno_location
mov r12, rax
mov r13d, [rax]
call _my_thread_var
mov [rax], r13d
test r14b, 18h
jz short loc_2870E
and r14d, 440h
or r14, 4
mov ecx, [r12]
mov edi, 4
mov rsi, r14
mov rdx, rbx
xor eax, eax
call my_error
loc_2870E:
test rbx, rbx
jz short loc_2871B
mov rdi, rbx
call my_free
loc_2871B:
lea rax, my_file_opened
lock dec dword ptr [rax]
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_close(long long a1, long long a2)
{
long long v2; // rbx
__int16 v3; // r14
long long v4; // rcx
long long v5; // rdx
unsigned int v6; // r15d
__int16 v7; // r14
unsigned int *v8; // r12
unsigned int v9; // r13d
v2 = 0LL;
v3 = 0;
if ( (a2 & 0x18) == 0 )
v3 = my_global_flags;
if ( my_file_limit > (unsigned int)a1 )
{
v4 = 16LL * (int)a1;
if ( *(_DWORD *)((char *)my_file_info + v4 + 8) )
{
v2 = *(_QWORD *)((char *)my_file_info + v4);
*(_QWORD *)((char *)my_file_info + v4) = 0LL;
*(_DWORD *)((char *)my_file_info + v4 + 8) = 0;
}
else
{
v2 = 0LL;
}
}
v6 = close(a1);
if ( v6 )
{
v7 = a2 | v3;
v8 = (unsigned int *)__errno_location(a1, a2, v5);
v9 = *v8;
*(_DWORD *)my_thread_var(a1) = v9;
if ( (v7 & 0x18) != 0 )
my_error(4u, v7 & 0x440 | 4LL, v2, *v8);
}
if ( v2 )
my_free(v2);
_InterlockedDecrement(my_file_opened);
return v6;
}
|
my_close:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RSI
XOR EBX,EBX
MOV R14D,0x0
TEST R12B,0x18
JNZ 0x00128686
LEA RAX,[0x4670c8]
MOV R14,qword ptr [RAX]
LAB_00128686:
LEA RAX,[0x3f0370]
CMP dword ptr [RAX],EDI
JBE 0x001286c5
LEA RAX,[0x3f0378]
MOV RDX,qword ptr [RAX]
MOVSXD RCX,EDI
SHL RCX,0x4
CMP dword ptr [RDX + RCX*0x1 + 0x8],0x0
JZ 0x001286c3
ADD RDX,RCX
MOV RBX,qword ptr [RDX]
MOV qword ptr [RDX],0x0
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + RCX*0x1 + 0x8],0x0
JMP 0x001286c5
LAB_001286c3:
XOR EBX,EBX
LAB_001286c5:
CALL 0x001246b0
MOV R15D,EAX
TEST EAX,EAX
JZ 0x0012870e
OR R14,R12
CALL 0x00124050
MOV R12,RAX
MOV R13D,dword ptr [RAX]
CALL 0x0012974a
MOV dword ptr [RAX],R13D
TEST R14B,0x18
JZ 0x0012870e
AND R14D,0x440
OR R14,0x4
MOV ECX,dword ptr [R12]
MOV EDI,0x4
MOV RSI,R14
MOV RDX,RBX
XOR EAX,EAX
CALL 0x00126d87
LAB_0012870e:
TEST RBX,RBX
JZ 0x0012871b
MOV RDI,RBX
CALL 0x00128146
LAB_0012871b:
LEA RAX,[0x4670d4]
DEC.LOCK dword ptr [RAX]
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_close(uint param_1,ulong param_2)
{
int iVar1;
int iVar2;
int *piVar3;
int *piVar4;
long lVar5;
long lVar6;
ulong uVar7;
lVar6 = 0;
uVar7 = 0;
if ((param_2 & 0x18) == 0) {
uVar7 = my_global_flags;
}
if (param_1 < my_file_limit) {
lVar5 = (long)(int)param_1 * 0x10;
if (*(int *)(my_file_info + lVar5 + 8) == 0) {
lVar6 = 0;
}
else {
lVar6 = *(long *)(my_file_info + lVar5);
*(long *)(my_file_info + lVar5) = 0;
*(int4 *)(my_file_info + lVar5 + 8) = 0;
}
}
iVar2 = close(param_1);
if (iVar2 != 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
if (((uVar7 | param_2) & 0x18) != 0) {
my_error(4,(uint)(uVar7 | param_2) & 0x440 | 4,lVar6,*piVar3);
}
}
if (lVar6 != 0) {
my_free(lVar6);
}
LOCK();
my_file_opened = my_file_opened + -1;
UNLOCK();
return iVar2;
}
|
|
62,370 |
minja::SequenceNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
|
monkey531[P]llama/common/minja.hpp
|
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
}
|
O3
|
cpp
|
minja::SequenceNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x20(%rdi), %r15
movq 0x28(%rdi), %r12
cmpq %r12, %r15
je 0xa0ea0
movq %rdx, %rbx
movq %rsi, %r14
movq (%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x99eb0
addq $0x10, %r15
cmpq %r12, %r15
jne 0xa0e89
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZNK5minja12SequenceNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE:
push r15
push r14
push r12
push rbx
push rax
mov r15, [rdi+20h]
mov r12, [rdi+28h]
cmp r15, r12
jz short loc_A0EA0
mov rbx, rdx
mov r14, rsi
loc_A0E89:
mov rdi, [r15]
mov rsi, r14
mov rdx, rbx
call _ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE; minja::TemplateNode::render(std::ostringstream &,std::shared_ptr<minja::Context> const&)
add r15, 10h
cmp r15, r12
jnz short loc_A0E89
loc_A0EA0:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long minja::SequenceNode::do_render(long long a1)
{
long long ( ****v1)(_QWORD); // r15
long long ( ****i)(_QWORD); // r12
long long result; // rax
v1 = *(long long ( *****)(_QWORD))(a1 + 32);
for ( i = *(long long ( *****)(_QWORD))(a1 + 40); v1 != i; v1 += 2 )
result = minja::TemplateNode::render(*v1);
return result;
}
|
do_render:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,qword ptr [RDI + 0x20]
MOV R12,qword ptr [RDI + 0x28]
CMP R15,R12
JZ 0x001a0ea0
MOV RBX,RDX
MOV R14,RSI
LAB_001a0e89:
MOV RDI,qword ptr [R15]
MOV RSI,R14
MOV RDX,RBX
CALL 0x00199eb0
ADD R15,0x10
CMP R15,R12
JNZ 0x001a0e89
LAB_001a0ea0:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::SequenceNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context>
const&) const */
void minja::SequenceNode::do_render(ostringstream *param_1,shared_ptr *param_2)
{
int8 *puVar1;
int8 *puVar2;
puVar1 = *(int8 **)(param_1 + 0x28);
for (puVar2 = *(int8 **)(param_1 + 0x20); puVar2 != puVar1; puVar2 = puVar2 + 2) {
TemplateNode::render((ostringstream *)*puVar2,param_2);
}
return;
}
|
|
62,371 |
minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
|
monkey531[P]llama/common/minja.hpp
|
Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!expr) throw std::runtime_error("UnaryOpExpr.expr is null");
auto e = expr->evaluate(context);
switch (op) {
case Op::Plus: return e;
case Op::Minus: return -e;
case Op::LogicalNot: return !e.to_bool();
case Op::Expansion:
case Op::ExpansionDict:
throw std::runtime_error("Expansion operator is only supported in function calls and collections");
}
throw std::runtime_error("Unknown unary operator");
}
|
O1
|
cpp
|
minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x86062
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x861be
movl 0x30(%r14), %eax
cmpq $0x4, %rax
ja 0x860b2
leaq 0x6c7f5(%rip), %rcx # 0xf270c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
xorl %r12d, %r12d
movq %r12, 0x18(%rbx)
leaq 0x48(%rsp), %r15
movups -0x30(%r15), %xmm0
movq %r12, -0x28(%r15)
movups %xmm0, 0x10(%rbx)
movq %r12, -0x30(%r15)
movq %r12, 0x28(%rbx)
movups -0x20(%r15), %xmm0
movq %r12, -0x18(%r15)
movups %xmm0, 0x20(%rbx)
movq %r12, -0x20(%r15)
movq %r12, 0x38(%rbx)
movups -0x10(%r15), %xmm0
movq %r12, -0x8(%r15)
movups %xmm0, 0x30(%rbx)
movq %r12, -0x10(%r15)
leaq 0x40(%rbx), %r14
movups (%r15), %xmm0
movups %xmm0, 0x40(%rbx)
movq %r15, %rdi
xorl %esi, %esi
callq 0x57bfe
movb $0x0, (%r15)
movq %r12, 0x8(%r15)
jmp 0x85fbe
leaq 0x8(%rsp), %rdi
callq 0x863c0
xorb $0x1, %al
leaq 0x40(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movzbl %al, %esi
movq %r14, %rdi
callq 0x5f542
movq %r14, %rdi
movl $0x1, %esi
callq 0x57bfe
jmp 0x85fda
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8633c
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x57bfe
movq %r14, %rdi
callq 0x5d3ea
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x85fff
callq 0x6cd56
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x8600e
callq 0x6cd56
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8601d
callq 0x6cd56
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x86053
movq 0xa9f52(%rip), %rax # 0x12ff80
cmpb $0x0, (%rax)
je 0x8603e
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x86048
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x86053
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x1b440
movq %rax, %r14
leaq 0x6d96a(%rip), %rsi # 0xf39e0
movq %rax, %rdi
callq 0x1b320
movq 0xa9f63(%rip), %rsi # 0x12ffe8
movq 0xa9ec4(%rip), %rdx # 0x12ff50
movq %r14, %rdi
callq 0x1bef0
movl $0x10, %edi
callq 0x1b440
movq %rax, %r14
leaq 0x6d951(%rip), %rsi # 0xf39f9
movq %rax, %rdi
callq 0x1b320
jmp 0x860ce
movl $0x10, %edi
callq 0x1b440
movq %rax, %r14
leaq 0x6d97a(%rip), %rsi # 0xf3a40
movq %rax, %rdi
callq 0x1b320
movq 0xa9f13(%rip), %rsi # 0x12ffe8
movq 0xa9e74(%rip), %rdx # 0x12ff50
movq %r14, %rdi
callq 0x1bef0
jmp 0x860e8
jmp 0x86102
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b650
jmp 0x86105
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b650
jmp 0x8610f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x864b4
movq %rbx, %rdi
callq 0x1bf70
nop
|
_ZNK5minja11UnaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r14, rsi
mov rsi, [rsi+20h]
test rsi, rsi
jz loc_86062
mov rbx, rdi
lea rdi, [rsp+78h+var_70]
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov eax, [r14+30h]
cmp rax, 4; switch 5 cases
ja def_85F1E; jumptable 0000000000085F1E default case
lea rcx, jpt_85F1E
movsxd rax, ds:(jpt_85F1E - 0F270Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_85F20:
xorps xmm0, xmm0; jumptable 0000000000085F1E case 0
movups xmmword ptr [rbx], xmm0
xor r12d, r12d
mov [rbx+18h], r12
lea r15, [rsp+78h+var_30]
movups xmm0, xmmword ptr [r15-30h]
mov [r15-28h], r12
movups xmmword ptr [rbx+10h], xmm0
mov [r15-30h], r12
mov [rbx+28h], r12
movups xmm0, xmmword ptr [r15-20h]
mov [r15-18h], r12
movups xmmword ptr [rbx+20h], xmm0
mov [r15-20h], r12
mov [rbx+38h], r12
movups xmm0, xmmword ptr [r15-10h]
mov [r15-8], r12
movups xmmword ptr [rbx+30h], xmm0
mov [r15-10h], r12
lea r14, [rbx+40h]
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rbx+40h], xmm0
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r15], 0
mov [r15+8], r12
jmp short loc_85FBE
loc_85F8D:
lea rdi, [rsp+78h+var_70]; jumptable 0000000000085F1E case 2
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
xor al, 1
lea r14, [rbx+40h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+40h], xmm0
movups xmmword ptr [rbx+30h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx], xmm0
movzx esi, al
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t)
loc_85FBE:
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp short loc_85FDA
loc_85FCD:
lea rsi, [rsp+78h+var_70]; jumptable 0000000000085F1E case 1
mov rdi, rbx
call _ZNK5minja5ValuengEv; minja::Value::operator-(void)
loc_85FDA:
lea r14, [rsp+78h+var_30]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_85FFF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_85FFF:
mov rdi, [rsp+78h+var_48]
test rdi, rdi
jz short loc_8600E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8600E:
mov rdi, [rsp+78h+var_58]
test rdi, rdi
jz short loc_8601D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8601D:
mov rdi, [rsp+78h+var_68]
test rdi, rdi
jz short loc_86053
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8603E
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_86048
loc_8603E:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_86048:
cmp eax, 1
jnz short loc_86053
mov rax, [rdi]
call qword ptr [rax+18h]
loc_86053:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
loc_86062:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUnaryopexprExp; "UnaryOpExpr.expr is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_86094:
mov edi, 10h; jumptable 0000000000085F1E cases 3,4
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpansionOpera; "Expansion operator is only supported in"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_860CE
def_85F1E:
mov edi, 10h; jumptable 0000000000085F1E default case
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUnknownUnaryOp; "Unknown unary operator"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_860CE:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_860E8
jmp short loc_86102
loc_860E8:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_86105
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_8610F
loc_86102:
mov rbx, rax
loc_86105:
lea rdi, [rsp+78h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_8610F:
mov rdi, rbx
call __Unwind_Resume
|
do_evaluate:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RSI
MOV RSI,qword ptr [RSI + 0x20]
TEST RSI,RSI
JZ 0x00186062
MOV RBX,RDI
LEA RDI,[RSP + 0x8]
CALL 0x001861be
MOV EAX,dword ptr [R14 + 0x30]
CMP RAX,0x4
JA 0x001860b2
LEA RCX,[0x1f270c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
XOR R12D,R12D
MOV qword ptr [RBX + 0x18],R12
LEA R15,[RSP + 0x48]
MOVUPS XMM0,xmmword ptr [R15 + -0x30]
MOV qword ptr [R15 + -0x28],R12
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV qword ptr [R15 + -0x30],R12
MOV qword ptr [RBX + 0x28],R12
MOVUPS XMM0,xmmword ptr [R15 + -0x20]
MOV qword ptr [R15 + -0x18],R12
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOV qword ptr [R15 + -0x20],R12
MOV qword ptr [RBX + 0x38],R12
MOVUPS XMM0,xmmword ptr [R15 + -0x10]
MOV qword ptr [R15 + -0x8],R12
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV qword ptr [R15 + -0x10],R12
LEA R14,[RBX + 0x40]
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R15
XOR ESI,ESI
CALL 0x00157bfe
MOV byte ptr [R15],0x0
MOV qword ptr [R15 + 0x8],R12
JMP 0x00185fbe
caseD_2:
LEA RDI,[RSP + 0x8]
CALL 0x001863c0
XOR AL,0x1
LEA R14,[RBX + 0x40]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVZX ESI,AL
MOV RDI,R14
CALL 0x0015f542
LAB_00185fbe:
MOV RDI,R14
MOV ESI,0x1
CALL 0x00157bfe
JMP 0x00185fda
caseD_1:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0018633c
LAB_00185fda:
LEA R14,[RSP + 0x48]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00157bfe
MOV RDI,R14
CALL 0x0015d3ea
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x00185fff
CALL 0x0016cd56
LAB_00185fff:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x0018600e
CALL 0x0016cd56
LAB_0018600e:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0018601d
CALL 0x0016cd56
LAB_0018601d:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x00186053
MOV RAX,qword ptr [0x0022ff80]
CMP byte ptr [RAX],0x0
JZ 0x0018603e
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00186048
LAB_0018603e:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00186048:
CMP EAX,0x1
JNZ 0x00186053
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00186053:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00186062:
MOV EDI,0x10
CALL 0x0011b440
MOV R14,RAX
LAB_0018606f:
LEA RSI,[0x1f39e0]
MOV RDI,RAX
CALL 0x0011b320
LAB_0018607e:
MOV RSI,qword ptr [0x0022ffe8]
MOV RDX,qword ptr [0x0022ff50]
MOV RDI,R14
CALL 0x0011bef0
caseD_3:
MOV EDI,0x10
CALL 0x0011b440
MOV R14,RAX
LAB_001860a1:
LEA RSI,[0x1f39f9]
MOV RDI,RAX
CALL 0x0011b320
LAB_001860b0:
JMP 0x001860ce
default:
MOV EDI,0x10
CALL 0x0011b440
MOV R14,RAX
LAB_001860bf:
LEA RSI,[0x1f3a40]
MOV RDI,RAX
CALL 0x0011b320
LAB_001860ce:
MOV RSI,qword ptr [0x0022ffe8]
MOV RDX,qword ptr [0x0022ff50]
MOV RDI,R14
CALL 0x0011bef0
|
/* minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
UnaryOpExpr * __thiscall minja::UnaryOpExpr::do_evaluate(UnaryOpExpr *this,shared_ptr *param_1)
{
int *piVar1;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var2;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var3;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var4;
byte bVar5;
int iVar6;
runtime_error *prVar7;
Expression local_70 [8];
long *local_68;
int8 local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_58;
int8 local_50;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_48;
int8 local_40;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_38;
data local_30;
int7 uStack_2f;
int8 uStack_28;
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018606f to 0018607d has its CatchHandler @ 001860f5 */
std::runtime_error::runtime_error(prVar7,"UnaryOpExpr.expr is null");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50);
}
Expression::evaluate(local_70,*(shared_ptr **)(param_1 + 0x20));
p_Var4 = p_Stack_38;
p_Var3 = p_Stack_48;
p_Var2 = p_Stack_58;
switch(*(int4 *)(param_1 + 0x30)) {
case 0:
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x18) = 0;
p_Stack_58 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*(int8 *)(this + 0x10) = local_60;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) = p_Var2;
local_60 = 0;
*(int8 *)(this + 0x28) = 0;
p_Stack_48 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*(int8 *)(this + 0x20) = local_50;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) = p_Var3;
local_50 = 0;
*(int8 *)(this + 0x38) = 0;
p_Stack_38 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*(int8 *)(this + 0x30) = local_40;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) = p_Var4;
local_40 = 0;
*(ulong *)(this + 0x40) = CONCAT71(uStack_2f,local_30);
*(int8 *)(this + 0x48) = uStack_28;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_30,0));
local_30 = (data)0x0;
uStack_28 = 0;
break;
case 1:
/* try { // try from 00185fcd to 00185fd9 has its CatchHandler @ 00186102 */
Value::operator-((Value *)this);
goto LAB_00185fda;
case 2:
/* try { // try from 00185f8d to 00185f96 has its CatchHandler @ 001860e6 */
bVar5 = Value::to_bool((Value *)local_70);
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(this + 0x40,bVar5 ^ 1);
break;
case 3:
case 4:
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001860a1 to 001860af has its CatchHandler @ 001860e8 */
std::runtime_error::runtime_error
(prVar7,"Expansion operator is only supported in function calls and collections");
goto LAB_001860ce;
default:
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001860bf to 001860cd has its CatchHandler @ 001860e4 */
std::runtime_error::runtime_error(prVar7,"Unknown unary operator");
LAB_001860ce:
/* try { // try from 001860ce to 001860e3 has its CatchHandler @ 00186102 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant((bool)((char)this + '@'));
LAB_00185fda:
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_30,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(&local_30);
if (p_Stack_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_38);
}
if (p_Stack_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_48);
}
if (p_Stack_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_58);
}
if (local_68 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022ff80 == '\0') {
LOCK();
piVar1 = (int *)((long)local_68 + 0xc);
iVar6 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar6 = *(int *)((long)local_68 + 0xc);
*(int *)((long)local_68 + 0xc) = iVar6 + -1;
}
if (iVar6 == 1) {
(**(code **)(*local_68 + 0x18))();
}
}
return this;
}
|
||
62,372 |
get_current_logfile
|
eloqsql/storage/maria/ma_loghandler.c
|
static TRANSLOG_FILE *get_current_logfile()
{
TRANSLOG_FILE *file;
DBUG_ENTER("get_current_logfile");
mysql_rwlock_rdlock(&log_descriptor.open_files_lock);
DBUG_PRINT("info", ("max_file: %lu min_file: %lu open_files: %lu",
(ulong) log_descriptor.max_file,
(ulong) log_descriptor.min_file,
(ulong) log_descriptor.open_files.elements));
DBUG_ASSERT(log_descriptor.max_file - log_descriptor.min_file + 1 ==
log_descriptor.open_files.elements);
file= *dynamic_element(&log_descriptor.open_files, 0, TRANSLOG_FILE **);
mysql_rwlock_unlock(&log_descriptor.open_files_lock);
DBUG_RETURN(file);
}
|
O0
|
c
|
get_current_logfile:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x41c4a1(%rip), %rdi # 0x47a660
addq $0x258, %rdi # imm = 0x258
leaq 0xf4dec(%rip), %rsi # 0x152fb9
movl $0x43f, %edx # imm = 0x43F
callq 0x59df0
jmp 0x5e1d9
jmp 0x5e1db
jmp 0x5e1dd
movq 0x41c6a4(%rip), %rax # 0x47a888
movq (%rax), %rax
movq %rax, -0x8(%rbp)
leaq 0x41c46e(%rip), %rdi # 0x47a660
addq $0x258, %rdi # imm = 0x258
callq 0x58c80
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
|
get_current_logfile:
push rbp
mov rbp, rsp
sub rsp, 10h
lea rdi, log_descriptor
add rdi, 258h
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 43Fh
call inline_mysql_rwlock_rdlock_0
jmp short $+2
loc_5E1D9:
jmp short $+2
loc_5E1DB:
jmp short $+2
loc_5E1DD:
mov rax, cs:qword_47A888
mov rax, [rax]
mov [rbp+var_8], rax
lea rdi, log_descriptor
add rdi, 258h
call inline_mysql_rwlock_unlock_1
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
add rsp, 10h
pop rbp
retn
|
long long get_current_logfile()
{
long long v1; // [rsp+8h] [rbp-8h]
inline_mysql_rwlock_rdlock_0(
(long long)&log_descriptor[75],
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x43Fu);
v1 = *(_QWORD *)qword_47A888;
inline_mysql_rwlock_unlock_1((long long)&log_descriptor[75]);
return v1;
}
|
get_current_logfile:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
LEA RDI,[0x57a660]
ADD RDI,0x258
LEA RSI,[0x252fb9]
MOV EDX,0x43f
CALL 0x00159df0
JMP 0x0015e1d9
LAB_0015e1d9:
JMP 0x0015e1db
LAB_0015e1db:
JMP 0x0015e1dd
LAB_0015e1dd:
MOV RAX,qword ptr [0x0057a888]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[0x57a660]
ADD RDI,0x258
CALL 0x00158c80
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x10
POP RBP
RET
|
int8 get_current_logfile(void)
{
int8 uVar1;
inline_mysql_rwlock_rdlock
(&DAT_0057a8b8,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x43f);
uVar1 = *DAT_0057a888;
inline_mysql_rwlock_unlock(&DAT_0057a8b8);
return uVar1;
}
|
|
62,373 |
my_uni_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static int my_uni_utf8mb3(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r, uchar *e)
{
if (wc < 0x80)
{
if (r >= e)
return MY_CS_TOOSMALL;
*r= (uchar) wc;
return 1;
}
if (wc < 0x800)
{
if (r + 2 > e)
return MY_CS_TOOSMALLN(2);
/* U+0080..U+07FF: 00000xxx.xxyyyyyy -> 110xxxxx 10yyyyyy */
*r++= (uchar) (0xC0 | (wc >> 6));
*r= (uchar) (0x80 | (wc & 0x3F));
return 2;
}
if (wc < 0x10000)
{
if (r + 3 > e)
return MY_CS_TOOSMALLN(3);
/* U+0800..U+FFFF: xxxxyyyy.yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz */
*r++= (uchar) (0xE0 | (wc >> 12));
*r++= (uchar) (0x80 | ((wc >> 6) & 0x3f));
*r= (uchar) (0x80 | (wc & 0x3f));
return 3;
}
return MY_CS_ILUNI;
}
|
O3
|
c
|
my_uni_utf8mb3:
pushq %rbp
movq %rsp, %rbp
cmpq $0x7f, %rsi
ja 0x874ce
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x87540
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x87540
cmpq $0x7ff, %rsi # imm = 0x7FF
ja 0x87501
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0x87540
movl %esi, %eax
shrl $0x6, %eax
orb $-0x40, %al
movb %al, (%rdx)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rdx)
movl $0x2, %eax
jmp 0x87540
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0x87540
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0x87540
movl %esi, %eax
shrl $0xc, %eax
orb $-0x20, %al
movb %al, (%rdx)
movl %esi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rdx)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rdx)
movl $0x3, %eax
popq %rbp
retq
|
my_uni_utf8mb3:
push rbp
mov rbp, rsp
cmp rsi, 7Fh
ja short loc_874CE
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_87540
mov [rdx], sil
mov eax, 1
jmp short loc_87540
loc_874CE:
cmp rsi, 7FFh
ja short loc_87501
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_87540
mov eax, esi
shr eax, 6
or al, 0C0h
mov [rdx], al
and sil, 3Fh
or sil, 80h
mov [rdx+1], sil
mov eax, 2
jmp short loc_87540
loc_87501:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_87540
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja short loc_87540
mov eax, esi
shr eax, 0Ch
or al, 0E0h
mov [rdx], al
mov eax, esi
shr eax, 6
and al, 3Fh
or al, 80h
mov [rdx+1], al
and sil, 3Fh
or sil, 80h
mov [rdx+2], sil
mov eax, 3
loc_87540:
pop rbp
retn
|
long long my_uni_utf8mb3(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
if ( a2 > 0x7F )
{
if ( a2 > 0x7FF )
{
result = 0LL;
if ( a2 <= 0xFFFF )
{
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = ((unsigned int)a2 >> 12) | 0xE0;
a3[1] = ((unsigned int)a2 >> 6) & 0x3F | 0x80;
a3[2] = a2 & 0x3F | 0x80;
return 3LL;
}
}
}
else
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = ((unsigned int)a2 >> 6) | 0xC0;
a3[1] = a2 & 0x3F | 0x80;
return 2LL;
}
}
}
else
{
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
*a3 = a2;
return 1LL;
}
}
return result;
}
|
my_uni_utf8mb3:
PUSH RBP
MOV RBP,RSP
CMP RSI,0x7f
JA 0x001874ce
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x00187540
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x00187540
LAB_001874ce:
CMP RSI,0x7ff
JA 0x00187501
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x00187540
MOV EAX,ESI
SHR EAX,0x6
OR AL,0xc0
MOV byte ptr [RDX],AL
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [RDX + 0x1],SIL
MOV EAX,0x2
JMP 0x00187540
LAB_00187501:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x00187540
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x00187540
MOV EAX,ESI
SHR EAX,0xc
OR AL,0xe0
MOV byte ptr [RDX],AL
MOV EAX,ESI
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RDX + 0x1],AL
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [RDX + 0x2],SIL
MOV EAX,0x3
LAB_00187540:
POP RBP
RET
|
int8 my_uni_utf8mb3(int8 param_1,ulong param_2,byte *param_3,byte *param_4)
{
int8 uVar1;
byte bVar2;
uint uVar3;
uVar3 = (uint)param_2;
bVar2 = (byte)param_2;
if (param_2 < 0x80) {
uVar1 = 0xffffff9b;
if (param_3 < param_4) {
*param_3 = bVar2;
uVar1 = 1;
}
}
else if (param_2 < 0x800) {
uVar1 = 0xffffff9a;
if (param_3 + 2 <= param_4) {
*param_3 = (byte)(uVar3 >> 6) | 0xc0;
param_3[1] = bVar2 & 0x3f | 0x80;
uVar1 = 2;
}
}
else {
uVar1 = 0;
if ((param_2 < 0x10000) && (uVar1 = 0xffffff99, param_3 + 3 <= param_4)) {
*param_3 = (byte)(uVar3 >> 0xc) | 0xe0;
param_3[1] = (byte)(uVar3 >> 6) & 0x3f | 0x80;
param_3[2] = bVar2 & 0x3f | 0x80;
uVar1 = 3;
}
}
return uVar1;
}
|
|
62,374 |
my_convert_fix
|
eloqsql/strings/ctype.c
|
size_t
my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length,
CHARSET_INFO *from_cs, const char *from, size_t from_length,
size_t nchars,
MY_STRCOPY_STATUS *copy_status,
MY_STRCONV_STATUS *conv_status)
{
int cnvres;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc;
my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb;
const uchar *from_end= (const uchar*) from + from_length;
uchar *to_end= (uchar*) to + to_length;
char *to_start= to;
DBUG_ASSERT(to_cs != &my_charset_bin);
DBUG_ASSERT(from_cs != &my_charset_bin);
copy_status->m_well_formed_error_pos= NULL;
conv_status->m_cannot_convert_error_pos= NULL;
for ( ; nchars; nchars--)
{
const char *from_prev= from;
if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0)
from+= cnvres;
else if (cnvres == MY_CS_ILSEQ)
{
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
else if (cnvres > MY_CS_TOOSMALL)
{
/*
A correct multibyte sequence detected
But it doesn't have Unicode mapping.
*/
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from;
from+= (-cnvres);
wc= '?';
}
else
{
if ((uchar *) from >= from_end)
break; // End of line
// Incomplete byte sequence
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
outp:
if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0)
to+= cnvres;
else if (cnvres == MY_CS_ILUNI && wc != '?')
{
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from_prev;
wc= '?';
goto outp;
}
else
{
from= from_prev;
break;
}
}
copy_status->m_source_end_pos= from;
return to - to_start;
}
|
O3
|
c
|
my_convert_fix:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movq %rdx, %r12
movq %rdi, %r13
movq 0x20(%rbp), %rdi
movq 0x18(%rbp), %rdx
movq 0x10(%rbp), %r8
movq %rcx, -0x60(%rbp)
movq 0xb8(%rcx), %rax
movq 0x28(%rax), %rax
movq %rax, -0x58(%rbp)
movq 0xb8(%r13), %rax
movq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq %rax, (%rdi)
testq %r8, %r8
movq %rsi, -0x48(%rbp)
je 0xd8adf
movq %r8, -0x50(%rbp)
addq %r14, %r9
movq %r9, -0x38(%rbp)
addq %rsi, %r12
movq %rsi, %rbx
movq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
callq *-0x58(%rbp)
movl %eax, %r15d
testl %eax, %eax
jle 0xd8a57
movl %r15d, %r15d
addq %r14, %r15
movq -0x30(%rbp), %rsi
jmp 0xd8a8f
je 0xd8a7a
cmpl $-0x64, %r15d
jb 0xd8a74
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xd8a6c
movq %r14, (%rax)
negl %r15d
addq %r14, %r15
jmp 0xd8ab7
cmpq -0x38(%rbp), %r14
jae 0xd8ada
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0xd8a89
movq %r14, 0x8(%rax)
leaq 0x1(%r14), %r15
jmp 0xd8ab7
movq %r13, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq *-0x40(%rbp)
testl %eax, %eax
jg 0xd8ac6
testl %eax, %eax
jne 0xd8ada
cmpq $0x3f, -0x30(%rbp)
je 0xd8ada
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xd8ab7
movq %r14, (%rax)
movq $0x3f, -0x30(%rbp)
movl $0x3f, %esi
jmp 0xd8a8f
movl %eax, %eax
addq %rax, %rbx
movq %r15, %r14
decq -0x50(%rbp)
jne 0xd8a32
jmp 0xd8ae5
movq %r14, %r15
jmp 0xd8ae5
movq %r14, %r15
movq %rsi, %rbx
movq 0x18(%rbp), %rax
movq %r15, (%rax)
subq -0x48(%rbp), %rbx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_convert_fix:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, r8
mov r12, rdx
mov r13, rdi
mov rdi, [rbp+arg_10]
mov rdx, [rbp+arg_8]
mov r8, [rbp+arg_0]
mov [rbp+var_60], rcx
mov rax, [rcx+0B8h]
mov rax, [rax+28h]
mov [rbp+var_58], rax
mov rax, [r13+0B8h]
mov rax, [rax+30h]
mov [rbp+var_40], rax
xor eax, eax
mov [rdx+8], rax
mov [rdi], rax
test r8, r8
mov [rbp+var_48], rsi
jz loc_D8ADF
mov [rbp+var_50], r8
add r9, r14
mov [rbp+var_38], r9
add r12, rsi
mov rbx, rsi
loc_D8A32:
mov rdi, [rbp+var_60]
lea rsi, [rbp+var_30]
mov rdx, r14
mov rcx, [rbp+var_38]
call [rbp+var_58]
mov r15d, eax
test eax, eax
jle short loc_D8A57
mov r15d, r15d
add r15, r14
mov rsi, [rbp+var_30]
jmp short loc_D8A8F
loc_D8A57:
jz short loc_D8A7A
cmp r15d, 0FFFFFF9Ch
jb short loc_D8A74
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_D8A6C
mov [rax], r14
loc_D8A6C:
neg r15d
add r15, r14
jmp short loc_D8AB7
loc_D8A74:
cmp r14, [rbp+var_38]
jnb short loc_D8ADA
loc_D8A7A:
mov rax, [rbp+arg_8]
cmp qword ptr [rax+8], 0
jnz short loc_D8A89
mov [rax+8], r14
loc_D8A89:
lea r15, [r14+1]
jmp short loc_D8AB7
loc_D8A8F:
mov rdi, r13
mov rdx, rbx
mov rcx, r12
call [rbp+var_40]
test eax, eax
jg short loc_D8AC6
test eax, eax
jnz short loc_D8ADA
cmp [rbp+var_30], 3Fh ; '?'
jz short loc_D8ADA
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_D8AB7
mov [rax], r14
loc_D8AB7:
mov [rbp+var_30], 3Fh ; '?'
mov esi, 3Fh ; '?'
jmp short loc_D8A8F
loc_D8AC6:
mov eax, eax
add rbx, rax
mov r14, r15
dec [rbp+var_50]
jnz loc_D8A32
jmp short loc_D8AE5
loc_D8ADA:
mov r15, r14
jmp short loc_D8AE5
loc_D8ADF:
mov r15, r14
mov rbx, rsi
loc_D8AE5:
mov rax, [rbp+arg_8]
mov [rax], r15
sub rbx, [rbp+var_48]
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_convert_fix(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
long long a6,
long long a7,
unsigned long long *a8,
unsigned long long *a9)
{
unsigned long long v9; // r14
long long v10; // r12
long long v11; // rbx
int v12; // eax
unsigned long long v13; // r15
long long v14; // rsi
int v15; // eax
long long ( *v18)(long long, long long *, unsigned long long, unsigned long long); // [rsp+8h] [rbp-58h]
long long v19; // [rsp+10h] [rbp-50h]
long long ( *v21)(long long, long long, long long, long long); // [rsp+20h] [rbp-40h]
unsigned long long v22; // [rsp+28h] [rbp-38h]
long long v23[6]; // [rsp+30h] [rbp-30h] BYREF
v9 = a5;
v18 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL);
v21 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL);
a8[1] = 0LL;
*a9 = 0LL;
if ( a7 )
{
v19 = a7;
v22 = a5 + a6;
v10 = a2 + a3;
v11 = a2;
while ( 1 )
{
v12 = v18(a4, v23, v9, v22);
if ( v12 > 0 )
{
v13 = v9 + (unsigned int)v12;
v14 = v23[0];
goto LABEL_14;
}
if ( !v12 )
goto LABEL_11;
if ( (unsigned int)v12 < 0xFFFFFF9C )
break;
if ( !*a9 )
*a9 = v9;
v13 = v9 + (unsigned int)-v12;
LABEL_19:
while ( 1 )
{
v23[0] = 63LL;
v14 = 63LL;
LABEL_14:
v15 = v21(a1, v14, v11, v10);
if ( v15 > 0 )
break;
if ( v15 || v23[0] == 63 )
goto LABEL_22;
if ( !*a9 )
*a9 = v9;
}
v11 += (unsigned int)v15;
v9 = v13;
if ( !--v19 )
goto LABEL_24;
}
if ( v9 < v22 )
{
LABEL_11:
if ( !a8[1] )
a8[1] = v9;
v13 = v9 + 1;
goto LABEL_19;
}
LABEL_22:
v13 = v9;
}
else
{
v13 = a5;
v11 = a2;
}
LABEL_24:
*a8 = v13;
return v11 - a2;
}
|
my_convert_fix:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,R8
MOV R12,RDX
MOV R13,RDI
MOV RDI,qword ptr [RBP + 0x20]
MOV RDX,qword ptr [RBP + 0x18]
MOV R8,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x60],RCX
MOV RAX,qword ptr [RCX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [R13 + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x40],RAX
XOR EAX,EAX
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RDI],RAX
TEST R8,R8
MOV qword ptr [RBP + -0x48],RSI
JZ 0x001d8adf
MOV qword ptr [RBP + -0x50],R8
ADD R9,R14
MOV qword ptr [RBP + -0x38],R9
ADD R12,RSI
MOV RBX,RSI
LAB_001d8a32:
MOV RDI,qword ptr [RBP + -0x60]
LEA RSI,[RBP + -0x30]
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x38]
CALL qword ptr [RBP + -0x58]
MOV R15D,EAX
TEST EAX,EAX
JLE 0x001d8a57
MOV R15D,R15D
ADD R15,R14
MOV RSI,qword ptr [RBP + -0x30]
JMP 0x001d8a8f
LAB_001d8a57:
JZ 0x001d8a7a
CMP R15D,-0x64
JC 0x001d8a74
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001d8a6c
MOV qword ptr [RAX],R14
LAB_001d8a6c:
NEG R15D
ADD R15,R14
JMP 0x001d8ab7
LAB_001d8a74:
CMP R14,qword ptr [RBP + -0x38]
JNC 0x001d8ada
LAB_001d8a7a:
MOV RAX,qword ptr [RBP + 0x18]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x001d8a89
MOV qword ptr [RAX + 0x8],R14
LAB_001d8a89:
LEA R15,[R14 + 0x1]
JMP 0x001d8ab7
LAB_001d8a8f:
MOV RDI,R13
MOV RDX,RBX
MOV RCX,R12
CALL qword ptr [RBP + -0x40]
TEST EAX,EAX
JG 0x001d8ac6
TEST EAX,EAX
JNZ 0x001d8ada
CMP qword ptr [RBP + -0x30],0x3f
JZ 0x001d8ada
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001d8ab7
MOV qword ptr [RAX],R14
LAB_001d8ab7:
MOV qword ptr [RBP + -0x30],0x3f
MOV ESI,0x3f
JMP 0x001d8a8f
LAB_001d8ac6:
MOV EAX,EAX
ADD RBX,RAX
MOV R14,R15
DEC qword ptr [RBP + -0x50]
JNZ 0x001d8a32
JMP 0x001d8ae5
LAB_001d8ada:
MOV R15,R14
JMP 0x001d8ae5
LAB_001d8adf:
MOV R15,R14
MOV RBX,RSI
LAB_001d8ae5:
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX],R15
SUB RBX,qword ptr [RBP + -0x48]
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6,
long param_7,ulong *param_8,ulong *param_9)
{
code *pcVar1;
code *pcVar2;
uint uVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
long local_58;
long local_38;
pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28);
pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30);
param_8[1] = 0;
*param_9 = 0;
lVar4 = param_2;
uVar5 = param_5;
if (param_7 != 0) {
local_58 = param_7;
while( true ) {
uVar3 = (*pcVar1)(param_4,&local_38,uVar5,param_6 + param_5);
if ((int)uVar3 < 1) break;
uVar6 = uVar3 + uVar5;
while (uVar3 = (*pcVar2)(param_1,local_38,lVar4,param_3 + param_2), (int)uVar3 < 1) {
if ((uVar3 != 0) || (local_38 == 0x3f)) goto LAB_001d8ae5;
if (*param_9 == 0) {
*param_9 = uVar5;
}
LAB_001d8ab7:
local_38 = 0x3f;
}
lVar4 = lVar4 + (ulong)uVar3;
local_58 = local_58 + -1;
uVar5 = uVar6;
if (local_58 == 0) goto LAB_001d8ae5;
}
if (uVar3 != 0) {
if (0xffffff9b < uVar3) {
if (*param_9 == 0) {
*param_9 = uVar5;
}
uVar6 = -uVar3 + uVar5;
goto LAB_001d8ab7;
}
if (param_6 + param_5 <= uVar5) goto LAB_001d8ae5;
}
if (param_8[1] == 0) {
param_8[1] = uVar5;
}
uVar6 = uVar5 + 1;
goto LAB_001d8ab7;
}
LAB_001d8ae5:
*param_8 = uVar5;
return lVar4 - param_2;
}
|
|
62,375 |
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[](nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
|
monkey531[P]llama/common/./json.hpp
|
T& operator[](const key_type& key)
{
return emplace(key, T{}).first->second;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[](nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rsp, %rdx
movq $0x0, 0x48(%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, 0x20(%rdx)
movaps %xmm0, 0x30(%rdx)
movb $0x0, 0x40(%rdx)
callq 0xf73ba
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x44196
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0xf7343
callq 0x51cae
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xf7352
callq 0x51cae
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xf7361
callq 0x51cae
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xf7397
movq 0xadc0e(%rip), %rax # 0x1a4f80
cmpb $0x0, (%rax)
je 0xf7382
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xf738c
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xf7397
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x10, %rbx
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xf451a
movq %rbx, %rdi
callq 0x20380
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_:
push r14
push rbx
sub rsp, 58h
mov rdx, rsp
mov qword ptr [rdx+48h], 0
xorps xmm0, xmm0
movaps xmmword ptr [rdx], xmm0
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx+20h], xmm0
movaps xmmword ptr [rdx+30h], xmm0
mov byte ptr [rdx+40h], 0
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceERSJ_OSF_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::emplace(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,minja::Value&&)
mov rbx, rax
lea r14, [rsp+68h+var_28]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_F7343
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_F7343:
mov rdi, [rsp+68h+var_40]
test rdi, rdi
jz short loc_F7352
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_F7352:
mov rdi, [rsp+68h+var_50]
test rdi, rdi
jz short loc_F7361
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_F7361:
mov rdi, [rsp+68h+var_60]
test rdi, rdi
jz short loc_F7397
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_F7382
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_F738C
loc_F7382:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_F738C:
cmp eax, 1
jnz short loc_F7397
mov rax, [rdi]
call qword ptr [rax+18h]
loc_F7397:
add rbx, 10h
mov rax, rbx
add rsp, 58h
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator[](
long long a1,
long long a2)
{
long long v2; // rbx
long long v3; // rdi
signed __int32 v4; // eax
__int128 v6; // [rsp+0h] [rbp-68h] BYREF
__int128 v7; // [rsp+10h] [rbp-58h]
__int128 v8; // [rsp+20h] [rbp-48h]
__int128 v9; // [rsp+30h] [rbp-38h]
_BYTE v10[8]; // [rsp+40h] [rbp-28h] BYREF
long long v11; // [rsp+48h] [rbp-20h]
v11 = 0LL;
v6 = 0LL;
v7 = 0LL;
v8 = 0LL;
v9 = 0LL;
v10[0] = 0;
v2 = nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::emplace(
a1,
a2,
&v6);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10);
if ( *((_QWORD *)&v9 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v9 + 1));
if ( *((_QWORD *)&v8 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v8 + 1));
if ( *((_QWORD *)&v7 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v7 + 1));
v3 = *((_QWORD *)&v6 + 1);
if ( *((_QWORD *)&v6 + 1) )
{
if ( _libc_single_threaded )
{
v4 = *(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL) = v4 - 1;
}
else
{
v4 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v6 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v4 == 1 )
(*(void ( **)(long long))(*(_QWORD *)v3 + 24LL))(v3);
}
return v2 + 16;
}
|
operator[]:
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV RDX,RSP
MOV qword ptr [RDX + 0x48],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RDX],XMM0
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX + 0x20],XMM0
MOVAPS xmmword ptr [RDX + 0x30],XMM0
MOV byte ptr [RDX + 0x40],0x0
LAB_001f7320:
CALL 0x001f73ba
LAB_001f7325:
MOV RBX,RAX
LEA R14,[RSP + 0x40]
MOV RDI,R14
CALL 0x00144196
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x001f7343
CALL 0x00151cae
LAB_001f7343:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x001f7352
CALL 0x00151cae
LAB_001f7352:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x001f7361
CALL 0x00151cae
LAB_001f7361:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x001f7397
MOV RAX,qword ptr [0x002a4f80]
CMP byte ptr [RAX],0x0
JZ 0x001f7382
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001f738c
LAB_001f7382:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001f738c:
CMP EAX,0x1
JNZ 0x001f7397
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001f7397:
ADD RBX,0x10
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R14
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, minja::Value,
std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> >
>::operator[](nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
long __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::operator[](ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*this,basic_json *param_1)
{
int *piVar1;
int iVar2;
long lVar3;
int8 local_68;
long *plStack_60;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_50;
int8 local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_40;
int8 local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_30;
data local_28 [8];
int8 local_20;
local_20 = 0;
local_68 = 0;
plStack_60 = (long *)0x0;
local_58 = 0;
p_Stack_50 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_48 = 0;
p_Stack_40 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_38 = 0;
p_Stack_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_28[0] = (data)0x0;
/* try { // try from 001f7320 to 001f7324 has its CatchHandler @ 001f73a6 */
lVar3 = emplace(this,param_1,(Value *)&local_68);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_28);
if (p_Stack_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_30);
}
if (p_Stack_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_40);
}
if (p_Stack_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_50);
}
if (plStack_60 != (long *)0x0) {
if (*PTR___libc_single_threaded_002a4f80 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_60 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)plStack_60 + 0xc);
*(int *)((long)plStack_60 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*plStack_60 + 0x18))();
}
}
return lVar3 + 0x10;
}
|
|
62,376 |
minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&)
|
monkey531[P]llama/common/./minja.hpp
|
inline std::shared_ptr<Context> Context::make(Value && values, const std::shared_ptr<Context> & parent) {
return std::make_shared<Context>(values.is_null() ? Value::object() : std::move(values), parent);
}
|
O2
|
cpp
|
minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3c0b0
movl %eax, %ebp
testb %al, %al
je 0x57207
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x48634
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x4a92c
jmp 0x57214
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x3b1b6
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x574bf
leaq 0x18(%rsp), %rdi
callq 0x3b31c
testb %bpl, %bpl
je 0x5723d
leaq 0x10(%rsp), %rdi
callq 0x2eeb2
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x3b31c
testb %bpl, %bpl
je 0x57267
leaq 0x10(%rsp), %rdi
callq 0x2eeb2
movq %rbx, %rdi
callq 0x20b90
nop
|
_ZN5minja7Context4makeEONS_5ValueERKSt10shared_ptrIS0_E:
push rbp
push r15
push r14
push rbx
sub rsp, 68h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
mov ebp, eax
test al, al
jz short loc_57207
lea r15, [rsp+88h+var_80]
mov rdi, r15
call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>()
lea rdi, [rsp+88h+var_70]
mov rsi, r15
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
jmp short loc_57214
loc_57207:
lea rdi, [rsp+88h+var_70]
mov rsi, r15
call _ZN5minja5ValueC2EOS0_; minja::Value::Value(minja::Value&&)
loc_57214:
lea rsi, [rsp+88h+var_70]
mov rdi, rbx
mov rdx, r14
call _ZSt11make_sharedIN5minja7ContextEJNS0_5ValueERKSt10shared_ptrIS1_EEES3_IT_EDpOT0_; std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context> const&>(minja::Value,std::shared_ptr<minja::Context> const&)
lea rdi, [rsp+88h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_5723D
lea rdi, [rsp+88h+var_78]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_5723D:
mov rax, rbx
add rsp, 68h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_10]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_57267
lea rdi, [rsp+arg_8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_57267:
mov rdi, rbx
call __Unwind_Resume
|
long long minja::Context::make(long long a1, minja::Value *a2, long long a3)
{
bool is_null; // bp
long long v6; // [rsp+8h] [rbp-80h] BYREF
long long v7; // [rsp+10h] [rbp-78h] BYREF
_BYTE v8[112]; // [rsp+18h] [rbp-70h] BYREF
is_null = minja::Value::is_null(a2);
if ( is_null )
{
std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>((long long)&v6);
minja::Value::Value((long long)v8, &v6);
}
else
{
minja::Value::Value((long long)v8, (long long)a2);
}
std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context> const&>(a1, v8, a3);
minja::Value::~Value((minja::Value *)v8);
if ( is_null )
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7);
return a1;
}
|
make:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x0013c0b0
MOV EBP,EAX
TEST AL,AL
JZ 0x00157207
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x00148634
LEA RDI,[RSP + 0x18]
MOV RSI,R15
CALL 0x0014a92c
JMP 0x00157214
LAB_00157207:
LEA RDI,[RSP + 0x18]
MOV RSI,R15
CALL 0x0013b1b6
LAB_00157214:
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
MOV RDX,R14
CALL 0x001574bf
LAB_00157224:
LEA RDI,[RSP + 0x18]
CALL 0x0013b31c
TEST BPL,BPL
JZ 0x0015723d
LEA RDI,[RSP + 0x10]
CALL 0x0012eeb2
LAB_0015723d:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) */
Value * minja::Context::make(Value *param_1,shared_ptr *param_2)
{
char cVar1;
shared_ptr local_80 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [8];
Value local_70 [80];
cVar1 = Value::is_null((Value *)param_2);
if (cVar1 == '\0') {
Value::Value(local_70,(Value *)param_2);
}
else {
std::
make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>
();
Value::Value(local_70,local_80);
}
/* try { // try from 00157214 to 00157223 has its CatchHandler @ 0015724b */
std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context>const&>
(param_1,(shared_ptr *)local_70);
Value::~Value(local_70);
if (cVar1 != '\0') {
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78);
}
return param_1;
}
|
|
62,377 |
free_root
|
eloqsql/mysys/my_alloc.c
|
void free_root(MEM_ROOT *root, myf MyFlags)
{
reg1 USED_MEM *next,*old;
DBUG_ENTER("free_root");
DBUG_PRINT("enter",("root: %p flags: %lu", root, MyFlags));
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
/*
There is no point in using mark_blocks_free when using valgrind as
it will not reclaim any memory
*/
if (MyFlags & MY_MARK_BLOCKS_FREE)
{
mark_blocks_free(root);
DBUG_VOID_RETURN;
}
#endif
if (!(MyFlags & MY_KEEP_PREALLOC))
root->pre_alloc=0;
for (next=root->used; next ;)
{
old=next; next= next->next ;
if (old != root->pre_alloc)
my_free(old);
}
for (next=root->free ; next ;)
{
old=next; next= next->next;
if (old != root->pre_alloc)
my_free(old);
}
root->used=root->free=0;
if (root->pre_alloc)
{
root->free=root->pre_alloc;
root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(USED_MEM));
TRASH_MEM(root->pre_alloc);
root->free->next=0;
}
root->block_num= 4;
root->first_block_usage= 0;
DBUG_VOID_RETURN;
}
|
O3
|
c
|
free_root:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testb $0x2, %sil
jne 0x9cf70
testb $0x1, %sil
jne 0x9cf09
movq $0x0, 0x10(%rbx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x9cf28
movq (%rdi), %r14
cmpq 0x10(%rbx), %rdi
je 0x9cf20
callq 0x9ffb6
movq %r14, %rdi
testq %r14, %r14
jne 0x9cf12
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x9cf46
movq (%rdi), %r14
cmpq 0x10(%rbx), %rdi
je 0x9cf3e
callq 0x9ffb6
movq %r14, %rdi
testq %r14, %r14
jne 0x9cf30
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x9cfba
movq %rax, (%rbx)
movq 0x10(%rax), %rcx
addq $-0x18, %rcx
movq %rcx, 0x8(%rax)
movq (%rbx), %rax
movq $0x0, (%rax)
jmp 0x9cfba
movq (%rbx), %rax
movq %rbx, %rcx
testq %rax, %rax
je 0x9cf8f
movq %rax, %rcx
movq (%rax), %rax
movq 0x10(%rcx), %rdx
addq $-0x18, %rdx
movq %rdx, 0x8(%rcx)
jmp 0x9cf76
movq 0x8(%rbx), %rax
movq %rax, (%rcx)
testq %rax, %rax
je 0x9cfb2
movq (%rax), %rcx
movq 0x10(%rax), %rdx
addq $-0x18, %rdx
movq %rdx, 0x8(%rax)
movq %rcx, %rax
testq %rcx, %rcx
jne 0x9cf9b
movq $0x0, 0x8(%rbx)
movq $0x4, 0x28(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
|
free_root:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
test sil, 2
jnz short loc_9CF70
test sil, 1
jnz short loc_9CF09
mov qword ptr [rbx+10h], 0
loc_9CF09:
mov rdi, [rbx+8]
test rdi, rdi
jz short loc_9CF28
loc_9CF12:
mov r14, [rdi]
cmp rdi, [rbx+10h]
jz short loc_9CF20
call my_free
loc_9CF20:
mov rdi, r14
test r14, r14
jnz short loc_9CF12
loc_9CF28:
mov rdi, [rbx]
test rdi, rdi
jz short loc_9CF46
loc_9CF30:
mov r14, [rdi]
cmp rdi, [rbx+10h]
jz short loc_9CF3E
call my_free
loc_9CF3E:
mov rdi, r14
test r14, r14
jnz short loc_9CF30
loc_9CF46:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov rax, [rbx+10h]
test rax, rax
jz short loc_9CFBA
mov [rbx], rax
mov rcx, [rax+10h]
add rcx, 0FFFFFFFFFFFFFFE8h
mov [rax+8], rcx
mov rax, [rbx]
mov qword ptr [rax], 0
jmp short loc_9CFBA
loc_9CF70:
mov rax, [rbx]
mov rcx, rbx
loc_9CF76:
test rax, rax
jz short loc_9CF8F
mov rcx, rax
mov rax, [rax]
mov rdx, [rcx+10h]
add rdx, 0FFFFFFFFFFFFFFE8h
mov [rcx+8], rdx
jmp short loc_9CF76
loc_9CF8F:
mov rax, [rbx+8]
mov [rcx], rax
test rax, rax
jz short loc_9CFB2
loc_9CF9B:
mov rcx, [rax]
mov rdx, [rax+10h]
add rdx, 0FFFFFFFFFFFFFFE8h
mov [rax+8], rdx
mov rax, rcx
test rcx, rcx
jnz short loc_9CF9B
loc_9CFB2:
mov qword ptr [rbx+8], 0
loc_9CFBA:
mov qword ptr [rbx+28h], 4
pop rbx
pop r14
pop rbp
retn
|
_QWORD * free_root(_QWORD *a1, char a2)
{
_QWORD *v3; // rdi
_QWORD *v4; // r14
_QWORD *v5; // rdi
_QWORD *v6; // r14
_QWORD *result; // rax
_QWORD *v8; // rax
_QWORD *v9; // rcx
_QWORD *v10; // rcx
if ( (a2 & 2) != 0 )
{
v8 = (_QWORD *)*a1;
v9 = a1;
while ( v8 )
{
v9 = v8;
v8 = (_QWORD *)*v8;
v9[1] = v9[2] - 24LL;
}
result = (_QWORD *)a1[1];
*v9 = result;
if ( result )
{
do
{
v10 = (_QWORD *)*result;
result[1] = result[2] - 24LL;
result = v10;
}
while ( v10 );
}
a1[1] = 0LL;
}
else
{
if ( (a2 & 1) == 0 )
a1[2] = 0LL;
v3 = (_QWORD *)a1[1];
if ( v3 )
{
do
{
v4 = (_QWORD *)*v3;
if ( v3 != (_QWORD *)a1[2] )
my_free(v3);
v3 = v4;
}
while ( v4 );
}
v5 = (_QWORD *)*a1;
if ( *a1 )
{
do
{
v6 = (_QWORD *)*v5;
if ( v5 != (_QWORD *)a1[2] )
my_free(v5);
v5 = v6;
}
while ( v6 );
}
*(_OWORD *)a1 = 0LL;
result = (_QWORD *)a1[2];
if ( result )
{
*a1 = result;
result[1] = result[2] - 24LL;
result = (_QWORD *)*a1;
*(_QWORD *)*a1 = 0LL;
}
}
a1[5] = 4LL;
return result;
}
|
free_root:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
TEST SIL,0x2
JNZ 0x0019cf70
TEST SIL,0x1
JNZ 0x0019cf09
MOV qword ptr [RBX + 0x10],0x0
LAB_0019cf09:
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0019cf28
LAB_0019cf12:
MOV R14,qword ptr [RDI]
CMP RDI,qword ptr [RBX + 0x10]
JZ 0x0019cf20
CALL 0x0019ffb6
LAB_0019cf20:
MOV RDI,R14
TEST R14,R14
JNZ 0x0019cf12
LAB_0019cf28:
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x0019cf46
LAB_0019cf30:
MOV R14,qword ptr [RDI]
CMP RDI,qword ptr [RBX + 0x10]
JZ 0x0019cf3e
CALL 0x0019ffb6
LAB_0019cf3e:
MOV RDI,R14
TEST R14,R14
JNZ 0x0019cf30
LAB_0019cf46:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV RAX,qword ptr [RBX + 0x10]
TEST RAX,RAX
JZ 0x0019cfba
MOV qword ptr [RBX],RAX
MOV RCX,qword ptr [RAX + 0x10]
ADD RCX,-0x18
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBX]
MOV qword ptr [RAX],0x0
JMP 0x0019cfba
LAB_0019cf70:
MOV RAX,qword ptr [RBX]
MOV RCX,RBX
LAB_0019cf76:
TEST RAX,RAX
JZ 0x0019cf8f
MOV RCX,RAX
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RCX + 0x10]
ADD RDX,-0x18
MOV qword ptr [RCX + 0x8],RDX
JMP 0x0019cf76
LAB_0019cf8f:
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RCX],RAX
TEST RAX,RAX
JZ 0x0019cfb2
LAB_0019cf9b:
MOV RCX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x10]
ADD RDX,-0x18
MOV qword ptr [RAX + 0x8],RDX
MOV RAX,RCX
TEST RCX,RCX
JNZ 0x0019cf9b
LAB_0019cfb2:
MOV qword ptr [RBX + 0x8],0x0
LAB_0019cfba:
MOV qword ptr [RBX + 0x28],0x4
POP RBX
POP R14
POP RBP
RET
|
void free_root(long *param_1,byte param_2)
{
int8 *puVar1;
long lVar2;
int8 *puVar3;
long *plVar4;
long *plVar5;
long *plVar6;
bool bVar7;
if ((param_2 & 2) == 0) {
if ((param_2 & 1) == 0) {
param_1[2] = 0;
}
puVar3 = (int8 *)param_1[1];
while (puVar3 != (int8 *)0x0) {
puVar1 = (int8 *)*puVar3;
bVar7 = puVar3 != (int8 *)param_1[2];
puVar3 = puVar1;
if (bVar7) {
my_free();
}
}
puVar3 = (int8 *)*param_1;
while (puVar3 != (int8 *)0x0) {
puVar1 = (int8 *)*puVar3;
bVar7 = puVar3 != (int8 *)param_1[2];
puVar3 = puVar1;
if (bVar7) {
my_free();
}
}
*param_1 = 0;
param_1[1] = 0;
lVar2 = param_1[2];
if (lVar2 != 0) {
*param_1 = lVar2;
*(long *)(lVar2 + 8) = *(long *)(lVar2 + 0x10) + -0x18;
*(int8 *)*param_1 = 0;
}
}
else {
plVar4 = (long *)*param_1;
plVar6 = param_1;
while (plVar5 = plVar4, plVar5 != (long *)0x0) {
plVar5[1] = plVar5[2] + -0x18;
plVar4 = (long *)*plVar5;
plVar6 = plVar5;
}
puVar3 = (int8 *)param_1[1];
*plVar6 = (long)puVar3;
while (puVar3 != (int8 *)0x0) {
puVar3[1] = puVar3[2] + -0x18;
puVar3 = (int8 *)*puVar3;
}
param_1[1] = 0;
}
param_1[5] = 4;
return;
}
|
|
62,378 |
configure_instr_class(PFS_instr_class*)
|
eloqsql/storage/perfschema/pfs_instr_class.cc
|
static void configure_instr_class(PFS_instr_class *entry)
{
uint match_length= 0; /* length of matching pattern */
// May be NULL in unit tests
if (pfs_instr_config_array == NULL)
return;
PFS_instr_config **it= pfs_instr_config_array->front();
for ( ; it != pfs_instr_config_array->end(); it++)
{
PFS_instr_config* e= *it;
/**
Compare class name to all configuration entries. In case of multiple
matches, the longer specification wins. For example, the pattern
'ABC/DEF/GHI=ON' has precedence over 'ABC/DEF/%=OFF' regardless of
position within the configuration file or command line.
Consecutive wildcards affect the count.
*/
if (!my_charset_latin1.wildcmp(
entry->m_name, entry->m_name+entry->m_name_length,
e->m_name, e->m_name+e->m_name_length,
'\\', '?','%'))
{
if (e->m_name_length >= match_length)
{
entry->m_enabled= e->m_enabled;
entry->m_timed= e->m_timed;
match_length= MY_MAX(e->m_name_length, match_length);
}
}
}
}
|
O3
|
cpp
|
configure_instr_class(PFS_instr_class*):
movq 0x397aaf(%rip), %rax # 0x3d2838
testq %rax, %rax
je 0x3ae47
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x8(%rax)
je 0x3ae39
movq %rdi, %rbx
movq (%rax), %r12
leaq 0x14(%rdi), %r14
movl $0x0, -0x2c(%rbp)
leaq 0x30805e(%rip), %r15 # 0x342e20
movq (%r12), %r13
movl 0x94(%rbx), %edx
addq %r14, %rdx
movq (%r13), %rcx
movl 0x8(%r13), %r8d
addq %rcx, %r8
movq 0xc0(%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movl $0x5c, %r9d
pushq $0x25
pushq $0x3f
callq *0x38(%rax)
addq $0x10, %rsp
testl %eax, %eax
jne 0x3ae1f
movl -0x2c(%rbp), %ecx
cmpl %ecx, 0x8(%r13)
jb 0x3ae1f
movb 0xc(%r13), %al
movb %al, 0x4(%rbx)
movb 0xd(%r13), %al
movb %al, 0x5(%rbx)
movl 0x8(%r13), %eax
cmpl %ecx, %eax
cmoval %eax, %ecx
movl %ecx, -0x2c(%rbp)
addq $0x8, %r12
movq 0x397a0e(%rip), %rax # 0x3d2838
movl 0x8(%rax), %ecx
shlq $0x3, %rcx
addq (%rax), %rcx
cmpq %rcx, %r12
jne 0x3adc2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZL21configure_instr_classP15PFS_instr_class:
mov rax, cs:pfs_instr_config_array
test rax, rax
jz locret_3AE47
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
cmp dword ptr [rax+8], 0
jz loc_3AE39
mov rbx, rdi
mov r12, [rax]
lea r14, [rdi+14h]
mov dword ptr [rbp-2Ch], 0
lea r15, my_charset_latin1
loc_3ADC2:
mov r13, [r12]
mov edx, [rbx+94h]
add rdx, r14
mov rcx, [r13+0]
mov r8d, [r13+8]
add r8, rcx
mov rax, [r15+0C0h]
mov rdi, r15
mov rsi, r14
mov r9d, 5Ch ; '\'
push 25h ; '%'
push 3Fh ; '?'
call qword ptr [rax+38h]
add rsp, 10h
test eax, eax
jnz short loc_3AE1F
mov ecx, [rbp-2Ch]
cmp [r13+8], ecx
jb short loc_3AE1F
mov al, [r13+0Ch]
mov [rbx+4], al
mov al, [r13+0Dh]
mov [rbx+5], al
mov eax, [r13+8]
cmp eax, ecx
cmova ecx, eax
mov [rbp-2Ch], ecx
loc_3AE1F:
add r12, 8
mov rax, cs:pfs_instr_config_array
mov ecx, [rax+8]
shl rcx, 3
add rcx, [rax]
cmp r12, rcx
jnz short loc_3ADC2
loc_3AE39:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
locret_3AE47:
retn
|
long long configure_instr_class(long long a1)
{
long long result; // rax
_QWORD **v2; // r12
_QWORD *v3; // r13
unsigned int v4; // ecx
unsigned int v5; // [rsp-34h] [rbp-34h]
result = pfs_instr_config_array;
if ( pfs_instr_config_array && *(_DWORD *)(pfs_instr_config_array + 8) )
{
v2 = *(_QWORD ***)pfs_instr_config_array;
v5 = 0;
do
{
v3 = *v2;
if ( !(*(unsigned int ( **)(void *, long long, long long, _QWORD, _QWORD, long long, long long, long long))(*((_QWORD *)&my_charset_latin1 + 24) + 56LL))(
&my_charset_latin1,
a1 + 20,
a1 + 20 + *(unsigned int *)(a1 + 148),
**v2,
**v2 + *((unsigned int *)*v2 + 2),
92LL,
63LL,
37LL) )
{
v4 = v5;
if ( *((_DWORD *)v3 + 2) >= v5 )
{
*(_BYTE *)(a1 + 4) = *((_BYTE *)v3 + 12);
*(_BYTE *)(a1 + 5) = *((_BYTE *)v3 + 13);
if ( *((_DWORD *)v3 + 2) > v5 )
v4 = *((_DWORD *)v3 + 2);
v5 = v4;
}
}
++v2;
result = pfs_instr_config_array;
}
while ( v2 != (_QWORD **)(*(_QWORD *)pfs_instr_config_array + 8LL * *(unsigned int *)(pfs_instr_config_array + 8)) );
}
return result;
}
|
configure_instr_class:
MOV RAX,qword ptr [0x004d2838]
TEST RAX,RAX
JZ 0x0013ae47
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
CMP dword ptr [RAX + 0x8],0x0
JZ 0x0013ae39
MOV RBX,RDI
MOV R12,qword ptr [RAX]
LEA R14,[RDI + 0x14]
MOV dword ptr [RBP + -0x2c],0x0
LEA R15,[0x442e20]
LAB_0013adc2:
MOV R13,qword ptr [R12]
MOV EDX,dword ptr [RBX + 0x94]
ADD RDX,R14
MOV RCX,qword ptr [R13]
MOV R8D,dword ptr [R13 + 0x8]
ADD R8,RCX
MOV RAX,qword ptr [R15 + 0xc0]
MOV RDI,R15
MOV RSI,R14
MOV R9D,0x5c
PUSH 0x25
PUSH 0x3f
CALL qword ptr [RAX + 0x38]
ADD RSP,0x10
TEST EAX,EAX
JNZ 0x0013ae1f
MOV ECX,dword ptr [RBP + -0x2c]
CMP dword ptr [R13 + 0x8],ECX
JC 0x0013ae1f
MOV AL,byte ptr [R13 + 0xc]
MOV byte ptr [RBX + 0x4],AL
MOV AL,byte ptr [R13 + 0xd]
MOV byte ptr [RBX + 0x5],AL
MOV EAX,dword ptr [R13 + 0x8]
CMP EAX,ECX
CMOVA ECX,EAX
MOV dword ptr [RBP + -0x2c],ECX
LAB_0013ae1f:
ADD R12,0x8
MOV RAX,qword ptr [0x004d2838]
MOV ECX,dword ptr [RAX + 0x8]
SHL RCX,0x3
ADD RCX,qword ptr [RAX]
CMP R12,RCX
JNZ 0x0013adc2
LAB_0013ae39:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
LAB_0013ae47:
RET
|
/* configure_instr_class(PFS_instr_class*) */
void configure_instr_class(PFS_instr_class *param_1)
{
long *plVar1;
uint uVar2;
int iVar3;
long *plVar4;
if ((pfs_instr_config_array != (long *)0x0) && ((int)pfs_instr_config_array[1] != 0)) {
plVar4 = (long *)*pfs_instr_config_array;
uVar2 = 0;
do {
plVar1 = (long *)*plVar4;
iVar3 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00442ee0 + 0x38))
(&my_charset_latin1,param_1 + 0x14,
param_1 + 0x14 + *(uint *)(param_1 + 0x94),*plVar1,
(ulong)*(uint *)(plVar1 + 1) + *plVar1,0x5c,0x3f,0x25);
if ((iVar3 == 0) && (uVar2 <= *(uint *)(plVar1 + 1))) {
param_1[4] = *(PFS_instr_class *)((long)plVar1 + 0xc);
param_1[5] = *(PFS_instr_class *)((long)plVar1 + 0xd);
if (uVar2 < *(uint *)(plVar1 + 1)) {
uVar2 = *(uint *)(plVar1 + 1);
}
}
plVar4 = plVar4 + 1;
} while (plVar4 != (long *)((ulong)*(uint *)(pfs_instr_config_array + 1) * 8 +
*pfs_instr_config_array));
}
return;
}
|
|
62,379 |
inheritance_source_by_id
|
eloqsql/mysys/charset.c
|
static CHARSET_INFO *inheritance_source_by_id(CHARSET_INFO *cs, uint refid)
{
CHARSET_INFO *refcs;
return refid && refid != cs->number &&
(refcs= all_charsets[refid]) &&
(refcs->state & MY_CS_AVAILABLE) ? refcs : NULL;
}
|
O0
|
c
|
inheritance_source_by_id:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x6b8f1
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
je 0x6b8f1
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x384698(%rip), %rax # 0x3eff60
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x6b8f1
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
je 0x6b8f1
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x6b8f9
xorl %eax, %eax
movq %rax, -0x20(%rbp)
jmp 0x6b8f9
movq -0x20(%rbp), %rax
popq %rbp
retq
nop
|
inheritance_source_by_id:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
cmp [rbp+var_C], 0
jz short loc_6B8F1
mov eax, [rbp+var_C]
mov rcx, [rbp+var_8]
cmp eax, [rcx]
jz short loc_6B8F1
mov eax, [rbp+var_C]
mov ecx, eax
lea rax, all_charsets
mov rax, [rax+rcx*8]
mov [rbp+var_18], rax
cmp rax, 0
jz short loc_6B8F1
mov rax, [rbp+var_18]
mov eax, [rax+0Ch]
and eax, 200h
cmp eax, 0
jz short loc_6B8F1
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
jmp short loc_6B8F9
loc_6B8F1:
xor eax, eax
mov [rbp+var_20], rax
jmp short $+2
loc_6B8F9:
mov rax, [rbp+var_20]
pop rbp
retn
|
long long inheritance_source_by_id(_DWORD *a1, int a2)
{
long long v4; // [rsp+8h] [rbp-18h]
if ( a2 && a2 != *a1 && (v4 = all_charsets[a2]) != 0 && (*(_DWORD *)(v4 + 12) & 0x200) != 0 )
return all_charsets[a2];
else
return 0LL;
}
|
inheritance_source_by_id:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
CMP dword ptr [RBP + -0xc],0x0
JZ 0x0016b8f1
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX]
JZ 0x0016b8f1
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,EAX
LEA RAX,[0x4eff60]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JZ 0x0016b8f1
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x200
CMP EAX,0x0
JZ 0x0016b8f1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0016b8f9
LAB_0016b8f1:
XOR EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0016b8f9
LAB_0016b8f9:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long inheritance_source_by_id(uint *param_1,uint param_2)
{
long local_28;
if ((((param_2 == 0) || (param_2 == *param_1)) ||
(local_28 = (&all_charsets)[param_2], local_28 == 0)) ||
((*(uint *)(local_28 + 0xc) & 0x200) == 0)) {
local_28 = 0;
}
return local_28;
}
|
|
62,380 |
parseRelation(SEMANTICANALYZER::Relation&, Style const&)
|
11AgReS1SoR11[P]Graph/Common/Translator/src/Translator.cpp
|
Shape* parseRelation(SEMANTICANALYZER::Relation& relation, Style const& graph_style){
Line* _line = new Line;
_line->idFrom = relation.id1;
_line->idTo = relation.id2;
//fill for arrow
if (relation.arrow == "->") {
_line->type = line_type_e::Solid;
_line->orientation = line_orientation_e::Directed;
}
else if (relation.arrow == "-->") {
_line->type = line_type_e::Dotted;
_line->orientation = line_orientation_e::Directed;
}
else if (relation.arrow == "<->") {
_line->type = line_type_e::Solid;
_line->orientation = line_orientation_e::DoubleDirected;
}
else if (relation.arrow == "<-->") {
_line->type = line_type_e::Dotted;
_line->orientation = line_orientation_e::DoubleDirected;
}
else if (relation.arrow == "--") {
_line->type = line_type_e::Dotted;
_line->orientation = line_orientation_e::Undirected;
}
else if (relation.arrow == "-") {
_line->type = line_type_e::Solid;
_line->orientation = line_orientation_e::Undirected;
}
parseCommonProperty(relation.properties, _line, graph_style);
return _line;
}
|
O0
|
cpp
|
parseRelation(SEMANTICANALYZER::Relation&, Style const&):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0xa8, %edi
callq 0x1b490
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
callq 0x1b0c0
jmp 0x1f8eb
movq -0x30(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rsi
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
callq 0x1a0c0
movq -0x8(%rbp), %rsi
addq $0x40, %rsi
movq -0x18(%rbp), %rdi
addq $0x80, %rdi
callq 0x1a0c0
movq -0x8(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa7d4(%rip), %rsi # 0x2a0ff
callq 0x1ca90
testb $0x1, %al
jne 0x1f936
jmp 0x1f974
movq -0x18(%rbp), %rax
movw $0x1, 0xa0(%rax)
movq -0x18(%rbp), %rax
movw $0x1, 0xa2(%rax)
jmp 0x1fa90
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0xa8, %esi
callq 0x1b520
jmp 0x1faaf
movq -0x8(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa77b(%rip), %rsi # 0x2a0fe
callq 0x1ca90
testb $0x1, %al
jne 0x1f98e
jmp 0x1f9ad
movq -0x18(%rbp), %rax
movw $0x0, 0xa0(%rax)
movq -0x18(%rbp), %rax
movw $0x1, 0xa2(%rax)
jmp 0x1fa8e
movq -0x8(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa73d(%rip), %rsi # 0x2a0f9
callq 0x1ca90
testb $0x1, %al
jne 0x1f9c7
jmp 0x1f9e6
movq -0x18(%rbp), %rax
movw $0x1, 0xa0(%rax)
movq -0x18(%rbp), %rax
movw $0x2, 0xa2(%rax)
jmp 0x1fa8c
movq -0x8(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa708(%rip), %rsi # 0x2a0fd
callq 0x1ca90
testb $0x1, %al
jne 0x1fa00
jmp 0x1fa1c
movq -0x18(%rbp), %rax
movw $0x0, 0xa0(%rax)
movq -0x18(%rbp), %rax
movw $0x2, 0xa2(%rax)
jmp 0x1fa8a
movq -0x8(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa6d7(%rip), %rsi # 0x2a102
callq 0x1ca90
testb $0x1, %al
jne 0x1fa36
jmp 0x1fa52
movq -0x18(%rbp), %rax
movw $0x0, 0xa0(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0xa2(%rax)
jmp 0x1fa88
movq -0x8(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa6a2(%rip), %rsi # 0x2a103
callq 0x1ca90
testb $0x1, %al
jne 0x1fa6c
jmp 0x1fa86
movq -0x18(%rbp), %rax
movw $0x1, 0xa0(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0xa2(%rax)
jmp 0x1fa88
jmp 0x1fa8a
jmp 0x1fa8c
jmp 0x1fa8e
jmp 0x1fa90
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x1ba30
movq -0x18(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x1c610
nopl (%rax,%rax)
|
_Z13parseRelationRN16SEMANTICANALYZER8RelationERK5Style:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov edi, 0A8h; unsigned __int64
call __Znwm; operator new(ulong)
mov rdi, rax; this
mov rax, rdi
mov [rbp+var_30], rax
call __ZN4LineC1Ev; Line::Line(void)
jmp short $+2
loc_1F8EB:
mov rax, [rbp+var_30]
mov [rbp+var_18], rax
mov rsi, [rbp+var_8]
mov rdi, [rbp+var_18]
add rdi, 60h ; '`'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
mov rsi, [rbp+var_8]
add rsi, 40h ; '@'
mov rdi, [rbp+var_18]
add rdi, 80h
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
mov rdi, [rbp+var_8]
add rdi, 20h ; ' '
lea rsi, asc_2A0FD+2; "->"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_1F936
jmp short loc_1F974
loc_1F936:
mov rax, [rbp+var_18]
mov word ptr [rax+0A0h], 1
mov rax, [rbp+var_18]
mov word ptr [rax+0A2h], 1
jmp loc_1FA90
mov rdi, [rbp+var_30]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_20], rcx
mov [rbp+var_24], eax
mov esi, 0A8h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_1FAAF
loc_1F974:
mov rdi, [rbp+var_8]
add rdi, 20h ; ' '
lea rsi, asc_2A0FD+1; "-->"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_1F98E
jmp short loc_1F9AD
loc_1F98E:
mov rax, [rbp+var_18]
mov word ptr [rax+0A0h], 0
mov rax, [rbp+var_18]
mov word ptr [rax+0A2h], 1
jmp loc_1FA8E
loc_1F9AD:
mov rdi, [rbp+var_8]
add rdi, 20h ; ' '
lea rsi, asc_2A0F9; "<->"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_1F9C7
jmp short loc_1F9E6
loc_1F9C7:
mov rax, [rbp+var_18]
mov word ptr [rax+0A0h], 1
mov rax, [rbp+var_18]
mov word ptr [rax+0A2h], 2
jmp loc_1FA8C
loc_1F9E6:
mov rdi, [rbp+var_8]
add rdi, 20h ; ' '
lea rsi, asc_2A0FD; "<-->"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_1FA00
jmp short loc_1FA1C
loc_1FA00:
mov rax, [rbp+var_18]
mov word ptr [rax+0A0h], 0
mov rax, [rbp+var_18]
mov word ptr [rax+0A2h], 2
jmp short loc_1FA8A
loc_1FA1C:
mov rdi, [rbp+var_8]
add rdi, 20h ; ' '
lea rsi, asc_2A102; "--"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_1FA36
jmp short loc_1FA52
loc_1FA36:
mov rax, [rbp+var_18]
mov word ptr [rax+0A0h], 0
mov rax, [rbp+var_18]
mov word ptr [rax+0A2h], 0
jmp short loc_1FA88
loc_1FA52:
mov rdi, [rbp+var_8]
add rdi, 20h ; ' '
lea rsi, asc_2A102+1; "-"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_1FA6C
jmp short loc_1FA86
loc_1FA6C:
mov rax, [rbp+var_18]
mov word ptr [rax+0A0h], 1
mov rax, [rbp+var_18]
mov word ptr [rax+0A2h], 0
loc_1FA86:
jmp short $+2
loc_1FA88:
jmp short $+2
loc_1FA8A:
jmp short $+2
loc_1FA8C:
jmp short $+2
loc_1FA8E:
jmp short $+2
loc_1FA90:
mov rdi, [rbp+var_8]
add rdi, 60h ; '`'
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_10]
call __Z19parseCommonPropertyRSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EEP5ShapeRK5Style; parseCommonProperty(std::vector<SEMANTICANALYZER::Property> &,Shape *,Style const&)
mov rax, [rbp+var_18]
add rsp, 30h
pop rbp
retn
loc_1FAAF:
mov rdi, [rbp+var_20]
call __Unwind_Resume
|
Line * parseRelation(long long a1, long long *a2)
{
Line *v3; // [rsp+0h] [rbp-30h]
v3 = (Line *)operator new(0xA8uLL);
Line::Line(v3);
std::string::operator=((char *)v3 + 96, a1);
std::string::operator=((char *)v3 + 128, a1 + 64);
if ( (std::operator==<char>(a1 + 32, "->") & 1) != 0 )
{
*((_WORD *)v3 + 80) = 1;
*((_WORD *)v3 + 81) = 1;
}
else if ( (std::operator==<char>(a1 + 32, "-->") & 1) != 0 )
{
*((_WORD *)v3 + 80) = 0;
*((_WORD *)v3 + 81) = 1;
}
else if ( (std::operator==<char>(a1 + 32, "<->") & 1) != 0 )
{
*((_WORD *)v3 + 80) = 1;
*((_WORD *)v3 + 81) = 2;
}
else if ( (std::operator==<char>(a1 + 32, "<-->") & 1) != 0 )
{
*((_WORD *)v3 + 80) = 0;
*((_WORD *)v3 + 81) = 2;
}
else if ( (std::operator==<char>(a1 + 32, "--") & 1) != 0 )
{
*((_WORD *)v3 + 80) = 0;
*((_WORD *)v3 + 81) = 0;
}
else if ( (std::operator==<char>(a1 + 32, "-") & 1) != 0 )
{
*((_WORD *)v3 + 80) = 1;
*((_WORD *)v3 + 81) = 0;
}
parseCommonProperty(a1 + 96, (long long)v3, a2);
return v3;
}
|
parseRelation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV EDI,0xa8
CALL 0x0011b490
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RBP + -0x30],RAX
LAB_0011f8e4:
CALL 0x0011b0c0
LAB_0011f8e9:
JMP 0x0011f8eb
LAB_0011f8eb:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x18],RAX
MOV RSI,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x60
CALL 0x0011a0c0
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x40
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x80
CALL 0x0011a0c0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x20
LEA RSI,[0x12a0ff]
CALL 0x0011ca90
TEST AL,0x1
JNZ 0x0011f936
JMP 0x0011f974
LAB_0011f936:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa0],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa2],0x1
JMP 0x0011fa90
LAB_0011f974:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x20
LEA RSI,[0x12a0fe]
CALL 0x0011ca90
TEST AL,0x1
JNZ 0x0011f98e
JMP 0x0011f9ad
LAB_0011f98e:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa0],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa2],0x1
JMP 0x0011fa8e
LAB_0011f9ad:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x20
LEA RSI,[0x12a0f9]
CALL 0x0011ca90
TEST AL,0x1
JNZ 0x0011f9c7
JMP 0x0011f9e6
LAB_0011f9c7:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa0],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa2],0x2
JMP 0x0011fa8c
LAB_0011f9e6:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x20
LEA RSI,[0x12a0fd]
CALL 0x0011ca90
TEST AL,0x1
JNZ 0x0011fa00
JMP 0x0011fa1c
LAB_0011fa00:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa0],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa2],0x2
JMP 0x0011fa8a
LAB_0011fa1c:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x20
LEA RSI,[0x12a102]
CALL 0x0011ca90
TEST AL,0x1
JNZ 0x0011fa36
JMP 0x0011fa52
LAB_0011fa36:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa0],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa2],0x0
JMP 0x0011fa88
LAB_0011fa52:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x20
LEA RSI,[0x12a103]
CALL 0x0011ca90
TEST AL,0x1
JNZ 0x0011fa6c
JMP 0x0011fa86
LAB_0011fa6c:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa0],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0xa2],0x0
LAB_0011fa86:
JMP 0x0011fa88
LAB_0011fa88:
JMP 0x0011fa8a
LAB_0011fa8a:
JMP 0x0011fa8c
LAB_0011fa8c:
JMP 0x0011fa8e
LAB_0011fa8e:
JMP 0x0011fa90
LAB_0011fa90:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x60
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
CALL 0x0011ba30
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x30
POP RBP
RET
|
/* parseRelation(SEMANTICANALYZER::Relation&, Style const&) */
Line * parseRelation(Relation *param_1,Style *param_2)
{
bool bVar1;
Line *this;
this = (Line *)operator_new(0xa8);
/* try { // try from 0011f8e4 to 0011f8e8 has its CatchHandler @ 0011f955 */
Line::Line(this);
std::__cxx11::string::operator=((string *)(this + 0x60),(string *)param_1);
std::__cxx11::string::operator=((string *)(this + 0x80),(string *)(param_1 + 0x40));
bVar1 = std::operator==((string *)(param_1 + 0x20),"->");
if (bVar1) {
*(int2 *)(this + 0xa0) = 1;
*(int2 *)(this + 0xa2) = 1;
}
else {
bVar1 = std::operator==((string *)(param_1 + 0x20),"-->");
if (bVar1) {
*(int2 *)(this + 0xa0) = 0;
*(int2 *)(this + 0xa2) = 1;
}
else {
bVar1 = std::operator==((string *)(param_1 + 0x20),"<->");
if (bVar1) {
*(int2 *)(this + 0xa0) = 1;
*(int2 *)(this + 0xa2) = 2;
}
else {
bVar1 = std::operator==((string *)(param_1 + 0x20),"<-->");
if (bVar1) {
*(int2 *)(this + 0xa0) = 0;
*(int2 *)(this + 0xa2) = 2;
}
else {
bVar1 = std::operator==((string *)(param_1 + 0x20),"--");
if (bVar1) {
*(int2 *)(this + 0xa0) = 0;
*(int2 *)(this + 0xa2) = 0;
}
else {
bVar1 = std::operator==((string *)(param_1 + 0x20),"-");
if (bVar1) {
*(int2 *)(this + 0xa0) = 1;
*(int2 *)(this + 0xa2) = 0;
}
}
}
}
}
}
parseCommonProperty((vector *)(param_1 + 0x60),(Shape *)this,param_2);
return this;
}
|
|
62,381 |
parseRelation(SEMANTICANALYZER::Relation&, Style const&)
|
11AgReS1SoR11[P]Graph/Common/Translator/src/Translator.cpp
|
Shape* parseRelation(SEMANTICANALYZER::Relation& relation, Style const& graph_style){
Line* _line = new Line;
_line->idFrom = relation.id1;
_line->idTo = relation.id2;
//fill for arrow
if (relation.arrow == "->") {
_line->type = line_type_e::Solid;
_line->orientation = line_orientation_e::Directed;
}
else if (relation.arrow == "-->") {
_line->type = line_type_e::Dotted;
_line->orientation = line_orientation_e::Directed;
}
else if (relation.arrow == "<->") {
_line->type = line_type_e::Solid;
_line->orientation = line_orientation_e::DoubleDirected;
}
else if (relation.arrow == "<-->") {
_line->type = line_type_e::Dotted;
_line->orientation = line_orientation_e::DoubleDirected;
}
else if (relation.arrow == "--") {
_line->type = line_type_e::Dotted;
_line->orientation = line_orientation_e::Undirected;
}
else if (relation.arrow == "-") {
_line->type = line_type_e::Solid;
_line->orientation = line_orientation_e::Undirected;
}
parseCommonProperty(relation.properties, _line, graph_style);
return _line;
}
|
O3
|
cpp
|
parseRelation(SEMANTICANALYZER::Relation&, Style const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movl $0xa8, %edi
callq 0x6390
movq %rax, %rbx
movq %rax, %rdi
callq 0x62e0
leaq 0x60(%rbx), %rdi
movq %r15, %rsi
callq 0x61d0
leaq 0x40(%r15), %rsi
movq %rbx, %rdi
subq $-0x80, %rdi
callq 0x61d0
leaq 0x20(%r15), %r12
leaq 0x2d03(%rip), %rsi # 0xb16e
movq %r12, %rdi
callq 0x60f0
testl %eax, %eax
je 0x84e0
leaq 0x2cef(%rip), %rsi # 0xb16d
movq %r12, %rdi
callq 0x60f0
testl %eax, %eax
je 0x84e9
leaq 0x2cd7(%rip), %rsi # 0xb168
movq %r12, %rdi
callq 0x60f0
testl %eax, %eax
je 0x84f3
leaq 0x2cc8(%rip), %rsi # 0xb16c
movq %r12, %rdi
callq 0x60f0
testl %eax, %eax
je 0x84fd
leaq 0x2cba(%rip), %rsi # 0xb171
movq %r12, %rdi
callq 0x60f0
testl %eax, %eax
je 0x8507
leaq 0x2ca8(%rip), %rsi # 0xb172
movq %r12, %rdi
callq 0x60f0
testl %eax, %eax
jne 0x8512
movss 0x2b92(%rip), %xmm0 # 0xb070
jmp 0x850a
movaps 0x2b29(%rip), %xmm0 # 0xb010
jmp 0x850a
movss 0x2b2f(%rip), %xmm0 # 0xb020
jmp 0x850a
movss 0x2b35(%rip), %xmm0 # 0xb030
jmp 0x850a
movss 0x2b3b(%rip), %xmm0 # 0xb040
jmp 0x850a
xorps %xmm0, %xmm0
movss %xmm0, 0xa0(%rbx)
addq $0x60, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x64a0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x63b0
movq %r14, %rdi
callq 0x66c0
|
_Z13parseRelationRN16SEMANTICANALYZER8RelationERK5Style:
push r15
push r14
push r12
push rbx
push rax
mov r14, rsi
mov r15, rdi
mov edi, 0A8h; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax; this
call __ZN4LineC1Ev; Line::Line(void)
lea rdi, [rbx+60h]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rsi, [r15+40h]
mov rdi, rbx
sub rdi, 0FFFFFFFFFFFFFF80h
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea r12, [r15+20h]
lea rsi, asc_B16C+2; "->"
mov rdi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_84E0
lea rsi, asc_B16C+1; "-->"
mov rdi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_84E9
lea rsi, asc_B168; "<->"
mov rdi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_84F3
lea rsi, asc_B16C; "<-->"
mov rdi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_84FD
lea rsi, asc_B171; "--"
mov rdi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_8507
lea rsi, asc_B171+1; "-"
mov rdi, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jnz short loc_8512
movss xmm0, cs:dword_B070
jmp short loc_850A
loc_84E0:
movaps xmm0, cs:xmmword_B010
jmp short loc_850A
loc_84E9:
movss xmm0, cs:dword_B020
jmp short loc_850A
loc_84F3:
movss xmm0, cs:dword_B030
jmp short loc_850A
loc_84FD:
movss xmm0, cs:dword_B040
jmp short loc_850A
loc_8507:
xorps xmm0, xmm0
loc_850A:
movss dword ptr [rbx+0A0h], xmm0
loc_8512:
add r15, 60h ; '`'
mov rdi, r15
mov rsi, rbx
mov rdx, r14
call __Z19parseCommonPropertyRSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EEP5ShapeRK5Style; parseCommonProperty(std::vector<SEMANTICANALYZER::Property> &,Shape *,Style const&)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
mov esi, 0A8h; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
|
Line * parseRelation(long long a1, long long *a2, double a3)
{
Line *v3; // rbx
v3 = (Line *)operator new(0xA8uLL);
Line::Line(v3);
std::string::_M_assign((char *)v3 + 96, a1);
std::string::_M_assign((char *)v3 + 128, a1 + 64);
if ( !(unsigned int)std::string::compare(a1 + 32, "->") )
{
*(_QWORD *)&a3 = 65537LL;
goto LABEL_13;
}
if ( !(unsigned int)std::string::compare(a1 + 32, "-->") )
{
*(_QWORD *)&a3 = 0x10000LL;
goto LABEL_13;
}
if ( !(unsigned int)std::string::compare(a1 + 32, "<->") )
{
*(_QWORD *)&a3 = 131073LL;
goto LABEL_13;
}
if ( !(unsigned int)std::string::compare(a1 + 32, "<-->") )
{
*(_QWORD *)&a3 = 0x20000LL;
goto LABEL_13;
}
if ( !(unsigned int)std::string::compare(a1 + 32, "--") )
{
a3 = 0.0;
goto LABEL_13;
}
if ( !(unsigned int)std::string::compare(a1 + 32, "-") )
{
*(_QWORD *)&a3 = 1LL;
LABEL_13:
*((_DWORD *)v3 + 40) = LODWORD(a3);
}
parseCommonProperty((long long *)(a1 + 96), (long long)v3, a2, a3);
return v3;
}
|
parseRelation:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV R15,RDI
MOV EDI,0xa8
CALL 0x00106390
MOV RBX,RAX
LAB_0010843c:
MOV RDI,RAX
CALL 0x001062e0
LAB_00108444:
LEA RDI,[RBX + 0x60]
MOV RSI,R15
CALL 0x001061d0
LEA RSI,[R15 + 0x40]
MOV RDI,RBX
SUB RDI,-0x80
CALL 0x001061d0
LEA R12,[R15 + 0x20]
LEA RSI,[0x10b16e]
MOV RDI,R12
CALL 0x001060f0
TEST EAX,EAX
JZ 0x001084e0
LEA RSI,[0x10b16d]
MOV RDI,R12
CALL 0x001060f0
TEST EAX,EAX
JZ 0x001084e9
LEA RSI,[0x10b168]
MOV RDI,R12
CALL 0x001060f0
TEST EAX,EAX
JZ 0x001084f3
LEA RSI,[0x10b16c]
MOV RDI,R12
CALL 0x001060f0
TEST EAX,EAX
JZ 0x001084fd
LEA RSI,[0x10b171]
MOV RDI,R12
CALL 0x001060f0
TEST EAX,EAX
JZ 0x00108507
LEA RSI,[0x10b172]
MOV RDI,R12
CALL 0x001060f0
TEST EAX,EAX
JNZ 0x00108512
MOVSS XMM0,dword ptr [0x0010b070]
JMP 0x0010850a
LAB_001084e0:
MOVAPS XMM0,xmmword ptr [0x0010b010]
JMP 0x0010850a
LAB_001084e9:
MOVSS XMM0,dword ptr [0x0010b020]
JMP 0x0010850a
LAB_001084f3:
MOVSS XMM0,dword ptr [0x0010b030]
JMP 0x0010850a
LAB_001084fd:
MOVSS XMM0,dword ptr [0x0010b040]
JMP 0x0010850a
LAB_00108507:
XORPS XMM0,XMM0
LAB_0010850a:
MOVSS dword ptr [RBX + 0xa0],XMM0
LAB_00108512:
ADD R15,0x60
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
CALL 0x001064a0
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* parseRelation(SEMANTICANALYZER::Relation&, Style const&) */
Line * parseRelation(Relation *param_1,Style *param_2)
{
Relation *pRVar1;
int iVar2;
Line *this;
int4 uVar3;
this = (Line *)operator_new(0xa8);
/* try { // try from 0010843c to 00108443 has its CatchHandler @ 00108533 */
Line::Line(this);
std::__cxx11::string::_M_assign((string *)(this + 0x60));
std::__cxx11::string::_M_assign((string *)(this + 0x80));
pRVar1 = param_1 + 0x20;
iVar2 = std::__cxx11::string::compare((char *)pRVar1);
uVar3 = _DAT_0010b010;
if ((((iVar2 != 0) &&
(iVar2 = std::__cxx11::string::compare((char *)pRVar1), uVar3 = DAT_0010b020, iVar2 != 0)) &&
(iVar2 = std::__cxx11::string::compare((char *)pRVar1), uVar3 = DAT_0010b030, iVar2 != 0)) &&
(iVar2 = std::__cxx11::string::compare((char *)pRVar1), uVar3 = DAT_0010b040, iVar2 != 0)) {
iVar2 = std::__cxx11::string::compare((char *)pRVar1);
if (iVar2 == 0) {
uVar3 = 0;
}
else {
iVar2 = std::__cxx11::string::compare((char *)pRVar1);
uVar3 = DAT_0010b070;
if (iVar2 != 0) goto LAB_00108512;
}
}
*(int4 *)(this + 0xa0) = uVar3;
LAB_00108512:
parseCommonProperty((vector *)(param_1 + 0x60),(Shape *)this,param_2);
return this;
}
|
|
62,382 |
my_cset_init_8bit
|
eloqsql/strings/ctype-simple.c
|
static my_bool
my_cset_init_8bit(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
cs->state|= my_8bit_charset_flags_from_data(cs);
cs->caseup_multiply= 1;
cs->casedn_multiply= 1;
cs->pad_char= ' ';
if (!cs->to_lower || !cs->to_upper || !cs->m_ctype || !cs->tab_to_uni)
return TRUE;
return create_fromuni(cs, loader);
}
|
O3
|
c
|
my_cset_init_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1808, %rsp # imm = 0x1808
movq %rsi, -0x30(%rbp)
movq %rdi, %rbx
movq 0x68(%rdi), %r15
xorl %eax, %eax
testq %r15, %r15
je 0xb6709
xorl %ecx, %ecx
cmpw $0x80, (%r15,%rcx,2)
jae 0xb66ea
incq %rcx
cmpq $0x100, %rcx # imm = 0x100
jne 0xb66d0
movl $0x1000, %eax # imm = 0x1000
xorl %ecx, %ecx
movzwl (%r15,%rcx,2), %edx
cmpq %rdx, %rcx
jne 0xb6704
incq %rcx
cmpq $0x80, %rcx
jne 0xb66ec
jmp 0xb6709
orl $0x2000, %eax # imm = 0x2000
orl %eax, 0xc(%rbx)
movw $0x101, 0x94(%rbx) # imm = 0x101
movb $0x20, 0xb0(%rbx)
movb $0x1, %al
cmpq $0x0, 0x48(%rbx)
je 0xb68f9
cmpq $0x0, 0x50(%rbx)
je 0xb68f9
testq %r15, %r15
je 0xb68f9
cmpq $0x0, 0x40(%rbx)
je 0xb68f9
leaq -0x1830(%rbp), %rdi
xorl %r12d, %r12d
movl $0x1800, %edx # imm = 0x1800
xorl %esi, %esi
callq 0x292c0
movzwl (%r15,%r12,2), %eax
testq %rax, %rax
sete %cl
testq %r12, %r12
setne %dl
testb %cl, %dl
jne 0xb67b6
movl %eax, %ecx
shrl $0x8, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq -0x1830(,%rcx,8), %rcx
addq %rbp, %rcx
movl (%rcx), %edx
testl %edx, %edx
je 0xb67aa
movl 0x8(%rcx), %esi
movl %eax, %edi
cmpw %si, %ax
jb 0xb6799
movl %esi, %edi
movw %di, 0x8(%rcx)
movzwl 0xa(%rcx), %esi
cmpw %si, %ax
ja 0xb67ae
movl %esi, %eax
jmp 0xb67ae
movw %ax, 0x8(%rcx)
movw %ax, 0xa(%rcx)
incl %edx
movl %edx, (%rcx)
incq %r12
cmpq $0x100, %r12 # imm = 0x100
jne 0xb675e
leaq 0x1b0(%rip), %rcx # 0xb6979
leaq -0x1830(%rbp), %rdi
movl $0x100, %esi # imm = 0x100
movl $0x18, %edx
callq 0x295d0
xorl %r13d, %r13d
leaq (,%r13,2), %rax
addq %r13, %rax
cmpl $0x0, -0x1830(%rbp,%rax,8)
je 0xb6890
leaq -0x1830(,%rax,8), %r14
addq %rbp, %r14
movzwl 0xa(%r14), %r12d
movzwl 0x8(%r14), %eax
subq %rax, %r12
incq %r12
movq %r12, %rdi
movq -0x30(%rbp), %rax
callq *0x80(%rax)
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0xb68e4
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x292c0
movl $0x1, %eax
movq 0x68(%rbx), %rcx
movzwl (%rcx,%rax,2), %ecx
movzwl 0x8(%r14), %edx
cmpw %dx, %cx
jb 0xb686f
leal -0x1(%rcx), %esi
cmpw 0xa(%r14), %si
jae 0xb686f
subq %rdx, %rcx
cmpb $0x0, (%r15,%rcx)
jg 0xb686f
movb %al, (%r15,%rcx)
incq %rax
cmpq $0x100, %rax # imm = 0x100
jne 0xb6845
incq %r13
cmpq $0x100, %r13 # imm = 0x100
jne 0xb67e2
movl $0x100, %r13d # imm = 0x100
movl %r13d, %r14d
movq %r14, %rdi
shlq $0x4, %rdi
addq $0x10, %rdi
movq -0x30(%rbp), %rax
callq *0x80(%rax)
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0xb68e4
testl %r13d, %r13d
je 0xb68e8
movq %r14, %rax
shlq $0x4, %rax
leaq -0x1828(%rbp), %rcx
xorl %edx, %edx
movq 0x70(%rbx), %rsi
movups (%rcx), %xmm0
movups %xmm0, (%rsi,%rdx)
addq $0x10, %rdx
addq $0x18, %rcx
cmpq %rdx, %rax
jne 0xb68c6
movq 0x70(%rbx), %rax
jmp 0xb68eb
movb $0x1, %al
jmp 0xb68f9
xorl %r14d, %r14d
shlq $0x4, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%r14)
xorl %eax, %eax
addq $0x1808, %rsp # imm = 0x1808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_cset_init_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1808h
mov [rbp+var_30], rsi
mov rbx, rdi
mov r15, [rdi+68h]
xor eax, eax
test r15, r15
jz short loc_B6709
xor ecx, ecx
loc_B66D0:
cmp word ptr [r15+rcx*2], 80h
jnb short loc_B66EA
inc rcx
cmp rcx, 100h
jnz short loc_B66D0
mov eax, 1000h
loc_B66EA:
xor ecx, ecx
loc_B66EC:
movzx edx, word ptr [r15+rcx*2]
cmp rcx, rdx
jnz short loc_B6704
inc rcx
cmp rcx, 80h
jnz short loc_B66EC
jmp short loc_B6709
loc_B6704:
or eax, 2000h
loc_B6709:
or [rbx+0Ch], eax
mov word ptr [rbx+94h], 101h
mov byte ptr [rbx+0B0h], 20h ; ' '
mov al, 1
cmp qword ptr [rbx+48h], 0
jz loc_B68F9
cmp qword ptr [rbx+50h], 0
jz loc_B68F9
test r15, r15
jz loc_B68F9
cmp qword ptr [rbx+40h], 0
jz loc_B68F9
lea rdi, [rbp+var_1830]
xor r12d, r12d
mov edx, 1800h
xor esi, esi
call _memset
loc_B675E:
movzx eax, word ptr [r15+r12*2]
test rax, rax
setz cl
test r12, r12
setnz dl
test dl, cl
jnz short loc_B67B6
mov ecx, eax
shr ecx, 8
lea rcx, [rcx+rcx*2]
lea rcx, ds:0FFFFFFFFFFFFE7D0h[rcx*8]
add rcx, rbp
mov edx, [rcx]
test edx, edx
jz short loc_B67AA
mov esi, [rcx+8]
mov edi, eax
cmp ax, si
jb short loc_B6799
mov edi, esi
loc_B6799:
mov [rcx+8], di
movzx esi, word ptr [rcx+0Ah]
cmp ax, si
ja short loc_B67AE
mov eax, esi
jmp short loc_B67AE
loc_B67AA:
mov [rcx+8], ax
loc_B67AE:
mov [rcx+0Ah], ax
inc edx
mov [rcx], edx
loc_B67B6:
inc r12
cmp r12, 100h
jnz short loc_B675E
lea rcx, pcmp
lea rdi, [rbp+var_1830]
mov esi, 100h
mov edx, 18h
call _qsort
xor r13d, r13d
loc_B67E2:
lea rax, ds:0[r13*2]
add rax, r13
cmp [rbp+rax*8+var_1830], 0
jz loc_B6890
lea r14, ds:0FFFFFFFFFFFFE7D0h[rax*8]
add r14, rbp
movzx r12d, word ptr [r14+0Ah]
movzx eax, word ptr [r14+8]
sub r12, rax
inc r12
mov rdi, r12
mov rax, [rbp+var_30]
call qword ptr [rax+80h]
mov [r14+10h], rax
test rax, rax
jz loc_B68E4
mov r15, rax
mov rdi, rax
xor esi, esi
mov rdx, r12
call _memset
mov eax, 1
loc_B6845:
mov rcx, [rbx+68h]
movzx ecx, word ptr [rcx+rax*2]
movzx edx, word ptr [r14+8]
cmp cx, dx
jb short loc_B686F
lea esi, [rcx-1]
cmp si, [r14+0Ah]
jnb short loc_B686F
sub rcx, rdx
cmp byte ptr [r15+rcx], 0
jg short loc_B686F
mov [r15+rcx], al
loc_B686F:
inc rax
cmp rax, 100h
jnz short loc_B6845
inc r13
cmp r13, 100h
jnz loc_B67E2
mov r13d, 100h
loc_B6890:
mov r14d, r13d
mov rdi, r14
shl rdi, 4
add rdi, 10h
mov rax, [rbp+var_30]
call qword ptr [rax+80h]
mov [rbx+70h], rax
test rax, rax
jz short loc_B68E4
test r13d, r13d
jz short loc_B68E8
mov rax, r14
shl rax, 4
lea rcx, [rbp+var_1828]
xor edx, edx
loc_B68C6:
mov rsi, [rbx+70h]
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi+rdx], xmm0
add rdx, 10h
add rcx, 18h
cmp rax, rdx
jnz short loc_B68C6
mov rax, [rbx+70h]
jmp short loc_B68EB
loc_B68E4:
mov al, 1
jmp short loc_B68F9
loc_B68E8:
xor r14d, r14d
loc_B68EB:
shl r14, 4
xorps xmm0, xmm0
movups xmmword ptr [rax+r14], xmm0
xor eax, eax
loc_B68F9:
add rsp, 1808h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char my_cset_init_8bit(long long a1, long long a2)
{
long long v3; // r15
int v4; // eax
long long v5; // rcx
long long v6; // rcx
char result; // al
long long v8; // r12
long long v9; // rax
long long *v10; // rcx
int v11; // edx
__int16 v12; // di
long long v13; // r13
long long *v14; // r14
unsigned long long v15; // r12
long long v16; // rax
long long v17; // r15
long long i; // rax
long long v19; // rcx
long long v20; // rdx
long long v21; // rcx
long long v22; // r14
long long v23; // rax
char *v24; // rcx
long long v25; // rdx
_DWORD v26[2]; // [rsp+0h] [rbp-1830h] BYREF
char v27; // [rsp+8h] [rbp-1828h] BYREF
long long v28; // [rsp+1800h] [rbp-30h]
long long savedregs; // [rsp+1830h] [rbp+0h] BYREF
_UNKNOWN *retaddr; // [rsp+1838h] [rbp+8h]
v28 = a2;
v3 = *(_QWORD *)(a1 + 104);
v4 = 0;
if ( v3 )
{
v5 = 0LL;
while ( *(_WORD *)(v3 + 2 * v5) < 0x80u )
{
if ( ++v5 == 256 )
{
v4 = 4096;
break;
}
}
v6 = 0LL;
while ( v6 == *(unsigned __int16 *)(v3 + 2 * v6) )
{
if ( ++v6 == 128 )
goto LABEL_11;
}
v4 |= 0x2000u;
}
LABEL_11:
*(_DWORD *)(a1 + 12) |= v4;
*(_WORD *)(a1 + 148) = 257;
*(_BYTE *)(a1 + 176) = 32;
result = 1;
if ( *(_QWORD *)(a1 + 72) && *(_QWORD *)(a1 + 80) && v3 && *(_QWORD *)(a1 + 64) )
{
v8 = 0LL;
memset(v26, 0LL, 6144LL);
do
{
v9 = *(unsigned __int16 *)(v3 + 2 * v8);
if ( v9 != 0 || v8 == 0 )
{
v10 = &savedregs + 3 * ((unsigned int)v9 >> 8) - 774;
v11 = *(_DWORD *)v10;
if ( *(_DWORD *)v10 )
{
v12 = *(_WORD *)(v3 + 2 * v8);
if ( (unsigned __int16)v9 >= (unsigned __int16)*((_DWORD *)v10 + 2) )
v12 = *((_DWORD *)v10 + 2);
*((_WORD *)v10 + 4) = v12;
if ( (unsigned __int16)v9 <= *((_WORD *)v10 + 5) )
LOWORD(v9) = *((_WORD *)v10 + 5);
}
else
{
*((_WORD *)v10 + 4) = v9;
}
*((_WORD *)v10 + 5) = v9;
*(_DWORD *)v10 = v11 + 1;
}
++v8;
}
while ( v8 != 256 );
qsort(v26, 256LL, 24LL, pcmp);
v13 = 0LL;
while ( v26[6 * v13] )
{
v14 = &savedregs + 3 * v13 - 774;
v15 = *((unsigned __int16 *)&retaddr + 12 * v13 - 3095)
- (unsigned long long)*((unsigned __int16 *)&retaddr + 12 * v13 - 3096)
+ 1;
v16 = (*(long long ( **)(unsigned long long))(v28 + 128))(v15);
v14[2] = v16;
if ( !v16 )
return 1;
v17 = v16;
memset(v16, 0LL, v15);
for ( i = 1LL; i != 256; ++i )
{
v19 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 2 * i);
v20 = *((unsigned __int16 *)v14 + 4);
if ( (unsigned __int16)v19 >= (unsigned __int16)v20 && (unsigned __int16)(v19 - 1) < *((_WORD *)v14 + 5) )
{
v21 = v19 - v20;
if ( *(char *)(v17 + v21) <= 0 )
*(_BYTE *)(v17 + v21) = i;
}
}
if ( ++v13 == 256 )
{
LODWORD(v13) = 256;
break;
}
}
v22 = (unsigned int)v13;
v23 = (*(long long ( **)(long long))(v28 + 128))(16LL * (unsigned int)v13 + 16);
*(_QWORD *)(a1 + 112) = v23;
if ( !v23 )
return 1;
if ( (_DWORD)v13 )
{
v24 = &v27;
v25 = 0LL;
do
{
*(_OWORD *)(*(_QWORD *)(a1 + 112) + v25) = *(_OWORD *)v24;
v25 += 16LL;
v24 += 24;
}
while ( 16LL * (unsigned int)v13 != v25 );
v23 = *(_QWORD *)(a1 + 112);
}
else
{
v22 = 0LL;
}
*(_OWORD *)(v23 + 16 * v22) = 0LL;
return 0;
}
return result;
}
|
my_cset_init_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1808
MOV qword ptr [RBP + -0x30],RSI
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x68]
XOR EAX,EAX
TEST R15,R15
JZ 0x001b6709
XOR ECX,ECX
LAB_001b66d0:
CMP word ptr [R15 + RCX*0x2],0x80
JNC 0x001b66ea
INC RCX
CMP RCX,0x100
JNZ 0x001b66d0
MOV EAX,0x1000
LAB_001b66ea:
XOR ECX,ECX
LAB_001b66ec:
MOVZX EDX,word ptr [R15 + RCX*0x2]
CMP RCX,RDX
JNZ 0x001b6704
INC RCX
CMP RCX,0x80
JNZ 0x001b66ec
JMP 0x001b6709
LAB_001b6704:
OR EAX,0x2000
LAB_001b6709:
OR dword ptr [RBX + 0xc],EAX
MOV word ptr [RBX + 0x94],0x101
MOV byte ptr [RBX + 0xb0],0x20
MOV AL,0x1
CMP qword ptr [RBX + 0x48],0x0
JZ 0x001b68f9
CMP qword ptr [RBX + 0x50],0x0
JZ 0x001b68f9
TEST R15,R15
JZ 0x001b68f9
CMP qword ptr [RBX + 0x40],0x0
JZ 0x001b68f9
LEA RDI,[RBP + -0x1830]
XOR R12D,R12D
MOV EDX,0x1800
XOR ESI,ESI
CALL 0x001292c0
LAB_001b675e:
MOVZX EAX,word ptr [R15 + R12*0x2]
TEST RAX,RAX
SETZ CL
TEST R12,R12
SETNZ DL
TEST DL,CL
JNZ 0x001b67b6
MOV ECX,EAX
SHR ECX,0x8
LEA RCX,[RCX + RCX*0x2]
LEA RCX,[-0x1830 + RCX*0x8]
ADD RCX,RBP
MOV EDX,dword ptr [RCX]
TEST EDX,EDX
JZ 0x001b67aa
MOV ESI,dword ptr [RCX + 0x8]
MOV EDI,EAX
CMP AX,SI
JC 0x001b6799
MOV EDI,ESI
LAB_001b6799:
MOV word ptr [RCX + 0x8],DI
MOVZX ESI,word ptr [RCX + 0xa]
CMP AX,SI
JA 0x001b67ae
MOV EAX,ESI
JMP 0x001b67ae
LAB_001b67aa:
MOV word ptr [RCX + 0x8],AX
LAB_001b67ae:
MOV word ptr [RCX + 0xa],AX
INC EDX
MOV dword ptr [RCX],EDX
LAB_001b67b6:
INC R12
CMP R12,0x100
JNZ 0x001b675e
LEA RCX,[0x1b6979]
LEA RDI,[RBP + -0x1830]
MOV ESI,0x100
MOV EDX,0x18
CALL 0x001295d0
XOR R13D,R13D
LAB_001b67e2:
LEA RAX,[R13*0x2]
ADD RAX,R13
CMP dword ptr [RBP + RAX*0x8 + -0x1830],0x0
JZ 0x001b6890
LEA R14,[-0x1830 + RAX*0x8]
ADD R14,RBP
MOVZX R12D,word ptr [R14 + 0xa]
MOVZX EAX,word ptr [R14 + 0x8]
SUB R12,RAX
INC R12
MOV RDI,R12
MOV RAX,qword ptr [RBP + -0x30]
CALL qword ptr [RAX + 0x80]
MOV qword ptr [R14 + 0x10],RAX
TEST RAX,RAX
JZ 0x001b68e4
MOV R15,RAX
MOV RDI,RAX
XOR ESI,ESI
MOV RDX,R12
CALL 0x001292c0
MOV EAX,0x1
LAB_001b6845:
MOV RCX,qword ptr [RBX + 0x68]
MOVZX ECX,word ptr [RCX + RAX*0x2]
MOVZX EDX,word ptr [R14 + 0x8]
CMP CX,DX
JC 0x001b686f
LEA ESI,[RCX + -0x1]
CMP SI,word ptr [R14 + 0xa]
JNC 0x001b686f
SUB RCX,RDX
CMP byte ptr [R15 + RCX*0x1],0x0
JG 0x001b686f
MOV byte ptr [R15 + RCX*0x1],AL
LAB_001b686f:
INC RAX
CMP RAX,0x100
JNZ 0x001b6845
INC R13
CMP R13,0x100
JNZ 0x001b67e2
MOV R13D,0x100
LAB_001b6890:
MOV R14D,R13D
MOV RDI,R14
SHL RDI,0x4
ADD RDI,0x10
MOV RAX,qword ptr [RBP + -0x30]
CALL qword ptr [RAX + 0x80]
MOV qword ptr [RBX + 0x70],RAX
TEST RAX,RAX
JZ 0x001b68e4
TEST R13D,R13D
JZ 0x001b68e8
MOV RAX,R14
SHL RAX,0x4
LEA RCX,[RBP + -0x1828]
XOR EDX,EDX
LAB_001b68c6:
MOV RSI,qword ptr [RBX + 0x70]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI + RDX*0x1],XMM0
ADD RDX,0x10
ADD RCX,0x18
CMP RAX,RDX
JNZ 0x001b68c6
MOV RAX,qword ptr [RBX + 0x70]
JMP 0x001b68eb
LAB_001b68e4:
MOV AL,0x1
JMP 0x001b68f9
LAB_001b68e8:
XOR R14D,R14D
LAB_001b68eb:
SHL R14,0x4
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + R14*0x1],XMM0
XOR EAX,EAX
LAB_001b68f9:
ADD RSP,0x1808
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 my_cset_init_8bit(long param_1,long param_2)
{
int8 *puVar1;
int iVar2;
ushort uVar3;
uint uVar4;
int8 uVar5;
void *__s;
long lVar6;
long lVar7;
ulong uVar8;
ushort *puVar9;
ushort uVar10;
size_t __n;
ulong uVar11;
int local_1838 [2];
ushort local_1830 [4];
int8 auStack_1828 [766];
long local_38;
lVar6 = *(long *)(param_1 + 0x68);
uVar4 = 0;
if (lVar6 != 0) {
lVar7 = 0;
do {
if (0x7f < *(ushort *)(lVar6 + lVar7 * 2)) goto LAB_001b66ea;
lVar7 = lVar7 + 1;
} while (lVar7 != 0x100);
uVar4 = 0x1000;
LAB_001b66ea:
uVar8 = 0;
do {
if (uVar8 != *(ushort *)(lVar6 + uVar8 * 2)) {
uVar4 = uVar4 | 0x2000;
break;
}
uVar8 = uVar8 + 1;
} while (uVar8 != 0x80);
}
*(uint *)(param_1 + 0xc) = *(uint *)(param_1 + 0xc) | uVar4;
*(int2 *)(param_1 + 0x94) = 0x101;
*(int1 *)(param_1 + 0xb0) = 0x20;
uVar5 = 1;
if ((((*(long *)(param_1 + 0x48) != 0) && (*(long *)(param_1 + 0x50) != 0)) && (lVar6 != 0)) &&
(*(long *)(param_1 + 0x40) != 0)) {
lVar7 = 0;
local_38 = param_2;
memset(local_1838,0,0x1800);
do {
uVar3 = *(ushort *)(lVar6 + lVar7 * 2);
if (lVar7 == 0 || uVar3 != 0) {
uVar8 = (ulong)(uVar3 >> 8);
iVar2 = local_1838[uVar8 * 6];
if (iVar2 == 0) {
local_1830[uVar8 * 0xc] = uVar3;
}
else {
uVar10 = uVar3;
if ((ushort)*(int4 *)(local_1830 + uVar8 * 0xc) <= uVar3) {
uVar10 = (ushort)*(int4 *)(local_1830 + uVar8 * 0xc);
}
local_1830[uVar8 * 0xc] = uVar10;
if (uVar3 <= local_1830[uVar8 * 0xc + 1]) {
uVar3 = local_1830[uVar8 * 0xc + 1];
}
}
local_1830[uVar8 * 0xc + 1] = uVar3;
local_1838[uVar8 * 6] = iVar2 + 1;
}
lVar7 = lVar7 + 1;
} while (lVar7 != 0x100);
qsort(local_1838,0x100,0x18,pcmp);
uVar8 = 0;
do {
if (local_1838[uVar8 * 6] == 0) goto LAB_001b6890;
__n = ((ulong)local_1830[uVar8 * 0xc + 1] - (ulong)local_1830[uVar8 * 0xc]) + 1;
__s = (void *)(**(code **)(local_38 + 0x80))(__n);
auStack_1828[uVar8 * 3] = __s;
if (__s == (void *)0x0) goto LAB_001b68e4;
memset(__s,0,__n);
lVar6 = 1;
do {
uVar3 = *(ushort *)(*(long *)(param_1 + 0x68) + lVar6 * 2);
if (((local_1830[uVar8 * 0xc] <= uVar3) &&
((ushort)(uVar3 - 1) < local_1830[uVar8 * 0xc + 1])) &&
(lVar7 = (ulong)uVar3 - (ulong)local_1830[uVar8 * 0xc],
*(char *)((long)__s + lVar7) < '\x01')) {
*(char *)((long)__s + lVar7) = (char)lVar6;
}
lVar6 = lVar6 + 1;
} while (lVar6 != 0x100);
uVar8 = uVar8 + 1;
} while (uVar8 != 0x100);
uVar8 = 0x100;
LAB_001b6890:
uVar11 = uVar8 & 0xffffffff;
lVar6 = (**(code **)(local_38 + 0x80))(uVar11 * 0x10 + 0x10);
*(long *)(param_1 + 0x70) = lVar6;
if (lVar6 == 0) {
LAB_001b68e4:
uVar5 = 1;
}
else {
if ((int)uVar8 == 0) {
uVar11 = 0;
}
else {
puVar9 = local_1830;
lVar6 = 0;
do {
uVar5 = *(int8 *)(puVar9 + 4);
puVar1 = (int8 *)(*(long *)(param_1 + 0x70) + lVar6);
*puVar1 = *(int8 *)puVar9;
puVar1[1] = uVar5;
lVar6 = lVar6 + 0x10;
puVar9 = puVar9 + 0xc;
} while (uVar11 << 4 != lVar6);
lVar6 = *(long *)(param_1 + 0x70);
}
puVar1 = (int8 *)(lVar6 + uVar11 * 0x10);
*puVar1 = 0;
puVar1[1] = 0;
uVar5 = 0;
}
}
return uVar5;
}
|
|
62,383 |
ma_stmt_execute_generate_request
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
unsigned char* ma_stmt_execute_generate_request(MYSQL_STMT *stmt, size_t *request_len, my_bool internal)
{
unsigned char *buf;
if (stmt->request_buffer)
{
*request_len= stmt->request_length;
buf= stmt->request_buffer;
/* store actual stmt id */
int4store(buf, stmt->stmt_id);
/* clear buffer, memory will be freed in execute */
stmt->request_buffer= NULL;
stmt->request_length= 0;
return buf;
}
if (stmt->array_size > 0)
buf= ma_stmt_execute_generate_bulk_request(stmt, request_len);
else
buf= ma_stmt_execute_generate_simple_request(stmt, request_len);
if (internal)
{
if (stmt->request_buffer)
free(stmt->request_buffer);
stmt->request_buffer= buf;
stmt->request_length= *request_len;
}
return buf;
}
|
O0
|
c
|
ma_stmt_execute_generate_request:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movb %al, -0x19(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x360(%rax)
je 0x3003f
movq -0x10(%rbp), %rax
movq 0x398(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x360(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x360(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x398(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x300bd
movq -0x10(%rbp), %rax
cmpl $0x0, 0x368(%rax)
jbe 0x3005f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2f870
movq %rax, -0x28(%rbp)
jmp 0x30070
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2f1a0
movq %rax, -0x28(%rbp)
cmpb $0x0, -0x19(%rbp)
je 0x300b5
movq -0x10(%rbp), %rax
cmpq $0x0, 0x360(%rax)
je 0x30094
movq -0x10(%rbp), %rax
movq 0x360(%rax), %rdi
callq 0x13520
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x360(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x398(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ma_stmt_execute_generate_request:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, dl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_19], al
mov rax, [rbp+var_10]
cmp qword ptr [rax+360h], 0
jz loc_3003F
mov rax, [rbp+var_10]
mov rcx, [rax+398h]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax+360h]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov cl, al
mov rax, [rbp+var_28]
mov [rax], cl
mov rax, [rbp+var_10]
mov rax, [rax+40h]
shr rax, 8
mov cl, al
mov rax, [rbp+var_28]
mov [rax+1], cl
mov rax, [rbp+var_10]
mov rax, [rax+40h]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_28]
mov [rax+2], cl
mov rax, [rbp+var_10]
mov rax, [rax+40h]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_28]
mov [rax+3], cl
mov rax, [rbp+var_10]
mov qword ptr [rax+360h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+398h], 0
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp short loc_300BD
loc_3003F:
mov rax, [rbp+var_10]
cmp dword ptr [rax+368h], 0
jbe short loc_3005F
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call ma_stmt_execute_generate_bulk_request
mov [rbp+var_28], rax
jmp short loc_30070
loc_3005F:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call ma_stmt_execute_generate_simple_request
mov [rbp+var_28], rax
loc_30070:
cmp [rbp+var_19], 0
jz short loc_300B5
mov rax, [rbp+var_10]
cmp qword ptr [rax+360h], 0
jz short loc_30094
mov rax, [rbp+var_10]
mov rdi, [rax+360h]
call _free
loc_30094:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+360h], rcx
mov rax, [rbp+var_18]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+398h], rcx
loc_300B5:
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_300BD:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
char * ma_stmt_execute_generate_request(long long a1, _QWORD *a2, char a3)
{
long long v4; // [rsp+8h] [rbp-28h]
char *bulk_request; // [rsp+8h] [rbp-28h]
if ( *(_QWORD *)(a1 + 864) )
{
*a2 = *(_QWORD *)(a1 + 920);
v4 = *(_QWORD *)(a1 + 864);
*(_WORD *)v4 = *(_QWORD *)(a1 + 64);
*(_BYTE *)(v4 + 2) = BYTE2(*(_QWORD *)(a1 + 64));
*(_BYTE *)(v4 + 3) = BYTE3(*(_QWORD *)(a1 + 64));
*(_QWORD *)(a1 + 864) = 0LL;
*(_QWORD *)(a1 + 920) = 0LL;
return (char *)v4;
}
else
{
if ( *(_DWORD *)(a1 + 872) )
bulk_request = ma_stmt_execute_generate_bulk_request((_QWORD *)a1, a2);
else
bulk_request = ma_stmt_execute_generate_simple_request((_QWORD *)a1, a2);
if ( a3 )
{
if ( *(_QWORD *)(a1 + 864) )
free(*(_QWORD *)(a1 + 864));
*(_QWORD *)(a1 + 864) = bulk_request;
*(_QWORD *)(a1 + 920) = *a2;
}
return bulk_request;
}
}
|
ma_stmt_execute_generate_request:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,DL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x360],0x0
JZ 0x0013003f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x398]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x360]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x360],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x398],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001300bd
LAB_0013003f:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x368],0x0
JBE 0x0013005f
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0012f870
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00130070
LAB_0013005f:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0012f1a0
MOV qword ptr [RBP + -0x28],RAX
LAB_00130070:
CMP byte ptr [RBP + -0x19],0x0
JZ 0x001300b5
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x360],0x0
JZ 0x00130094
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x360]
CALL 0x00113520
LAB_00130094:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x360],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x398],RCX
LAB_001300b5:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_001300bd:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int1 * ma_stmt_execute_generate_request(long param_1,int8 *param_2,char param_3)
{
int1 *local_30;
int1 *local_10;
if (*(long *)(param_1 + 0x360) == 0) {
if (*(int *)(param_1 + 0x368) == 0) {
local_30 = (int1 *)ma_stmt_execute_generate_simple_request(param_1,param_2);
}
else {
local_30 = (int1 *)ma_stmt_execute_generate_bulk_request(param_1,param_2);
}
if (param_3 != '\0') {
if (*(long *)(param_1 + 0x360) != 0) {
free(*(void **)(param_1 + 0x360));
}
*(int1 **)(param_1 + 0x360) = local_30;
*(int8 *)(param_1 + 0x398) = *param_2;
}
local_10 = local_30;
}
else {
*param_2 = *(int8 *)(param_1 + 0x398);
local_10 = *(int1 **)(param_1 + 0x360);
*local_10 = (char)*(int8 *)(param_1 + 0x40);
local_10[1] = (char)((ulong)*(int8 *)(param_1 + 0x40) >> 8);
local_10[2] = (char)((ulong)*(int8 *)(param_1 + 0x40) >> 0x10);
local_10[3] = (char)((ulong)*(int8 *)(param_1 + 0x40) >> 0x18);
*(int8 *)(param_1 + 0x360) = 0;
*(int8 *)(param_1 + 0x398) = 0;
}
return local_10;
}
|
|
62,384 |
POINTonE1_times_minus_z
|
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/map_to_g1.c
|
static void POINTonE1_times_minus_z(POINTonE1 *out, const POINTonE1 *in)
{
POINTonE1_double(out, in); /* 1: 0x2 */
POINTonE1_add_n_dbl(out, in, 2); /* 2..4: 0x3..0xc */
POINTonE1_add_n_dbl(out, in, 3); /* 5..8: 0xd..0x68 */
POINTonE1_add_n_dbl(out, in, 9); /* 9..18: 0x69..0xd200 */
POINTonE1_add_n_dbl(out, in, 32); /* 19..51: ..0xd20100000000 */
POINTonE1_add_n_dbl(out, in, 16); /* 52..68: ..0xd201000000010000 */
}
|
O2
|
c
|
POINTonE1_times_minus_z:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x52240
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5c14e
pushq $0x3
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5c14e
pushq $0x9
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5c14e
pushq $0x20
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5c14e
pushq $0x10
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x5c14e
|
POINTonE1_times_minus_z:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call POINTonE1_double
push 2
pop rdx
mov rdi, r14
mov rsi, rbx
call POINTonE1_add_n_dbl
push 3
pop rdx
mov rdi, r14
mov rsi, rbx
call POINTonE1_add_n_dbl
push 9
pop rdx
mov rdi, r14
mov rsi, rbx
call POINTonE1_add_n_dbl
push 20h ; ' '
pop rdx
mov rdi, r14
mov rsi, rbx
call POINTonE1_add_n_dbl
push 10h
pop rdx
mov rdi, r14
mov rsi, rbx
pop rbx
pop r14
pop rbp
jmp POINTonE1_add_n_dbl
|
long long POINTonE1_times_minus_z(long long a1, long long a2)
{
POINTonE1_double(a1, a2);
POINTonE1_add_n_dbl(a1, a2, 2LL);
POINTonE1_add_n_dbl(a1, a2, 3LL);
POINTonE1_add_n_dbl(a1, a2, 9LL);
POINTonE1_add_n_dbl(a1, a2, 32LL);
return POINTonE1_add_n_dbl(a1, a2, 16LL);
}
|
POINTonE1_times_minus_z:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x00152240
PUSH 0x2
POP RDX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015c14e
PUSH 0x3
POP RDX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015c14e
PUSH 0x9
POP RDX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015c14e
PUSH 0x20
POP RDX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015c14e
PUSH 0x10
POP RDX
MOV RDI,R14
MOV RSI,RBX
POP RBX
POP R14
POP RBP
JMP 0x0015c14e
|
void POINTonE1_times_minus_z(int8 param_1,int8 param_2)
{
POINTonE1_double();
POINTonE1_add_n_dbl(param_1,param_2,2);
POINTonE1_add_n_dbl(param_1,param_2,3);
POINTonE1_add_n_dbl(param_1,param_2,9);
POINTonE1_add_n_dbl(param_1,param_2,0x20);
POINTonE1_add_n_dbl(param_1,param_2,0x10);
return;
}
|
|
62,385 |
my_casefold_mb
|
eloqsql/strings/ctype-mb.c
|
static size_t
my_casefold_mb(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar *map,
size_t is_upper)
{
const char *srcend= src + srclen;
char *dst0= dst;
DBUG_ASSERT(cs->mbmaxlen == 2);
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
if ((ch= get_case_info_for_ch(cs, (uchar) src[0], (uchar) src[1])))
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= 2;
if (code > 0xFF)
*dst++= code >> 8;
*dst++= code & 0xFF;
}
else
{
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
}
|
O0
|
c
|
my_casefold_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x5468a
jmp 0x5468c
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x547c0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x544f0
movl %eax, %eax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x54791
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl (%rax), %esi
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %edx
callq 0x571d0
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x5474b
cmpq $0x0, 0x10(%rbp)
je 0x546f0
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0x546fa
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
cmpl $0xff, -0x54(%rbp)
jle 0x5472e
movl -0x54(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x54(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x5478f
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x547bb
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x5468c
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_casefold_mb:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
jmp short $+2
loc_5468A:
jmp short $+2
loc_5468C:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb loc_547C0
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_38]
call my_ismbchar_0
mov eax, eax
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz loc_54791
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
movzx esi, byte ptr [rax]
mov rax, [rbp+var_10]
movzx edx, byte ptr [rax+1]
call get_case_info_for_ch
mov [rbp+var_50], rax
cmp rax, 0
jz short loc_5474B
cmp [rbp+arg_0], 0
jz short loc_546F0
mov rax, [rbp+var_50]
mov eax, [rax]
mov [rbp+var_58], eax
jmp short loc_546FA
loc_546F0:
mov rax, [rbp+var_50]
mov eax, [rax+4]
mov [rbp+var_58], eax
loc_546FA:
mov eax, [rbp+var_58]
mov [rbp+var_54], eax
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
cmp [rbp+var_54], 0FFh
jle short loc_5472E
mov eax, [rbp+var_54]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_5472E:
mov eax, [rbp+var_54]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
jmp short loc_5478F
loc_5474B:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_5478F:
jmp short loc_547BB
loc_54791:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_547BB:
jmp loc_5468C
loc_547C0:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_40]
sub rax, rcx
add rsp, 60h
pop rbp
retn
|
_BYTE * my_casefold_mb(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6,
long long a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
char *v9; // rax
char v10; // cl
_BYTE *v11; // rax
unsigned __int8 *v12; // rcx
unsigned __int8 *v13; // rax
int v15; // [rsp+8h] [rbp-58h]
int *case_info_for_ch; // [rsp+10h] [rbp-50h]
unsigned long long v18; // [rsp+28h] [rbp-38h]
unsigned __int8 *v20; // [rsp+40h] [rbp-20h]
unsigned __int8 *v21; // [rsp+50h] [rbp-10h]
v21 = a2;
v20 = a4;
v18 = (unsigned long long)&a2[a3];
while ( (unsigned long long)v21 < v18 )
{
if ( (unsigned int)my_ismbchar_0(a1, (long long)v21, v18) )
{
case_info_for_ch = (int *)get_case_info_for_ch(a1, *v21, v21[1]);
if ( case_info_for_ch )
{
if ( a7 )
v15 = *case_info_for_ch;
else
v15 = case_info_for_ch[1];
v21 += 2;
if ( v15 > 255 )
{
v7 = v20++;
*v7 = BYTE1(v15);
}
v8 = v20++;
*v8 = v15;
}
else
{
*v20 = *v21;
v9 = (char *)(v21 + 1);
v21 += 2;
v10 = *v9;
v11 = v20 + 1;
v20 += 2;
*v11 = v10;
}
}
else
{
v12 = v21++;
v13 = v20++;
*v13 = *(_BYTE *)(a6 + *v12);
}
}
return (_BYTE *)(v20 - a4);
}
|
my_casefold_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0015468a
LAB_0015468a:
JMP 0x0015468c
LAB_0015468c:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001547c0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001544f0
MOV EAX,EAX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x00154791
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ESI,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RAX + 0x1]
CALL 0x001571d0
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JZ 0x0015474b
CMP qword ptr [RBP + 0x10],0x0
JZ 0x001546f0
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x58],EAX
JMP 0x001546fa
LAB_001546f0:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x58],EAX
LAB_001546fa:
MOV EAX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x10],RAX
CMP dword ptr [RBP + -0x54],0xff
JLE 0x0015472e
MOV EAX,dword ptr [RBP + -0x54]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0015472e:
MOV EAX,dword ptr [RBP + -0x54]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
JMP 0x0015478f
LAB_0015474b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0015478f:
JMP 0x001547bb
LAB_00154791:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001547bb:
JMP 0x0015468c
LAB_001547c0:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_casefold_mb(int8 param_1,byte *param_2,long param_3,byte *param_4,int8 param_5,
long param_6,long param_7)
{
int iVar1;
int *piVar2;
byte *pbVar3;
int local_60;
byte *local_28;
byte *local_18;
local_28 = param_4;
local_18 = param_2;
while (local_18 < param_2 + param_3) {
iVar1 = my_ismbchar(param_1,local_18,param_2 + param_3);
if (iVar1 == 0) {
*local_28 = *(byte *)(param_6 + (ulong)*local_18);
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
else {
piVar2 = (int *)get_case_info_for_ch(param_1,*local_18,local_18[1]);
if (piVar2 == (int *)0x0) {
pbVar3 = local_28 + 1;
*local_28 = *local_18;
local_28 = local_28 + 2;
*pbVar3 = local_18[1];
}
else {
if (param_7 == 0) {
local_60 = piVar2[1];
}
else {
local_60 = *piVar2;
}
if (0xff < local_60) {
*local_28 = (byte)((uint)local_60 >> 8);
local_28 = local_28 + 1;
}
*local_28 = (byte)local_60;
local_28 = local_28 + 1;
}
local_18 = local_18 + 2;
}
}
return (long)local_28 - (long)param_4;
}
|
|
62,386 |
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_comment()
|
monkey531[P]llama/common/json.hpp
|
bool scan_comment()
{
switch (get())
{
// single-line comments skip input until a newline or EOF is read
case '/':
{
while (true)
{
switch (get())
{
case '\n':
case '\r':
case char_traits<char_type>::eof():
case '\0':
return true;
default:
break;
}
}
}
// multi-line comments skip input until */ is read
case '*':
{
while (true)
{
switch (get())
{
case char_traits<char_type>::eof():
case '\0':
{
error_message = "invalid comment; missing closing '*/'";
return false;
}
case '*':
{
switch (get())
{
case '/':
return true;
default:
{
unget();
continue;
}
}
}
default:
continue;
}
}
}
// unexpected character after reading '/'
default:
{
error_message = "invalid comment; expecting '/' or '*' after '/'";
return false;
}
}
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_comment():
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1b1ae
cmpl $0x2f, %eax
je 0x5772f
cmpl $0x2a, %eax
jne 0x5774c
movq %rbx, %rdi
callq 0x1b1ae
leal 0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0x57755
cmpl $0x2a, %eax
jne 0x57703
movq %rbx, %rdi
callq 0x1b1ae
cmpl $0x2f, %eax
je 0x57748
movq %rbx, %rdi
callq 0x58018
jmp 0x57703
movl $0x4803, %ebp # imm = 0x4803
movq %rbx, %rdi
callq 0x1b1ae
incl %eax
cmpl $0xf, %eax
jae 0x57734
btl %eax, %ebp
jae 0x57734
movb $0x1, %al
jmp 0x57762
leaq 0x95692(%rip), %rax # 0xecde5
jmp 0x5775c
leaq 0x95663(%rip), %rax # 0xecdbf
movq %rax, 0x70(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12scan_commentEv:
push rbp
push rbx
push rax
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 2Fh ; '/'
jz short loc_5772F
cmp eax, 2Ah ; '*'
jnz short loc_5774C
loc_57703:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea ecx, [rax+1]
cmp ecx, 2
jb short loc_57755
cmp eax, 2Ah ; '*'
jnz short loc_57703
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 2Fh ; '/'
jz short loc_57748
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void)
jmp short loc_57703
loc_5772F:
mov ebp, 4803h
loc_57734:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
inc eax
cmp eax, 0Fh
jnb short loc_57734
bt ebp, eax
jnb short loc_57734
loc_57748:
mov al, 1
jmp short loc_57762
loc_5774C:
lea rax, aInvalidComment; "invalid comment; expecting '/' or '*' a"...
jmp short loc_5775C
loc_57755:
lea rax, aInvalidComment_0; "invalid comment; missing closing '*/'"
loc_5775C:
mov [rbx+70h], rax
xor eax, eax
loc_57762:
add rsp, 8
pop rbx
pop rbp
retn
|
char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_comment(
__m128i *a1)
{
int v1; // eax
int v2; // eax
int v3; // ebp
unsigned int v4; // eax
const char *v6; // rax
v1 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
if ( v1 == 47 )
{
v3 = 18435;
do
{
do
v4 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1)
+ 1;
while ( v4 >= 0xF );
}
while ( !_bittest(&v3, v4) );
return 1;
}
else
{
if ( v1 == 42 )
{
while ( 1 )
{
v2 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
if ( (unsigned int)(v2 + 1) < 2 )
break;
if ( v2 == 42 )
{
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 47 )
return 1;
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1);
}
}
v6 = "invalid comment; missing closing '*/'";
}
else
{
v6 = "invalid comment; expecting '/' or '*' after '/'";
}
a1[7].m128i_i64[0] = (long long)v6;
return 0;
}
}
|
scan_comment:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x0011b1ae
CMP EAX,0x2f
JZ 0x0015772f
CMP EAX,0x2a
JNZ 0x0015774c
LAB_00157703:
MOV RDI,RBX
CALL 0x0011b1ae
LEA ECX,[RAX + 0x1]
CMP ECX,0x2
JC 0x00157755
CMP EAX,0x2a
JNZ 0x00157703
MOV RDI,RBX
CALL 0x0011b1ae
CMP EAX,0x2f
JZ 0x00157748
MOV RDI,RBX
CALL 0x00158018
JMP 0x00157703
LAB_0015772f:
MOV EBP,0x4803
LAB_00157734:
MOV RDI,RBX
CALL 0x0011b1ae
INC EAX
CMP EAX,0xf
JNC 0x00157734
BT EBP,EAX
JNC 0x00157734
LAB_00157748:
MOV AL,0x1
JMP 0x00157762
LAB_0015774c:
LEA RAX,[0x1ecde5]
JMP 0x0015775c
LAB_00157755:
LEA RAX,[0x1ecdbf]
LAB_0015775c:
MOV qword ptr [RBX + 0x70],RAX
XOR EAX,EAX
LAB_00157762:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::scan_comment() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::scan_comment(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
int iVar1;
int8 uVar2;
char *pcVar3;
iVar1 = get(this);
if (iVar1 == 0x2f) {
do {
do {
iVar1 = get(this);
} while (0xe < iVar1 + 1U);
} while ((0x4803U >> (iVar1 + 1U & 0x1f) & 1) == 0);
LAB_00157748:
uVar2 = 1;
}
else {
if (iVar1 == 0x2a) {
while (iVar1 = get(this), 1 < iVar1 + 1U) {
if (iVar1 == 0x2a) {
iVar1 = get(this);
if (iVar1 == 0x2f) goto LAB_00157748;
unget(this);
}
}
pcVar3 = "invalid comment; missing closing \'*/\'";
}
else {
pcVar3 = "invalid comment; expecting \'/\' or \'*\' after \'/\'";
}
*(char **)(this + 0x70) = pcVar3;
uVar2 = 0;
}
return uVar2;
}
|
|
62,387 |
stmt_unbuffered_fetch
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
static int stmt_unbuffered_fetch(MYSQL_STMT *stmt, uchar **row)
{
ulong pkt_len;
pkt_len= ma_net_safe_read(stmt->mysql);
if (pkt_len == packet_error)
{
stmt->fetch_row_func= stmt_unbuffered_eof;
return(1);
}
if (stmt->mysql->net.read_pos[0] == 254)
{
*row = NULL;
stmt->fetch_row_func= stmt_unbuffered_eof;
return(MYSQL_NO_DATA);
}
else
*row = stmt->mysql->net.read_pos;
stmt->result.rows++;
return(0);
}
|
O0
|
c
|
stmt_unbuffered_fetch:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x3cb80
movq %rax, -0x20(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0x4d217
movq -0x10(%rbp), %rax
leaq 0x7069(%rip), %rcx # 0x54270
movq %rcx, 0x348(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4d283
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jne 0x4d253
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
leaq 0x702d(%rip), %rcx # 0x54270
movq %rcx, 0x348(%rax)
movl $0x64, -0x4(%rbp)
jmp 0x4d283
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0xc8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xc8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
stmt_unbuffered_fetch:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rdi, [rax+38h]
call ma_net_safe_read
mov [rbp+var_20], rax
mov eax, 0FFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_4D217
mov rax, [rbp+var_10]
lea rcx, stmt_unbuffered_eof
mov [rax+348h], rcx
mov [rbp+var_4], 1
jmp short loc_4D283
loc_4D217:
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov rax, [rax+20h]
movzx eax, byte ptr [rax]
cmp eax, 0FEh
jnz short loc_4D253
mov rax, [rbp+var_18]
mov qword ptr [rax], 0
mov rax, [rbp+var_10]
lea rcx, stmt_unbuffered_eof
mov [rax+348h], rcx
mov [rbp+var_4], 64h ; 'd'
jmp short loc_4D283
loc_4D253:
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov rcx, [rax+20h]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+0C8h]
add rcx, 1
mov [rax+0C8h], rcx
mov [rbp+var_4], 0
loc_4D283:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long stmt_unbuffered_fetch(long long *a1, _QWORD *a2, long long a3, long long a4, int a5, int a6)
{
if ( ma_net_safe_read(a1[7], (long long)a2, a3, a4, a5, a6) == 0xFFFFFFFFLL )
{
a1[105] = (long long)stmt_unbuffered_eof;
return 1;
}
else if ( **(unsigned __int8 **)(a1[7] + 32) == 254 )
{
*a2 = 0LL;
a1[105] = (long long)stmt_unbuffered_eof;
return 100;
}
else
{
*a2 = *(_QWORD *)(a1[7] + 32);
++a1[25];
return 0;
}
}
|
stmt_unbuffered_fetch:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x0013cb80
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x0014d217
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x154270]
MOV qword ptr [RAX + 0x348],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014d283
LAB_0014d217:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfe
JNZ 0x0014d253
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x154270]
MOV qword ptr [RAX + 0x348],RCX
MOV dword ptr [RBP + -0x4],0x64
JMP 0x0014d283
LAB_0014d253:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xc8]
ADD RCX,0x1
MOV qword ptr [RAX + 0xc8],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_0014d283:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 stmt_unbuffered_fetch(long param_1,int8 *param_2)
{
long lVar1;
int4 local_c;
lVar1 = ma_net_safe_read(*(int8 *)(param_1 + 0x38));
if (lVar1 == 0xffffffff) {
*(code **)(param_1 + 0x348) = stmt_unbuffered_eof;
local_c = 1;
}
else if (**(char **)(*(long *)(param_1 + 0x38) + 0x20) == -2) {
*param_2 = 0;
*(code **)(param_1 + 0x348) = stmt_unbuffered_eof;
local_c = 100;
}
else {
*param_2 = *(int8 *)(*(long *)(param_1 + 0x38) + 0x20);
*(long *)(param_1 + 200) = *(long *)(param_1 + 200) + 1;
local_c = 0;
}
return local_c;
}
|
|
62,388 |
test_conc566
|
eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c
|
static int test_conc566(MYSQL *mysql)
{
int rc;
MYSQL_STMT *stmt = mysql_stmt_init(mysql);
unsigned long cursor = CURSOR_TYPE_READ_ONLY;
const char* query= "call sp()";
SKIP_SKYSQL;
rc= mysql_query(mysql,"drop procedure if exists sp");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql,"create procedure sp() select 1");
check_mysql_rc(rc, mysql);
rc= mysql_stmt_prepare(stmt,query,-1);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, &cursor);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
mysql_stmt_close(stmt);
rc= mysql_query(mysql,"drop procedure sp");
check_mysql_rc(rc, mysql);
return OK;
}
|
O0
|
c
|
test_conc566:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x44950
movq %rax, -0x20(%rbp)
movq $0x1, -0x28(%rbp)
leaq 0x4fa0d(%rip), %rax # 0x66455
movq %rax, -0x30(%rbp)
cmpq $0x0, 0x6a8ac(%rip) # 0x81300
je 0x16a89
movq 0x6a8a3(%rip), %rdi # 0x81300
leaq 0x4f9fb(%rip), %rsi # 0x6645f
callq 0x14100
cmpq $0x0, %rax
je 0x16a89
leaq 0x4f9f7(%rip), %rdi # 0x6646d
movb $0x0, %al
callq 0x2fc40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x16cb1
movq -0x10(%rbp), %rdi
leaq 0x4f9f1(%rip), %rsi # 0x66485
callq 0x38a70
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16aee
movl -0x14(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0x3c(%rbp), %esi
movq -0x38(%rbp), %rdx
movl %eax, %ecx
leaq 0x4ec07(%rip), %rdi # 0x656d5
leaq 0x4f598(%rip), %r8 # 0x6606d
movl $0x152f, %r9d # imm = 0x152F
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16cb1
jmp 0x16af0
movq -0x10(%rbp), %rdi
leaq 0x4f9a6(%rip), %rsi # 0x664a1
callq 0x38a70
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16b55
movl -0x14(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0x4c(%rbp), %esi
movq -0x48(%rbp), %rdx
movl %eax, %ecx
leaq 0x4eba0(%rip), %rdi # 0x656d5
leaq 0x4f531(%rip), %r8 # 0x6606d
movl $0x1532, %r9d # imm = 0x1532
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16cb1
jmp 0x16b57
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq $-0x1, %rdx
callq 0x45070
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16ba6
movq -0x20(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4ea09(%rip), %rdi # 0x65590
leaq 0x4f4df(%rip), %rdx # 0x6606d
movl $0x1535, %ecx # imm = 0x1535
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16cb1
jmp 0x16ba8
movq -0x20(%rbp), %rdi
movl $0x1, %esi
leaq -0x28(%rbp), %rdx
callq 0x42b30
movsbl %al, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16bf8
movq -0x20(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4e9b7(%rip), %rdi # 0x65590
leaq 0x4f48d(%rip), %rdx # 0x6606d
movl $0x1538, %ecx # imm = 0x1538
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16cb1
jmp 0x16bfa
movq -0x20(%rbp), %rdi
callq 0x46580
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16c3b
movq -0x20(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4e971(%rip), %rdi # 0x65590
leaq 0x4f447(%rip), %rdx # 0x6606d
movl $0x153b, %ecx # imm = 0x153B
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16cb1
jmp 0x16c3d
movq -0x20(%rbp), %rdi
callq 0x43eb0
movq -0x10(%rbp), %rdi
leaq 0x4f86f(%rip), %rsi # 0x664c0
callq 0x38a70
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16ca8
movl -0x14(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0x5c(%rbp), %esi
movq -0x58(%rbp), %rdx
movl %eax, %ecx
leaq 0x4ea4a(%rip), %rdi # 0x656d5
leaq 0x4f3db(%rip), %r8 # 0x6606d
movl $0x1540, %r9d # imm = 0x1540
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16cb1
jmp 0x16caa
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
test_conc566:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
call mysql_stmt_init
mov [rbp+var_20], rax
mov [rbp+var_28], 1
lea rax, aCallSp; "call sp()"
mov [rbp+var_30], rax
cmp cs:hostname, 0
jz short loc_16A89
mov rdi, cs:hostname
lea rsi, aDbSkysqlNet; "db.skysql.net"
call _strstr
cmp rax, 0
jz short loc_16A89
lea rdi, aNotSupportedBy; "Not supported by SkySQL"
mov al, 0
call diag
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_16CB1
loc_16A89:
mov rdi, [rbp+var_10]
lea rsi, aDropProcedureI; "drop procedure if exists sp"
call mysql_query
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16AEE
mov eax, [rbp+var_14]
mov [rbp+var_3C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_3C]
mov rdx, [rbp+var_38]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 152Fh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16CB1
loc_16AEE:
jmp short $+2
loc_16AF0:
mov rdi, [rbp+var_10]
lea rsi, aCreateProcedur; "create procedure sp() select 1"
call mysql_query
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16B55
mov eax, [rbp+var_14]
mov [rbp+var_4C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_48], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_4C]
mov rdx, [rbp+var_48]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 1532h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16CB1
loc_16B55:
jmp short $+2
loc_16B57:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, 0FFFFFFFFFFFFFFFFh
call mysql_stmt_prepare
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16BA6
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1535h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16CB1
loc_16BA6:
jmp short $+2
loc_16BA8:
mov rdi, [rbp+var_20]
mov esi, 1
lea rdx, [rbp+var_28]
call mysql_stmt_attr_set
movsx eax, al
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16BF8
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1538h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16CB1
loc_16BF8:
jmp short $+2
loc_16BFA:
mov rdi, [rbp+var_20]
call mysql_stmt_execute
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16C3B
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 153Bh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_16CB1
loc_16C3B:
jmp short $+2
loc_16C3D:
mov rdi, [rbp+var_20]
call mysql_stmt_close
mov rdi, [rbp+var_10]
lea rsi, aDropProcedureS; "drop procedure sp"
call mysql_query
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16CA8
mov eax, [rbp+var_14]
mov [rbp+var_5C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_58], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_5C]
mov rdx, [rbp+var_58]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 1540h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_16CB1
loc_16CA8:
jmp short $+2
loc_16CAA:
mov [rbp+var_4], 0
loc_16CB1:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long test_conc566(long long a1)
{
int v1; // edx
int v2; // ecx
int v3; // r8d
int v4; // r9d
int v5; // eax
int v6; // eax
int v7; // eax
int v8; // r8d
int v9; // r9d
char v10; // al
int v11; // eax
int v12; // r8d
int v13; // r9d
int v14; // eax
int v15; // r8d
int v16; // r9d
int v17; // eax
int v19; // [rsp+4h] [rbp-5Ch]
int v20; // [rsp+8h] [rbp-58h]
int v21; // [rsp+18h] [rbp-48h]
int v22; // [rsp+28h] [rbp-38h]
long long v23; // [rsp+38h] [rbp-28h] BYREF
long long v24; // [rsp+40h] [rbp-20h]
int v25; // [rsp+4Ch] [rbp-14h]
long long v26; // [rsp+50h] [rbp-10h]
v26 = a1;
v24 = mysql_stmt_init(a1);
v23 = 1LL;
if ( hostname && strstr(hostname, "db.skysql.net") )
{
diag((unsigned int)"Not supported by SkySQL", (unsigned int)"db.skysql.net", v1, v2, v3, v4);
return (unsigned int)-1;
}
else
{
v25 = mysql_query(v26, "drop procedure if exists sp");
if ( v25 )
{
v22 = mysql_error(v26);
v5 = mysql_errno(v26);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v25,
v22,
v5,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5423);
return 1;
}
else
{
v25 = mysql_query(v26, "create procedure sp() select 1");
if ( v25 )
{
v21 = mysql_error(v26);
v6 = mysql_errno(v26);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v25,
v21,
v6,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5426);
return 1;
}
else
{
v25 = mysql_stmt_prepare(v24, "call sp()", -1LL);
if ( v25 )
{
v7 = mysql_stmt_error(v24);
diag(
(unsigned int)"Error: %s (%s: %d)",
v7,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5429,
v8,
v9);
return 1;
}
else
{
v10 = mysql_stmt_attr_set(v24, 1LL, &v23);
v25 = v10;
if ( v10 )
{
v11 = mysql_stmt_error(v24);
diag(
(unsigned int)"Error: %s (%s: %d)",
v11,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5432,
v12,
v13);
return 1;
}
else
{
v25 = mysql_stmt_execute(v24);
if ( v25 )
{
v14 = mysql_stmt_error(v24);
diag(
(unsigned int)"Error: %s (%s: %d)",
v14,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5435,
v15,
v16);
return 1;
}
else
{
mysql_stmt_close(v24);
v25 = mysql_query(v26, "drop procedure sp");
if ( v25 )
{
v19 = v25;
v20 = mysql_error(v26);
v17 = mysql_errno(v26);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v19,
v20,
v17,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5440);
return 1;
}
else
{
return 0;
}
}
}
}
}
}
}
}
|
test_conc566:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00144950
MOV qword ptr [RBP + -0x20],RAX
MOV qword ptr [RBP + -0x28],0x1
LEA RAX,[0x166455]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [0x00181300],0x0
JZ 0x00116a89
MOV RDI,qword ptr [0x00181300]
LEA RSI,[0x16645f]
CALL 0x00114100
CMP RAX,0x0
JZ 0x00116a89
LEA RDI,[0x16646d]
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00116cb1
LAB_00116a89:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x166485]
CALL 0x00138a70
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116aee
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x3c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0x3c]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x152f
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116cb1
LAB_00116aee:
JMP 0x00116af0
LAB_00116af0:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1664a1]
CALL 0x00138a70
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116b55
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0x4c]
MOV RDX,qword ptr [RBP + -0x48]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x1532
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116cb1
LAB_00116b55:
JMP 0x00116b57
LAB_00116b57:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,-0x1
CALL 0x00145070
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116ba6
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1535
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116cb1
LAB_00116ba6:
JMP 0x00116ba8
LAB_00116ba8:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,0x1
LEA RDX,[RBP + -0x28]
CALL 0x00142b30
MOVSX EAX,AL
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116bf8
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1538
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116cb1
LAB_00116bf8:
JMP 0x00116bfa
LAB_00116bfa:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00146580
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116c3b
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x153b
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116cb1
LAB_00116c3b:
JMP 0x00116c3d
LAB_00116c3d:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143eb0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1664c0]
CALL 0x00138a70
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116ca8
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x5c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0x5c]
MOV RDX,qword ptr [RBP + -0x58]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x1540
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116cb1
LAB_00116ca8:
JMP 0x00116caa
LAB_00116caa:
MOV dword ptr [RBP + -0x4],0x0
LAB_00116cb1:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 test_conc566(int8 param_1)
{
char cVar1;
int iVar2;
int4 uVar3;
char *pcVar4;
int8 uVar5;
int8 local_30;
int8 local_28;
int local_1c;
int8 local_18;
int4 local_c;
local_18 = param_1;
local_28 = mysql_stmt_init(param_1);
local_30 = 1;
if ((hostname != (char *)0x0) &&
(pcVar4 = strstr(hostname,"db.skysql.net"), pcVar4 != (char *)0x0)) {
diag("Not supported by SkySQL");
return 0xffffffff;
}
iVar2 = mysql_query(local_18,"drop procedure if exists sp");
local_1c = iVar2;
if (iVar2 == 0) {
iVar2 = mysql_query(local_18,"create procedure sp() select 1");
local_1c = iVar2;
if (iVar2 == 0) {
local_1c = mysql_stmt_prepare(local_28,"call sp()",0xffffffffffffffff);
if (local_1c == 0) {
cVar1 = mysql_stmt_attr_set(local_28,1,&local_30);
local_1c = (int)cVar1;
if (local_1c == 0) {
local_1c = mysql_stmt_execute(local_28);
if (local_1c == 0) {
mysql_stmt_close(local_28);
iVar2 = mysql_query(local_18,"drop procedure sp");
if (iVar2 == 0) {
local_c = 0;
}
else {
local_1c = iVar2;
uVar5 = mysql_error(local_18);
uVar3 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar5,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x1540);
local_c = 1;
}
}
else {
uVar5 = mysql_stmt_error(local_28);
diag("Error: %s (%s: %d)",uVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x153b);
local_c = 1;
}
}
else {
uVar5 = mysql_stmt_error(local_28);
diag("Error: %s (%s: %d)",uVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1538);
local_c = 1;
}
}
else {
uVar5 = mysql_stmt_error(local_28);
diag("Error: %s (%s: %d)",uVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1535);
local_c = 1;
}
}
else {
uVar5 = mysql_error(local_18);
uVar3 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar5,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1532);
local_c = 1;
}
}
else {
uVar5 = mysql_error(local_18);
uVar3 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar5,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",0x152f)
;
local_c = 1;
}
return local_c;
}
|
|
62,389 |
end_simple_key_cache
|
eloqsql/mysys/mf_keycache.c
|
static
void end_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache, my_bool cleanup)
{
DBUG_ENTER("end_simple_key_cache");
DBUG_PRINT("enter", ("key_cache: %p", keycache));
if (!keycache->key_cache_inited)
DBUG_VOID_RETURN;
if (keycache->disk_blocks > 0)
{
if (keycache->block_mem)
{
my_large_free((uchar*) keycache->block_mem, keycache->allocated_mem_size);
keycache->block_mem= NULL;
my_free(keycache->block_root);
keycache->block_root= NULL;
}
keycache->disk_blocks= -1;
/* Reset blocks_changed to be safe if flush_all_key_blocks is called */
keycache->blocks_changed= 0;
}
DBUG_PRINT("status", ("used: %lu changed: %lu w_requests: %lu "
"writes: %lu r_requests: %lu reads: %lu",
keycache->blocks_used, keycache->global_blocks_changed,
(ulong) keycache->global_cache_w_requests,
(ulong) keycache->global_cache_write,
(ulong) keycache->global_cache_r_requests,
(ulong) keycache->global_cache_read));
/*
Reset these values to be able to detect a disabled key cache.
See Bug#44068 (RESTORE can disable the MyISAM Key Cache).
*/
keycache->blocks_used= 0;
keycache->blocks_unused= 0;
if (cleanup)
{
mysql_mutex_destroy(&keycache->cache_lock);
keycache->key_cache_inited= keycache->can_be_used= 0;
KEYCACHE_DEBUG_CLOSE;
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
end_simple_key_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
jmp 0xe6b34
movq -0x8(%rbp), %rax
cmpb $0x0, (%rax)
jne 0xe6b44
jmp 0xe6b3f
jmp 0xe6bfe
movq -0x8(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jle 0xe6bb9
movq -0x8(%rbp), %rax
cmpq $0x0, 0xa8(%rax)
je 0xe6ba2
movq -0x8(%rbp), %rax
movq 0xa8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x101f30
movq -0x8(%rbp), %rax
movq $0x0, 0xa8(%rax)
movq -0x8(%rbp), %rax
movq 0xa0(%rax), %rdi
callq 0xf3be0
movq -0x8(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x48(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movq $0x0, 0x60(%rax)
jmp 0xe6bbb
jmp 0xe6bbd
movq -0x8(%rbp), %rax
movq $0x0, 0x50(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x58(%rax)
cmpb $0x0, -0x9(%rbp)
je 0xe6bfa
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
callq 0xe7c30
movq -0x8(%rbp), %rax
movb $0x0, 0x3(%rax)
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
jmp 0xe6bfc
jmp 0xe6bfe
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
end_simple_key_cache:
push rbp
mov rbp, rsp
sub rsp, 10h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
jmp short $+2
loc_E6B34:
mov rax, [rbp+var_8]
cmp byte ptr [rax], 0
jnz short loc_E6B44
jmp short $+2
loc_E6B3F:
jmp loc_E6BFE
loc_E6B44:
mov rax, [rbp+var_8]
cmp dword ptr [rax+48h], 0
jle short loc_E6BB9
mov rax, [rbp+var_8]
cmp qword ptr [rax+0A8h], 0
jz short loc_E6BA2
mov rax, [rbp+var_8]
mov rdi, [rax+0A8h]
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
call my_large_free
mov rax, [rbp+var_8]
mov qword ptr [rax+0A8h], 0
mov rax, [rbp+var_8]
mov rdi, [rax+0A0h]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+0A0h], 0
loc_E6BA2:
mov rax, [rbp+var_8]
mov dword ptr [rax+48h], 0FFFFFFFFh
mov rax, [rbp+var_8]
mov qword ptr [rax+60h], 0
loc_E6BB9:
jmp short $+2
loc_E6BBB:
jmp short $+2
loc_E6BBD:
mov rax, [rbp+var_8]
mov qword ptr [rax+50h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+58h], 0
cmp [rbp+var_9], 0
jz short loc_E6BFA
mov rdi, [rbp+var_8]
add rdi, 0C0h
call inline_mysql_mutex_destroy_7
mov rax, [rbp+var_8]
mov byte ptr [rax+3], 0
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
loc_E6BFA:
jmp short $+2
loc_E6BFC:
jmp short $+2
loc_E6BFE:
add rsp, 10h
pop rbp
retn
|
long long end_simple_key_cache(long long a1, char a2)
{
long long result; // rax
result = a1;
if ( *(_BYTE *)a1 )
{
if ( *(int *)(a1 + 72) > 0 )
{
if ( *(_QWORD *)(a1 + 168) )
{
my_large_free(*(_QWORD *)(a1 + 168), *(_QWORD *)(a1 + 16));
*(_QWORD *)(a1 + 168) = 0LL;
my_free(*(_QWORD *)(a1 + 160));
*(_QWORD *)(a1 + 160) = 0LL;
}
*(_DWORD *)(a1 + 72) = -1;
*(_QWORD *)(a1 + 96) = 0LL;
}
*(_QWORD *)(a1 + 80) = 0LL;
result = a1;
*(_QWORD *)(a1 + 88) = 0LL;
if ( a2 )
{
inline_mysql_mutex_destroy_7(a1 + 192);
*(_BYTE *)(a1 + 3) = 0;
result = a1;
*(_BYTE *)a1 = 0;
}
}
return result;
}
|
end_simple_key_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
JMP 0x001e6b34
LAB_001e6b34:
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX],0x0
JNZ 0x001e6b44
JMP 0x001e6b3f
LAB_001e6b3f:
JMP 0x001e6bfe
LAB_001e6b44:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x48],0x0
JLE 0x001e6bb9
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0xa8],0x0
JZ 0x001e6ba2
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0xa8]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
CALL 0x00201f30
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0xa0]
CALL 0x001f3be0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],0x0
LAB_001e6ba2:
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x48],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x60],0x0
LAB_001e6bb9:
JMP 0x001e6bbb
LAB_001e6bbb:
JMP 0x001e6bbd
LAB_001e6bbd:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x50],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x58],0x0
CMP byte ptr [RBP + -0x9],0x0
JZ 0x001e6bfa
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
CALL 0x001e7c30
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x3],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],0x0
LAB_001e6bfa:
JMP 0x001e6bfc
LAB_001e6bfc:
JMP 0x001e6bfe
LAB_001e6bfe:
ADD RSP,0x10
POP RBP
RET
|
void end_simple_key_cache(char *param_1,char param_2)
{
if (*param_1 != '\0') {
if (0 < *(int *)(param_1 + 0x48)) {
if (*(long *)(param_1 + 0xa8) != 0) {
my_large_free(*(int8 *)(param_1 + 0xa8),*(int8 *)(param_1 + 0x10));
param_1[0xa8] = '\0';
param_1[0xa9] = '\0';
param_1[0xaa] = '\0';
param_1[0xab] = '\0';
param_1[0xac] = '\0';
param_1[0xad] = '\0';
param_1[0xae] = '\0';
param_1[0xaf] = '\0';
my_free(*(int8 *)(param_1 + 0xa0));
param_1[0xa0] = '\0';
param_1[0xa1] = '\0';
param_1[0xa2] = '\0';
param_1[0xa3] = '\0';
param_1[0xa4] = '\0';
param_1[0xa5] = '\0';
param_1[0xa6] = '\0';
param_1[0xa7] = '\0';
}
param_1[0x48] = -1;
param_1[0x49] = -1;
param_1[0x4a] = -1;
param_1[0x4b] = -1;
param_1[0x60] = '\0';
param_1[0x61] = '\0';
param_1[0x62] = '\0';
param_1[99] = '\0';
param_1[100] = '\0';
param_1[0x65] = '\0';
param_1[0x66] = '\0';
param_1[0x67] = '\0';
}
param_1[0x50] = '\0';
param_1[0x51] = '\0';
param_1[0x52] = '\0';
param_1[0x53] = '\0';
param_1[0x54] = '\0';
param_1[0x55] = '\0';
param_1[0x56] = '\0';
param_1[0x57] = '\0';
param_1[0x58] = '\0';
param_1[0x59] = '\0';
param_1[0x5a] = '\0';
param_1[0x5b] = '\0';
param_1[0x5c] = '\0';
param_1[0x5d] = '\0';
param_1[0x5e] = '\0';
param_1[0x5f] = '\0';
if (param_2 != '\0') {
inline_mysql_mutex_destroy(param_1 + 0xc0);
param_1[3] = '\0';
*param_1 = '\0';
}
}
return;
}
|
|
62,390 |
init_dynamic_array2
|
eloqsql/mysys/array.c
|
my_bool init_dynamic_array2(PSI_memory_key psi_key, DYNAMIC_ARRAY *array,
uint element_size, void *init_buffer,
uint init_alloc, uint alloc_increment, myf my_flags)
{
DBUG_ENTER("init_dynamic_array2");
if (!alloc_increment)
{
alloc_increment=MY_MAX((8192-MALLOC_OVERHEAD)/element_size,16);
if (init_alloc > 8 && alloc_increment > init_alloc * 2)
alloc_increment=init_alloc*2;
}
array->elements=0;
array->max_element=init_alloc;
array->alloc_increment=alloc_increment;
array->size_of_element=element_size;
array->m_psi_key= psi_key;
array->malloc_flags= my_flags;
DBUG_ASSERT((my_flags & MY_INIT_BUFFER_USED) == 0);
if ((array->buffer= init_buffer))
{
array->malloc_flags|= MY_INIT_BUFFER_USED;
DBUG_RETURN(FALSE);
}
/*
Since the dynamic array is usable even if allocation fails here malloc
should not throw an error
*/
if (init_alloc &&
!(array->buffer= (uchar*) my_malloc(psi_key, element_size*init_alloc,
MYF(my_flags))))
array->max_element=0;
DBUG_RETURN(FALSE);
}
|
O3
|
c
|
init_dynamic_array2:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edx, %r11d
movq %rsi, %rbx
movq 0x10(%rbp), %r10
testl %r9d, %r9d
jne 0x2c343
movl $0x10, %r9d
cmpl $0x1e1, %r11d # imm = 0x1E1
ja 0x2c332
movw $0x1ff8, %ax # imm = 0x1FF8
xorl %edx, %edx
divw %r11w
movzwl %ax, %r9d
cmpl $0x9, %r8d
jb 0x2c343
leal (%r8,%r8), %eax
cmpl %eax, %r9d
cmovael %eax, %r9d
movl $0x0, 0x8(%rbx)
movl %r8d, 0xc(%rbx)
movl %r9d, 0x10(%rbx)
movl %r11d, 0x14(%rbx)
movl %edi, 0x18(%rbx)
movq %r10, 0x20(%rbx)
movq %rcx, (%rbx)
testq %rcx, %rcx
je 0x2c379
orq $0x100, %r10 # imm = 0x100
movq %r10, 0x20(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
testl %r8d, %r8d
je 0x2c370
imull %r11d, %r8d
movq %r8, %rsi
movq %r10, %rdx
callq 0x2b56d
movq %rax, (%rbx)
testq %rax, %rax
jne 0x2c370
movl $0x0, 0xc(%rbx)
jmp 0x2c370
|
init_dynamic_array2:
push rbp
mov rbp, rsp
push rbx
push rax
mov r11d, edx
mov rbx, rsi
mov r10, [rbp+arg_0]
test r9d, r9d
jnz short loc_2C343
mov r9d, 10h
cmp r11d, 1E1h
ja short loc_2C332
mov ax, 1FF8h
xor edx, edx
div r11w
movzx r9d, ax
loc_2C332:
cmp r8d, 9
jb short loc_2C343
lea eax, [r8+r8]
cmp r9d, eax
cmovnb r9d, eax
loc_2C343:
mov dword ptr [rbx+8], 0
mov [rbx+0Ch], r8d
mov [rbx+10h], r9d
mov [rbx+14h], r11d
mov [rbx+18h], edi
mov [rbx+20h], r10
mov [rbx], rcx
test rcx, rcx
jz short loc_2C379
or r10, 100h
mov [rbx+20h], r10
loc_2C370:
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
loc_2C379:
test r8d, r8d
jz short loc_2C370
imul r8d, r11d
mov rsi, r8
mov rdx, r10
call my_malloc
mov [rbx], rax
test rax, rax
jnz short loc_2C370
mov dword ptr [rbx+0Ch], 0
jmp short loc_2C370
|
long long init_dynamic_array2(
unsigned int a1,
long long a2,
unsigned int a3,
long long a4,
unsigned int a5,
unsigned int a6,
long long a7)
{
long long v8; // rax
if ( !a6 )
{
a6 = 16;
if ( a3 <= 0x1E1 )
a6 = 0x1FF8u / (unsigned __int16)a3;
if ( a5 >= 9 && a6 >= 2 * a5 )
a6 = 2 * a5;
}
*(_DWORD *)(a2 + 8) = 0;
*(_DWORD *)(a2 + 12) = a5;
*(_DWORD *)(a2 + 16) = a6;
*(_DWORD *)(a2 + 20) = a3;
*(_DWORD *)(a2 + 24) = a1;
*(_QWORD *)(a2 + 32) = a7;
*(_QWORD *)a2 = a4;
if ( a4 )
{
*(_QWORD *)(a2 + 32) = a7 | 0x100;
}
else if ( a5 )
{
v8 = my_malloc(a1, a3 * a5, a7);
*(_QWORD *)a2 = v8;
if ( !v8 )
*(_DWORD *)(a2 + 12) = 0;
}
return 0LL;
}
|
init_dynamic_array2:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV R11D,EDX
MOV RBX,RSI
MOV R10,qword ptr [RBP + 0x10]
TEST R9D,R9D
JNZ 0x0012c343
MOV R9D,0x10
CMP R11D,0x1e1
JA 0x0012c332
MOV AX,0x1ff8
XOR EDX,EDX
DIV R11W
MOVZX R9D,AX
LAB_0012c332:
CMP R8D,0x9
JC 0x0012c343
LEA EAX,[R8 + R8*0x1]
CMP R9D,EAX
CMOVNC R9D,EAX
LAB_0012c343:
MOV dword ptr [RBX + 0x8],0x0
MOV dword ptr [RBX + 0xc],R8D
MOV dword ptr [RBX + 0x10],R9D
MOV dword ptr [RBX + 0x14],R11D
MOV dword ptr [RBX + 0x18],EDI
MOV qword ptr [RBX + 0x20],R10
MOV qword ptr [RBX],RCX
TEST RCX,RCX
JZ 0x0012c379
OR R10,0x100
MOV qword ptr [RBX + 0x20],R10
LAB_0012c370:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_0012c379:
TEST R8D,R8D
JZ 0x0012c370
IMUL R8D,R11D
MOV RSI,R8
MOV RDX,R10
CALL 0x0012b56d
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JNZ 0x0012c370
MOV dword ptr [RBX + 0xc],0x0
JMP 0x0012c370
|
int8
init_dynamic_array2(int4 param_1,long *param_2,uint param_3,long param_4,uint param_5,
uint param_6,ulong param_7)
{
long lVar1;
if (param_6 == 0) {
param_6 = 0x10;
if (param_3 < 0x1e2) {
param_6 = 0x1ff8 / (param_3 & 0xffff);
}
if ((8 < param_5) && (param_5 * 2 <= param_6)) {
param_6 = param_5 * 2;
}
}
*(int4 *)(param_2 + 1) = 0;
*(uint *)((long)param_2 + 0xc) = param_5;
*(uint *)(param_2 + 2) = param_6;
*(uint *)((long)param_2 + 0x14) = param_3;
*(int4 *)(param_2 + 3) = param_1;
param_2[4] = param_7;
*param_2 = param_4;
if (param_4 == 0) {
if (param_5 != 0) {
lVar1 = my_malloc(param_1,param_5 * param_3,param_7);
*param_2 = lVar1;
if (lVar1 == 0) {
*(int4 *)((long)param_2 + 0xc) = 0;
}
}
}
else {
param_2[4] = param_7 | 0x100;
}
return 0;
}
|
|
62,391 |
ma_tls_init
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
void *ma_tls_init(MYSQL *mysql)
{
SSL *ssl= NULL;
SSL_CTX *ctx= NULL;
long default_options= SSL_OP_ALL |
SSL_OP_NO_SSLv2 |
SSL_OP_NO_SSLv3;
long options= 0;
pthread_mutex_lock(&LOCK_openssl_config);
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
if (!(ctx= SSL_CTX_new(TLS_client_method())))
#else
if (!(ctx= SSL_CTX_new(SSLv23_client_method())))
#endif
goto error;
if (mysql->options.extension)
options= ma_tls_version_options(mysql->options.extension->tls_version);
SSL_CTX_set_options(ctx, options ? options : default_options);
if (ma_tls_set_certs(mysql, ctx))
{
goto error;
}
if (!(ssl= SSL_new(ctx)))
goto error;
if (!SSL_set_app_data(ssl, mysql))
goto error;
pthread_mutex_unlock(&LOCK_openssl_config);
return (void *)ssl;
error:
pthread_mutex_unlock(&LOCK_openssl_config);
if (ctx)
SSL_CTX_free(ctx);
if (ssl)
SSL_free(ssl);
return NULL;
}
|
O3
|
c
|
ma_tls_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x22b5b(%rip), %rdi # 0x4a800
callq 0x136a0
callq 0x13200
movq %rax, %rdi
callq 0x13680
testq %rax, %rax
je 0x27d9a
movq %rax, %rbx
movq 0x480(%r14), %rax
testq %rax, %rax
je 0x27d74
movq 0xc0(%rax), %r15
testq %r15, %r15
je 0x27d74
leaq 0xcffd(%rip), %rsi # 0x34ce7
movq %r15, %rdi
callq 0x13100
xorl %r12d, %r12d
testq %rax, %rax
sete %r12b
shll $0x1a, %r12d
orq $0x3a000000, %r12 # imm = 0x3A000000
leaq 0xcfe1(%rip), %rsi # 0x34cef
movq %r15, %rdi
callq 0x13100
movl %r12d, %r13d
andl $0x2e000000, %r13d # imm = 0x2E000000
testq %rax, %rax
cmoveq %r12, %r13
leaq 0xcfc9(%rip), %rsi # 0x34cf7
movq %r15, %rdi
callq 0x13100
movl %r13d, %r12d
andl $0x36000000, %r12d # imm = 0x36000000
testq %rax, %rax
cmoveq %r13, %r12
leaq 0xcfb1(%rip), %rsi # 0x34cff
movq %r15, %rdi
callq 0x13100
movl %r12d, %esi
andl $0x1e000000, %esi # imm = 0x1E000000
testq %rax, %rax
cmoveq %r12, %rsi
cmpq $0x3e000000, %rsi # imm = 0x3E000000
je 0x27d74
testq %rsi, %rsi
jne 0x27d79
movl $0x82000850, %esi # imm = 0x82000850
movq %rbx, %rdi
callq 0x13810
movq 0x480(%r14), %rax
testq %rax, %rax
je 0x27dab
movq 0xa0(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x27db3
leaq 0x22a5f(%rip), %rdi # 0x4a800
callq 0x13330
jmp 0x28054
movq $0x0, -0x30(%rbp)
movq 0x400(%r14), %r15
movq 0x408(%r14), %r12
movq 0x420(%r14), %rsi
testq %rsi, %rsi
je 0x27df5
cmpb $0x0, (%rsi)
je 0x27df5
movq %rbx, %rdi
callq 0x13550
testl %eax, %eax
jne 0x27df5
movq 0x420(%r14), %rsi
movq %rbx, %rdi
callq 0x13430
testl %eax, %eax
je 0x28028
movq 0x410(%r14), %rsi
movq 0x418(%r14), %rdx
movq %rbx, %rdi
callq 0x135a0
testl %eax, %eax
je 0x27f8b
movq 0x480(%r14), %rax
testq %rax, %rax
je 0x27e71
cmpq $0x0, 0x10(%rax)
jne 0x27e2d
cmpq $0x0, 0x18(%rax)
je 0x27e71
movq %rbx, %rdi
callq 0x137f0
testq %rax, %rax
je 0x27e71
movq %rax, %r13
movq 0x480(%r14), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq %r13, %rdi
callq 0x13820
testl %eax, %eax
je 0x28028
movl $0xc, %esi
movq %r13, %rdi
callq 0x13310
testl %eax, %eax
je 0x28028
testq %r12, %r12
movq %r15, %r13
cmovneq %r12, %r13
testq %r15, %r15
cmoveq %r12, %r13
cmovneq %r15, %r12
testq %r13, %r13
cmoveq %r15, %r12
je 0x27eaa
cmpb $0x0, (%r13)
je 0x27eaa
movq %rbx, %rdi
movq %r13, %rsi
callq 0x13370
cmpl $0x1, %eax
jne 0x28028
testq %r12, %r12
je 0x27f15
cmpb $0x0, (%r12)
je 0x27f15
leaq 0xced5(%rip), %rsi # 0x34d92
movq %r12, %rdi
callq 0x13520
testq %rax, %rax
je 0x27fb9
movq %rax, %r15
callq 0x13790
leaq -0x38(%rbp), %r12
movq %rax, (%r12)
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq -0x30(%rbp), %rcx
callq 0x13300
movq %r15, %rdi
callq 0x13460
movq (%r12), %rsi
movq %rbx, %rdi
callq 0x133b0
cmpl $0x1, %eax
jne 0x27fea
movq -0x38(%rbp), %rdi
callq 0x132d0
testq %r13, %r13
je 0x27f2b
movq %rbx, %rdi
callq 0x13750
cmpl $0x1, %eax
jne 0x28028
movl $0x1, %esi
cmpq $0x0, 0x410(%r14)
jne 0x27f48
xorl %esi, %esi
cmpq $0x0, 0x418(%r14)
setne %sil
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x13120
movq %rbx, %rdi
callq 0x13480
testq %rax, %rax
je 0x28033
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x13140
testl %eax, %eax
je 0x27fe5
leaq 0x2287f(%rip), %rdi # 0x4a800
callq 0x13330
jmp 0x28057
cmpq $0x0, 0x410(%r14)
jne 0x28028
cmpq $0x0, 0x418(%r14)
jne 0x28028
movq %rbx, %rdi
callq 0x134f0
testl %eax, %eax
jne 0x27e13
jmp 0x28028
leaq 0x20a40(%rip), %rax # 0x48a00
movq (%rax), %rdx
leaq 0x20c46(%rip), %rax # 0x48c10
movq 0x20(%rax), %rcx
xorl %r15d, %r15d
movq %r14, %rdi
movl $0x7ea, %esi # imm = 0x7EA
movq %r12, %r8
xorl %eax, %eax
callq 0x15595
jmp 0x28033
movq %r12, %r15
jmp 0x28033
callq 0x130d0
movq %rax, %r15
movq -0x38(%rbp), %rdi
callq 0x132d0
testl %r15d, %r15d
setns %al
movl %r15d, %ecx
andl $0xff800000, %ecx # imm = 0xFF800000
cmpl $0x5800000, %ecx # imm = 0x5800000
sete %cl
testb %cl, %al
je 0x28028
andl $0x7fffff, %r15d # imm = 0x7FFFFF
cmpl $0x65, %r15d
je 0x27f0c
movq %r14, %rdi
callq 0x281d0
xorl %r15d, %r15d
leaq 0x227c6(%rip), %rdi # 0x4a800
callq 0x13330
movq %rbx, %rdi
callq 0x13090
testq %r15, %r15
je 0x28054
movq %r15, %rdi
callq 0x13280
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
ma_tls_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rdi
lea rdi, LOCK_openssl_config
call _pthread_mutex_lock
call _TLS_client_method
mov rdi, rax
call _SSL_CTX_new
test rax, rax
jz loc_27D9A
mov rbx, rax
mov rax, [r14+480h]
test rax, rax
jz loc_27D74
mov r15, [rax+0C0h]
test r15, r15
jz loc_27D74
lea rsi, aTlsv10; "TLSv1.0"
mov rdi, r15
call _strstr
xor r12d, r12d
test rax, rax
setz r12b
shl r12d, 1Ah
or r12, 3A000000h
lea rsi, aTlsv11; "TLSv1.1"
mov rdi, r15
call _strstr
mov r13d, r12d
and r13d, 2E000000h
test rax, rax
cmovz r13, r12
lea rsi, aTlsv12; "TLSv1.2"
mov rdi, r15
call _strstr
mov r12d, r13d
and r12d, 36000000h
test rax, rax
cmovz r12, r13
lea rsi, aTlsv13; "TLSv1.3"
mov rdi, r15
call _strstr
mov esi, r12d
and esi, 1E000000h
test rax, rax
cmovz rsi, r12
cmp rsi, 3E000000h
jz short loc_27D74
test rsi, rsi
jnz short loc_27D79
loc_27D74:
mov esi, 82000850h
loc_27D79:
mov rdi, rbx
call _SSL_CTX_set_options
mov rax, [r14+480h]
test rax, rax
jz short loc_27DAB
mov rax, [rax+0A0h]
mov [rbp+var_30], rax
jmp short loc_27DB3
loc_27D9A:
lea rdi, LOCK_openssl_config
call _pthread_mutex_unlock
jmp loc_28054
loc_27DAB:
mov [rbp+var_30], 0
loc_27DB3:
mov r15, [r14+400h]
mov r12, [r14+408h]
mov rsi, [r14+420h]
test rsi, rsi
jz short loc_27DF5
cmp byte ptr [rsi], 0
jz short loc_27DF5
mov rdi, rbx
call _SSL_CTX_set_ciphersuites
test eax, eax
jnz short loc_27DF5
mov rsi, [r14+420h]
mov rdi, rbx
call _SSL_CTX_set_cipher_list
test eax, eax
jz loc_28028
loc_27DF5:
mov rsi, [r14+410h]
mov rdx, [r14+418h]
mov rdi, rbx
call _SSL_CTX_load_verify_locations
test eax, eax
jz loc_27F8B
loc_27E13:
mov rax, [r14+480h]
test rax, rax
jz short loc_27E71
cmp qword ptr [rax+10h], 0
jnz short loc_27E2D
cmp qword ptr [rax+18h], 0
jz short loc_27E71
loc_27E2D:
mov rdi, rbx
call _SSL_CTX_get_cert_store
test rax, rax
jz short loc_27E71
mov r13, rax
mov rax, [r14+480h]
mov rsi, [rax+10h]
mov rdx, [rax+18h]
mov rdi, r13
call _X509_STORE_load_locations
test eax, eax
jz loc_28028
mov esi, 0Ch
mov rdi, r13
call _X509_STORE_set_flags
test eax, eax
jz loc_28028
loc_27E71:
test r12, r12
mov r13, r15
cmovnz r13, r12
test r15, r15
cmovz r13, r12
cmovnz r12, r15
test r13, r13
cmovz r12, r15
jz short loc_27EAA
cmp byte ptr [r13+0], 0
jz short loc_27EAA
mov rdi, rbx
mov rsi, r13
call _SSL_CTX_use_certificate_chain_file
cmp eax, 1
jnz loc_28028
loc_27EAA:
test r12, r12
jz short loc_27F15
cmp byte ptr [r12], 0
jz short loc_27F15
lea rsi, aRb; "rb"
mov rdi, r12
call _fopen64
test rax, rax
jz loc_27FB9
mov r15, rax
call _EVP_PKEY_new
lea r12, [rbp+var_38]
mov [r12], rax
mov rdi, r15
mov rsi, r12
xor edx, edx
mov rcx, [rbp+var_30]
call _PEM_read_PrivateKey
mov rdi, r15
call _fclose
mov rsi, [r12]
mov rdi, rbx
call _SSL_CTX_use_PrivateKey
cmp eax, 1
jnz loc_27FEA
loc_27F0C:
mov rdi, [rbp+var_38]
call _EVP_PKEY_free
loc_27F15:
test r13, r13
jz short loc_27F2B
mov rdi, rbx
call _SSL_CTX_check_private_key
cmp eax, 1
jnz loc_28028
loc_27F2B:
mov esi, 1
cmp qword ptr [r14+410h], 0
jnz short loc_27F48
xor esi, esi
cmp qword ptr [r14+418h], 0
setnz sil
loc_27F48:
xor r15d, r15d
mov rdi, rbx
xor edx, edx
call _SSL_CTX_set_verify
mov rdi, rbx
call _SSL_new
test rax, rax
jz loc_28033
mov r12, rax
mov rdi, rax
xor esi, esi
mov rdx, r14
call _SSL_set_ex_data
test eax, eax
jz short loc_27FE5
lea rdi, LOCK_openssl_config
call _pthread_mutex_unlock
jmp loc_28057
loc_27F8B:
cmp qword ptr [r14+410h], 0
jnz loc_28028
cmp qword ptr [r14+418h], 0
jnz loc_28028
mov rdi, rbx
call _SSL_CTX_set_default_verify_paths
test eax, eax
jnz loc_27E13
jmp short loc_28028
loc_27FB9:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, mariadb_client_errors
mov rcx, [rax+20h]
xor r15d, r15d
mov rdi, r14
mov esi, 7EAh
mov r8, r12
xor eax, eax
call my_set_error
jmp short loc_28033
loc_27FE5:
mov r15, r12
jmp short loc_28033
loc_27FEA:
call _ERR_peek_error
mov r15, rax
mov rdi, [rbp+var_38]
call _EVP_PKEY_free
test r15d, r15d
setns al
mov ecx, r15d
and ecx, 0FF800000h
cmp ecx, 5800000h
setz cl
test al, cl
jz short loc_28028
and r15d, 7FFFFFh
cmp r15d, 65h ; 'e'
jz loc_27F0C
loc_28028:
mov rdi, r14
call ma_tls_set_error
xor r15d, r15d
loc_28033:
lea rdi, LOCK_openssl_config
call _pthread_mutex_unlock
mov rdi, rbx
call _SSL_CTX_free
test r15, r15
jz short loc_28054
mov rdi, r15
call _SSL_free
loc_28054:
xor r12d, r12d
loc_28057:
mov rax, r12
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_tls_init(_QWORD *a1)
{
long long v1; // rax
long long v2; // rax
long long v3; // rbx
long long v4; // rax
long long v5; // r15
long long v6; // r12
long long v7; // r13
long long v8; // r12
long long v9; // rsi
long long v10; // rax
_BYTE *v11; // r15
_BYTE *v12; // r12
_BYTE *v13; // rsi
long long v14; // rax
long long cert_store; // rax
long long v16; // r13
_BYTE *v17; // r13
long long v18; // rax
long long v19; // r15
_BOOL8 v20; // rsi
long long v21; // r15
long long v22; // rax
long long v23; // r12
int v24; // r15d
long long v26; // [rsp+8h] [rbp-38h] BYREF
long long v27; // [rsp+10h] [rbp-30h]
pthread_mutex_lock(&LOCK_openssl_config);
v1 = TLS_client_method();
v2 = SSL_CTX_new(v1);
if ( !v2 )
{
pthread_mutex_unlock(&LOCK_openssl_config);
return 0LL;
}
v3 = v2;
v4 = a1[144];
if ( !v4 )
goto LABEL_12;
v5 = *(_QWORD *)(v4 + 192);
if ( !v5 )
goto LABEL_12;
v6 = ((unsigned __int8)(strstr(*(_QWORD *)(v4 + 192), "TLSv1.0") == 0) << 26) | 0x3A000000LL;
v7 = v6 & 0x2E000000;
if ( !strstr(v5, "TLSv1.1") )
v7 = v6;
v8 = v7 & 0x36000000;
if ( !strstr(v5, "TLSv1.2") )
v8 = v7;
v9 = v8 & 0x1E000000;
if ( !strstr(v5, "TLSv1.3") )
v9 = v8;
if ( v9 == 1040187392 || !v9 )
LABEL_12:
v9 = 2181040208LL;
SSL_CTX_set_options(v3, v9);
v10 = a1[144];
if ( v10 )
v27 = *(_QWORD *)(v10 + 160);
else
v27 = 0LL;
v11 = (_BYTE *)a1[128];
v12 = (_BYTE *)a1[129];
v13 = (_BYTE *)a1[132];
if ( v13 && *v13 && !(unsigned int)SSL_CTX_set_ciphersuites(v3) && !(unsigned int)SSL_CTX_set_cipher_list(v3, a1[132]) )
goto LABEL_57;
if ( !(unsigned int)SSL_CTX_load_verify_locations(v3, a1[130], a1[131])
&& (a1[130] || a1[131] || !(unsigned int)SSL_CTX_set_default_verify_paths(v3)) )
{
goto LABEL_57;
}
v14 = a1[144];
if ( v14 && (*(_QWORD *)(v14 + 16) || *(_QWORD *)(v14 + 24)) )
{
cert_store = SSL_CTX_get_cert_store(v3);
if ( cert_store )
{
v16 = cert_store;
if ( !(unsigned int)X509_STORE_load_locations(
cert_store,
*(_QWORD *)(a1[144] + 16LL),
*(_QWORD *)(a1[144] + 24LL))
|| !(unsigned int)X509_STORE_set_flags(v16, 12LL) )
{
goto LABEL_57;
}
}
}
v17 = v11;
if ( v12 )
v17 = v12;
if ( v11 )
v12 = v11;
else
v17 = v12;
if ( v17 )
{
if ( *v17 && (unsigned int)SSL_CTX_use_certificate_chain_file(v3, v17) != 1 )
goto LABEL_57;
}
else
{
v12 = v11;
}
if ( v12 && *v12 )
{
v18 = fopen64(v12, "rb");
if ( !v18 )
{
v21 = 0LL;
my_set_error((long long)a1, 2026, (long long)SQLSTATE_UNKNOWN, mariadb_client_errors[4], v12);
goto LABEL_58;
}
v19 = v18;
v26 = EVP_PKEY_new();
PEM_read_PrivateKey(v19, &v26, 0LL, v27);
fclose(v19);
if ( (unsigned int)SSL_CTX_use_PrivateKey(v3, v26) != 1 )
{
v24 = ERR_peek_error();
EVP_PKEY_free(v26);
if ( (v24 & 0xFF800000) != 92274688 || v24 < 0 || (v24 & 0x7FFFFF) != 0x65 )
goto LABEL_57;
}
EVP_PKEY_free(v26);
}
if ( v17 && (unsigned int)SSL_CTX_check_private_key(v3) != 1 )
{
LABEL_57:
ma_tls_set_error(a1);
v21 = 0LL;
LABEL_58:
pthread_mutex_unlock(&LOCK_openssl_config);
SSL_CTX_free(v3);
if ( v21 )
SSL_free(v21);
return 0LL;
}
v20 = 1LL;
if ( !a1[130] )
v20 = a1[131] != 0LL;
v21 = 0LL;
SSL_CTX_set_verify(v3, v20, 0LL);
v22 = SSL_new(v3);
if ( !v22 )
goto LABEL_58;
v23 = v22;
if ( !(unsigned int)SSL_set_ex_data(v22, 0LL, a1) )
{
v21 = v23;
goto LABEL_58;
}
pthread_mutex_unlock(&LOCK_openssl_config);
return v23;
}
|
ma_tls_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RDI
LEA RDI,[0x14a800]
CALL 0x001136a0
CALL 0x00113200
MOV RDI,RAX
CALL 0x00113680
TEST RAX,RAX
JZ 0x00127d9a
MOV RBX,RAX
MOV RAX,qword ptr [R14 + 0x480]
TEST RAX,RAX
JZ 0x00127d74
MOV R15,qword ptr [RAX + 0xc0]
TEST R15,R15
JZ 0x00127d74
LEA RSI,[0x134ce7]
MOV RDI,R15
CALL 0x00113100
XOR R12D,R12D
TEST RAX,RAX
SETZ R12B
SHL R12D,0x1a
OR R12,0x3a000000
LEA RSI,[0x134cef]
MOV RDI,R15
CALL 0x00113100
MOV R13D,R12D
AND R13D,0x2e000000
TEST RAX,RAX
CMOVZ R13,R12
LEA RSI,[0x134cf7]
MOV RDI,R15
CALL 0x00113100
MOV R12D,R13D
AND R12D,0x36000000
TEST RAX,RAX
CMOVZ R12,R13
LEA RSI,[0x134cff]
MOV RDI,R15
CALL 0x00113100
MOV ESI,R12D
AND ESI,0x1e000000
TEST RAX,RAX
CMOVZ RSI,R12
CMP RSI,0x3e000000
JZ 0x00127d74
TEST RSI,RSI
JNZ 0x00127d79
LAB_00127d74:
MOV ESI,0x82000850
LAB_00127d79:
MOV RDI,RBX
CALL 0x00113810
MOV RAX,qword ptr [R14 + 0x480]
TEST RAX,RAX
JZ 0x00127dab
MOV RAX,qword ptr [RAX + 0xa0]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00127db3
LAB_00127d9a:
LEA RDI,[0x14a800]
CALL 0x00113330
JMP 0x00128054
LAB_00127dab:
MOV qword ptr [RBP + -0x30],0x0
LAB_00127db3:
MOV R15,qword ptr [R14 + 0x400]
MOV R12,qword ptr [R14 + 0x408]
MOV RSI,qword ptr [R14 + 0x420]
TEST RSI,RSI
JZ 0x00127df5
CMP byte ptr [RSI],0x0
JZ 0x00127df5
MOV RDI,RBX
CALL 0x00113550
TEST EAX,EAX
JNZ 0x00127df5
MOV RSI,qword ptr [R14 + 0x420]
MOV RDI,RBX
CALL 0x00113430
TEST EAX,EAX
JZ 0x00128028
LAB_00127df5:
MOV RSI,qword ptr [R14 + 0x410]
MOV RDX,qword ptr [R14 + 0x418]
MOV RDI,RBX
CALL 0x001135a0
TEST EAX,EAX
JZ 0x00127f8b
LAB_00127e13:
MOV RAX,qword ptr [R14 + 0x480]
TEST RAX,RAX
JZ 0x00127e71
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x00127e2d
CMP qword ptr [RAX + 0x18],0x0
JZ 0x00127e71
LAB_00127e2d:
MOV RDI,RBX
CALL 0x001137f0
TEST RAX,RAX
JZ 0x00127e71
MOV R13,RAX
MOV RAX,qword ptr [R14 + 0x480]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RAX + 0x18]
MOV RDI,R13
CALL 0x00113820
TEST EAX,EAX
JZ 0x00128028
MOV ESI,0xc
MOV RDI,R13
CALL 0x00113310
TEST EAX,EAX
JZ 0x00128028
LAB_00127e71:
TEST R12,R12
MOV R13,R15
CMOVNZ R13,R12
TEST R15,R15
CMOVZ R13,R12
CMOVNZ R12,R15
TEST R13,R13
CMOVZ R12,R15
JZ 0x00127eaa
CMP byte ptr [R13],0x0
JZ 0x00127eaa
MOV RDI,RBX
MOV RSI,R13
CALL 0x00113370
CMP EAX,0x1
JNZ 0x00128028
LAB_00127eaa:
TEST R12,R12
JZ 0x00127f15
CMP byte ptr [R12],0x0
JZ 0x00127f15
LEA RSI,[0x134d92]
MOV RDI,R12
CALL 0x00113520
TEST RAX,RAX
JZ 0x00127fb9
MOV R15,RAX
CALL 0x00113790
LEA R12,[RBP + -0x38]
MOV qword ptr [R12],RAX
MOV RDI,R15
MOV RSI,R12
XOR EDX,EDX
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x00113300
MOV RDI,R15
CALL 0x00113460
MOV RSI,qword ptr [R12]
MOV RDI,RBX
CALL 0x001133b0
CMP EAX,0x1
JNZ 0x00127fea
LAB_00127f0c:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001132d0
LAB_00127f15:
TEST R13,R13
JZ 0x00127f2b
MOV RDI,RBX
CALL 0x00113750
CMP EAX,0x1
JNZ 0x00128028
LAB_00127f2b:
MOV ESI,0x1
CMP qword ptr [R14 + 0x410],0x0
JNZ 0x00127f48
XOR ESI,ESI
CMP qword ptr [R14 + 0x418],0x0
SETNZ SIL
LAB_00127f48:
XOR R15D,R15D
MOV RDI,RBX
XOR EDX,EDX
CALL 0x00113120
MOV RDI,RBX
CALL 0x00113480
TEST RAX,RAX
JZ 0x00128033
MOV R12,RAX
MOV RDI,RAX
XOR ESI,ESI
MOV RDX,R14
CALL 0x00113140
TEST EAX,EAX
JZ 0x00127fe5
LEA RDI,[0x14a800]
CALL 0x00113330
JMP 0x00128057
LAB_00127f8b:
CMP qword ptr [R14 + 0x410],0x0
JNZ 0x00128028
CMP qword ptr [R14 + 0x418],0x0
JNZ 0x00128028
MOV RDI,RBX
CALL 0x001134f0
TEST EAX,EAX
JNZ 0x00127e13
JMP 0x00128028
LAB_00127fb9:
LEA RAX,[0x148a00]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x148c10]
MOV RCX,qword ptr [RAX + 0x20]
XOR R15D,R15D
MOV RDI,R14
MOV ESI,0x7ea
MOV R8,R12
XOR EAX,EAX
CALL 0x00115595
JMP 0x00128033
LAB_00127fe5:
MOV R15,R12
JMP 0x00128033
LAB_00127fea:
CALL 0x001130d0
MOV R15,RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001132d0
TEST R15D,R15D
SETNS AL
MOV ECX,R15D
AND ECX,0xff800000
CMP ECX,0x5800000
SETZ CL
TEST AL,CL
JZ 0x00128028
AND R15D,0x7fffff
CMP R15D,0x65
JZ 0x00127f0c
LAB_00128028:
MOV RDI,R14
CALL 0x001281d0
XOR R15D,R15D
LAB_00128033:
LEA RDI,[0x14a800]
CALL 0x00113330
MOV RDI,RBX
CALL 0x00113090
TEST R15,R15
JZ 0x00128054
MOV RDI,R15
CALL 0x00113280
LAB_00128054:
XOR R12D,R12D
LAB_00128057:
MOV RAX,R12
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
SSL * ma_tls_init(void *param_1)
{
long lVar1;
char *file;
int iVar2;
SSL_METHOD *meth;
SSL_CTX *ctx;
char *pcVar3;
char *pcVar4;
X509_STORE *ctx_00;
FILE *fp;
SSL *ssl;
ulong uVar5;
uint uVar6;
char *pcVar7;
uint uVar8;
SSL *ssl_00;
EVP_PKEY *local_40;
void *local_38;
pthread_mutex_lock((pthread_mutex_t *)LOCK_openssl_config);
meth = (SSL_METHOD *)TLS_client_method();
ctx = SSL_CTX_new(meth);
if (ctx == (SSL_CTX *)0x0) {
pthread_mutex_unlock((pthread_mutex_t *)LOCK_openssl_config);
return (SSL *)0x0;
}
if ((*(long *)((long)param_1 + 0x480) == 0) ||
(pcVar4 = *(char **)(*(long *)((long)param_1 + 0x480) + 0xc0), pcVar4 == (char *)0x0)) {
LAB_00127d74:
uVar8 = 0x82000850;
}
else {
pcVar3 = strstr(pcVar4,"TLSv1.0");
uVar6 = (uint)(pcVar3 == (char *)0x0) << 0x1a;
pcVar3 = strstr(pcVar4,"TLSv1.1");
uVar8 = uVar6 | 0x2a000000;
if (pcVar3 == (char *)0x0) {
uVar8 = uVar6 | 0x3a000000;
}
pcVar3 = strstr(pcVar4,"TLSv1.2");
uVar6 = uVar8 & 0x36000000;
if (pcVar3 == (char *)0x0) {
uVar6 = uVar8;
}
pcVar4 = strstr(pcVar4,"TLSv1.3");
uVar8 = uVar6 & 0x1e000000;
if (pcVar4 == (char *)0x0) {
uVar8 = uVar6;
}
if ((uVar8 == 0x3e000000) || (uVar8 == 0)) goto LAB_00127d74;
}
SSL_CTX_set_options(ctx,uVar8);
if (*(long *)((long)param_1 + 0x480) == 0) {
local_38 = (void *)0x0;
}
else {
local_38 = *(void **)(*(long *)((long)param_1 + 0x480) + 0xa0);
}
pcVar4 = *(char **)((long)param_1 + 0x400);
pcVar3 = *(char **)((long)param_1 + 0x408);
if ((((((*(char **)((long)param_1 + 0x420) == (char *)0x0) ||
(**(char **)((long)param_1 + 0x420) == '\0')) ||
(iVar2 = SSL_CTX_set_ciphersuites(ctx), iVar2 != 0)) ||
(iVar2 = SSL_CTX_set_cipher_list(ctx,*(char **)((long)param_1 + 0x420)), iVar2 != 0)) &&
((iVar2 = SSL_CTX_load_verify_locations
(ctx,*(char **)((long)param_1 + 0x410),*(char **)((long)param_1 + 0x418)),
iVar2 != 0 ||
(((*(long *)((long)param_1 + 0x410) == 0 && (*(long *)((long)param_1 + 0x418) == 0)) &&
(iVar2 = SSL_CTX_set_default_verify_paths(ctx), iVar2 != 0)))))) &&
((((lVar1 = *(long *)((long)param_1 + 0x480), lVar1 == 0 ||
((*(long *)(lVar1 + 0x10) == 0 && (*(long *)(lVar1 + 0x18) == 0)))) ||
(ctx_00 = SSL_CTX_get_cert_store(ctx), ctx_00 == (X509_STORE *)0x0)) ||
((iVar2 = X509_STORE_load_locations
(ctx_00,*(char **)(*(long *)((long)param_1 + 0x480) + 0x10),
*(char **)(*(long *)((long)param_1 + 0x480) + 0x18)), iVar2 != 0 &&
(iVar2 = X509_STORE_set_flags(ctx_00,0xc), iVar2 != 0)))))) {
pcVar7 = pcVar4;
if (pcVar3 != (char *)0x0) {
pcVar7 = pcVar3;
}
file = pcVar3;
if (pcVar4 != (char *)0x0) {
pcVar3 = pcVar4;
file = pcVar7;
}
if (((file == (char *)0x0) || (pcVar4 = pcVar3, *file == '\0')) ||
(iVar2 = SSL_CTX_use_certificate_chain_file(ctx,file), iVar2 == 1)) {
if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {
fp = fopen64(pcVar4,"rb");
if (fp == (FILE *)0x0) {
my_set_error(param_1,0x7ea,SQLSTATE_UNKNOWN,mariadb_client_errors._32_8_,pcVar4);
ssl_00 = (SSL *)0x0;
goto LAB_00128033;
}
local_40 = EVP_PKEY_new();
PEM_read_PrivateKey(fp,&local_40,(int1 *)0x0,local_38);
fclose(fp);
iVar2 = SSL_CTX_use_PrivateKey(ctx,local_40);
if (iVar2 != 1) {
uVar5 = ERR_peek_error();
EVP_PKEY_free(local_40);
uVar8 = (uint)uVar5;
if (((int)uVar8 < 0 || (uVar8 & 0xff800000) != 0x5800000) || ((uVar8 & 0x7fffff) != 0x65))
goto LAB_00128028;
}
EVP_PKEY_free(local_40);
}
if ((file == (char *)0x0) || (iVar2 = SSL_CTX_check_private_key(ctx), iVar2 == 1)) {
uVar8 = 1;
if (*(long *)((long)param_1 + 0x410) == 0) {
uVar8 = (uint)(*(long *)((long)param_1 + 0x418) != 0);
}
SSL_CTX_set_verify(ctx,uVar8,(callback *)0x0);
ssl = SSL_new(ctx);
ssl_00 = (SSL *)0x0;
if ((ssl != (SSL *)0x0) &&
(iVar2 = SSL_set_ex_data(ssl,0,param_1), ssl_00 = ssl, iVar2 != 0)) {
pthread_mutex_unlock((pthread_mutex_t *)LOCK_openssl_config);
return ssl;
}
goto LAB_00128033;
}
}
}
LAB_00128028:
ma_tls_set_error(param_1);
ssl_00 = (SSL *)0x0;
LAB_00128033:
pthread_mutex_unlock((pthread_mutex_t *)LOCK_openssl_config);
SSL_CTX_free(ctx);
if (ssl_00 != (SSL *)0x0) {
SSL_free(ssl_00);
}
return (SSL *)0x0;
}
|
|
62,392 |
mbedtls_ctr_drbg_free
|
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/ctr_drbg.c
|
void mbedtls_ctr_drbg_free(mbedtls_ctr_drbg_context *ctx)
{
if (ctx == NULL) {
return;
}
#if defined(MBEDTLS_THREADING_C)
/* The mutex is initialized iff f_entropy is set. */
if (ctx->f_entropy != NULL) {
mbedtls_mutex_free(&ctx->mutex);
}
#endif
mbedtls_aes_free(&ctx->aes_ctx);
mbedtls_platform_zeroize(ctx, sizeof(mbedtls_ctr_drbg_context));
ctx->reseed_interval = MBEDTLS_CTR_DRBG_RESEED_INTERVAL;
ctx->reseed_counter = -1;
}
|
O3
|
c
|
mbedtls_ctr_drbg_free:
testq %rdi, %rdi
je 0x82c2a
pushq %rbx
movq %rdi, %rbx
addq $0x28, %rdi
callq 0x7b604
movl $0x158, %esi # imm = 0x158
movq %rbx, %rdi
callq 0x8db8c
movl $0x2710, 0x20(%rbx) # imm = 0x2710
movl $0xffffffff, 0x10(%rbx) # imm = 0xFFFFFFFF
popq %rbx
retq
|
mbedtls_ctr_drbg_free:
test rdi, rdi
jz short locret_82C2A
push rbx
mov rbx, rdi
add rdi, 28h ; '('
call mbedtls_aes_free
mov esi, 158h
mov rdi, rbx
call mbedtls_platform_zeroize
mov dword ptr [rbx+20h], 2710h
mov dword ptr [rbx+10h], 0FFFFFFFFh
pop rbx
locret_82C2A:
retn
|
long long mbedtls_ctr_drbg_free(long long a1)
{
long long result; // rax
if ( a1 )
{
mbedtls_aes_free(a1 + 40);
result = mbedtls_platform_zeroize(a1, 344LL);
*(_DWORD *)(a1 + 32) = 10000;
*(_DWORD *)(a1 + 16) = -1;
}
return result;
}
|
mbedtls_ctr_drbg_free:
TEST RDI,RDI
JZ 0x00182c2a
PUSH RBX
MOV RBX,RDI
ADD RDI,0x28
CALL 0x0017b604
MOV ESI,0x158
MOV RDI,RBX
CALL 0x0018db8c
MOV dword ptr [RBX + 0x20],0x2710
MOV dword ptr [RBX + 0x10],0xffffffff
POP RBX
LAB_00182c2a:
RET
|
void mbedtls_ctr_drbg_free(long param_1)
{
if (param_1 != 0) {
mbedtls_aes_free(param_1 + 0x28);
mbedtls_platform_zeroize(param_1,0x158);
*(int4 *)(param_1 + 0x20) = 10000;
*(int4 *)(param_1 + 0x10) = 0xffffffff;
}
return;
}
|
|
62,393 |
my_uni_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static int my_uni_utf8mb3(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r, uchar *e)
{
if (wc < 0x80)
{
if (r >= e)
return MY_CS_TOOSMALL;
*r= (uchar) wc;
return 1;
}
if (wc < 0x800)
{
if (r + 2 > e)
return MY_CS_TOOSMALLN(2);
/* U+0080..U+07FF: 00000xxx.xxyyyyyy -> 110xxxxx 10yyyyyy */
*r++= (uchar) (0xC0 | (wc >> 6));
*r= (uchar) (0x80 | (wc & 0x3F));
return 2;
}
if (wc < 0x10000)
{
if (r + 3 > e)
return MY_CS_TOOSMALLN(3);
/* U+0800..U+FFFF: xxxxyyyy.yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz */
*r++= (uchar) (0xE0 | (wc >> 12));
*r++= (uchar) (0x80 | ((wc >> 6) & 0x3f));
*r= (uchar) (0x80 | (wc & 0x3f));
return 3;
}
return MY_CS_ILUNI;
}
|
O0
|
c
|
my_uni_utf8mb3:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x80, -0x18(%rbp)
jae 0x6b77c
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x6b764
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x6b870
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x6b870
cmpq $0x800, -0x18(%rbp) # imm = 0x800
jae 0x6b7e3
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x6b7a0
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x6b870
movq -0x18(%rbp), %rax
shrq $0x6, %rax
orq $0xc0, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0x6b870
cmpq $0x10000, -0x18(%rbp) # imm = 0x10000
jae 0x6b869
movq -0x20(%rbp), %rax
addq $0x3, %rax
cmpq -0x28(%rbp), %rax
jbe 0x6b804
movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99
jmp 0x6b870
movq -0x18(%rbp), %rax
shrq $0xc, %rax
orq $0xe0, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0x6b870
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_uni_utf8mb3:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
cmp [rbp+var_18], 80h
jnb short loc_6B77C
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_6B764
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_6B870
loc_6B764:
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 1
jmp loc_6B870
loc_6B77C:
cmp [rbp+var_18], 800h
jnb short loc_6B7E3
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_6B7A0
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_6B870
loc_6B7A0:
mov rax, [rbp+var_18]
shr rax, 6
or rax, 0C0h
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_18]
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 2
jmp loc_6B870
loc_6B7E3:
cmp [rbp+var_18], 10000h
jnb short loc_6B869
mov rax, [rbp+var_20]
add rax, 3
cmp rax, [rbp+var_28]
jbe short loc_6B804
mov [rbp+var_4], 0FFFFFF99h
jmp short loc_6B870
loc_6B804:
mov rax, [rbp+var_18]
shr rax, 0Ch
or rax, 0E0h
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_18]
shr rax, 6
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_18]
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 3
jmp short loc_6B870
loc_6B869:
mov [rbp+var_4], 0
loc_6B870:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_uni_utf8mb3(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
if ( a2 >= 0x80 )
{
if ( a2 >= 0x800 )
{
if ( a2 >= 0x10000 )
{
return 0;
}
else if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = (a2 >> 12) | 0xE0;
a3[1] = (a2 >> 6) & 0x3F | 0x80;
a3[2] = a2 & 0x3F | 0x80;
return 3;
}
else
{
return (unsigned int)-103;
}
}
else if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = (a2 >> 6) | 0xC0;
a3[1] = a2 & 0x3F | 0x80;
return 2;
}
else
{
return (unsigned int)-102;
}
}
else if ( (unsigned long long)a3 < a4 )
{
*a3 = a2;
return 1;
}
else
{
return (unsigned int)-101;
}
}
|
my_uni_utf8mb3:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
CMP qword ptr [RBP + -0x18],0x80
JNC 0x0016b77c
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0016b764
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0016b870
LAB_0016b764:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0016b870
LAB_0016b77c:
CMP qword ptr [RBP + -0x18],0x800
JNC 0x0016b7e3
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0016b7a0
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x0016b870
LAB_0016b7a0:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
OR RAX,0xc0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0016b870
LAB_0016b7e3:
CMP qword ptr [RBP + -0x18],0x10000
JNC 0x0016b869
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0016b804
MOV dword ptr [RBP + -0x4],0xffffff99
JMP 0x0016b870
LAB_0016b804:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0xc
OR RAX,0xe0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x3
JMP 0x0016b870
LAB_0016b869:
MOV dword ptr [RBP + -0x4],0x0
LAB_0016b870:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_uni_utf8mb3(int8 param_1,ulong param_2,byte *param_3,byte *param_4)
{
byte bVar1;
int4 local_c;
bVar1 = (byte)param_2;
if (param_2 < 0x80) {
if (param_3 < param_4) {
*param_3 = bVar1;
local_c = 1;
}
else {
local_c = 0xffffff9b;
}
}
else if (param_2 < 0x800) {
if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else {
*param_3 = (byte)(param_2 >> 6) | 0xc0;
param_3[1] = bVar1 & 0x3f | 0x80;
local_c = 2;
}
}
else if (param_2 < 0x10000) {
if (param_4 < param_3 + 3) {
local_c = 0xffffff99;
}
else {
*param_3 = (byte)(param_2 >> 0xc) | 0xe0;
param_3[1] = (byte)(param_2 >> 6) & 0x3f | 0x80;
param_3[2] = bVar1 & 0x3f | 0x80;
local_c = 3;
}
}
else {
local_c = 0;
}
return local_c;
}
|
|
62,394 |
my_fprintf
|
eloqsql/strings/my_vsnprintf.c
|
int my_fprintf(FILE *stream, const char* format, ...)
{
int result;
va_list args;
va_start(args, format);
result= my_vfprintf(stream, format, args);
va_end(args);
return result;
}
|
O0
|
c
|
my_fprintf:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
testb %al, %al
je 0x7c8e8
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %r9, -0xb8(%rbp)
movq %r8, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rdx, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x30, -0x2c(%rbp)
movl $0x10, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x7c700
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)
|
my_fprintf:
push rbp
mov rbp, rsp
sub rsp, 0E0h
test al, al
jz short loc_7C8E8
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_7C8E8:
mov [rbp+var_B8], r9
mov [rbp+var_C0], r8
mov [rbp+var_C8], rcx
mov [rbp+var_D0], rdx
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rax, [rbp+var_E0]
mov [rbp+var_20], rax
lea rax, [rbp+arg_0]
mov [rbp+var_28], rax
mov [rbp+var_2C], 30h ; '0'
mov [rbp+var_30], 10h
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_30]
call my_vfprintf
mov [rbp+var_14], eax
mov eax, [rbp+var_14]
add rsp, 0E0h
pop rbp
retn
|
long long my_fprintf(
long long a1,
char *a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-E0h] BYREF
long long v17; // [rsp+10h] [rbp-D0h]
long long v18; // [rsp+18h] [rbp-C8h]
long long v19; // [rsp+20h] [rbp-C0h]
long long v20; // [rsp+28h] [rbp-B8h]
__m128 v21; // [rsp+30h] [rbp-B0h]
__m128 v22; // [rsp+40h] [rbp-A0h]
__m128 v23; // [rsp+50h] [rbp-90h]
__m128 v24; // [rsp+60h] [rbp-80h]
__m128 v25; // [rsp+70h] [rbp-70h]
__m128 v26; // [rsp+80h] [rbp-60h]
__m128 v27; // [rsp+90h] [rbp-50h]
__m128 v28; // [rsp+A0h] [rbp-40h]
int v29[2]; // [rsp+B0h] [rbp-30h] BYREF
char *v30; // [rsp+B8h] [rbp-28h]
char *v31; // [rsp+C0h] [rbp-20h]
char *v32; // [rsp+D0h] [rbp-10h]
long long v33; // [rsp+D8h] [rbp-8h]
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v20 = a6;
v19 = a5;
v18 = a4;
v17 = a3;
v33 = a1;
v32 = a2;
v31 = &v16;
v30 = &a15;
v29[1] = 48;
v29[0] = 16;
return (unsigned int)my_vfprintf(a1, a2, v29);
}
|
my_fprintf:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
TEST AL,AL
JZ 0x0017c8e8
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_0017c8e8:
MOV qword ptr [RBP + -0xb8],R9
MOV qword ptr [RBP + -0xc0],R8
MOV qword ptr [RBP + -0xc8],RCX
MOV qword ptr [RBP + -0xd0],RDX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + -0xe0]
MOV qword ptr [RBP + -0x20],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV dword ptr [RBP + -0x2c],0x30
MOV dword ptr [RBP + -0x30],0x10
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x30]
CALL 0x0017c700
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x14]
ADD RSP,0xe0
POP RBP
RET
|
int4
my_fprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int4 uVar1;
int1 local_e8 [16];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int4 local_38;
int4 local_34;
int1 *local_30;
int1 *local_28;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
local_30 = &stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
local_18 = param_10;
local_10 = param_9;
uVar1 = my_vfprintf(param_9,param_10,&local_38);
return uVar1;
}
|
|
62,395 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3]>(char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3])
|
monkey531[P]llama/common/./json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O1
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3]>(char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq (%rsi), %rdi
callq 0x19320
movq %rax, %rbp
movq %r12, %rdi
callq 0x19320
movq 0x8(%r15), %rcx
addq %rbp, %rax
leaq (%rcx,%rax), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x19a90
movq (%r13), %rsi
movq %rbx, %rdi
callq 0x19d30
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19d30
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x191f0
movsbl (%r14), %esi
movq %rbx, %rdi
callq 0x195d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x3a14d
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x196d0
movq %r14, %rdi
callq 0x19c00
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+38h+var_38], rax
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, [rsi]
call _strlen
mov rbp, rax
mov rdi, r12
call _strlen
mov rcx, [r15+8]
add rax, rbp
lea rsi, [rcx+rax]
inc rsi
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, [r13+0]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
movsx esi, byte ptr [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_3A14D
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3A14D:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
long long a1,
_QWORD *a2,
long long a3,
_QWORD *a4,
char *a5)
{
long long v8; // rbp
long long v9; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v8 = strlen(*a2);
v9 = strlen(a3);
std::string::reserve(a1, a4[1] + v8 + v9 + 1);
std::string::append(a1, *a2);
std::string::append(a1, a3);
std::string::_M_append(a1, *a4, a4[1]);
std::string::push_back(a1, (unsigned int)*a5);
return a1;
}
|
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,qword ptr [RSI]
CALL 0x00119320
MOV RBP,RAX
MOV RDI,R12
CALL 0x00119320
MOV RCX,qword ptr [R15 + 0x8]
ADD RAX,RBP
LEA RSI,[RCX + RAX*0x1]
INC RSI
LAB_0013a0e6:
MOV RDI,RBX
CALL 0x00119a90
MOV RSI,qword ptr [R13]
MOV RDI,RBX
CALL 0x00119d30
MOV RDI,RBX
MOV RSI,R12
CALL 0x00119d30
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV RDI,RBX
CALL 0x001191f0
MOVSX ESI,byte ptr [R14]
MOV RDI,RBX
CALL 0x001195d0
LAB_0013a120:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char
const*, char const (&) [15], std::__cxx11::string, char>(char const*&&, char const (&) [15],
std::__cxx11::string&&, char&&) */
char ** nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>
(char **param_1,char *param_2,string *param_3,char *param_4)
{
*param_1 = (char *)(param_1 + 2);
param_1[1] = (char *)0x0;
*(int1 *)(param_1 + 2) = 0;
strlen(*(char **)param_2);
strlen((char *)param_3);
/* try { // try from 0013a0e6 to 0013a11f has its CatchHandler @ 0013a132 */
std::__cxx11::string::reserve((ulong)param_1);
std::__cxx11::string::append((char *)param_1);
std::__cxx11::string::append((char *)param_1);
std::__cxx11::string::_M_append((char *)param_1,*(ulong *)param_4);
std::__cxx11::string::push_back((char)param_1);
return param_1;
}
|
|
62,396 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3]>(char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3])
|
monkey531[P]llama/common/./json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O2
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3]>(char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3]):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x37241
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20a90
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x8da62
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20de8
movq %r14, %rdi
callq 0x20bf0
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA32_KcPS9_EEET_DpOT0_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
mov rsi, rdx
call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJPKcEEEmS4_DpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(char const*,char const* const&)
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
mov rax, rbx
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(a2, a3);
std::string::reserve(a1, v4);
ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_(
a1,
a2,
a3);
return a1;
}
|
concat<std::__cxx11::string,char_const(&)[32],char_const*>:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
AND qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,RSI
MOV RSI,RDX
CALL 0x00137241
LAB_0018d9f1:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00120a90
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0018da62
LAB_0018da0a:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [32], char const*>(char const (&) [32], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[32],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
concat_length<char_const*>(param_1,param_2);
/* try { // try from 0018d9f1 to 0018da09 has its CatchHandler @ 0018da13 */
std::__cxx11::string::reserve((ulong)this);
_ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_
(this,param_1,param_2);
return this;
}
|
|
62,397 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3]>(char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3])
|
monkey531[P]llama/common/./json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O3
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3]>(char const (&) [17], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq (%rsi), %rdi
callq 0x19320
movq %rax, %rbp
movq %r12, %rdi
callq 0x19320
movq 0x8(%r15), %rcx
addq %rbp, %rax
leaq (%rcx,%rax), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x19a90
movq (%r13), %rsi
movq %rbx, %rdi
callq 0x19d30
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19d30
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x191f0
movsbl (%r14), %esi
movq %rbx, %rdi
callq 0x195d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x3984f
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x196d0
movq %r14, %rdi
callq 0x19c00
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+38h+var_38], rax
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, [rsi]
call _strlen
mov rbp, rax
mov rdi, r12
call _strlen
mov rcx, [r15+8]
add rax, rbp
lea rsi, [rcx+rax]
inc rsi
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, [r13+0]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
movsx esi, byte ptr [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_3984F
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3984F:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
long long a1,
_QWORD *a2,
long long a3,
_QWORD *a4,
char *a5)
{
long long v8; // rbp
long long v9; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v8 = strlen(*a2);
v9 = strlen(a3);
std::string::reserve(a1, a4[1] + v8 + v9 + 1);
std::string::append(a1, *a2);
std::string::append(a1, a3);
std::string::_M_append(a1, *a4, a4[1]);
std::string::push_back(a1, (unsigned int)*a5);
return a1;
}
|
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RDI,qword ptr [RSI]
CALL 0x00119320
MOV RBP,RAX
MOV RDI,R12
CALL 0x00119320
MOV RCX,qword ptr [R15 + 0x8]
ADD RAX,RBP
LEA RSI,[RCX + RAX*0x1]
INC RSI
LAB_001397e8:
MOV RDI,RBX
CALL 0x00119a90
MOV RSI,qword ptr [R13]
MOV RDI,RBX
CALL 0x00119d30
MOV RDI,RBX
MOV RSI,R12
CALL 0x00119d30
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV RDI,RBX
CALL 0x001191f0
MOVSX ESI,byte ptr [R14]
MOV RDI,RBX
CALL 0x001195d0
LAB_00139822:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char
const*, char const (&) [15], std::__cxx11::string, char>(char const*&&, char const (&) [15],
std::__cxx11::string&&, char&&) */
char ** nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>
(char **param_1,char *param_2,string *param_3,char *param_4)
{
*param_1 = (char *)(param_1 + 2);
param_1[1] = (char *)0x0;
*(int1 *)(param_1 + 2) = 0;
strlen(*(char **)param_2);
strlen((char *)param_3);
/* try { // try from 001397e8 to 00139821 has its CatchHandler @ 00139834 */
std::__cxx11::string::reserve((ulong)param_1);
std::__cxx11::string::append((char *)param_1);
std::__cxx11::string::append((char *)param_1);
std::__cxx11::string::_M_append((char *)param_1,*(ulong *)param_4);
std::__cxx11::string::push_back((char)param_1);
return param_1;
}
|
|
62,398 |
intern_filename
|
eloqsql/mysys/mf_pack.c
|
char *intern_filename(char *to, const char *from)
{
size_t length, to_length;
char buff[FN_REFLEN + 1];
if (from == to)
{ /* Dirname may destroy from */
(void) strnmov(buff, from, FN_REFLEN);
from=buff;
}
length= dirname_part(to, from, &to_length); /* Copy dirname & fix chars */
(void) strnmov(to + to_length, from + length, FN_REFLEN - to_length);
return (to);
}
|
O3
|
c
|
intern_filename:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x20(%rbp)
cmpq %rdi, %rsi
jne 0x9af5f
leaq -0x230(%rbp), %r15
movl $0x200, %edx # imm = 0x200
movq %r15, %rdi
movq %r14, %rsi
callq 0xd712c
movq %r15, %r14
leaq -0x238(%rbp), %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x94715
movq (%r15), %rcx
leaq (%rbx,%rcx), %rdi
addq %rax, %r14
movl $0x200, %edx # imm = 0x200
subq %rcx, %rdx
movq %r14, %rsi
callq 0xd712c
movq %fs:0x28, %rax
cmpq -0x20(%rbp), %rax
jne 0x9afae
movq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
|
intern_filename:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 228h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_20], rax
cmp rsi, rdi
jnz short loc_9AF5F
lea r15, [rbp+var_230]
mov edx, 200h
mov rdi, r15
mov rsi, r14
call strnmov
mov r14, r15
loc_9AF5F:
lea r15, [rbp+var_238]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call dirname_part
mov rcx, [r15]
lea rdi, [rbx+rcx]
add r14, rax
mov edx, 200h
sub rdx, rcx
mov rsi, r14
call strnmov
mov rax, fs:28h
cmp rax, [rbp+var_20]
jnz short loc_9AFAE
mov rax, rbx
add rsp, 228h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_9AFAE:
call ___stack_chk_fail
|
long long intern_filename(long long a1, _BYTE *a2)
{
_BYTE *v2; // r14
long long v3; // rax
long long v5; // [rsp+8h] [rbp-238h] BYREF
_BYTE v6[528]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v7; // [rsp+220h] [rbp-20h]
v2 = a2;
v7 = __readfsqword(0x28u);
if ( a2 == (_BYTE *)a1 )
{
strnmov(v6, a2, 512LL);
v2 = v6;
}
v3 = dirname_part(a1, v2, &v5);
strnmov(a1 + v5, &v2[v3], 512 - v5);
return a1;
}
|
intern_filename:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x228
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x20],RAX
CMP RSI,RDI
JNZ 0x0019af5f
LEA R15,[RBP + -0x230]
MOV EDX,0x200
MOV RDI,R15
MOV RSI,R14
CALL 0x001d712c
MOV R14,R15
LAB_0019af5f:
LEA R15,[RBP + -0x238]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x00194715
MOV RCX,qword ptr [R15]
LEA RDI,[RBX + RCX*0x1]
ADD R14,RAX
MOV EDX,0x200
SUB RDX,RCX
MOV RSI,R14
CALL 0x001d712c
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x0019afae
MOV RAX,RBX
ADD RSP,0x228
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0019afae:
CALL 0x00129250
|
int1 * intern_filename(int1 *param_1,int1 *param_2)
{
long lVar1;
int1 *puVar2;
long in_FS_OFFSET;
long local_240;
int1 local_238 [528];
long local_28;
local_28 = *(long *)(in_FS_OFFSET + 0x28);
puVar2 = param_2;
if (param_2 == param_1) {
puVar2 = local_238;
strnmov(puVar2,param_2,0x200);
}
lVar1 = dirname_part(param_1,puVar2,&local_240);
strnmov(param_1 + local_240,puVar2 + lVar1,0x200 - local_240);
if (*(long *)(in_FS_OFFSET + 0x28) == local_28) {
return param_1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
62,399 |
isObject(Shape const*)
|
11AgReS1SoR11[P]Graph/Common/Retranslator/src/Retranslator.cpp
|
bool isObject(const Shape* shape)
{
if (dynamic_cast<const Circle*>(shape))
return true;
if (dynamic_cast<const Diamond*>(shape))
return true;
if (dynamic_cast<const Rectangle*>(shape))
return true;
return false;
}
|
O0
|
cpp
|
isObject(Shape const*):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x59ab
movq -0x18(%rbp), %rdi
movq 0x95eb(%rip), %rsi # 0xef80
movq 0x95d4(%rip), %rdx # 0xef70
xorl %eax, %eax
movl %eax, %ecx
callq 0x5500
movq %rax, -0x20(%rbp)
jmp 0x59b3
xorl %eax, %eax
movq %rax, -0x20(%rbp)
jmp 0x59b3
movq -0x20(%rbp), %rax
cmpq $0x0, %rax
je 0x59c6
movb $0x1, -0x1(%rbp)
jmp 0x5a58
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x59f5
movq -0x28(%rbp), %rdi
movq 0x95a1(%rip), %rsi # 0xef80
movq 0x95ba(%rip), %rdx # 0xefa0
xorl %eax, %eax
movl %eax, %ecx
callq 0x5500
movq %rax, -0x30(%rbp)
jmp 0x59fd
xorl %eax, %eax
movq %rax, -0x30(%rbp)
jmp 0x59fd
movq -0x30(%rbp), %rax
cmpq $0x0, %rax
je 0x5a0d
movb $0x1, -0x1(%rbp)
jmp 0x5a58
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x5a3c
movq -0x38(%rbp), %rdi
movq 0x955a(%rip), %rsi # 0xef80
movq 0x9593(%rip), %rdx # 0xefc0
xorl %eax, %eax
movl %eax, %ecx
callq 0x5500
movq %rax, -0x40(%rbp)
jmp 0x5a44
xorl %eax, %eax
movq %rax, -0x40(%rbp)
jmp 0x5a44
movq -0x40(%rbp), %rax
cmpq $0x0, %rax
je 0x5a54
movb $0x1, -0x1(%rbp)
jmp 0x5a58
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_Z8isObjectPK5Shape:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+lpsrc], rax
cmp rax, 0
jz short loc_59AB
mov rdi, [rbp+lpsrc]; lpsrc
mov rsi, cs:lpstype; lpstype
mov rdx, cs:lpdtype; lpdtype
xor eax, eax
mov ecx, eax; s2d
call ___dynamic_cast
mov [rbp+var_20], rax
jmp short loc_59B3
loc_59AB:
xor eax, eax
mov [rbp+var_20], rax
jmp short $+2
loc_59B3:
mov rax, [rbp+var_20]
cmp rax, 0
jz short loc_59C6
mov [rbp+var_1], 1
jmp loc_5A58
loc_59C6:
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_59F5
mov rdi, [rbp+var_28]; lpsrc
mov rsi, cs:lpstype; lpstype
mov rdx, cs:_ZTI7Diamond_ptr; lpdtype
xor eax, eax
mov ecx, eax; s2d
call ___dynamic_cast
mov [rbp+var_30], rax
jmp short loc_59FD
loc_59F5:
xor eax, eax
mov [rbp+var_30], rax
jmp short $+2
loc_59FD:
mov rax, [rbp+var_30]
cmp rax, 0
jz short loc_5A0D
mov [rbp+var_1], 1
jmp short loc_5A58
loc_5A0D:
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_5A3C
mov rdi, [rbp+var_38]; lpsrc
mov rsi, cs:lpstype; lpstype
mov rdx, cs:_ZTI9Rectangle_ptr; lpdtype
xor eax, eax
mov ecx, eax; s2d
call ___dynamic_cast
mov [rbp+var_40], rax
jmp short loc_5A44
loc_5A3C:
xor eax, eax
mov [rbp+var_40], rax
jmp short $+2
loc_5A44:
mov rax, [rbp+var_40]
cmp rax, 0
jz short loc_5A54
mov [rbp+var_1], 1
jmp short loc_5A58
loc_5A54:
mov [rbp+var_1], 0
loc_5A58:
mov al, [rbp+var_1]
and al, 1
add rsp, 40h
pop rbp
retn
|
bool isObject(const void *a1)
{
void *v2; // [rsp+0h] [rbp-40h]
void *v3; // [rsp+10h] [rbp-30h]
void *v4; // [rsp+20h] [rbp-20h]
if ( a1 )
v4 = __dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'Shape,
(const struct __class_type_info *)&`typeinfo for'Circle,
0LL);
else
v4 = 0LL;
if ( v4 )
{
return 1;
}
else
{
if ( a1 )
v3 = __dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'Shape,
(const struct __class_type_info *)&`typeinfo for'Diamond,
0LL);
else
v3 = 0LL;
if ( v3 )
{
return 1;
}
else
{
if ( a1 )
v2 = __dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'Shape,
(const struct __class_type_info *)&`typeinfo for'Rectangle,
0LL);
else
v2 = 0LL;
return v2 != 0LL;
}
}
}
|
isObject:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JZ 0x001059ab
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [0x0010ef80]
MOV RDX,qword ptr [0x0010ef70]
XOR EAX,EAX
MOV ECX,EAX
CALL 0x00105500
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001059b3
LAB_001059ab:
XOR EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001059b3
LAB_001059b3:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,0x0
JZ 0x001059c6
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00105a58
LAB_001059c6:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x001059f5
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [0x0010ef80]
MOV RDX,qword ptr [0x0010efa0]
XOR EAX,EAX
MOV ECX,EAX
CALL 0x00105500
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001059fd
LAB_001059f5:
XOR EAX,EAX
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001059fd
LAB_001059fd:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,0x0
JZ 0x00105a0d
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00105a58
LAB_00105a0d:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x00105a3c
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [0x0010ef80]
MOV RDX,qword ptr [0x0010efc0]
XOR EAX,EAX
MOV ECX,EAX
CALL 0x00105500
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00105a44
LAB_00105a3c:
XOR EAX,EAX
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00105a44
LAB_00105a44:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,0x0
JZ 0x00105a54
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00105a58
LAB_00105a54:
MOV byte ptr [RBP + -0x1],0x0
LAB_00105a58:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x40
POP RBP
RET
|
/* isObject(Shape const*) */
int1 isObject(Shape *param_1)
{
long local_48;
long local_38;
long local_28;
int1 local_9;
if (param_1 == (Shape *)0x0) {
local_28 = 0;
}
else {
local_28 = __dynamic_cast(param_1,PTR_typeinfo_0010ef80,PTR_typeinfo_0010ef70,0);
}
if (local_28 == 0) {
if (param_1 == (Shape *)0x0) {
local_38 = 0;
}
else {
local_38 = __dynamic_cast(param_1,PTR_typeinfo_0010ef80,PTR_typeinfo_0010efa0,0);
}
if (local_38 == 0) {
if (param_1 == (Shape *)0x0) {
local_48 = 0;
}
else {
local_48 = __dynamic_cast(param_1,PTR_typeinfo_0010ef80,PTR_typeinfo_0010efc0,0);
}
if (local_48 == 0) {
local_9 = 0;
}
else {
local_9 = 1;
}
}
else {
local_9 = 1;
}
}
else {
local_9 = 1;
}
return local_9;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.