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
|
---|---|---|---|---|---|---|---|---|---|---|---|
8,500 |
free_old_query
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static void free_old_query(MYSQL *mysql)
{
if (mysql->fields)
ma_free_root(&mysql->field_alloc,MYF(0));
ma_init_alloc_root(&mysql->field_alloc,8192,0); /* Assume rowlength < 8192 */
mysql->fields=0;
mysql->field_count=0; /* For API */
mysql->info= 0;
return;
}
|
O0
|
c
|
free_old_query:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x2f8(%rax)
je 0x78eac
movq -0x8(%rbp), %rdi
addq $0x300, %rdi # imm = 0x300
xorl %esi, %esi
callq 0x7f930
movq -0x8(%rbp), %rdi
addq $0x300, %rdi # imm = 0x300
movl $0x2000, %esi # imm = 0x2000
xorl %eax, %eax
movl %eax, %edx
callq 0x7f5f0
movq -0x8(%rbp), %rax
movq $0x0, 0x2f8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x37c(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2e0(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
free_old_query:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+2F8h], 0
jz short loc_78EAC
mov rdi, [rbp+var_8]
add rdi, 300h
xor esi, esi
call ma_free_root
loc_78EAC:
mov rdi, [rbp+var_8]
add rdi, 300h
mov esi, 2000h
xor eax, eax
mov edx, eax
call ma_init_alloc_root
mov rax, [rbp+var_8]
mov qword ptr [rax+2F8h], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+37Ch], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2E0h], 0
add rsp, 10h
pop rbp
retn
|
long long free_old_query(long long a1)
{
long long result; // rax
if ( *(_QWORD *)(a1 + 760) )
ma_free_root(a1 + 768, 0LL);
ma_init_alloc_root(a1 + 768, 0x2000LL, 0LL);
*(_QWORD *)(a1 + 760) = 0LL;
*(_DWORD *)(a1 + 892) = 0;
result = a1;
*(_QWORD *)(a1 + 736) = 0LL;
return result;
}
|
free_old_query:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x2f8],0x0
JZ 0x00178eac
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x300
XOR ESI,ESI
CALL 0x0017f930
LAB_00178eac:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x300
MOV ESI,0x2000
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0017f5f0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2f8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x37c],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2e0],0x0
ADD RSP,0x10
POP RBP
RET
|
void free_old_query(long param_1)
{
if (*(long *)(param_1 + 0x2f8) != 0) {
ma_free_root(param_1 + 0x300,0);
}
ma_init_alloc_root(param_1 + 0x300,0x2000,0);
*(int8 *)(param_1 + 0x2f8) = 0;
*(int4 *)(param_1 + 0x37c) = 0;
*(int8 *)(param_1 + 0x2e0) = 0;
return;
}
|
|
8,501 |
bf_sqrt
|
bluesky950520[P]quickjs/libbf.c
|
int bf_sqrt(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = a->ctx;
int ret;
assert(r != a);
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
} else if (a->expn == BF_EXP_INF && a->sign) {
goto invalid_op;
} else {
bf_set(r, a);
}
ret = 0;
} else if (a->sign) {
invalid_op:
bf_set_nan(r);
ret = BF_ST_INVALID_OP;
} else {
limb_t *a1;
slimb_t n, n1;
limb_t res;
/* convert the mantissa to an integer with at least 2 *
prec + 4 bits */
n = (2 * (prec + 2) + 2 * LIMB_BITS - 1) / (2 * LIMB_BITS);
if (bf_resize(r, n))
goto fail;
a1 = bf_malloc(s, sizeof(limb_t) * 2 * n);
if (!a1)
goto fail;
n1 = bf_min(2 * n, a->len);
memset(a1, 0, (2 * n - n1) * sizeof(limb_t));
memcpy(a1 + 2 * n - n1, a->tab + a->len - n1, n1 * sizeof(limb_t));
if (a->expn & 1) {
res = mp_shr(a1, a1, 2 * n, 1, 0);
} else {
res = 0;
}
if (mp_sqrtrem(s, r->tab, a1, n)) {
bf_free(s, a1);
goto fail;
}
if (!res) {
res = mp_scan_nz(a1, n + 1);
}
bf_free(s, a1);
if (!res) {
res = mp_scan_nz(a->tab, a->len - n1);
}
if (res != 0)
r->tab[0] |= 1;
r->sign = 0;
r->expn = (a->expn + 1) >> 1;
ret = bf_round(r, prec, flags);
}
return ret;
fail:
bf_set_nan(r);
return BF_ST_MEM_ERROR;
}
|
O1
|
c
|
bf_sqrt:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x8786d
cmpl $0x0, 0x8(%r14)
je 0x878c9
cmpq $0x0, 0x18(%rbx)
je 0x8784e
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x1, %eax
jmp 0x87950
movq 0x10(%r14), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, %rax
je 0x87938
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
cmpq %r15, %rax
jne 0x87943
cmpq $0x0, 0x18(%rbx)
je 0x878b9
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r15, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
jmp 0x8794e
movl %ecx, %ebp
movq %rdx, %r12
movq (%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x83(,%rdx,2), %r15
movq %r15, %r13
shrq $0x7, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x84a70
movb $0x1, %cl
testl %eax, %eax
je 0x8795f
testb %cl, %cl
je 0x87950
cmpq $0x0, 0x18(%rbx)
je 0x8791c
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x20, %eax
jmp 0x87950
cmpl $0x0, 0x8(%r14)
jne 0x8782c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x84c8d
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x30(%rsp)
movq %r12, 0x20(%rsp)
movl %ebp, 0xc(%rsp)
movq %r13, %r15
shlq $0x4, %r15
movq 0x18(%rsp), %rax
movq (%rax), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq *0x8(%rax)
testq %rax, %rax
je 0x87a61
movq %rax, %r12
movq %r13, 0x28(%rsp)
movq %r15, 0x10(%rsp)
leaq (,%r13,2), %r15
movq 0x18(%r14), %rbp
cmpq %rbp, %r15
cmovlq %r15, %rbp
movq %r15, %rdx
subq %rbp, %rdx
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0xe350
movq 0x10(%rsp), %rdi
addq %r12, %rdi
movq %rbp, 0x10(%rsp)
leaq (,%rbp,8), %rdx
subq %rdx, %rdi
movq 0x18(%r14), %rsi
shlq $0x3, %rsi
addq 0x20(%r14), %rsi
subq %rdx, %rsi
callq 0xe5b0
testb $0x1, 0x10(%r14)
sete %al
cmpq $0x80, 0x30(%rsp)
setb %cl
orb %al, %cl
movb $0x1, %bpl
jne 0x87a2e
incq %r15
xorl %eax, %eax
movq %rax, %rcx
movq -0x10(%r12,%r15,8), %rax
shldq $0x3f, %rax, %rcx
movq %rcx, -0x10(%r12,%r15,8)
decq %r15
cmpq $0x1, %r15
jg 0x87a0d
testb $0x1, %al
sete %bpl
movq 0x20(%rbx), %rsi
movq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r12, %rdx
movq 0x28(%rsp), %r13
movq %r13, %rcx
callq 0x8721c
testl %eax, %eax
je 0x87a68
movq (%r15), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%r15)
movb $0x1, %cl
jmp 0x878f6
movb $0x1, %cl
jmp 0x878f6
testb %bpl, %bpl
je 0x87ac3
xorl %eax, %eax
movl 0xc(%rsp), %ebp
movq (%r12,%rax,8), %r15
cmpq %rax, %r13
je 0x87a84
incq %rax
testq %r15, %r15
je 0x87a73
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%rax)
testq %r15, %r15
movq 0x20(%rsp), %rsi
jne 0x87ad8
movq 0x18(%r14), %rax
subq 0x10(%rsp), %rax
testq %rax, %rax
jle 0x87ae0
movq 0x20(%r14), %rcx
xorl %edx, %edx
cmpq $0x0, (%rcx,%rdx,8)
jne 0x87ad8
incq %rdx
cmpq %rdx, %rax
jne 0x87ab2
jmp 0x87ae0
movq (%r15), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%r15)
movl 0xc(%rsp), %ebp
movq 0x20(%rsp), %rsi
movq 0x20(%rbx), %rax
orq $0x1, (%rax)
movl $0x0, 0x8(%rbx)
movq 0x10(%r14), %rax
incq %rax
sarq %rax
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x87b0d
movq %rbx, %rdi
movl %ebp, %edx
xorl %r8d, %r8d
callq 0x84e26
jmp 0x87b0f
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x878f6
|
bf_sqrt:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz short loc_8786D
cmp dword ptr [r14+8], 0
jz loc_878C9
loc_8782C:
cmp qword ptr [rbx+18h], 0
jz short loc_8784E
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_8784E:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov eax, 1
jmp loc_87950
loc_8786D:
mov rax, [r14+10h]
mov rcx, 7FFFFFFFFFFFFFFEh
cmp rax, rcx
jz loc_87938
mov r15, 7FFFFFFFFFFFFFFFh
cmp rax, r15
jnz loc_87943
cmp qword ptr [rbx+18h], 0
jz short loc_878B9
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_878B9:
mov [rbx+10h], r15
mov dword ptr [rbx+8], 0
jmp loc_8794E
loc_878C9:
mov ebp, ecx
mov r12, rdx
mov rax, [r14]
mov [rsp+68h+var_50], rax
lea r15, ds:83h[rdx*2]
mov r13, r15
shr r13, 7
mov rdi, rbx
mov rsi, r13
call bf_resize
mov cl, 1
test eax, eax
jz short loc_8795F
loc_878F6:
test cl, cl
jz short loc_87950
cmp qword ptr [rbx+18h], 0
jz short loc_8791C
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_8791C:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov eax, 20h ; ' '
jmp short loc_87950
loc_87938:
cmp dword ptr [r14+8], 0
jnz loc_8782C
loc_87943:
mov rdi, rbx
mov rsi, r14
call bf_set
loc_8794E:
xor eax, eax
loc_87950:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8795F:
mov [rsp+68h+var_38], r15
mov [rsp+68h+var_48], r12
mov [rsp+68h+var_5C], ebp
mov r15, r13
shl r15, 4
mov rax, [rsp+68h+var_50]
mov rdi, [rax]
xor esi, esi
mov rdx, r15
call qword ptr [rax+8]
test rax, rax
jz loc_87A61
mov r12, rax
mov [rsp+68h+var_40], r13
mov [rsp+68h+var_58], r15
lea r15, ds:0[r13*2]
mov rbp, [r14+18h]
cmp r15, rbp
cmovl rbp, r15
mov rdx, r15
sub rdx, rbp
shl rdx, 3
mov rdi, rax
xor esi, esi
call _memset
mov rdi, [rsp+68h+var_58]
add rdi, r12
mov [rsp+68h+var_58], rbp
lea rdx, ds:0[rbp*8]
sub rdi, rdx
mov rsi, [r14+18h]
shl rsi, 3
add rsi, [r14+20h]
sub rsi, rdx
call _memcpy
test byte ptr [r14+10h], 1
setz al
cmp [rsp+68h+var_38], 80h
setb cl
or cl, al
mov bpl, 1
jnz short loc_87A2E
inc r15
xor eax, eax
loc_87A0D:
mov rcx, rax
mov rax, [r12+r15*8-10h]
shld rcx, rax, 3Fh
mov [r12+r15*8-10h], rcx
dec r15
cmp r15, 1
jg short loc_87A0D
test al, 1
setz bpl
loc_87A2E:
mov rsi, [rbx+20h]
mov r15, [rsp+68h+var_50]
mov rdi, r15
mov rdx, r12
mov r13, [rsp+68h+var_40]
mov rcx, r13
call mp_sqrtrem
test eax, eax
jz short loc_87A68
mov rdi, [r15]
mov rsi, r12
xor edx, edx
call qword ptr [r15+8]
mov cl, 1
jmp loc_878F6
loc_87A61:
mov cl, 1
jmp loc_878F6
loc_87A68:
test bpl, bpl
jz short loc_87AC3
xor eax, eax
mov ebp, [rsp+68h+var_5C]
loc_87A73:
mov r15, [r12+rax*8]
cmp r13, rax
jz short loc_87A84
inc rax
test r15, r15
jz short loc_87A73
loc_87A84:
mov rax, [rsp+68h+var_50]
mov rdi, [rax]
mov rsi, r12
xor edx, edx
call qword ptr [rax+8]
test r15, r15
mov rsi, [rsp+68h+var_48]
jnz short loc_87AD8
mov rax, [r14+18h]
sub rax, [rsp+68h+var_58]
test rax, rax
jle short loc_87AE0
mov rcx, [r14+20h]
xor edx, edx
loc_87AB2:
cmp qword ptr [rcx+rdx*8], 0
jnz short loc_87AD8
inc rdx
cmp rax, rdx
jnz short loc_87AB2
jmp short loc_87AE0
loc_87AC3:
mov rdi, [r15]
mov rsi, r12
xor edx, edx
call qword ptr [r15+8]
mov ebp, [rsp+68h+var_5C]
mov rsi, [rsp+68h+var_48]
loc_87AD8:
mov rax, [rbx+20h]
or qword ptr [rax], 1
loc_87AE0:
mov dword ptr [rbx+8], 0
mov rax, [r14+10h]
inc rax
sar rax, 1
mov [rbx+10h], rax
mov rcx, [rbx+18h]
test rcx, rcx
jz short loc_87B0D
mov rdi, rbx
mov edx, ebp
xor r8d, r8d
call __bf_round
jmp short loc_87B0F
loc_87B0D:
xor eax, eax
loc_87B0F:
xor ecx, ecx
jmp loc_878F6
|
long long bf_sqrt(_QWORD **a1, long long a2, long long a3, unsigned int a4)
{
long long result; // rax
long long v6; // rax
unsigned long long v9; // r15
unsigned long long v10; // r13
long long v11; // rcx
long long v12; // r12
long long v13; // r15
long long v14; // rbp
bool v15; // bp
long long v16; // r15
long long v17; // rax
long long v18; // rcx
__int128 v19; // rt0
long long v20; // rax
unsigned int v21; // ebp
long long v22; // r15
long long v23; // rsi
long long v24; // rdx
unsigned long long v25; // rcx
unsigned int v26; // [rsp+Ch] [rbp-5Ch]
long long v27; // [rsp+10h] [rbp-58h]
_QWORD *v28; // [rsp+18h] [rbp-50h]
long long v29; // [rsp+20h] [rbp-48h]
unsigned long long v30; // [rsp+30h] [rbp-38h]
if ( !*(_QWORD *)(a2 + 24) )
{
v6 = *(_QWORD *)(a2 + 16);
if ( v6 == 0x7FFFFFFFFFFFFFFELL )
{
if ( *(_DWORD *)(a2 + 8) )
goto LABEL_3;
}
else if ( v6 == 0x7FFFFFFFFFFFFFFFLL )
{
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 0LL;
}
bf_set(a1, a2);
return 0LL;
}
if ( *(_DWORD *)(a2 + 8) )
{
LABEL_3:
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 1LL;
}
v28 = *(_QWORD **)a2;
v9 = 2 * a3 + 131;
v10 = v9 >> 7;
result = bf_resize((long long)a1, v9 >> 7);
LOBYTE(v11) = 1;
if ( !(_DWORD)result )
{
v30 = v9;
v29 = a3;
v26 = a4;
result = ((long long ( *)(_QWORD, _QWORD, unsigned long long, long long))v28[1])(*v28, 0LL, 16 * v10, v11);
if ( !result )
{
LOBYTE(v11) = 1;
goto LABEL_12;
}
v12 = result;
v13 = 2 * v10;
v14 = *(_QWORD *)(a2 + 24);
if ( (long long)(2 * v10) < v14 )
v14 = 2 * v10;
memset(result, 0LL, 8 * (v13 - v14));
v27 = v14;
memcpy(v12 + 16 * v10 - 8 * v14, *(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8 * v14, 8 * v14);
v15 = 1;
if ( (*(_BYTE *)(a2 + 16) & 1) != 0 && v30 >= 0x80 )
{
v16 = v13 + 1;
v17 = 0LL;
do
{
v18 = v17;
v17 = *(_QWORD *)(v12 + 8 * v16 - 16);
*((_QWORD *)&v19 + 1) = v18;
*(_QWORD *)&v19 = v17;
*(_QWORD *)(v12 + 8 * v16-- - 16) = v19 >> 1;
}
while ( v16 > 1 );
v15 = (v17 & 1) == 0;
}
if ( (unsigned int)mp_sqrtrem(v28, (long long)a1[4], v12, v10) )
{
result = ((long long ( *)(_QWORD, long long, _QWORD))v28[1])(*v28, v12, 0LL);
LOBYTE(v11) = 1;
goto LABEL_12;
}
if ( v15 )
{
v20 = 0LL;
v21 = v26;
do
{
v22 = *(_QWORD *)(v12 + 8 * v20);
if ( v10 == v20 )
break;
++v20;
}
while ( !v22 );
((void ( *)(_QWORD, long long, _QWORD))v28[1])(*v28, v12, 0LL);
v23 = v29;
if ( !v22 )
{
if ( *(_QWORD *)(a2 + 24) - v27 <= 0 )
{
LABEL_42:
*((_DWORD *)a1 + 2) = 0;
a1[2] = (_QWORD *)((*(_QWORD *)(a2 + 16) + 1LL) >> 1);
v25 = (unsigned long long)a1[3];
if ( v25 )
result = _bf_round((long long)a1, v23, v21, v25, 0);
else
result = 0LL;
LOBYTE(v11) = 0;
goto LABEL_12;
}
v24 = 0LL;
while ( !*(_QWORD *)(*(_QWORD *)(a2 + 32) + 8 * v24) )
{
if ( *(_QWORD *)(a2 + 24) - v27 == ++v24 )
goto LABEL_42;
}
}
}
else
{
((void ( *)(_QWORD, long long, _QWORD))v28[1])(*v28, v12, 0LL);
v21 = v26;
v23 = v29;
}
*a1[4] |= 1uLL;
goto LABEL_42;
}
LABEL_12:
if ( (_BYTE)v11 )
{
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 32LL;
}
return result;
}
| |||
8,502 |
bf_sqrt
|
bluesky950520[P]quickjs/libbf.c
|
int bf_sqrt(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = a->ctx;
int ret;
assert(r != a);
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
} else if (a->expn == BF_EXP_INF && a->sign) {
goto invalid_op;
} else {
bf_set(r, a);
}
ret = 0;
} else if (a->sign) {
invalid_op:
bf_set_nan(r);
ret = BF_ST_INVALID_OP;
} else {
limb_t *a1;
slimb_t n, n1;
limb_t res;
/* convert the mantissa to an integer with at least 2 *
prec + 4 bits */
n = (2 * (prec + 2) + 2 * LIMB_BITS - 1) / (2 * LIMB_BITS);
if (bf_resize(r, n))
goto fail;
a1 = bf_malloc(s, sizeof(limb_t) * 2 * n);
if (!a1)
goto fail;
n1 = bf_min(2 * n, a->len);
memset(a1, 0, (2 * n - n1) * sizeof(limb_t));
memcpy(a1 + 2 * n - n1, a->tab + a->len - n1, n1 * sizeof(limb_t));
if (a->expn & 1) {
res = mp_shr(a1, a1, 2 * n, 1, 0);
} else {
res = 0;
}
if (mp_sqrtrem(s, r->tab, a1, n)) {
bf_free(s, a1);
goto fail;
}
if (!res) {
res = mp_scan_nz(a1, n + 1);
}
bf_free(s, a1);
if (!res) {
res = mp_scan_nz(a->tab, a->len - n1);
}
if (res != 0)
r->tab[0] |= 1;
r->sign = 0;
r->expn = (a->expn + 1) >> 1;
ret = bf_round(r, prec, flags);
}
return ret;
fail:
bf_set_nan(r);
return BF_ST_MEM_ERROR;
}
|
O2
|
c
|
bf_sqrt:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x71a63
cmpl $0x0, 0x8(%r14)
je 0x71a8f
movq %rbx, %rdi
callq 0x6f5cd
pushq $0x1
jmp 0x71abe
movq 0x10(%r14), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, %rax
je 0x71ac1
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, %rax
jne 0x71ac8
movq %rbx, %rdi
callq 0x6f5cd
jmp 0x71ad3
movq %rdx, %r15
movl %ecx, 0x14(%rsp)
movq (%r14), %rbp
leaq 0x83(,%rdx,2), %r13
shrq $0x7, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6f50f
testl %eax, %eax
je 0x71ae4
movq %rbx, %rdi
callq 0x6f5cd
pushq $0x20
popq %rax
jmp 0x71ad5
cmpl $0x0, 0x8(%r14)
jne 0x71a57
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6f666
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %r12
shlq $0x4, %r12
movq (%rbp), %rdi
xorl %esi, %esi
movq %r12, %rdx
callq *0x8(%rbp)
testq %rax, %rax
je 0x71ab4
movq %rbp, 0x8(%rsp)
leaq (,%r13,2), %rdx
movq 0x18(%r14), %rbp
cmpq %rbp, %rdx
cmovlq %rdx, %rbp
movq %rdx, (%rsp)
subq %rbp, %rdx
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
movq %rax, 0x20(%rsp)
callq 0xe360
movq 0x20(%rsp), %rax
addq %rax, %r12
movq %rbp, 0x18(%rsp)
leaq (,%rbp,8), %rdx
movq %rax, %rbp
subq %rdx, %r12
movq 0x18(%r14), %rsi
shlq $0x3, %rsi
addq 0x20(%r14), %rsi
subq %rdx, %rsi
movq %r12, %rdi
callq 0xe5c0
movb $0x1, %al
testb $0x1, 0x10(%r14)
je 0x71b80
movq %rbp, %rdi
movq %rbp, %rsi
movq (%rsp), %rdx
xorl %ecx, %ecx
callq 0x71c52
testq %rax, %rax
sete %al
movb %al, (%rsp)
movq 0x20(%rbx), %rsi
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x71604
testl %eax, %eax
je 0x71bb1
movq (%r12), %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq *0x8(%r12)
jmp 0x71ab4
cmpb $0x0, (%rsp)
je 0x71bf6
incq %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x70d89
movq %rax, %r12
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq *0x8(%rax)
testq %r12, %r12
jne 0x71c06
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdi
subq 0x18(%rsp), %rsi
callq 0x70d89
testq %rax, %rax
jne 0x71c06
jmp 0x71c0e
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq *0x8(%rax)
movq 0x20(%rbx), %rax
orq $0x1, (%rax)
andl $0x0, 0x8(%rbx)
movq 0x10(%r14), %rax
incq %rax
sarq %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movl 0x14(%rsp), %edx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6fc0b
|
bf_sqrt:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz short loc_71A63
cmp dword ptr [r14+8], 0
jz short loc_71A8F
loc_71A57:
mov rdi, rbx
call bf_set_nan
push 1
jmp short loc_71ABE
loc_71A63:
mov rax, [r14+10h]
mov rcx, 7FFFFFFFFFFFFFFEh
cmp rax, rcx
jz short loc_71AC1
mov rcx, 7FFFFFFFFFFFFFFFh
cmp rax, rcx
jnz short loc_71AC8
mov rdi, rbx
call bf_set_nan
jmp short loc_71AD3
loc_71A8F:
mov r15, rdx
mov [rsp+58h+var_44], ecx
mov rbp, [r14]
lea r13, ds:83h[rdx*2]
shr r13, 7
mov rdi, rbx
mov rsi, r13
call bf_resize
test eax, eax
jz short loc_71AE4
loc_71AB4:
mov rdi, rbx
call bf_set_nan
push 20h ; ' '
loc_71ABE:
pop rax
jmp short loc_71AD5
loc_71AC1:
cmp dword ptr [r14+8], 0
jnz short loc_71A57
loc_71AC8:
mov rdi, rbx
mov rsi, r14
call bf_set
loc_71AD3:
xor eax, eax
loc_71AD5:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_71AE4:
mov r12, r13
shl r12, 4
mov rdi, [rbp+0]
xor esi, esi
mov rdx, r12
call qword ptr [rbp+8]
test rax, rax
jz short loc_71AB4
mov [rsp+58h+var_50], rbp
lea rdx, ds:0[r13*2]
mov rbp, [r14+18h]
cmp rdx, rbp
cmovl rbp, rdx
mov [rsp+58h+var_58], rdx
sub rdx, rbp
shl rdx, 3
mov rdi, rax
xor esi, esi
mov [rsp+58h+var_38], rax
call _memset
mov rax, [rsp+58h+var_38]
add r12, rax
mov [rsp+58h+var_40], rbp
lea rdx, ds:0[rbp*8]
mov rbp, rax
sub r12, rdx
mov rsi, [r14+18h]
shl rsi, 3
add rsi, [r14+20h]
sub rsi, rdx
mov rdi, r12
call _memcpy
mov al, 1
test byte ptr [r14+10h], 1
jz short loc_71B80
mov rdi, rbp
mov rsi, rbp
mov rdx, [rsp+58h+var_58]
xor ecx, ecx
call mp_shr
test rax, rax
setz al
loc_71B80:
mov byte ptr [rsp+58h+var_58], al
mov rsi, [rbx+20h]
mov r12, [rsp+58h+var_50]
mov rdi, r12
mov rdx, rbp
mov rcx, r13
call mp_sqrtrem
test eax, eax
jz short loc_71BB1
mov rdi, [r12]
mov rsi, rbp
xor edx, edx
call qword ptr [r12+8]
jmp loc_71AB4
loc_71BB1:
cmp byte ptr [rsp+58h+var_58], 0
jz short loc_71BF6
inc r13
mov rdi, rbp
mov rsi, r13
call mp_scan_nz
mov r12, rax
mov rax, [rsp+58h+var_50]
mov rdi, [rax]
mov rsi, rbp
xor edx, edx
call qword ptr [rax+8]
test r12, r12
jnz short loc_71C06
mov rsi, [r14+18h]
mov rdi, [r14+20h]
sub rsi, [rsp+58h+var_40]
call mp_scan_nz
test rax, rax
jnz short loc_71C06
jmp short loc_71C0E
loc_71BF6:
mov rax, [rsp+58h+var_50]
mov rdi, [rax]
mov rsi, rbp
xor edx, edx
call qword ptr [rax+8]
loc_71C06:
mov rax, [rbx+20h]
or qword ptr [rax], 1
loc_71C0E:
and dword ptr [rbx+8], 0
mov rax, [r14+10h]
inc rax
sar rax, 1
mov [rbx+10h], rax
mov rdi, rbx
mov rsi, r15
mov edx, [rsp+58h+var_44]
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_round
|
long long bf_sqrt(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v4; // rax
_QWORD *v6; // rbp
unsigned long long v7; // r13
long long v9; // rax
long long v10; // rbp
bool v11; // al
long long v12; // r12
bool v14; // [rsp+0h] [rbp-58h]
_QWORD *v15; // [rsp+8h] [rbp-50h]
long long v17; // [rsp+20h] [rbp-38h]
if ( !*(_QWORD *)(a2 + 24) )
{
v4 = *(_QWORD *)(a2 + 16);
if ( v4 == 0x7FFFFFFFFFFFFFFELL )
{
if ( *(_DWORD *)(a2 + 8) )
goto LABEL_3;
}
else if ( v4 == 0x7FFFFFFFFFFFFFFFLL )
{
bf_set_nan(a1);
return 0LL;
}
bf_set(a1, a2);
return 0LL;
}
if ( *(_DWORD *)(a2 + 8) )
{
LABEL_3:
bf_set_nan(a1);
return 1LL;
}
v6 = *(_QWORD **)a2;
v7 = (unsigned long long)(2 * a3 + 131) >> 7;
if ( (unsigned int)bf_resize(a1, v7)
|| (v9 = ((long long ( *)(_QWORD, _QWORD, unsigned long long))v6[1])(*v6, 0LL, 16 * v7)) == 0 )
{
LABEL_8:
bf_set_nan(a1);
return 32LL;
}
v15 = v6;
v10 = *(_QWORD *)(a2 + 24);
if ( (long long)(2 * v7) < v10 )
v10 = 2 * v7;
v17 = v9;
memset(v9, 0LL, 8 * (2 * v7 - v10));
memcpy(v17 + 16 * v7 - 8 * v10, *(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8 * v10, 8 * v10);
v11 = 1;
if ( (*(_BYTE *)(a2 + 16) & 1) != 0 )
v11 = mp_shr(v17, v17, 2 * v7, 0LL) == 0;
v14 = v11;
if ( (unsigned int)mp_sqrtrem(v15, *(_QWORD *)(a1 + 32), v17, v7) )
{
((void ( *)(_QWORD, long long, _QWORD))v15[1])(*v15, v17, 0LL);
goto LABEL_8;
}
if ( v14 )
{
v12 = mp_scan_nz(v17, v7 + 1);
((void ( *)(_QWORD, long long, _QWORD))v15[1])(*v15, v17, 0LL);
if ( !v12 && !mp_scan_nz(*(_QWORD *)(a2 + 32), *(_QWORD *)(a2 + 24) - v10) )
goto LABEL_26;
}
else
{
((void ( *)(_QWORD, long long, _QWORD))v15[1])(*v15, v17, 0LL);
}
**(_QWORD **)(a1 + 32) |= 1uLL;
LABEL_26:
*(_DWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = (*(_QWORD *)(a2 + 16) + 1LL) >> 1;
return bf_round(a1, a3, a4);
}
|
bf_sqrt:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x18],0x0
JZ 0x00171a63
CMP dword ptr [R14 + 0x8],0x0
JZ 0x00171a8f
LAB_00171a57:
MOV RDI,RBX
CALL 0x0016f5cd
PUSH 0x1
JMP 0x00171abe
LAB_00171a63:
MOV RAX,qword ptr [R14 + 0x10]
MOV RCX,0x7ffffffffffffffe
CMP RAX,RCX
JZ 0x00171ac1
MOV RCX,0x7fffffffffffffff
CMP RAX,RCX
JNZ 0x00171ac8
MOV RDI,RBX
CALL 0x0016f5cd
JMP 0x00171ad3
LAB_00171a8f:
MOV R15,RDX
MOV dword ptr [RSP + 0x14],ECX
MOV RBP,qword ptr [R14]
LEA R13,[0x83 + RDX*0x2]
SHR R13,0x7
MOV RDI,RBX
MOV RSI,R13
CALL 0x0016f50f
TEST EAX,EAX
JZ 0x00171ae4
LAB_00171ab4:
MOV RDI,RBX
CALL 0x0016f5cd
PUSH 0x20
LAB_00171abe:
POP RAX
JMP 0x00171ad5
LAB_00171ac1:
CMP dword ptr [R14 + 0x8],0x0
JNZ 0x00171a57
LAB_00171ac8:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016f666
LAB_00171ad3:
XOR EAX,EAX
LAB_00171ad5:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00171ae4:
MOV R12,R13
SHL R12,0x4
MOV RDI,qword ptr [RBP]
XOR ESI,ESI
MOV RDX,R12
CALL qword ptr [RBP + 0x8]
TEST RAX,RAX
JZ 0x00171ab4
MOV qword ptr [RSP + 0x8],RBP
LEA RDX,[R13*0x2]
MOV RBP,qword ptr [R14 + 0x18]
CMP RDX,RBP
CMOVL RBP,RDX
MOV qword ptr [RSP],RDX
SUB RDX,RBP
SHL RDX,0x3
MOV RDI,RAX
XOR ESI,ESI
MOV qword ptr [RSP + 0x20],RAX
CALL 0x0010e360
MOV RAX,qword ptr [RSP + 0x20]
ADD R12,RAX
MOV qword ptr [RSP + 0x18],RBP
LEA RDX,[RBP*0x8]
MOV RBP,RAX
SUB R12,RDX
MOV RSI,qword ptr [R14 + 0x18]
SHL RSI,0x3
ADD RSI,qword ptr [R14 + 0x20]
SUB RSI,RDX
MOV RDI,R12
CALL 0x0010e5c0
MOV AL,0x1
TEST byte ptr [R14 + 0x10],0x1
JZ 0x00171b80
MOV RDI,RBP
MOV RSI,RBP
MOV RDX,qword ptr [RSP]
XOR ECX,ECX
CALL 0x00171c52
TEST RAX,RAX
SETZ AL
LAB_00171b80:
MOV byte ptr [RSP],AL
MOV RSI,qword ptr [RBX + 0x20]
MOV R12,qword ptr [RSP + 0x8]
MOV RDI,R12
MOV RDX,RBP
MOV RCX,R13
CALL 0x00171604
TEST EAX,EAX
JZ 0x00171bb1
MOV RDI,qword ptr [R12]
MOV RSI,RBP
XOR EDX,EDX
CALL qword ptr [R12 + 0x8]
JMP 0x00171ab4
LAB_00171bb1:
CMP byte ptr [RSP],0x0
JZ 0x00171bf6
INC R13
MOV RDI,RBP
MOV RSI,R13
CALL 0x00170d89
MOV R12,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX]
MOV RSI,RBP
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
TEST R12,R12
JNZ 0x00171c06
MOV RSI,qword ptr [R14 + 0x18]
MOV RDI,qword ptr [R14 + 0x20]
SUB RSI,qword ptr [RSP + 0x18]
CALL 0x00170d89
TEST RAX,RAX
JNZ 0x00171c06
JMP 0x00171c0e
LAB_00171bf6:
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX]
MOV RSI,RBP
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_00171c06:
MOV RAX,qword ptr [RBX + 0x20]
OR qword ptr [RAX],0x1
LAB_00171c0e:
AND dword ptr [RBX + 0x8],0x0
MOV RAX,qword ptr [R14 + 0x10]
INC RAX
SAR RAX,0x1
MOV qword ptr [RBX + 0x10],RAX
MOV RDI,RBX
MOV RSI,R15
MOV EDX,dword ptr [RSP + 0x14]
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0016fc0b
|
int8 bf_sqrt(long param_1,long *param_2,long param_3,int4 param_4)
{
int8 *puVar1;
int iVar2;
void *__s;
long lVar3;
int8 uVar4;
long lVar5;
ulong uVar6;
bool bVar7;
if (param_2[3] == 0) {
if (param_2[2] == 0x7ffffffffffffffe) {
if ((int)param_2[1] != 0) goto LAB_00171a57;
}
else if (param_2[2] == 0x7fffffffffffffff) {
bf_set_nan(param_1);
return 0;
}
bf_set(param_1,param_2);
return 0;
}
if ((int)param_2[1] != 0) {
LAB_00171a57:
bf_set_nan(param_1);
return 1;
}
puVar1 = (int8 *)*param_2;
uVar6 = param_3 * 2 + 0x83U >> 7;
iVar2 = bf_resize(param_1);
if (iVar2 != 0) {
LAB_00171ab4:
bf_set_nan(param_1);
return 0x20;
}
__s = (void *)(*(code *)puVar1[1])(*puVar1,0,uVar6 * 0x10);
if (__s == (void *)0x0) goto LAB_00171ab4;
lVar3 = uVar6 * 2;
lVar5 = param_2[3];
if (lVar3 < param_2[3]) {
lVar5 = lVar3;
}
memset(__s,0,(lVar3 - lVar5) * 8);
memcpy((void *)((long)__s + lVar5 * -8 + uVar6 * 0x10),
(void *)(param_2[3] * 8 + param_2[4] + lVar5 * -8),lVar5 * 8);
bVar7 = true;
if ((*(byte *)(param_2 + 2) & 1) != 0) {
lVar3 = mp_shr(__s,__s,lVar3,0);
bVar7 = lVar3 == 0;
}
iVar2 = mp_sqrtrem(puVar1,*(int8 *)(param_1 + 0x20),__s,uVar6);
if (iVar2 != 0) {
(*(code *)puVar1[1])(*puVar1,__s,0);
goto LAB_00171ab4;
}
if (bVar7) {
lVar3 = mp_scan_nz(__s,uVar6 + 1);
(*(code *)puVar1[1])(*puVar1,__s,0);
if ((lVar3 == 0) && (lVar3 = mp_scan_nz(param_2[4],param_2[3] - lVar5), lVar3 == 0))
goto LAB_00171c0e;
}
else {
(*(code *)puVar1[1])(*puVar1,__s,0);
}
**(ulong **)(param_1 + 0x20) = **(ulong **)(param_1 + 0x20) | 1;
LAB_00171c0e:
*(int4 *)(param_1 + 8) = 0;
*(long *)(param_1 + 0x10) = param_2[2] + 1 >> 1;
uVar4 = bf_round(param_1,param_3,param_4);
return uVar4;
}
|
|
8,503 |
ma_net_write_command
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
int ma_net_write_command(NET *net, uchar command,
const char *packet, size_t len,
my_bool disable_flush)
{
uchar buff[NET_HEADER_SIZE+1];
size_t buff_size= NET_HEADER_SIZE + 1;
size_t length= 1 + len; /* 1 extra byte for command */
int rc;
buff[NET_HEADER_SIZE]= 0;
buff[4]=command;
if (length >= MAX_PACKET_LENGTH)
{
len= MAX_PACKET_LENGTH - 1;
do
{
int3store(buff, MAX_PACKET_LENGTH);
buff[3]= (net->compress) ? 0 : (uchar) (net->pkt_nr++);
if (ma_net_write_buff(net, (char *)buff, buff_size) ||
ma_net_write_buff(net, packet, len))
return(1);
packet+= len;
length-= MAX_PACKET_LENGTH;
len= MAX_PACKET_LENGTH;
buff_size= NET_HEADER_SIZE; /* don't send command for further packets */
} while (length >= MAX_PACKET_LENGTH);
len= length;
}
int3store(buff,length);
buff[3]= (net->compress) ? 0 :(uchar) (net->pkt_nr++);
rc= test (ma_net_write_buff(net,(char *)buff, buff_size) ||
ma_net_write_buff(net,packet,len));
if (!rc && !disable_flush)
return test(ma_net_flush(net));
return rc;
}
|
O0
|
c
|
ma_net_write_command:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %r8b, %al
movq %fs:0x28, %r8
movq %r8, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movb %sil, -0x21(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movb %al, -0x39(%rbp)
movq $0x5, -0x48(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movb $0x0, -0x9(%rbp)
movb -0x21(%rbp), %al
movb %al, -0x9(%rbp)
cmpq $0xffffff, -0x50(%rbp) # imm = 0xFFFFFF
jb 0x77f97
movq $0xfffffe, -0x38(%rbp) # imm = 0xFFFFFE
jmp 0x77ee1
movb $-0x1, -0xd(%rbp)
movb $-0x1, -0xc(%rbp)
movb $-0x1, -0xb(%rbp)
movq -0x20(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x77f04
xorl %eax, %eax
movl %eax, -0x58(%rbp)
jmp 0x77f19
movq -0x20(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
movzbl %al, %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movb %al, -0xa(%rbp)
movq -0x20(%rbp), %rdi
leaq -0xd(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x77ca0
cmpl $0x0, %eax
jne 0x77f4b
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x77ca0
cmpl $0x0, %eax
je 0x77f57
movl $0x1, -0x14(%rbp)
jmp 0x78061
movq -0x38(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rax
subq $0xffffff, %rax # imm = 0xFFFFFF
movq %rax, -0x50(%rbp)
movq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF
movq $0x4, -0x48(%rbp)
cmpq $0xffffff, -0x50(%rbp) # imm = 0xFFFFFF
jae 0x77edf
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x77f99
movq -0x50(%rbp), %rax
movb %al, -0xd(%rbp)
movq -0x50(%rbp), %rax
shrq $0x8, %rax
movb %al, -0xc(%rbp)
movq -0x50(%rbp), %rax
shrq $0x10, %rax
movb %al, -0xb(%rbp)
movq -0x20(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x77fcd
xorl %eax, %eax
movl %eax, -0x5c(%rbp)
jmp 0x77fe2
movq -0x20(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
movzbl %al, %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movb %al, -0xa(%rbp)
movq -0x20(%rbp), %rdi
leaq -0xd(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x77ca0
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x5d(%rbp)
jne 0x7801f
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x77ca0
cmpl $0x0, %eax
setne %al
movb %al, -0x5d(%rbp)
movb -0x5d(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
jne 0x7805b
cmpb $0x0, -0x39(%rbp)
jne 0x7805b
movq -0x20(%rbp), %rdi
callq 0x77730
movl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x14(%rbp)
jmp 0x78061
movl -0x54(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x64(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x78082
movl -0x64(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
callq 0x382c0
nopw (%rax,%rax)
|
ma_net_write_command:
push rbp
mov rbp, rsp
sub rsp, 70h
mov al, r8b
mov r8, fs:28h
mov [rbp+var_8], r8
mov [rbp+var_20], rdi
mov [rbp+var_21], sil
mov [rbp+var_30], rdx
mov [rbp+var_38], rcx
mov [rbp+var_39], al
mov [rbp+var_48], 5
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_50], rax
mov [rbp+var_9], 0
mov al, [rbp+var_21]
mov [rbp+var_9], al
cmp [rbp+var_50], 0FFFFFFh
jb loc_77F97
mov [rbp+var_38], 0FFFFFEh
loc_77EDF:
jmp short $+2
loc_77EE1:
mov [rbp+var_D], 0FFh
mov [rbp+var_C], 0FFh
mov [rbp+var_B], 0FFh
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_77F04
xor eax, eax
mov [rbp+var_58], eax
jmp short loc_77F19
loc_77F04:
mov rcx, [rbp+var_20]
mov eax, [rcx+60h]
mov edx, eax
add edx, 1
mov [rcx+60h], edx
movzx eax, al
mov [rbp+var_58], eax
loc_77F19:
mov eax, [rbp+var_58]
mov [rbp+var_A], al
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_D]
mov rdx, [rbp+var_48]
call ma_net_write_buff
cmp eax, 0
jnz short loc_77F4B
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call ma_net_write_buff
cmp eax, 0
jz short loc_77F57
loc_77F4B:
mov [rbp+var_14], 1
jmp loc_78061
loc_77F57:
mov rax, [rbp+var_38]
add rax, [rbp+var_30]
mov [rbp+var_30], rax
mov rax, [rbp+var_50]
sub rax, 0FFFFFFh
mov [rbp+var_50], rax
mov [rbp+var_38], 0FFFFFFh
mov [rbp+var_48], 4
cmp [rbp+var_50], 0FFFFFFh
jnb loc_77EDF
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
loc_77F97:
jmp short $+2
loc_77F99:
mov rax, [rbp+var_50]
mov [rbp+var_D], al
mov rax, [rbp+var_50]
shr rax, 8
mov [rbp+var_C], al
mov rax, [rbp+var_50]
shr rax, 10h
mov [rbp+var_B], al
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_77FCD
xor eax, eax
mov [rbp+var_5C], eax
jmp short loc_77FE2
loc_77FCD:
mov rcx, [rbp+var_20]
mov eax, [rcx+60h]
mov edx, eax
add edx, 1
mov [rcx+60h], edx
movzx eax, al
mov [rbp+var_5C], eax
loc_77FE2:
mov eax, [rbp+var_5C]
mov [rbp+var_A], al
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_D]
mov rdx, [rbp+var_48]
call ma_net_write_buff
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_5D], al
jnz short loc_7801F
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call ma_net_write_buff
cmp eax, 0
setnz al
mov [rbp+var_5D], al
loc_7801F:
mov dl, [rbp+var_5D]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rbp+var_54], eax
cmp [rbp+var_54], 0
jnz short loc_7805B
cmp [rbp+var_39], 0
jnz short loc_7805B
mov rdi, [rbp+var_20]
call ma_net_flush
mov edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_14], eax
jmp short loc_78061
loc_7805B:
mov eax, [rbp+var_54]
mov [rbp+var_14], eax
loc_78061:
mov eax, [rbp+var_14]
mov [rbp+var_64], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_78082
mov eax, [rbp+var_64]
add rsp, 70h
pop rbp
retn
loc_78082:
call ___stack_chk_fail
|
_BOOL8 ma_net_write_command(long long a1, char a2, long long a3, unsigned long long a4, char a5)
{
int v5; // eax
int v6; // eax
bool v8; // [rsp+13h] [rbp-5Dh]
char v9; // [rsp+14h] [rbp-5Ch]
char v10; // [rsp+18h] [rbp-58h]
unsigned long long v11; // [rsp+20h] [rbp-50h]
unsigned long long v12; // [rsp+28h] [rbp-48h]
unsigned long long v14; // [rsp+38h] [rbp-38h]
unsigned long long v15; // [rsp+38h] [rbp-38h]
__int16 v18; // [rsp+63h] [rbp-Dh] BYREF
char v19; // [rsp+65h] [rbp-Bh]
char v20; // [rsp+66h] [rbp-Ah]
char v21; // [rsp+67h] [rbp-9h]
unsigned long long v22; // [rsp+68h] [rbp-8h]
v22 = __readfsqword(0x28u);
v14 = a4;
v12 = 5LL;
v11 = a4 + 1;
v21 = a2;
if ( a4 + 1 >= 0xFFFFFF )
{
v15 = 16777214LL;
do
{
v18 = -1;
v19 = -1;
if ( *(_BYTE *)(a1 + 132) )
{
v10 = 0;
}
else
{
v5 = *(_DWORD *)(a1 + 96);
*(_DWORD *)(a1 + 96) = v5 + 1;
v10 = v5;
}
v20 = v10;
if ( ma_net_write_buff(a1, (long long)&v18, v12) || ma_net_write_buff(a1, a3, v15) )
return 1;
a3 += v15;
v11 -= 0xFFFFFFLL;
v15 = 0xFFFFFFLL;
v12 = 4LL;
}
while ( v11 >= 0xFFFFFF );
v14 = v11;
}
v18 = v11;
v19 = BYTE2(v11);
if ( *(_BYTE *)(a1 + 132) )
{
v9 = 0;
}
else
{
v6 = *(_DWORD *)(a1 + 96);
*(_DWORD *)(a1 + 96) = v6 + 1;
v9 = v6;
}
v20 = v9;
v8 = 1;
if ( !ma_net_write_buff(a1, (long long)&v18, v12) )
v8 = ma_net_write_buff(a1, a3, v14);
if ( v8 || a5 )
return v8;
else
return ma_net_flush(a1) != 0;
}
|
ma_net_write_command:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV AL,R8B
MOV R8,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],R8
MOV qword ptr [RBP + -0x20],RDI
MOV byte ptr [RBP + -0x21],SIL
MOV qword ptr [RBP + -0x30],RDX
MOV qword ptr [RBP + -0x38],RCX
MOV byte ptr [RBP + -0x39],AL
MOV qword ptr [RBP + -0x48],0x5
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
MOV byte ptr [RBP + -0x9],0x0
MOV AL,byte ptr [RBP + -0x21]
MOV byte ptr [RBP + -0x9],AL
CMP qword ptr [RBP + -0x50],0xffffff
JC 0x00177f97
MOV qword ptr [RBP + -0x38],0xfffffe
LAB_00177edf:
JMP 0x00177ee1
LAB_00177ee1:
MOV byte ptr [RBP + -0xd],0xff
MOV byte ptr [RBP + -0xc],0xff
MOV byte ptr [RBP + -0xb],0xff
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x00177f04
XOR EAX,EAX
MOV dword ptr [RBP + -0x58],EAX
JMP 0x00177f19
LAB_00177f04:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RCX + 0x60]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RCX + 0x60],EDX
MOVZX EAX,AL
MOV dword ptr [RBP + -0x58],EAX
LAB_00177f19:
MOV EAX,dword ptr [RBP + -0x58]
MOV byte ptr [RBP + -0xa],AL
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00177ca0
CMP EAX,0x0
JNZ 0x00177f4b
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00177ca0
CMP EAX,0x0
JZ 0x00177f57
LAB_00177f4b:
MOV dword ptr [RBP + -0x14],0x1
JMP 0x00178061
LAB_00177f57:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,0xffffff
MOV qword ptr [RBP + -0x50],RAX
MOV qword ptr [RBP + -0x38],0xffffff
MOV qword ptr [RBP + -0x48],0x4
CMP qword ptr [RBP + -0x50],0xffffff
JNC 0x00177edf
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
LAB_00177f97:
JMP 0x00177f99
LAB_00177f99:
MOV RAX,qword ptr [RBP + -0x50]
MOV byte ptr [RBP + -0xd],AL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x8
MOV byte ptr [RBP + -0xc],AL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x10
MOV byte ptr [RBP + -0xb],AL
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x00177fcd
XOR EAX,EAX
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x00177fe2
LAB_00177fcd:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RCX + 0x60]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RCX + 0x60],EDX
MOVZX EAX,AL
MOV dword ptr [RBP + -0x5c],EAX
LAB_00177fe2:
MOV EAX,dword ptr [RBP + -0x5c]
MOV byte ptr [RBP + -0xa],AL
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00177ca0
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x5d],AL
JNZ 0x0017801f
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00177ca0
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x5d],AL
LAB_0017801f:
MOV DL,byte ptr [RBP + -0x5d]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
CMP dword ptr [RBP + -0x54],0x0
JNZ 0x0017805b
CMP byte ptr [RBP + -0x39],0x0
JNZ 0x0017805b
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00177730
MOV EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x14],EAX
JMP 0x00178061
LAB_0017805b:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x14],EAX
LAB_00178061:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x64],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00178082
MOV EAX,dword ptr [RBP + -0x64]
ADD RSP,0x70
POP RBP
RET
LAB_00178082:
CALL 0x001382c0
|
bool ma_net_write_command(long param_1,int1 param_2,long param_3,ulong param_4,char param_5)
{
ulong uVar1;
int iVar2;
long in_FS_OFFSET;
bool bVar3;
int1 local_64;
int1 local_60;
ulong local_58;
int8 local_50;
ulong local_40;
long local_38;
int1 local_15;
int1 local_14;
int1 local_13;
int1 local_12;
int1 local_11;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_50 = 5;
local_58 = param_4 + 1;
uVar1 = param_4;
local_38 = param_3;
local_11 = param_2;
if (0xfffffe < local_58) {
local_40 = 0xfffffe;
do {
local_15 = 0xff;
local_14 = 0xff;
local_13 = 0xff;
if (*(char *)(param_1 + 0x84) == '\0') {
iVar2 = *(int *)(param_1 + 0x60);
*(int *)(param_1 + 0x60) = iVar2 + 1;
local_60 = (int1)iVar2;
}
else {
local_60 = 0;
}
local_12 = local_60;
iVar2 = ma_net_write_buff(param_1,&local_15,local_50);
if ((iVar2 != 0) || (iVar2 = ma_net_write_buff(param_1,local_38,local_40), iVar2 != 0)) {
bVar3 = true;
goto LAB_00178061;
}
local_38 = local_40 + local_38;
local_58 = local_58 - 0xffffff;
local_40 = 0xffffff;
local_50 = 4;
uVar1 = local_58;
} while (0xfffffe < local_58);
}
local_40 = uVar1;
local_15 = (int1)local_58;
local_14 = (int1)(local_58 >> 8);
local_13 = (int1)(local_58 >> 0x10);
if (*(char *)(param_1 + 0x84) == '\0') {
iVar2 = *(int *)(param_1 + 0x60);
*(int *)(param_1 + 0x60) = iVar2 + 1;
local_64 = (int1)iVar2;
}
else {
local_64 = 0;
}
local_12 = local_64;
iVar2 = ma_net_write_buff(param_1,&local_15,local_50);
bVar3 = true;
if (iVar2 == 0) {
iVar2 = ma_net_write_buff(param_1,local_38,local_40);
bVar3 = iVar2 != 0;
}
if ((bVar3 == false) && (param_5 == '\0')) {
iVar2 = ma_net_flush(param_1);
bVar3 = iVar2 != 0;
}
LAB_00178061:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return bVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
8,504 |
main
|
ng-log[P]ng-log/src/cleanup_with_relative_prefix_unittest.cc
|
int main(int argc, char** argv) {
FLAGS_colorlogtostderr = false;
FLAGS_timestamp_in_logfile_name = true;
#ifdef NGLOG_USE_GFLAGS
ParseCommandLineFlags(&argc, &argv, true);
#endif
// Make sure stderr is not buffered as stderr seems to be buffered
// on recent windows.
setbuf(stderr, nullptr);
// Test some basics before InitializeLogging:
CaptureTestStderr();
const string early_stderr = GetCapturedTestStderr();
EXPECT_FALSE(IsLoggingInitialized());
InitializeLogging(argv[0]);
EXPECT_TRUE(IsLoggingInitialized());
InitGoogleTest(&argc, argv);
#ifdef HAVE_LIB_GMOCK
InitGoogleMock(&argc, argv);
#endif
// so that death tests run before we use threads
CHECK_EQ(RUN_ALL_TESTS(), 0);
}
|
O2
|
cpp
|
main:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
leaq 0x27ee8(%rip), %rax # 0x31ae6
movb $0x0, (%rax)
leaq 0x27ed8(%rip), %rax # 0x31ae0
movb $0x1, (%rax)
movq 0x2737e(%rip), %r13 # 0x30f90
movq (%r13), %rdi
xorl %esi, %esi
callq 0x8870
movq (%r13), %rdi
callq 0x85f0
movl %eax, %ebp
leaq 0x27dd9(%rip), %rsi # 0x31a08
leaq 0x16559(%rip), %rdx # 0x2018f
leaq 0x28(%rsp), %rdi
callq 0xa6ee
movl %ebp, (%rsp)
movq 0x272d6(%rip), %r15 # 0x30f20
movq (%r15), %rdi
callq 0x85f0
cmpl %ebp, %eax
je 0x9c67
movq (%r13), %rdi
callq 0x85f0
cmpl %ebp, %eax
jne 0x9ead
leaq 0x27e32(%rip), %rdi # 0x31aa0
movq %rsp, %rsi
callq 0xa7ec
leaq 0x27e2b(%rip), %rcx # 0x31aa8
cmpq %rcx, %rax
jne 0x9ee1
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
leaq 0x28(%rsp), %rdx
callq 0xa726
leaq 0x27e01(%rip), %rdi # 0x31aa0
movq %rsp, %rsi
callq 0xa79e
leaq 0x48(%rsp), %r14
movq (%r14), %rsi
andq $0x0, (%r14)
movq %rax, %rdi
callq 0xacee
movq %r14, %rdi
callq 0xa438
leaq 0x28(%rsp), %rdi
callq 0x8b78
movq (%r13), %rdi
callq 0x85f0
movl %eax, %ebp
movl %eax, 0x1c(%rsp)
movq (%r15), %rdi
callq 0x85f0
cmpl %ebp, %eax
je 0x9cf9
movq (%r13), %rdi
callq 0x85f0
cmpl %ebp, %eax
jne 0x9f1d
leaq 0x27da0(%rip), %r15 # 0x31aa0
leaq 0x1c(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xad02
movq (%rax), %r14
movq %r14, (%rsp)
andq $0x0, (%rax)
movq %r15, %rdi
movq %r12, %rsi
callq 0xadc2
testq %r14, %r14
je 0x9f57
movq %r14, %rdi
callq 0xad3a
movq %r13, %rbp
movq (%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x16836(%rip), %rsi # 0x2057f
callq 0x86d0
movq %rax, %r14
movq %rax, 0x10(%rsp)
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x8650
movq %r14, %rdi
callq 0x8030
movq %rax, %r15
leaq 0x48(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0xaf46
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8650
pushq $0x1
popq %r13
movq 0x48(%rsp), %rdi
addq %r12, %rdi
movq %r15, %rdx
subq %r12, %rdx
movq %r13, %rsi
movq %r14, %rcx
callq 0x88f0
addq %rax, %r12
testq %rax, %rax
je 0x9db9
cmpq %r15, %r12
jb 0x9d93
movq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
addq %rsi, %r12
leaq 0x28(%rsp), %rdi
movq %r12, %rdx
callq 0xb03e
movq 0x48(%rsp), %rdi
callq 0x86e0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0xb0d4
movq %r14, %rdi
callq 0xadaa
movq %rsp, %rdi
callq 0xa438
callq 0x1e96c
testb %al, %al
jne 0x9fa2
movq (%rbx), %rdi
callq 0xe66c
callq 0x1e96c
testb %al, %al
je 0x9fb6
movq 0x27c2f(%rip), %r14 # 0x31a58
movq %r14, %rbx
negq %rbx
cmpq 0x27c2a(%rip), %r14 # 0x31a60
je 0x9e45
callq *(%r14)
addq $0x8, %r14
addq $-0x8, %rbx
jmp 0x9e2f
movq (%rbp), %rdi
addq 0x27c08(%rip), %rbx # 0x31a58
negq %rbx
shrq $0x3, %rbx
leaq 0x1658e(%rip), %rsi # 0x203ec
movl %ebx, %edx
xorl %eax, %eax
callq 0x8880
leaq 0x162aa(%rip), %rcx # 0x20118
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa284
movq (%rsp), %rax
testq %rax, %rax
jne 0x9fd7
movq %rsp, %rdi
callq 0xa2b0
leaq 0x28(%rsp), %rdi
callq 0x8b78
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x162e9(%rip), %rsi # 0x2019d
leaq 0x48(%rsp), %rdi
movl $0x16b, %edx # imm = 0x16B
callq 0xe432
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xbd6a
leaq 0x1630f(%rip), %rsi # 0x201e6
movq %rax, %rdi
callq 0x8590
jmp 0x9f13
leaq 0x162b5(%rip), %rsi # 0x2019d
leaq 0x48(%rsp), %rdi
movl $0x16c, %edx # imm = 0x16C
callq 0xe432
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xbd6a
leaq 0x1631b(%rip), %rsi # 0x20226
movq %rax, %rdi
callq 0x8590
leaq 0x48(%rsp), %rdi
callq 0xe440
leaq 0x16279(%rip), %rsi # 0x2019d
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
movl $0x190, %edx # imm = 0x190
callq 0xe432
movq %rbx, %rdi
callq 0xbd6a
leaq 0x162a1(%rip), %rsi # 0x201e6
movq %rax, %rdi
callq 0x8590
leaq 0x48(%rsp), %rdi
callq 0xe440
leaq 0x1623f(%rip), %rsi # 0x2019d
leaq 0x48(%rsp), %rdi
movl $0x193, %edx # imm = 0x193
callq 0xe432
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xbd6a
leaq 0x163ad(%rip), %rsi # 0x2032e
movq %rax, %rdi
callq 0x8590
leaq 0x163b1(%rip), %rsi # 0x20341
movq %rax, %rdi
callq 0x8590
leaq 0x48(%rsp), %rdi
callq 0xe440
movq (%rbp), %rdi
leaq 0x16128(%rip), %rsi # 0x200d5
leaq 0x16133(%rip), %rdx # 0x200e7
jmp 0x9fc8
movq (%rbp), %rdi
leaq 0x16114(%rip), %rsi # 0x200d5
leaq 0x16139(%rip), %rdx # 0x20101
xorl %eax, %eax
callq 0x8880
pushq $0x1
popq %rdi
callq 0x8700
andq $0x0, (%rsp)
leaq 0x10(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x20(%rsp)
leaq 0x16072(%rip), %rsi # 0x20063
leaq 0x48(%rsp), %rdi
pushq $0x60
popq %rdx
callq 0xe43a
leaq 0x48(%rsp), %rdi
callq 0xbd6a
leaq 0x48(%rsp), %rdi
callq 0xe440
leaq 0x48(%rsp), %rdi
callq 0xe440
jmp 0xa097
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xa2b0
leaq 0x20(%rsp), %rdi
callq 0xa2b0
movq %rsp, %rdi
callq 0xa2b0
jmp 0xa0a2
jmp 0xa09f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
callq 0x86e0
jmp 0xa053
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xadaa
jmp 0xa081
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xa438
jmp 0xa0a2
jmp 0xa07e
jmp 0xa09f
jmp 0xa074
movq %rbx, %rdi
callq 0xe440
jmp 0xa08b
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa438
jmp 0xa0ac
movq %rbx, %rdi
callq 0xe440
jmp 0xa097
jmp 0xa09f
movq %rax, %rdi
callq 0xa25d
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x8b78
movq %rbx, %rdi
callq 0x8a40
|
main:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, rsi
lea rax, _ZN3fLB22FLAGS_colorlogtostderrE; fLB::FLAGS_colorlogtostderr
mov byte ptr [rax], 0
lea rax, _ZN3fLB31FLAGS_timestamp_in_logfile_nameE; fLB::FLAGS_timestamp_in_logfile_name
mov byte ptr [rax], 1
mov r13, cs:stderr_ptr
mov rdi, [r13+0]
xor esi, esi
call _setbuf
mov rdi, [r13+0]
call _fileno
mov ebp, eax
lea rsi, _ZN3fLS21FLAGS_test_tmpdir_bufB5cxx11E; fLS::FLAGS_test_tmpdir_buf
lea rdx, aCapturedErr; "/captured.err"
lea rdi, [rsp+0D8h+var_B0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
mov dword ptr [rsp+0D8h+var_D8], ebp
mov r15, cs:stdout_ptr
mov rdi, [r15]
call _fileno
cmp eax, ebp
jz short loc_9C67
mov rdi, [r13+0]
call _fileno
cmp eax, ebp
jnz loc_9EAD
loc_9C67:
lea rdi, _ZN5nglogL18s_captured_streamsE; nglog::s_captured_streams
mov rsi, rsp
call _ZNSt8_Rb_treeIiSt4pairIKiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS4_EEESt10_Select1stIS8_ESt4lessIiESaIS8_EE4findERS1_; std::_Rb_tree<int,std::pair<int const,std::unique_ptr<nglog::CapturedStream>>,std::_Select1st<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>,std::less<int>,std::allocator<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>>::find(int const&)
lea rcx, dword_31AA8
cmp rax, rcx
jnz loc_9EE1
lea rdi, [rsp+0D8h+var_90]
mov rsi, rsp
lea rdx, [rsp+0D8h+var_B0]
call _ZSt11make_uniqueIN5nglog14CapturedStreamEJRiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<nglog::CapturedStream,int &,std::string const&>(int &,std::string const&)
lea rdi, _ZN5nglogL18s_captured_streamsE; nglog::s_captured_streams
mov rsi, rsp
call _ZNSt3mapIiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS2_EESt4lessIiESaISt4pairIKiS5_EEEixERS9_; std::map<int,std::unique_ptr<nglog::CapturedStream>>::operator[](int const&)
lea r14, [rsp+0D8h+var_90]
mov rsi, [r14]
and qword ptr [r14], 0
mov rdi, rax
call _ZNSt15__uniq_ptr_implIN5nglog14CapturedStreamESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::reset(nglog::CapturedStream*)
mov rdi, r14
call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::CapturedStream>::~unique_ptr()
lea rdi, [rsp+0D8h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, [r13+0]
call _fileno
mov ebp, eax
mov [rsp+0D8h+var_BC], eax
mov rdi, [r15]
call _fileno
cmp eax, ebp
jz short loc_9CF9
mov rdi, [r13+0]
call _fileno
cmp eax, ebp
jnz loc_9F1D
loc_9CF9:
lea r15, _ZN5nglogL18s_captured_streamsE; nglog::s_captured_streams
lea r12, [rsp+0D8h+var_BC]
mov rdi, r15
mov rsi, r12
call _ZNSt3mapIiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS2_EESt4lessIiESaISt4pairIKiS5_EEE2atERS9_; std::map<int,std::unique_ptr<nglog::CapturedStream>>::at(int const&)
mov r14, [rax]
mov [rsp+0D8h+var_D8], r14
and qword ptr [rax], 0
mov rdi, r15
mov rsi, r12
call _ZNSt8_Rb_treeIiSt4pairIKiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS4_EEESt10_Select1stIS8_ESt4lessIiESaIS8_EE5eraseERS1_; std::_Rb_tree<int,std::pair<int const,std::unique_ptr<nglog::CapturedStream>>,std::_Select1st<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>,std::less<int>,std::allocator<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>>::erase(int const&)
test r14, r14
jz loc_9F57
mov rdi, r14; this
call _ZN5nglog14CapturedStream11StopCaptureEv; nglog::CapturedStream::StopCapture(void)
mov rbp, r13
mov rax, [rsp+0D8h+var_D8]
mov rdi, [rax+8]
lea rsi, aNglogLogFileHe+14h; "r"
call _fopen
mov r14, rax
mov [rsp+0D8h+var_C8], rax
push 2
pop rdx
mov rdi, rax
xor esi, esi
call _fseek
mov rdi, r14
call _ftell
mov r15, rax
lea rdi, [rsp+0D8h+var_90]
lea rdx, [rsp+0D8h+var_C9]
mov rsi, rax
call _ZNSt6vectorIcSaIcEEC2EmRKS0_; std::vector<char>::vector(ulong,std::allocator<char> const&)
xor r12d, r12d
mov rdi, r14
xor esi, esi
xor edx, edx
call _fseek
push 1
pop r13
loc_9D93:
mov rdi, [rsp+0D8h+var_90]
add rdi, r12
mov rdx, r15
sub rdx, r12
mov rsi, r13
mov rcx, r14
call _fread
add r12, rax
test rax, rax
jz short loc_9DB9
cmp r12, r15
jb short loc_9D93
loc_9DB9:
mov rsi, [rsp+0D8h+var_90]
lea rax, [rsp+0D8h+var_A0]
mov [rax-10h], rax
add r12, rsi
lea rdi, [rsp+0D8h+var_B0]
mov rdx, r12
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 rdi, [rsp+0D8h+var_90]
call _free
lea r14, [rsp+0D8h+var_C8]
mov rdi, r14
xor esi, esi; char *
call _ZNSt15__uniq_ptr_implI8_IO_FILESt14default_deleteIS0_EE5resetEPS0_; std::__uniq_ptr_impl<_IO_FILE,std::default_delete<_IO_FILE>>::reset(_IO_FILE*)
mov rdi, r14
call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EED2Ev; std::unique_ptr<_IO_FILE>::~unique_ptr()
mov rdi, rsp; this
call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::CapturedStream>::~unique_ptr()
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, al
jnz loc_9FA2
mov rdi, [rbx]; this
call _ZN5nglog17InitializeLoggingEPKc; nglog::InitializeLogging(char const*)
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
test al, al
jz loc_9FB6
mov r14, qword ptr cs:_ZN5nglog10g_testlistE; nglog::g_testlist
mov rbx, r14
neg rbx
loc_9E2F:
cmp r14, qword ptr cs:_ZN5nglog10g_testlistE+8; nglog::g_testlist
jz short loc_9E45
call qword ptr [r14]
add r14, 8
add rbx, 0FFFFFFFFFFFFFFF8h
jmp short loc_9E2F
loc_9E45:
mov rdi, [rbp+0]
add rbx, qword ptr cs:_ZN5nglog10g_testlistE; nglog::g_testlist
neg rbx
shr rbx, 3
lea rsi, aPassedDTestsPa; "Passed %d tests\n\nPASS\n"
mov edx, ebx
xor eax, eax
call _fprintf
lea rcx, aRunAllTests0; "RUN_ALL_TESTS() == 0"
mov rdi, rsp
xor esi, esi
xor edx, edx
call _ZN5nglog8internal12Check_EQImplB5cxx11EiiPKc; nglog::internal::Check_EQImpl(int,int,char const*)
mov rax, [rsp+0D8h+var_D8]
test rax, rax
jnz loc_9FD7
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
xor eax, eax
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9EAD:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_90]; this
mov edx, 16Bh; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
lea rbx, [rsp+0D8h+var_90]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedFdF; "Check failed: (fd == fileno(stdout)) ||"...
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short loc_9F13
loc_9EE1:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_90]; this
mov edx, 16Ch; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
lea rbx, [rsp+0D8h+var_90]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedSCa; "Check failed: s_captured_streams.find(f"...
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
loc_9F13:
lea rdi, [rsp+0D8h+var_90]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_9F1D:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rbx, [rsp+0D8h+var_90]
mov rdi, rbx; this
mov edx, 190h; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedFdF; "Check failed: (fd == fileno(stdout)) ||"...
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rdi, [rsp+0D8h+var_90]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_9F57:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_90]; this
mov edx, 193h; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
lea rbx, [rsp+0D8h+var_90]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedCap; "Check failed: cap "
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rsi, aDidYouForgetCa; ": did you forget CaptureTestStdout() or"...
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rdi, [rsp+0D8h+var_90]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_9FA2:
mov rdi, [rbp+0]
lea rsi, aCheckFailedS; "Check failed: %s\n"
lea rdx, aIslogginginiti; "!(IsLoggingInitialized())"
jmp short loc_9FC8
loc_9FB6:
mov rdi, [rbp+0]
lea rsi, aCheckFailedS; "Check failed: %s\n"
lea rdx, aIslogginginiti_0; "IsLoggingInitialized()"
loc_9FC8:
xor eax, eax
call _fprintf
push 1
pop rdi
call _exit
loc_9FD7:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_C8]
mov [rcx], rax
and [rsp+0D8h+var_B8], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_90]
push 60h ; '`'
pop rdx
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rdi, [rsp+0D8h+var_90]; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_90]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
lea rdi, [rsp+0D8h+var_90]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short loc_A097
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+arg_18]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp short loc_A0A2
jmp short loc_A09F
mov rbx, rax
mov rdi, [rsp+arg_40]
call _free
jmp short loc_A053
mov rbx, rax
loc_A053:
lea rdi, [rsp+arg_8]
call _ZNSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EED2Ev; std::unique_ptr<_IO_FILE>::~unique_ptr()
jmp short loc_A081
mov rbx, rax
lea rdi, [rsp+arg_40]
call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::CapturedStream>::~unique_ptr()
jmp short loc_A0A2
jmp short loc_A07E
jmp short loc_A09F
jmp short $+2
loc_A074:
mov rdi, rbx; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short loc_A08B
loc_A07E:
mov rbx, rax
loc_A081:
mov rdi, rsp
call _ZNSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::CapturedStream>::~unique_ptr()
jmp short loc_A0AC
loc_A08B:
mov rdi, rbx; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short loc_A097
jmp short loc_A09F
loc_A097:
mov rdi, rax
call __clang_call_terminate
loc_A09F:
mov rbx, rax
loc_A0A2:
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_A0AC:
mov rdi, rbx
call __Unwind_Resume
|
int main(int argc, const char **argv, const char **envp)
{
int v4; // ebp
long long v5; // rax
void *v6; // rsi
int v7; // ebp
nglog::CapturedStream **v8; // rax
nglog::CapturedStream *v9; // r14
long long v10; // r14
unsigned long long v11; // r15
unsigned long long v12; // r12
long long v13; // rax
nglog *v14; // rdi
void (**v15)(void); // r14
long long v16; // rbx
nglog::CapturedStream *v17; // rax
long long v19; // rax
long long v20; // rax
long long v21; // rax
long long v22; // rax
long long v23; // rax
long long v24; // rdi
const char *v25; // rdx
nglog::CapturedStream *v26; // [rsp+0h] [rbp-D8h] BYREF
char v27; // [rsp+Fh] [rbp-C9h] BYREF
long long v28; // [rsp+10h] [rbp-C8h] BYREF
int v29; // [rsp+1Ch] [rbp-BCh] BYREF
long long v30; // [rsp+20h] [rbp-B8h]
_QWORD v31[2]; // [rsp+28h] [rbp-B0h] BYREF
char v32; // [rsp+38h] [rbp-A0h] BYREF
void *v33[18]; // [rsp+48h] [rbp-90h] BYREF
fLB::FLAGS_colorlogtostderr = 0;
fLB::FLAGS_timestamp_in_logfile_name = 1;
setbuf(stderr, 0LL, envp);
v4 = fileno(stderr);
std::operator+<char>(v31, &fLS::FLAGS_test_tmpdir_buf[abi:cxx11], "/captured.err");
LODWORD(v26) = v4;
if ( (unsigned int)fileno(stdout) != v4 && (unsigned int)fileno(stderr) != v4 )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v33,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
363);
v19 = nglog::LogMessage::stream((nglog::LogMessage *)v33);
std::operator<<<std::char_traits<char>>(v19, "Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) ");
goto LABEL_19;
}
if ( (int *)std::_Rb_tree<int,std::pair<int const,std::unique_ptr<nglog::CapturedStream>>,std::_Select1st<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>,std::less<int>,std::allocator<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>>::find(
&nglog::s_captured_streams,
&v26) != &dword_31AA8 )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v33,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
364);
v20 = nglog::LogMessage::stream((nglog::LogMessage *)v33);
std::operator<<<std::char_traits<char>>(
v20,
"Check failed: s_captured_streams.find(fd) == s_captured_streams.end() ");
LABEL_19:
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v33);
}
std::make_unique<nglog::CapturedStream,int &,std::string const&>(v33, &v26, v31);
v5 = std::map<int,std::unique_ptr<nglog::CapturedStream>>::operator[](&nglog::s_captured_streams, &v26);
v6 = v33[0];
v33[0] = 0LL;
std::__uniq_ptr_impl<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::reset(v5, v6);
std::unique_ptr<nglog::CapturedStream>::~unique_ptr(v33);
std::string::~string(v31);
v7 = fileno(stderr);
v29 = v7;
if ( (unsigned int)fileno(stdout) != v7 && (unsigned int)fileno(stderr) != v7 )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v33,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
400);
v21 = nglog::LogMessage::stream((nglog::LogMessage *)v33);
std::operator<<<std::char_traits<char>>(v21, "Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) ");
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v33);
}
v8 = (nglog::CapturedStream **)std::map<int,std::unique_ptr<nglog::CapturedStream>>::at(
&nglog::s_captured_streams,
&v29);
v26 = *v8;
v9 = v26;
*v8 = 0LL;
std::_Rb_tree<int,std::pair<int const,std::unique_ptr<nglog::CapturedStream>>,std::_Select1st<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>,std::less<int>,std::allocator<std::pair<int const,std::unique_ptr<nglog::CapturedStream>>>>::erase(
&nglog::s_captured_streams,
&v29);
if ( !v9 )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v33,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
403);
v22 = nglog::LogMessage::stream((nglog::LogMessage *)v33);
v23 = std::operator<<<std::char_traits<char>>(v22, "Check failed: cap ");
std::operator<<<std::char_traits<char>>(v23, ": did you forget CaptureTestStdout() or CaptureTestStderr()?");
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v33);
}
nglog::CapturedStream::StopCapture(v9);
v10 = fopen(*((_QWORD *)v26 + 1), "r");
v28 = v10;
fseek(v10, 0LL, 2LL);
v11 = ftell(v10);
std::vector<char>::vector(v33, v11, &v27);
v12 = 0LL;
fseek(v10, 0LL, 0LL);
do
{
v13 = fread((char *)v33[0] + v12, 1LL, v11 - v12, v10);
v12 += v13;
}
while ( v13 && v12 < v11 );
v31[0] = &v32;
std::string::_M_construct<char const*>(v31, v33[0], (char *)v33[0] + v12);
free(v33[0]);
std::__uniq_ptr_impl<_IO_FILE,std::default_delete<_IO_FILE>>::reset(&v28, 0LL);
std::unique_ptr<_IO_FILE>::~unique_ptr(&v28);
std::unique_ptr<nglog::CapturedStream>::~unique_ptr(&v26);
if ( (unsigned __int8)nglog::IsLoggingInitialized((nglog *)&v26) )
{
v24 = stderr;
v25 = "!(IsLoggingInitialized())";
goto LABEL_24;
}
v14 = (nglog *)*argv;
nglog::InitializeLogging((nglog *)*argv, 0LL);
if ( !(unsigned __int8)nglog::IsLoggingInitialized(v14) )
{
v24 = stderr;
v25 = "IsLoggingInitialized()";
LABEL_24:
fprintf(v24, "Check failed: %s\n", v25);
exit(1LL);
}
v15 = (void (**)(void))nglog::g_testlist;
v16 = -(long long)nglog::g_testlist;
while ( v15 != *((void (***)(void))&nglog::g_testlist + 1) )
{
(*v15++)();
v16 -= 8LL;
}
fprintf(stderr, "Passed %d tests\n\nPASS\n", (unsigned long long)-(nglog::g_testlist + v16) >> 3);
nglog::internal::Check_EQImpl[abi:cxx11](&v26, 0LL, 0LL, "RUN_ALL_TESTS() == 0");
v17 = v26;
if ( v26 )
{
v26 = 0LL;
v28 = (long long)v17;
v30 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v33,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/cleanup_with_relative_prefix_unittest.cc",
96LL);
nglog::LogMessage::stream((nglog::LogMessage *)v33);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v33);
}
std::unique_ptr<std::string>::~unique_ptr(&v26);
std::string::~string(v31);
return 0;
}
|
main:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,RSI
LEA RAX,[0x131ae6]
MOV byte ptr [RAX],0x0
LEA RAX,[0x131ae0]
MOV byte ptr [RAX],0x1
MOV R13,qword ptr [0x00130f90]
MOV RDI,qword ptr [R13]
XOR ESI,ESI
CALL 0x00108870
MOV RDI,qword ptr [R13]
CALL 0x001085f0
MOV EBP,EAX
LEA RSI,[0x131a08]
LEA RDX,[0x12018f]
LEA RDI,[RSP + 0x28]
CALL 0x0010a6ee
MOV dword ptr [RSP],EBP
MOV R15,qword ptr [0x00130f20]
MOV RDI,qword ptr [R15]
CALL 0x001085f0
CMP EAX,EBP
JZ 0x00109c67
MOV RDI,qword ptr [R13]
CALL 0x001085f0
CMP EAX,EBP
JNZ 0x00109ead
LAB_00109c67:
LEA RDI,[0x131aa0]
MOV RSI,RSP
CALL 0x0010a7ec
LEA RCX,[0x131aa8]
CMP RAX,RCX
JNZ 0x00109ee1
LEA RDI,[RSP + 0x48]
MOV RSI,RSP
LEA RDX,[RSP + 0x28]
CALL 0x0010a726
LAB_00109c98:
LEA RDI,[0x131aa0]
MOV RSI,RSP
CALL 0x0010a79e
LAB_00109ca7:
LEA R14,[RSP + 0x48]
MOV RSI,qword ptr [R14]
AND qword ptr [R14],0x0
MOV RDI,RAX
CALL 0x0010acee
MOV RDI,R14
CALL 0x0010a438
LEA RDI,[RSP + 0x28]
CALL 0x00108b78
MOV RDI,qword ptr [R13]
CALL 0x001085f0
MOV EBP,EAX
MOV dword ptr [RSP + 0x1c],EAX
MOV RDI,qword ptr [R15]
CALL 0x001085f0
CMP EAX,EBP
JZ 0x00109cf9
MOV RDI,qword ptr [R13]
CALL 0x001085f0
CMP EAX,EBP
JNZ 0x00109f1d
LAB_00109cf9:
LEA R15,[0x131aa0]
LEA R12,[RSP + 0x1c]
MOV RDI,R15
MOV RSI,R12
CALL 0x0010ad02
MOV R14,qword ptr [RAX]
MOV qword ptr [RSP],R14
AND qword ptr [RAX],0x0
LAB_00109d1b:
MOV RDI,R15
MOV RSI,R12
CALL 0x0010adc2
TEST R14,R14
JZ 0x00109f57
MOV RDI,R14
CALL 0x0010ad3a
MOV RBP,R13
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[0x12057f]
CALL 0x001086d0
MOV R14,RAX
MOV qword ptr [RSP + 0x10],RAX
PUSH 0x2
POP RDX
MOV RDI,RAX
XOR ESI,ESI
CALL 0x00108650
MOV RDI,R14
CALL 0x00108030
MOV R15,RAX
LAB_00109d6e:
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0xf]
MOV RSI,RAX
CALL 0x0010af46
XOR R12D,R12D
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00108650
PUSH 0x1
POP R13
LAB_00109d93:
MOV RDI,qword ptr [RSP + 0x48]
ADD RDI,R12
MOV RDX,R15
SUB RDX,R12
MOV RSI,R13
MOV RCX,R14
CALL 0x001088f0
ADD R12,RAX
TEST RAX,RAX
JZ 0x00109db9
CMP R12,R15
JC 0x00109d93
LAB_00109db9:
MOV RSI,qword ptr [RSP + 0x48]
LEA RAX,[RSP + 0x38]
MOV qword ptr [RAX + -0x10],RAX
ADD R12,RSI
LAB_00109dca:
LEA RDI,[RSP + 0x28]
MOV RDX,R12
CALL 0x0010b03e
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001086e0
LEA R14,[RSP + 0x10]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0010b0d4
MOV RDI,R14
CALL 0x0010adaa
MOV RDI,RSP
CALL 0x0010a438
LAB_00109e00:
CALL 0x0011e96c
TEST AL,AL
JNZ 0x00109fa2
MOV RDI,qword ptr [RBX]
CALL 0x0010e66c
CALL 0x0011e96c
TEST AL,AL
JZ 0x00109fb6
MOV R14,qword ptr [0x00131a58]
MOV RBX,R14
NEG RBX
LAB_00109e2f:
CMP R14,qword ptr [0x00131a60]
JZ 0x00109e45
LAB_00109e38:
CALL qword ptr [R14]
ADD R14,0x8
ADD RBX,-0x8
JMP 0x00109e2f
LAB_00109e45:
MOV RDI,qword ptr [RBP]
ADD RBX,qword ptr [0x00131a58]
NEG RBX
SHR RBX,0x3
LEA RSI,[0x1203ec]
MOV EDX,EBX
XOR EAX,EAX
CALL 0x00108880
LAB_00109e67:
LEA RCX,[0x120118]
MOV RDI,RSP
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0010a284
MOV RAX,qword ptr [RSP]
TEST RAX,RAX
JNZ 0x00109fd7
MOV RDI,RSP
CALL 0x0010a2b0
LEA RDI,[RSP + 0x28]
CALL 0x00108b78
XOR EAX,EAX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00109ead:
LEA RSI,[0x12019d]
LEA RDI,[RSP + 0x48]
MOV EDX,0x16b
CALL 0x0010e432
LAB_00109ec3:
LEA RBX,[RSP + 0x48]
MOV RDI,RBX
CALL 0x0010bd6a
LEA RSI,[0x1201e6]
MOV RDI,RAX
CALL 0x00108590
JMP 0x00109f13
LAB_00109ee1:
LEA RSI,[0x12019d]
LEA RDI,[RSP + 0x48]
MOV EDX,0x16c
CALL 0x0010e432
LAB_00109ef7:
LEA RBX,[RSP + 0x48]
MOV RDI,RBX
CALL 0x0010bd6a
LEA RSI,[0x120226]
MOV RDI,RAX
CALL 0x00108590
LAB_00109f13:
LEA RDI,[RSP + 0x48]
LAB_00109f18:
CALL 0x0010e440
LAB_00109f1d:
LEA RSI,[0x12019d]
LEA RBX,[RSP + 0x48]
MOV RDI,RBX
MOV EDX,0x190
CALL 0x0010e432
LAB_00109f36:
MOV RDI,RBX
CALL 0x0010bd6a
LEA RSI,[0x1201e6]
MOV RDI,RAX
CALL 0x00108590
LAB_00109f4d:
LEA RDI,[RSP + 0x48]
CALL 0x0010e440
LAB_00109f57:
LEA RSI,[0x12019d]
LEA RDI,[RSP + 0x48]
MOV EDX,0x193
CALL 0x0010e432
LAB_00109f6d:
LEA RBX,[RSP + 0x48]
MOV RDI,RBX
CALL 0x0010bd6a
LEA RSI,[0x12032e]
MOV RDI,RAX
CALL 0x00108590
LEA RSI,[0x120341]
MOV RDI,RAX
CALL 0x00108590
LAB_00109f98:
LEA RDI,[RSP + 0x48]
CALL 0x0010e440
LAB_00109fa2:
MOV RDI,qword ptr [RBP]
LEA RSI,[0x1200d5]
LEA RDX,[0x1200e7]
JMP 0x00109fc8
LAB_00109fb6:
MOV RDI,qword ptr [RBP]
LEA RSI,[0x1200d5]
LEA RDX,[0x120101]
LAB_00109fc8:
XOR EAX,EAX
CALL 0x00108880
PUSH 0x1
POP RDI
CALL 0x00108700
LAB_00109fd7:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x20],0x0
LAB_00109fea:
LEA RSI,[0x120063]
LEA RDI,[RSP + 0x48]
PUSH 0x60
POP RDX
CALL 0x0010e43a
LAB_00109ffe:
LEA RDI,[RSP + 0x48]
CALL 0x0010bd6a
LAB_0010a008:
LEA RDI,[RSP + 0x48]
CALL 0x0010e440
LAB_0010a012:
LEA RDI,[RSP + 0x48]
CALL 0x0010e440
LAB_0010a01c:
JMP 0x0010a097
LAB_0010a097:
MOV RDI,RAX
CALL 0x0010a25d
|
int8 main(int8 param_1,int8 *param_2)
{
CapturedStream *pCVar1;
int *puVar2;
char cVar3;
uint uVar4;
uint uVar5;
long lVar6;
__uniq_ptr_impl<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>> *this;
int8 *puVar7;
FILE *pFVar8;
ulong uVar9;
size_t sVar10;
ostream *poVar11;
int8 uVar12;
char *pcVar13;
int8 *puVar14;
int8 *puVar15;
ulong uVar16;
CapturedStream *local_d8;
allocator local_c9;
FILE *local_c8;
uint local_bc [3];
int1 *local_b0 [2];
int1 local_a0 [16];
CapturedStream *local_90 [12];
puVar15 = (int8 *)PTR_stderr_00130f90;
fLB::FLAGS_colorlogtostderr = 0;
fLB::FLAGS_timestamp_in_logfile_name = 1;
setbuf(*(FILE **)PTR_stderr_00130f90,(char *)0x0);
uVar4 = fileno((FILE *)*puVar15);
puVar14 = (int8 *)(ulong)uVar4;
std::operator+((string *)local_b0,fLS::FLAGS_test_tmpdir_buf_abi_cxx11_);
puVar2 = PTR_stdout_00130f20;
local_d8 = (CapturedStream *)CONCAT44(local_d8._4_4_,uVar4);
uVar5 = fileno(*(FILE **)PTR_stdout_00130f20);
if (uVar5 == uVar4) {
LAB_00109c67:
/* try { // try from 00109c67 to 00109c97 has its CatchHandler @ 0010a09f */
lVar6 = std::
_Rb_tree<int,std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>,std::_Select1st<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
::find((_Rb_tree<int,std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>,std::_Select1st<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
*)nglog::s_captured_streams,(int *)&local_d8);
if (lVar6 != 0x131aa8) {
/* try { // try from 00109ee1 to 00109ef6 has its CatchHandler @ 0010a09f */
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_90,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",0x16c);
/* try { // try from 00109ef7 to 00109f12 has its CatchHandler @ 0010a072 */
poVar11 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_90);
std::operator<<(poVar11,
"Check failed: s_captured_streams.find(fd) == s_captured_streams.end() ");
goto LAB_00109f13;
}
std::make_unique<nglog::CapturedStream,int&,std::__cxx11::string_const&>
((int *)local_90,(string *)&local_d8);
/* try { // try from 00109c98 to 00109ca6 has its CatchHandler @ 0010a05f */
this = (__uniq_ptr_impl<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>> *)
std::
map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
::operator[]((map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
*)nglog::s_captured_streams,(int *)&local_d8);
pCVar1 = local_90[0];
local_90[0] = (CapturedStream *)0x0;
std::__uniq_ptr_impl<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::reset
(this,pCVar1);
std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::~unique_ptr
((unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>> *)
local_90);
std::__cxx11::string::~string((string *)local_b0);
uVar4 = fileno((FILE *)*puVar15);
puVar14 = (int8 *)(ulong)uVar4;
local_bc[0] = uVar4;
uVar5 = fileno(*(FILE **)puVar2);
if (uVar5 != uVar4) {
uVar5 = fileno((FILE *)*puVar15);
if (uVar5 == uVar4) goto LAB_00109cf9;
goto LAB_00109f1d;
}
LAB_00109cf9:
puVar7 = (int8 *)
std::
map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
::at((map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
*)nglog::s_captured_streams,(int *)local_bc);
pCVar1 = (CapturedStream *)*puVar7;
*puVar7 = 0;
local_d8 = pCVar1;
/* try { // try from 00109d1b to 00109d36 has its CatchHandler @ 0010a06e */
std::
_Rb_tree<int,std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>,std::_Select1st<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
::erase((_Rb_tree<int,std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>,std::_Select1st<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
*)nglog::s_captured_streams,(int *)local_bc);
if (pCVar1 == (CapturedStream *)0x0) goto LAB_00109f57;
nglog::CapturedStream::StopCapture(pCVar1);
pFVar8 = fopen(*(char **)(local_d8 + 8),"r");
local_c8 = pFVar8;
fseek(pFVar8,0,2);
uVar9 = ftell(pFVar8);
/* try { // try from 00109d6e to 00109d7f has its CatchHandler @ 0010a050 */
std::vector<char,std::allocator<char>>::vector
((vector<char,std::allocator<char>> *)local_90,uVar9,&local_c9);
uVar16 = 0;
fseek(pFVar8,0,0);
do {
sVar10 = fread(local_90[0] + uVar16,1,uVar9 - uVar16,pFVar8);
uVar16 = uVar16 + sVar10;
if (sVar10 == 0) break;
} while (uVar16 < uVar9);
local_b0[0] = local_a0;
/* try { // try from 00109dca to 00109dd6 has its CatchHandler @ 0010a041 */
std::__cxx11::string::_M_construct<char_const*>(local_b0,local_90[0],local_90[0] + uVar16);
free(local_90[0]);
std::__uniq_ptr_impl<_IO_FILE,std::default_delete<_IO_FILE>>::reset
((__uniq_ptr_impl<_IO_FILE,std::default_delete<_IO_FILE>> *)&local_c8,(_IO_FILE *)0x0)
;
std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>::~unique_ptr
((unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>> *)&local_c8);
std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>::~unique_ptr
((unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>> *)
&local_d8);
/* try { // try from 00109e00 to 00109e19 has its CatchHandler @ 0010a070 */
cVar3 = nglog::IsLoggingInitialized();
if (cVar3 == '\0') {
nglog::InitializeLogging((char *)*param_2);
cVar3 = nglog::IsLoggingInitialized();
if (cVar3 != '\0') {
lVar6 = -(long)nglog::g_testlist;
for (puVar14 = nglog::g_testlist; puVar14 != DAT_00131a60; puVar14 = puVar14 + 1) {
/* try { // try from 00109e38 to 00109e3a has its CatchHandler @ 0010a095 */
(*(code *)*puVar14)();
lVar6 = lVar6 + -8;
}
fprintf((FILE *)*puVar15,"Passed %d tests\n\nPASS\n",
(ulong)-(lVar6 + (long)nglog::g_testlist) >> 3 & 0xffffffff);
/* try { // try from 00109e67 to 00109e79 has its CatchHandler @ 0010a03f */
nglog::internal::Check_EQImpl_abi_cxx11_((internal *)&local_d8,0,0,"RUN_ALL_TESTS() == 0");
pCVar1 = local_d8;
if (local_d8 == (CapturedStream *)0x0) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::
~unique_ptr((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
std::__cxx11::string::~string((string *)local_b0);
return 0;
}
local_d8 = (CapturedStream *)0x0;
local_c8 = (FILE *)pCVar1;
local_bc[1] = 0;
local_bc[2] = 0;
/* try { // try from 00109fea to 00109ffd has its CatchHandler @ 0010a01e */
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_90,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/cleanup_with_relative_prefix_unittest.cc"
,0x60,(CheckOpString *)&local_c8);
/* try { // try from 00109ffe to 0010a007 has its CatchHandler @ 0010a012 */
nglog::LogMessage::stream((LogMessage *)local_90);
/* try { // try from 0010a008 to 0010a011 has its CatchHandler @ 0010a01e */
nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_90);
/* catch() { ... } // from try @ 00109ffe with catch @ 0010a012
try { // try from 0010a012 to 0010a01b has its CatchHandler @ 0010a01c */
uVar12 = nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_90);
/* catch() { ... } // from try @ 0010a012 with catch @ 0010a01c */
/* catch() { ... } // from try @ 0010a08b with catch @ 0010a097 */
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar12);
}
pFVar8 = (FILE *)*puVar15;
pcVar13 = "IsLoggingInitialized()";
goto LAB_00109fc8;
}
}
else {
uVar5 = fileno((FILE *)*puVar15);
if (uVar5 == uVar4) goto LAB_00109c67;
/* try { // try from 00109ead to 00109ec2 has its CatchHandler @ 0010a09f */
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_90,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",0x16b);
/* try { // try from 00109ec3 to 00109ede has its CatchHandler @ 0010a074 */
poVar11 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_90);
std::operator<<(poVar11,"Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) ");
LAB_00109f13:
/* try { // try from 00109f18 to 00109f1c has its CatchHandler @ 0010a09f */
nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_90);
LAB_00109f1d:
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_90,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",400);
/* try { // try from 00109f36 to 00109f4c has its CatchHandler @ 0010a08b */
poVar11 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_90);
std::operator<<(poVar11,"Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) ");
nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_90);
LAB_00109f57:
/* try { // try from 00109f57 to 00109f6c has its CatchHandler @ 0010a07e */
puVar15 = puVar14;
nglog::LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_90,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",0x193);
/* try { // try from 00109f6d to 00109f97 has its CatchHandler @ 0010a07c */
poVar11 = (ostream *)nglog::LogMessage::stream((LogMessage *)local_90);
poVar11 = std::operator<<(poVar11,"Check failed: cap ");
std::operator<<(poVar11,": did you forget CaptureTestStdout() or CaptureTestStderr()?");
/* try { // try from 00109f98 to 00109fa1 has its CatchHandler @ 0010a07e */
nglog::LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_90);
}
pFVar8 = (FILE *)*puVar15;
pcVar13 = "!(IsLoggingInitialized())";
LAB_00109fc8:
fprintf(pFVar8,"Check failed: %s\n",pcVar13);
/* WARNING: Subroutine does not return */
exit(1);
}
|
|
8,505 |
testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-matchers.cc
|
Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); }
|
O1
|
cpp
|
testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x42a4c(%rip), %r14 # 0x58898
movq %r14, (%rdi)
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x39594
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x39594
leaq 0x42b9b(%rip), %rax # 0x58a30
movq %rax, 0x40(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rsp)
leaq 0x42d77(%rip), %rax # 0x58c20
movq %rax, 0x48(%rsp)
movl $0x28, %edi
callq 0x84b0
movl $0x1, (%rax)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
movq (%rsp), %rdx
cmpq %r12, %rdx
je 0x15ee1
movq %rdx, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x15ee9
movups (%r12), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %r12, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x40(%rsp), %rsi
movq %rax, 0x10(%rsi)
movq %r14, (%rsi)
movq %rbx, %rdi
callq 0x36214
leaq 0x40(%rsp), %rdi
callq 0x32246
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x15f38
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x15f4f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x84e0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x32246
jmp 0x15f6d
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x15f88
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x15f88
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x15fa4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x15fa4
movq %rax, %r14
movq %rbx, %rdi
callq 0x32246
movq %r14, %rdi
callq 0x8990
|
_ZN7testing7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ES8_:
push r15; Alternative name is 'testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)'
push r14
push r12
push rbx
sub rsp, 58h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
lea r14, off_58898
mov [rdi], r14
lea r15, [rsp+78h+var_48]
mov [r15-10h], r15
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
lea rdi, [rsp+78h+var_58]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea r12, [rsp+78h+var_68]
mov [r12-10h], r12
mov rsi, [rsp+78h+var_58]
mov rdx, [rsp+78h+var_50]
add rdx, rsi
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rax, off_58A30
mov [rsp+78h+var_38], rax
xorps xmm0, xmm0
movups [rsp+78h+var_30], xmm0
lea rax, _ZZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9GetVTableINSA_11ValuePolicyINS0_9EqMatcherIS7_EELb0EEEEEPKNSA_6VTableEvE7kVTableB5cxx11; testing::internal::MatcherBase<std::string const&>::GetVTable<testing::internal::MatcherBase<std::string const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable
mov qword ptr [rsp+78h+var_30], rax
mov edi, 28h ; '('; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax], 1
mov rcx, rax
add rcx, 18h
mov [rax+8], rcx
mov rdx, [rsp+78h+var_78]
cmp rdx, r12
jz short loc_15EE1
mov [rax+8], rdx
mov rcx, [rsp+78h+var_68]
mov [rax+18h], rcx
jmp short loc_15EE9
loc_15EE1:
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rcx], xmm0
loc_15EE9:
mov rcx, [rsp+78h+var_70]
mov [rax+10h], rcx
mov [rsp+78h+var_78], r12
mov [rsp+78h+var_70], 0
mov byte ptr [rsp+78h+var_68], 0
lea rsi, [rsp+78h+var_38]
mov [rsi+10h], rax
mov [rsi], r14
mov rdi, rbx
call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEaSEOSA_; testing::internal::MatcherBase<std::string const&>::operator=(testing::internal::MatcherBase<std::string const&>&&)
lea rdi, [rsp+78h+var_38]
call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase()
mov rdi, [rsp+78h+var_78]; void *
cmp rdi, r12
jz short loc_15F38
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15F38:
mov rdi, [rsp+78h+var_58]; void *
cmp rdi, r15
jz short loc_15F4F
mov rsi, [rsp+78h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15F4F:
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
lea rdi, [rsp+arg_38]
call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase()
jmp short loc_15F6D
mov r14, rax
loc_15F6D:
mov rdi, [rsp+0]; void *
cmp rdi, r12
jz short loc_15F88
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_15F88
mov r14, rax
loc_15F88:
mov rdi, [rsp+arg_18]; void *
cmp rdi, r15
jz short loc_15FA4
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_15FA4
mov r14, rax
loc_15FA4:
mov rdi, rbx
call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase()
mov rdi, r14
call __Unwind_Resume
|
void testing::Matcher<std::string const&>::Matcher(long long a1, _QWORD *a2)
{
long long v2; // rax
void *v3; // [rsp+0h] [rbp-78h] BYREF
long long v4; // [rsp+8h] [rbp-70h]
__int128 v5; // [rsp+10h] [rbp-68h] BYREF
void *v6[2]; // [rsp+20h] [rbp-58h] BYREF
_QWORD v7[2]; // [rsp+30h] [rbp-48h] BYREF
_QWORD v8[2]; // [rsp+40h] [rbp-38h] BYREF
long long v9; // [rsp+50h] [rbp-28h]
*(_OWORD *)(a1 + 8) = 0LL;
*(_QWORD *)a1 = &off_58898;
v6[0] = v7;
std::string::_M_construct<char *>(v6, *a2, *a2 + a2[1]);
v3 = &v5;
std::string::_M_construct<char *>(&v3, v6[0], (char *)v6[0] + (unsigned long long)v6[1]);
v8[0] = &off_58A30;
v9 = 0LL;
v8[1] = testing::internal::MatcherBase<std::string const&>::GetVTable<testing::internal::MatcherBase<std::string const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable[abi:cxx11];
v2 = operator new(0x28uLL);
*(_DWORD *)v2 = 1;
*(_QWORD *)(v2 + 8) = v2 + 24;
if ( v3 == &v5 )
{
*(_OWORD *)(v2 + 24) = v5;
}
else
{
*(_QWORD *)(v2 + 8) = v3;
*(_QWORD *)(v2 + 24) = v5;
}
*(_QWORD *)(v2 + 16) = v4;
v3 = &v5;
v4 = 0LL;
LOBYTE(v5) = 0;
v9 = v2;
v8[0] = &off_58898;
testing::internal::MatcherBase<std::string const&>::operator=(a1);
testing::internal::MatcherBase<std::string const&>::~MatcherBase(v8);
if ( v3 != &v5 )
operator delete(v3, v5 + 1);
if ( v6[0] != v7 )
operator delete(v6[0], v7[0] + 1LL);
}
|
Matcher:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
LEA R14,[0x158898]
MOV qword ptr [RDI],R14
LEA R15,[RSP + 0x30]
MOV qword ptr [R15 + -0x10],R15
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
LAB_00115e62:
LEA RDI,[RSP + 0x20]
MOV RSI,RAX
CALL 0x00139594
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
ADD RDX,RSI
LAB_00115e86:
MOV RDI,RSP
CALL 0x00139594
LEA RAX,[0x158a30]
MOV qword ptr [RSP + 0x40],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x48],XMM0
LEA RAX,[0x158c20]
MOV qword ptr [RSP + 0x48],RAX
LAB_00115eae:
MOV EDI,0x28
CALL 0x001084b0
MOV dword ptr [RAX],0x1
MOV RCX,RAX
ADD RCX,0x18
MOV qword ptr [RAX + 0x8],RCX
MOV RDX,qword ptr [RSP]
CMP RDX,R12
JZ 0x00115ee1
MOV qword ptr [RAX + 0x8],RDX
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + 0x18],RCX
JMP 0x00115ee9
LAB_00115ee1:
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RCX],XMM0
LAB_00115ee9:
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RSP],R12
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LEA RSI,[RSP + 0x40]
MOV qword ptr [RSI + 0x10],RAX
MOV qword ptr [RSI],R14
LAB_00115f10:
MOV RDI,RBX
CALL 0x00136214
LAB_00115f18:
LEA RDI,[RSP + 0x40]
CALL 0x00132246
MOV RDI,qword ptr [RSP]
CMP RDI,R12
JZ 0x00115f38
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001084e0
LAB_00115f38:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R15
JZ 0x00115f4f
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001084e0
LAB_00115f4f:
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* testing::Matcher<std::__cxx11::string const&>::Matcher(std::__cxx11::string const&) */
void __thiscall
testing::Matcher<std::__cxx11::string_const&>::Matcher
(Matcher<std::__cxx11::string_const&> *this,string *param_1)
{
int1 *local_78;
int8 local_70;
int1 local_68;
int7 uStack_67;
int8 uStack_60;
long *local_58;
long local_50;
long local_48 [2];
int **local_38;
int1 *local_30;
int4 *puStack_28;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int ***)this = &PTR__MatcherBase_00158898;
/* try { // try from 00115e62 to 00115e6e has its CatchHandler @ 00115fa1 */
local_58 = local_48;
std::__cxx11::string::_M_construct<char*>
(&local_58,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
local_78 = &local_68;
/* try { // try from 00115e86 to 00115e8d has its CatchHandler @ 00115f85 */
std::__cxx11::string::_M_construct<char*>(&local_78,local_58,local_50 + (long)local_58);
local_38 = &PTR__MatcherBase_00158a30;
puStack_28 = (int4 *)0x0;
local_30 = internal::MatcherBase<std::__cxx11::string_const&>::
GetVTable<testing::internal::MatcherBase<std::__cxx11::string_const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>()
::kVTable_abi_cxx11_;
/* try { // try from 00115eae to 00115eb7 has its CatchHandler @ 00115f6a */
puStack_28 = (int4 *)operator_new(0x28);
*puStack_28 = 1;
*(int4 **)(puStack_28 + 2) = puStack_28 + 6;
if (local_78 == &local_68) {
*(ulong *)(puStack_28 + 6) = CONCAT71(uStack_67,local_68);
*(int8 *)(puStack_28 + 8) = uStack_60;
}
else {
*(int1 **)(puStack_28 + 2) = local_78;
*(ulong *)(puStack_28 + 6) = CONCAT71(uStack_67,local_68);
}
*(int8 *)(puStack_28 + 4) = local_70;
local_70 = 0;
local_68 = 0;
local_38 = &PTR__MatcherBase_00158898;
local_78 = &local_68;
/* try { // try from 00115f10 to 00115f17 has its CatchHandler @ 00115f5b */
internal::MatcherBase<std::__cxx11::string_const&>::operator=
((MatcherBase<std::__cxx11::string_const&> *)this,(MatcherBase *)&local_38);
internal::MatcherBase<std::__cxx11::string_const&>::~MatcherBase
((MatcherBase<std::__cxx11::string_const&> *)&local_38);
if (local_78 != &local_68) {
operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1);
}
if (local_58 != local_48) {
operator_delete(local_58,local_48[0] + 1);
}
return;
}
|
|
8,506 |
LefDefParser::defiPath::addLayer(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPath.cpp
|
void defiPath::addLayer(const char* l) {
int len = strlen(l)+1;
if (numUsed_ == numAllocated_)
bumpSize(numAllocated_ * 2);
keys_[numUsed_] = 'L' ;
data_[numUsed_] = malloc(len);
strcpy((char*)(data_[numUsed_]), defData->DEFCASE(l));
(numUsed_)++;
}
|
O0
|
cpp
|
LefDefParser::defiPath::addLayer(char const*):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
callq 0x70e0
movq 0x8(%rsp), %rcx
addq $0x1, %rax
movl %eax, 0x14(%rsp)
movl 0x10(%rcx), %eax
cmpl 0x14(%rcx), %eax
jne 0x1b6c6
movq 0x8(%rsp), %rdi
movl 0x14(%rdi), %esi
shll %esi
callq 0x1a7d0
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movslq 0x10(%rcx), %rcx
movl $0x4c, (%rax,%rcx,4)
movslq 0x14(%rsp), %rdi
callq 0x72d0
movq %rax, %rsi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rcx
movslq 0x10(%rax), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x8(%rax), %rcx
movslq 0x10(%rax), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rsp)
movq 0x40(%rax), %rdi
movq 0x18(%rsp), %rsi
callq 0x27ed0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x7220
movq 0x8(%rsp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser8defiPath8addLayerEPKc:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_10]
call _strlen
mov rcx, [rsp+28h+var_20]
add rax, 1
mov [rsp+28h+var_14], eax
mov eax, [rcx+10h]
cmp eax, [rcx+14h]
jnz short loc_1B6C6
mov rdi, [rsp+28h+var_20]; this
mov esi, [rdi+14h]
shl esi, 1; int
call _ZN12LefDefParser8defiPath8bumpSizeEi; LefDefParser::defiPath::bumpSize(int)
loc_1B6C6:
mov rcx, [rsp+28h+var_20]
mov rax, [rcx]
movsxd rcx, dword ptr [rcx+10h]
mov dword ptr [rax+rcx*4], 4Ch ; 'L'
movsxd rdi, [rsp+28h+var_14]
call _malloc
mov rsi, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rax+8]
movsxd rdx, dword ptr [rax+10h]
mov [rcx+rdx*8], rsi
mov rcx, [rax+8]
movsxd rdx, dword ptr [rax+10h]
mov rcx, [rcx+rdx*8]
mov [rsp+28h+var_28], rcx
mov rdi, [rax+40h]; this
mov rsi, [rsp+28h+var_10]; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, [rsp+28h+var_28]
mov rsi, rax
call _strcpy
mov rax, [rsp+28h+var_20]
mov ecx, [rax+10h]
add ecx, 1
mov [rax+10h], ecx
add rsp, 28h
retn
|
LefDefParser::defrData ** LefDefParser::defiPath::addLayer(LefDefParser::defrData **this, const char *a2)
{
long long v2; // rax
long long v3; // rdx
LefDefParser::defrData **result; // rax
long long v5; // [rsp+0h] [rbp-28h]
int v6; // [rsp+14h] [rbp-14h]
v6 = strlen(a2) + 1;
if ( *((_DWORD *)this + 4) == *((_DWORD *)this + 5) )
LefDefParser::defiPath::bumpSize((LefDefParser::defiPath *)this, 2 * *((_DWORD *)this + 5));
*((_DWORD *)*this + *((int *)this + 4)) = 76;
*((_QWORD *)this[1] + *((int *)this + 4)) = malloc(v6);
v5 = *((_QWORD *)this[1] + *((int *)this + 4));
v2 = LefDefParser::defrData::DEFCASE(this[8], a2);
strcpy(v5, v2, v3);
result = this;
++*((_DWORD *)this + 4);
return result;
}
|
addLayer:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001070e0
MOV RCX,qword ptr [RSP + 0x8]
ADD RAX,0x1
MOV dword ptr [RSP + 0x14],EAX
MOV EAX,dword ptr [RCX + 0x10]
CMP EAX,dword ptr [RCX + 0x14]
JNZ 0x0011b6c6
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RDI + 0x14]
SHL ESI,0x1
CALL 0x0011a7d0
LAB_0011b6c6:
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RCX]
MOVSXD RCX,dword ptr [RCX + 0x10]
MOV dword ptr [RAX + RCX*0x4],0x4c
MOVSXD RDI,dword ptr [RSP + 0x14]
CALL 0x001072d0
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RAX + 0x10]
MOV qword ptr [RCX + RDX*0x8],RSI
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RAX + 0x10]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP],RCX
MOV RDI,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00127ed0
MOV RDI,qword ptr [RSP]
MOV RSI,RAX
CALL 0x00107220
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RAX + 0x10]
ADD ECX,0x1
MOV dword ptr [RAX + 0x10],ECX
ADD RSP,0x28
RET
|
/* LefDefParser::defiPath::addLayer(char const*) */
void __thiscall LefDefParser::defiPath::addLayer(defiPath *this,char *param_1)
{
char *__dest;
size_t sVar1;
void *pvVar2;
char *__src;
sVar1 = strlen(param_1);
if (*(int *)(this + 0x10) == *(int *)(this + 0x14)) {
bumpSize(this,*(int *)(this + 0x14) << 1);
}
*(int4 *)(*(long *)this + (long)*(int *)(this + 0x10) * 4) = 0x4c;
pvVar2 = malloc((long)((int)sVar1 + 1));
*(void **)(*(long *)(this + 8) + (long)*(int *)(this + 0x10) * 8) = pvVar2;
__dest = *(char **)(*(long *)(this + 8) + (long)*(int *)(this + 0x10) * 8);
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x40),param_1);
strcpy(__dest,__src);
*(int *)(this + 0x10) = *(int *)(this + 0x10) + 1;
return;
}
|
|
8,507 |
testing::internal::GetThreadCount()
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-port.cc
|
size_t GetThreadCount() {
const std::string filename =
(Message() << "/proc/" << getpid() << "/stat").GetString();
return ReadProcFileField<size_t>(filename, 19);
}
|
O0
|
cpp
|
testing::internal::GetThreadCount():
subq $0x68, %rsp
leaq 0x40(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xc0620
movq 0x20(%rsp), %rdi
leaq 0x5f479(%rip), %rsi # 0x112b08
callq 0xe3cd0
movq %rax, 0x28(%rsp)
jmp 0xb369b
callq 0x14a90
movq 0x28(%rsp), %rdi
movl %eax, 0x30(%rsp)
leaq 0x30(%rsp), %rsi
callq 0xe3d10
movq %rax, 0x18(%rsp)
jmp 0xb36ba
movq 0x18(%rsp), %rdi
leaq 0x5f449(%rip), %rsi # 0x112b0f
callq 0xe3d50
movq %rax, 0x10(%rsp)
jmp 0xb36d2
movq 0x10(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0xb2630
jmp 0xb36e3
leaq 0x40(%rsp), %rdi
callq 0x1acd0
leaq 0x48(%rsp), %rdi
movl $0x13, %esi
callq 0xb8450
movq %rax, 0x8(%rsp)
jmp 0xb3703
leaq 0x48(%rsp), %rdi
callq 0x1aac0
movq 0x8(%rsp), %rax
addq $0x68, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x1acd0
jmp 0xb3749
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x1aac0
movq 0x38(%rsp), %rdi
callq 0x14c80
nopw %cs:(%rax,%rax)
|
_ZN7testing8internal14GetThreadCountEv:
sub rsp, 68h
lea rdi, [rsp+68h+var_28]; this
mov [rsp+68h+var_48], rdi
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rdi, [rsp+68h+var_48]
lea rsi, aProc; "/proc/"
call _ZN7testing7MessagelsIA7_cEERS0_RKT_; testing::Message::operator<<<char [7]>(char [7] const&)
mov [rsp+68h+var_40], rax
jmp short $+2
loc_B369B:
call _getpid
mov rdi, [rsp+68h+var_40]
mov [rsp+68h+var_38], eax
lea rsi, [rsp+68h+var_38]
call _ZN7testing7MessagelsIiEERS0_RKT_; testing::Message::operator<<<int>(int const&)
mov [rsp+68h+var_50], rax
jmp short $+2
loc_B36BA:
mov rdi, [rsp+68h+var_50]
lea rsi, aStat_0; "/stat"
call _ZN7testing7MessagelsIA6_cEERS0_RKT_; testing::Message::operator<<<char [6]>(char [6] const&)
mov qword ptr [rsp+68h+var_58], rax
jmp short $+2
loc_B36D2:
mov rsi, qword ptr [rsp+68h+var_58]; int
lea rdi, [rsp+68h+var_20]; int
call _ZNK7testing7Message9GetStringB5cxx11Ev; testing::Message::GetString(void)
jmp short $+2
loc_B36E3:
lea rdi, [rsp+68h+var_28]; this
call _ZN7testing7MessageD2Ev; testing::Message::~Message()
lea rdi, [rsp+68h+var_20]
mov esi, 13h
call _ZN7testing8internal12_GLOBAL__N_117ReadProcFileFieldImEET_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; testing::internal::`anonymous namespace'::ReadProcFileField<ulong>(std::string const&,int)
mov [rsp+68h+var_60], rax
jmp short $+2
loc_B3703:
lea rdi, [rsp+68h+var_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, [rsp+68h+var_60]
add rsp, 68h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
lea rdi, [rsp+arg_38]; this
call _ZN7testing7MessageD2Ev; testing::Message::~Message()
jmp short loc_B3749
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_B3749:
mov rdi, [rsp+arg_30]
call __Unwind_Resume
|
long long testing::internal::GetThreadCount(testing::internal *this)
{
long long ProcFile; // [rsp+8h] [rbp-60h]
int v3; // [rsp+10h] [rbp-58h]
long long v4; // [rsp+18h] [rbp-50h]
long long v5; // [rsp+28h] [rbp-40h]
_DWORD v6[4]; // [rsp+30h] [rbp-38h] BYREF
_BYTE v7[8]; // [rsp+40h] [rbp-28h] BYREF
int v8[8]; // [rsp+48h] [rbp-20h] BYREF
testing::Message::Message((testing::Message *)v7);
v5 = testing::Message::operator<<<char [7]>(v7, "/proc/");
v6[0] = getpid(v7);
v4 = testing::Message::operator<<<int>(v5, v6);
v3 = testing::Message::operator<<<char [6]>(v4, "/stat");
testing::Message::GetString[abi:cxx11]((int)v8, v3);
testing::Message::~Message((testing::Message *)v7);
ProcFile = testing::internal::`anonymous namespace'::ReadProcFileField<unsigned long>(v8, 19LL);
std::string::~string(v8);
return ProcFile;
}
|
GetThreadCount:
SUB RSP,0x68
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x001c0620
MOV RDI,qword ptr [RSP + 0x20]
LAB_001b3688:
LEA RSI,[0x212b08]
CALL 0x001e3cd0
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001b369b
LAB_001b369b:
CALL 0x00114a90
MOV RDI,qword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0x30],EAX
LEA RSI,[RSP + 0x30]
CALL 0x001e3d10
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001b36ba
LAB_001b36ba:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x212b0f]
CALL 0x001e3d50
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001b36d2
LAB_001b36d2:
MOV RSI,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x48]
CALL 0x001b2630
JMP 0x001b36e3
LAB_001b36e3:
LEA RDI,[RSP + 0x40]
CALL 0x0011acd0
LAB_001b36ed:
LEA RDI,[RSP + 0x48]
MOV ESI,0x13
CALL 0x001b8450
LAB_001b36fc:
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001b3703
LAB_001b3703:
LEA RDI,[RSP + 0x48]
CALL 0x0011aac0
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x68
RET
|
/* testing::internal::GetThreadCount() */
ulong testing::internal::GetThreadCount(void)
{
Message *pMVar1;
ulong uVar2;
__pid_t local_38 [4];
Message local_28 [8];
string local_20 [32];
Message::Message(local_28);
/* try { // try from 001b3688 to 001b36e0 has its CatchHandler @ 001b3717 */
pMVar1 = Message::operator<<(local_28,"/proc/");
local_38[0] = getpid();
pMVar1 = Message::operator<<(pMVar1,local_38);
Message::operator<<(pMVar1,"/stat");
Message::GetString_abi_cxx11_();
Message::~Message(local_28);
/* try { // try from 001b36ed to 001b36fb has its CatchHandler @ 001b3731 */
uVar2 = (anonymous_namespace)::ReadProcFileField<unsigned_long>(local_20,0x13);
std::__cxx11::string::~string(local_20);
return uVar2;
}
|
|
8,508 |
void msgpack23::Unpacker::unpack_type<std::vector<unsigned long, std::allocator<unsigned long>>>(T&)
|
msgpack23/include/msgpack23/msgpack23.h
|
void unpack_type(T &value) {
using ValueType = typename T::value_type;
auto const array_size = unpack_array_header();
for (auto i = 0; i < array_size; ++i) {
ValueType val{};
unpack_type(val);
value.emplace_back(val);
}
}
|
O0
|
c
|
void msgpack23::Unpacker::unpack_type<std::vector<unsigned long, std::allocator<unsigned long>>>(T&):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
callq 0x29230
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movslq -0x1c(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x2921f
movq -0x30(%rbp), %rdi
movq $0x0, -0x28(%rbp)
leaq -0x28(%rbp), %rsi
callq 0x292b0
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x25aa0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x291e8
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN9msgpack238Unpacker11unpack_typeITkNS_14CollectionLikeESt6vectorImSaImEEQaaaant7MapLikeIT_E16EmplaceAvailableIS5_Ent8EnumLikeIS5_EEEvRS5_:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]; this
mov [rbp+var_30], rdi
call _ZN9msgpack238Unpacker19unpack_array_headerEv; msgpack23::Unpacker::unpack_array_header(void)
mov [rbp+var_18], rax
mov [rbp+var_1C], 0
loc_291E8:
movsxd rax, [rbp+var_1C]
cmp rax, [rbp+var_18]
jnb short loc_2921F
mov rdi, [rbp+var_30]; this
mov [rbp+var_28], 0
lea rsi, [rbp+var_28]; unsigned __int64 *
call _ZN9msgpack238Unpacker11unpack_typeERm; msgpack23::Unpacker::unpack_type(ulong &)
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_28]
call _ZNSt6vectorImSaImEE12emplace_backIJRmEEES3_DpOT_; std::vector<ulong>::emplace_back<ulong &>(ulong &)
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_291E8
loc_2921F:
add rsp, 30h
pop rbp
retn
|
long long ZN9msgpack238Unpacker11unpack_typeITkNS_14CollectionLikeESt6vectorImSaImEEQaaaant7MapLikeIT_E16EmplaceAvailableIS5_Ent8EnumLikeIS5_EEEvRS5_(
msgpack23::Unpacker *a1,
long long a2)
{
long long result; // rax
unsigned long long v3; // [rsp+8h] [rbp-28h] BYREF
int i; // [rsp+14h] [rbp-1Ch]
unsigned long long v5; // [rsp+18h] [rbp-18h]
long long v6; // [rsp+20h] [rbp-10h]
msgpack23::Unpacker *v7; // [rsp+28h] [rbp-8h]
v7 = a1;
v6 = a2;
v5 = msgpack23::Unpacker::unpack_array_header(a1);
for ( i = 0; ; ++i )
{
result = i;
if ( i >= v5 )
break;
v3 = 0LL;
msgpack23::Unpacker::unpack_type(a1, &v3);
std::vector<unsigned long>::emplace_back<unsigned long &>(v6, (long long)&v3);
}
return result;
}
|
_ZN9msgpack238Unpacker11unpack_typeITkNS_14CollectionLikeESt6vectorImSaImEEQaaaant7MapLikeIT_E16EmplaceAvailableIS5_Ent8EnumLikeIS5_EEEvRS5_:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RDI
CALL 0x00129230
MOV qword ptr [RBP + -0x18],RAX
MOV dword ptr [RBP + -0x1c],0x0
LAB_001291e8:
MOVSXD RAX,dword ptr [RBP + -0x1c]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0012921f
MOV RDI,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x28],0x0
LEA RSI,[RBP + -0x28]
CALL 0x001292b0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x28]
CALL 0x00125aa0
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001291e8
LAB_0012921f:
ADD RSP,0x30
POP RBP
RET
|
void _ZN9msgpack238Unpacker11unpack_typeITkNS_14CollectionLikeESt6vectorImSaImEEQaaaant7MapLikeIT_E16EmplaceAvailableIS5_Ent8EnumLikeIS5_EEEvRS5_
(Unpacker *param_1,vector<unsigned_long,std::allocator<unsigned_long>> *param_2)
{
ulong local_30;
int local_24;
ulong local_20;
vector<unsigned_long,std::allocator<unsigned_long>> *local_18;
Unpacker *local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = msgpack23::Unpacker::unpack_array_header(param_1);
for (local_24 = 0; (ulong)(long)local_24 < local_20; local_24 = local_24 + 1) {
local_30 = 0;
msgpack23::Unpacker::unpack_type(param_1,&local_30);
std::vector<unsigned_long,std::allocator<unsigned_long>>::emplace_back<unsigned_long&>
(local_18,&local_30);
}
return;
}
|
|
8,509 |
trnman_get_min_safe_trid
|
eloqsql/storage/maria/trnman.c
|
TrID trnman_get_min_safe_trid()
{
TrID trid;
mysql_mutex_lock(&LOCK_trn_list);
trid= MY_MIN(active_list_min.next->min_read_from,
global_trid_generator);
mysql_mutex_unlock(&LOCK_trn_list);
return trid;
}
|
O0
|
c
|
trnman_get_min_safe_trid:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x42a831(%rip), %rdi # 0x478120
leaq 0x103f26(%rip), %rsi # 0x15181c
movl $0x37a, %edx # imm = 0x37A
callq 0x4c9b0
movq 0x42a4d9(%rip), %rax # 0x477de0
movq 0x80(%rax), %rax
cmpq 0x42a73b(%rip), %rax # 0x478050
jae 0x4d92b
movq 0x42a4c2(%rip), %rax # 0x477de0
movq 0x80(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x4d936
movq 0x42a71e(%rip), %rax # 0x478050
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0x42a7db(%rip), %rdi # 0x478120
callq 0x4ca20
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
trnman_get_min_safe_trid:
push rbp
mov rbp, rsp
sub rsp, 10h
lea rdi, LOCK_trn_list
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 37Ah
call inline_mysql_mutex_lock_7
mov rax, cs:qword_477DE0
mov rax, [rax+80h]
cmp rax, cs:global_trid_generator
jnb short loc_4D92B
mov rax, cs:qword_477DE0
mov rax, [rax+80h]
mov [rbp+var_10], rax
jmp short loc_4D936
loc_4D92B:
mov rax, cs:global_trid_generator
mov [rbp+var_10], rax
loc_4D936:
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
lea rdi, LOCK_trn_list
call inline_mysql_mutex_unlock_7
mov rax, [rbp+var_8]
add rsp, 10h
pop rbp
retn
|
long long trnman_get_min_safe_trid()
{
long long v1; // [rsp+0h] [rbp-10h]
inline_mysql_mutex_lock_7(
(long long)&LOCK_trn_list,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",
0x37Au);
if ( *(_QWORD *)(qword_477DE0 + 128) >= (unsigned long long)global_trid_generator )
v1 = global_trid_generator;
else
v1 = *(_QWORD *)(qword_477DE0 + 128);
inline_mysql_mutex_unlock_7((long long)&LOCK_trn_list);
return v1;
}
|
trnman_get_min_safe_trid:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
LEA RDI,[0x578120]
LEA RSI,[0x25181c]
MOV EDX,0x37a
CALL 0x0014c9b0
MOV RAX,qword ptr [0x00577de0]
MOV RAX,qword ptr [RAX + 0x80]
CMP RAX,qword ptr [0x00578050]
JNC 0x0014d92b
MOV RAX,qword ptr [0x00577de0]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0014d936
LAB_0014d92b:
MOV RAX,qword ptr [0x00578050]
MOV qword ptr [RBP + -0x10],RAX
LAB_0014d936:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[0x578120]
CALL 0x0014ca20
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x10
POP RBP
RET
|
ulong trnman_get_min_safe_trid(void)
{
ulong local_18;
inline_mysql_mutex_lock
(LOCK_trn_list,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x37a);
if (*(ulong *)(active_list_min._104_8_ + 0x80) < global_trid_generator) {
local_18 = *(ulong *)(active_list_min._104_8_ + 0x80);
}
else {
local_18 = global_trid_generator;
}
inline_mysql_mutex_unlock(LOCK_trn_list);
return local_18;
}
|
|
8,510 |
testing::internal::String::FormatHexUInt32[abi:cxx11](unsigned int)
|
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest.cc
|
std::string String::FormatHexUInt32(uint32_t value) {
std::stringstream ss;
ss << std::hex << std::uppercase << value;
return ss.str();
}
|
O3
|
cpp
|
testing::internal::String::FormatHexUInt32[abi:cxx11](unsigned int):
pushq %rbp
pushq %rbx
subq $0x188, %rsp # imm = 0x188
movl %esi, %ebp
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x11380
leaq 0x10(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rcx
movl 0x28(%rsp,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x28(%rsp,%rcx)
movq -0x18(%rax), %rax
orl $0x4000, 0x28(%rsp,%rax) # imm = 0x4000
movl %ebp, %esi
callq 0x11630
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x11c10
movq 0x53455(%rip), %rsi # 0xb3fb8
movq %rsp, %rdi
callq 0x118c0
leaq 0x80(%rsp), %rdi
callq 0x11810
movq %rbx, %rax
addq $0x188, %rsp # imm = 0x188
popq %rbx
popq %rbp
retq
movq %rax, %rbx
movq 0x53429(%rip), %rsi # 0xb3fb8
movq %rsp, %rdi
callq 0x118c0
leaq 0x80(%rsp), %rdi
callq 0x11810
movq %rbx, %rdi
callq 0x11760
|
_ZN7testing8internal6String15FormatHexUInt32B5cxx11Ej:
push rbp
push rbx
sub rsp, 188h
mov ebp, esi
mov rbx, rdi
mov rdi, rsp
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea rdi, [rsp+198h+var_188]
mov rax, [rdi]
mov rcx, [rax-18h]
mov edx, [rsp+rcx+198h+var_170]
and edx, 0FFFFFFB5h
or edx, 8
mov [rsp+rcx+198h+var_170], edx
mov rax, [rax-18h]
or [rsp+rax+198h+var_170], 4000h
mov esi, ebp
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, [rsp+198h+var_180]
mov rdi, rbx
call __ZNKRSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
mov rdi, rsp
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+198h+var_118]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 188h
pop rbx
pop rbp
retn
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
mov rdi, rsp
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+arg_78]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
|
long long testing::internal::String::FormatHexUInt32[abi:cxx11](long long a1, unsigned int a2)
{
long long v2; // rax
_BYTE v4[16]; // [rsp+0h] [rbp-198h] BYREF
long long v5; // [rsp+10h] [rbp-188h] BYREF
_BYTE v6[104]; // [rsp+18h] [rbp-180h] BYREF
_BYTE v7[280]; // [rsp+80h] [rbp-118h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v4);
v2 = v5;
*(_DWORD *)&v6[*(_QWORD *)(v5 - 24) + 16] = *(_DWORD *)&v6[*(_QWORD *)(v5 - 24) + 16] & 0xFFFFFFB5 | 8;
*(_DWORD *)&v6[*(_QWORD *)(v2 - 24) + 16] |= 0x4000u;
std::ostream::_M_insert<unsigned long>(&v5, a2);
std::stringbuf::str(a1, v6);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v4,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v7);
return a1;
}
|
FormatHexUInt32[abi:cxx11]:
PUSH RBP
PUSH RBX
SUB RSP,0x188
MOV EBP,ESI
MOV RBX,RDI
MOV RDI,RSP
CALL 0x00111380
LEA RDI,[RSP + 0x10]
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + -0x18]
MOV EDX,dword ptr [RSP + RCX*0x1 + 0x28]
AND EDX,0xffffffb5
OR EDX,0x8
MOV dword ptr [RSP + RCX*0x1 + 0x28],EDX
MOV RAX,qword ptr [RAX + -0x18]
OR dword ptr [RSP + RAX*0x1 + 0x28],0x4000
MOV ESI,EBP
LAB_00160b4a:
CALL 0x00111630
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00111c10
LAB_00160b5c:
MOV RSI,qword ptr [0x001b3fb8]
MOV RDI,RSP
CALL 0x001118c0
LEA RDI,[RSP + 0x80]
CALL 0x00111810
MOV RAX,RBX
ADD RSP,0x188
POP RBX
POP RBP
RET
|
/* testing::internal::String::FormatHexUInt32[abi:cxx11](unsigned int) */
int8 testing::internal::String::FormatHexUInt32_abi_cxx11_(uint param_1)
{
uint *puVar1;
int4 in_register_0000003c;
stringstream asStack_198 [16];
long local_188 [3];
uint auStack_170 [22];
ios_base local_118 [264];
std::__cxx11::stringstream::stringstream(asStack_198);
*(uint *)((long)auStack_170 + *(long *)(local_188[0] + -0x18)) =
*(uint *)((long)auStack_170 + *(long *)(local_188[0] + -0x18)) & 0xffffffb5 | 8;
puVar1 = (uint *)((long)auStack_170 + *(long *)(local_188[0] + -0x18));
*puVar1 = *puVar1 | 0x4000;
/* try { // try from 00160b4a to 00160b5b has its CatchHandler @ 00160b85 */
std::ostream::_M_insert<unsigned_long>((ulong)local_188);
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(asStack_198);
std::ios_base::~ios_base(local_118);
return CONCAT44(in_register_0000003c,param_1);
}
|
|
8,511 |
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool)
|
hkr04[P]cpp-mcp/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O0
|
cpp
|
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0xc6bb0
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xc4dd0
xorb $-0x1, %al
testb $0x1, %al
jne 0xcb1dd
jmp 0xcb213
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xc7490
jmp 0xcb57f
movq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xcb5b0
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xcb27b
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xc6cb0
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xc6c50
movb %al, 0x3e(%rsp)
jmp 0xcb271
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xcb27b
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xcb2fb
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xc7490
jmp 0xcb2c5
movl $0x1, 0xcc(%rsp)
jmp 0xcb572
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x13240
jmp 0xcb596
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xc74c0
testb $0x1, %al
jne 0xcb30f
jmp 0xcb38c
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0x6fbf0
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0x131c0
movq 0x28(%rsp), %rdi
callq 0x13240
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xc7510
jmp 0xcb37c
movl $0x1, 0xcc(%rsp)
jmp 0xcb572
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xc7170
cmpq $0x0, (%rax)
jne 0xcb3e3
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xc7490
jmp 0xcb3d3
movl $0x1, 0xcc(%rsp)
jmp 0xcb572
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xc7170
movq (%rax), %rdi
callq 0x6fc90
testb $0x1, %al
jne 0xcb3ff
jmp 0xcb47c
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xc7170
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x70720
jmp 0xcb423
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xc7170
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x6fbb0
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xc7510
jmp 0xcb46c
movl $0x1, 0xcc(%rsp)
jmp 0xcb572
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xc6bb0
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0xcb496
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xc4dd0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0xc6c30
jmp 0xcb4cb
testb $0x1, 0x87(%rsp)
jne 0xcb509
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xc7490
jmp 0xcb4fc
movl $0x1, 0xcc(%rsp)
jmp 0xcb572
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0x6fbf0
movq 0x40(%rsp), %rax
movq 0x8(%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x10(%rsp)
movq 0x70(%rax), %rdi
callq 0x131c0
movq 0x8(%rsp), %rdi
callq 0x13240
movq 0x10(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xc7540
jmp 0xcb567
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x13240
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0xce40
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_CB1DD
jmp short loc_CB213
loc_CB1DD:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_CB57F
loc_CB213:
mov rsi, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_CB27B
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<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<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> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_CB271:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_CB27B:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_CB2FB
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_CB2C5:
mov [rsp+148h+var_7C], 1
jmp loc_CB572
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
jmp loc_CB596
loc_CB2FB:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<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<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> *>>::empty(void)
test al, 1
jnz short loc_CB30F
jmp short loc_CB38C
loc_CB30F:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; 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>::basic_json(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>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(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>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_CB37C:
mov [rsp+148h+var_7C], 1
jmp loc_CB572
loc_CB38C:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<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<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> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_CB3E3
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_CB3D3:
mov [rsp+148h+var_7C], 1
jmp loc_CB572
loc_CB3E3:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<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<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> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; 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>::is_array(void)
test al, 1
jnz short loc_CB3FF
jmp short loc_CB47C
loc_CB3FF:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<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<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> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<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>>::emplace_back<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> &&)
jmp short $+2
loc_CB423:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<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<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> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<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>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_CB46C:
mov [rsp+148h+var_7C], 1
jmp loc_CB572
loc_CB47C:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_130], rdx
mov [rsp+148h+var_128], rax
jmp short $+2
loc_CB496:
mov rax, [rsp+148h+var_130]
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_CB4CB:
test [rsp+148h+var_C1], 1
jnz short loc_CB509
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_CB4FC:
mov [rsp+148h+var_7C], 1
jmp short loc_CB572
loc_CB509:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_140], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; 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>::basic_json(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>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_140]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_138], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(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>)
mov rdi, [rsp+148h+var_140]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
mov rdx, [rsp+148h+var_138]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_CB567:
mov [rsp+148h+var_7C], 1
loc_CB572:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
loc_CB57F:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_CB596:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
|
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::handle_value<long &>(
long long *a1,
long long a2,
char a3)
{
long long v3; // rdx
int v4; // eax
_BYTE **v5; // rax
long long v6; // rax
long long v7; // rdx
long long v8; // rcx
long long v9; // r8
long long v10; // r9
long long v11; // rax
long long v12; // rdx
char v14; // [rsp+3Fh] [rbp-109h]
char v15; // [rsp+4Fh] [rbp-F9h] BYREF
__int128 v16; // [rsp+50h] [rbp-F8h] BYREF
long long v17; // [rsp+60h] [rbp-E8h]
char v18; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v19[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v20; // [rsp+87h] [rbp-C1h]
long long v21; // [rsp+88h] [rbp-C0h] BYREF
char v22; // [rsp+97h] [rbp-B1h] BYREF
long long v23; // [rsp+98h] [rbp-B0h]
char v24; // [rsp+A7h] [rbp-A1h] BYREF
long long v25; // [rsp+A8h] [rbp-A0h] BYREF
char v26; // [rsp+B7h] [rbp-91h] BYREF
__int128 v27; // [rsp+B8h] [rbp-90h] BYREF
int v28; // [rsp+CCh] [rbp-7Ch]
long long v29; // [rsp+D0h] [rbp-78h]
_BYTE v30[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v31[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v32; // [rsp+100h] [rbp-48h]
char v33; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v34[2]; // [rsp+110h] [rbp-38h] BYREF
char v35; // [rsp+127h] [rbp-21h]
long long v36; // [rsp+128h] [rbp-20h]
long long *v37; // [rsp+130h] [rbp-18h]
_BYTE v38[8]; // [rsp+138h] [rbp-10h] BYREF
v37 = a1;
v36 = a2;
v35 = a3 & 1;
v34[0] = std::vector<bool>::back((long long)(a1 + 4));
v34[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v34) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v31,
v36);
v14 = 1;
if ( (v35 & 1) == 0 )
{
v4 = std::vector<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<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> *>>::size(a1 + 1);
v14 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::operator()(
(std::_Function_base *)(a1 + 16),
v4,
5,
(long long)v31);
}
v30[20] = v14 & 1;
if ( (v14 & 1) != 0 )
{
if ( (std::vector<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<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> *>>::empty((long long)(a1 + 1)) & 1) != 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>::basic_json(
&v27,
(long long)v31);
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>::operator=(
*a1,
(long long)&v27);
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>::~basic_json((long long)&v27);
v26 = 1;
v25 = *a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v26,
&v25);
v28 = 1;
}
else if ( *(_QWORD *)std::vector<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<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> *>>::back((long long)(a1 + 1)) )
{
v5 = (_BYTE **)std::vector<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<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> *>>::back((long long)(a1 + 1));
if ( 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>::is_array(*v5) )
{
v6 = std::vector<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<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> *>>::back((long long)(a1 + 1));
std::vector<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>>::emplace_back<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>>(
*(_QWORD *)(*(_QWORD *)v6 + 8LL),
(long long)v31,
v7,
v8,
v9,
v10);
v22 = 1;
v11 = std::vector<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<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> *>>::back((long long)(a1 + 1));
v21 = std::vector<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>>::back(*(_QWORD *)(*(_QWORD *)v11 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v22,
&v21);
v28 = 1;
}
else
{
v19[0] = std::vector<bool>::back((long long)(a1 + 9));
v19[1] = v12;
v20 = std::_Bit_reference::operator bool((long long)v19);
std::vector<bool>::pop_back((long long)(a1 + 9));
if ( v20 )
{
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>::basic_json(
&v16,
(long long)v31);
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>::operator=(
a1[14],
(long long)&v16);
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>::~basic_json((long long)&v16);
v15 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
(long long)v38,
&v15,
a1 + 14);
}
else
{
v18 = 0;
v17 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v18);
}
v28 = 1;
}
}
else
{
v24 = 0;
v23 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v24);
v28 = 1;
}
}
else
{
v30[0] = 0;
v29 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
v30);
v28 = 1;
}
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>::~basic_json((long long)v31);
}
else
{
v33 = 0;
v32 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v33);
}
return v38[0];
}
|
handle_value<long&>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001c6bb0
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x001c4dd0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001cb1dd
JMP 0x001cb213
LAB_001cb1dd:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001c7490
JMP 0x001cb57f
LAB_001cb213:
MOV RSI,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
CALL 0x001cb5b0
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001cb27b
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001c6cb0
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001cb259:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001c6c50
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001cb271
LAB_001cb271:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001cb27b
LAB_001cb27b:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001cb2fb
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001c7490
JMP 0x001cb2c5
LAB_001cb2c5:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001cb572
LAB_001cb2fb:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001c74c0
TEST AL,0x1
JNZ 0x001cb30f
JMP 0x001cb38c
LAB_001cb30f:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x0016fbf0
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x001131c0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00113240
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001c7510
JMP 0x001cb37c
LAB_001cb37c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001cb572
LAB_001cb38c:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001c7170
CMP qword ptr [RAX],0x0
JNZ 0x001cb3e3
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001c7490
JMP 0x001cb3d3
LAB_001cb3d3:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001cb572
LAB_001cb3e3:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001c7170
MOV RDI,qword ptr [RAX]
CALL 0x0016fc90
TEST AL,0x1
JNZ 0x001cb3ff
JMP 0x001cb47c
LAB_001cb3ff:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001c7170
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x00170720
JMP 0x001cb423
LAB_001cb423:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001c7170
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x0016fbb0
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001c7510
JMP 0x001cb46c
LAB_001cb46c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001cb572
LAB_001cb47c:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001c6bb0
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001cb496
LAB_001cb496:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001c4dd0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x001c6c30
JMP 0x001cb4cb
LAB_001cb4cb:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001cb509
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001c7490
JMP 0x001cb4fc
LAB_001cb4fc:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001cb572
LAB_001cb509:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x0016fbf0
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x001131c0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00113240
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001c7540
LAB_001cb565:
JMP 0x001cb567
LAB_001cb567:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001cb572:
LEA RDI,[RSP + 0xf0]
CALL 0x00113240
LAB_001cb57f:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, 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::json_sax_dom_callback_parser<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> >::handle_value<long&>(long&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<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>>
::handle_value<long&>
(json_sax_dom_callback_parser<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,long *param_1,bool param_2)
{
bool bVar1;
int4 uVar2;
ulong uVar3;
long *plVar4;
int8 *puVar5;
int8 uVar6;
int1 auVar7 [16];
byte local_109;
int1 local_f9;
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>
local_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
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>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json local_58 [16];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
long *local_20;
json_sax_dom_callback_parser<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>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar1 ^ 0xffU) & 1) == 0) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRllTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58,local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
uVar2 = std::
vector<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<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>*>>
::size((vector<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<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 + 8));
/* try { // try from 001cb259 to 001cb564 has its CatchHandler @ 001cb2d5 */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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 + 0x80),uVar2,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
uVar3 = std::
vector<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<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>*>>
::empty((vector<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<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 + 8));
if ((uVar3 & 1) == 0) {
plVar4 = (long *)std::
vector<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<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>*>>
::back((vector<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<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 + 8));
if (*plVar4 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar5 = (int8 *)
std::
vector<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<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>*>>
::back((vector<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<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 + 8));
uVar3 = 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>
::is_array((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>
*)*puVar5);
if ((uVar3 & 1) == 0) {
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
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>
::basic_json(local_f8,local_58);
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>
::operator=(*(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 + 0x70),local_f8);
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>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar4 = (long *)std::
vector<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<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>*>>
::back((vector<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<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 + 8));
std::
vector<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<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>>>
::
emplace_back<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>>
(*(vector<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<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>>>
**)(*plVar4 + 8),local_58);
local_b1 = 1;
plVar4 = (long *)std::
vector<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<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>*>>
::back((vector<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<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 + 8));
local_c0 = std::
vector<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<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>>>
::back(*(vector<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<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>>>
**)(*plVar4 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
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>
::basic_json(local_90,local_58);
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>
::operator=(*(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,local_90);
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>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar6 = 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>
::~basic_json((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>
*)local_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar7._1_7_ = (int7)((ulong)uVar6 >> 8);
auVar7[0] = local_10[0];
auVar7._8_8_ = local_8;
return auVar7;
}
|
|
8,512 |
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool)
|
hkr04[P]cpp-mcp/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O1
|
cpp
|
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
movl 0x38(%rdi), %eax
leaq -0x1(%rax), %rcx
addq $0x3e, %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x30(%rdi), %rax
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %edi, %edi
cmpq %r14, %rdx
setbe %dil
movq -0x8(%rax,%rdi,8), %rax
btq %rcx, %rax
jae 0x4e1d0
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq (%rsi), %rsi
callq 0x4e2f4
testb %bpl, %bpl
jne 0x4e18d
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x2c(%rsp)
movb $0x5, 0xf(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x4e2d9
leaq 0x80(%rbx), %rdi
leaq 0x2c(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x4e2bc
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x4e1da
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x4e2bc
cmpb $0x2, (%rax)
jne 0x4e21d
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0xff52
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x4e2b8
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x4e2cb
movaps 0x10(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq (%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0xfb3c
movq (%rbx), %r14
jmp 0x4e2b8
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r14, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x4e273
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x4e2bc
movaps 0x10(%rsp), %xmm0
leaq 0x30(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x70(%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0xfb3c
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x4e2c1
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %rdi
callq 0xfb3c
movl %ebx, %eax
movq %r14, %rdx
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0xa230
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xfb3c
movq %rbx, %rdi
callq 0xaa60
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRmEESt4pairIbPSF_EOT_b:
push rbp
push r14
push rbx
sub rsp, 50h
mov ebp, edx
mov rbx, rdi
mov r14, 8000000000000000h
mov eax, [rdi+38h]
lea rcx, [rax-1]
add rax, 3Eh ; '>'
test rcx, rcx
cmovns rax, rcx
sar rax, 6
shl rax, 3
add rax, [rdi+30h]
lea rdx, [r14+3Fh]
and rdx, rcx
xor edi, edi
cmp rdx, r14
setbe dil
mov rax, [rax+rdi*8-8]
bt rax, rcx
jnb loc_4E1D0
xorps xmm0, xmm0
lea rdi, [rsp+68h+var_58]
movaps xmmword ptr [rdi], xmm0
mov rsi, [rsi]
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE6EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_17number_unsigned_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::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>::number_unsigned_t)
test bpl, bpl
jnz short loc_4E18D
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+68h+var_3C], eax
mov [rsp+68h+var_59], 5
cmp qword ptr [rbx+90h], 0
jz loc_4E2D9
lea rdi, [rbx+80h]
lea rsi, [rsp+68h+var_3C]
lea rdx, [rsp+68h+var_59]
lea rcx, [rsp+68h+var_58]
call qword ptr [rbx+98h]
test al, al
jz loc_4E2BC
loc_4E18D:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_4E1DA
mov rax, [rax-8]
test rax, rax
jz loc_4E2BC
cmp byte ptr [rax], 2
jnz short loc_4E21D
mov rdi, [rax+8]
lea rsi, [rsp+68h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<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>>::emplace_back<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> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_4E2B8
loc_4E1D0:
xor ebx, ebx
xor r14d, r14d
jmp loc_4E2CB
loc_4E1DA:
movaps xmm0, [rsp+68h+var_58]
lea rdi, [rsp+68h+var_28]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+68h+var_58], 0
mov qword ptr [rsp+68h+var_58+8], 0
mov rax, [rbx]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
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 r14, [rbx]
jmp loc_4E2B8
loc_4E21D:
mov rax, [rbx+58h]
mov esi, [rbx+60h]
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r14+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r14
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_4E273
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_4E273:
test rdx, rdx
jz short loc_4E2BC
movaps xmm0, [rsp+68h+var_58]
lea rdi, [rsp+68h+var_38]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+68h+var_58], 0
mov qword ptr [rsp+68h+var_58+8], 0
mov rax, [rbx+70h]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
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 r14, [rbx+70h]
loc_4E2B8:
mov bl, 1
jmp short loc_4E2C1
loc_4E2BC:
xor ebx, ebx
xor r14d, r14d
loc_4E2C1:
lea rdi, [rsp+68h+var_58]
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()
loc_4E2CB:
mov eax, ebx
mov rdx, r14
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_4E2D9:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
mov rbx, rax
lea rdi, [rsp+68h+var_58]
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, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::handle_value<unsigned long &>(
char **a1,
_QWORD *a2,
char a3)
{
unsigned int v4; // ebx
long long v5; // rax
signed long long v6; // rcx
long long v7; // rax
long long v8; // rax
char *v9; // rax
long long v10; // rax
char *v11; // rax
char v12; // cl
long long v13; // rcx
char *v14; // rax
long long v15; // rsi
long long v16; // rdx
long long v17; // rdx
char *v18; // rax
char v19; // cl
long long v20; // rcx
char v22; // [rsp+Fh] [rbp-59h] BYREF
__int128 v23; // [rsp+10h] [rbp-58h] BYREF
int v24; // [rsp+2Ch] [rbp-3Ch] BYREF
__int128 v25; // [rsp+30h] [rbp-38h] BYREF
__int128 v26; // [rsp+40h] [rbp-28h] BYREF
v4 = (unsigned int)a1;
v5 = *((unsigned int *)a1 + 14);
v6 = v5 - 1;
v7 = v5 + 62;
if ( v6 >= 0 )
v7 = v6;
v8 = *(_QWORD *)&a1[6][8 * (v7 >> 6) - 8 + 8 * ((v6 & 0x800000000000003FLL) <= 0x8000000000000000LL)];
if ( _bittest64(&v8, v6) )
{
v23 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<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>>(
&v23,
*a2);
if ( a3 )
goto LABEL_7;
v24 = (unsigned long long)(a1[2] - a1[1]) >> 3;
v22 = 5;
if ( !a1[18] )
std::__throw_bad_function_call();
if ( ((unsigned __int8 ( *)(char **, int *, char *, __int128 *))a1[19])(a1 + 16, &v24, &v22, &v23) )
{
LABEL_7:
v9 = a1[2];
if ( a1[1] == v9 )
{
v26 = v23;
LOBYTE(v23) = 0;
*((_QWORD *)&v23 + 1) = 0LL;
v11 = *a1;
v12 = **a1;
*v11 = v26;
LOBYTE(v26) = v12;
v13 = *((_QWORD *)v11 + 1);
*((_QWORD *)v11 + 1) = *((_QWORD *)&v26 + 1);
*((_QWORD *)&v26 + 1) = v13;
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(&v26);
goto LABEL_19;
}
v10 = *((_QWORD *)v9 - 1);
if ( v10 )
{
if ( *(_BYTE *)v10 == 2 )
{
std::vector<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>>::emplace_back<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>>(
*(_QWORD *)(v10 + 8),
(long long)&v23);
LABEL_19:
LOBYTE(v4) = 1;
LABEL_21:
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);
return v4;
}
v14 = a1[11];
v15 = *((unsigned int *)a1 + 24);
v16 = v15 + 62;
if ( v15 - 1 >= 0 )
v16 = v15 - 1;
v17 = *(_QWORD *)&v14[8 * (v16 >> 6) - 8 + 8 * (((v15 - 1) & 0x800000000000003FLL) <= 0x8000000000000000LL)] & (1LL << ((unsigned __int8)v15 - 1));
*((_DWORD *)a1 + 24) = v15 - 1;
if ( !(_DWORD)v15 )
{
*((_DWORD *)a1 + 24) = 63;
a1[11] = v14 - 8;
}
if ( v17 )
{
v25 = v23;
LOBYTE(v23) = 0;
*((_QWORD *)&v23 + 1) = 0LL;
v18 = a1[14];
v19 = *v18;
*v18 = v25;
LOBYTE(v25) = v19;
v20 = *((_QWORD *)v18 + 1);
*((_QWORD *)v18 + 1) = *((_QWORD *)&v25 + 1);
*((_QWORD *)&v25 + 1) = v20;
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(&v25);
goto LABEL_19;
}
}
}
v4 = 0;
goto LABEL_21;
}
return 0;
}
|
handle_value<unsigned_long&>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV EBP,EDX
MOV RBX,RDI
MOV R14,-0x8000000000000000
MOV EAX,dword ptr [RDI + 0x38]
LEA RCX,[RAX + -0x1]
ADD RAX,0x3e
TEST RCX,RCX
CMOVNS RAX,RCX
SAR RAX,0x6
SHL RAX,0x3
ADD RAX,qword ptr [RDI + 0x30]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR EDI,EDI
CMP RDX,R14
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RCX
JNC 0x0014e1d0
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x10]
MOVAPS xmmword ptr [RDI],XMM0
MOV RSI,qword ptr [RSI]
CALL 0x0014e2f4
TEST BPL,BPL
JNZ 0x0014e18d
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0x2c],EAX
MOV byte ptr [RSP + 0xf],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x0014e2d9
LEA RDI,[RBX + 0x80]
LAB_0014e170:
LEA RSI,[RSP + 0x2c]
LEA RDX,[RSP + 0xf]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x0014e2bc
LAB_0014e18d:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x0014e1da
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x0014e2bc
CMP byte ptr [RAX],0x2
JNZ 0x0014e21d
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x0010ff52
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x0014e2b8
LAB_0014e1d0:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x0014e2cb
LAB_0014e1da:
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x40]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV RAX,qword ptr [RBX]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x0010fb3c
MOV R14,qword ptr [RBX]
JMP 0x0014e2b8
LAB_0014e21d:
MOV RAX,qword ptr [RBX + 0x58]
MOV ESI,dword ptr [RBX + 0x60]
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R14
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x0014e273
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_0014e273:
TEST RDX,RDX
JZ 0x0014e2bc
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x30]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV RAX,qword ptr [RBX + 0x70]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x0010fb3c
MOV R14,qword ptr [RBX + 0x70]
LAB_0014e2b8:
MOV BL,0x1
JMP 0x0014e2c1
LAB_0014e2bc:
XOR EBX,EBX
XOR R14D,R14D
LAB_0014e2c1:
LEA RDI,[RSP + 0x10]
CALL 0x0010fb3c
LAB_0014e2cb:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_0014e2d9:
CALL 0x0010a230
|
/* std::pair<bool, 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::json_sax_dom_callback_parser<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> >::handle_value<unsigned long&>(unsigned long&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<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>>
::handle_value<unsigned_long&>
(json_sax_dom_callback_parser<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,ulong *param_1,bool param_2)
{
data dVar1;
uint uVar2;
char *pcVar3;
data *pdVar4;
uint7 uVar5;
int8 uVar6;
int8 uVar7;
char cVar8;
ulong uVar9;
ulong uVar10;
long lVar11;
int1 auVar12 [16];
int1 local_59;
long local_58;
int8 uStack_50;
int4 local_3c;
data local_38;
uint7 uStack_37;
int8 uStack_30;
data local_28;
uint7 uStack_27;
int8 uStack_20;
uVar10 = (ulong)*(uint *)(this + 0x38) - 1;
uVar9 = (ulong)*(uint *)(this + 0x38) + 0x3e;
if (-1 < (long)uVar10) {
uVar9 = uVar10;
}
if ((*(ulong *)(((long)uVar9 >> 6) * 8 + *(long *)(this + 0x30) + -8 +
(ulong)((uVar10 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar10 & 0x3f)
& 1) == 0) {
uVar10 = 0;
lVar11 = 0;
goto LAB_0014e2cb;
}
local_58 = 0;
uStack_50 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::
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>>
(&local_58,*param_1);
if (param_2) {
LAB_0014e18d:
uVar7 = _local_28;
uVar6 = uStack_50;
uVar5 = local_58._1_7_;
local_28 = SUB81(local_58,0);
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_58 = (ulong)local_58._1_7_ << 8;
uStack_50 = 0;
pdVar4 = *(data **)this;
dVar1 = *pdVar4;
*pdVar4 = local_28;
_local_28 = CONCAT71(uVar5,dVar1);
uStack_20 = *(int8 *)(pdVar4 + 8);
*(int8 *)(pdVar4 + 8) = uVar6;
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);
lVar11 = *(long *)this;
}
else {
pcVar3 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar3 == (char *)0x0) goto LAB_0014e2bc;
_local_28 = uVar7;
if (*pcVar3 == '\x02') {
std::
vector<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<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>>>
::
emplace_back<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>>
(*(vector<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<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>>>
**)(pcVar3 + 8),(basic_json *)&local_58);
lVar11 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
else {
uVar2 = *(uint *)(this + 0x60);
uVar10 = (ulong)uVar2 - 1;
uVar9 = (ulong)uVar2 + 0x3e;
if (-1 < (long)uVar10) {
uVar9 = uVar10;
}
uVar9 = *(ulong *)(*(long *)(this + 0x58) + ((long)uVar9 >> 6) * 8 + -8 +
(ulong)((uVar10 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar2 - 1;
if (uVar2 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = *(long *)(this + 0x58) + -8;
}
if ((1L << ((byte)uVar10 & 0x3f) & uVar9) == 0) goto LAB_0014e2bc;
local_58 = (ulong)local_58._1_7_ << 8;
uStack_50 = 0;
pdVar4 = *(data **)(this + 0x70);
dVar1 = *pdVar4;
*pdVar4 = local_28;
_local_38 = CONCAT71(uVar5,dVar1);
uStack_30 = *(int8 *)(pdVar4 + 8);
*(int8 *)(pdVar4 + 8) = uVar6;
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_38);
lVar11 = *(long *)(this + 0x70);
}
}
uVar10 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_3c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_59 = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
/* try { // try from 0014e170 to 0014e2dd has its CatchHandler @ 0014e2de */
cVar8 = (**(code **)(this + 0x98))(this + 0x80,&local_3c,&local_59,&local_58);
uVar7 = _local_28;
if (cVar8 != '\0') goto LAB_0014e18d;
LAB_0014e2bc:
_local_28 = uVar7;
uVar10 = 0;
lVar11 = 0;
}
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((data *)&local_58);
LAB_0014e2cb:
auVar12._0_8_ = uVar10 & 0xffffffff;
auVar12._8_8_ = lVar11;
return auVar12;
}
|
|
8,513 |
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool)
|
hkr04[P]cpp-mcp/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O2
|
cpp
|
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x20, %rdi
callq 0x3f0fc
testq %rdx, (%rax)
je 0x406fb
movq %rsp, %rdi
movq %r14, %rsi
callq 0xcd9e
testb %bpl, %bpl
jne 0x406ba
leaq 0x80(%rbx), %rdi
movq 0x10(%rbx), %rsi
subq 0x8(%rbx), %rsi
shrq $0x3, %rsi
pushq $0x5
popq %rdx
movq %rsp, %rcx
callq 0x3f12a
testb %al, %al
je 0x4079c
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x40705
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x4079c
cmpb $0x2, (%rax)
jne 0x40740
movq 0x8(%rax), %rdi
movq %rsp, %rsi
callq 0xe056
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x40798
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x407a9
movups (%rsp), %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, (%rsp)
andq $0x0, 0x8(%rsp)
movq (%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0xdc84
movq (%rbx), %r14
jmp 0x40798
leaq 0x48(%rbx), %rdi
callq 0x3f0fc
movq %rdx, %r14
movq (%rax), %r15
leaq 0x58(%rbx), %rdi
callq 0x3e7e8
testq %r14, %r15
je 0x4079c
movups (%rsp), %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, (%rsp)
andq $0x0, 0x8(%rsp)
movq 0x70(%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0xdc84
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x407a1
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %rsp, %rdi
callq 0xdc84
movl %ebx, %eax
movq %r14, %rdx
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x407bb
movq %rax, %rbx
movq %rsp, %rdi
callq 0xdc84
movq %rbx, %rdi
callq 0xaac0
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
test [rax], rdx
jz short loc_406FB
mov rdi, rsp
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
test bpl, bpl
jnz short loc_406BA
lea rdi, [rbx+80h]
mov rsi, [rbx+10h]
sub rsi, [rbx+8]
shr rsi, 3
push 5
pop rdx
mov rcx, rsp
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)
test al, al
jz loc_4079C
loc_406BA:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_40705
mov rax, [rax-8]
test rax, rax
jz loc_4079C
cmp byte ptr [rax], 2
jnz short loc_40740
mov rdi, [rax+8]
mov rsi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<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>>::emplace_back<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> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_40798
loc_406FB:
xor ebx, ebx
xor r14d, r14d
jmp loc_407A9
loc_40705:
movups xmm0, [rsp+58h+var_58]
lea rdi, [rsp+58h+var_38]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+58h+var_58], 0
and qword ptr [rsp+58h+var_58+8], 0
mov rax, [rbx]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
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 r14, [rbx]
jmp short loc_40798
loc_40740:
lea rdi, [rbx+48h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov r14, rdx
mov r15, [rax]
lea rdi, [rbx+58h]; this
call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void)
test r15, r14
jz short loc_4079C
movups xmm0, [rsp+58h+var_58]
lea rdi, [rsp+58h+var_48]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+58h+var_58], 0
and qword ptr [rsp+58h+var_58+8], 0
mov rax, [rbx+70h]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
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 r14, [rbx+70h]
loc_40798:
mov bl, 1
jmp short loc_407A1
loc_4079C:
xor ebx, ebx
xor r14d, r14d
loc_407A1:
mov rdi, rsp
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()
loc_407A9:
mov eax, ebx
mov rdx, r14
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_407BB:
mov rbx, rax
mov rdi, rsp
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, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::handle_value<std::string&>(
char **a1,
long long a2,
char a3)
{
unsigned int v4; // ebx
_QWORD *v5; // rax
long long v6; // rdx
char *v7; // rax
long long v8; // rax
char *v9; // rax
char v10; // cl
long long v11; // rcx
long long *v12; // rax
long long v13; // rdx
long long v14; // r14
long long v15; // r15
char *v16; // rax
char v17; // cl
long long v18; // rcx
__int128 v20; // [rsp+0h] [rbp-58h] BYREF
__int128 v21; // [rsp+10h] [rbp-48h] BYREF
__int128 v22; // [rsp+20h] [rbp-38h] BYREF
v4 = (unsigned int)a1;
v5 = (_QWORD *)std::vector<bool>::back((long long)(a1 + 4));
if ( (v6 & *v5) != 0 )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(&v20);
if ( a3
|| (unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::operator()(
(long long)(a1 + 16),
(unsigned long long)(a1[2] - a1[1]) >> 3,
5) )
{
v7 = a1[2];
if ( a1[1] == v7 )
{
v22 = v20;
LOBYTE(v20) = 0;
*((_QWORD *)&v20 + 1) = 0LL;
v9 = *a1;
v10 = **a1;
*v9 = v22;
LOBYTE(v22) = v10;
v11 = *((_QWORD *)v9 + 1);
*((_QWORD *)v9 + 1) = *((_QWORD *)&v22 + 1);
*((_QWORD *)&v22 + 1) = v11;
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(&v22);
goto LABEL_12;
}
v8 = *((_QWORD *)v7 - 1);
if ( v8 )
{
if ( *(_BYTE *)v8 == 2 )
{
std::vector<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>>::emplace_back<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>>(
*(_QWORD *)(v8 + 8),
(long long)&v20);
LABEL_12:
LOBYTE(v4) = 1;
LABEL_14:
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(&v20);
return v4;
}
v12 = (long long *)std::vector<bool>::back((long long)(a1 + 9));
v14 = v13;
v15 = *v12;
std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 11));
if ( (v14 & v15) != 0 )
{
v21 = v20;
LOBYTE(v20) = 0;
*((_QWORD *)&v20 + 1) = 0LL;
v16 = a1[14];
v17 = *v16;
*v16 = v21;
LOBYTE(v21) = v17;
v18 = *((_QWORD *)v16 + 1);
*((_QWORD *)v16 + 1) = *((_QWORD *)&v21 + 1);
*((_QWORD *)&v21 + 1) = v18;
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(&v21);
goto LABEL_12;
}
}
}
v4 = 0;
goto LABEL_14;
}
return 0;
}
|
handle_value<std::__cxx11::string&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
ADD RDI,0x20
CALL 0x0013f0fc
TEST qword ptr [RAX],RDX
JZ 0x001406fb
MOV RDI,RSP
MOV RSI,R14
CALL 0x0010cd9e
TEST BPL,BPL
JNZ 0x001406ba
LEA RDI,[RBX + 0x80]
MOV RSI,qword ptr [RBX + 0x10]
SUB RSI,qword ptr [RBX + 0x8]
SHR RSI,0x3
LAB_001406a7:
PUSH 0x5
POP RDX
MOV RCX,RSP
CALL 0x0013f12a
TEST AL,AL
JZ 0x0014079c
LAB_001406ba:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00140705
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x0014079c
CMP byte ptr [RAX],0x2
JNZ 0x00140740
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,RSP
CALL 0x0010e056
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x00140798
LAB_001406fb:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x001407a9
LAB_00140705:
MOVUPS XMM0,xmmword ptr [RSP]
LEA RDI,[RSP + 0x20]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP],0x0
AND qword ptr [RSP + 0x8],0x0
MOV RAX,qword ptr [RBX]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x0010dc84
MOV R14,qword ptr [RBX]
JMP 0x00140798
LAB_00140740:
LEA RDI,[RBX + 0x48]
LAB_00140744:
CALL 0x0013f0fc
LAB_00140749:
MOV R14,RDX
MOV R15,qword ptr [RAX]
LEA RDI,[RBX + 0x58]
CALL 0x0013e7e8
TEST R15,R14
JZ 0x0014079c
MOVUPS XMM0,xmmword ptr [RSP]
LEA RDI,[RSP + 0x10]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP],0x0
AND qword ptr [RSP + 0x8],0x0
MOV RAX,qword ptr [RBX + 0x70]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x0010dc84
MOV R14,qword ptr [RBX + 0x70]
LAB_00140798:
MOV BL,0x1
JMP 0x001407a1
LAB_0014079c:
XOR EBX,EBX
XOR R14D,R14D
LAB_001407a1:
MOV RDI,RSP
CALL 0x0010dc84
LAB_001407a9:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* std::pair<bool, 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::json_sax_dom_callback_parser<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> >::handle_value<std::__cxx11::string&>(std::__cxx11::string&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<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>>
::handle_value<std::__cxx11::string&>
(json_sax_dom_callback_parser<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,string *param_1,bool param_2)
{
basic_json bVar1;
char *pcVar2;
basic_json *pbVar3;
basic_json bVar4;
int8 uVar5;
char cVar6;
ulong uVar7;
long lVar8;
int1 auVar9 [16];
basic_json local_58;
int7 uStack_57;
int8 uStack_50;
basic_json local_48;
int7 uStack_47;
int8 uStack_40;
basic_json local_38;
int7 uStack_37;
int8 uStack_30;
auVar9 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((*auVar9._0_8_ & auVar9._8_8_) == 0) {
uVar7 = 0;
lVar8 = 0;
goto LAB_001407a9;
}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(&local_58,param_1);
if (param_2) {
LAB_001406ba:
uVar5 = uStack_50;
bVar4 = local_58;
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_58 = (basic_json)0x0;
uStack_50 = 0;
pbVar3 = *(basic_json **)this;
bVar1 = *pbVar3;
*pbVar3 = bVar4;
_local_38 = CONCAT71(uStack_57,bVar1);
uStack_30 = *(int8 *)(pbVar3 + 8);
*(int8 *)(pbVar3 + 8) = uVar5;
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((data *)&local_38);
lVar8 = *(long *)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar2 == (char *)0x0) goto LAB_0014079c;
if (*pcVar2 == '\x02') {
std::
vector<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<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>>>
::
emplace_back<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>>
(*(vector<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<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>>>
**)(pcVar2 + 8),&local_58);
lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
else {
/* try { // try from 00140744 to 00140748 has its CatchHandler @ 001407b9 */
auVar9 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
uVar7 = *auVar9._0_8_;
std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58));
uVar5 = uStack_50;
bVar4 = local_58;
if ((uVar7 & auVar9._8_8_) == 0) goto LAB_0014079c;
local_58 = (basic_json)0x0;
uStack_50 = 0;
pbVar3 = *(basic_json **)(this + 0x70);
bVar1 = *pbVar3;
*pbVar3 = bVar4;
_local_48 = CONCAT71(uStack_57,bVar1);
uStack_40 = *(int8 *)(pbVar3 + 8);
*(int8 *)(pbVar3 + 8) = uVar5;
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((data *)&local_48);
lVar8 = *(long *)(this + 0x70);
}
}
uVar7 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
/* try { // try from 001406a7 to 001406e1 has its CatchHandler @ 001407bb */
cVar6 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>
::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,5,
&local_58);
if (cVar6 != '\0') goto LAB_001406ba;
LAB_0014079c:
uVar7 = 0;
lVar8 = 0;
}
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((data *)&local_58);
LAB_001407a9:
auVar9._0_8_ = uVar7 & 0xffffffff;
auVar9._8_8_ = lVar8;
return auVar9;
}
|
|
8,514 |
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool)
|
hkr04[P]cpp-mcp/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O3
|
cpp
|
std::pair<bool, 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::json_sax_dom_callback_parser<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>>::handle_value<long&>(long&, bool):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
movl 0x38(%rdi), %eax
leaq -0x1(%rax), %rcx
addq $0x3e, %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x30(%rdi), %rax
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %edi, %edi
cmpq %r14, %rdx
setbe %dil
movq -0x8(%rax,%rdi,8), %rax
btq %rcx, %rax
jae 0x4cd46
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq (%rsi), %rsi
callq 0x4ce6a
testb %bpl, %bpl
jne 0x4cd03
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x2c(%rsp)
movb $0x5, 0xf(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x4ce4f
leaq 0x80(%rbx), %rdi
leaq 0x2c(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x4ce32
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x4cd50
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x4ce32
cmpb $0x2, (%rax)
jne 0x4cd93
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0xfdd8
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x4ce2e
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x4ce41
movaps 0x10(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq (%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0xf998
movq (%rbx), %r14
jmp 0x4ce2e
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r14, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x4cde9
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x4ce32
movaps 0x10(%rsp), %xmm0
leaq 0x30(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x70(%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0xf998
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x4ce37
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %rdi
callq 0xf998
movl %ebx, %eax
movq %r14, %rdx
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0xa230
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xf998
movq %rbx, %rdi
callq 0xaa50
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRmEESt4pairIbPSF_EOT_b:
push rbp
push r14
push rbx
sub rsp, 50h
mov ebp, edx
mov rbx, rdi
mov r14, 8000000000000000h
mov eax, [rdi+38h]
lea rcx, [rax-1]
add rax, 3Eh ; '>'
test rcx, rcx
cmovns rax, rcx
sar rax, 6
shl rax, 3
add rax, [rdi+30h]
lea rdx, [r14+3Fh]
and rdx, rcx
xor edi, edi
cmp rdx, r14
setbe dil
mov rax, [rax+rdi*8-8]
bt rax, rcx
jnb loc_4CD46
xorps xmm0, xmm0
lea rdi, [rsp+68h+var_58]
movaps xmmword ptr [rdi], xmm0
mov rsi, [rsi]
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE6EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_17number_unsigned_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::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>::number_unsigned_t)
test bpl, bpl
jnz short loc_4CD03
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+68h+var_3C], eax
mov [rsp+68h+var_59], 5
cmp qword ptr [rbx+90h], 0
jz loc_4CE4F
lea rdi, [rbx+80h]
lea rsi, [rsp+68h+var_3C]
lea rdx, [rsp+68h+var_59]
lea rcx, [rsp+68h+var_58]
call qword ptr [rbx+98h]
test al, al
jz loc_4CE32
loc_4CD03:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_4CD50
mov rax, [rax-8]
test rax, rax
jz loc_4CE32
cmp byte ptr [rax], 2
jnz short loc_4CD93
mov rdi, [rax+8]
lea rsi, [rsp+68h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<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>>::emplace_back<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> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_4CE2E
loc_4CD46:
xor ebx, ebx
xor r14d, r14d
jmp loc_4CE41
loc_4CD50:
movaps xmm0, [rsp+68h+var_58]
lea rdi, [rsp+68h+var_28]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+68h+var_58], 0
mov qword ptr [rsp+68h+var_58+8], 0
mov rax, [rbx]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
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 r14, [rbx]
jmp loc_4CE2E
loc_4CD93:
mov rax, [rbx+58h]
mov esi, [rbx+60h]
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r14+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r14
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_4CDE9
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_4CDE9:
test rdx, rdx
jz short loc_4CE32
movaps xmm0, [rsp+68h+var_58]
lea rdi, [rsp+68h+var_38]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+68h+var_58], 0
mov qword ptr [rsp+68h+var_58+8], 0
mov rax, [rbx+70h]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
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 r14, [rbx+70h]
loc_4CE2E:
mov bl, 1
jmp short loc_4CE37
loc_4CE32:
xor ebx, ebx
xor r14d, r14d
loc_4CE37:
lea rdi, [rsp+68h+var_58]
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()
loc_4CE41:
mov eax, ebx
mov rdx, r14
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_4CE4F:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
mov rbx, rax
lea rdi, [rsp+68h+var_58]
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, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::handle_value<unsigned long &>(
char **a1,
_QWORD *a2,
char a3)
{
unsigned int v4; // ebx
long long v5; // rax
signed long long v6; // rcx
long long v7; // rax
long long v8; // rax
char *v9; // rax
long long v10; // rax
char *v11; // rax
char v12; // cl
long long v13; // rcx
char *v14; // rax
long long v15; // rsi
long long v16; // rdx
long long v17; // rdx
char *v18; // rax
char v19; // cl
long long v20; // rcx
char v22; // [rsp+Fh] [rbp-59h] BYREF
__int128 v23; // [rsp+10h] [rbp-58h] BYREF
int v24; // [rsp+2Ch] [rbp-3Ch] BYREF
__int128 v25; // [rsp+30h] [rbp-38h] BYREF
__int128 v26; // [rsp+40h] [rbp-28h] BYREF
v4 = (unsigned int)a1;
v5 = *((unsigned int *)a1 + 14);
v6 = v5 - 1;
v7 = v5 + 62;
if ( v6 >= 0 )
v7 = v6;
v8 = *(_QWORD *)&a1[6][8 * (v7 >> 6) - 8 + 8 * ((v6 & 0x800000000000003FLL) <= 0x8000000000000000LL)];
if ( _bittest64(&v8, v6) )
{
v23 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<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>>(
&v23,
*a2);
if ( a3 )
goto LABEL_7;
v24 = (unsigned long long)(a1[2] - a1[1]) >> 3;
v22 = 5;
if ( !a1[18] )
std::__throw_bad_function_call();
if ( ((unsigned __int8 ( *)(char **, int *, char *, __int128 *))a1[19])(a1 + 16, &v24, &v22, &v23) )
{
LABEL_7:
v9 = a1[2];
if ( a1[1] == v9 )
{
v26 = v23;
LOBYTE(v23) = 0;
*((_QWORD *)&v23 + 1) = 0LL;
v11 = *a1;
v12 = **a1;
*v11 = v26;
LOBYTE(v26) = v12;
v13 = *((_QWORD *)v11 + 1);
*((_QWORD *)v11 + 1) = *((_QWORD *)&v26 + 1);
*((_QWORD *)&v26 + 1) = v13;
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(&v26);
goto LABEL_19;
}
v10 = *((_QWORD *)v9 - 1);
if ( v10 )
{
if ( *(_BYTE *)v10 == 2 )
{
std::vector<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>>::emplace_back<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>>(
*(_QWORD *)(v10 + 8),
(long long)&v23);
LABEL_19:
LOBYTE(v4) = 1;
LABEL_21:
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);
return v4;
}
v14 = a1[11];
v15 = *((unsigned int *)a1 + 24);
v16 = v15 + 62;
if ( v15 - 1 >= 0 )
v16 = v15 - 1;
v17 = *(_QWORD *)&v14[8 * (v16 >> 6) - 8 + 8 * (((v15 - 1) & 0x800000000000003FLL) <= 0x8000000000000000LL)] & (1LL << ((unsigned __int8)v15 - 1));
*((_DWORD *)a1 + 24) = v15 - 1;
if ( !(_DWORD)v15 )
{
*((_DWORD *)a1 + 24) = 63;
a1[11] = v14 - 8;
}
if ( v17 )
{
v25 = v23;
LOBYTE(v23) = 0;
*((_QWORD *)&v23 + 1) = 0LL;
v18 = a1[14];
v19 = *v18;
*v18 = v25;
LOBYTE(v25) = v19;
v20 = *((_QWORD *)v18 + 1);
*((_QWORD *)v18 + 1) = *((_QWORD *)&v25 + 1);
*((_QWORD *)&v25 + 1) = v20;
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(&v25);
goto LABEL_19;
}
}
}
v4 = 0;
goto LABEL_21;
}
return 0;
}
|
handle_value<unsigned_long&>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV EBP,EDX
MOV RBX,RDI
MOV R14,-0x8000000000000000
MOV EAX,dword ptr [RDI + 0x38]
LEA RCX,[RAX + -0x1]
ADD RAX,0x3e
TEST RCX,RCX
CMOVNS RAX,RCX
SAR RAX,0x6
SHL RAX,0x3
ADD RAX,qword ptr [RDI + 0x30]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR EDI,EDI
CMP RDX,R14
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RCX
JNC 0x0014cd46
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x10]
MOVAPS xmmword ptr [RDI],XMM0
MOV RSI,qword ptr [RSI]
CALL 0x0014ce6a
TEST BPL,BPL
JNZ 0x0014cd03
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0x2c],EAX
MOV byte ptr [RSP + 0xf],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x0014ce4f
LEA RDI,[RBX + 0x80]
LAB_0014cce6:
LEA RSI,[RSP + 0x2c]
LEA RDX,[RSP + 0xf]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x0014ce32
LAB_0014cd03:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x0014cd50
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x0014ce32
CMP byte ptr [RAX],0x2
JNZ 0x0014cd93
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x0010fdd8
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x0014ce2e
LAB_0014cd46:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x0014ce41
LAB_0014cd50:
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x40]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV RAX,qword ptr [RBX]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x0010f998
MOV R14,qword ptr [RBX]
JMP 0x0014ce2e
LAB_0014cd93:
MOV RAX,qword ptr [RBX + 0x58]
MOV ESI,dword ptr [RBX + 0x60]
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R14
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x0014cde9
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_0014cde9:
TEST RDX,RDX
JZ 0x0014ce32
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x30]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV RAX,qword ptr [RBX + 0x70]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x0010f998
MOV R14,qword ptr [RBX + 0x70]
LAB_0014ce2e:
MOV BL,0x1
JMP 0x0014ce37
LAB_0014ce32:
XOR EBX,EBX
XOR R14D,R14D
LAB_0014ce37:
LEA RDI,[RSP + 0x10]
CALL 0x0010f998
LAB_0014ce41:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_0014ce4f:
CALL 0x0010a230
|
/* std::pair<bool, 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::json_sax_dom_callback_parser<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> >::handle_value<unsigned long&>(unsigned long&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<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>>
::handle_value<unsigned_long&>
(json_sax_dom_callback_parser<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,ulong *param_1,bool param_2)
{
data dVar1;
uint uVar2;
char *pcVar3;
data *pdVar4;
uint7 uVar5;
int8 uVar6;
int8 uVar7;
char cVar8;
ulong uVar9;
ulong uVar10;
long lVar11;
int1 auVar12 [16];
int1 local_59;
long local_58;
int8 uStack_50;
int4 local_3c;
data local_38;
uint7 uStack_37;
int8 uStack_30;
data local_28;
uint7 uStack_27;
int8 uStack_20;
uVar10 = (ulong)*(uint *)(this + 0x38) - 1;
uVar9 = (ulong)*(uint *)(this + 0x38) + 0x3e;
if (-1 < (long)uVar10) {
uVar9 = uVar10;
}
if ((*(ulong *)(((long)uVar9 >> 6) * 8 + *(long *)(this + 0x30) + -8 +
(ulong)((uVar10 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar10 & 0x3f)
& 1) == 0) {
uVar10 = 0;
lVar11 = 0;
goto LAB_0014ce41;
}
local_58 = 0;
uStack_50 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::
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>>
(&local_58,*param_1);
if (param_2) {
LAB_0014cd03:
uVar7 = _local_28;
uVar6 = uStack_50;
uVar5 = local_58._1_7_;
local_28 = SUB81(local_58,0);
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_58 = (ulong)local_58._1_7_ << 8;
uStack_50 = 0;
pdVar4 = *(data **)this;
dVar1 = *pdVar4;
*pdVar4 = local_28;
_local_28 = CONCAT71(uVar5,dVar1);
uStack_20 = *(int8 *)(pdVar4 + 8);
*(int8 *)(pdVar4 + 8) = uVar6;
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);
lVar11 = *(long *)this;
}
else {
pcVar3 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar3 == (char *)0x0) goto LAB_0014ce32;
_local_28 = uVar7;
if (*pcVar3 == '\x02') {
std::
vector<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<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>>>
::
emplace_back<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>>
(*(vector<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<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>>>
**)(pcVar3 + 8),(basic_json *)&local_58);
lVar11 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
else {
uVar2 = *(uint *)(this + 0x60);
uVar10 = (ulong)uVar2 - 1;
uVar9 = (ulong)uVar2 + 0x3e;
if (-1 < (long)uVar10) {
uVar9 = uVar10;
}
uVar9 = *(ulong *)(*(long *)(this + 0x58) + ((long)uVar9 >> 6) * 8 + -8 +
(ulong)((uVar10 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar2 - 1;
if (uVar2 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = *(long *)(this + 0x58) + -8;
}
if ((1L << ((byte)uVar10 & 0x3f) & uVar9) == 0) goto LAB_0014ce32;
local_58 = (ulong)local_58._1_7_ << 8;
uStack_50 = 0;
pdVar4 = *(data **)(this + 0x70);
dVar1 = *pdVar4;
*pdVar4 = local_28;
_local_38 = CONCAT71(uVar5,dVar1);
uStack_30 = *(int8 *)(pdVar4 + 8);
*(int8 *)(pdVar4 + 8) = uVar6;
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_38);
lVar11 = *(long *)(this + 0x70);
}
}
uVar10 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_3c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_59 = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
/* try { // try from 0014cce6 to 0014ce53 has its CatchHandler @ 0014ce54 */
cVar8 = (**(code **)(this + 0x98))(this + 0x80,&local_3c,&local_59,&local_58);
uVar7 = _local_28;
if (cVar8 != '\0') goto LAB_0014cd03;
LAB_0014ce32:
_local_28 = uVar7;
uVar10 = 0;
lVar11 = 0;
}
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((data *)&local_58);
LAB_0014ce41:
auVar12._0_8_ = uVar10 & 0xffffffff;
auVar12._8_8_ = lVar11;
return auVar12;
}
|
|
8,515 |
copy_decode_table
|
eloqsql/storage/myisam/mi_packrec.c
|
static uint copy_decode_table(uint16 *to_pos, uint offset,
uint16 *decode_table)
{
uint prev_offset= offset;
DBUG_ENTER("copy_decode_table");
/* Descent on the left side. */
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next target node. */
to_pos[offset]=2;
/* Copy the left hand subtree there. */
offset=copy_decode_table(to_pos,offset+2,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[offset]= *decode_table;
/* Step behind this node. */
offset+=2;
}
/* Descent on the right side. */
decode_table++;
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next free target node. */
to_pos[prev_offset+1]=(uint16) (offset-prev_offset-1);
/* Copy the right hand subtree to the entry of that node. */
offset=copy_decode_table(to_pos,offset,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[prev_offset+1]= *decode_table;
}
DBUG_RETURN(offset);
}
|
O0
|
c
|
copy_decode_table:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0xc163e
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movw $0x2, (%rax,%rcx,2)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x2, %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
cltq
shlq %rax
addq %rax, %rdx
callq 0xc15e0
movl %eax, -0xc(%rbp)
jmp 0xc1659
movq -0x18(%rbp), %rax
movw (%rax), %dx
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movw %dx, (%rax,%rcx,2)
movl -0xc(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xc(%rbp)
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0xc16b6
movl -0xc(%rbp), %eax
subl -0x1c(%rbp), %eax
subl $0x1, %eax
movw %ax, %dx
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movw %dx, (%rax,%rcx,2)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
cltq
shlq %rax
addq %rax, %rdx
callq 0xc15e0
movl %eax, -0xc(%rbp)
jmp 0xc16cd
movq -0x18(%rbp), %rax
movw (%rax), %dx
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movw %dx, (%rax,%rcx,2)
jmp 0xc16cf
movl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
copy_decode_table_0:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov eax, [rbp+var_C]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jnz short loc_C163E
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
mov word ptr [rax+rcx*2], 2
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
add esi, 2
mov rdx, [rbp+var_18]
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
cdqe
shl rax, 1
add rdx, rax
call copy_decode_table_0
mov [rbp+var_C], eax
jmp short loc_C1659
loc_C163E:
mov rax, [rbp+var_18]
mov dx, [rax]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
mov [rax+rcx*2], dx
mov eax, [rbp+var_C]
add eax, 2
mov [rbp+var_C], eax
loc_C1659:
mov rax, [rbp+var_18]
add rax, 2
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jnz short loc_C16B6
mov eax, [rbp+var_C]
sub eax, [rbp+var_1C]
sub eax, 1
mov dx, ax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 1
mov ecx, ecx
mov [rax+rcx*2], dx
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
cdqe
shl rax, 1
add rdx, rax
call copy_decode_table_0
mov [rbp+var_C], eax
jmp short loc_C16CD
loc_C16B6:
mov rax, [rbp+var_18]
mov dx, [rax]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 1
mov ecx, ecx
mov [rax+rcx*2], dx
loc_C16CD:
jmp short $+2
loc_C16CF:
mov eax, [rbp+var_C]
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
|
long long copy_decode_table_0(long long a1, unsigned int a2, _WORD *a3)
{
_WORD *v5; // [rsp+8h] [rbp-18h]
unsigned int v6; // [rsp+14h] [rbp-Ch]
if ( (*a3 & 0x8000) != 0 )
{
*(_WORD *)(a1 + 2LL * a2) = *a3;
v6 = a2 + 2;
}
else
{
*(_WORD *)(a1 + 2LL * a2) = 2;
v6 = copy_decode_table_0(a1, a2 + 2, &a3[(unsigned __int16)*a3]);
}
v5 = a3 + 1;
if ( (*v5 & 0x8000) != 0 )
{
*(_WORD *)(a1 + 2LL * (a2 + 1)) = *v5;
}
else
{
*(_WORD *)(a1 + 2LL * (a2 + 1)) = v6 - a2 - 1;
return (unsigned int)copy_decode_table_0(a1, v6, &v5[(unsigned __int16)*v5]);
}
return v6;
}
|
copy_decode_table:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x001c163e
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV word ptr [RAX + RCX*0x2],0x2
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
ADD ESI,0x2
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
CDQE
SHL RAX,0x1
ADD RDX,RAX
CALL 0x001c15e0
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001c1659
LAB_001c163e:
MOV RAX,qword ptr [RBP + -0x18]
MOV DX,word ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV word ptr [RAX + RCX*0x2],DX
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x2
MOV dword ptr [RBP + -0xc],EAX
LAB_001c1659:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x001c16b6
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x1
MOV DX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x1
MOV ECX,ECX
MOV word ptr [RAX + RCX*0x2],DX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
CDQE
SHL RAX,0x1
ADD RDX,RAX
CALL 0x001c15e0
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001c16cd
LAB_001c16b6:
MOV RAX,qword ptr [RBP + -0x18]
MOV DX,word ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x1
MOV ECX,ECX
MOV word ptr [RAX + RCX*0x2],DX
LAB_001c16cd:
JMP 0x001c16cf
LAB_001c16cf:
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
int copy_decode_table(long param_1,uint param_2,ushort *param_3)
{
int local_14;
if ((*param_3 & 0x8000) == 0) {
*(int2 *)(param_1 + (ulong)param_2 * 2) = 2;
local_14 = copy_decode_table(param_1,param_2 + 2,param_3 + (int)(uint)*param_3);
}
else {
*(ushort *)(param_1 + (ulong)param_2 * 2) = *param_3;
local_14 = param_2 + 2;
}
param_3 = param_3 + 1;
if ((*param_3 & 0x8000) == 0) {
*(short *)(param_1 + (ulong)(param_2 + 1) * 2) = ((short)local_14 - (short)param_2) + -1;
local_14 = copy_decode_table(param_1,local_14,param_3 + (int)(uint)*param_3);
}
else {
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = *param_3;
}
return local_14;
}
|
|
8,516 |
copy_decode_table
|
eloqsql/storage/myisam/mi_packrec.c
|
static uint copy_decode_table(uint16 *to_pos, uint offset,
uint16 *decode_table)
{
uint prev_offset= offset;
DBUG_ENTER("copy_decode_table");
/* Descent on the left side. */
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next target node. */
to_pos[offset]=2;
/* Copy the left hand subtree there. */
offset=copy_decode_table(to_pos,offset+2,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[offset]= *decode_table;
/* Step behind this node. */
offset+=2;
}
/* Descent on the right side. */
decode_table++;
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next free target node. */
to_pos[prev_offset+1]=(uint16) (offset-prev_offset-1);
/* Copy the right hand subtree to the entry of that node. */
offset=copy_decode_table(to_pos,offset,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[prev_offset+1]= *decode_table;
}
DBUG_RETURN(offset);
}
|
O3
|
c
|
copy_decode_table:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %eax
movq %rdi, %rbx
movzwl (%r14), %ecx
movl %eax, %r15d
addl $0x2, %eax
testw %cx, %cx
js 0x87cc7
movw $0x2, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x87c8b
jmp 0x87ccc
movw %cx, (%rbx,%r15,2)
movzwl 0x2(%r14), %ecx
testw %cx, %cx
js 0x87cf3
addq $0x2, %r14
movl %r15d, %ecx
notl %ecx
addl %eax, %ecx
incl %r15d
movw %cx, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %r14
jmp 0x87c9d
incl %r15d
movw %cx, (%rbx,%r15,2)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
copy_decode_table_0:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov eax, esi
mov rbx, rdi
loc_87C9D:
movzx ecx, word ptr [r14]
mov r15d, eax
add eax, 2
test cx, cx
js short loc_87CC7
mov word ptr [rbx+r15*2], 2
movzx ecx, word ptr [r14]
lea rdx, [r14+rcx*2]
mov rdi, rbx
mov esi, eax
call copy_decode_table_0
jmp short loc_87CCC
loc_87CC7:
mov [rbx+r15*2], cx
loc_87CCC:
movzx ecx, word ptr [r14+2]
test cx, cx
js short loc_87CF3
add r14, 2
mov ecx, r15d
not ecx
add ecx, eax
inc r15d
mov [rbx+r15*2], cx
movzx ecx, word ptr [r14]
lea r14, [r14+rcx*2]
jmp short loc_87C9D
loc_87CF3:
inc r15d
mov [rbx+r15*2], cx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long copy_decode_table_0(long long a1, int a2, unsigned __int16 *a3)
{
long long result; // rax
long long v5; // r15
__int16 v6; // cx
LODWORD(result) = a2;
while ( 1 )
{
v5 = (unsigned int)result;
result = (unsigned int)(result + 2);
if ( (*a3 & 0x8000u) != 0 )
{
*(_WORD *)(a1 + 2 * v5) = *a3;
}
else
{
*(_WORD *)(a1 + 2 * v5) = 2;
result = copy_decode_table_0(a1, (unsigned int)result, &a3[*a3]);
}
v6 = a3[1];
if ( v6 < 0 )
break;
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = result + ~(_WORD)v5;
a3 += a3[1] + 1;
}
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = v6;
return result;
}
|
copy_decode_table:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EAX,ESI
MOV RBX,RDI
LAB_00187c9d:
MOVZX ECX,word ptr [R14]
MOV R15D,EAX
ADD EAX,0x2
TEST CX,CX
JS 0x00187cc7
MOV word ptr [RBX + R15*0x2],0x2
MOVZX ECX,word ptr [R14]
LEA RDX,[R14 + RCX*0x2]
MOV RDI,RBX
MOV ESI,EAX
CALL 0x00187c8b
JMP 0x00187ccc
LAB_00187cc7:
MOV word ptr [RBX + R15*0x2],CX
LAB_00187ccc:
MOVZX ECX,word ptr [R14 + 0x2]
TEST CX,CX
JS 0x00187cf3
ADD R14,0x2
MOV ECX,R15D
NOT ECX
ADD ECX,EAX
INC R15D
MOV word ptr [RBX + R15*0x2],CX
MOVZX ECX,word ptr [R14]
LEA R14,[R14 + RCX*0x2]
JMP 0x00187c9d
LAB_00187cf3:
INC R15D
MOV word ptr [RBX + R15*0x2],CX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void copy_decode_table(long param_1,uint param_2,ushort *param_3)
{
uint uVar1;
while( true ) {
uVar1 = param_2 + 2;
if ((short)*param_3 < 0) {
*(ushort *)(param_1 + (ulong)param_2 * 2) = *param_3;
}
else {
*(int2 *)(param_1 + (ulong)param_2 * 2) = 2;
uVar1 = copy_decode_table(param_1,uVar1,param_3 + *param_3);
}
if ((short)param_3[1] < 0) break;
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = ~(ushort)param_2 + (short)uVar1;
param_3 = param_3 + 1 + param_3[1];
param_2 = uVar1;
}
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = param_3[1];
return;
}
|
|
8,517 |
my_aes_crypt_init
|
eloqsql/mysys_ssl/my_crypt.cc
|
int my_aes_crypt_init(void *ctx, enum my_aes_mode mode, int flags,
const unsigned char* key, unsigned int klen,
const unsigned char* iv, unsigned int ivlen)
{
#ifdef HAVE_EncryptAes128Ctr
#ifdef HAVE_EncryptAes128Gcm
if (mode == MY_AES_GCM)
if (flags & ENCRYPTION_FLAG_NOPAD)
return MY_AES_OPENSSL_ERROR;
else
new (ctx) MyCTX_gcm();
else
#endif
if (mode == MY_AES_CTR)
new (ctx) MyCTX();
else
#endif
if (flags & ENCRYPTION_FLAG_NOPAD)
new (ctx) MyCTX_nopad();
else
new (ctx) MyCTX();
return ((MyCTX*)ctx)->init(ciphers[mode](klen), flags & 1,
key, klen, iv, ivlen);
}
|
O0
|
cpp
|
my_aes_crypt_init:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
cmpl $0x3, -0x14(%rbp)
jne 0xe15c9
movl -0x18(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xe15be
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0xe1644
movq -0x10(%rbp), %rdi
callq 0xe18f0
jmp 0xe15fd
cmpl $0x2, -0x14(%rbp)
jne 0xe15da
movq -0x10(%rbp), %rdi
callq 0xe1930
jmp 0xe15fb
movl -0x18(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xe15f0
movq -0x10(%rbp), %rdi
callq 0xe19a0
jmp 0xe15f9
movq -0x10(%rbp), %rdi
callq 0xe1930
jmp 0xe15fb
jmp 0xe15fd
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0x1e60df(%rip), %rax # 0x2c76f0
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %edi
callq *%rax
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movl -0x18(%rbp), %edx
andl $0x1, %edx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movq -0x30(%rbp), %r9
movl 0x10(%rbp), %r10d
movq (%rdi), %rax
movl %r10d, (%rsp)
callq *0x10(%rax)
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
|
my_aes_crypt_init:
push rbp
mov rbp, rsp
sub rsp, 40h
mov eax, [rbp+arg_0]
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
cmp [rbp+var_14], 3
jnz short loc_E15C9
mov eax, [rbp+var_18]
and eax, 2
cmp eax, 0
jz short loc_E15BE
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_E1644
loc_E15BE:
mov rdi, [rbp+var_10]; this
call _ZN9MyCTX_gcmC2Ev; MyCTX_gcm::MyCTX_gcm(void)
jmp short loc_E15FD
loc_E15C9:
cmp [rbp+var_14], 2
jnz short loc_E15DA
mov rdi, [rbp+var_10]; this
call _ZN5MyCTXC2Ev; MyCTX::MyCTX(void)
jmp short loc_E15FB
loc_E15DA:
mov eax, [rbp+var_18]
and eax, 2
cmp eax, 0
jz short loc_E15F0
mov rdi, [rbp+var_10]; this
call _ZN11MyCTX_nopadC2Ev; MyCTX_nopad::MyCTX_nopad(void)
jmp short loc_E15F9
loc_E15F0:
mov rdi, [rbp+var_10]; this
call _ZN5MyCTXC2Ev; MyCTX::MyCTX(void)
loc_E15F9:
jmp short $+2
loc_E15FB:
jmp short $+2
loc_E15FD:
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov eax, [rbp+var_14]
mov ecx, eax
lea rax, ciphers
mov rax, (ciphers - 2C76F0h)[rax+rcx*8]
mov edi, [rbp+var_24]; unsigned int
call rax; aes_ecb(uint)
mov rdi, [rbp+var_38]
mov rsi, rax
mov edx, [rbp+var_18]
and edx, 1
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov r9, [rbp+var_30]
mov r10d, [rbp+arg_0]
mov rax, [rdi]
mov [rsp+40h+var_40], r10d
call qword ptr [rax+10h]
mov [rbp+var_4], eax
loc_E1644:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
|
long long my_aes_crypt_init(MyCTX *a1, int a2, char a3, long long a4, unsigned int a5, long long a6, int a7)
{
long long v7; // rax
if ( a2 != 3 )
{
if ( a2 == 2 || (a3 & 2) == 0 )
MyCTX::MyCTX(a1);
else
MyCTX_nopad::MyCTX_nopad(a1);
goto LABEL_9;
}
if ( (a3 & 2) == 0 )
{
MyCTX_gcm::MyCTX_gcm(a1);
LABEL_9:
v7 = ciphers[a2](a5);
return (unsigned int)(*(long long ( **)(MyCTX *, long long, _QWORD, long long, _QWORD, long long, int))(*(_QWORD *)a1 + 16LL))(
a1,
v7,
a3 & 1,
a4,
a5,
a6,
a7);
}
return (unsigned int)-101;
}
|
my_aes_crypt_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV EAX,dword ptr [RBP + 0x10]
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
CMP dword ptr [RBP + -0x14],0x3
JNZ 0x001e15c9
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001e15be
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x001e1644
LAB_001e15be:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e18f0
JMP 0x001e15fd
LAB_001e15c9:
CMP dword ptr [RBP + -0x14],0x2
JNZ 0x001e15da
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e1930
JMP 0x001e15fb
LAB_001e15da:
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001e15f0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e19a0
JMP 0x001e15f9
LAB_001e15f0:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e1930
LAB_001e15f9:
JMP 0x001e15fb
LAB_001e15fb:
JMP 0x001e15fd
LAB_001e15fd:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,EAX
LEA RAX,[0x3c76f0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV EDI,dword ptr [RBP + -0x24]
CALL RAX
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,RAX
MOV EDX,dword ptr [RBP + -0x18]
AND EDX,0x1
MOV RCX,qword ptr [RBP + -0x20]
MOV R8D,dword ptr [RBP + -0x24]
MOV R9,qword ptr [RBP + -0x30]
MOV R10D,dword ptr [RBP + 0x10]
MOV RAX,qword ptr [RDI]
MOV dword ptr [RSP],R10D
CALL qword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x4],EAX
LAB_001e1644:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4
my_aes_crypt_init(MyCTX_gcm *param_1,uint param_2,uint param_3,int8 param_4,int4 param_5
,int8 param_6,int4 param_7)
{
int4 uVar1;
int8 uVar2;
if (param_2 == 3) {
if ((param_3 & 2) != 0) {
return 0xffffff9b;
}
MyCTX_gcm::MyCTX_gcm(param_1);
}
else if (param_2 == 2) {
MyCTX::MyCTX((MyCTX *)param_1);
}
else if ((param_3 & 2) == 0) {
MyCTX::MyCTX((MyCTX *)param_1);
}
else {
MyCTX_nopad::MyCTX_nopad((MyCTX_nopad *)param_1);
}
uVar2 = (**(code **)(ciphers + (ulong)param_2 * 8))(param_5);
uVar1 = (**(code **)(*(long *)param_1 + 0x10))
(param_1,uVar2,param_3 & 1,param_4,param_5,param_6,param_7);
return uVar1;
}
|
|
8,518 |
num_keys_cmp
|
bluesky950520[P]quickjs/quickjs.c
|
static int num_keys_cmp(const void *p1, const void *p2, void *opaque)
{
JSContext *ctx = opaque;
JSAtom atom1 = ((const JSPropertyEnum *)p1)->atom;
JSAtom atom2 = ((const JSPropertyEnum *)p2)->atom;
uint32_t v1, v2;
BOOL atom1_is_integer, atom2_is_integer;
atom1_is_integer = JS_AtomIsArrayIndex(ctx, &v1, atom1);
atom2_is_integer = JS_AtomIsArrayIndex(ctx, &v2, atom2);
assert(atom1_is_integer && atom2_is_integer);
if (v1 < v2)
return -1;
else if (v1 == v2)
return 0;
else
return 1;
}
|
O1
|
c
|
num_keys_cmp:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl 0x4(%rdi), %edx
movl 0x4(%rsi), %ebp
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3cbd9
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x3cbd9
movl (%r14), %eax
xorl %ecx, %ecx
cmpl (%r15), %eax
setne %cl
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmovael %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
num_keys_cmp:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov edx, [rdi+4]
mov ebp, [rsi+4]
lea r14, [rsp+28h+var_24]
mov rdi, rbx
mov rsi, r14
call JS_AtomIsArrayIndex
mov r15, rsp
mov rdi, rbx
mov rsi, r15
mov edx, ebp
call JS_AtomIsArrayIndex
mov eax, [r14]
xor ecx, ecx
cmp eax, [r15]
setnz cl
mov eax, 0FFFFFFFFh
cmovnb eax, ecx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long num_keys_cmp(long long a1, long long a2, long long a3)
{
long long v3; // rax
int v5; // ebp
long long result; // rax
_QWORD v7[5]; // [rsp-4h] [rbp-28h] BYREF
v7[0] = v3;
v5 = *(_DWORD *)(a2 + 4);
JS_AtomIsArrayIndex(a3, (_DWORD *)v7 + 1, *(_DWORD *)(a1 + 4));
JS_AtomIsArrayIndex(a3, v7, v5);
result = 0xFFFFFFFFLL;
if ( HIDWORD(v7[0]) >= LODWORD(v7[0]) )
return HIDWORD(v7[0]) != LODWORD(v7[0]);
return result;
}
|
num_keys_cmp:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EDX,dword ptr [RDI + 0x4]
MOV EBP,dword ptr [RSI + 0x4]
LEA R14,[RSP + 0x4]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013cbd9
MOV R15,RSP
MOV RDI,RBX
MOV RSI,R15
MOV EDX,EBP
CALL 0x0013cbd9
MOV EAX,dword ptr [R14]
XOR ECX,ECX
CMP EAX,dword ptr [R15]
SETNZ CL
MOV EAX,0xffffffff
CMOVNC EAX,ECX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
ulong num_keys_cmp(long param_1,long param_2,int8 param_3)
{
int4 uVar1;
int8 in_RAX;
ulong uVar2;
int8 local_28;
uVar1 = *(int4 *)(param_2 + 4);
local_28 = in_RAX;
JS_AtomIsArrayIndex(param_3,(long)&local_28 + 4,*(int4 *)(param_1 + 4));
JS_AtomIsArrayIndex(param_3,&local_28,uVar1);
uVar2 = 0xffffffff;
if ((uint)local_28 <= local_28._4_4_) {
uVar2 = (ulong)(local_28._4_4_ != (uint)local_28);
}
return uVar2;
}
|
|
8,519 |
num_keys_cmp
|
bluesky950520[P]quickjs/quickjs.c
|
static int num_keys_cmp(const void *p1, const void *p2, void *opaque)
{
JSContext *ctx = opaque;
JSAtom atom1 = ((const JSPropertyEnum *)p1)->atom;
JSAtom atom2 = ((const JSPropertyEnum *)p2)->atom;
uint32_t v1, v2;
BOOL atom1_is_integer, atom2_is_integer;
atom1_is_integer = JS_AtomIsArrayIndex(ctx, &v1, atom1);
atom2_is_integer = JS_AtomIsArrayIndex(ctx, &v2, atom2);
assert(atom1_is_integer && atom2_is_integer);
if (v1 < v2)
return -1;
else if (v1 == v2)
return 0;
else
return 1;
}
|
O2
|
c
|
num_keys_cmp:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl 0x4(%rdi), %edx
movl 0x4(%rsi), %ebp
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3550c
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x3550c
movl (%r14), %eax
xorl %ecx, %ecx
cmpl (%r15), %eax
setne %cl
pushq $-0x1
popq %rax
cmovael %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
num_keys_cmp:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov edx, [rdi+4]
mov ebp, [rsi+4]
lea r14, [rsp+28h+var_24]
mov rdi, rbx
mov rsi, r14
call JS_AtomIsArrayIndex
mov r15, rsp
mov rdi, rbx
mov rsi, r15
mov edx, ebp
call JS_AtomIsArrayIndex
mov eax, [r14]
xor ecx, ecx
cmp eax, [r15]
setnz cl
push 0FFFFFFFFFFFFFFFFh
pop rax
cmovnb eax, ecx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long num_keys_cmp(long long a1, long long a2, long long a3)
{
long long v3; // rax
int v5; // ebp
long long result; // rax
_QWORD v7[5]; // [rsp-4h] [rbp-28h] BYREF
v7[0] = v3;
v5 = *(_DWORD *)(a2 + 4);
JS_AtomIsArrayIndex(a3, (int *)v7 + 1, *(_DWORD *)(a1 + 4));
JS_AtomIsArrayIndex(a3, (int *)v7, v5);
result = -1LL;
if ( HIDWORD(v7[0]) >= LODWORD(v7[0]) )
return HIDWORD(v7[0]) != LODWORD(v7[0]);
return result;
}
|
num_keys_cmp:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EDX,dword ptr [RDI + 0x4]
MOV EBP,dword ptr [RSI + 0x4]
LEA R14,[RSP + 0x4]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013550c
MOV R15,RSP
MOV RDI,RBX
MOV RSI,R15
MOV EDX,EBP
CALL 0x0013550c
MOV EAX,dword ptr [R14]
XOR ECX,ECX
CMP EAX,dword ptr [R15]
SETNZ CL
PUSH -0x1
POP RAX
CMOVNC EAX,ECX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
ulong num_keys_cmp(long param_1,long param_2,int8 param_3)
{
int4 uVar1;
int8 in_RAX;
ulong uVar2;
int8 local_28;
uVar1 = *(int4 *)(param_2 + 4);
local_28 = in_RAX;
JS_AtomIsArrayIndex(param_3,(long)&local_28 + 4,*(int4 *)(param_1 + 4));
JS_AtomIsArrayIndex(param_3,&local_28,uVar1);
uVar2 = 0xffffffff;
if ((uint)local_28 <= local_28._4_4_) {
uVar2 = (ulong)(local_28._4_4_ != (uint)local_28);
}
return uVar2;
}
|
|
8,520 |
num_keys_cmp
|
bluesky950520[P]quickjs/quickjs.c
|
static int num_keys_cmp(const void *p1, const void *p2, void *opaque)
{
JSContext *ctx = opaque;
JSAtom atom1 = ((const JSPropertyEnum *)p1)->atom;
JSAtom atom2 = ((const JSPropertyEnum *)p2)->atom;
uint32_t v1, v2;
BOOL atom1_is_integer, atom2_is_integer;
atom1_is_integer = JS_AtomIsArrayIndex(ctx, &v1, atom1);
atom2_is_integer = JS_AtomIsArrayIndex(ctx, &v2, atom2);
assert(atom1_is_integer && atom2_is_integer);
if (v1 < v2)
return -1;
else if (v1 == v2)
return 0;
else
return 1;
}
|
O3
|
c
|
num_keys_cmp:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl 0x4(%rdi), %edx
movl 0x4(%rsi), %ebp
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3e14b
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x3e14b
movl (%r14), %eax
xorl %ecx, %ecx
cmpl (%r15), %eax
setne %cl
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmovael %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
num_keys_cmp:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov edx, [rdi+4]
mov ebp, [rsi+4]
lea r14, [rsp+28h+var_24]
mov rdi, rbx
mov rsi, r14
call JS_AtomIsArrayIndex
mov r15, rsp
mov rdi, rbx
mov rsi, r15
mov edx, ebp
call JS_AtomIsArrayIndex
mov eax, [r14]
xor ecx, ecx
cmp eax, [r15]
setnz cl
mov eax, 0FFFFFFFFh
cmovnb eax, ecx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long num_keys_cmp(long long a1, long long a2, long long a3)
{
long long v3; // rax
int v5; // ebp
long long result; // rax
_QWORD v7[5]; // [rsp-4h] [rbp-28h] BYREF
v7[0] = v3;
v5 = *(_DWORD *)(a2 + 4);
JS_AtomIsArrayIndex(a3, (_DWORD *)v7 + 1, *(_DWORD *)(a1 + 4));
JS_AtomIsArrayIndex(a3, v7, v5);
result = 0xFFFFFFFFLL;
if ( HIDWORD(v7[0]) >= LODWORD(v7[0]) )
return HIDWORD(v7[0]) != LODWORD(v7[0]);
return result;
}
|
num_keys_cmp:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EDX,dword ptr [RDI + 0x4]
MOV EBP,dword ptr [RSI + 0x4]
LEA R14,[RSP + 0x4]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013e14b
MOV R15,RSP
MOV RDI,RBX
MOV RSI,R15
MOV EDX,EBP
CALL 0x0013e14b
MOV EAX,dword ptr [R14]
XOR ECX,ECX
CMP EAX,dword ptr [R15]
SETNZ CL
MOV EAX,0xffffffff
CMOVNC EAX,ECX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
ulong num_keys_cmp(long param_1,long param_2,int8 param_3)
{
int4 uVar1;
int8 in_RAX;
ulong uVar2;
int8 local_28;
uVar1 = *(int4 *)(param_2 + 4);
local_28 = in_RAX;
JS_AtomIsArrayIndex(param_3,(long)&local_28 + 4,*(int4 *)(param_1 + 4));
JS_AtomIsArrayIndex(param_3,&local_28,uVar1);
uVar2 = 0xffffffff;
if ((uint)local_28 <= local_28._4_4_) {
uVar2 = (ulong)(local_28._4_4_ != (uint)local_28);
}
return uVar2;
}
|
|
8,521 |
ggml_get_max_tensor_size
|
ngxson[P]ggml-easy/ggml/src/ggml.c
|
size_t ggml_get_max_tensor_size(const struct ggml_context * ctx) {
size_t max_size = 0;
for (struct ggml_tensor * tensor = ggml_get_first_tensor(ctx); tensor != NULL; tensor = ggml_get_next_tensor(ctx, tensor)) {
size_t bytes = ggml_nbytes(tensor);
max_size = MAX(max_size, bytes);
}
return max_size;
}
|
O2
|
c
|
ggml_get_max_tensor_size:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x1c810
movq %rax, %r15
xorl %r14d, %r14d
testq %r15, %r15
je 0x1ff87
movq %r15, %rdi
callq 0x1c2d0
cmpq %rax, %r14
cmovbeq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d6d0
movq %rax, %r15
jmp 0x1ff63
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
|
ggml_get_max_tensor_size:
push r15
push r14
push rbx
mov rbx, rdi
call _ggml_get_first_tensor
mov r15, rax
xor r14d, r14d
loc_1FF63:
test r15, r15
jz short loc_1FF87
mov rdi, r15
call _ggml_nbytes
cmp r14, rax
cmovbe r14, rax
mov rdi, rbx
mov rsi, r15
call _ggml_get_next_tensor
mov r15, rax
jmp short loc_1FF63
loc_1FF87:
mov rax, r14
pop rbx
pop r14
pop r15
retn
|
unsigned long long ggml_get_max_tensor_size(long long a1)
{
unsigned int *first_tensor; // r15
unsigned long long v2; // r14
unsigned long long v3; // rax
first_tensor = (unsigned int *)ggml_get_first_tensor();
v2 = 0LL;
while ( first_tensor )
{
v3 = ggml_nbytes(first_tensor);
if ( v2 <= v3 )
v2 = v3;
first_tensor = (unsigned int *)ggml_get_next_tensor(a1, first_tensor);
}
return v2;
}
|
ggml_get_max_tensor_size:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x0011c810
MOV R15,RAX
XOR R14D,R14D
LAB_0011ff63:
TEST R15,R15
JZ 0x0011ff87
MOV RDI,R15
CALL 0x0011c2d0
CMP R14,RAX
CMOVBE R14,RAX
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011d6d0
MOV R15,RAX
JMP 0x0011ff63
LAB_0011ff87:
MOV RAX,R14
POP RBX
POP R14
POP R15
RET
|
ulong ggml_get_max_tensor_size(int8 param_1)
{
long lVar1;
ulong uVar2;
ulong uVar3;
lVar1 = ggml_get_first_tensor();
uVar3 = 0;
for (; lVar1 != 0; lVar1 = ggml_get_next_tensor(param_1,lVar1)) {
uVar2 = ggml_nbytes(lVar1);
if (uVar3 <= uVar2) {
uVar3 = uVar2;
}
}
return uVar3;
}
|
|
8,522 |
psi_prlock_rdlock
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD
int psi_prlock_rdlock(mysql_prlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait)
(&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line);
int result= rw_pr_rdlock(&that->m_prlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
}
|
O0
|
c
|
psi_prlock_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1b9806(%rip), %rax # 0x214320
movq (%rax), %rax
movq 0x1a0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x68(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5b210
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x5ab6d
leaq 0x1b97c6(%rip), %rax # 0x214320
movq (%rax), %rax
movq 0x1a8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
psi_prlock_rdlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+68h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
xor edx, edx
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call rw_pr_rdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_5AB6D
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_5AB6D:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
|
long long psi_prlock_rdlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[52])(
v6,
*(_QWORD *)(a1 + 104),
0LL,
a2,
a3);
v4 = rw_pr_rdlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4);
return v4;
}
|
psi_prlock_rdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x314320]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x68]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
XOR EDX,EDX
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015b210
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0015ab6d
LEA RAX,[0x314320]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_0015ab6d:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_prlock_rdlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1a0))
(local_50,*(int8 *)(param_1 + 0x68),0,param_2,param_3);
uVar1 = rw_pr_rdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
|
|
8,523 |
spdlog::details::thread_pool::thread_pool(unsigned long, unsigned long, std::function<void ()>, std::function<void ()>)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/details/thread_pool-inl.h
|
SPDLOG_INLINE thread_pool::thread_pool(size_t q_max_items,
size_t threads_n,
std::function<void()> on_thread_start,
std::function<void()> on_thread_stop)
: q_(q_max_items) {
if (threads_n == 0 || threads_n > 1000) {
throw_spdlog_ex(
"spdlog::thread_pool(): invalid threads_n param (valid "
"range is 1-1000)");
}
for (size_t i = 0; i < threads_n; i++) {
threads_.emplace_back([this, on_thread_start, on_thread_stop] {
on_thread_start();
this->thread_pool::worker_loop_();
on_thread_stop();
});
}
}
|
O0
|
c
|
spdlog::details::thread_pool::thread_pool(unsigned long, unsigned long, std::function<void ()>, std::function<void ()>):
subq $0xe8, %rsp
movq %rcx, 0x18(%rsp)
movq %r8, 0x20(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
movq %rcx, 0xc8(%rsp)
movq %r8, 0xc0(%rsp)
movq 0xe0(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movq 0xd8(%rsp), %rsi
callq 0x80b40
movq 0x28(%rsp), %rdi
addq $0xc8, %rdi
movq %rdi, 0x30(%rsp)
callq 0x1b040
cmpq $0x0, 0xd0(%rsp)
je 0x7eec6
cmpq $0x3e8, 0xd0(%rsp) # imm = 0x3E8
jbe 0x7ef4b
leaq 0x9f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x14c90
movq 0x10(%rsp), %rdx
leaq 0x90a1a(%rip), %rsi # 0x10f8fe
leaq 0xa0(%rsp), %rdi
callq 0x1a6a0
jmp 0x7eef3
leaq 0xa0(%rsp), %rdi
callq 0x319b0
jmp 0x7ef02
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x7ef39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x1aac0
leaq 0x9f(%rsp), %rdi
callq 0x14750
jmp 0x7f03d
movq $0x0, 0x80(%rsp)
movq 0x80(%rsp), %rax
cmpq 0xd0(%rsp), %rax
jae 0x7f035
movq 0x18(%rsp), %rsi
movq 0x28(%rsp), %rax
movq %rax, %rcx
addq $0xc8, %rcx
movq %rcx, (%rsp)
movq %rax, 0x38(%rsp)
leaq 0x40(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x80be0
jmp 0x7ef9b
movq 0x20(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x80be0
jmp 0x7efac
movq (%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x7f060
jmp 0x7efbc
leaq 0x38(%rsp), %rdi
callq 0x7f0e0
movq 0x80(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x80(%rsp)
jmp 0x7ef57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x7f03d
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
callq 0x80c90
jmp 0x7f03d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x7f0e0
jmp 0x7f03d
addq $0xe8, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x1b2b0
movq 0x28(%rsp), %rdi
callq 0x80ca0
movq 0x90(%rsp), %rdi
callq 0x14c80
nop
|
_ZN6spdlog7details11thread_poolC2EmmSt8functionIFvvEES4_:
sub rsp, 0E8h
mov qword ptr [rsp+0E8h+var_D0], rcx; __int16
mov [rsp+0E8h+var_C8], r8; __int64
mov qword ptr [rsp+0E8h+var_8], rdi
mov qword ptr [rsp+0E8h+var_10], rsi
mov [rsp+0E8h+var_18], rdx
mov [rsp+0E8h+var_20], rcx
mov [rsp+0E8h+var_28], r8
mov rdi, qword ptr [rsp+0E8h+var_8]; int
mov qword ptr [rsp+0E8h+var_C0], rdi; char
mov rsi, qword ptr [rsp+0E8h+var_10]; int
call _ZN6spdlog7details19mpmc_blocking_queueINS0_9async_msgEEC2Em; spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>::mpmc_blocking_queue(ulong)
mov rdi, qword ptr [rsp+0E8h+var_C0]
add rdi, 0C8h
mov [rsp+0E8h+var_B8], rdi
call _ZNSt6vectorISt6threadSaIS0_EEC2Ev; std::vector<std::thread>::vector(void)
cmp [rsp+0E8h+var_18], 0
jz short loc_7EEC6
cmp [rsp+0E8h+var_18], 3E8h
jbe loc_7EF4B
loc_7EEC6:
lea rdi, [rsp+0E8h+var_49]
mov qword ptr [rsp+0E8h+var_D8], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+0E8h+var_D8]
lea rsi, aSpdlogThreadPo; "spdlog::thread_pool(): invalid threads_"...
lea rdi, [rsp+0E8h+var_49+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_7EEF3:
lea rdi, [rsp+0E8h+var_49+1]; int
call _ZN6spdlog15throw_spdlog_exENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; spdlog::throw_spdlog_ex(std::string)
jmp short $+2
loc_7EF02:
mov rcx, rax
mov eax, edx
mov [rsp+0E8h+var_58], rcx
mov [rsp+0E8h+var_5C], eax
jmp short loc_7EF39
mov rcx, rax
mov eax, edx
mov [rsp+0E8h+var_58], rcx
mov [rsp+0E8h+var_5C], eax
lea rdi, [rsp+0E8h+var_49+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_7EF39:
lea rdi, [rsp+0E8h+var_49]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_7F03D
loc_7EF4B:
mov [rsp+0E8h+var_68], 0
loc_7EF57:
mov rax, [rsp+0E8h+var_68]
cmp rax, [rsp+0E8h+var_18]
jnb loc_7F035
mov rsi, qword ptr [rsp+0E8h+var_D0]
mov rax, qword ptr [rsp+0E8h+var_C0]
mov rcx, rax
add rcx, 0C8h
mov [rsp+0E8h+var_E8], rcx
mov [rsp+0E8h+var_B0], rax
lea rdi, [rsp+0E8h+var_A8]
mov [rsp+0E8h+var_E0], rdi
call _ZNSt8functionIFvvEEC2ERKS1_; std::function<void ()(void)>::function(std::function<void ()(void)> const&)
jmp short $+2
loc_7EF9B:
mov rsi, [rsp+0E8h+var_C8]
lea rdi, [rsp+0E8h+var_88]
call _ZNSt8functionIFvvEEC2ERKS1_; std::function<void ()(void)>::function(std::function<void ()(void)> const&)
jmp short $+2
loc_7EFAC:
mov rdi, [rsp+0E8h+var_E8]
lea rsi, [rsp+0E8h+var_B0]
call _ZNSt6vectorISt6threadSaIS0_EE12emplace_backIJZN6spdlog7details11thread_poolC1EmmSt8functionIFvvEES9_E3$_0EEERS0_DpOT_; std::vector<std::thread>::emplace_back<spdlog::details::thread_pool::thread_pool(ulong,ulong,std::function<void ()(void)>,std::function<void ()(void)>)::$_0>(spdlog::details::thread_pool::thread_pool(ulong,ulong,std::function<void ()(void)>,std::function<void ()(void)>)::$_0 &&)
jmp short $+2
loc_7EFBC:
lea rdi, [rsp+0E8h+var_B0]
call _ZZN6spdlog7details11thread_poolC1EmmSt8functionIFvvEES4_EN3$_0D2Ev; spdlog::details::thread_pool::thread_pool(ulong,ulong,std::function<void ()(void)>,std::function<void ()(void)>)::$_0::~$_0()
mov rax, [rsp+0E8h+var_68]
add rax, 1
mov [rsp+0E8h+var_68], rax
jmp loc_7EF57
mov rcx, rax
mov eax, edx
mov [rsp+0E8h+var_58], rcx
mov [rsp+0E8h+var_5C], eax
jmp short loc_7F03D
mov rdi, [rsp+0E8h+var_E0]
mov rcx, rax
mov eax, edx
mov [rsp+0E8h+var_58], rcx
mov [rsp+0E8h+var_5C], eax
call _ZNSt8functionIFvvEED2Ev; std::function<void ()(void)>::~function()
jmp short loc_7F03D
mov rcx, rax
mov eax, edx
mov [rsp+0E8h+var_58], rcx
mov [rsp+0E8h+var_5C], eax
lea rdi, [rsp+0E8h+var_B0]
call _ZZN6spdlog7details11thread_poolC1EmmSt8functionIFvvEES4_EN3$_0D2Ev; spdlog::details::thread_pool::thread_pool(ulong,ulong,std::function<void ()(void)>,std::function<void ()(void)>)::$_0::~$_0()
jmp short loc_7F03D
loc_7F035:
add rsp, 0E8h
retn
loc_7F03D:
mov rdi, [rsp+0E8h+var_B8]
call _ZNSt6vectorISt6threadSaIS0_EED2Ev; std::vector<std::thread>::~vector()
mov rdi, qword ptr [rsp+0E8h+var_C0]
call _ZN6spdlog7details19mpmc_blocking_queueINS0_9async_msgEED2Ev; spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>::~mpmc_blocking_queue()
mov rdi, [rsp+0E8h+var_58]
call __Unwind_Resume
|
unsigned long long spdlog::details::thread_pool::thread_pool(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
long long a5,
int a6)
{
int v6; // edx
int v7; // r8d
int v8; // r9d
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
unsigned long long result; // rax
int v14; // edx
int v15; // ecx
int v16; // r8d
int v17; // r9d
std::condition_variable *v18; // [rsp+0h] [rbp-E8h]
void *v19; // [rsp+0h] [rbp-E8h]
int v20; // [rsp+0h] [rbp-E8h]
long long v21; // [rsp+0h] [rbp-E8h]
int v22; // [rsp+8h] [rbp-E0h]
int v23; // [rsp+8h] [rbp-E0h]
long long v24; // [rsp+8h] [rbp-E0h]
int v25; // [rsp+10h] [rbp-D8h]
int v26; // [rsp+18h] [rbp-D0h]
long long v28; // [rsp+38h] [rbp-B0h] BYREF
_BYTE v29[32]; // [rsp+40h] [rbp-A8h] BYREF
char v30; // [rsp+60h] [rbp-88h] BYREF
unsigned long long i; // [rsp+80h] [rbp-68h]
int v32[8]; // [rsp+9Fh] [rbp-49h] BYREF
long long v33; // [rsp+C0h] [rbp-28h]
long long v34; // [rsp+C8h] [rbp-20h]
unsigned long long v35; // [rsp+D0h] [rbp-18h]
int v36[2]; // [rsp+D8h] [rbp-10h]
char v37[8]; // [rsp+E0h] [rbp-8h]
*(_QWORD *)v37 = a1;
*(_QWORD *)v36 = a2;
v35 = a3;
v34 = a4;
v33 = a5;
spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>::mpmc_blocking_queue(
a1,
a2,
a3,
a4,
a5,
a6,
v18,
v22,
v25,
a4);
std::vector<std::thread>::vector(a1 + 200);
if ( !v35 || v35 > 0x3E8 )
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(
(long long)v32 + 1,
(long long)"spdlog::thread_pool(): invalid threads_n param (valid range is 1-1000)",
(long long)v32);
spdlog::throw_spdlog_ex(
(long long)v32 + 1,
(int)"spdlog::thread_pool(): invalid threads_n param (valid range is 1-1000)",
v9,
v10,
v11,
v12,
v19,
v23,
(int)v32,
v26,
a5,
a1);
}
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= v35 )
break;
v28 = a1;
std::function<void ()(void)>::function((unsigned int)v29, v26, v6, a1 + 200, v7, v8, a1 + 200, (long long)v29);
std::function<void ()(void)>::function((unsigned int)&v30, a5, v14, v15, v16, v17, v20, v24);
std::vector<std::thread>::emplace_back<spdlog::details::thread_pool::thread_pool(unsigned long,unsigned long,std::function<void ()(void)>,std::function<void ()(void)>)::$_0>(
v21,
&v28);
spdlog::details::thread_pool::thread_pool(unsigned long,unsigned long,std::function<void ()(void)>,std::function<void ()(void)>)::$_0::~$_0(&v28);
}
return result;
}
|
thread_pool:
SUB RSP,0xe8
MOV qword ptr [RSP + 0x18],RCX
MOV qword ptr [RSP + 0x20],R8
MOV qword ptr [RSP + 0xe0],RDI
MOV qword ptr [RSP + 0xd8],RSI
MOV qword ptr [RSP + 0xd0],RDX
MOV qword ptr [RSP + 0xc8],RCX
MOV qword ptr [RSP + 0xc0],R8
MOV RDI,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0x28],RDI
MOV RSI,qword ptr [RSP + 0xd8]
CALL 0x00180b40
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0xc8
MOV qword ptr [RSP + 0x30],RDI
CALL 0x0011b040
CMP qword ptr [RSP + 0xd0],0x0
JZ 0x0017eec6
CMP qword ptr [RSP + 0xd0],0x3e8
JBE 0x0017ef4b
LAB_0017eec6:
LEA RDI,[RSP + 0x9f]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00114c90
MOV RDX,qword ptr [RSP + 0x10]
LAB_0017eedd:
LEA RSI,[0x20f8fe]
LEA RDI,[RSP + 0xa0]
CALL 0x0011a6a0
JMP 0x0017eef3
LAB_0017eef3:
LEA RDI,[RSP + 0xa0]
CALL 0x001319b0
JMP 0x0017ef02
LAB_0017ef02:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RSP + 0x90],RCX
MOV dword ptr [RSP + 0x8c],EAX
JMP 0x0017ef39
LAB_0017ef39:
LEA RDI,[RSP + 0x9f]
CALL 0x00114750
JMP 0x0017f03d
LAB_0017ef4b:
MOV qword ptr [RSP + 0x80],0x0
LAB_0017ef57:
MOV RAX,qword ptr [RSP + 0x80]
CMP RAX,qword ptr [RSP + 0xd0]
JNC 0x0017f035
MOV RSI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,RAX
ADD RCX,0xc8
MOV qword ptr [RSP],RCX
MOV qword ptr [RSP + 0x38],RAX
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP + 0x8],RDI
LAB_0017ef94:
CALL 0x00180be0
JMP 0x0017ef9b
LAB_0017ef9b:
MOV RSI,qword ptr [RSP + 0x20]
LEA RDI,[RSP + 0x60]
LAB_0017efa5:
CALL 0x00180be0
JMP 0x0017efac
LAB_0017efac:
MOV RDI,qword ptr [RSP]
LEA RSI,[RSP + 0x38]
CALL 0x0017f060
LAB_0017efba:
JMP 0x0017efbc
LAB_0017efbc:
LEA RDI,[RSP + 0x38]
CALL 0x0017f0e0
MOV RAX,qword ptr [RSP + 0x80]
ADD RAX,0x1
MOV qword ptr [RSP + 0x80],RAX
JMP 0x0017ef57
LAB_0017f035:
ADD RSP,0xe8
RET
LAB_0017f03d:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0011b2b0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00180ca0
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x00114c80
|
/* spdlog::details::thread_pool::thread_pool(unsigned long, unsigned long, std::function<void ()>,
std::function<void ()>) */
void __thiscall
spdlog::details::thread_pool::thread_pool
(thread_pool *this,ulong param_1,ulong param_2,function *param_4,function *param_5)
{
int1 auVar1 [12];
thread_pool *local_b0;
function<void()> local_a8 [32];
function<void()> local_88 [32];
ulong local_68;
int4 local_5c;
int8 local_58;
allocator local_49;
string local_48 [32];
function *local_28;
function *local_20;
ulong local_18;
ulong local_10;
thread_pool *local_8;
local_28 = param_5;
local_20 = param_4;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
mpmc_blocking_queue<spdlog::details::async_msg>::mpmc_blocking_queue
((mpmc_blocking_queue<spdlog::details::async_msg> *)this,param_1);
std::vector<std::thread,std::allocator<std::thread>>::vector
((vector<std::thread,std::allocator<std::thread>> *)(this + 200));
if ((local_18 != 0) && (local_18 < 0x3e9)) {
for (local_68 = 0; local_68 < local_18; local_68 = local_68 + 1) {
local_b0 = this;
/* try { // try from 0017ef94 to 0017ef98 has its CatchHandler @ 0017efdf */
std::function<void()>::function(local_a8,param_4);
/* try { // try from 0017efa5 to 0017efa9 has its CatchHandler @ 0017eff5 */
std::function<void()>::function(local_88,param_5);
/* try { // try from 0017efac to 0017efb9 has its CatchHandler @ 0017f015 */
std::vector<std::thread,std::allocator<std::thread>>::
emplace_back<spdlog::details::thread_pool::thread_pool(unsigned_long,unsigned_long,std::function<void()>,std::function<void()>)::__0>
((vector<std::thread,std::allocator<std::thread>> *)(this + 200),(__0 *)&local_b0);
thread_pool(unsigned_long,unsigned_long,std::function<void()>,std::function<void()>)::$_0::
~__0((__0 *)&local_b0);
}
return;
}
std::allocator<char>::allocator();
/* try { // try from 0017eedd to 0017eef0 has its CatchHandler @ 0017ef02 */
std::__cxx11::string::string<std::allocator<char>>
(local_48,"spdlog::thread_pool(): invalid threads_n param (valid range is 1-1000)",
&local_49);
/* try { // try from 0017eef3 to 0017eeff has its CatchHandler @ 0017ef18 */
auVar1 = throw_spdlog_ex(local_48);
local_5c = auVar1._8_4_;
local_58 = auVar1._0_8_;
/* catch() { ... } // from try @ 0017eedd with catch @ 0017ef02 */
std::allocator<char>::~allocator((allocator<char> *)&local_49);
std::vector<std::thread,std::allocator<std::thread>>::~vector
((vector<std::thread,std::allocator<std::thread>> *)(this + 200));
mpmc_blocking_queue<spdlog::details::async_msg>::~mpmc_blocking_queue
((mpmc_blocking_queue<spdlog::details::async_msg> *)this);
/* WARNING: Subroutine does not return */
_Unwind_Resume(local_58);
}
|
|
8,524 |
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::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 (&) [11], 0>(char const (&) [11])
|
llama.cpp/common/json.hpp
|
reference at(KeyType && key)
{
// 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 set_parent(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>& 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 (&) [11], 0>(char const (&) [11]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0xb7453
movq %rsi, %r15
movq 0x8(%r14), %r12
movq (%r12), %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
je 0xb743d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20f10
testl %eax, %eax
je 0xb7432
addq $0x30, %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
jne 0xb7413
jmp 0xb7435
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
cmpq %rbx, %rax
je 0xb74b1
addq $0x20, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x20620
movq %rax, %rbx
movq %r14, %rdi
callq 0x8af7c
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0x63d07(%rip), %rsi # 0x11b17c
leaq 0x20(%rsp), %rdi
callq 0x8063d
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x8ada4
xorl %ebp, %ebp
leaq 0xa8ba0(%rip), %rsi # 0x160040
leaq -0x40517(%rip), %rdx # 0x76f90
movq %rbx, %rdi
callq 0x20a30
jmp 0xb752a
movl $0x20, %edi
callq 0x20620
movq %rax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x20650
leaq (%rax,%r15), %rdx
movq %rsp, %rdi
movq %r15, %rsi
callq 0x28e86
leaq 0x63cac(%rip), %rsi # 0x11b192
leaq 0x63cab(%rip), %rcx # 0x11b198
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x806c5
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x89508
xorl %ebp, %ebp
leaq 0xa8aa5(%rip), %rsi # 0x15ffc0
leaq -0x40592(%rip), %rdx # 0x76f90
movq %rbx, %rdi
callq 0x20a30
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb7548
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20170
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xb7593
movq 0x10(%rsp), %rsi
jmp 0xb758b
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xb759d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20170
jmp 0xb759d
jmp 0xb759a
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb7593
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20170
testb %bpl, %bpl
jne 0xb759d
jmp 0xb75a5
movq %rax, %r14
movq %rbx, %rdi
callq 0x20eb0
movq %r14, %rdi
callq 0x20ad0
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
push rbp; void *
push r15; int
push r14; __int64
push r12; int
push rbx; void *
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_B7453
mov r15, rsi
mov r12, [r14+8]
mov rbx, [r12]
mov rax, [r12+8]
cmp rbx, rax
jz short loc_B743D
loc_B7413:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_B7432
add rbx, 30h ; '0'
mov rax, [r12+8]
cmp rbx, rax
jnz short loc_B7413
jmp short loc_B7435
loc_B7432:
mov rax, rbx
loc_B7435:
mov rcx, [r14+8]
mov rbx, [rcx+8]
loc_B743D:
cmp rax, rbx
jz short loc_B74B1
add rax, 20h ; ' '
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_B7453:
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_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, rbx; void *
call ___cxa_throw
jmp short loc_B752A
loc_B74B1:
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_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, rbx; void *
call ___cxa_throw
loc_B752A:
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B7548
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B7548:
mov rdi, [rsp+68h+var_68]
cmp rdi, r12
jz short loc_B7593
mov rsi, [rsp+68h+var_58]
jmp short loc_B758B
mov r14, rax
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_B759D
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B759D
jmp short loc_B759A
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B7593
mov rsi, [rsp+68h+var_38]
loc_B758B:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B7593:
test bpl, bpl
jnz short loc_B759D
jmp short loc_B75A5
loc_B759A:
mov r14, rax
loc_B759D:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_B75A5:
mov rdi, r14
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_(
long long a1,
_BYTE *a2)
{
long long *v2; // r12
long long v3; // rbx
long long v4; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx
long long v8; // rax
void *v9[2]; // [rsp+0h] [rbp-68h] BYREF
long long v10; // [rsp+10h] [rbp-58h] BYREF
_QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v9[0] = (void *)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*>(
(long long)v11,
(long long)"cannot use at() with ",
v9);
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,
v11);
__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 = *(long long **)(a1 + 8);
v3 = *v2;
v4 = v2[1];
if ( *v2 != v4 )
{
while ( (unsigned int)std::string::compare(v3, a2) )
{
v3 += 48LL;
v4 = v2[1];
if ( v3 == v4 )
goto LABEL_7;
}
v4 = v3;
LABEL_7:
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
if ( v4 == v3 )
{
v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v9[0] = &v10;
v8 = strlen(a2);
std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
(long long)v11,
(long long)"key '",
v9,
(long long)"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v7,
403,
v11);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v4 + 32;
}
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x001b7453
MOV R15,RSI
MOV R12,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JZ 0x001b743d
LAB_001b7413:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00120f10
TEST EAX,EAX
JZ 0x001b7432
ADD RBX,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JNZ 0x001b7413
JMP 0x001b7435
LAB_001b7432:
MOV RAX,RBX
LAB_001b7435:
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
LAB_001b743d:
CMP RAX,RBX
JZ 0x001b74b1
ADD RAX,0x20
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001b7453:
MOV EDI,0x20
CALL 0x00120620
MOV RBX,RAX
MOV RDI,R14
CALL 0x0018af7c
MOV RDX,RSP
MOV qword ptr [RDX],RAX
LAB_001b746e:
LEA RSI,[0x21b17c]
LEA RDI,[RSP + 0x20]
CALL 0x0018063d
MOV BPL,0x1
LAB_001b7482:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x0018ada4
XOR EBP,EBP
LEA RSI,[0x260040]
LEA RDX,[0x176f90]
MOV RDI,RBX
CALL 0x00120a30
LAB_001b74b1:
MOV EDI,0x20
CALL 0x00120620
MOV RBX,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x00120650
LEA RDX,[RAX + R15*0x1]
LAB_001b74d4:
MOV RDI,RSP
MOV RSI,R15
CALL 0x00128e86
LAB_001b74df:
LEA RSI,[0x21b192]
LEA RCX,[0x21b198]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x001806c5
MOV BPL,0x1
LAB_001b74fd:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x00189508
XOR EBP,EBP
LEA RSI,[0x25ffc0]
LEA RDX,[0x176f90]
MOV RDI,RBX
CALL 0x00120a30
|
char * _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_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 001b746e to 001b747e has its CatchHandler @ 001b759a */
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 001b7482 to 001b74ae has its CatchHandler @ 001b7575 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(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 001b74d4 to 001b74de has its CatchHandler @ 001b7573 */
std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5);
/* try { // try from 001b74df to 001b74f9 has its CatchHandler @ 001b7558 */
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 001b74fd to 001b7529 has its CatchHandler @ 001b752a */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(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;
}
|
|
8,525 |
ftxui::TabContainer::Render()
|
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/container.cpp
|
Element Render() override {
const Component active_child = ActiveChild();
if (active_child) {
return active_child->Render();
}
return text("Empty container");
}
|
O0
|
cpp
|
ftxui::TabContainer::Render():
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x68(%rbp)
movq %rdi, %rax
movq %rax, -0x60(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rsi
movq (%rsi), %rax
leaq -0x20(%rbp), %rdi
callq *0x28(%rax)
leaq -0x20(%rbp), %rdi
callq 0x54260
testb $0x1, %al
jne 0x55e98
jmp 0x55ed0
leaq -0x20(%rbp), %rdi
callq 0x23bd0
movq -0x68(%rbp), %rdi
movq %rax, %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
callq *%rax
jmp 0x55eb3
movl $0x1, -0x30(%rbp)
jmp 0x55f4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x55f5e
leaq -0x51(%rbp), %rdi
movq %rdi, -0x70(%rbp)
callq 0xdaa0
movq -0x70(%rbp), %rdx
leaq 0x3c95d(%rip), %rsi # 0x92845
leaq -0x50(%rbp), %rdi
callq 0x16510
jmp 0x55ef3
movq -0x68(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x49470
jmp 0x55f02
leaq -0x50(%rbp), %rdi
callq 0xdbc8
leaq -0x51(%rbp), %rdi
callq 0xd620
movl $0x1, -0x30(%rbp)
jmp 0x55f4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x55f40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xdbc8
leaq -0x51(%rbp), %rdi
callq 0xd620
jmp 0x55f5e
leaq -0x20(%rbp), %rdi
callq 0x201c0
movq -0x60(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
leaq -0x20(%rbp), %rdi
callq 0x201c0
movq -0x28(%rbp), %rdi
callq 0xda90
|
_ZN5ftxui12TabContainer6RenderEv:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_68], rdi
mov rax, rdi
mov [rbp+var_60], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rsi, [rbp+var_10]
mov rax, [rsi]
lea rdi, [rbp+var_20]
call qword ptr [rax+28h]
lea rdi, [rbp+var_20]
call _ZNKSt12__shared_ptrIN5ftxui13ComponentBaseELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_55E98
jmp short loc_55ED0
loc_55E98:
lea rdi, [rbp+var_20]
call _ZNKSt19__shared_ptr_accessIN5ftxui13ComponentBaseELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, [rbp+var_68]
mov rsi, rax
mov rax, [rsi]
mov rax, [rax+10h]
call rax
jmp short $+2
loc_55EB3:
mov [rbp+var_30], 1
jmp loc_55F4B
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
jmp loc_55F5E
loc_55ED0:
lea rdi, [rbp+var_51]
mov [rbp+var_70], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rbp+var_70]
lea rsi, aEmptyContainer; "Empty container"
lea rdi, [rbp+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_55EF3:
mov rdi, [rbp+var_68]
lea rsi, [rbp+var_50]
call _ZN5ftxui4textENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; ftxui::text(std::string)
jmp short $+2
loc_55F02:
lea rdi, [rbp+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_51]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov [rbp+var_30], 1
jmp short loc_55F4B
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
jmp short loc_55F40
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
lea rdi, [rbp+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_55F40:
lea rdi, [rbp+var_51]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_55F5E
loc_55F4B:
lea rdi, [rbp+var_20]
call _ZNSt10shared_ptrIN5ftxui13ComponentBaseEED2Ev; std::shared_ptr<ftxui::ComponentBase>::~shared_ptr()
mov rax, [rbp+var_60]
add rsp, 70h
pop rbp
retn
loc_55F5E:
lea rdi, [rbp+var_20]
call _ZNSt10shared_ptrIN5ftxui13ComponentBaseEED2Ev; std::shared_ptr<ftxui::ComponentBase>::~shared_ptr()
mov rdi, [rbp+var_28]
call __Unwind_Resume
|
ftxui::TabContainer * ftxui::TabContainer::Render(ftxui::TabContainer *this, long long a2)
{
long long v2; // rsi
char v4; // [rsp+1Fh] [rbp-51h] BYREF
_BYTE v5[32]; // [rsp+20h] [rbp-50h] BYREF
int v6; // [rsp+40h] [rbp-30h]
_QWORD v7[4]; // [rsp+50h] [rbp-20h] BYREF
v7[3] = this;
v7[2] = a2;
(*(void ( **)(_QWORD *))(*(_QWORD *)a2 + 40LL))(v7);
if ( std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::operator bool(v7) )
{
v2 = std::__shared_ptr_access<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)v7);
(*(void ( **)(ftxui::TabContainer *))(*(_QWORD *)v2 + 16LL))(this);
}
else
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v5, (long long)"Empty container", (long long)&v4);
ftxui::text((long long)this, (long long)v5);
std::string::~string(v5);
std::allocator<char>::~allocator(&v4);
}
v6 = 1;
std::shared_ptr<ftxui::ComponentBase>::~shared_ptr((long long)v7);
return this;
}
|
Render:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x68],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x60],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RSI]
LEA RDI,[RBP + -0x20]
CALL qword ptr [RAX + 0x28]
LEA RDI,[RBP + -0x20]
CALL 0x00154260
TEST AL,0x1
JNZ 0x00155e98
JMP 0x00155ed0
LAB_00155e98:
LEA RDI,[RBP + -0x20]
CALL 0x00123bd0
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,RAX
MOV RAX,qword ptr [RSI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_00155eaf:
CALL RAX
JMP 0x00155eb3
LAB_00155eb3:
MOV dword ptr [RBP + -0x30],0x1
JMP 0x00155f4b
LAB_00155ed0:
LEA RDI,[RBP + -0x51]
MOV qword ptr [RBP + -0x70],RDI
CALL 0x0010daa0
MOV RDX,qword ptr [RBP + -0x70]
LAB_00155ee1:
LEA RSI,[0x192845]
LEA RDI,[RBP + -0x50]
CALL 0x00116510
JMP 0x00155ef3
LAB_00155ef3:
MOV RDI,qword ptr [RBP + -0x68]
LEA RSI,[RBP + -0x50]
CALL 0x00149470
LAB_00155f00:
JMP 0x00155f02
LAB_00155f02:
LEA RDI,[RBP + -0x50]
CALL 0x0010dbc8
LEA RDI,[RBP + -0x51]
CALL 0x0010d620
MOV dword ptr [RBP + -0x30],0x1
JMP 0x00155f4b
LAB_00155f4b:
LEA RDI,[RBP + -0x20]
CALL 0x001201c0
MOV RAX,qword ptr [RBP + -0x60]
ADD RSP,0x70
POP RBP
RET
|
/* ftxui::TabContainer::Render() */
ftxui * ftxui::TabContainer::Render(void)
{
bool bVar1;
long *plVar2;
long *in_RSI;
ftxui *in_RDI;
allocator local_59;
string local_58 [32];
int4 local_38;
__shared_ptr local_28 [32];
(**(code **)(*in_RSI + 0x28))(local_28);
bVar1 = std::__shared_ptr::operator_cast_to_bool(local_28);
if (bVar1) {
plVar2 = (long *)std::
__shared_ptr_access<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2,false,false>
::operator->((__shared_ptr_access<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2,false,false>
*)local_28);
/* try { // try from 00155eaf to 00155eb0 has its CatchHandler @ 00155ebf */
(**(code **)(*plVar2 + 0x10))(in_RDI);
}
else {
std::allocator<char>::allocator();
/* try { // try from 00155ee1 to 00155ef0 has its CatchHandler @ 00155f1d */
std::__cxx11::string::string<std::allocator<char>>(local_58,"Empty container",&local_59);
/* try { // try from 00155ef3 to 00155eff has its CatchHandler @ 00155f2b */
text(in_RDI,local_58);
std::__cxx11::string::~string(local_58);
std::allocator<char>::~allocator((allocator<char> *)&local_59);
}
local_38 = 1;
std::shared_ptr<ftxui::ComponentBase>::~shared_ptr((shared_ptr<ftxui::ComponentBase> *)local_28);
return in_RDI;
}
|
|
8,526 |
minja::FilterTemplateToken::~FilterTemplateToken()
|
monkey531[P]llama/common/minja.hpp
|
FilterTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && filter)
: TemplateToken(Type::Filter, location, pre, post), filter(std::move(filter)) {}
|
O3
|
cpp
|
minja::FilterTemplateToken::~FilterTemplateToken():
pushq %rbx
movq %rdi, %rbx
leaq 0x927cf(%rip), %rax # 0x12fe48
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x9d68e
callq 0x267a6
leaq 0x91c53(%rip), %rax # 0x12f2e8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x9d6ab
popq %rbx
jmp 0x267a6
popq %rbx
retq
nop
|
_ZN5minja19FilterTemplateTokenD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_9D68E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D68E:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_9D6AB
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9D6AB:
pop rbx
retn
|
void minja::FilterTemplateToken::~FilterTemplateToken(minja::FilterTemplateToken *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::FilterTemplateToken + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
|
~FilterTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22fe48]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x0019d68e
CALL 0x001267a6
LAB_0019d68e:
LEA RAX,[0x22f2e8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x0019d6ab
POP RBX
JMP 0x001267a6
LAB_0019d6ab:
POP RBX
RET
|
/* minja::FilterTemplateToken::~FilterTemplateToken() */
void __thiscall minja::FilterTemplateToken::~FilterTemplateToken(FilterTemplateToken *this)
{
*(int ***)this = &PTR__FilterTemplateToken_0022fe58;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
*(int ***)this = &PTR__TemplateToken_0022f2f8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
return;
}
return;
}
|
|
8,527 |
void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp
|
void
_resizeMatrix(SparseMatrix<REAL> & matrix,
int numRows, int numColumns, int numElements,
int const rowSizes[]) {
matrix.Resize(numRows, numColumns, numElements);
for (int i = 0; i < numRows; ++i) {
matrix.SetRowSize(i, rowSizes[i]);
}
assert(matrix.GetNumElements() == numElements);
}
|
O1
|
cpp
|
void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebp
movq %rdi, %r15
movl $0x14, (%rdi)
movl %esi, 0x4(%rdi)
xorl %ebx, %ebx
movl %ebx, 0x8(%rdi)
leaq 0x10(%rdi), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x39690
movslq (%r15), %rsi
incq %rsi
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x38f90
movq 0x10(%r15), %rax
movl %ebx, (%rax)
leaq 0x40(%r15), %r12
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x2, %rax
cmpl %ebp, %eax
jge 0x4ccc9
leaq 0x28(%r15), %rdi
movslq %ebp, %r13
movq %r13, %rsi
callq 0x39690
movq %r12, %rdi
movq %r13, %rsi
callq 0x39a00
movl %ebp, (%rsp)
leaq 0x28(%r15), %r13
xorl %ebp, %ebp
movq 0x10(%r15), %rbx
movl (%rbx,%rbp,4), %eax
cmpl 0x8(%r15), %eax
jne 0x4cd36
addl (%r14,%rbp,4), %eax
movl %eax, 0x4(%rbx,%rbp,4)
movl %eax, 0x8(%r15)
movslq 0x4(%rbx,%rbp,4), %rsi
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x2, %rax
cmpl %eax, %esi
jle 0x4cd15
movq %r13, %rdi
callq 0x39690
movslq 0x4(%rbx,%rbp,4), %rsi
movq %r12, %rdi
callq 0x39a00
incq %rbp
cmpq $0x14, %rbp
jne 0x4ccd2
movl (%rsp), %eax
cmpl %eax, 0x8(%r15)
jne 0x4cd55
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x67a9e(%rip), %rdi # 0xb47db
leaq 0x67abd(%rip), %rsi # 0xb4801
leaq 0x67b27(%rip), %rcx # 0xb4872
movl $0x98, %edx
callq 0x39560
leaq 0x679d4(%rip), %rdi # 0xb4730
leaq 0x678a3(%rip), %rsi # 0xb4606
leaq 0x679ed(%rip), %rcx # 0xb4757
movl $0x1a4, %edx # imm = 0x1A4
callq 0x39560
|
_ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_113_resizeMatrixIfEEvRNS1_12SparseMatrixIT_EEiiiPKi:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov ebp, edx
mov r15, rdi
mov dword ptr [rdi], 14h
mov [rdi+4], esi
xor ebx, ebx
mov [rdi+8], ebx
lea r12, [rdi+10h]
mov rdi, r12
xor esi, esi
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [r15]
inc rsi
lea rdx, [rsp+38h+var_34]
mov dword ptr [rdx], 0FFFFFFFFh
mov rdi, r12
call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&)
mov rax, [r15+10h]
mov [rax], ebx
lea r12, [r15+40h]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 2
cmp eax, ebp
jge short loc_4CCC9
lea rdi, [r15+28h]
movsxd r13, ebp
mov rsi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rdi, r12
mov rsi, r13
call __ZNSt6vectorIfSaIfEE6resizeEm; std::vector<float>::resize(ulong)
loc_4CCC9:
mov [rsp+38h+var_38], ebp
lea r13, [r15+28h]
xor ebp, ebp
loc_4CCD2:
mov rbx, [r15+10h]
mov eax, [rbx+rbp*4]
cmp eax, [r15+8]
jnz short loc_4CD36
add eax, [r14+rbp*4]
mov [rbx+rbp*4+4], eax
mov [r15+8], eax
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 2
cmp esi, eax
jle short loc_4CD15
mov rdi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rdi, r12
call __ZNSt6vectorIfSaIfEE6resizeEm; std::vector<float>::resize(ulong)
loc_4CD15:
inc rbp
cmp rbp, 14h
jnz short loc_4CCD2
mov eax, [rsp+38h+var_38]
cmp [r15+8], eax
jnz short loc_4CD55
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4CD36:
lea rdi, aRowoffsetsRowi; "_rowOffsets[rowIndex] == _numElements"
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_15; "void OpenSubdiv::v3_6_0::Far::SparseMat"...
mov edx, 98h
call ___assert_fail
loc_4CD55:
lea rdi, aMatrixGetnumel; "matrix.GetNumElements() == numElements"
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_16; "void OpenSubdiv::v3_6_0::Far::(anonymou"...
mov edx, 1A4h
call ___assert_fail
|
long long OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_resizeMatrix<float>(
int *a1,
int a2,
int a3,
long long a4)
{
long long v4; // rax
long long v7; // rsi
long long i; // rbp
long long v9; // rbx
int v10; // eax
int v11; // eax
long long v12; // rsi
long long result; // rax
unsigned int v14; // [rsp+0h] [rbp-38h]
int v15[13]; // [rsp+4h] [rbp-34h] BYREF
v15[0] = HIDWORD(v4);
*a1 = 20;
a1[1] = a2;
a1[2] = 0;
std::vector<int>::resize(a1 + 4, 0LL);
v7 = *a1 + 1LL;
v15[0] = -1;
std::vector<int>::resize(a1 + 4, v7, v15);
**((_DWORD **)a1 + 2) = 0;
if ( (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 2) < a3 )
{
std::vector<int>::resize(a1 + 10, a3);
std::vector<float>::resize(a1 + 16, a3);
}
v14 = a3;
for ( i = 0LL; i != 20; ++i )
{
v9 = *((_QWORD *)a1 + 2);
v10 = *(_DWORD *)(v9 + 4 * i);
if ( v10 != a1[2] )
__assert_fail(
"_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h",
152LL,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::SetRowSize(int, int) [REAL = float]");
v11 = *(_DWORD *)(a4 + 4 * i) + v10;
*(_DWORD *)(v9 + 4 * i + 4) = v11;
a1[2] = v11;
v12 = *(int *)(v9 + 4 * i + 4);
if ( (int)v12 > (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 2) )
{
std::vector<int>::resize(a1 + 10, v12);
std::vector<float>::resize(a1 + 16, *(int *)(v9 + 4 * i + 4));
}
}
result = v14;
if ( a1[2] != v14 )
__assert_fail(
"matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp",
420LL,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int "
"*) [REAL = float]");
return result;
}
|
_resizeMatrix<float>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV EBP,EDX
MOV R15,RDI
MOV dword ptr [RDI],0x14
MOV dword ptr [RDI + 0x4],ESI
XOR EBX,EBX
MOV dword ptr [RDI + 0x8],EBX
LEA R12,[RDI + 0x10]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00139690
MOVSXD RSI,dword ptr [R15]
INC RSI
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],0xffffffff
MOV RDI,R12
CALL 0x00138f90
MOV RAX,qword ptr [R15 + 0x10]
MOV dword ptr [RAX],EBX
LEA R12,[R15 + 0x40]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x2
CMP EAX,EBP
JGE 0x0014ccc9
LEA RDI,[R15 + 0x28]
MOVSXD R13,EBP
MOV RSI,R13
CALL 0x00139690
MOV RDI,R12
MOV RSI,R13
CALL 0x00139a00
LAB_0014ccc9:
MOV dword ptr [RSP],EBP
LEA R13,[R15 + 0x28]
XOR EBP,EBP
LAB_0014ccd2:
MOV RBX,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [RBX + RBP*0x4]
CMP EAX,dword ptr [R15 + 0x8]
JNZ 0x0014cd36
ADD EAX,dword ptr [R14 + RBP*0x4]
MOV dword ptr [RBX + RBP*0x4 + 0x4],EAX
MOV dword ptr [R15 + 0x8],EAX
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x2
CMP ESI,EAX
JLE 0x0014cd15
MOV RDI,R13
CALL 0x00139690
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RDI,R12
CALL 0x00139a00
LAB_0014cd15:
INC RBP
CMP RBP,0x14
JNZ 0x0014ccd2
MOV EAX,dword ptr [RSP]
CMP dword ptr [R15 + 0x8],EAX
JNZ 0x0014cd55
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014cd36:
LEA RDI,[0x1b47db]
LEA RSI,[0x1b4801]
LEA RCX,[0x1b4872]
MOV EDX,0x98
CALL 0x00139560
LAB_0014cd55:
LEA RDI,[0x1b4730]
LEA RSI,[0x1b4606]
LEA RCX,[0x1b4757]
MOV EDX,0x1a4
CALL 0x00139560
|
/* void OpenSubdiv::v3_6_0::Far::(anonymous
namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int,
int const*) */
void OpenSubdiv::v3_6_0::Far::(anonymous_namespace)::_resizeMatrix<float>
(SparseMatrix *param_1,int param_2,int param_3,int param_4,int *param_5)
{
long lVar1;
int iVar2;
int4 in_register_0000000c;
long lVar3;
int local_34;
*(int4 *)param_1 = 0x14;
*(int *)(param_1 + 4) = param_2;
*(int4 *)(param_1 + 8) = 0;
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),0);
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),(long)*(int *)param_1 + 1,&local_34
);
**(int4 **)(param_1 + 0x10) = 0;
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 2) < param_3) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)param_3);
std::vector<float,std::allocator<float>>::resize
((vector<float,std::allocator<float>> *)(param_1 + 0x40),(long)param_3);
}
lVar3 = 0;
do {
lVar1 = *(long *)(param_1 + 0x10);
iVar2 = *(int *)(lVar1 + lVar3 * 4);
if (iVar2 != *(int *)(param_1 + 8)) {
/* WARNING: Subroutine does not return */
__assert_fail("_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h"
,0x98,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::SetRowSize(int, int) [REAL = float]"
);
}
iVar2 = iVar2 + *(int *)(CONCAT44(in_register_0000000c,param_4) + lVar3 * 4);
*(int *)(lVar1 + 4 + lVar3 * 4) = iVar2;
*(int *)(param_1 + 8) = iVar2;
iVar2 = *(int *)(lVar1 + 4 + lVar3 * 4);
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 2) < iVar2) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)iVar2);
std::vector<float,std::allocator<float>>::resize
((vector<float,std::allocator<float>> *)(param_1 + 0x40),
(long)*(int *)(lVar1 + 4 + lVar3 * 4));
}
lVar3 = lVar3 + 1;
} while (lVar3 != 0x14);
if (*(int *)(param_1 + 8) == param_3) {
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp"
,0x1a4,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int *) [REAL = float]"
);
}
|
|
8,528 |
void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp
|
void
_resizeMatrix(SparseMatrix<REAL> & matrix,
int numRows, int numColumns, int numElements,
int const rowSizes[]) {
matrix.Resize(numRows, numColumns, numElements);
for (int i = 0; i < numRows; ++i) {
matrix.SetRowSize(i, rowSizes[i]);
}
assert(matrix.GetNumElements() == numElements);
}
|
O2
|
cpp
|
void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebx
movl %esi, %edx
movq %rdi, %r15
pushq $0x14
popq %rsi
movl %ebx, %ecx
callq 0x4f420
xorl %r12d, %r12d
cmpq $0x14, %r12
je 0x64bae
movl (%r14,%r12,4), %edx
movq %r15, %rdi
movl %r12d, %esi
callq 0x528c0
incq %r12
jmp 0x64b94
cmpl %ebx, 0x8(%r15)
jne 0x64bc0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x59cb9(%rip), %rdi # 0xbe880
leaq 0x59b88(%rip), %rsi # 0xbe756
leaq 0x5a5c1(%rip), %rcx # 0xbf196
movl $0x1a4, %edx # imm = 0x1A4
callq 0x512a0
nop
|
_ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_113_resizeMatrixIdEEvRNS1_12SparseMatrixIT_EEiiiPKi:
push r15
push r14
push r12
push rbx
push rax
mov r14, rcx
mov ebx, edx
mov edx, esi
mov r15, rdi
push 14h
pop rsi
mov ecx, ebx
call __ZN10OpenSubdiv6v3_6_03Far12SparseMatrixIdE6ResizeEiii; OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Resize(int,int,int)
xor r12d, r12d
loc_64B94:
cmp r12, 14h
jz short loc_64BAE
mov edx, [r14+r12*4]
mov rdi, r15
mov esi, r12d
call __ZN10OpenSubdiv6v3_6_03Far12SparseMatrixIdE10SetRowSizeEii; OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(int,int)
inc r12
jmp short loc_64B94
loc_64BAE:
cmp [r15+8], ebx
jnz short loc_64BC0
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_64BC0:
lea rdi, aMatrixGetnumel; "matrix.GetNumElements() == numElements"
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_18; "void OpenSubdiv::v3_6_0::Far::(anonymou"...
mov edx, 1A4h
call ___assert_fail
|
long long OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_resizeMatrix<double>(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4)
{
long long result; // rax
long long i; // r12
result = OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Resize(a1, 20LL, a2, a3);
for ( i = 0LL; i != 20; ++i )
result = OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(
a1,
(unsigned int)i,
*(unsigned int *)(a4 + 4 * i));
if ( *(_DWORD *)(a1 + 8) != a3 )
__assert_fail(
"matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp",
420LL,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int "
"*) [REAL = double]");
return result;
}
|
_resizeMatrix<double>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV EBX,EDX
MOV EDX,ESI
MOV R15,RDI
PUSH 0x14
POP RSI
MOV ECX,EBX
CALL 0x0014f420
XOR R12D,R12D
LAB_00164b94:
CMP R12,0x14
JZ 0x00164bae
MOV EDX,dword ptr [R14 + R12*0x4]
MOV RDI,R15
MOV ESI,R12D
CALL 0x001528c0
INC R12
JMP 0x00164b94
LAB_00164bae:
CMP dword ptr [R15 + 0x8],EBX
JNZ 0x00164bc0
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00164bc0:
LEA RDI,[0x1be880]
LEA RSI,[0x1be756]
LEA RCX,[0x1bf196]
MOV EDX,0x1a4
CALL 0x001512a0
|
/* void OpenSubdiv::v3_6_0::Far::(anonymous
namespace)::_resizeMatrix<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, int, int, int,
int const*) */
void OpenSubdiv::v3_6_0::Far::(anonymous_namespace)::_resizeMatrix<double>
(SparseMatrix *param_1,int param_2,int param_3,int param_4,int *param_5)
{
int4 in_register_0000000c;
long lVar1;
SparseMatrix<double>::Resize((SparseMatrix<double> *)param_1,0x14,param_2,param_3);
for (lVar1 = 0; lVar1 != 0x14; lVar1 = lVar1 + 1) {
SparseMatrix<double>::SetRowSize
((SparseMatrix<double> *)param_1,(int)lVar1,
*(int *)(CONCAT44(in_register_0000000c,param_4) + lVar1 * 4));
}
if (*(int *)(param_1 + 8) == param_3) {
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp"
,0x1a4,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int *) [REAL = double]"
);
}
|
|
8,529 |
void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp
|
void
_resizeMatrix(SparseMatrix<REAL> & matrix,
int numRows, int numColumns, int numElements,
int const rowSizes[]) {
matrix.Resize(numRows, numColumns, numElements);
for (int i = 0; i < numRows; ++i) {
matrix.SetRowSize(i, rowSizes[i]);
}
assert(matrix.GetNumElements() == numElements);
}
|
O3
|
cpp
|
void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebp
movq %rdi, %r15
movl $0x14, (%rdi)
movl %esi, 0x4(%rdi)
xorl %ebx, %ebx
movl %ebx, 0x8(%rdi)
leaq 0x10(%rdi), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x39670
movslq (%r15), %rsi
incq %rsi
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x38f80
movq 0x10(%r15), %rax
movl %ebx, (%rax)
leaq 0x40(%r15), %r12
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x3, %rax
cmpl %ebp, %eax
jge 0x4faa3
leaq 0x28(%r15), %rdi
movslq %ebp, %r13
movq %r13, %rsi
callq 0x39670
movq %r12, %rdi
movq %r13, %rsi
callq 0x3a2c0
movl %ebp, (%rsp)
leaq 0x28(%r15), %r13
xorl %ebp, %ebp
movq 0x10(%r15), %rbx
movl (%rbx,%rbp,4), %eax
cmpl 0x8(%r15), %eax
jne 0x4fb10
addl (%r14,%rbp,4), %eax
movl %eax, 0x4(%rbx,%rbp,4)
movl %eax, 0x8(%r15)
movslq 0x4(%rbx,%rbp,4), %rsi
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x3, %rax
cmpl %eax, %esi
jle 0x4faef
movq %r13, %rdi
callq 0x39670
movslq 0x4(%rbx,%rbp,4), %rsi
movq %r12, %rdi
callq 0x3a2c0
incq %rbp
cmpq $0x14, %rbp
jne 0x4faac
movl (%rsp), %eax
cmpl %eax, 0x8(%r15)
jne 0x4fb2f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x67ef4(%rip), %rdi # 0xb7a0b
leaq 0x67f13(%rip), %rsi # 0xb7a31
leaq 0x687d6(%rip), %rcx # 0xb82fb
movl $0x98, %edx
callq 0x39540
leaq 0x67e2a(%rip), %rdi # 0xb7960
leaq 0x67cf9(%rip), %rsi # 0xb7836
leaq 0x68732(%rip), %rcx # 0xb8276
movl $0x1a4, %edx # imm = 0x1A4
callq 0x39540
|
_ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_113_resizeMatrixIdEEvRNS1_12SparseMatrixIT_EEiiiPKi:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov ebp, edx
mov r15, rdi
mov dword ptr [rdi], 14h
mov [rdi+4], esi
xor ebx, ebx
mov [rdi+8], ebx
lea r12, [rdi+10h]
mov rdi, r12
xor esi, esi
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [r15]
inc rsi
lea rdx, [rsp+38h+var_34]
mov dword ptr [rdx], 0FFFFFFFFh
mov rdi, r12
call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&)
mov rax, [r15+10h]
mov [rax], ebx
lea r12, [r15+40h]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 3
cmp eax, ebp
jge short loc_4FAA3
lea rdi, [r15+28h]
movsxd r13, ebp
mov rsi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rdi, r12
mov rsi, r13
call __ZNSt6vectorIdSaIdEE6resizeEm; std::vector<double>::resize(ulong)
loc_4FAA3:
mov [rsp+38h+var_38], ebp
lea r13, [r15+28h]
xor ebp, ebp
loc_4FAAC:
mov rbx, [r15+10h]
mov eax, [rbx+rbp*4]
cmp eax, [r15+8]
jnz short loc_4FB10
add eax, [r14+rbp*4]
mov [rbx+rbp*4+4], eax
mov [r15+8], eax
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 3
cmp esi, eax
jle short loc_4FAEF
mov rdi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rdi, r12
call __ZNSt6vectorIdSaIdEE6resizeEm; std::vector<double>::resize(ulong)
loc_4FAEF:
inc rbp
cmp rbp, 14h
jnz short loc_4FAAC
mov eax, [rsp+38h+var_38]
cmp [r15+8], eax
jnz short loc_4FB2F
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4FB10:
lea rdi, aRowoffsetsRowi; "_rowOffsets[rowIndex] == _numElements"
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_18; "void OpenSubdiv::v3_6_0::Far::SparseMat"...
mov edx, 98h
call ___assert_fail
loc_4FB2F:
lea rdi, aMatrixGetnumel; "matrix.GetNumElements() == numElements"
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_19; "void OpenSubdiv::v3_6_0::Far::(anonymou"...
mov edx, 1A4h
call ___assert_fail
|
long long OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_resizeMatrix<double>(
int *a1,
int a2,
int a3,
long long a4)
{
long long v4; // rax
long long v7; // rsi
long long i; // rbp
long long v9; // rbx
int v10; // eax
int v11; // eax
long long v12; // rsi
long long result; // rax
unsigned int v14; // [rsp+0h] [rbp-38h]
int v15[13]; // [rsp+4h] [rbp-34h] BYREF
v15[0] = HIDWORD(v4);
*a1 = 20;
a1[1] = a2;
a1[2] = 0;
std::vector<int>::resize(a1 + 4, 0LL);
v7 = *a1 + 1LL;
v15[0] = -1;
std::vector<int>::resize(a1 + 4, v7, v15);
**((_DWORD **)a1 + 2) = 0;
if ( (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 3) < a3 )
{
std::vector<int>::resize(a1 + 10, a3);
std::vector<double>::resize(a1 + 16, a3);
}
v14 = a3;
for ( i = 0LL; i != 20; ++i )
{
v9 = *((_QWORD *)a1 + 2);
v10 = *(_DWORD *)(v9 + 4 * i);
if ( v10 != a1[2] )
__assert_fail(
"_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h",
152LL,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(int, int) [REAL = double]");
v11 = *(_DWORD *)(a4 + 4 * i) + v10;
*(_DWORD *)(v9 + 4 * i + 4) = v11;
a1[2] = v11;
v12 = *(int *)(v9 + 4 * i + 4);
if ( (int)v12 > (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 3) )
{
std::vector<int>::resize(a1 + 10, v12);
std::vector<double>::resize(a1 + 16, *(int *)(v9 + 4 * i + 4));
}
}
result = v14;
if ( a1[2] != v14 )
__assert_fail(
"matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp",
420LL,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int "
"*) [REAL = double]");
return result;
}
|
_resizeMatrix<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV EBP,EDX
MOV R15,RDI
MOV dword ptr [RDI],0x14
MOV dword ptr [RDI + 0x4],ESI
XOR EBX,EBX
MOV dword ptr [RDI + 0x8],EBX
LEA R12,[RDI + 0x10]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00139670
MOVSXD RSI,dword ptr [R15]
INC RSI
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],0xffffffff
MOV RDI,R12
CALL 0x00138f80
MOV RAX,qword ptr [R15 + 0x10]
MOV dword ptr [RAX],EBX
LEA R12,[R15 + 0x40]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x3
CMP EAX,EBP
JGE 0x0014faa3
LEA RDI,[R15 + 0x28]
MOVSXD R13,EBP
MOV RSI,R13
CALL 0x00139670
MOV RDI,R12
MOV RSI,R13
CALL 0x0013a2c0
LAB_0014faa3:
MOV dword ptr [RSP],EBP
LEA R13,[R15 + 0x28]
XOR EBP,EBP
LAB_0014faac:
MOV RBX,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [RBX + RBP*0x4]
CMP EAX,dword ptr [R15 + 0x8]
JNZ 0x0014fb10
ADD EAX,dword ptr [R14 + RBP*0x4]
MOV dword ptr [RBX + RBP*0x4 + 0x4],EAX
MOV dword ptr [R15 + 0x8],EAX
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x3
CMP ESI,EAX
JLE 0x0014faef
MOV RDI,R13
CALL 0x00139670
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RDI,R12
CALL 0x0013a2c0
LAB_0014faef:
INC RBP
CMP RBP,0x14
JNZ 0x0014faac
MOV EAX,dword ptr [RSP]
CMP dword ptr [R15 + 0x8],EAX
JNZ 0x0014fb2f
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014fb10:
LEA RDI,[0x1b7a0b]
LEA RSI,[0x1b7a31]
LEA RCX,[0x1b82fb]
MOV EDX,0x98
CALL 0x00139540
LAB_0014fb2f:
LEA RDI,[0x1b7960]
LEA RSI,[0x1b7836]
LEA RCX,[0x1b8276]
MOV EDX,0x1a4
CALL 0x00139540
|
/* void OpenSubdiv::v3_6_0::Far::(anonymous
namespace)::_resizeMatrix<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, int, int, int,
int const*) */
void OpenSubdiv::v3_6_0::Far::(anonymous_namespace)::_resizeMatrix<double>
(SparseMatrix *param_1,int param_2,int param_3,int param_4,int *param_5)
{
long lVar1;
int iVar2;
int4 in_register_0000000c;
long lVar3;
int local_34;
*(int4 *)param_1 = 0x14;
*(int *)(param_1 + 4) = param_2;
*(int4 *)(param_1 + 8) = 0;
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),0);
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),(long)*(int *)param_1 + 1,&local_34
);
**(int4 **)(param_1 + 0x10) = 0;
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 3) < param_3) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)param_3);
std::vector<double,std::allocator<double>>::resize
((vector<double,std::allocator<double>> *)(param_1 + 0x40),(long)param_3);
}
lVar3 = 0;
do {
lVar1 = *(long *)(param_1 + 0x10);
iVar2 = *(int *)(lVar1 + lVar3 * 4);
if (iVar2 != *(int *)(param_1 + 8)) {
/* WARNING: Subroutine does not return */
__assert_fail("_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h"
,0x98,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(int, int) [REAL = double]"
);
}
iVar2 = iVar2 + *(int *)(CONCAT44(in_register_0000000c,param_4) + lVar3 * 4);
*(int *)(lVar1 + 4 + lVar3 * 4) = iVar2;
*(int *)(param_1 + 8) = iVar2;
iVar2 = *(int *)(lVar1 + 4 + lVar3 * 4);
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 3) < iVar2) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)iVar2);
std::vector<double,std::allocator<double>>::resize
((vector<double,std::allocator<double>> *)(param_1 + 0x40),
(long)*(int *)(lVar1 + 4 + lVar3 * 4));
}
lVar3 = lVar3 + 1;
} while (lVar3 != 0x14);
if (*(int *)(param_1 + 8) == param_3) {
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/catmarkPatchBuilder.cpp"
,0x1a4,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int *) [REAL = double]"
);
}
|
|
8,530 |
fmt::v10::detail::format_decimal_result<char*> fmt::v10::detail::format_decimal<char, unsigned long>(char*, unsigned long, int)
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
-> format_decimal_result<Char*> {
FMT_ASSERT(size >= count_digits(value), "invalid digit count");
out += size;
Char* end = out;
while (value >= 100) {
// Integer division is slow so do it for a group of two digits instead
// of for every digit. The idea comes from the talk by Alexandrescu
// "Three Optimization Tips for C++". See speed-test for a comparison.
out -= 2;
copy2(out, digits2(static_cast<size_t>(value % 100)));
value /= 100;
}
if (value < 10) {
*--out = static_cast<Char>('0' + value);
return {out, end};
}
out -= 2;
copy2(out, digits2(static_cast<size_t>(value)));
return {out, end};
}
|
O3
|
c
|
fmt::v10::detail::format_decimal_result<char*> fmt::v10::detail::format_decimal<char, unsigned long>(char*, unsigned long, int):
movslq %edx, %rcx
addq %rdi, %rcx
leaq 0x5df1b(%rip), %r8 # 0x83865
cmpq $0x64, %rsi
jb 0x25990
movabsq $0x28f5c28f5c28f5c3, %r9 # imm = 0x28F5C28F5C28F5C3
movq %rcx, %rdi
movq %rsi, %rax
shrq $0x2, %rax
mulq %r9
shrq $0x2, %rdx
imulq $0x64, %rdx, %rax
movq %rsi, %r10
subq %rax, %r10
movzwl (%r8,%r10,2), %eax
movw %ax, -0x2(%rdi)
addq $-0x2, %rdi
cmpq $0x270f, %rsi # imm = 0x270F
movq %rdx, %rsi
ja 0x2595d
jmp 0x25996
movq %rcx, %rdi
movq %rsi, %rdx
cmpq $0x9, %rdx
ja 0x259a7
orb $0x30, %dl
movb %dl, -0x1(%rdi)
decq %rdi
jmp 0x259b4
movzwl (%r8,%rdx,2), %eax
movw %ax, -0x2(%rdi)
addq $-0x2, %rdi
movq %rdi, %rax
movq %rcx, %rdx
retq
|
_ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i:
movsxd rcx, edx
add rcx, rdi
lea r8, a00010203040506; "000102030405060708091011121314151617181"...
cmp rsi, 64h ; 'd'
jb short loc_25990
mov r9, 28F5C28F5C28F5C3h
mov rdi, rcx
loc_2595D:
mov rax, rsi
shr rax, 2
mul r9
shr rdx, 2
imul rax, rdx, 64h ; 'd'
mov r10, rsi
sub r10, rax
movzx eax, word ptr [r8+r10*2]
mov [rdi-2], ax
add rdi, 0FFFFFFFFFFFFFFFEh
cmp rsi, 270Fh
mov rsi, rdx
ja short loc_2595D
jmp short loc_25996
loc_25990:
mov rdi, rcx
mov rdx, rsi
loc_25996:
cmp rdx, 9
ja short loc_259A7
or dl, 30h
mov [rdi-1], dl
dec rdi
jmp short loc_259B4
loc_259A7:
movzx eax, word ptr [r8+rdx*2]
mov [rdi-2], ax
add rdi, 0FFFFFFFFFFFFFFFEh
loc_259B4:
mov rax, rdi
mov rdx, rcx
retn
|
long long fmt::v10::detail::format_decimal<char,unsigned long>(long long a1, unsigned long long a2, int a3)
{
long long v3; // rdi
unsigned long long v4; // rdx
bool v5; // cc
if ( a2 < 0x64 )
{
v3 = a1 + a3;
v4 = a2;
}
else
{
v3 = a1 + a3;
do
{
v4 = a2 / 0x64;
*(_WORD *)(v3 - 2) = *(_WORD *)&a00010203040506[2 * (a2 % 0x64)];
v3 -= 2LL;
v5 = a2 <= 0x270F;
a2 /= 0x64uLL;
}
while ( !v5 );
}
if ( v4 > 9 )
{
*(_WORD *)(v3 - 2) = *(_WORD *)&a00010203040506[2 * v4];
return v3 - 2;
}
else
{
*(_BYTE *)(v3 - 1) = v4 | 0x30;
return v3 - 1;
}
}
|
format_decimal<char,unsigned_long>:
MOVSXD RCX,EDX
ADD RCX,RDI
LEA R8,[0x183865]
CMP RSI,0x64
JC 0x00125990
MOV R9,0x28f5c28f5c28f5c3
MOV RDI,RCX
LAB_0012595d:
MOV RAX,RSI
SHR RAX,0x2
MUL R9
SHR RDX,0x2
IMUL RAX,RDX,0x64
MOV R10,RSI
SUB R10,RAX
MOVZX EAX,word ptr [R8 + R10*0x2]
MOV word ptr [RDI + -0x2],AX
ADD RDI,-0x2
CMP RSI,0x270f
MOV RSI,RDX
JA 0x0012595d
JMP 0x00125996
LAB_00125990:
MOV RDI,RCX
MOV RDX,RSI
LAB_00125996:
CMP RDX,0x9
JA 0x001259a7
OR DL,0x30
MOV byte ptr [RDI + -0x1],DL
DEC RDI
JMP 0x001259b4
LAB_001259a7:
MOVZX EAX,word ptr [R8 + RDX*0x2]
MOV word ptr [RDI + -0x2],AX
ADD RDI,-0x2
LAB_001259b4:
MOV RAX,RDI
MOV RDX,RCX
RET
|
/* fmt::v10::detail::format_decimal_result<char*> fmt::v10::detail::format_decimal<char, unsigned
long>(char*, unsigned long, int) */
int1 [16]
fmt::v10::detail::format_decimal<char,unsigned_long>(char *param_1,ulong param_2,int param_3)
{
bool bVar1;
char *pcVar2;
ulong uVar3;
char *pcVar4;
int1 auVar5 [16];
pcVar2 = param_1 + param_3;
uVar3 = param_2;
pcVar4 = pcVar2;
if (99 < param_2) {
do {
param_2 = uVar3 / 100;
*(int2 *)(pcVar4 + -2) = *(int2 *)(&DAT_00183865 + (uVar3 % 100) * 2);
pcVar4 = pcVar4 + -2;
bVar1 = 9999 < uVar3;
uVar3 = param_2;
} while (bVar1);
}
if (param_2 < 10) {
pcVar4[-1] = (byte)param_2 | 0x30;
pcVar4 = pcVar4 + -1;
}
else {
*(int2 *)(pcVar4 + -2) = *(int2 *)(&DAT_00183865 + param_2 * 2);
pcVar4 = pcVar4 + -2;
}
auVar5._8_8_ = pcVar2;
auVar5._0_8_ = pcVar4;
return auVar5;
}
|
|
8,531 |
my_sync_dir
|
eloqsql/mysys/my_sync.c
|
int my_sync_dir(const char *dir_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
static const char cur_dir_name[]= {FN_CURLIB, 0};
File dir_fd;
int res= 0;
const char *correct_dir_name;
DBUG_ENTER("my_sync_dir");
DBUG_PRINT("my",("Dir: '%s' my_flags: %lu", dir_name, my_flags));
/* Sometimes the path does not contain an explicit directory */
correct_dir_name= (dir_name[0] == 0) ? cur_dir_name : dir_name;
/*
Syncing a dir may give EINVAL on tmpfs on Linux, which is ok.
EIO on the other hand is very important. Hence MY_IGNORE_BADFD.
*/
if ((dir_fd= my_open(correct_dir_name, O_RDONLY, MYF(my_flags))) >= 0)
{
if (my_sync(dir_fd, MYF(my_flags | MY_IGNORE_BADFD)))
res= 2;
if (my_close(dir_fd, MYF(my_flags)))
res= 3;
}
else
res= 1;
DBUG_RETURN(res);
#else
return 0;
#endif
}
|
O0
|
c
|
my_sync_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
jmp 0x367e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x36802
leaq 0x4ffb4(%rip), %rax # 0x867b0
movq %rax, -0x28(%rbp)
jmp 0x3680a
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %esi, %esi
callq 0x35a10
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
jl 0x3685f
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
orq $0x20, %rsi
callq 0x36640
cmpl $0x0, %eax
je 0x36845
movl $0x2, -0x18(%rbp)
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x35ca0
cmpl $0x0, %eax
je 0x3685d
movl $0x3, -0x18(%rbp)
jmp 0x36866
movl $0x1, -0x18(%rbp)
jmp 0x36868
movl -0x18(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
my_sync_dir:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], 0
jmp short $+2
loc_367E9:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_36802
lea rax, my_sync_dir_cur_dir_name
mov [rbp+var_28], rax
jmp short loc_3680A
loc_36802:
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
loc_3680A:
mov rax, [rbp+var_28]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
mov rdx, [rbp+var_10]
xor esi, esi
call my_open
mov [rbp+var_14], eax
cmp eax, 0
jl short loc_3685F
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
or rsi, 20h
call my_sync
cmp eax, 0
jz short loc_36845
mov [rbp+var_18], 2
loc_36845:
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
call my_close
cmp eax, 0
jz short loc_3685D
mov [rbp+var_18], 3
loc_3685D:
jmp short loc_36866
loc_3685F:
mov [rbp+var_18], 1
loc_36866:
jmp short $+2
loc_36868:
mov eax, [rbp+var_18]
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
add rsp, 30h
pop rbp
retn
|
long long my_sync_dir(_BYTE *a1, long long a2)
{
void *v3; // [rsp+8h] [rbp-28h]
unsigned int v4; // [rsp+18h] [rbp-18h]
signed int v5; // [rsp+1Ch] [rbp-14h]
v4 = 0;
if ( *a1 )
v3 = a1;
else
v3 = &my_sync_dir_cur_dir_name;
v5 = my_open((long long)v3, 0, a2);
if ( v5 < 0 )
{
return 1;
}
else
{
if ( (unsigned int)my_sync(v5, (unsigned int)a2 | 0x20) )
v4 = 2;
if ( (unsigned int)my_close(v5, a2) )
return 3;
}
return v4;
}
|
my_sync_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x18],0x0
JMP 0x001367e9
LAB_001367e9:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x00136802
LEA RAX,[0x1867b0]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0013680a
LAB_00136802:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_0013680a:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x00135a10
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JL 0x0013685f
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
OR RSI,0x20
CALL 0x00136640
CMP EAX,0x0
JZ 0x00136845
MOV dword ptr [RBP + -0x18],0x2
LAB_00136845:
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00135ca0
CMP EAX,0x0
JZ 0x0013685d
MOV dword ptr [RBP + -0x18],0x3
LAB_0013685d:
JMP 0x00136866
LAB_0013685f:
MOV dword ptr [RBP + -0x18],0x1
LAB_00136866:
JMP 0x00136868
LAB_00136868:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD RSP,0x30
POP RBP
RET
|
int4 my_sync_dir(char *param_1,ulong param_2)
{
int iVar1;
int iVar2;
char *local_30;
int4 local_20;
local_20 = 0;
local_30 = param_1;
if (*param_1 == '\0') {
local_30 = ".";
}
iVar1 = my_open(local_30,0,param_2);
if (iVar1 < 0) {
local_20 = 1;
}
else {
iVar2 = my_sync(iVar1,param_2 | 0x20);
if (iVar2 != 0) {
local_20 = 2;
}
iVar1 = my_close(iVar1,param_2);
if (iVar1 != 0) {
local_20 = 3;
}
}
return local_20;
}
|
|
8,532 |
recip_sqrt_fp
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/sqrt.c
|
static bool_t recip_sqrt_fp(vec384 out, const vec384 inp)
{
vec384 t0, t1;
bool_t ret;
recip_sqrt_fp_3mod4(t0, inp);
mul_fp(t1, t0, inp);
sqr_fp(t1, t1);
ret = vec_is_equal(t1, inp, sizeof(t1));
vec_copy(out, t0, sizeof(t0));
return ret;
}
|
O0
|
c
|
recip_sqrt_fp:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0xba780
leaq -0x70(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xb6080
leaq -0x70(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xb2560
leaq -0x70(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x30, %edx
callq 0xab4c0
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movl $0x30, %edx
callq 0xa8ad0
movq -0x78(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
recip_sqrt_fp:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
call recip_sqrt_fp_3mod4
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_40]
mov rdx, [rbp+var_10]
call mul_fp
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_70]
call sqr_fp
lea rdi, [rbp+var_70]
mov rsi, [rbp+var_10]
mov edx, 30h ; '0'
call vec_is_equal
mov [rbp+var_78], rax
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_40]
mov edx, 30h ; '0'
call vec_copy
mov rax, [rbp+var_78]
add rsp, 80h
pop rbp
retn
|
unsigned long long recip_sqrt_fp(long long a1, long long a2)
{
unsigned long long is_equal; // [rsp+8h] [rbp-78h]
_BYTE v4[48]; // [rsp+10h] [rbp-70h] BYREF
_BYTE v5[48]; // [rsp+40h] [rbp-40h] BYREF
long long v6; // [rsp+70h] [rbp-10h]
long long v7; // [rsp+78h] [rbp-8h]
v7 = a1;
v6 = a2;
recip_sqrt_fp_3mod4(v5, a2);
mul_fp((long long)v4, (long long)v5, v6);
sqr_fp((long long)v4, (long long)v4);
is_equal = vec_is_equal((long long)v4, v6, 0x30uLL);
vec_copy(v7, (long long)v5, 0x30uLL);
return is_equal;
}
|
recip_sqrt_fp:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001ba780
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
CALL 0x001b6080
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x70]
CALL 0x001b2560
LEA RDI,[RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x30
CALL 0x001ab4c0
MOV qword ptr [RBP + -0x78],RAX
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x40]
MOV EDX,0x30
CALL 0x001a8ad0
MOV RAX,qword ptr [RBP + -0x78]
ADD RSP,0x80
POP RBP
RET
|
int8 recip_sqrt_fp(int8 param_1,int8 param_2)
{
int8 uVar1;
int1 local_78 [48];
int1 local_48 [48];
int8 local_18;
int8 local_10;
local_18 = param_2;
local_10 = param_1;
recip_sqrt_fp_3mod4(local_48,param_2);
mul_fp(local_78,local_48,local_18);
sqr_fp(local_78,local_78);
uVar1 = vec_is_equal(local_78,local_18,0x30);
vec_copy(local_10,local_48,0x30);
return uVar1;
}
|
|
8,533 |
nlohmann::json_abi_v3_11_3::detail::parser<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>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json.hpp
|
std::string exception_message(const token_type expected, const std::string& context)
{
std::string error_msg = "syntax error ";
if (!context.empty())
{
error_msg += concat("while parsing ", context, ' ');
}
error_msg += "- ";
if (last_token == token_type::parse_error)
{
error_msg += concat(m_lexer.get_error_message(), "; last read: '",
m_lexer.get_token_string(), '\'');
}
else
{
error_msg += concat("unexpected ", lexer_t::token_type_name(last_token));
}
if (expected != token_type::uninitialized)
{
error_msg += concat("; expected ", lexer_t::token_type_name(expected));
}
return error_msg;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<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>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x70fb8(%rip), %rsi # 0xb447c
leaq 0x10(%rsp), %rdx
callq 0x291dc
cmpq $0x0, 0x8(%r15)
je 0x43508
leaq 0x38(%rsp), %rcx
movb $0x20, (%rcx)
leaq 0x70fa6(%rip), %rsi # 0xb448a
leaq 0x10(%rsp), %rdi
movq %r15, %rdx
callq 0x48453
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x25430
leaq 0x10(%rsp), %rdi
callq 0x254d8
leaq 0x70f8a(%rip), %rsi # 0xb4499
movq %rbx, %rdi
callq 0x253f0
movl 0x20(%r14), %edi
cmpl $0xe, %edi
jne 0x4357f
movq 0x98(%r14), %rax
addq $0x28, %r14
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x432ca
leaq 0xf(%rsp), %r8
movb $0x27, (%r8)
leaq 0x70f4f(%rip), %rdx # 0xb449c
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x38(%rsp), %rcx
callq 0x484c3
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x25430
leaq 0x10(%rsp), %rdi
callq 0x254d8
leaq 0x38(%rsp), %rdi
jmp 0x435af
callq 0x4859a
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x70f18(%rip), %rsi # 0xb44ab
leaq 0x10(%rsp), %rdi
callq 0x4853b
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x25430
leaq 0x10(%rsp), %rdi
callq 0x254d8
testl %ebp, %ebp
je 0x435ef
movl %ebp, %edi
callq 0x4859a
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x70ee9(%rip), %rsi # 0xb44b7
leaq 0x10(%rsp), %rdi
callq 0x4853b
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x25430
leaq 0x10(%rsp), %rdi
callq 0x254d8
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x254d8
jmp 0x43611
jmp 0x43620
movq %rax, %r14
leaq 0x38(%rsp), %rdi
jmp 0x43628
jmp 0x43631
jmp 0x43631
jmp 0x43620
jmp 0x43631
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x254d8
jmp 0x43634
jmp 0x43631
movq %rax, %r14
movq %rbx, %rdi
callq 0x254d8
movq %r14, %rdi
callq 0x25250
|
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_:
push rbp
push r15
push r14
push rbx
sub rsp, 58h
mov r15, rcx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea rsi, aSyntaxError; "syntax error "
lea rdx, [rsp+78h+var_68]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
cmp qword ptr [r15+8], 0
jz short loc_43508
lea rcx, [rsp+78h+var_40]
mov byte ptr [rcx], 20h ; ' '
lea rsi, aWhileParsing; "while parsing "
lea rdi, [rsp+78h+var_68]
mov rdx, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA15_KcRKS8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>(char const(&)[15],std::string const&,char &&)
lea rsi, [rsp+78h+var_68]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rdi, [rsp+78h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_43508:
lea rsi, asc_B4499; "- "
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov edi, [r14+20h]
cmp edi, 0Eh
jnz short loc_4357F
mov rax, [r14+98h]
add r14, 28h ; '('
mov [rsp+78h+var_48], rax
lea rdi, [rsp+78h+var_40]
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; 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_token_string(void)
lea r8, [rsp+78h+var_69]
mov byte ptr [r8], 27h ; '''
lea rdx, aLastRead; "; last read: '"
lea rdi, [rsp+78h+var_68]
lea rsi, [rsp+78h+var_48]
lea rcx, [rsp+78h+var_40]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&)
lea rsi, [rsp+78h+var_68]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rdi, [rsp+78h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+78h+var_40]
jmp short loc_435AF
loc_4357F:
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type)
lea rdx, [rsp+78h+var_40]
mov [rdx], rax
lea rsi, aUnexpected; "unexpected "
lea rdi, [rsp+78h+var_68]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&)
lea rsi, [rsp+78h+var_68]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rdi, [rsp+78h+var_68]; void *
loc_435AF:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test ebp, ebp
jz short loc_435EF
mov edi, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type)
lea rdx, [rsp+78h+var_40]
mov [rdx], rax
lea rsi, aExpected; "; expected "
lea rdi, [rsp+78h+var_68]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&)
lea rsi, [rsp+78h+var_68]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
lea rdi, [rsp+78h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_435EF:
mov rax, rbx
add rsp, 58h
pop rbx
pop r14
pop r15
pop rbp
retn
mov r14, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_43611
jmp short loc_43620
mov r14, rax
loc_43611:
lea rdi, [rsp+arg_30]
jmp short loc_43628
jmp short loc_43631
jmp short loc_43631
jmp short loc_43620
jmp short loc_43631
loc_43620:
mov r14, rax
lea rdi, [rsp+arg_8]; void *
loc_43628:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_43634
jmp short $+2
loc_43631:
mov r14, rax
loc_43634:
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
|
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<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>>>::exception_message(
_QWORD *a1,
long long a2,
unsigned int a3,
long long a4)
{
_BYTE *v7; // rdi
char v9; // [rsp+Fh] [rbp-69h] BYREF
_BYTE v10[32]; // [rsp+10h] [rbp-68h] BYREF
long long v11; // [rsp+30h] [rbp-48h] BYREF
_QWORD v12[8]; // [rsp+38h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(a1, (long long)"syntax error ");
if ( *(_QWORD *)(a4 + 8) )
{
LOBYTE(v12[0]) = 32;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>(
v10,
"while parsing ",
a4,
v12);
std::string::append(a1, v10);
std::string::~string(v10);
}
std::string::append(a1, "- ");
if ( *(_DWORD *)(a2 + 32) == 14 )
{
v11 = *(_QWORD *)(a2 + 152);
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_token_string(
(long long)v12,
a2 + 40);
v9 = 39;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
v10,
&v11,
"; last read: '",
v12,
&v9);
std::string::append(a1, v10);
std::string::~string(v10);
v7 = v12;
}
else
{
v12[0] = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name)();
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(v10, "unexpected ");
std::string::append(a1, v10);
v7 = v10;
}
std::string::~string(v7);
if ( a3 )
{
v12[0] = nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(a3);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(v10, "; expected ");
std::string::append(a1, v10);
std::string::~string(v10);
}
return a1;
}
|
exception_message:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV R15,RCX
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[0x1b447c]
LEA RDX,[RSP + 0x10]
CALL 0x001291dc
CMP qword ptr [R15 + 0x8],0x0
JZ 0x00143508
LEA RCX,[RSP + 0x38]
MOV byte ptr [RCX],0x20
LAB_001434dd:
LEA RSI,[0x1b448a]
LEA RDI,[RSP + 0x10]
MOV RDX,R15
CALL 0x00148453
LAB_001434f1:
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00125430
LEA RDI,[RSP + 0x10]
CALL 0x001254d8
LAB_00143508:
LEA RSI,[0x1b4499]
MOV RDI,RBX
CALL 0x001253f0
MOV EDI,dword ptr [R14 + 0x20]
CMP EDI,0xe
JNZ 0x0014357f
MOV RAX,qword ptr [R14 + 0x98]
ADD R14,0x28
MOV qword ptr [RSP + 0x30],RAX
LAB_00143530:
LEA RDI,[RSP + 0x38]
MOV RSI,R14
CALL 0x001432ca
LEA R8,[RSP + 0xf]
MOV byte ptr [R8],0x27
LAB_00143546:
LEA RDX,[0x1b449c]
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x30]
LEA RCX,[RSP + 0x38]
CALL 0x001484c3
LAB_00143561:
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00125430
LEA RDI,[RSP + 0x10]
CALL 0x001254d8
LEA RDI,[RSP + 0x38]
JMP 0x001435af
LAB_0014357f:
CALL 0x0014859a
LEA RDX,[RSP + 0x38]
MOV qword ptr [RDX],RAX
LAB_0014358c:
LEA RSI,[0x1b44ab]
LEA RDI,[RSP + 0x10]
CALL 0x0014853b
LAB_0014359d:
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00125430
LEA RDI,[RSP + 0x10]
LAB_001435af:
CALL 0x001254d8
TEST EBP,EBP
JZ 0x001435ef
MOV EDI,EBP
CALL 0x0014859a
LEA RDX,[RSP + 0x38]
MOV qword ptr [RDX],RAX
LAB_001435c7:
LEA RSI,[0x1b44b7]
LEA RDI,[RSP + 0x10]
CALL 0x0014853b
LAB_001435d8:
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00125430
LAB_001435e5:
LEA RDI,[RSP + 0x10]
CALL 0x001254d8
LAB_001435ef:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<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 > >
>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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> >::token_type, std::__cxx11::string const&) */
string * nlohmann::json_abi_v3_11_3::detail::
parser<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>>>
::exception_message(string *param_1,long param_2,int param_3,string *param_4)
{
string *this;
char local_69;
allocator local_68 [32];
char *local_48;
char *local_40 [4];
std::__cxx11::string::string<std::allocator<char>>(param_1,"syntax error ",local_68);
if (*(long *)(param_4 + 8) != 0) {
local_40[0] = (char *)CONCAT71(local_40[0]._1_7_,0x20);
/* try { // try from 001434dd to 001434f0 has its CatchHandler @ 0014362f */
concat<std::__cxx11::string,char_const(&)[15],std::__cxx11::string_const&,char>
((detail *)local_68,"while parsing ",param_4,(char *)local_40);
/* try { // try from 001434f1 to 001434fd has its CatchHandler @ 00143620 */
std::__cxx11::string::append(param_1);
std::__cxx11::string::~string((string *)local_68);
}
/* try { // try from 00143508 to 00143516 has its CatchHandler @ 00143631 */
std::__cxx11::string::append((char *)param_1);
if (*(int *)(param_2 + 0x20) == 0xe) {
local_48 = *(char **)(param_2 + 0x98);
/* try { // try from 00143530 to 0014353c has its CatchHandler @ 0014361a */
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>>>
::get_token_string();
local_69 = '\'';
/* try { // try from 00143546 to 00143560 has its CatchHandler @ 0014360e */
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>
((detail *)local_68,&local_48,"; last read: \'",(string *)local_40,&local_69);
/* try { // try from 00143561 to 0014356d has its CatchHandler @ 001435fd */
std::__cxx11::string::append(param_1);
std::__cxx11::string::~string((string *)local_68);
this = (string *)local_40;
}
else {
local_40[0] = (char *)lexer_base<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>>
::token_type_name();
/* try { // try from 0014358c to 0014359c has its CatchHandler @ 00143618 */
concat<std::__cxx11::string,char_const(&)[12],char_const*>
((detail *)local_68,"unexpected ",local_40);
/* try { // try from 0014359d to 001435a9 has its CatchHandler @ 0014360c */
std::__cxx11::string::append(param_1);
this = (string *)local_68;
}
std::__cxx11::string::~string(this);
if (param_3 != 0) {
local_40[0] = (char *)lexer_base<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>>
::token_type_name(param_3);
/* try { // try from 001435c7 to 001435d7 has its CatchHandler @ 0014361e */
concat<std::__cxx11::string,char_const(&)[12],char_const*>
((detail *)local_68,"; expected ",local_40);
/* try { // try from 001435d8 to 001435e4 has its CatchHandler @ 0014361c */
std::__cxx11::string::append(param_1);
std::__cxx11::string::~string((string *)local_68);
}
return param_1;
}
|
|
8,534 |
nlohmann::json_abi_v3_11_3::detail::parser<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>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json.hpp
|
std::string exception_message(const token_type expected, const std::string& context)
{
std::string error_msg = "syntax error ";
if (!context.empty())
{
error_msg += concat("while parsing ", context, ' ');
}
error_msg += "- ";
if (last_token == token_type::parse_error)
{
error_msg += concat(m_lexer.get_error_message(), "; last read: '",
m_lexer.get_token_string(), '\'');
}
else
{
error_msg += concat("unexpected ", lexer_t::token_type_name(last_token));
}
if (expected != token_type::uninitialized)
{
error_msg += concat("; expected ", lexer_t::token_type_name(expected));
}
return error_msg;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<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>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x91a4f(%rip), %rsi # 0xf047a
leaq 0x91a55(%rip), %rdx # 0xf0487
callq 0x261e8
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x5eabe
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
addq $0xf, %rsi
leaq 0x8(%rsp), %rdi
callq 0x1bff0
leaq 0x91a1d(%rip), %rsi # 0xf0488
leaq 0x8(%rsp), %rdi
callq 0x1c3e0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1b2b0
leaq 0x8(%rsp), %rdi
movl $0x20, %esi
callq 0x1b880
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1b2b0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5eabe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba60
leaq 0x919d2(%rip), %rsi # 0xf0497
movq %rbx, %rdi
callq 0x1c3e0
movl 0x20(%r14), %edi
cmpl $0xe, %edi
jne 0x5eb61
movq 0x98(%r14), %rax
addq $0x28, %r14
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x5e748
leaq 0x2f(%rsp), %r8
movb $0x27, (%r8)
leaq 0x91993(%rip), %rdx # 0xf049a
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x38(%rsp), %rcx
callq 0x64cfc
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1b2b0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5eb48
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba60
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ebdb
movq 0x48(%rsp), %rsi
jmp 0x5ebd3
callq 0x64dbe
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rax, %rdi
callq 0x1b440
leaq 0xb(%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1bff0
leaq 0x9190e(%rip), %rsi # 0xf04a9
leaq 0x8(%rsp), %rdi
callq 0x1c3e0
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1c3e0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1b2b0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ebdb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba60
testl %ebp, %ebp
je 0x5ec5b
movl %ebp, %edi
callq 0x64dbe
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rax, %rdi
callq 0x1b440
leaq 0xb(%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1bff0
leaq 0x9189a(%rip), %rsi # 0xf04b5
leaq 0x8(%rsp), %rdi
callq 0x1c3e0
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1c3e0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1b2b0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ec5b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba60
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5ecb4
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ec92
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba60
jmp 0x5ec92
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ecdd
movq 0x48(%rsp), %rsi
jmp 0x5ecd5
jmp 0x5ecad
jmp 0x5ecb4
jmp 0x5ecc3
movq %rax, %r14
jmp 0x5ecdd
jmp 0x5ecb4
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x5ecd0
jmp 0x5ecdd
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5ecdd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1ba60
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x5ecf1
movq (%r12), %rsi
incq %rsi
callq 0x1ba60
movq %r14, %rdi
callq 0x1c250
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rcx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
lea rsi, aSyntaxError; "syntax error "
lea rdx, aSyntaxError+0Dh; ""
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 rsi, [r15+8]
test rsi, rsi
jz short loc_5EABE
lea r13, [rsp+88h+var_70]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
add rsi, 0Fh
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aWhileParsing; "while parsing "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rdi, [rsp+88h+var_80]
mov esi, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r13
jz short loc_5EABE
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5EABE:
lea rsi, asc_F0497; "- "
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov edi, [r14+20h]
cmp edi, 0Eh
jnz loc_5EB61
mov rax, [r14+98h]
add r14, 28h ; '('
mov [rsp+88h+var_58], rax
lea rdi, [rsp+88h+var_50]
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; 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_token_string(void)
lea r8, [rsp+88h+var_59]
mov byte ptr [r8], 27h ; '''
lea rdx, aLastRead; "; last read: '"
lea rdi, [rsp+88h+var_80]
lea rsi, [rsp+88h+var_58]
lea rcx, [rsp+88h+var_50]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rax, [rsp+88h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5EB48
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5EB48:
lea rax, [rsp+88h+var_40]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_5EBDB
mov rsi, [rsp+88h+var_40]
jmp short loc_5EBD3
loc_5EB61:
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type)
mov r14, rax
lea r15, [rsp+88h+var_70]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rdi, rax
call _strlen
lea rsi, [rax+0Bh]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aUnexpected; "unexpected "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r15
jz short loc_5EBDB
mov rsi, [rsp+88h+var_70]
loc_5EBD3:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5EBDB:
test ebp, ebp
jz short loc_5EC5B
mov edi, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type)
mov r14, rax
lea r15, [rsp+88h+var_70]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rdi, rax
call _strlen
lea rsi, [rax+0Bh]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aExpected; "; expected "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r15
jz short loc_5EC5B
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5EC5B:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_5ECB4
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5EC92
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5EC92
mov r14, rax
loc_5EC92:
lea rax, [rsp+arg_40]
mov rdi, [rax-10h]
cmp rdi, rax
jz short loc_5ECDD
mov rsi, [rsp+arg_40]
jmp short loc_5ECD5
jmp short loc_5ECAD
jmp short loc_5ECB4
jmp short loc_5ECC3
loc_5ECAD:
mov r14, rax
jmp short loc_5ECDD
jmp short $+2
loc_5ECB4:
mov r14, rax
mov rdi, [rsp+arg_0]
cmp rdi, r15
jnz short loc_5ECD0
jmp short loc_5ECDD
loc_5ECC3:
mov r14, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_5ECDD
loc_5ECD0:
mov rsi, [rsp+arg_10]
loc_5ECD5:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5ECDD:
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_5ECF1
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5ECF1:
mov rdi, r14
call __Unwind_Resume
|
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<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>>>::exception_message(
_QWORD *a1,
long long a2,
unsigned int a3,
_QWORD *a4)
{
long long v8; // rsi
void *v9; // rdi
long long v10; // rsi
const char *v11; // r14
long long v12; // rax
const char *v13; // r14
long long v14; // rax
void *v16; // [rsp+8h] [rbp-80h] BYREF
long long v17; // [rsp+10h] [rbp-78h]
_QWORD v18[2]; // [rsp+18h] [rbp-70h] BYREF
char v19; // [rsp+2Fh] [rbp-59h] BYREF
long long v20; // [rsp+30h] [rbp-58h] BYREF
_QWORD v21[2]; // [rsp+38h] [rbp-50h] BYREF
long long v22; // [rsp+48h] [rbp-40h] BYREF
*a1 = a1 + 2;
std::string::_M_construct<char const*>((long long)a1, "syntax error ", (long long)"");
v8 = a4[1];
if ( v8 )
{
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
std::string::reserve(&v16, v8 + 15);
std::string::append(&v16, "while parsing ");
std::string::_M_append(&v16, *a4, a4[1]);
std::string::push_back(&v16, 32LL);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
}
std::string::append(a1, "- ");
if ( *(_DWORD *)(a2 + 32) == 14 )
{
v20 = *(_QWORD *)(a2 + 152);
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_token_string(
(long long)v21,
a2 + 40);
v19 = 39;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
&v16,
&v20,
"; last read: '",
v21,
&v19);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
v9 = (void *)v21[0];
if ( (long long *)v21[0] != &v22 )
{
v10 = v22;
LABEL_11:
operator delete(v9, v10 + 1);
}
}
else
{
v11 = (const char *)((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name)();
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
v12 = strlen(v11);
std::string::reserve(&v16, v12 + 11);
std::string::append(&v16, "unexpected ");
std::string::append(&v16, v11);
std::string::_M_append(a1, v16, v17);
v9 = v16;
if ( v16 != v18 )
{
v10 = v18[0];
goto LABEL_11;
}
}
if ( a3 )
{
v13 = (const char *)nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(a3);
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
v14 = strlen(v13);
std::string::reserve(&v16, v14 + 11);
std::string::append(&v16, "; expected ");
std::string::append(&v16, v13);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
}
return a1;
}
|
exception_message:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RCX
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
LEA RSI,[0x1f047a]
LEA RDX,[0x1f0487]
CALL 0x001261e8
MOV RSI,qword ptr [R15 + 0x8]
TEST RSI,RSI
JZ 0x0015eabe
LEA R13,[RSP + 0x18]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
ADD RSI,0xf
LAB_0015ea5a:
LEA RDI,[RSP + 0x8]
CALL 0x0011bff0
LEA RSI,[0x1f0488]
LEA RDI,[RSP + 0x8]
CALL 0x0011c3e0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x0011b2b0
LEA RDI,[RSP + 0x8]
MOV ESI,0x20
CALL 0x0011b880
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0015ea9f:
MOV RDI,RBX
CALL 0x0011b2b0
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x0015eabe
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011ba60
LAB_0015eabe:
LEA RSI,[0x1f0497]
MOV RDI,RBX
CALL 0x0011c3e0
MOV EDI,dword ptr [R14 + 0x20]
CMP EDI,0xe
JNZ 0x0015eb61
MOV RAX,qword ptr [R14 + 0x98]
ADD R14,0x28
MOV qword ptr [RSP + 0x30],RAX
LAB_0015eaea:
LEA RDI,[RSP + 0x38]
MOV RSI,R14
CALL 0x0015e748
LEA R8,[RSP + 0x2f]
MOV byte ptr [R8],0x27
LAB_0015eb00:
LEA RDX,[0x1f049a]
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x30]
LEA RCX,[RSP + 0x38]
CALL 0x00164cfc
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0015eb25:
MOV RDI,RBX
CALL 0x0011b2b0
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015eb48
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011ba60
LAB_0015eb48:
LEA RAX,[RSP + 0x48]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015ebdb
MOV RSI,qword ptr [RSP + 0x48]
JMP 0x0015ebd3
LAB_0015eb61:
CALL 0x00164dbe
MOV R14,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
MOV RDI,RAX
CALL 0x0011b440
LEA RSI,[RAX + 0xb]
LAB_0015eb8a:
LEA RDI,[RSP + 0x8]
CALL 0x0011bff0
LEA RSI,[0x1f04a9]
LEA RDI,[RSP + 0x8]
CALL 0x0011c3e0
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x0011c3e0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0015ebbc:
MOV RDI,RBX
CALL 0x0011b2b0
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x0015ebdb
MOV RSI,qword ptr [RSP + 0x18]
LAB_0015ebd3:
INC RSI
CALL 0x0011ba60
LAB_0015ebdb:
TEST EBP,EBP
JZ 0x0015ec5b
MOV EDI,EBP
CALL 0x00164dbe
MOV R14,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
MOV RDI,RAX
CALL 0x0011b440
LEA RSI,[RAX + 0xb]
LAB_0015ec0a:
LEA RDI,[RSP + 0x8]
CALL 0x0011bff0
LEA RSI,[0x1f04b5]
LEA RDI,[RSP + 0x8]
CALL 0x0011c3e0
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x0011c3e0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0015ec3c:
MOV RDI,RBX
CALL 0x0011b2b0
LAB_0015ec44:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x0015ec5b
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011ba60
LAB_0015ec5b:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<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 > >
>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<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> >::token_type, std::__cxx11::string const&) */
long * nlohmann::json_abi_v3_11_3::detail::
parser<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>>>
::exception_message(long *param_1,long param_2,int param_3,ulong *param_4)
{
char *pcVar1;
long *local_80;
int8 local_78;
int1 local_70;
int7 uStack_6f;
int1 local_59;
int8 local_58;
long *local_50 [2];
long local_40 [2];
*param_1 = (long)(param_1 + 2);
std::__cxx11::string::_M_construct<char_const*>(param_1,"syntax error ","");
if (param_4[1] != 0) {
local_78 = 0;
local_70 = 0;
/* try { // try from 0015ea5a to 0015ea94 has its CatchHandler @ 0015ecc3 */
local_80 = (long *)&local_70;
std::__cxx11::string::reserve((ulong)&local_80);
std::__cxx11::string::append((char *)&local_80);
std::__cxx11::string::_M_append((char *)&local_80,*param_4);
std::__cxx11::string::push_back((char)&local_80);
/* try { // try from 0015ea9f to 0015eaa6 has its CatchHandler @ 0015ecab */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 != (long *)&local_70) {
operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1);
}
}
/* try { // try from 0015eabe to 0015eacc has its CatchHandler @ 0015ecad */
std::__cxx11::string::append((char *)param_1);
if (*(int *)(param_2 + 0x20) == 0xe) {
local_58 = *(int8 *)(param_2 + 0x98);
/* try { // try from 0015eaea to 0015eaf6 has its CatchHandler @ 0015eca7 */
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>>>
::get_token_string();
local_59 = 0x27;
/* try { // try from 0015eb00 to 0015eb1a has its CatchHandler @ 0015ec8f */
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>
((char **)&local_80,(char *)&local_58,(string *)"; last read: \'",(char *)local_50);
/* try { // try from 0015eb25 to 0015eb2c has its CatchHandler @ 0015ec6f */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 != (long *)&local_70) {
operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1);
}
if (local_50[0] == local_40) goto LAB_0015ebdb;
}
else {
pcVar1 = (char *)lexer_base<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>>
::token_type_name();
local_78 = 0;
local_70 = 0;
local_80 = (long *)&local_70;
strlen(pcVar1);
/* try { // try from 0015eb8a to 0015ebb1 has its CatchHandler @ 0015ecb2 */
std::__cxx11::string::reserve((ulong)&local_80);
std::__cxx11::string::append((char *)&local_80);
std::__cxx11::string::append((char *)&local_80);
/* try { // try from 0015ebbc to 0015ebc3 has its CatchHandler @ 0015ec6d */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 == (long *)&local_70) goto LAB_0015ebdb;
local_40[0] = CONCAT71(uStack_6f,local_70);
local_50[0] = local_80;
}
operator_delete(local_50[0],local_40[0] + 1);
LAB_0015ebdb:
if (param_3 != 0) {
pcVar1 = (char *)lexer_base<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>>
::token_type_name(param_3);
local_78 = 0;
local_70 = 0;
local_80 = (long *)&local_70;
strlen(pcVar1);
/* try { // try from 0015ec0a to 0015ec31 has its CatchHandler @ 0015ecb4 */
std::__cxx11::string::reserve((ulong)&local_80);
std::__cxx11::string::append((char *)&local_80);
std::__cxx11::string::append((char *)&local_80);
/* try { // try from 0015ec3c to 0015ec43 has its CatchHandler @ 0015eca9 */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 != (long *)&local_70) {
operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1);
}
}
return param_1;
}
|
|
8,535 |
ggml_flash_attn_back
|
ngxson[P]ggml-easy/ggml/src/ggml.c
|
struct ggml_tensor * ggml_flash_attn_back(
struct ggml_context * ctx,
struct ggml_tensor * q,
struct ggml_tensor * k,
struct ggml_tensor * v,
struct ggml_tensor * d,
bool masked) {
GGML_ABORT("TODO: adapt to ggml_flash_attn_ext() changes");
GGML_ASSERT(ggml_can_mul_mat(k, q));
// TODO: check if vT can be multiplied by (k*qT)
// d shape [D,N,ne2,ne3]
// q shape [D,N,ne2,ne3]
// k shape [D,M,kvne2,ne3]
// v shape [M,D,kvne2,ne3]
const int64_t D = q->ne[0];
const int64_t N = q->ne[1];
const int64_t M = k->ne[1];
const int64_t ne2 = q->ne[2];
const int64_t ne3 = q->ne[3];
const int64_t kvne2 = k->ne[2];
GGML_ASSERT(k->ne[0] == D);
GGML_ASSERT(v->ne[0] == M);
GGML_ASSERT(v->ne[1] == D);
GGML_ASSERT(d->ne[0] == D);
GGML_ASSERT(d->ne[1] == N);
GGML_ASSERT(k->ne[2] == kvne2);
GGML_ASSERT(k->ne[3] == ne3);
GGML_ASSERT(v->ne[2] == kvne2);
GGML_ASSERT(v->ne[3] == ne3);
GGML_ASSERT(d->ne[2] == ne2);
GGML_ASSERT(d->ne[3] == ne3);
GGML_ASSERT(ne2 % kvne2 == 0);
// store gradients of q, k and v as continuous tensors concatenated in result.
// note: v and gradv are actually transposed, i.e. v->ne[0] != D.
const int64_t elem_q = ggml_nelements(q);
const int64_t elem_k = ggml_nelements(k);
const int64_t elem_v = ggml_nelements(v);
enum ggml_type result_type = GGML_TYPE_F32;
GGML_ASSERT(ggml_blck_size(result_type) == 1);
const size_t tsize = ggml_type_size(result_type);
const size_t offs_q = 0;
const size_t offs_k = offs_q + GGML_PAD(elem_q * tsize, GGML_MEM_ALIGN);
const size_t offs_v = offs_k + GGML_PAD(elem_k * tsize, GGML_MEM_ALIGN);
const size_t end = offs_v + GGML_PAD(elem_v * tsize, GGML_MEM_ALIGN);
const size_t nelements = (end + tsize - 1)/tsize;
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, nelements);
int32_t masked_i = masked ? 1 : 0;
ggml_set_op_params(result, &masked_i, sizeof(masked_i));
result->op = GGML_OP_FLASH_ATTN_BACK;
result->src[0] = q;
result->src[1] = k;
result->src[2] = v;
result->src[3] = d;
return result;
}
|
O0
|
c
|
ggml_flash_attn_back:
subq $0xc8, %rsp
movb %r9b, %al
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa8(%rsp)
movq %r8, 0xa0(%rsp)
andb $0x1, %al
movb %al, 0x9f(%rsp)
leaq 0x62665(%rip), %rdi # 0xb45b7
movl $0x1171, %esi # imm = 0x1171
leaq 0x62fcd(%rip), %rdx # 0xb4f2b
movb $0x0, %al
callq 0x46780
nopw %cs:(%rax,%rax)
|
ggml_flash_attn_back:
sub rsp, 0C8h
mov al, r9b
mov [rsp+0C8h+var_8], rdi
mov [rsp+0C8h+var_10], rsi
mov [rsp+0C8h+var_18], rdx
mov [rsp+0C8h+var_20], rcx
mov [rsp+0C8h+var_28], r8
and al, 1
mov [rsp+0C8h+var_29], al
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1171h
lea rdx, aTodoAdaptToGgm; "TODO: adapt to ggml_flash_attn_ext() ch"...
mov al, 0
call _ggml_abort
|
void __noreturn ggml_flash_attn_back()
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",
4465,
(long long)"TODO: adapt to ggml_flash_attn_ext() changes");
}
|
ggml_flash_attn_back:
SUB RSP,0xc8
MOV AL,R9B
MOV qword ptr [RSP + 0xc0],RDI
MOV qword ptr [RSP + 0xb8],RSI
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa8],RCX
MOV qword ptr [RSP + 0xa0],R8
AND AL,0x1
MOV byte ptr [RSP + 0x9f],AL
LEA RDI,[0x1b45b7]
MOV ESI,0x1171
LEA RDX,[0x1b4f2b]
MOV AL,0x0
CALL 0x00146780
NOP dword ptr CS:[RAX + RAX*0x1]
|
long ggml_flash_attn_back(void)
{
int8 uVar1;
ulong uVar2;
long lVar3;
long lVar4;
long extraout_RDX;
long lVar5;
char *pcVar6;
pcVar6 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
lVar5 = 0x1171;
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1171,
"TODO: adapt to ggml_flash_attn_ext() changes");
uVar2 = ggml_is_3d(lVar5);
if ((uVar2 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x11b5,
"GGML_ASSERT(%s) failed","ggml_is_3d(sx)");
}
uVar2 = ggml_is_matrix(extraout_RDX);
if ((uVar2 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x11b6,
"GGML_ASSERT(%s) failed","ggml_is_matrix(c)");
}
lVar4 = *(long *)(extraout_RDX + 0x18);
lVar3 = (*(long *)(lVar5 + 0x10) - *(long *)(extraout_RDX + 0x10)) + 1;
uVar1 = *(int8 *)(lVar5 + 0x20);
if (*(long *)(lVar5 + 0x10) != *(long *)(extraout_RDX + 0x10) + -1 + lVar3) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x11bf,
"GGML_ASSERT(%s) failed","sx->ne[0] == d_conv - 1 + n_t");
}
if (*(long *)(lVar5 + 0x18) != lVar4) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x11c0,
"GGML_ASSERT(%s) failed","sx->ne[1] == d_inner");
}
if (lVar3 < 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x11c1,
"GGML_ASSERT(%s) failed","n_t >= 0");
}
lVar4 = ggml_new_tensor_3d(pcVar6,0,lVar4,lVar3,uVar1);
*(int4 *)(lVar4 + 0x50) = 0x41;
*(long *)(lVar4 + 0x98) = lVar5;
*(long *)(lVar4 + 0xa0) = extraout_RDX;
return lVar4;
}
|
|
8,536 |
testing::internal::PrintTo(unsigned __int128, std::ostream*)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-printers.cc
|
void PrintTo(__uint128_t v, ::std::ostream* os) {
if (v == 0) {
*os << "0";
return;
}
// Buffer large enough for ceil(log10(2^128))==39 and the null terminator
char buf[40];
char* p = buf + sizeof(buf);
// Some configurations have a __uint128_t, but no support for built in
// division. Do manual long division instead.
uint64_t high = static_cast<uint64_t>(v >> 64);
uint64_t low = static_cast<uint64_t>(v);
*--p = 0;
while (high != 0 || low != 0) {
uint64_t high_mod = high % 10;
high = high / 10;
// This is the long division algorithm specialized for a divisor of 10 and
// only two elements.
// Notable values:
// 2^64 / 10 == 1844674407370955161
// 2^64 % 10 == 6
const uint64_t carry = 6 * high_mod + low % 10;
low = low / 10 + high_mod * 1844674407370955161 + carry / 10;
char digit = static_cast<char>(carry % 10);
*--p = static_cast<char>('0' + digit);
}
*os << p;
}
|
O0
|
cpp
|
testing::internal::PrintTo(unsigned __int128, std::ostream*):
subq $0x98, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x88(%rsp)
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rcx
movq %rcx, 0x78(%rsp)
movq %rax, 0x70(%rsp)
movq %rdx, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
orq %rcx, %rax
jne 0xba31d
jmp 0xba307
movq 0x68(%rsp), %rdi
leaq 0x5a223(%rip), %rsi # 0x114536
callq 0x146a0
jmp 0xba452
leaq 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, 0x38(%rsp)
movb $0x0, -0x1(%rax)
movb $0x1, %al
cmpq $0x0, 0x30(%rsp)
movb %al, 0x16(%rsp)
jne 0xba36b
cmpq $0x0, 0x28(%rsp)
setne %al
movb %al, 0x16(%rsp)
movb 0x16(%rsp), %al
testb $0x1, %al
jne 0xba378
jmp 0xba443
movq 0x30(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, 0x30(%rsp)
imulq $0x6, 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq (%rsp), %rax
addq %rdx, %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movabsq $0x1999999999999999, %rcx # imm = 0x1999999999999999
imulq 0x20(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movb %dl, %al
movb %al, 0x17(%rsp)
movsbl 0x17(%rsp), %eax
addl $0x30, %eax
movb %al, %cl
movq 0x38(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x38(%rsp)
movb %cl, -0x1(%rax)
jmp 0xba350
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x146a0
addq $0x98, %rsp
retq
nopw (%rax,%rax)
|
_ZN7testing8internal7PrintToEoPSo:
sub rsp, 98h
mov [rsp+98h+var_18], rdi
mov [rsp+98h+var_10], rsi
mov rax, [rsp+98h+var_18]
mov rcx, [rsp+98h+var_10]
mov [rsp+98h+var_20], rcx
mov [rsp+98h+var_28], rax
mov [rsp+98h+var_30], rdx
mov rax, [rsp+98h+var_28]
mov rcx, [rsp+98h+var_20]
or rax, rcx
jnz short loc_BA31D
jmp short $+2
loc_BA307:
mov rdi, [rsp+98h+var_30]
lea rsi, aStaticCastSize+77h; "0"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp loc_BA452
loc_BA31D:
lea rax, [rsp+98h+var_30]
mov [rsp+98h+var_60], rax
mov rax, [rsp+98h+var_20]
mov [rsp+98h+var_68], rax
mov rax, [rsp+98h+var_28]
mov [rsp+98h+var_70], rax
mov rax, [rsp+98h+var_60]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rsp+98h+var_60], rcx
mov byte ptr [rax-1], 0
loc_BA350:
mov al, 1
cmp [rsp+98h+var_68], 0
mov [rsp+98h+var_82], al
jnz short loc_BA36B
cmp [rsp+98h+var_70], 0
setnz al
mov [rsp+98h+var_82], al
loc_BA36B:
mov al, [rsp+98h+var_82]
test al, 1
jnz short loc_BA378
jmp loc_BA443
loc_BA378:
mov rax, [rsp+98h+var_68]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rsp+98h+var_78], rdx
mov rax, [rsp+98h+var_68]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rsp+98h+var_68], rax
imul rax, [rsp+98h+var_78], 6
mov [rsp+98h+var_98], rax
mov rax, [rsp+98h+var_70]
mov ecx, 0Ah
xor edx, edx
div rcx
mov rax, [rsp+98h+var_98]
add rax, rdx
mov [rsp+98h+var_80], rax
mov rax, [rsp+98h+var_70]
mov ecx, 0Ah
xor edx, edx
div rcx
mov rcx, 1999999999999999h
imul rcx, [rsp+98h+var_78]
add rax, rcx
mov [rsp+98h+var_90], rax
mov rax, [rsp+98h+var_80]
mov ecx, 0Ah
xor edx, edx
div rcx
mov rcx, rax
mov rax, [rsp+98h+var_90]
add rax, rcx
mov [rsp+98h+var_70], rax
mov rax, [rsp+98h+var_80]
mov ecx, 0Ah
xor edx, edx
div rcx
mov al, dl
mov [rsp+98h+var_81], al
movsx eax, [rsp+98h+var_81]
add eax, 30h ; '0'
mov cl, al
mov rax, [rsp+98h+var_60]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+98h+var_60], rdx
mov [rax-1], cl
jmp loc_BA350
loc_BA443:
mov rdi, [rsp+98h+var_30]
mov rsi, [rsp+98h+var_60]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
loc_BA452:
add rsp, 98h
retn
|
long long testing::internal::PrintTo(__int128 this, long long a2, std::ostream *a3)
{
char *v4; // rax
long long v5; // [rsp+0h] [rbp-98h] BYREF
unsigned long long v6; // [rsp+8h] [rbp-90h]
bool v7; // [rsp+16h] [rbp-82h]
char v8; // [rsp+17h] [rbp-81h]
unsigned long long v9; // [rsp+18h] [rbp-80h]
unsigned long long v10; // [rsp+20h] [rbp-78h]
__int128 v11; // [rsp+28h] [rbp-70h]
char *v12; // [rsp+38h] [rbp-60h]
char v13; // [rsp+67h] [rbp-31h]
long long v14; // [rsp+68h] [rbp-30h]
__int128 v15; // [rsp+70h] [rbp-28h]
__int128 v16; // [rsp+80h] [rbp-18h]
v16 = this;
v15 = this;
v14 = a2;
if ( this == 0 )
return std::operator<<<std::char_traits<char>>(v14, "0");
v11 = v15;
v12 = (char *)&v5 + 103;
v13 = 0;
while ( 1 )
{
v7 = 1;
if ( !*((_QWORD *)&v11 + 1) )
v7 = (_QWORD)v11 != 0LL;
if ( !v7 )
break;
v10 = *((_QWORD *)&v11 + 1) % 0xAuLL;
*((_QWORD *)&v11 + 1) /= 0xAuLL;
v5 = 6 * v10;
v9 = (unsigned long long)v11 % 0xA + 6 * v10;
v6 = 0x1999999999999999LL * v10 + (unsigned long long)v11 / 0xA;
*(_QWORD *)&v11 = v9 / 0xA + v6;
v8 = v9 % 0xA;
v4 = v12--;
*(v4 - 1) = v8 + 48;
}
return std::operator<<<std::char_traits<char>>(v14, v12);
}
|
PrintTo:
SUB RSP,0x98
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x88],RSI
MOV RAX,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x78],RCX
MOV qword ptr [RSP + 0x70],RAX
MOV qword ptr [RSP + 0x68],RDX
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x78]
OR RAX,RCX
JNZ 0x001ba31d
JMP 0x001ba307
LAB_001ba307:
MOV RDI,qword ptr [RSP + 0x68]
LEA RSI,[0x214536]
CALL 0x001146a0
JMP 0x001ba452
LAB_001ba31d:
LEA RAX,[RSP + 0x68]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RSP + 0x38],RCX
MOV byte ptr [RAX + -0x1],0x0
LAB_001ba350:
MOV AL,0x1
CMP qword ptr [RSP + 0x30],0x0
MOV byte ptr [RSP + 0x16],AL
JNZ 0x001ba36b
CMP qword ptr [RSP + 0x28],0x0
SETNZ AL
MOV byte ptr [RSP + 0x16],AL
LAB_001ba36b:
MOV AL,byte ptr [RSP + 0x16]
TEST AL,0x1
JNZ 0x001ba378
JMP 0x001ba443
LAB_001ba378:
MOV RAX,qword ptr [RSP + 0x30]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RSP + 0x30],RAX
IMUL RAX,qword ptr [RSP + 0x20],0x6
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV RAX,qword ptr [RSP]
ADD RAX,RDX
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV RCX,0x1999999999999999
IMUL RCX,qword ptr [RSP + 0x20]
ADD RAX,RCX
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,RCX
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV AL,DL
MOV byte ptr [RSP + 0x17],AL
MOVSX EAX,byte ptr [RSP + 0x17]
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RSP + 0x38],RDX
MOV byte ptr [RAX + -0x1],CL
JMP 0x001ba350
LAB_001ba443:
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x001146a0
LAB_001ba452:
ADD RSP,0x98
RET
|
/* testing::internal::PrintTo(unsigned __int128, std::ostream*) */
void __thiscall testing::internal::PrintTo(internal *this,uint param_1,ostream *param_2)
{
int1 auVar1 [16];
ulong uVar2;
ulong uVar3;
int4 in_register_00000034;
internal *local_70;
ulong local_68;
char *local_60;
char local_32 [2];
ostream *local_30;
internal *local_28;
ulong local_20;
internal *local_18;
ulong local_10;
local_20 = CONCAT44(in_register_00000034,param_1);
local_30 = param_2;
local_28 = this;
local_18 = this;
local_10 = local_20;
if (this == (internal *)0x0 && local_20 == 0) {
std::operator<<(param_2,"0");
}
else {
local_32[1] = 0;
local_68 = local_20;
local_60 = local_32 + 1;
for (local_70 = this; local_68 != 0 || local_70 != (internal *)0x0;
local_70 = (internal *)((ulong)local_70 / 10 + uVar3 * 0x1999999999999999 + uVar2 / 10)) {
uVar3 = local_68 % 10;
local_68 = local_68 / 10;
uVar2 = uVar3 * 6 + (ulong)local_70 % 10;
auVar1._8_8_ = 0;
auVar1._0_8_ = uVar2;
local_60[-1] = SUB161(auVar1 % ZEXT816(10),0) + '0';
local_60 = local_60 + -1;
}
std::operator<<(param_2,local_60);
}
return;
}
|
|
8,537 |
intx::internal::add(unsigned long*, unsigned long const*, unsigned long const*, int)
|
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
|
inline bool add(uint64_t s[], const uint64_t x[], const uint64_t y[], int len) noexcept
{
// OPT: Add MinLen template parameter and unroll first loop iterations.
INTX_REQUIRE(len >= 2);
bool carry = false;
for (int i = 0; i < len; ++i)
std::tie(s[i], carry) = addc(x[i], y[i], carry);
return carry;
}
|
O2
|
cpp
|
intx::internal::add(unsigned long*, unsigned long const*, unsigned long const*, int):
cmpl $0x2, %ecx
jl 0x39a1d
movl %ecx, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
cmpq %r8, %rcx
je 0x39a1a
movq (%rsi,%r8,8), %r9
movzbl %al, %eax
btl $0x0, %eax
adcq (%rdx,%r8,8), %r9
setb %al
movq %r9, (%rdi,%r8,8)
incq %r8
jmp 0x399fa
andb $0x1, %al
retq
pushq %rax
leaq 0x3d5a2(%rip), %rdi # 0x76fc7
leaq 0x3d4f2(%rip), %rsi # 0x76f1e
leaq 0x3d731(%rip), %rcx # 0x77164
movl $0x670, %edx # imm = 0x670
callq 0x22110
|
_ZN4intx8internal3addEPmPKmS3_i:
cmp ecx, 2
jl short loc_39A1D
mov ecx, ecx
xor r8d, r8d
xor eax, eax
loc_399FA:
cmp rcx, r8
jz short loc_39A1A
mov r9, [rsi+r8*8]
movzx eax, al
bt eax, 0
adc r9, [rdx+r8*8]
setb al
mov [rdi+r8*8], r9
inc r8
jmp short loc_399FA
loc_39A1A:
and al, 1
retn
loc_39A1D:
push rax
lea rdi, aLen2; "len >= 2"
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolIntxIntern; "bool intx::internal::add(uint64_t *, co"...
mov edx, 670h
call ___assert_fail
|
char intx::internal::add(
intx::internal *this,
unsigned long long *a2,
const unsigned long long *a3,
const unsigned long long *a4)
{
long long v4; // r8
char v5; // al
unsigned long long v6; // r9
bool v7; // cf
unsigned long long v8; // r9
if ( (int)a4 < 2 )
__assert_fail(
"len >= 2",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp",
1648LL,
"bool intx::internal::add(uint64_t *, const uint64_t *, const uint64_t *, int)");
v4 = 0LL;
v5 = 0;
while ( (unsigned int)a4 != v4 )
{
v6 = a2[v4];
v7 = __CFADD__((v5 & 1) != 0, v6);
v8 = ((v5 & 1) != 0) + v6;
v5 = v7 | __CFADD__(a3[v4], v8);
*((_QWORD *)this + v4) = a3[v4] + v8;
++v4;
}
return v5 & 1;
}
|
add:
CMP ECX,0x2
JL 0x00139a1d
MOV ECX,ECX
XOR R8D,R8D
XOR EAX,EAX
LAB_001399fa:
CMP RCX,R8
JZ 0x00139a1a
MOV R9,qword ptr [RSI + R8*0x8]
MOVZX EAX,AL
BT EAX,0x0
ADC R9,qword ptr [RDX + R8*0x8]
SETC AL
MOV qword ptr [RDI + R8*0x8],R9
INC R8
JMP 0x001399fa
LAB_00139a1a:
AND AL,0x1
RET
LAB_00139a1d:
PUSH RAX
LEA RDI,[0x176fc7]
LEA RSI,[0x176f1e]
LEA RCX,[0x177164]
MOV EDX,0x670
CALL 0x00122110
|
/* intx::internal::add(unsigned long*, unsigned long const*, unsigned long const*, int) */
bool intx::internal::add(ulong *param_1,ulong *param_2,ulong *param_3,int param_4)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
bool bVar4;
if (1 < param_4) {
bVar4 = false;
for (uVar3 = 0; (uint)param_4 != uVar3; uVar3 = uVar3 + 1) {
uVar1 = (ulong)bVar4;
uVar2 = param_2[uVar3] + param_3[uVar3];
bVar4 = CARRY8(param_2[uVar3],param_3[uVar3]) || CARRY8(uVar2,uVar1);
param_1[uVar3] = uVar2 + uVar1;
}
return bVar4;
}
/* WARNING: Subroutine does not return */
__assert_fail("len >= 2",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp"
,0x670,
"bool intx::internal::add(uint64_t *, const uint64_t *, const uint64_t *, int)");
}
|
|
8,538 |
apply_shift
|
eloqsql/strings/ctype-uca.c
|
static my_bool
apply_shift(MY_CHARSET_LOADER *loader,
MY_COLL_RULES *rules, MY_COLL_RULE *r, int level,
uint16 *to, size_t nweights)
{
/* Apply level difference. */
if (nweights)
{
to[nweights - 1]+= r->diff[level];
if (r->before_level == 1) /* Apply "&[before primary]" */
{
if (nweights >= 2)
{
to[nweights - 2]--; /* Reset before */
if (rules->shift_after_method == my_shift_method_expand)
{
/*
Special case. Don't let characters shifted after X
and before next(X) intermix to each other.
For example:
"[shift-after-method expand] &0 < a &[before primary]1 < A".
I.e. we reorder 'a' after '0', and then 'A' before '1'.
'a' must be sorted before 'A'.
Note, there are no real collations in CLDR which shift
after and before two neighbourgh characters. We need this
just in case. Reserving 4096 (0x1000) weights for such
cases is perfectly enough.
*/
to[nweights - 1]+= 0x1000; /* W3-TODO: const may vary on levels 2,3*/
}
}
else
{
my_snprintf(loader->error, sizeof(loader->error),
"Can't reset before "
"a primary ignorable character U+%04lX", r->base[0]);
return TRUE;
}
}
}
else
{
/* Shift to an ignorable character, e.g.: & \u0000 < \u0001 */
DBUG_ASSERT(to[0] == 0);
to[0]= r->diff[level];
}
return FALSE;
}
|
O0
|
c
|
apply_shift:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x52e5a
movq -0x20(%rbp), %rax
movslq -0x24(%rbp), %rcx
movl 0x80(%rax,%rcx,4), %esi
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq $0x1, %rcx
movzwl (%rax,%rcx,2), %edx
addl %esi, %edx
movw %dx, (%rax,%rcx,2)
movq -0x20(%rbp), %rax
cmpq $0x1, 0x90(%rax)
jne 0x52e58
cmpq $0x2, -0x38(%rbp)
jb 0x52e32
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq $0x2, %rcx
movw (%rax,%rcx,2), %dx
addw $-0x1, %dx
movw %dx, (%rax,%rcx,2)
movq -0x18(%rbp), %rax
cmpl $0x1, 0x30(%rax)
jne 0x52e30
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subq $0x1, %rcx
movzwl (%rax,%rcx,2), %edx
addl $0x1000, %edx # imm = 0x1000
movw %dx, (%rax,%rcx,2)
jmp 0x52e56
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movl $0x80, %esi
leaq 0x2b1f1(%rip), %rdx # 0x7e03a
movb $0x0, %al
callq 0x789e0
movb $0x1, -0x1(%rbp)
jmp 0x52e7b
jmp 0x52e58
jmp 0x52e77
jmp 0x52e5c
jmp 0x52e5e
movq -0x20(%rbp), %rax
movslq -0x24(%rbp), %rcx
movl 0x80(%rax,%rcx,4), %eax
movw %ax, %cx
movq -0x30(%rbp), %rax
movw %cx, (%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
apply_shift:
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_24], ecx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
cmp [rbp+var_38], 0
jz loc_52E5A
mov rax, [rbp+var_20]
movsxd rcx, [rbp+var_24]
mov esi, [rax+rcx*4+80h]
mov rax, [rbp+var_30]
mov rcx, [rbp+var_38]
sub rcx, 1
movzx edx, word ptr [rax+rcx*2]
add edx, esi
mov [rax+rcx*2], dx
mov rax, [rbp+var_20]
cmp qword ptr [rax+90h], 1
jnz short loc_52E58
cmp [rbp+var_38], 2
jb short loc_52E32
mov rax, [rbp+var_30]
mov rcx, [rbp+var_38]
sub rcx, 2
mov dx, [rax+rcx*2]
add dx, 0FFFFh
mov [rax+rcx*2], dx
mov rax, [rbp+var_18]
cmp dword ptr [rax+30h], 1
jnz short loc_52E30
mov rax, [rbp+var_30]
mov rcx, [rbp+var_38]
sub rcx, 1
movzx edx, word ptr [rax+rcx*2]
add edx, 1000h
mov [rax+rcx*2], dx
loc_52E30:
jmp short loc_52E56
loc_52E32:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_20]
mov rcx, [rax]
mov esi, 80h
lea rdx, aCanTResetBefor; "Can't reset before a primary ignorable "...
mov al, 0
call my_snprintf
mov [rbp+var_1], 1
jmp short loc_52E7B
loc_52E56:
jmp short $+2
loc_52E58:
jmp short loc_52E77
loc_52E5A:
jmp short $+2
loc_52E5C:
jmp short $+2
loc_52E5E:
mov rax, [rbp+var_20]
movsxd rcx, [rbp+var_24]
mov eax, [rax+rcx*4+80h]
mov cx, ax
mov rax, [rbp+var_30]
mov [rax], cx
loc_52E77:
mov [rbp+var_1], 0
loc_52E7B:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
|
char apply_shift(int a1, long long a2, _QWORD *a3, int a4, _WORD *a5, unsigned long long a6)
{
if ( !a6 )
{
*a5 = *((_DWORD *)a3 + a4 + 32);
return 0;
}
a5[a6 - 1] += *((_DWORD *)a3 + a4 + 32);
if ( a3[18] != 1LL )
return 0;
if ( a6 >= 2 )
{
--a5[a6 - 2];
if ( *(_DWORD *)(a2 + 48) == 1 )
a5[a6 - 1] += 4096;
return 0;
}
my_snprintf(a1, 128, (unsigned int)"Can't reset before a primary ignorable character U+%04lX", *a3, (_DWORD)a5, a6);
return 1;
}
|
apply_shift:
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 dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
CMP qword ptr [RBP + -0x38],0x0
JZ 0x00152e5a
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,dword ptr [RBP + -0x24]
MOV ESI,dword ptr [RAX + RCX*0x4 + 0x80]
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x38]
SUB RCX,0x1
MOVZX EDX,word ptr [RAX + RCX*0x2]
ADD EDX,ESI
MOV word ptr [RAX + RCX*0x2],DX
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x90],0x1
JNZ 0x00152e58
CMP qword ptr [RBP + -0x38],0x2
JC 0x00152e32
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x38]
SUB RCX,0x2
MOV DX,word ptr [RAX + RCX*0x2]
ADD DX,-0x1
MOV word ptr [RAX + RCX*0x2],DX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x30],0x1
JNZ 0x00152e30
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x38]
SUB RCX,0x1
MOVZX EDX,word ptr [RAX + RCX*0x2]
ADD EDX,0x1000
MOV word ptr [RAX + RCX*0x2],DX
LAB_00152e30:
JMP 0x00152e56
LAB_00152e32:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX]
MOV ESI,0x80
LEA RDX,[0x17e03a]
MOV AL,0x0
CALL 0x001789e0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00152e7b
LAB_00152e56:
JMP 0x00152e58
LAB_00152e58:
JMP 0x00152e77
LAB_00152e5a:
JMP 0x00152e5c
LAB_00152e5c:
JMP 0x00152e5e
LAB_00152e5e:
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,dword ptr [RBP + -0x24]
MOV EAX,dword ptr [RAX + RCX*0x4 + 0x80]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x30]
MOV word ptr [RAX],CX
LAB_00152e77:
MOV byte ptr [RBP + -0x1],0x0
LAB_00152e7b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1
apply_shift(int8 param_1,long param_2,int8 *param_3,int param_4,int2 *param_5,
ulong param_6)
{
if (param_6 == 0) {
*param_5 = (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80);
}
else {
param_5[param_6 - 1] =
param_5[param_6 - 1] + (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80);
if (param_3[0x12] == 1) {
if (param_6 < 2) {
my_snprintf(param_1,0x80,"Can\'t reset before a primary ignorable character U+%04lX",
*param_3);
return 1;
}
param_5[param_6 - 2] = param_5[param_6 - 2] + -1;
if (*(int *)(param_2 + 0x30) == 1) {
param_5[param_6 - 1] = param_5[param_6 - 1] + 0x1000;
}
}
}
return 0;
}
|
|
8,539 |
plutovg_path_create
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c
|
plutovg_path_t* plutovg_path_create(void)
{
plutovg_path_t* path = malloc(sizeof(plutovg_path_t));
path->ref_count = 1;
path->num_points = 0;
path->num_contours = 0;
path->num_curves = 0;
path->start_point = PLUTOVG_EMPTY_POINT;
plutovg_array_init(path->elements);
return path;
}
|
O0
|
c
|
plutovg_path_create:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x28, %edi
callq 0x31c0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x8(%rbp), %rax
xorps %xmm0, %xmm0
movss %xmm0, -0x10(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xc(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x24(%rax)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
plutovg_path_create:
push rbp
mov rbp, rsp
sub rsp, 10h
mov edi, 28h ; '('
call _malloc
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
mov dword ptr [rax], 1
mov rax, [rbp+var_8]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+8], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+0Ch], 0
mov rax, [rbp+var_8]
xorps xmm0, xmm0
movss dword ptr [rbp+var_10], xmm0
xorps xmm0, xmm0
movss dword ptr [rbp+var_10+4], xmm0
mov rcx, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_8]
mov qword ptr [rax+18h], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+20h], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+24h], 0
mov rax, [rbp+var_8]
add rsp, 10h
pop rbp
retn
|
long long plutovg_path_create()
{
long long result; // rax
result = malloc(40LL);
*(_DWORD *)result = 1;
*(_DWORD *)(result + 4) = 0;
*(_DWORD *)(result + 8) = 0;
*(_DWORD *)(result + 12) = 0;
*(_QWORD *)(result + 16) = 0LL;
*(_QWORD *)(result + 24) = 0LL;
*(_DWORD *)(result + 32) = 0;
*(_DWORD *)(result + 36) = 0;
return result;
}
|
plutovg_path_create:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV EDI,0x28
CALL 0x001031c0
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xc],0x0
MOV RAX,qword ptr [RBP + -0x8]
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0x10],XMM0
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0xc],XMM0
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x24],0x0
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x10
POP RBP
RET
|
int4 * plutovg_path_create(void)
{
int4 *puVar1;
puVar1 = (int4 *)malloc(0x28);
*puVar1 = 1;
puVar1[1] = 0;
puVar1[2] = 0;
puVar1[3] = 0;
*(int8 *)(puVar1 + 4) = 0;
*(int8 *)(puVar1 + 6) = 0;
puVar1[8] = 0;
puVar1[9] = 0;
return puVar1;
}
|
|
8,540 |
plutovg_path_create
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c
|
plutovg_path_t* plutovg_path_create(void)
{
plutovg_path_t* path = malloc(sizeof(plutovg_path_t));
path->ref_count = 1;
path->num_points = 0;
path->num_contours = 0;
path->num_curves = 0;
path->start_point = PLUTOVG_EMPTY_POINT;
plutovg_array_init(path->elements);
return path;
}
|
O1
|
c
|
plutovg_path_create:
pushq %rax
movl $0x28, %edi
callq 0x31b0
movl $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax)
movups %xmm0, 0x14(%rax)
movl $0x0, 0x24(%rax)
popq %rcx
retq
|
plutovg_path_create:
push rax
mov edi, 28h ; '('
call _malloc
mov dword ptr [rax], 1
xorps xmm0, xmm0
movups xmmword ptr [rax+4], xmm0
movups xmmword ptr [rax+14h], xmm0
mov dword ptr [rax+24h], 0
pop rcx
retn
|
long long plutovg_path_create()
{
long long result; // rax
result = malloc(40LL);
*(_DWORD *)result = 1;
*(_OWORD *)(result + 4) = 0LL;
*(_OWORD *)(result + 20) = 0LL;
*(_DWORD *)(result + 36) = 0;
return result;
}
|
plutovg_path_create:
PUSH RAX
MOV EDI,0x28
CALL 0x001031b0
MOV dword ptr [RAX],0x1
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x4],XMM0
MOVUPS xmmword ptr [RAX + 0x14],XMM0
MOV dword ptr [RAX + 0x24],0x0
POP RCX
RET
|
void plutovg_path_create(void)
{
int4 *puVar1;
puVar1 = (int4 *)malloc(0x28);
*puVar1 = 1;
*(int8 *)(puVar1 + 1) = 0;
*(int8 *)(puVar1 + 3) = 0;
*(int8 *)(puVar1 + 5) = 0;
*(int8 *)(puVar1 + 7) = 0;
puVar1[9] = 0;
return;
}
|
|
8,541 |
minja::Parser::parseVarNames[abi:cxx11]()
|
monkey531[P]llama/common/minja.hpp
|
std::vector<std::string> parseVarNames() {
static std::regex varnames_regex(R"(((?:\w+)(?:[\r\n\s]*,[\r\n\s]*(?:\w+))*)[\r\n\s]*)");
std::vector<std::string> group;
if ((group = consumeTokenGroups(varnames_regex)).empty()) throw std::runtime_error("Expected variable names");
std::vector<std::string> varnames;
std::istringstream iss(group[1]);
std::string varname;
while (std::getline(iss, varname, ',')) {
varnames.push_back(strip(varname));
}
return varnames;
}
|
O1
|
cpp
|
minja::Parser::parseVarNames[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp # imm = 0x1E8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8a6c0(%rip), %rax # 0xef178
movb (%rax), %al
testb %al, %al
je 0x64c38
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0x8a67f(%rip), %rdx # 0xef158
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x6443a
leaq 0x60(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movaps (%rsp), %xmm0
movq 0x10(%rsp), %rax
leaq 0x20(%rsp), %r14
movaps (%r14), %xmm1
movaps %xmm1, (%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r14)
movq $0x0, 0x10(%r14)
callq 0x2ac94
movq (%rsp), %r15
movq 0x8(%rsp), %r12
movq %r14, %rdi
callq 0x2ac94
cmpq %r12, %r15
je 0x64c8f
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq (%rsp), %rsi
addq $0x20, %rsi
leaq 0x60(%rsp), %rdi
movl $0x8, %edx
callq 0x19b40
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x50(%rsp), %rbp
leaq 0x60(%rsp), %r14
leaq 0x20(%rsp), %r15
leaq 0x40(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
movl $0x2c, %edx
callq 0x19cc0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x64be6
movq %r12, %rdi
movq %r15, %rsi
callq 0x5873d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x489d0
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x64b99
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x196d0
jmp 0x64b99
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x64bfd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x196d0
movq 0x89364(%rip), %rsi # 0xedf68
leaq 0x60(%rsp), %rdi
callq 0x199c0
leaq 0xd8(%rsp), %rdi
callq 0x19220
movq %rsp, %rdi
callq 0x2ac94
movq %rbx, %rax
addq $0x1e8, %rsp # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8a539(%rip), %rdi # 0xef178
callq 0x19c50
testl %eax, %eax
je 0x64ac2
leaq 0x8a505(%rip), %rdi # 0xef158
leaq 0x594e6(%rip), %rsi # 0xbe140
movl $0x10, %edx
callq 0x231dc
leaq -0x41a27(%rip), %rdi # 0x23244
leaq 0x8a4e6(%rip), %rsi # 0xef158
leaq 0x89a5f(%rip), %rdx # 0xee6d8
callq 0x19600
leaq 0x8a4f3(%rip), %rdi # 0xef178
callq 0x19460
jmp 0x64ac2
movl $0x10, %edi
callq 0x19370
movq %rax, %rbx
leaq 0x594cf(%rip), %rsi # 0xbe172
movq %rax, %rdi
callq 0x19280
movq 0x8933e(%rip), %rsi # 0xedff0
movq 0x892b7(%rip), %rdx # 0xedf70
movq %rbx, %rdi
callq 0x19ba0
movq %rax, %r14
leaq 0x8a4ad(%rip), %rdi # 0xef178
callq 0x19450
jmp 0x64d51
jmp 0x64ce6
movq %rax, %r14
movq %rbx, %rdi
callq 0x19510
jmp 0x64d49
movq %rax, %r14
jmp 0x64d41
movq %rax, %r14
jmp 0x64d49
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x64d0c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x196d0
jmp 0x64d0c
jmp 0x64d09
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x64d23
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x196d0
movq 0x8923e(%rip), %rsi # 0xedf68
leaq 0x60(%rsp), %rdi
callq 0x199c0
leaq 0xd8(%rsp), %rdi
callq 0x19220
movq %rbx, %rdi
callq 0x2ac94
movq %rsp, %rdi
callq 0x2ac94
movq %r14, %rdi
callq 0x19c00
nop
|
_ZN5minja6Parser13parseVarNamesB5cxx11Ev:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1E8h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; `guard variable for'minja::Parser::parseVarNames(void)::varnames_regex
mov al, [rax]
test al, al
jz loc_64C38
loc_64AC2:
xorps xmm0, xmm0
movaps xmmword ptr [rsp+218h+var_218], xmm0; int
mov qword ptr [rsp+218h+var_208], 0; int
lea rdx, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; int
lea rdi, [rsp+218h+var_1F8]; int
mov rsi, r14; int
mov ecx, 1; int
call _ZN5minja6Parser18consumeTokenGroupsERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeTokenGroups(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+218h+var_1B8]
xorps xmm0, xmm0
movaps xmmword ptr [rdi], xmm0
movaps xmm0, xmmword ptr [rsp+218h+var_218]
mov rax, qword ptr [rsp+218h+var_208]
lea r14, [rsp+218h+var_1F8]
movaps xmm1, xmmword ptr [r14]
movaps xmmword ptr [rsp+218h+var_218], xmm1
mov rcx, [r14+10h]
mov qword ptr [rsp+218h+var_208], rcx
mov [rdi+10h], rax
movaps xmm1, xmmword ptr [rdi]
movaps xmmword ptr [rdi], xmm0
movaps xmmword ptr [r14], xmm1
mov qword ptr [r14+10h], 0
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov r15, qword ptr [rsp+218h+var_218]
mov r12, qword ptr [rsp+218h+var_218+8]
mov rdi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
cmp r15, r12
jz loc_64C8F
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
mov rsi, qword ptr [rsp+218h+var_218]
add rsi, 20h ; ' '
lea rdi, [rsp+218h+var_1B8]
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
lea r13, [rsp+218h+var_1E8]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
lea rbp, [rsp+218h+var_1C8]
lea r14, [rsp+218h+var_1B8]
lea r15, [rsp+218h+var_1F8]
lea r12, [rsp+218h+var_1D8]
loc_64B99:
mov rdi, r14
mov rsi, r15
mov edx, 2Ch ; ','
call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char)
mov rcx, [rax]
mov rcx, [rcx-18h]
test byte ptr [rax+rcx+20h], 5
jnz short loc_64BE6
mov rdi, r12
mov rsi, r15
call _ZN5minjaL5stripERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::strip(std::string const&)
mov rdi, rbx
mov rsi, r12
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+218h+var_1D8]; void *
cmp rdi, rbp
jz short loc_64B99
mov rsi, [rsp+218h+var_1C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_64B99
loc_64BE6:
mov rdi, [rsp+218h+var_1F8]; void *
cmp rdi, r13
jz short loc_64BFD
mov rsi, [rsp+218h+var_1E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64BFD:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+218h+var_140]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rsp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, rbx
add rsp, 1E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_64C38:
lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_64AC2
lea rdi, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; minja::Parser::parseVarNames(void)::varnames_regex
lea rsi, aWRNSRNSWRNS; "((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?"...
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_64AC2
loc_64C8F:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aExpectedVariab; "Expected variable names"
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, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_64D51
jmp short loc_64CE6
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_64D49
mov r14, rax
jmp short loc_64D41
loc_64CE6:
mov r14, rax
jmp short loc_64D49
mov r14, rax
mov rdi, [rsp+218h+var_1D8]; void *
cmp rdi, rbp
jz short loc_64D0C
mov rsi, [rsp+218h+var_1C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_64D0C
jmp short $+2
loc_64D09:
mov r14, rax
loc_64D0C:
mov rdi, [rsp+218h+var_1F8]; void *
cmp rdi, r13
jz short loc_64D23
mov rsi, [rsp+218h+var_1E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64D23:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+218h+var_140]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_64D41:
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_64D49:
mov rdi, rsp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_64D51:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Parser::parseVarNames[abi:cxx11](long long a1, long long a2)
{
_QWORD *v2; // rax
std::runtime_error *exception; // rbx
int v5[4]; // [rsp+0h] [rbp-218h] BYREF
int v6[2]; // [rsp+10h] [rbp-208h]
__int128 v7; // [rsp+20h] [rbp-1F8h] BYREF
_QWORD v8[2]; // [rsp+30h] [rbp-1E8h] BYREF
void *v9[2]; // [rsp+40h] [rbp-1D8h] BYREF
long long v10; // [rsp+50h] [rbp-1C8h] BYREF
__int128 v11; // [rsp+60h] [rbp-1B8h] BYREF
long long v12; // [rsp+70h] [rbp-1A8h]
_BYTE v13[320]; // [rsp+D8h] [rbp-140h] BYREF
if ( !(_BYTE)`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11],
(long long)"((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?:\\w+))*)[\\r\\n\\s]*",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]);
}
minja::Parser::consumeTokenGroups(
(long long)&v7,
a2,
(long long)&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11],
1u);
*(_OWORD *)v5 = v7;
*(_QWORD *)v6 = v8[0];
v12 = 0LL;
v11 = 0LL;
v7 = 0LL;
v8[0] = 0LL;
std::vector<std::string>::~vector(&v11);
std::vector<std::string>::~vector(&v7);
if ( *(_QWORD *)v5 == *(_QWORD *)&v5[2] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected variable names");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
std::istringstream::basic_istringstream(&v11, *(_QWORD *)v5 + 32LL, 8LL);
*(_QWORD *)&v7 = v8;
*((_QWORD *)&v7 + 1) = 0LL;
LOBYTE(v8[0]) = 0;
while ( 1 )
{
v2 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(&v11, &v7, 44LL);
if ( (*((_BYTE *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) & 5) != 0 )
break;
minja::strip(v9, (long long)&v7);
std::vector<std::string>::emplace_back<std::string>(a1, (long long)v9);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
}
if ( (_QWORD *)v7 != v8 )
operator delete((void *)v7, v8[0] + 1LL);
std::istringstream::~istringstream(&v11, &`VTT for'std::istringstream);
std::ios_base::~ios_base((std::ios_base *)v13);
std::vector<std::string>::~vector(v5);
return a1;
}
|
parseVarNames[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1e8
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x1ef178]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00164c38
LAB_00164ac2:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
LAB_00164ad2:
LEA RDX,[0x1ef158]
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV ECX,0x1
CALL 0x0016443a
LEA RDI,[RSP + 0x60]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RDI],XMM0
MOVAPS XMM0,xmmword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x10]
LEA R14,[RSP + 0x20]
MOVAPS XMM1,xmmword ptr [R14]
MOVAPS xmmword ptr [RSP],XMM1
MOV RCX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RDI + 0x10],RAX
MOVAPS XMM1,xmmword ptr [RDI]
MOVAPS xmmword ptr [RDI],XMM0
MOVAPS xmmword ptr [R14],XMM1
MOV qword ptr [R14 + 0x10],0x0
CALL 0x0012ac94
MOV R15,qword ptr [RSP]
MOV R12,qword ptr [RSP + 0x8]
MOV RDI,R14
CALL 0x0012ac94
CMP R15,R12
JZ 0x00164c8f
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
MOV RSI,qword ptr [RSP]
ADD RSI,0x20
LAB_00164b60:
LEA RDI,[RSP + 0x60]
MOV EDX,0x8
CALL 0x00119b40
LEA R13,[RSP + 0x30]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
LEA RBP,[RSP + 0x50]
LEA R14,[RSP + 0x60]
LEA R15,[RSP + 0x20]
LEA R12,[RSP + 0x40]
LAB_00164b99:
MOV RDI,R14
MOV RSI,R15
MOV EDX,0x2c
CALL 0x00119cc0
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JNZ 0x00164be6
LAB_00164bb7:
MOV RDI,R12
MOV RSI,R15
CALL 0x0015873d
LAB_00164bc2:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001489d0
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,RBP
JZ 0x00164b99
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x001196d0
JMP 0x00164b99
LAB_00164be6:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R13
JZ 0x00164bfd
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001196d0
LAB_00164bfd:
MOV RSI,qword ptr [0x001edf68]
LEA RDI,[RSP + 0x60]
CALL 0x001199c0
LEA RDI,[RSP + 0xd8]
CALL 0x00119220
MOV RDI,RSP
CALL 0x0012ac94
MOV RAX,RBX
ADD RSP,0x1e8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00164c38:
LEA RDI,[0x1ef178]
CALL 0x00119c50
TEST EAX,EAX
JZ 0x00164ac2
LAB_00164c4c:
LEA RDI,[0x1ef158]
LEA RSI,[0x1be140]
MOV EDX,0x10
CALL 0x001231dc
LAB_00164c64:
LEA RDI,[0x123244]
LEA RSI,[0x1ef158]
LEA RDX,[0x1ee6d8]
CALL 0x00119600
LEA RDI,[0x1ef178]
CALL 0x00119460
JMP 0x00164ac2
LAB_00164c8f:
MOV EDI,0x10
CALL 0x00119370
MOV RBX,RAX
LAB_00164c9c:
LEA RSI,[0x1be172]
MOV RDI,RAX
CALL 0x00119280
LAB_00164cab:
MOV RSI,qword ptr [0x001edff0]
MOV RDX,qword ptr [0x001edf70]
MOV RDI,RBX
CALL 0x00119ba0
|
/* minja::Parser::parseVarNames[abi:cxx11]() */
void minja::Parser::parseVarNames_abi_cxx11_(void)
{
ulong *puVar1;
ulong *puVar2;
int iVar3;
istream *piVar4;
runtime_error *this;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *in_RDI;
ulong *local_218;
ulong *puStack_210;
ulong local_208;
ulong *local_1f8;
ulong *puStack_1f0;
ulong local_1e8 [2];
long *local_1d8 [2];
long local_1c8 [2];
int8 local_1b8;
int8 uStack_1b0;
int8 local_1a8;
ios_base local_140 [272];
if (parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_ == '\0') {
iVar3 = __cxa_guard_acquire(&parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_);
if (iVar3 != 0) {
/* try { // try from 00164c4c to 00164c63 has its CatchHandler @ 00164cc1 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_,
"((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?:\\w+))*)[\\r\\n\\s]*",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_);
}
}
local_218 = (ulong *)0x0;
puStack_210 = (ulong *)0x0;
local_208 = 0;
/* try { // try from 00164ad2 to 00164aea has its CatchHandler @ 00164ce6 */
consumeTokenGroups(&local_1f8);
local_1a8 = local_208;
uStack_1b0 = puStack_210;
local_1b8 = local_218;
local_218 = local_1f8;
puStack_210 = puStack_1f0;
local_208 = local_1e8[0];
local_1f8 = (ulong *)0x0;
puStack_1f0 = (ulong *)0x0;
local_1e8[0] = 0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_1b8);
puVar2 = puStack_210;
puVar1 = local_218;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_1f8);
if (puVar1 != puVar2) {
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
*(int8 *)(in_RDI + 0x10) = 0;
/* try { // try from 00164b60 to 00164b6e has its CatchHandler @ 00164ce1 */
std::__cxx11::istringstream::istringstream((istringstream *)&local_1b8,local_218 + 4,8);
puStack_1f0 = (ulong *)0x0;
local_1e8[0] = local_1e8[0] & 0xffffffffffffff00;
local_1f8 = local_1e8;
while( true ) {
/* try { // try from 00164b99 to 00164ba8 has its CatchHandler @ 00164d09 */
piVar4 = std::getline<char,std::char_traits<char>,std::allocator<char>>
((istream *)&local_1b8,(string *)&local_1f8,',');
if (((byte)piVar4[*(long *)(*(long *)piVar4 + -0x18) + 0x20] & 5) != 0) break;
/* try { // try from 00164bb7 to 00164bc1 has its CatchHandler @ 00164d07 */
strip((minja *)local_1d8,(string *)&local_1f8);
/* try { // try from 00164bc2 to 00164bcc has its CatchHandler @ 00164ceb */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>(in_RDI,(string *)local_1d8);
if (local_1d8[0] != local_1c8) {
operator_delete(local_1d8[0],local_1c8[0] + 1);
}
}
if (local_1f8 != local_1e8) {
operator_delete(local_1f8,local_1e8[0] + 1);
}
std::__cxx11::istringstream::~istringstream((istringstream *)&local_1b8);
std::ios_base::~ios_base(local_140);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_218);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00164c9c to 00164caa has its CatchHandler @ 00164cd4 */
std::runtime_error::runtime_error(this,"Expected variable names");
/* try { // try from 00164cab to 00164cc0 has its CatchHandler @ 00164cd2 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001edff0,PTR__runtime_error_001edf70);
}
|
|
8,542 |
ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>, std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>&)
|
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
|
void ScreenInteractive::HandleTask(Component component, Task& task) {
// clang-format off
std::visit([&](auto&& arg) {
using T = std::decay_t<decltype(arg)>;
// Handle Event.
if constexpr (std::is_same_v<T, Event>) {
if (arg.is_cursor_reporting()) {
cursor_x_ = arg.cursor_x();
cursor_y_ = arg.cursor_y();
return;
}
if (arg.is_mouse()) {
arg.mouse().x -= cursor_x_;
arg.mouse().y -= cursor_y_;
}
arg.screen_ = this;
component->OnEvent(arg);
frame_valid_ = false;
return;
}
// Handle callback
if constexpr (std::is_same_v<T, Closure>) {
arg();
return;
}
// Handle Animation
if constexpr (std::is_same_v<T, AnimationTask>) {
if (!animation_requested_) {
return;
}
animation_requested_ = false;
const animation::TimePoint now = animation::Clock::now();
const animation::Duration delta = now - previous_animation_time_;
previous_animation_time_ = now;
animation::Params params(delta);
component->OnAnimation(params);
frame_valid_ = false;
return;
}
},
task);
// clang-format on
}
|
O1
|
cpp
|
ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>, std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>&):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movsbq 0x40(%rdx), %rax
cmpq $-0x1, %rax
je 0x2f0cc
leaq 0x2a364(%rip), %rcx # 0x59420
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq *(%rcx,%rax,8)
addq $0x18, %rsp
retq
movl $0x10, %edi
callq 0xb1b0
leaq 0x2a053(%rip), %rcx # 0x59130
movq %rcx, (%rax)
leaq 0x10d94(%rip), %rcx # 0x3fe7b
movq %rcx, 0x8(%rax)
leaq 0x2a016(%rip), %rsi # 0x59108
movq 0x2aedf(%rip), %rdx # 0x59fd8
movq %rax, %rdi
callq 0xb740
nop
|
_ZN5ftxui17ScreenInteractive10HandleTaskESt10shared_ptrINS_13ComponentBaseEERSt7variantIJNS_5EventESt8functionIFvvEENS_13AnimationTaskEEE:
sub rsp, 18h
mov qword ptr [rsp+18h+var_10], rdi; int
mov qword ptr [rsp+18h+var_8], rsi; int
movsx rax, byte ptr [rdx+40h]
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_2F0CC
lea rcx, _ZNSt8__detail9__variant12__gen_vtableINS0_21__deduce_visit_resultIvEEOZN5ftxui17ScreenInteractive10HandleTaskESt10shared_ptrINS4_13ComponentBaseEERSt7variantIJNS4_5EventESt8functionIFvvEENS4_13AnimationTaskEEEE3$_0JSG_EE9_S_vtableE; int
lea rdi, [rsp+18h+var_10]; int
mov rsi, rdx; int
call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_21__deduce_visit_resultIvEEOZN5ftxui17ScreenInteractive10HandleTaskESt10shared_ptrINS4_13ComponentBaseEERSt7variantIJNS4_5EventESt8functionIFvvEENS4_13AnimationTaskEEEE3$_0JSG_EE9_S_vtableE - 59420h)[rcx+rax*8]; std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<void> (*)(ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>,std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask> &)::$_0 &&,std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask> &)>,std::integer_sequence<ulong,0ul>>::__visit_invoke(ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>,std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask> &)::$_0 &,std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask> &)
add rsp, 18h
retn
loc_2F0CC:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
lea rcx, off_59130
mov [rax], rcx
lea rcx, aStdVisitVarian; "std::visit: variant is valueless"
mov [rax+8], rcx
lea rsi, _ZTISt18bad_variant_access; lptinfo
mov rdx, cs:_ZNSt9exceptionD2Ev_ptr; void (*)(void *)
mov rdi, rax; void *
call ___cxa_throw
|
HandleTask:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV qword ptr [RSP + 0x10],RSI
MOVSX RAX,byte ptr [RDX + 0x40]
CMP RAX,-0x1
JZ 0x0012f0cc
LEA RCX,[0x159420]
LEA RDI,[RSP + 0x8]
MOV RSI,RDX
CALL qword ptr [RCX + RAX*0x8]
ADD RSP,0x18
RET
LAB_0012f0cc:
MOV EDI,0x10
CALL 0x0010b1b0
LEA RCX,[0x159130]
MOV qword ptr [RAX],RCX
LEA RCX,[0x13fe7b]
MOV qword ptr [RAX + 0x8],RCX
LEA RSI,[0x159108]
MOV RDX,qword ptr [0x00159fd8]
MOV RDI,RAX
CALL 0x0010b740
|
/* ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>,
std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>&) */
void __thiscall
ftxui::ScreenInteractive::HandleTask(ScreenInteractive *this,int8 param_2,long param_3)
{
int8 *puVar1;
ScreenInteractive *local_10;
int8 local_8;
local_10 = this;
local_8 = param_2;
if ((long)*(char *)(param_3 + 0x40) != -1) {
(**(code **)(std::__detail::__variant::
__gen_vtable<std::__detail::__variant::__deduce_visit_result<void>,ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>,std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>&)::$_0&&,std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>&>
::_S_vtable + (long)*(char *)(param_3 + 0x40) * 8))(&local_10,param_3);
return;
}
puVar1 = (int8 *)__cxa_allocate_exception(0x10);
*puVar1 = &PTR__exception_00159130;
puVar1[1] = "std::visit: variant is valueless";
/* WARNING: Subroutine does not return */
__cxa_throw(puVar1,&std::bad_variant_access::typeinfo,PTR__exception_00159fd8);
}
|
||
8,543 |
ma_bitmap_mark_file_changed
|
eloqsql/storage/maria/ma_bitmap.c
|
static inline void _ma_bitmap_mark_file_changed(MARIA_SHARE *share,
my_bool flush_translog)
{
/*
It's extremely unlikely that the following test is true as it
only happens once if the table has changed.
*/
if (unlikely(!share->global_changed &&
(share->state.changed & STATE_CHANGED)))
{
/* purecov: begin inspected */
/* unlock mutex as it can't be hold during _ma_mark_file_changed() */
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
/*
We have to flush the translog to ensure we have registered that the
table is open.
*/
if (flush_translog && share->now_transactional)
(void) translog_flush(share->state.logrec_file_id);
_ma_mark_file_changed_now(share);
mysql_mutex_lock(&share->bitmap.bitmap_lock);
/* purecov: end */
}
}
|
O0
|
c
|
ma_bitmap_mark_file_changed:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, 0x7df(%rcx)
movb %al, -0xa(%rbp)
jne 0x5e6ba
movq -0x8(%rbp), %rax
movl 0x170(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0xa(%rbp)
movb -0xa(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5e741
movq -0x8(%rbp), %rdi
addq $0xa10, %rdi # imm = 0xA10
addq $0x88, %rdi
callq 0x5e8c0
movsbl -0x9(%rbp), %eax
cmpl $0x0, %eax
je 0x5e715
movq -0x8(%rbp), %rax
movsbl 0x7e7(%rax), %eax
cmpl $0x0, %eax
je 0x5e715
movq -0x8(%rbp), %rax
movq 0x190(%rax), %rdi
callq 0x8e450
movq -0x8(%rbp), %rdi
callq 0x44100
movq -0x8(%rbp), %rdi
addq $0xa10, %rdi # imm = 0xA10
addq $0x88, %rdi
leaq 0xfc1a4(%rip), %rsi # 0x15a8db
movl $0x184, %edx # imm = 0x184
callq 0x5e610
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ma_bitmap_mark_file_changed:
push rbp
mov rbp, rsp
sub rsp, 10h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rcx, [rbp+var_8]
xor eax, eax
cmp byte ptr [rcx+7DFh], 0
mov [rbp+var_A], al
jnz short loc_5E6BA
mov rax, [rbp+var_8]
mov eax, [rax+170h]
and eax, 1
cmp eax, 0
setnz al
mov [rbp+var_A], al
loc_5E6BA:
mov al, [rbp+var_A]
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_5E741
mov rdi, [rbp+var_8]
add rdi, 0A10h
add rdi, 88h
call inline_mysql_mutex_unlock_7
movsx eax, [rbp+var_9]
cmp eax, 0
jz short loc_5E715
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax+7E7h]
cmp eax, 0
jz short loc_5E715
mov rax, [rbp+var_8]
mov rdi, [rax+190h]
call translog_flush
loc_5E715:
mov rdi, [rbp+var_8]
call _ma_mark_file_changed_now
mov rdi, [rbp+var_8]
add rdi, 0A10h
add rdi, 88h
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 184h
call inline_mysql_mutex_lock_7
loc_5E741:
add rsp, 10h
pop rbp
retn
|
long long ma_bitmap_mark_file_changed(long long a1, char a2)
{
long long result; // rax
bool v3; // [rsp+6h] [rbp-Ah]
v3 = 0;
if ( !*(_BYTE *)(a1 + 2015) )
v3 = (*(_DWORD *)(a1 + 368) & 1) != 0;
result = v3;
if ( v3 )
{
inline_mysql_mutex_unlock_7(a1 + 2712);
if ( a2 )
{
if ( *(_BYTE *)(a1 + 2023) )
translog_flush(*(_QWORD *)(a1 + 400));
}
ma_mark_file_changed_now(a1);
return inline_mysql_mutex_lock_7(
a1 + 2712,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x184u);
}
return result;
}
|
_ma_bitmap_mark_file_changed:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RCX,qword ptr [RBP + -0x8]
XOR EAX,EAX
CMP byte ptr [RCX + 0x7df],0x0
MOV byte ptr [RBP + -0xa],AL
JNZ 0x0015e6ba
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x170]
AND EAX,0x1
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0xa],AL
LAB_0015e6ba:
MOV AL,byte ptr [RBP + -0xa]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0015e741
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xa10
ADD RDI,0x88
CALL 0x0015e8c0
MOVSX EAX,byte ptr [RBP + -0x9]
CMP EAX,0x0
JZ 0x0015e715
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX + 0x7e7]
CMP EAX,0x0
JZ 0x0015e715
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x190]
CALL 0x0018e450
LAB_0015e715:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00144100
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xa10
ADD RDI,0x88
LEA RSI,[0x25a8db]
MOV EDX,0x184
CALL 0x0015e610
LAB_0015e741:
ADD RSP,0x10
POP RBP
RET
|
void _ma_bitmap_mark_file_changed(long param_1,char param_2)
{
bool bVar1;
bVar1 = false;
if (*(char *)(param_1 + 0x7df) == '\0') {
bVar1 = (*(uint *)(param_1 + 0x170) & 1) != 0;
}
if (bVar1) {
inline_mysql_mutex_unlock(param_1 + 0xa98);
if ((param_2 != '\0') && (*(char *)(param_1 + 0x7e7) != '\0')) {
translog_flush(*(int8 *)(param_1 + 400));
}
_ma_mark_file_changed_now(param_1);
inline_mysql_mutex_lock
(param_1 + 0xa98,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x184);
}
return;
}
|
|
8,544 |
ma_get_hash_keyval
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
uchar *ma_get_hash_keyval(const uchar *hash_entry,
unsigned int *length,
my_bool not_used __attribute__((unused)))
{
/* Hash entry has the following format:
Offset: 0 key (\0 terminated)
key_length + 1 value (\0 terminated)
*/
uchar *p= (uchar *)hash_entry;
size_t len= strlen((char *)p);
*length= (unsigned int)len;
return p;
}
|
O0
|
c
|
ma_get_hash_keyval:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x141a0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
|
ma_get_hash_keyval:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], al
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
call _strlen
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], ecx
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
|
long long ma_get_hash_keyval(long long a1, _DWORD *a2)
{
*a2 = strlen(a1);
return a1;
}
|
ma_get_hash_keyval:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001141a0
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
char * ma_get_hash_keyval(char *param_1,int4 *param_2)
{
size_t sVar1;
sVar1 = strlen(param_1);
*param_2 = (int)sVar1;
return param_1;
}
|
|
8,545 |
Bfree
|
eloqsql/strings/dtoa.c
|
static void Bfree(Bigint *v, Stack_alloc *alloc)
{
char *gptr= (char*) v; /* generic pointer */
if (gptr < alloc->begin || gptr >= alloc->end)
free(gptr);
else if (v->k <= Kmax)
{
/*
Maintain free lists only for stack objects: this way we don't
have to bother with freeing lists in the end of dtoa;
heap should not be used normally anyway.
*/
v->p.next= alloc->freelist[v->k];
alloc->freelist[v->k]= v;
}
}
|
O0
|
c
|
Bfree:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jb 0x83003
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jb 0x8300e
movq -0x18(%rbp), %rdi
callq 0x253b0
jmp 0x83047
movq -0x8(%rbp), %rax
cmpl $0xf, 0x8(%rax)
jg 0x83045
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq 0x18(%rax,%rcx,8), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq %rdx, 0x18(%rax,%rcx,8)
jmp 0x83047
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
Bfree:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jb short loc_83003
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jb short loc_8300E
loc_83003:
mov rdi, [rbp+var_18]
call _free
jmp short loc_83047
loc_8300E:
mov rax, [rbp+var_8]
cmp dword ptr [rax+8], 0Fh
jg short loc_83045
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+8]
mov rcx, [rax+rcx*8+18h]
mov rax, [rbp+var_8]
mov [rax], rcx
mov rdx, [rbp+var_8]
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+8]
mov [rax+rcx*8+18h], rdx
loc_83045:
jmp short $+2
loc_83047:
add rsp, 20h
pop rbp
retn
|
long long Bfree(unsigned long long a1, unsigned long long *a2)
{
long long result; // rax
if ( a1 < *a2 || a1 >= a2[2] )
return free(a1);
result = a1;
if ( *(int *)(a1 + 8) <= 15 )
{
*(_QWORD *)a1 = a2[*(int *)(a1 + 8) + 3];
result = (long long)a2;
a2[*(int *)(a1 + 8) + 3] = a1;
}
return result;
}
|
Bfree:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JC 0x00183003
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JC 0x0018300e
LAB_00183003:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001253b0
JMP 0x00183047
LAB_0018300e:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x8],0xf
JG 0x00183045
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x8]
MOV RCX,qword ptr [RAX + RCX*0x8 + 0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
MOV RDX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x8]
MOV qword ptr [RAX + RCX*0x8 + 0x18],RDX
LAB_00183045:
JMP 0x00183047
LAB_00183047:
ADD RSP,0x20
POP RBP
RET
|
void Bfree(ulong *param_1,ulong *param_2)
{
if ((param_1 < (ulong *)*param_2) || ((ulong *)param_2[2] <= param_1)) {
free(param_1);
}
else if ((int)param_1[1] < 0x10) {
*param_1 = param_2[(long)(int)param_1[1] + 3];
param_2[(long)(int)param_1[1] + 3] = (ulong)param_1;
}
return;
}
|
|
8,546 |
google::protobuf::SourceCodeInfo_Location::ByteSizeLong() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
size_t SourceCodeInfo_Location::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated int32 path = 1 [packed = true];
{
size_t data_size = ::_pbi::WireFormatLite::
Int32Size(this->_impl_.path_);
if (data_size > 0) {
total_size += 1 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._path_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated int32 span = 2 [packed = true];
{
size_t data_size = ::_pbi::WireFormatLite::
Int32Size(this->_impl_.span_);
if (data_size > 0) {
total_size += 1 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._span_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated string leading_detached_comments = 6;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.leading_detached_comments_.size());
for (int i = 0, n = _impl_.leading_detached_comments_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
_impl_.leading_detached_comments_.Get(i));
}
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
// optional string leading_comments = 3;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_leading_comments());
}
// optional string trailing_comments = 4;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_trailing_comments());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
|
O0
|
cpp
|
google::protobuf::SourceCodeInfo_Location::ByteSizeLong() const:
subq $0xa8, %rsp
movq %rdi, 0x60(%rsp)
movq 0x60(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq $0x0, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
addq $0x10, %rdi
addq $0x8, %rdi
callq 0x1ab390
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jbe 0x2d643b
movq 0x48(%rsp), %rax
movl %eax, %edi
callq 0x154860
addq $0x1, %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rdi
callq 0x15cfe0
movq 0x20(%rsp), %rcx
movl %eax, 0x44(%rsp)
addq $0x28, %rcx
movl 0x44(%rsp), %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
movl $0x0, 0x98(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x98(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x8ec90
movl %eax, 0x94(%rsp)
movl 0x98(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl 0x9c(%rsp), %ecx
movl %ecx, 0x90(%rsp)
subl $0x3, %eax
je 0x2d64d0
jmp 0x2d64b5
movl 0x1c(%rsp), %eax
subl $0x5, %eax
je 0x2d64e0
jmp 0x2d64c0
movq 0x10(%rsp), %rax
movl 0x90(%rsp), %ecx
movl %ecx, (%rax)
jmp 0x2d64ee
movq 0x10(%rsp), %rax
movl 0x90(%rsp), %ecx
movl %ecx, (%rax)
jmp 0x2d64ee
movq 0x10(%rsp), %rcx
movl 0x90(%rsp), %eax
xchgl %eax, (%rcx)
movq 0x20(%rsp), %rdi
movq 0x48(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
addq $0x10, %rdi
addq $0x20, %rdi
callq 0x1ab390
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jbe 0x2d6536
movq 0x38(%rsp), %rax
movl %eax, %edi
callq 0x154860
addq $0x1, %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x38(%rsp), %rdi
callq 0x15cfe0
movq 0x20(%rsp), %rcx
movl %eax, 0x34(%rsp)
addq $0x40, %rcx
movl 0x34(%rsp), %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
movl $0x0, 0x80(%rsp)
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movl 0x80(%rsp), %edi
movl $0xffff, %esi # imm = 0xFFFF
callq 0x8ec90
movl %eax, 0x7c(%rsp)
movl 0x80(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0x84(%rsp), %ecx
movl %ecx, 0x78(%rsp)
subl $0x3, %eax
je 0x2d65c0
jmp 0x2d65a9
movl 0xc(%rsp), %eax
subl $0x5, %eax
je 0x2d65cc
jmp 0x2d65b4
movq (%rsp), %rax
movl 0x78(%rsp), %ecx
movl %ecx, (%rax)
jmp 0x2d65d6
movq (%rsp), %rax
movl 0x78(%rsp), %ecx
movl %ecx, (%rax)
jmp 0x2d65d6
movq (%rsp), %rcx
movl 0x78(%rsp), %eax
xchgl %eax, (%rcx)
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
addq $0x10, %rdi
addq $0x38, %rdi
callq 0x192b00
movl %eax, %edi
callq 0x15d3c0
movq 0x20(%rsp), %rdi
shlq $0x0, %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movl $0x0, 0x30(%rsp)
addq $0x10, %rdi
addq $0x38, %rdi
callq 0x192b00
movl %eax, 0x2c(%rsp)
movl 0x30(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0x2d6669
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x38, %rdi
movl 0x30(%rsp), %esi
callq 0x192b10
movq %rax, %rdi
callq 0x1587c0
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x2d662a
movq 0x20(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x70(%rsp)
movl $0x0, 0x6c(%rsp)
movq 0x70(%rsp), %rax
movslq 0x6c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x2d66f6
movl 0x54(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2d66c8
movq 0x20(%rsp), %rdi
callq 0x28f430
movq %rax, %rdi
callq 0x1587c0
addq $0x1, %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movl 0x54(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2d66f4
movq 0x20(%rsp), %rdi
callq 0x28f460
movq %rax, %rdi
callq 0x1587c0
addq $0x1, %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
jmp 0x2d66f6
movq 0x20(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq %rdi, %rdx
addq $0x10, %rdx
addq $0x4, %rdx
callq 0x1dbd10
addq $0xa8, %rsp
retq
nopl (%rax,%rax)
|
_ZNK6google8protobuf23SourceCodeInfo_Location12ByteSizeLongEv:
sub rsp, 0A8h
mov [rsp+0A8h+var_48], rdi
mov rdi, [rsp+0A8h+var_48]
mov [rsp+0A8h+var_88], rdi
mov [rsp+0A8h+var_50], 0
mov [rsp+0A8h+var_54], 0
add rdi, 10h
add rdi, 8
call _ZN6google8protobuf8internal14WireFormatLite9Int32SizeERKNS0_13RepeatedFieldIiEE; google::protobuf::internal::WireFormatLite::Int32Size(google::protobuf::RepeatedField<int> const&)
mov [rsp+0A8h+var_60], rax
cmp [rsp+0A8h+var_60], 0
jbe short loc_2D643B
mov rax, [rsp+0A8h+var_60]
mov edi, eax; this
call _ZN6google8protobuf8internal14WireFormatLite9Int32SizeEi; google::protobuf::internal::WireFormatLite::Int32Size(int)
add rax, 1
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
loc_2D643B:
mov rdi, [rsp+0A8h+var_60]; this
call _ZN6google8protobuf8internal12ToCachedSizeEm; google::protobuf::internal::ToCachedSize(ulong)
mov rcx, [rsp+0A8h+var_88]
mov [rsp+0A8h+var_64], eax
add rcx, 28h ; '('
mov eax, [rsp+0A8h+var_64]
mov [rsp+0A8h+var_8], rcx
mov [rsp+0A8h+var_C], eax
mov [rsp+0A8h+var_10], 0
mov rax, [rsp+0A8h+var_8]
mov [rsp+0A8h+var_98], rax
mov edi, [rsp+0A8h+var_10]
mov esi, 0FFFFh; unsigned __int64
call __ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+0A8h+var_14], eax
mov eax, [rsp+0A8h+var_10]
mov [rsp+0A8h+var_8C], eax
mov ecx, [rsp+0A8h+var_C]
mov [rsp+0A8h+var_18], ecx
sub eax, 3
jz short loc_2D64D0
jmp short $+2
loc_2D64B5:
mov eax, [rsp+0A8h+var_8C]
sub eax, 5
jz short loc_2D64E0
jmp short $+2
loc_2D64C0:
mov rax, [rsp+0A8h+var_98]
mov ecx, [rsp+0A8h+var_18]
mov [rax], ecx
jmp short loc_2D64EE
loc_2D64D0:
mov rax, [rsp+0A8h+var_98]
mov ecx, [rsp+0A8h+var_18]
mov [rax], ecx
jmp short loc_2D64EE
loc_2D64E0:
mov rcx, [rsp+0A8h+var_98]
mov eax, [rsp+0A8h+var_18]
xchg eax, [rcx]
loc_2D64EE:
mov rdi, [rsp+0A8h+var_88]
mov rax, [rsp+0A8h+var_60]
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
add rdi, 10h
add rdi, 20h ; ' '
call _ZN6google8protobuf8internal14WireFormatLite9Int32SizeERKNS0_13RepeatedFieldIiEE; google::protobuf::internal::WireFormatLite::Int32Size(google::protobuf::RepeatedField<int> const&)
mov [rsp+0A8h+var_70], rax
cmp [rsp+0A8h+var_70], 0
jbe short loc_2D6536
mov rax, [rsp+0A8h+var_70]
mov edi, eax; this
call _ZN6google8protobuf8internal14WireFormatLite9Int32SizeEi; google::protobuf::internal::WireFormatLite::Int32Size(int)
add rax, 1
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
loc_2D6536:
mov rdi, [rsp+0A8h+var_70]; this
call _ZN6google8protobuf8internal12ToCachedSizeEm; google::protobuf::internal::ToCachedSize(ulong)
mov rcx, [rsp+0A8h+var_88]
mov [rsp+0A8h+var_74], eax
add rcx, 40h ; '@'
mov eax, [rsp+0A8h+var_74]
mov [rsp+0A8h+var_20], rcx
mov [rsp+0A8h+var_24], eax
mov [rsp+0A8h+var_28], 0
mov rax, [rsp+0A8h+var_20]
mov [rsp+0A8h+var_A8], rax
mov edi, [rsp+0A8h+var_28]
mov esi, 0FFFFh; int
call __ZStanSt12memory_orderSt23__memory_order_modifier; std::operator&(std::memory_order,std::__memory_order_modifier)
mov [rsp+0A8h+var_2C], eax
mov eax, [rsp+0A8h+var_28]
mov [rsp+0A8h+var_9C], eax
mov ecx, [rsp+0A8h+var_24]
mov [rsp+0A8h+var_30], ecx
sub eax, 3
jz short loc_2D65C0
jmp short $+2
loc_2D65A9:
mov eax, [rsp+0A8h+var_9C]
sub eax, 5
jz short loc_2D65CC
jmp short $+2
loc_2D65B4:
mov rax, [rsp+0A8h+var_A8]
mov ecx, [rsp+0A8h+var_30]
mov [rax], ecx
jmp short loc_2D65D6
loc_2D65C0:
mov rax, [rsp+0A8h+var_A8]
mov ecx, [rsp+0A8h+var_30]
mov [rax], ecx
jmp short loc_2D65D6
loc_2D65CC:
mov rcx, [rsp+0A8h+var_A8]
mov eax, [rsp+0A8h+var_30]
xchg eax, [rcx]
loc_2D65D6:
mov rdi, [rsp+0A8h+var_88]
mov rax, [rsp+0A8h+var_70]
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
add rdi, 10h
add rdi, 38h ; '8'
call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE4sizeEv; google::protobuf::RepeatedPtrField<std::string>::size(void)
mov edi, eax; this
call _ZN6google8protobuf8internal11FromIntSizeEi; google::protobuf::internal::FromIntSize(int)
mov rdi, [rsp+0A8h+var_88]
shl rax, 0
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
mov [rsp+0A8h+var_78], 0
add rdi, 10h
add rdi, 38h ; '8'
call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE4sizeEv; google::protobuf::RepeatedPtrField<std::string>::size(void)
mov [rsp+0A8h+var_7C], eax
loc_2D662A:
mov eax, [rsp+0A8h+var_78]
cmp eax, [rsp+0A8h+var_7C]
jge short loc_2D6669
mov rdi, [rsp+0A8h+var_88]
add rdi, 10h
add rdi, 38h ; '8'
mov esi, [rsp+0A8h+var_78]
call _ZNK6google8protobuf16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3GetEi; google::protobuf::RepeatedPtrField<std::string>::Get(int)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
mov eax, [rsp+0A8h+var_78]
add eax, 1
mov [rsp+0A8h+var_78], eax
jmp short loc_2D662A
loc_2D6669:
mov rax, [rsp+0A8h+var_88]
add rax, 10h
mov [rsp+0A8h+var_38], rax
mov [rsp+0A8h+var_3C], 0
mov rax, [rsp+0A8h+var_38]
movsxd rcx, [rsp+0A8h+var_3C]
mov eax, [rax+rcx*4]
mov [rsp+0A8h+var_54], eax
mov eax, [rsp+0A8h+var_54]
and eax, 3
cmp eax, 0
jz short loc_2D66F6
mov eax, [rsp+0A8h+var_54]
and eax, 1
cmp eax, 0
jz short loc_2D66C8
mov rdi, [rsp+0A8h+var_88]
call _ZNK6google8protobuf23SourceCodeInfo_Location26_internal_leading_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::_internal_leading_comments(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
loc_2D66C8:
mov eax, [rsp+0A8h+var_54]
and eax, 2
cmp eax, 0
jz short loc_2D66F4
mov rdi, [rsp+0A8h+var_88]
call _ZNK6google8protobuf23SourceCodeInfo_Location27_internal_trailing_commentsB5cxx11Ev; google::protobuf::SourceCodeInfo_Location::_internal_trailing_comments(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_50], rax
loc_2D66F4:
jmp short $+2
loc_2D66F6:
mov rdi, [rsp+0A8h+var_88]; this
mov rsi, [rsp+0A8h+var_50]; unsigned __int64
mov rdx, rdi
add rdx, 10h
add rdx, 4; google::protobuf::internal::CachedSize *
call _ZNK6google8protobuf7Message29MaybeComputeUnknownFieldsSizeEmPNS0_8internal10CachedSizeE; google::protobuf::Message::MaybeComputeUnknownFieldsSize(ulong,google::protobuf::internal::CachedSize *)
add rsp, 0A8h
retn
|
google::protobuf::internal * google::protobuf::SourceCodeInfo_Location::ByteSizeLong(
google::protobuf::SourceCodeInfo_Location *this,
int a2)
{
unsigned int v2; // esi
unsigned int v3; // eax
long long v4; // rax
unsigned long long v5; // rax
unsigned long long v6; // rax
signed int v8; // [rsp+2Ch] [rbp-7Ch]
unsigned int v9; // [rsp+30h] [rbp-78h]
google::protobuf::internal *v10; // [rsp+38h] [rbp-70h]
google::protobuf::internal *v11; // [rsp+48h] [rbp-60h]
int v12; // [rsp+54h] [rbp-54h]
unsigned long long v13; // [rsp+58h] [rbp-50h]
unsigned long long v14; // [rsp+58h] [rbp-50h]
const google::protobuf::UnknownFieldSet *v15; // [rsp+58h] [rbp-50h]
unsigned int v16; // [rsp+84h] [rbp-24h]
unsigned int v17; // [rsp+9Ch] [rbp-Ch]
v13 = 0LL;
v11 = (google::protobuf::internal *)google::protobuf::internal::WireFormatLite::Int32Size((unsigned int *)this + 6);
if ( v11 )
v13 = google::protobuf::internal::WireFormatLite::Int32Size(
(google::protobuf::internal::WireFormatLite *)(unsigned int)v11,
a2)
+ 1;
v17 = (unsigned int)google::protobuf::internal::ToCachedSize(v11);
std::operator&(0LL, 0xFFFFLL);
*((_DWORD *)this + 10) = v17;
v14 = (unsigned long long)v11 + v13;
v10 = (google::protobuf::internal *)google::protobuf::internal::WireFormatLite::Int32Size((unsigned int *)this + 12);
if ( v10 )
v14 += google::protobuf::internal::WireFormatLite::Int32Size(
(google::protobuf::internal::WireFormatLite *)(unsigned int)v10,
0xFFFF)
+ 1;
v16 = (unsigned int)google::protobuf::internal::ToCachedSize(v10);
v2 = 0xFFFF;
std::operator&(0LL, 0xFFFFLL);
*((_DWORD *)this + 16) = v16;
v3 = google::protobuf::RepeatedPtrField<std::string>::size((google::protobuf::SourceCodeInfo_Location *)((char *)this + 72));
v15 = (google::protobuf::internal *)((char *)v10
+ v14
+ google::protobuf::internal::FromIntSize((google::protobuf::internal *)v3));
v9 = 0;
v8 = google::protobuf::RepeatedPtrField<std::string>::size((google::protobuf::SourceCodeInfo_Location *)((char *)this + 72));
while ( (int)v9 < v8 )
{
v2 = v9;
v4 = google::protobuf::RepeatedPtrField<std::string>::Get((char *)this + 72, v9);
v15 = (const google::protobuf::UnknownFieldSet *)((char *)v15
+ google::protobuf::internal::WireFormatLite::StringSize(v4, v9++));
}
v12 = *((_DWORD *)this + 4);
if ( (v12 & 3) != 0 )
{
if ( (v12 & 1) != 0 )
{
v5 = google::protobuf::SourceCodeInfo_Location::_internal_leading_comments[abi:cxx11]((long long)this);
v15 = (const google::protobuf::UnknownFieldSet *)((char *)v15
+ google::protobuf::internal::WireFormatLite::StringSize(v5, v2)
+ 1);
}
if ( (v12 & 2) != 0 )
{
v6 = google::protobuf::SourceCodeInfo_Location::_internal_trailing_comments[abi:cxx11]((long long)this);
v15 = (const google::protobuf::UnknownFieldSet *)((char *)v15
+ google::protobuf::internal::WireFormatLite::StringSize(v6, v2)
+ 1);
}
}
return google::protobuf::Message::MaybeComputeUnknownFieldsSize(
this,
v15,
(google::protobuf::SourceCodeInfo_Location *)((char *)this + 20));
}
| |||
8,547 |
google::protobuf::SourceCodeInfo_Location::ByteSizeLong() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
size_t SourceCodeInfo_Location::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated int32 path = 1 [packed = true];
{
size_t data_size = ::_pbi::WireFormatLite::
Int32Size(this->_impl_.path_);
if (data_size > 0) {
total_size += 1 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._path_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated int32 span = 2 [packed = true];
{
size_t data_size = ::_pbi::WireFormatLite::
Int32Size(this->_impl_.span_);
if (data_size > 0) {
total_size += 1 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._span_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated string leading_detached_comments = 6;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.leading_detached_comments_.size());
for (int i = 0, n = _impl_.leading_detached_comments_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
_impl_.leading_detached_comments_.Get(i));
}
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
// optional string leading_comments = 3;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_leading_comments());
}
// optional string trailing_comments = 4;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_trailing_comments());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
|
O3
|
cpp
|
google::protobuf::SourceCodeInfo_Location::ByteSizeLong() const:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x18, %rdi
callq 0x8d220
testq %rax, %rax
je 0xf8ca5
movslq %eax, %rcx
orq $0x1, %rcx
bsrq %rcx, %rcx
leal (%rcx,%rcx,8), %r14d
addl $0x49, %r14d
shrl $0x6, %r14d
incq %r14
jmp 0xf8ca8
xorl %r14d, %r14d
movl %eax, 0x28(%rbx)
addq %rax, %r14
leaq 0x30(%rbx), %rdi
callq 0x8d220
testq %rax, %rax
je 0xf8cd6
movslq %eax, %rcx
orq $0x1, %rcx
bsrq %rcx, %rcx
leal (%rcx,%rcx,8), %ecx
addl $0x49, %ecx
shrl $0x6, %ecx
addq %rcx, %r14
incq %r14
movl %eax, 0x40(%rbx)
addq %rax, %r14
movl 0x50(%rbx), %eax
addq %rax, %r14
testl %eax, %eax
jle 0xf8d12
movq 0x58(%rbx), %rcx
xorl %edx, %edx
movq 0x8(%rcx,%rdx,8), %rsi
movq 0x8(%rsi), %rsi
addq %rsi, %r14
orl $0x1, %esi
bsrl %esi, %esi
leal (%rsi,%rsi,8), %esi
addl $0x49, %esi
shrl $0x6, %esi
addq %rsi, %r14
incq %rdx
cmpq %rdx, %rax
jne 0xf8cec
movl 0x10(%rbx), %eax
testb $0x3, %al
je 0xf8d69
testb $0x1, %al
je 0xf8d41
movq 0x60(%rbx), %rcx
andq $-0x4, %rcx
movq 0x8(%rcx), %rcx
addq %rcx, %r14
orl $0x1, %ecx
bsrl %ecx, %ecx
leal (%rcx,%rcx,8), %ecx
addl $0x49, %ecx
shrl $0x6, %ecx
addq %rcx, %r14
incq %r14
testb $0x2, %al
je 0xf8d69
movq 0x68(%rbx), %rax
andq $-0x4, %rax
movq 0x8(%rax), %rax
addq %rax, %r14
orl $0x1, %eax
bsrl %eax, %eax
leal (%rax,%rax,8), %eax
addl $0x49, %eax
shrl $0x6, %eax
addq %rax, %r14
incq %r14
leaq 0x14(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9f36e
nop
|
_ZNK6google8protobuf23SourceCodeInfo_Location12ByteSizeLongEv:
push r14
push rbx
push rax
mov rbx, rdi
add rdi, 18h
call _ZN6google8protobuf8internal14WireFormatLite9Int32SizeERKNS0_13RepeatedFieldIiEE; google::protobuf::internal::WireFormatLite::Int32Size(google::protobuf::RepeatedField<int> const&)
test rax, rax
jz short loc_F8CA5
movsxd rcx, eax
or rcx, 1
bsr rcx, rcx
lea r14d, [rcx+rcx*8]
add r14d, 49h ; 'I'
shr r14d, 6
inc r14
jmp short loc_F8CA8
loc_F8CA5:
xor r14d, r14d
loc_F8CA8:
mov [rbx+28h], eax
add r14, rax
lea rdi, [rbx+30h]
call _ZN6google8protobuf8internal14WireFormatLite9Int32SizeERKNS0_13RepeatedFieldIiEE; google::protobuf::internal::WireFormatLite::Int32Size(google::protobuf::RepeatedField<int> const&)
test rax, rax
jz short loc_F8CD6
movsxd rcx, eax
or rcx, 1
bsr rcx, rcx
lea ecx, [rcx+rcx*8]
add ecx, 49h ; 'I'
shr ecx, 6
add r14, rcx
inc r14
loc_F8CD6:
mov [rbx+40h], eax
add r14, rax
mov eax, [rbx+50h]
add r14, rax
test eax, eax
jle short loc_F8D12
mov rcx, [rbx+58h]
xor edx, edx
loc_F8CEC:
mov rsi, [rcx+rdx*8+8]
mov rsi, [rsi+8]
add r14, rsi
or esi, 1
bsr esi, esi
lea esi, [rsi+rsi*8]
add esi, 49h ; 'I'
shr esi, 6
add r14, rsi
inc rdx
cmp rax, rdx
jnz short loc_F8CEC
loc_F8D12:
mov eax, [rbx+10h]
test al, 3
jz short loc_F8D69
test al, 1
jz short loc_F8D41
mov rcx, [rbx+60h]
and rcx, 0FFFFFFFFFFFFFFFCh
mov rcx, [rcx+8]
add r14, rcx
or ecx, 1
bsr ecx, ecx
lea ecx, [rcx+rcx*8]
add ecx, 49h ; 'I'
shr ecx, 6
add r14, rcx
inc r14
loc_F8D41:
test al, 2
jz short loc_F8D69
mov rax, [rbx+68h]
and rax, 0FFFFFFFFFFFFFFFCh
mov rax, [rax+8]
add r14, rax
or eax, 1
bsr eax, eax
lea eax, [rax+rax*8]
add eax, 49h ; 'I'
shr eax, 6
add r14, rax
inc r14
loc_F8D69:
lea rdx, [rbx+14h]
mov rdi, rbx
mov rsi, r14
add rsp, 8
pop rbx
pop r14
jmp _ZNK6google8protobuf7Message29MaybeComputeUnknownFieldsSizeEmPNS0_8internal10CachedSizeE; google::protobuf::Message::MaybeComputeUnknownFieldsSize(ulong,google::protobuf::internal::CachedSize *)
|
char * google::protobuf::SourceCodeInfo_Location::ByteSizeLong(
google::protobuf::SourceCodeInfo_Location *this)
{
long long v1; // rax
unsigned long long v2; // rcx
long long v3; // r14
long long v4; // r14
long long v5; // rax
unsigned long long v6; // rcx
long long v7; // r14
long long v8; // rax
const google::protobuf::UnknownFieldSet *v9; // r14
long long i; // rdx
long long v11; // rsi
char *v12; // r14
int v13; // eax
long long v14; // rcx
char *v15; // r14
long long v16; // rax
char *v17; // r14
v1 = google::protobuf::internal::WireFormatLite::Int32Size((unsigned int *)this + 6);
if ( v1 )
{
_BitScanReverse64(&v2, (int)v1 | 1LL);
v3 = ((unsigned int)(9 * v2 + 73) >> 6) + 1LL;
}
else
{
v3 = 0LL;
}
*((_DWORD *)this + 10) = v1;
v4 = v1 + v3;
v5 = google::protobuf::internal::WireFormatLite::Int32Size((unsigned int *)this + 12);
if ( v5 )
{
_BitScanReverse64(&v6, (int)v5 | 1LL);
v4 += ((unsigned int)(9 * v6 + 73) >> 6) + 1LL;
}
*((_DWORD *)this + 16) = v5;
v7 = v5 + v4;
v8 = *((unsigned int *)this + 20);
v9 = (const google::protobuf::UnknownFieldSet *)(v8 + v7);
if ( (int)v8 > 0 )
{
for ( i = 0LL; i != v8; ++i )
{
v11 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 11) + 8 * i + 8) + 8LL);
v12 = (char *)v9 + v11;
_BitScanReverse((unsigned int *)&v11, v11 | 1);
v9 = (const google::protobuf::UnknownFieldSet *)&v12[(unsigned int)(9 * v11 + 73) >> 6];
}
}
v13 = *((_DWORD *)this + 4);
if ( (v13 & 3) != 0 )
{
if ( (v13 & 1) != 0 )
{
v14 = *(_QWORD *)((*((_QWORD *)this + 12) & 0xFFFFFFFFFFFFFFFCLL) + 8);
v15 = (char *)v9 + v14;
_BitScanReverse((unsigned int *)&v14, v14 | 1);
v9 = (const google::protobuf::UnknownFieldSet *)&v15[((unsigned int)(9 * v14 + 73) >> 6) + 1];
}
if ( (v13 & 2) != 0 )
{
v16 = *(_QWORD *)((*((_QWORD *)this + 13) & 0xFFFFFFFFFFFFFFFCLL) + 8);
v17 = (char *)v9 + v16;
_BitScanReverse((unsigned int *)&v16, v16 | 1);
v9 = (const google::protobuf::UnknownFieldSet *)&v17[((unsigned int)(9 * v16 + 73) >> 6) + 1];
}
}
return google::protobuf::Message::MaybeComputeUnknownFieldsSize((long long)this, v9, (_DWORD *)this + 5);
}
|
ByteSizeLong:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
ADD RDI,0x18
CALL 0x0018d220
TEST RAX,RAX
JZ 0x001f8ca5
MOVSXD RCX,EAX
OR RCX,0x1
BSR RCX,RCX
LEA R14D,[RCX + RCX*0x8]
ADD R14D,0x49
SHR R14D,0x6
INC R14
JMP 0x001f8ca8
LAB_001f8ca5:
XOR R14D,R14D
LAB_001f8ca8:
MOV dword ptr [RBX + 0x28],EAX
ADD R14,RAX
LEA RDI,[RBX + 0x30]
CALL 0x0018d220
TEST RAX,RAX
JZ 0x001f8cd6
MOVSXD RCX,EAX
OR RCX,0x1
BSR RCX,RCX
LEA ECX,[RCX + RCX*0x8]
ADD ECX,0x49
SHR ECX,0x6
ADD R14,RCX
INC R14
LAB_001f8cd6:
MOV dword ptr [RBX + 0x40],EAX
ADD R14,RAX
MOV EAX,dword ptr [RBX + 0x50]
ADD R14,RAX
TEST EAX,EAX
JLE 0x001f8d12
MOV RCX,qword ptr [RBX + 0x58]
XOR EDX,EDX
LAB_001f8cec:
MOV RSI,qword ptr [RCX + RDX*0x8 + 0x8]
MOV RSI,qword ptr [RSI + 0x8]
ADD R14,RSI
OR ESI,0x1
BSR ESI,ESI
LEA ESI,[RSI + RSI*0x8]
ADD ESI,0x49
SHR ESI,0x6
ADD R14,RSI
INC RDX
CMP RAX,RDX
JNZ 0x001f8cec
LAB_001f8d12:
MOV EAX,dword ptr [RBX + 0x10]
TEST AL,0x3
JZ 0x001f8d69
TEST AL,0x1
JZ 0x001f8d41
MOV RCX,qword ptr [RBX + 0x60]
AND RCX,-0x4
MOV RCX,qword ptr [RCX + 0x8]
ADD R14,RCX
OR ECX,0x1
BSR ECX,ECX
LEA ECX,[RCX + RCX*0x8]
ADD ECX,0x49
SHR ECX,0x6
ADD R14,RCX
INC R14
LAB_001f8d41:
TEST AL,0x2
JZ 0x001f8d69
MOV RAX,qword ptr [RBX + 0x68]
AND RAX,-0x4
MOV RAX,qword ptr [RAX + 0x8]
ADD R14,RAX
OR EAX,0x1
BSR EAX,EAX
LEA EAX,[RAX + RAX*0x8]
ADD EAX,0x49
SHR EAX,0x6
ADD R14,RAX
INC R14
LAB_001f8d69:
LEA RDX,[RBX + 0x14]
MOV RDI,RBX
MOV RSI,R14
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0019f36e
|
/* google::protobuf::SourceCodeInfo_Location::ByteSizeLong() const */
void __thiscall
google::protobuf::SourceCodeInfo_Location::ByteSizeLong(SourceCodeInfo_Location *this)
{
int iVar1;
long lVar2;
uint uVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
uint uVar7;
long lVar8;
lVar4 = internal::WireFormatLite::Int32Size((RepeatedField *)(this + 0x18));
if (lVar4 == 0) {
lVar8 = 0;
}
else {
uVar5 = (long)(int)lVar4 | 1;
lVar8 = 0x3f;
if (uVar5 != 0) {
for (; uVar5 >> lVar8 == 0; lVar8 = lVar8 + -1) {
}
}
lVar8 = (ulong)((int)lVar8 * 9 + 0x49U >> 6) + 1;
}
*(int *)(this + 0x28) = (int)lVar4;
lVar8 = lVar8 + lVar4;
lVar4 = internal::WireFormatLite::Int32Size((RepeatedField *)(this + 0x30));
if (lVar4 != 0) {
uVar5 = (long)(int)lVar4 | 1;
lVar2 = 0x3f;
if (uVar5 != 0) {
for (; uVar5 >> lVar2 == 0; lVar2 = lVar2 + -1) {
}
}
lVar8 = lVar8 + (ulong)((int)lVar2 * 9 + 0x49U >> 6) + 1;
}
*(int *)(this + 0x40) = (int)lVar4;
uVar3 = *(uint *)(this + 0x50);
uVar5 = lVar8 + lVar4 + (ulong)uVar3;
if (0 < (int)uVar3) {
uVar6 = 0;
do {
lVar4 = *(long *)(*(long *)(*(long *)(this + 0x58) + 8 + uVar6 * 8) + 8);
uVar7 = (uint)lVar4 | 1;
iVar1 = 0x1f;
if (uVar7 != 0) {
for (; uVar7 >> iVar1 == 0; iVar1 = iVar1 + -1) {
}
}
uVar5 = uVar5 + lVar4 + (ulong)(iVar1 * 9 + 0x49U >> 6);
uVar6 = uVar6 + 1;
} while (uVar3 != uVar6);
}
uVar3 = *(uint *)(this + 0x10);
if ((uVar3 & 3) != 0) {
if ((uVar3 & 1) != 0) {
lVar4 = *(long *)((*(ulong *)(this + 0x60) & 0xfffffffffffffffc) + 8);
uVar7 = (uint)lVar4 | 1;
iVar1 = 0x1f;
if (uVar7 != 0) {
for (; uVar7 >> iVar1 == 0; iVar1 = iVar1 + -1) {
}
}
uVar5 = uVar5 + lVar4 + (ulong)(iVar1 * 9 + 0x49U >> 6) + 1;
}
if ((uVar3 & 2) != 0) {
lVar4 = *(long *)((*(ulong *)(this + 0x68) & 0xfffffffffffffffc) + 8);
uVar3 = (uint)lVar4 | 1;
iVar1 = 0x1f;
if (uVar3 != 0) {
for (; uVar3 >> iVar1 == 0; iVar1 = iVar1 + -1) {
}
}
uVar5 = uVar5 + lVar4 + (ulong)(iVar1 * 9 + 0x49U >> 6) + 1;
}
}
Message::MaybeComputeUnknownFieldsSize((Message *)this,uVar5,(CachedSize *)(this + 0x14));
return;
}
|
|
8,548 |
my_rw_wrlock
|
eloqsql/mysys/thr_rwlock.c
|
int my_rw_wrlock(my_rw_lock_t *rwp)
{
pthread_mutex_lock(&rwp->lock);
rwp->waiters++; /* another writer queued */
my_rw_lock_assert_not_write_owner(rwp);
while (rwp->state)
pthread_cond_wait(&rwp->writers, &rwp->lock);
rwp->state = -1;
rwp->waiters--;
#ifdef SAFE_MUTEX
rwp->write_thread= pthread_self();
#endif
pthread_mutex_unlock(&rwp->lock);
return(0);
}
|
O3
|
c
|
my_rw_wrlock:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x24490
movl 0x8c(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x8c(%rbx)
cmpl $0x0, 0x88(%rbx)
je 0x2a028
leaq 0x58(%rbx), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24510
cmpl $0x0, 0x88(%rbx)
jne 0x2a00c
movl 0x8c(%rbx), %eax
decl %eax
movl $0xffffffff, 0x88(%rbx) # imm = 0xFFFFFFFF
movl %eax, 0x8c(%rbx)
movq %rbx, %rdi
callq 0x24220
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
my_rw_wrlock:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
call _pthread_mutex_lock
mov eax, [rbx+8Ch]
lea ecx, [rax+1]
mov [rbx+8Ch], ecx
cmp dword ptr [rbx+88h], 0
jz short loc_2A028
lea r14, [rbx+58h]
loc_2A00C:
mov rdi, r14
mov rsi, rbx
call _pthread_cond_wait
cmp dword ptr [rbx+88h], 0
jnz short loc_2A00C
mov eax, [rbx+8Ch]
dec eax
loc_2A028:
mov dword ptr [rbx+88h], 0FFFFFFFFh
mov [rbx+8Ch], eax
mov rdi, rbx
call _pthread_mutex_unlock
xor eax, eax
pop rbx
pop r14
pop rbp
retn
|
long long my_rw_wrlock(long long a1)
{
int v1; // eax
pthread_mutex_lock(a1);
v1 = *(_DWORD *)(a1 + 140);
*(_DWORD *)(a1 + 140) = v1 + 1;
if ( *(_DWORD *)(a1 + 136) )
{
do
pthread_cond_wait(a1 + 88, a1);
while ( *(_DWORD *)(a1 + 136) );
v1 = *(_DWORD *)(a1 + 140) - 1;
}
*(_DWORD *)(a1 + 136) = -1;
*(_DWORD *)(a1 + 140) = v1;
pthread_mutex_unlock(a1);
return 0LL;
}
|
my_rw_wrlock:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x00124490
MOV EAX,dword ptr [RBX + 0x8c]
LEA ECX,[RAX + 0x1]
MOV dword ptr [RBX + 0x8c],ECX
CMP dword ptr [RBX + 0x88],0x0
JZ 0x0012a028
LEA R14,[RBX + 0x58]
LAB_0012a00c:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00124510
CMP dword ptr [RBX + 0x88],0x0
JNZ 0x0012a00c
MOV EAX,dword ptr [RBX + 0x8c]
DEC EAX
LAB_0012a028:
MOV dword ptr [RBX + 0x88],0xffffffff
MOV dword ptr [RBX + 0x8c],EAX
MOV RDI,RBX
CALL 0x00124220
XOR EAX,EAX
POP RBX
POP R14
POP RBP
RET
|
int8 my_rw_wrlock(pthread_mutex_t *param_1)
{
int iVar1;
pthread_mutex_lock(param_1);
iVar1 = *(int *)((long)param_1 + 0x8c);
*(int *)((long)param_1 + 0x8c) = iVar1 + 1;
if (*(int *)((long)param_1 + 0x88) != 0) {
do {
pthread_cond_wait((pthread_cond_t *)((long)param_1 + 0x58),param_1);
} while (*(int *)((long)param_1 + 0x88) != 0);
iVar1 = *(int *)((long)param_1 + 0x8c) + -1;
}
*(int4 *)((long)param_1 + 0x88) = 0xffffffff;
*(int *)((long)param_1 + 0x8c) = iVar1;
pthread_mutex_unlock(param_1);
return 0;
}
|
|
8,549 |
trx_temp_rseg_create(mtr_t*)
|
eloqsql/storage/innobase/trx/trx0rseg.cc
|
dberr_t trx_temp_rseg_create(mtr_t *mtr)
{
for (ulong i= 0; i < array_elements(trx_sys.temp_rsegs); i++)
{
mtr->start();
mtr->set_log_mode(MTR_LOG_NO_REDO);
mtr->x_lock_space(fil_system.temp_space);
dberr_t err;
buf_block_t *rblock=
trx_rseg_header_create(fil_system.temp_space, i, 0, mtr, &err);
if (UNIV_UNLIKELY(!rblock))
{
mtr->commit();
return err;
}
trx_sys.temp_rsegs[i].init(fil_system.temp_space,
rblock->page.id().page_no());
mtr->commit();
}
return DB_SUCCESS;
}
|
O3
|
cpp
|
trx_temp_rseg_create(mtr_t*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorl %r13d, %r13d
leaq 0x11c2752(%rip), %r14 # 0x1e24760
movq %rdi, -0x38(%rbp)
movq %rbx, %rdi
callq 0xbefa60
orb $0x3, 0xa(%rbx)
movq 0x70(%r14), %rsi
movq %rbx, %rdi
callq 0xbf0168
movq 0x70(%r14), %rdi
xorl %edx, %edx
movq %rbx, %rcx
leaq -0x2c(%rbp), %r8
callq 0xc6126e
testq %rax, %rax
je 0xc620f7
movq 0x70(%r14), %r15
movq %r14, %rbx
movl (%rax), %r14d
leaq 0x8ba3aa(%rip), %rax # 0x151c400
leaq (%rax,%r13), %r12
addq $0x148, %r12 # imm = 0x148
leaq 0x11c2d48(%rip), %rax # 0x1e24db0
movl (%rax), %edi
leaq 0x8c4e97(%rip), %rax # 0x1526f08
movq (%rax), %rax
movq %r12, %rsi
callq *0x50(%rax)
movq %rax, (%r12)
movq %r15, -0x8(%r12)
movl %r14d, 0x10(%r12)
movq %rbx, %r14
movq -0x38(%rbp), %rbx
movl $0xffffffff, 0x60(%r12) # imm = 0xFFFFFFFF
movl $0x1, 0x1c(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r12)
xorl %r15d, %r15d
movq %r15, 0x30(%r12)
movl $0xe8, %eax
movq %rax, 0x38(%r12)
movups %xmm0, 0x40(%r12)
movq %r15, 0x50(%r12)
movq %rax, 0x58(%r12)
movq %rbx, %rdi
callq 0xbefaf4
subq $-0x80, %r13
cmpq $0x4000, %r13 # imm = 0x4000
jne 0xc62012
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0xbefaf4
movl -0x2c(%rbp), %r15d
jmp 0xc620e5
nopl (%rax)
|
_Z20trx_temp_rseg_createP5mtr_t:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
xor r13d, r13d
lea r14, fil_system
mov [rbp+var_38], rdi
loc_C62012:
mov rdi, rbx; this
call _ZN5mtr_t5startEv; mtr_t::start(void)
or byte ptr [rbx+0Ah], 3
mov rsi, [r14+70h]; fil_space_t *
mov rdi, rbx; this
call _ZN5mtr_t12x_lock_spaceEP11fil_space_t; mtr_t::x_lock_space(fil_space_t *)
mov rdi, [r14+70h]
xor edx, edx
mov rcx, rbx
lea r8, [rbp+var_2C]
call _Z22trx_rseg_header_createP11fil_space_tmmP5mtr_tP7dberr_t; trx_rseg_header_create(fil_space_t *,ulong,ulong,mtr_t *,dberr_t *)
test rax, rax
jz loc_C620F7
mov r15, [r14+70h]
mov rbx, r14
mov r14d, [rax]
lea rax, trx_sys
lea r12, [rax+r13]
add r12, 148h
lea rax, trx_rseg_latch_key
mov edi, [rax]
lea rax, PSI_server
mov rax, [rax]
mov rsi, r12
call qword ptr [rax+50h]
mov [r12], rax
mov [r12-8], r15
mov [r12+10h], r14d
mov r14, rbx
mov rbx, [rbp+var_38]
mov dword ptr [r12+60h], 0FFFFFFFFh
mov dword ptr [r12+1Ch], 1
xorps xmm0, xmm0
movups xmmword ptr [r12+20h], xmm0
xor r15d, r15d
mov [r12+30h], r15
mov eax, 0E8h
mov [r12+38h], rax
movups xmmword ptr [r12+40h], xmm0
mov [r12+50h], r15
mov [r12+58h], rax
mov rdi, rbx; this
call _ZN5mtr_t6commitEv; mtr_t::commit(void)
sub r13, 0FFFFFFFFFFFFFF80h
cmp r13, 4000h
jnz loc_C62012
loc_C620E5:
mov eax, r15d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_C620F7:
mov rdi, rbx; this
call _ZN5mtr_t6commitEv; mtr_t::commit(void)
mov r15d, [rbp+var_2C]
jmp short loc_C620E5
|
long long trx_temp_rseg_create(mtr_t *this)
{
mtr_t *v1; // rbx
long long v2; // r13
char *v3; // r14
fil_space_t *v4; // rsi
unsigned long long *v5; // rax
long long v6; // r15
char *v7; // rbx
int v8; // r14d
unsigned int v9; // r15d
unsigned int v11[11]; // [rsp+14h] [rbp-2Ch] BYREF
v1 = this;
v2 = 0LL;
v3 = &fil_system;
while ( 1 )
{
mtr_t::start(v1);
*((_BYTE *)v1 + 10) |= 3u;
v4 = (fil_space_t *)*((_QWORD *)v3 + 14);
mtr_t::x_lock_space(v1, v4);
v5 = trx_rseg_header_create(*((fil_space_t **)v3 + 14), (long long)v4, 0LL, v1, (int *)v11);
if ( !v5 )
break;
v6 = *((_QWORD *)v3 + 14);
v7 = v3;
v8 = *(_DWORD *)v5;
trx_sys[v2 + 41] = ((long long ( *)(_QWORD, long long *))PSI_server[10])(
trx_rseg_latch_key,
&trx_sys[v2 + 41]);
trx_sys[v2 + 40] = v6;
LODWORD(trx_sys[v2 + 43]) = v8;
v3 = v7;
v1 = this;
LODWORD(trx_sys[v2 + 53]) = -1;
HIDWORD(trx_sys[v2 + 44]) = 1;
*(_OWORD *)&trx_sys[v2 + 45] = 0LL;
v9 = 0;
trx_sys[v2 + 47] = 0LL;
trx_sys[v2 + 48] = 232LL;
*(_OWORD *)&trx_sys[v2 + 49] = 0LL;
trx_sys[v2 + 51] = 0LL;
trx_sys[v2 + 52] = 232LL;
mtr_t::commit(this);
v2 += 16LL;
if ( v2 == 2048 )
return v9;
}
mtr_t::commit(v1);
return v11[0];
}
|
dict_index_set_merge_threshold:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x548
MOV qword ptr [RBP + -0x4d0],RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
XOR EAX,EAX
LEA RCX,[RBP + -0x4b0]
MOV qword ptr [RCX + -0x8],RAX
LEA RDX,[RBP + -0x490]
MOV dword ptr [RDX + 0x204],EAX
MOV qword ptr [RDX + -0x8],RAX
MOV ESI,0x1
MOV qword ptr [RDX + -0x10],RSI
MOV qword ptr [RDX + -0x20],RDX
MOV qword ptr [RDX + -0x18],RDX
MOV qword ptr [RDX + 0x8],RCX
MOV qword ptr [RDX],RCX
MOV qword ptr [RDX + 0x208],RAX
LEA RCX,[RBP + -0x280]
LEA RDX,[RBP + -0x260]
MOV dword ptr [RDX + 0x204],EAX
MOV qword ptr [RDX + -0x8],RAX
MOV qword ptr [RDX + -0x10],RSI
MOV qword ptr [RDX + -0x20],RDX
MOV qword ptr [RDX + -0x18],RDX
MOV qword ptr [RDX + 0x8],RCX
MOV qword ptr [RDX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDX + 0x218],XMM0
MOV qword ptr [RBP + -0x538],RAX
MOV qword ptr [RBP + -0x4e0],RAX
LAB_00c6209b:
MOV ESI,0x468
XOR EDI,EDI
XOR EDX,EDX
CALL 0x00cef6a9
MOV RBX,RAX
TEST RAX,RAX
JZ 0x00c620cf
MOV qword ptr [RBX + 0x18],0x20
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOV qword ptr [RBX + 0x8],RBX
MOV qword ptr [RBX + 0x10],RBX
MOV qword ptr [RBX],0x1
LAB_00c620cf:
LEA RDI,[RBP + -0x4c8]
CALL 0x00cefa60
MOV RAX,qword ptr [0x01614980]
MOV R13,qword ptr [RAX + 0x98]
MOV RAX,qword ptr [RBX + 0x10]
MOV R14,qword ptr [RAX + 0x48]
LEA RCX,[R14 + 0x60]
CMP qword ptr [RAX + 0x30],RCX
JNC 0x00c62119
MOV ESI,0x60
MOV RDI,RBX
CALL 0x00cef824
TEST RAX,RAX
JZ 0x00c622c2
MOV R14,qword ptr [RAX + 0x48]
LEA RCX,[R14 + 0x60]
LAB_00c62119:
ADD R14,RAX
MOV qword ptr [RAX + 0x48],RCX
LAB_00c62120:
MOV qword ptr [R14],0x0
MOV EAX,0x2
MOV qword ptr [R14 + 0x8],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x20],XMM0
MOV qword ptr [R14 + 0x10],RAX
LEA RAX,[R14 + 0x30]
MOV qword ptr [R14 + 0x18],RAX
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RAX + 0x48]
LEA RDX,[RCX + 0x8]
CMP qword ptr [RAX + 0x30],RDX
JNC 0x00c62174
MOV ESI,0x8
MOV RDI,RBX
CALL 0x00cef824
TEST RAX,RAX
JZ 0x00c622ca
MOV RCX,qword ptr [RAX + 0x48]
LEA RDX,[RCX + 0x8]
LAB_00c62174:
ADD RCX,RAX
MOV qword ptr [RAX + 0x48],RDX
LAB_00c6217b:
MOV RAX,qword ptr [R15 + 0x18]
MOV RAX,qword ptr [RAX]
BSWAP RAX
MOV qword ptr [RCX],RAX
MOV qword ptr [R14 + 0x30],RCX
AND byte ptr [R14 + 0x38],0xfe
MOV dword ptr [R14 + 0x3c],0x8
MOV R12,qword ptr [R14 + 0x18]
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RAX + 0x48]
LEA RDX,[RCX + 0x8]
CMP qword ptr [RAX + 0x30],RDX
JNC 0x00c621cd
MOV ESI,0x8
MOV RDI,RBX
CALL 0x00cef824
TEST RAX,RAX
JZ 0x00c622d1
MOV RCX,qword ptr [RAX + 0x48]
LEA RDX,[RCX + 0x8]
LAB_00c621cd:
ADD RCX,RAX
MOV qword ptr [RAX + 0x48],RDX
LAB_00c621d4:
MOV RAX,qword ptr [R15]
BSWAP RAX
MOV qword ptr [RCX],RAX
MOV qword ptr [R12 + 0x18],RCX
AND byte ptr [R12 + 0x20],0xfe
MOV dword ptr [R12 + 0x24],0x8
MOV EDX,0x2
MOV RDI,R14
MOV RSI,R13
CALL 0x00c5f922
SUB RSP,0x8
XOR EAX,EAX
LEA R9,[RBP + -0x570]
MOV R8D,0x2
MOV RDI,R13
XOR ESI,ESI
MOV RDX,R14
MOV ECX,0x2
PUSH RAX
LEA R10,[RBP + -0x4c8]
PUSH R10
PUSH RAX
CALL 0x007c9a56
ADD RSP,0x20
TEST EAX,EAX
JNZ 0x00c62309
MOV RAX,qword ptr [RBP + -0x520]
CMP RAX,qword ptr [R14 + 0x8]
JNZ 0x00c62309
MOV R14,qword ptr [RBP + -0x560]
MOVZX EAX,byte ptr [R14 + -0x3]
MOVZX ECX,byte ptr [R14 + -0x4]
SHL ECX,0x8
OR ECX,EAX
AND ECX,0x7fe
CMP ECX,0x14
JNZ 0x00c62309
LAB_00c62273:
LEA RDX,[RBP + -0x4d8]
MOV ESI,0x9
MOV RDI,R14
CALL 0x00d0ae6c
LEA RDX,[R14 + RAX*0x1]
MOV RSI,qword ptr [RBP + -0x550]
MOV RCX,qword ptr [RBP + -0x4d0]
BSWAP ECX
MOV dword ptr [RBP + -0x34],ECX
TEST byte ptr [RBP + -0x4be],0x1
MOV RCX,RDX
JNZ 0x00c622db
XOR ECX,ECX
LAB_00c622ac:
MOV DIL,byte ptr [RDX + RCX*0x1]
CMP DIL,byte ptr [RBP + RCX*0x1 + -0x34]
JNZ 0x00c622d8
INC RCX
CMP RCX,0x4
JNZ 0x00c622ac
JMP 0x00c62309
LAB_00c622c2:
XOR R14D,R14D
JMP 0x00c62120
LAB_00c622ca:
XOR ECX,ECX
JMP 0x00c6217b
LAB_00c622d1:
XOR ECX,ECX
JMP 0x00c621d4
LAB_00c622d8:
ADD RCX,RDX
LAB_00c622db:
LEA R8,[R14 + RAX*0x1]
ADD R8,0x4
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RDX],EAX
LEA RAX,[0x1f30990]
MOV EAX,dword ptr [RAX]
DEC EAX
MOV EDX,ECX
AND EDX,EAX
SUB R8,RCX
MOVZX EDX,DX
LEA RDI,[RBP + -0x4c8]
CALL 0x00c547a2
LAB_00c62309:
LEA RDI,[RBP + -0x4c8]
CALL 0x00cefaf4
MOV R14,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x58],0x0
JZ 0x00c62328
MOV RDI,RBX
CALL 0x00cef9f4
LAB_00c62328:
TEST R14,R14
JZ 0x00c6233e
MOV RSI,R14
MOV R14,qword ptr [R14 + 0x20]
LAB_00c62334:
MOV RDI,RBX
CALL 0x00cef8c8
JMP 0x00c62328
LAB_00c6233e:
LEA RDI,[RBP + -0x288]
LAB_00c62345:
CALL 0x00c4bb0c
LEA RDI,[RBP + -0x4b8]
LAB_00c62351:
CALL 0x00c4bb0c
LAB_00c62356:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00c623ab
ADD RSP,0x548
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00c623ab:
CALL 0x007286b0
|
/* dict_index_set_merge_threshold(dict_index_t*, unsigned long) */
void dict_index_set_merge_threshold(dict_index_t *param_1,ulong param_2)
{
uint *puVar1;
dict_index_t *pdVar2;
mem_block_info_t *pmVar3;
int iVar4;
mem_block_info_t *pmVar5;
long lVar6;
long lVar7;
uint uVar8;
ulong uVar9;
ulong *puVar10;
long lVar11;
uint *puVar12;
dtuple_t *pdVar13;
mem_block_info_t *pmVar14;
long in_FS_OFFSET;
int1 local_578 [16];
uchar *local_568;
buf_block_t *local_558;
int8 local_540;
long local_528;
int8 local_4e8;
ulong local_4e0;
ulong local_4d8;
mtr_t local_4d0 [10];
byte local_4c6;
int8 local_4c0;
int8 ***local_4b8;
int8 ***local_4b0;
int8 local_4a8;
int8 local_4a0;
int8 ***local_498;
int8 ***local_490;
int4 local_294;
int8 local_290;
int8 ***local_288;
int8 ***local_280;
int8 local_278;
int8 local_270;
int8 ***local_268;
int8 ***local_260;
int4 local_64;
int8 local_50;
int8 uStack_48;
uint local_3c;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_498 = &local_4b8;
local_4c0 = 0;
local_4b8 = &local_498;
local_294 = 0;
local_4a0 = 0;
local_4a8 = 1;
local_290 = 0;
local_268 = &local_288;
local_288 = &local_268;
local_64 = 0;
local_270 = 0;
local_278 = 1;
local_50 = 0;
uStack_48 = 0;
local_540 = 0;
local_4e8 = 0;
local_4d8 = param_2;
local_4b0 = local_4b8;
local_490 = local_498;
local_280 = local_288;
local_260 = local_268;
/* try { // try from 00c6209b to 00c62234 has its CatchHandler @ 00c62383 */
pmVar5 = (mem_block_info_t *)mem_heap_create_block_func((mem_block_info_t *)0x0,0x468,0);
if (pmVar5 != (mem_block_info_t *)0x0) {
*(int8 *)(pmVar5 + 0x18) = 0x20;
*(int8 *)(pmVar5 + 0x20) = 0;
*(int8 *)(pmVar5 + 0x28) = 0;
*(mem_block_info_t **)(pmVar5 + 8) = pmVar5;
*(mem_block_info_t **)(pmVar5 + 0x10) = pmVar5;
*(int8 *)pmVar5 = 1;
}
mtr_t::start(local_4d0);
pdVar2 = *(dict_index_t **)(DAT_01614980 + 0x98);
lVar6 = *(long *)(pmVar5 + 0x10);
lVar7 = *(long *)(lVar6 + 0x48);
uVar9 = lVar7 + 0x60;
if (*(ulong *)(lVar6 + 0x30) < uVar9) {
lVar6 = mem_heap_add_block(pmVar5,0x60);
if (lVar6 != 0) {
lVar7 = *(long *)(lVar6 + 0x48);
uVar9 = lVar7 + 0x60;
goto LAB_00c62119;
}
pdVar13 = (dtuple_t *)0x0;
}
else {
LAB_00c62119:
pdVar13 = (dtuple_t *)(lVar7 + lVar6);
*(ulong *)(lVar6 + 0x48) = uVar9;
}
*(int8 *)pdVar13 = 0;
*(int8 *)(pdVar13 + 8) = 2;
*(int8 *)(pdVar13 + 0x20) = 0;
*(int8 *)(pdVar13 + 0x28) = 0;
*(int8 *)(pdVar13 + 0x10) = 2;
*(dtuple_t **)(pdVar13 + 0x18) = pdVar13 + 0x30;
lVar6 = *(long *)(pmVar5 + 0x10);
lVar7 = *(long *)(lVar6 + 0x48);
uVar9 = lVar7 + 8;
if (*(ulong *)(lVar6 + 0x30) < uVar9) {
lVar6 = mem_heap_add_block(pmVar5,8);
if (lVar6 != 0) {
lVar7 = *(long *)(lVar6 + 0x48);
uVar9 = lVar7 + 8;
goto LAB_00c62174;
}
puVar10 = (ulong *)0x0;
}
else {
LAB_00c62174:
puVar10 = (ulong *)(lVar7 + lVar6);
*(ulong *)(lVar6 + 0x48) = uVar9;
}
uVar9 = **(ulong **)(param_1 + 0x18);
*puVar10 = uVar9 >> 0x38 | (uVar9 & 0xff000000000000) >> 0x28 | (uVar9 & 0xff0000000000) >> 0x18 |
(uVar9 & 0xff00000000) >> 8 | (uVar9 & 0xff000000) << 8 | (uVar9 & 0xff0000) << 0x18 |
(uVar9 & 0xff00) << 0x28 | uVar9 << 0x38;
*(ulong **)(pdVar13 + 0x30) = puVar10;
pdVar13[0x38] = (dtuple_t)((byte)pdVar13[0x38] & 0xfe);
*(int4 *)(pdVar13 + 0x3c) = 8;
lVar6 = *(long *)(pdVar13 + 0x18);
lVar7 = *(long *)(pmVar5 + 0x10);
lVar11 = *(long *)(lVar7 + 0x48);
uVar9 = lVar11 + 8;
if (*(ulong *)(lVar7 + 0x30) < uVar9) {
lVar7 = mem_heap_add_block(pmVar5,8);
if (lVar7 == 0) {
puVar10 = (ulong *)0x0;
goto LAB_00c621d4;
}
lVar11 = *(long *)(lVar7 + 0x48);
uVar9 = lVar11 + 8;
}
puVar10 = (ulong *)(lVar11 + lVar7);
*(ulong *)(lVar7 + 0x48) = uVar9;
LAB_00c621d4:
uVar9 = *(ulong *)param_1;
*puVar10 = uVar9 >> 0x38 | (uVar9 & 0xff000000000000) >> 0x28 | (uVar9 & 0xff0000000000) >> 0x18 |
(uVar9 & 0xff00000000) >> 8 | (uVar9 & 0xff000000) << 8 | (uVar9 & 0xff0000) << 0x18 |
(uVar9 & 0xff00) << 0x28 | uVar9 << 0x38;
*(ulong **)(lVar6 + 0x18) = puVar10;
*(byte *)(lVar6 + 0x20) = *(byte *)(lVar6 + 0x20) & 0xfe;
*(int4 *)(lVar6 + 0x24) = 8;
dict_index_copy_types(pdVar13,pdVar2,2);
iVar4 = btr_cur_search_to_nth_level_func(pdVar2,0,pdVar13,2,2,local_578,0,local_4d0,0);
if (((iVar4 == 0) && (local_528 == *(long *)(pdVar13 + 8))) &&
((CONCAT11(local_568[-4],local_568[-3]) & 0x7fe) == 0x14)) {
/* try { // try from 00c62273 to 00c62308 has its CatchHandler @ 00c62377 */
lVar6 = rec_get_nth_field_offs_old(local_568,9,&local_4e0);
puVar1 = (uint *)(local_568 + lVar6);
uVar8 = (uint)local_4d8;
local_3c = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;
puVar12 = puVar1;
if ((local_4c6 & 1) == 0) {
lVar7 = 0;
do {
if (*(char *)((long)puVar1 + lVar7) != *(char *)((long)&local_3c + lVar7)) {
puVar12 = (uint *)(lVar7 + (long)puVar1);
goto LAB_00c622db;
}
lVar7 = lVar7 + 1;
} while (lVar7 != 4);
}
else {
LAB_00c622db:
*puVar1 = local_3c;
mtr_t::memcpy_low(local_4d0,local_558,(ushort)puVar12 & (short)(int4)srv_page_size - 1U,
puVar12,(ulong)(local_568 + ((lVar6 + 4) - (long)puVar12)));
}
}
/* try { // try from 00c62309 to 00c62327 has its CatchHandler @ 00c62383 */
mtr_t::commit(local_4d0);
pmVar14 = *(mem_block_info_t **)(pmVar5 + 0x10);
if (*(long *)(pmVar5 + 0x58) != 0) {
mem_heap_free_block_free(pmVar5);
}
while (pmVar14 != (mem_block_info_t *)0x0) {
pmVar3 = *(mem_block_info_t **)(pmVar14 + 0x20);
/* try { // try from 00c62334 to 00c6233b has its CatchHandler @ 00c62385 */
mem_heap_block_free(pmVar5,pmVar14);
pmVar14 = pmVar3;
}
/* try { // try from 00c62345 to 00c62349 has its CatchHandler @ 00c6237b */
mtr_buf_t::erase((mtr_buf_t *)&local_290);
/* try { // try from 00c62351 to 00c62355 has its CatchHandler @ 00c62379 */
mtr_buf_t::erase((mtr_buf_t *)&local_4c0);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
|
|
8,550 |
mysql_close_slow_part_cont
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
MK_ASYNC_CONT_BODY_VOID_RETURN(sock)
}
int STDCALL
mysql_close_start(MYSQL *sock)
{
int res;
/* It is legitimate to have NULL sock argument, which will do nothing. */
if (sock && sock->net.pvio)
{
res= mysql_close_slow_part_start(sock);
/* If we need to block, return now and do the rest in mysql_close_cont(). */
if (res)
return res;
}
mysql_close(sock);
return 0;
}
|
O0
|
c
|
mysql_close_slow_part_cont:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpb $0x0, 0x15(%rax)
jne 0x9e2dd
jmp 0x9e26e
movq -0x10(%rbp), %rax
movl $0x7de, 0x90(%rax) # imm = 0x7DE
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x2630f2(%rip), %rax # 0x301380
movq (%rax), %rsi
movl $0x5, %edx
callq 0x60180
movq -0x10(%rbp), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rdi
addq $0x97, %rdi
leaq 0x2630d8(%rip), %rax # 0x301390
movq 0x70(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x60180
movq -0x10(%rbp), %rax
movb $0x0, 0x296(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x9e394
movq -0x20(%rbp), %rax
movb $0x1, 0x14(%rax)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rdi
addq $0x38, %rdi
callq 0xa3e00
movl %eax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x18(%rbp)
jle 0x9e318
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x9e394
movq -0x20(%rbp), %rax
movb $0x0, 0x15(%rax)
cmpl $0x0, -0x18(%rbp)
jge 0x9e38d
jmp 0x9e328
movq -0x10(%rbp), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x263038(%rip), %rax # 0x301380
movq (%rax), %rsi
movl $0x5, %edx
callq 0x60180
movq -0x10(%rbp), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rdi
addq $0x97, %rdi
leaq 0x26301e(%rip), %rax # 0x301390
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x60180
movq -0x10(%rbp), %rax
movb $0x0, 0x296(%rax)
jmp 0x9e38d
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
mysql_close_slow_part_cont:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
cmp byte ptr [rax+15h], 0
jnz short loc_9E2DD
jmp short $+2
loc_9E26E:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 7DEh
mov rdi, [rbp+var_10]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+29Ch], 0
mov rdi, [rbp+var_10]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+296h], 0
mov [rbp+var_4], 0
jmp loc_9E394
loc_9E2DD:
mov rax, [rbp+var_20]
mov byte ptr [rax+14h], 1
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+4], ecx
mov rdi, [rbp+var_20]
add rdi, 38h ; '8'
call my_context_continue
mov [rbp+var_18], eax
mov rax, [rbp+var_20]
mov byte ptr [rax+14h], 0
cmp [rbp+var_18], 0
jle short loc_9E318
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_4], eax
jmp short loc_9E394
loc_9E318:
mov rax, [rbp+var_20]
mov byte ptr [rax+15h], 0
cmp [rbp+var_18], 0
jge short loc_9E38D
jmp short $+2
loc_9E328:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 7D8h
mov rdi, [rbp+var_10]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+29Ch], 0
mov rdi, [rbp+var_10]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+296h], 0
jmp short $+2
loc_9E38D:
mov [rbp+var_4], 0
loc_9E394:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long mysql_close_slow_part_cont(long long a1, unsigned int a2)
{
unsigned int *v3; // [rsp+0h] [rbp-20h]
int v4; // [rsp+8h] [rbp-18h]
v3 = *(unsigned int **)(*(_QWORD *)(a1 + 1152) + 40LL);
if ( *((_BYTE *)v3 + 21) )
{
*((_BYTE *)v3 + 20) = 1;
v3[1] = a2;
v4 = my_context_continue(v3 + 14);
*((_BYTE *)v3 + 20) = 0;
if ( v4 <= 0 )
{
*((_BYTE *)v3 + 21) = 0;
if ( v4 < 0 )
{
*(_DWORD *)(a1 + 144) = 2008;
strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 668) = 0;
strncpy(a1 + 151, client_errors[8], 511LL);
*(_BYTE *)(a1 + 662) = 0;
}
return 0;
}
else
{
return *v3;
}
}
else
{
*(_DWORD *)(a1 + 144) = 2014;
strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 668) = 0;
strncpy(a1 + 151, client_errors[14], 511LL);
*(_BYTE *)(a1 + 662) = 0;
return 0;
}
}
|
mysql_close_slow_part_cont:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x15],0x0
JNZ 0x0019e2dd
JMP 0x0019e26e
LAB_0019e26e:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x7de
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RAX,[0x401380]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00160180
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x29c],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x97
LEA RAX,[0x401390]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x1ff
CALL 0x00160180
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x296],0x0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019e394
LAB_0019e2dd:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x14],0x1
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x4],ECX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x38
CALL 0x001a3e00
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x18],0x0
JLE 0x0019e318
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019e394
LAB_0019e318:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x15],0x0
CMP dword ptr [RBP + -0x18],0x0
JGE 0x0019e38d
JMP 0x0019e328
LAB_0019e328:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RAX,[0x401380]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00160180
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x29c],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x97
LEA RAX,[0x401390]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00160180
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x296],0x0
JMP 0x0019e38d
LAB_0019e38d:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019e394:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 mysql_close_slow_part_cont(long param_1,int4 param_2)
{
int4 *puVar1;
int iVar2;
int4 local_c;
puVar1 = *(int4 **)(*(long *)(param_1 + 0x480) + 0x28);
if (*(char *)((long)puVar1 + 0x15) == '\0') {
*(int4 *)(param_1 + 0x90) = 0x7de;
strncpy((char *)(param_1 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x29c) = 0;
strncpy((char *)(param_1 + 0x97),PTR_s_Commands_out_of_sync__you_can_t_r_00401400,0x1ff);
*(int1 *)(param_1 + 0x296) = 0;
local_c = 0;
}
else {
*(int1 *)(puVar1 + 5) = 1;
puVar1[1] = param_2;
iVar2 = my_context_continue(puVar1 + 0xe);
*(int1 *)(puVar1 + 5) = 0;
if (iVar2 < 1) {
*(int1 *)((long)puVar1 + 0x15) = 0;
if (iVar2 < 0) {
*(int4 *)(param_1 + 0x90) = 0x7d8;
strncpy((char *)(param_1 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x29c) = 0;
strncpy((char *)(param_1 + 0x97),PTR_s_Client_run_out_of_memory_004013d0,0x1ff);
*(int1 *)(param_1 + 0x296) = 0;
}
local_c = 0;
}
else {
local_c = *puVar1;
}
}
return local_c;
}
|
|
8,551 |
ftxui::Screen::ResetPosition[abi:cxx11](bool) const
|
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/screen/screen.cpp
|
std::string Screen::ResetPosition(bool clear) const {
std::stringstream ss;
if (clear) {
ss << "\r"; // MOVE_LEFT;
ss << "\x1b[2K"; // CLEAR_SCREEN;
for (int y = 1; y < dimy_; ++y) {
ss << "\x1B[1A"; // MOVE_UP;
ss << "\x1B[2K"; // CLEAR_LINE;
}
} else {
ss << "\r"; // MOVE_LEFT;
for (int y = 1; y < dimy_; ++y) {
ss << "\x1B[1A"; // MOVE_UP;
}
}
return ss.str();
}
|
O0
|
cpp
|
ftxui::Screen::ResetPosition[abi:cxx11](bool) const:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp # imm = 0x1D0
movq %rdi, -0x1d0(%rbp)
movb %dl, %al
movq %rdi, %rcx
movq %rcx, -0x1c8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0xd3d0
testb $0x1, -0x11(%rbp)
je 0x88584
leaq -0x190(%rbp), %rdi
leaq 0xadfa(%rip), %rsi # 0x932e4
callq 0xd580
jmp 0x884f1
leaq -0x190(%rbp), %rdi
leaq 0xb96c(%rip), %rsi # 0x93e6b
callq 0xd580
jmp 0x88506
movl $0x1, -0x1b0(%rbp)
movq -0x1c0(%rbp), %rcx
movl -0x1b0(%rbp), %eax
cmpl 0x14(%rcx), %eax
jge 0x88582
leaq -0x190(%rbp), %rdi
leaq 0xb940(%rip), %rsi # 0x93e70
callq 0xd580
jmp 0x88537
leaq -0x190(%rbp), %rdi
leaq 0xb926(%rip), %rsi # 0x93e6b
callq 0xd580
jmp 0x8854c
jmp 0x8854e
movl -0x1b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1b0(%rbp)
jmp 0x88510
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a8(%rbp)
movl %eax, -0x1ac(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0xd440
jmp 0x88610
jmp 0x885df
leaq -0x190(%rbp), %rdi
leaq 0xad52(%rip), %rsi # 0x932e4
callq 0xd580
jmp 0x88599
movl $0x1, -0x1b4(%rbp)
movq -0x1c0(%rbp), %rcx
movl -0x1b4(%rbp), %eax
cmpl 0x14(%rcx), %eax
jge 0x885dd
leaq -0x190(%rbp), %rdi
leaq 0xb8ad(%rip), %rsi # 0x93e70
callq 0xd580
jmp 0x885ca
jmp 0x885cc
movl -0x1b4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1b4(%rbp)
jmp 0x885a3
jmp 0x885df
movq -0x1d0(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0xd570
jmp 0x885f4
leaq -0x1a0(%rbp), %rdi
callq 0xd440
movq -0x1c8(%rbp), %rax
addq $0x1d0, %rsp # imm = 0x1D0
popq %rbp
retq
movq -0x1a8(%rbp), %rdi
callq 0xda90
nopl (%rax)
|
_ZNK5ftxui6Screen13ResetPositionB5cxx11Eb:
push rbp
mov rbp, rsp
sub rsp, 1D0h
mov [rbp+var_1D0], rdi
mov al, dl
mov rcx, rdi
mov [rbp+var_1C8], rcx
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
and al, 1
mov [rbp+var_11], al
mov rax, [rbp+var_10]
mov [rbp+var_1C0], rax
lea rdi, [rbp+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
test [rbp+var_11], 1
jz loc_88584
lea rdi, [rbp+var_190]
lea rsi, unk_932E4
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_884F1:
lea rdi, [rbp+var_190]
lea rsi, a2k; "\x1B[2K"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_88506:
mov [rbp+var_1B0], 1
loc_88510:
mov rcx, [rbp+var_1C0]
mov eax, [rbp+var_1B0]
cmp eax, [rcx+14h]
jge short loc_88582
lea rdi, [rbp+var_190]
lea rsi, a1a; "\x1B[1A"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_88537:
lea rdi, [rbp+var_190]
lea rsi, a2k; "\x1B[2K"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_8854C:
jmp short $+2
loc_8854E:
mov eax, [rbp+var_1B0]
add eax, 1
mov [rbp+var_1B0], eax
jmp short loc_88510
mov rcx, rax
mov eax, edx
mov [rbp+var_1A8], rcx
mov [rbp+var_1AC], eax
lea rdi, [rbp+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
jmp loc_88610
loc_88582:
jmp short loc_885DF
loc_88584:
lea rdi, [rbp+var_190]
lea rsi, unk_932E4
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_88599:
mov [rbp+var_1B4], 1
loc_885A3:
mov rcx, [rbp+var_1C0]
mov eax, [rbp+var_1B4]
cmp eax, [rcx+14h]
jge short loc_885DD
lea rdi, [rbp+var_190]
lea rsi, a1a; "\x1B[1A"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_885CA:
jmp short $+2
loc_885CC:
mov eax, [rbp+var_1B4]
add eax, 1
mov [rbp+var_1B4], eax
jmp short loc_885A3
loc_885DD:
jmp short $+2
loc_885DF:
mov rdi, [rbp+var_1D0]
lea rsi, [rbp+var_1A0]
call __ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(void)
jmp short $+2
loc_885F4:
lea rdi, [rbp+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rax, [rbp+var_1C8]
add rsp, 1D0h
pop rbp
retn
loc_88610:
mov rdi, [rbp+var_1A8]
call __Unwind_Resume
|
long long ftxui::Screen::ResetPosition[abi:cxx11](long long a1, long long a2, char a3)
{
int j; // [rsp+1Ch] [rbp-1B4h]
int i; // [rsp+20h] [rbp-1B0h]
_BYTE v6[16]; // [rsp+30h] [rbp-1A0h] BYREF
_BYTE v7[383]; // [rsp+40h] [rbp-190h] BYREF
char v8; // [rsp+1BFh] [rbp-11h]
long long v9; // [rsp+1C0h] [rbp-10h]
long long v10; // [rsp+1C8h] [rbp-8h]
v10 = a1;
v9 = a2;
v8 = a3 & 1;
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v6);
if ( (v8 & 1) != 0 )
{
std::operator<<<std::char_traits<char>>(v7, &unk_932E4);
std::operator<<<std::char_traits<char>>(v7, "\x1B[2K");
for ( i = 1; i < *(_DWORD *)(a2 + 20); ++i )
{
std::operator<<<std::char_traits<char>>(v7, "\x1B[1A");
std::operator<<<std::char_traits<char>>(v7, "\x1B[2K");
}
}
else
{
std::operator<<<std::char_traits<char>>(v7, &unk_932E4);
for ( j = 1; j < *(_DWORD *)(a2 + 20); ++j )
std::operator<<<std::char_traits<char>>(v7, "\x1B[1A");
}
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(a1, v6);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v6);
return a1;
}
|
ResetPosition[abi:cxx11]:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1d0
MOV qword ptr [RBP + -0x1d0],RDI
MOV AL,DL
MOV RCX,RDI
MOV qword ptr [RBP + -0x1c8],RCX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
AND AL,0x1
MOV byte ptr [RBP + -0x11],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x1c0],RAX
LEA RDI,[RBP + -0x1a0]
CALL 0x0010d3d0
TEST byte ptr [RBP + -0x11],0x1
JZ 0x00188584
LEA RDI,[RBP + -0x190]
LAB_001884e3:
LEA RSI,[0x1932e4]
CALL 0x0010d580
JMP 0x001884f1
LAB_001884f1:
LEA RDI,[RBP + -0x190]
LEA RSI,[0x193e6b]
CALL 0x0010d580
JMP 0x00188506
LAB_00188506:
MOV dword ptr [RBP + -0x1b0],0x1
LAB_00188510:
MOV RCX,qword ptr [RBP + -0x1c0]
MOV EAX,dword ptr [RBP + -0x1b0]
CMP EAX,dword ptr [RCX + 0x14]
JGE 0x00188582
LEA RDI,[RBP + -0x190]
LEA RSI,[0x193e70]
CALL 0x0010d580
JMP 0x00188537
LAB_00188537:
LEA RDI,[RBP + -0x190]
LEA RSI,[0x193e6b]
CALL 0x0010d580
JMP 0x0018854c
LAB_0018854c:
JMP 0x0018854e
LAB_0018854e:
MOV EAX,dword ptr [RBP + -0x1b0]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1b0],EAX
JMP 0x00188510
LAB_00188582:
JMP 0x001885df
LAB_00188584:
LEA RDI,[RBP + -0x190]
LEA RSI,[0x1932e4]
CALL 0x0010d580
JMP 0x00188599
LAB_00188599:
MOV dword ptr [RBP + -0x1b4],0x1
LAB_001885a3:
MOV RCX,qword ptr [RBP + -0x1c0]
MOV EAX,dword ptr [RBP + -0x1b4]
CMP EAX,dword ptr [RCX + 0x14]
JGE 0x001885dd
LEA RDI,[RBP + -0x190]
LEA RSI,[0x193e70]
CALL 0x0010d580
JMP 0x001885ca
LAB_001885ca:
JMP 0x001885cc
LAB_001885cc:
MOV EAX,dword ptr [RBP + -0x1b4]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1b4],EAX
JMP 0x001885a3
LAB_001885dd:
JMP 0x001885df
LAB_001885df:
MOV RDI,qword ptr [RBP + -0x1d0]
LEA RSI,[RBP + -0x1a0]
CALL 0x0010d570
LAB_001885f2:
JMP 0x001885f4
LAB_001885f4:
LEA RDI,[RBP + -0x1a0]
CALL 0x0010d440
MOV RAX,qword ptr [RBP + -0x1c8]
ADD RSP,0x1d0
POP RBP
RET
|
/* ftxui::Screen::ResetPosition[abi:cxx11](bool) const */
int8 ftxui::Screen::ResetPosition_abi_cxx11_(bool param_1)
{
byte in_DL;
long in_RSI;
int7 in_register_00000039;
int local_1bc;
int local_1b8;
stringstream local_1a8 [16];
ostream local_198 [383];
byte local_19;
int8 local_10;
local_19 = in_DL & 1;
local_10 = CONCAT71(in_register_00000039,param_1);
std::__cxx11::stringstream::stringstream(local_1a8);
if ((local_19 & 1) == 0) {
std::operator<<(local_198,"\r");
for (local_1bc = 1; local_1bc < *(int *)(in_RSI + 0x14); local_1bc = local_1bc + 1) {
std::operator<<(local_198,"\x1b[1A");
}
}
else {
/* try { // try from 001884e3 to 001885f1 has its CatchHandler @ 0018855f */
std::operator<<(local_198,"\r");
std::operator<<(local_198,"\x1b[2K");
for (local_1b8 = 1; local_1b8 < *(int *)(in_RSI + 0x14); local_1b8 = local_1b8 + 1) {
std::operator<<(local_198,"\x1b[1A");
std::operator<<(local_198,"\x1b[2K");
}
}
std::__cxx11::stringstream::str();
std::__cxx11::stringstream::~stringstream(local_1a8);
return CONCAT71(in_register_00000039,param_1);
}
|
|
8,552 |
my_b_append
|
eloqsql/mysys/mf_iocache.c
|
int my_b_append(IO_CACHE *info, const uchar *Buffer, size_t Count)
{
size_t rest_length,length;
MEM_CHECK_DEFINED(Buffer, Count);
/*
Assert that we cannot come here with a shared cache. If we do one
day, we might need to add a call to copy_to_read_buffer().
*/
DBUG_ASSERT(!info->share);
DBUG_ASSERT(!(info->myflags & MY_ENCRYPT));
lock_append_buffer(info);
rest_length= (size_t) (info->write_end - info->write_pos);
if (Count <= rest_length)
goto end;
memcpy(info->write_pos, Buffer, rest_length);
Buffer+=rest_length;
Count-=rest_length;
info->write_pos+=rest_length;
if (my_b_flush_io_cache(info,0))
{
unlock_append_buffer(info);
return 1;
}
if (Count >= IO_SIZE)
{ /* Fill first intern buffer */
length= IO_ROUND_DN(Count);
if (mysql_file_write(info->file,Buffer, length, info->myflags | MY_NABP))
{
unlock_append_buffer(info);
return info->error= -1;
}
Count-=length;
Buffer+=length;
info->end_of_file+=length;
}
end:
memcpy(info->write_pos,Buffer,(size_t) Count);
info->write_pos+=Count;
unlock_append_buffer(info);
return 0;
}
|
O3
|
c
|
my_b_append:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
addq $0x50, %rdi
cmpq $0x0, 0x90(%r14)
movq %rdi, -0x38(%rbp)
jne 0x9af9a
callq 0x2a1f0
movq 0x40(%r14), %rdi
movq 0x48(%r14), %rbx
subq %rdi, %rbx
movq %r13, %r12
subq %rbx, %r12
jbe 0x9aea3
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2a0a0
addq %rbx, 0x40(%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x9a355
testl %eax, %eax
je 0x9aee3
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x9afc5
movq -0x38(%rbp), %rdi
callq 0x2a1c0
movl $0x1, %eax
jmp 0x9aed4
movq %r13, %r12
movq 0x40(%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2a0a0
addq %r12, 0x40(%r14)
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x9afb0
movq -0x38(%rbp), %rdi
callq 0x2a1c0
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq %rbx, %r15
cmpq $0x1000, %r12 # imm = 0x1000
jb 0x9aea6
movl %r12d, %ebx
andl $0xfffff000, %ebx # imm = 0xFFFFF000
movl 0xd4(%r14), %esi
movq 0xf8(%r14), %r13
orq $0x4, %r13
leaq 0x2f5fc7(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq -0x90(%rbp), %rdi
movl %esi, -0x2c(%rbp)
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
movq %rbx, -0x48(%rbp)
jne 0x9afda
movl -0x2c(%rbp), %edi
movq %r15, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x303a4
movq %rax, %rbx
testq %rbx, %rbx
je 0x9af7d
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x9b03c
movq -0x38(%rbp), %rdi
callq 0x2a1c0
movl $0xffffffff, 0xe4(%r14) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x9aed4
movabsq $-0xfffff001, %rax # imm = 0xFFFFFFFF00000FFF
andq %rax, %r12
movq -0x48(%rbp), %rax
addq %rax, %r15
addq %rax, 0x8(%r14)
jmp 0x9aea6
leaq 0x499aa(%rip), %rsi # 0xe494b
movl $0x62b, %edx # imm = 0x62B
callq 0x2ff2f
jmp 0x9ae53
leaq 0x2f5f21(%rip), %rax # 0x390ed8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x9aec9
leaq 0x2f5f0c(%rip), %rax # 0x390ed8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x9ae93
movq %rax, %rcx
leaq 0x2f5ef4(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq 0x4995d(%rip), %rdx # 0xe494b
movq %rcx, -0x40(%rbp)
movq %rcx, %rdi
movq %rbx, %rsi
movl $0x63b, %ecx # imm = 0x63B
callq *0x210(%rax)
movl -0x2c(%rbp), %edi
movq %r15, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x303a4
movq %rbx, %rcx
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
cmoveq %rcx, %rsi
leaq 0x2f5eae(%rip), %rax # 0x390ed8
movq (%rax), %rax
movq -0x40(%rbp), %rdi
callq *0x218(%rax)
jmp 0x9af4a
leaq 0x2f5e95(%rip), %rax # 0x390ed8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x9af5f
|
my_b_append:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r13, rdx
mov r15, rsi
mov r14, rdi
add rdi, 50h ; 'P'
cmp qword ptr [r14+90h], 0
mov [rbp+var_38], rdi
jnz loc_9AF9A
call _pthread_mutex_lock
loc_9AE53:
mov rdi, [r14+40h]
mov rbx, [r14+48h]
sub rbx, rdi
mov r12, r13
sub r12, rbx
jbe short loc_9AEA3
mov rsi, r15
mov rdx, rbx
call _memcpy
add [r14+40h], rbx
mov rdi, r14
xor esi, esi
call my_b_flush_io_cache
test eax, eax
jz short loc_9AEE3
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_9AFC5
loc_9AE93:
mov rdi, [rbp+var_38]
call _pthread_mutex_unlock
mov eax, 1
jmp short loc_9AED4
loc_9AEA3:
mov r12, r13
loc_9AEA6:
mov rdi, [r14+40h]
mov rsi, r15
mov rdx, r12
call _memcpy
add [r14+40h], r12
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_9AFB0
loc_9AEC9:
mov rdi, [rbp+var_38]
call _pthread_mutex_unlock
xor eax, eax
loc_9AED4:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9AEE3:
add r15, rbx
cmp r12, 1000h
jb short loc_9AEA6
mov ebx, r12d
and ebx, 0FFFFF000h
mov esi, [r14+0D4h]
mov r13, [r14+0F8h]
or r13, 4
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_90]
mov [rbp+var_2C], esi
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
mov [rbp+var_48], rbx
jnz loc_9AFDA
mov edi, [rbp+var_2C]
mov rsi, r15
mov rdx, rbx
mov rcx, r13
call my_write
mov rbx, rax
loc_9AF4A:
test rbx, rbx
jz short loc_9AF7D
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_9B03C
loc_9AF5F:
mov rdi, [rbp+var_38]
call _pthread_mutex_unlock
mov dword ptr [r14+0E4h], 0FFFFFFFFh
mov eax, 0FFFFFFFFh
jmp loc_9AED4
loc_9AF7D:
mov rax, 0FFFFFFFF00000FFFh
and r12, rax
mov rax, [rbp+var_48]
add r15, rax
add [r14+8], rax
jmp loc_9AEA6
loc_9AF9A:
lea rsi, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 62Bh
call psi_mutex_lock
jmp loc_9AE53
loc_9AFB0:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_9AEC9
loc_9AFC5:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_9AE93
loc_9AFDA:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_40], rcx
mov rdi, rcx
mov rsi, rbx
mov ecx, 63Bh
call qword ptr [rax+210h]
mov edi, [rbp+var_2C]
mov rsi, r15
mov rdx, rbx
mov rcx, r13
call my_write
mov rcx, rbx
mov rbx, rax
xor esi, esi
test rax, rax
cmovz rsi, rcx
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_40]
call qword ptr [rax+218h]
jmp loc_9AF4A
loc_9B03C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_9AF5F
|
long long my_b_append(long long a1, long long a2, unsigned long long a3)
{
long long v4; // r15
long long v6; // rdi
bool v7; // zf
long long v8; // rdi
unsigned long long v9; // rbx
unsigned long long v10; // r12
long long v12; // r13
long long v13; // rax
long long v14; // rbx
long long v15; // rsi
_BYTE v16[72]; // [rsp+0h] [rbp-90h] BYREF
long long v17; // [rsp+48h] [rbp-48h]
long long v18; // [rsp+50h] [rbp-40h]
long long v19; // [rsp+58h] [rbp-38h]
unsigned int v20; // [rsp+64h] [rbp-2Ch]
v4 = a2;
v6 = a1 + 80;
v7 = *(_QWORD *)(a1 + 144) == 0LL;
v19 = v6;
if ( v7 )
pthread_mutex_lock(v6);
else
psi_mutex_lock(v6, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x62Bu);
v8 = *(_QWORD *)(a1 + 64);
v9 = *(_QWORD *)(a1 + 72) - v8;
v10 = a3 - v9;
if ( a3 <= v9 )
{
v10 = a3;
}
else
{
memcpy(v8, a2, *(_QWORD *)(a1 + 72) - v8);
*(_QWORD *)(a1 + 64) += v9;
if ( (unsigned int)my_b_flush_io_cache((long long *)a1, 0) )
{
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
pthread_mutex_unlock(v19);
return 1LL;
}
v4 = v9 + a2;
if ( v10 >= 0x1000 )
{
v12 = *(_QWORD *)(a1 + 248) | 4LL;
v20 = *(_DWORD *)(a1 + 212);
v13 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v16, v20, 7LL);
v17 = (unsigned int)v10 & 0xFFFFF000;
if ( v13 )
{
v18 = v13;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v13,
v10 & 0xFFFFF000,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1595LL);
v14 = my_write(v20, v4, (unsigned int)v10 & 0xFFFFF000, v12);
v15 = 0LL;
if ( !v14 )
v15 = (unsigned int)v10 & 0xFFFFF000;
((void ( *)(long long, long long))PSI_server[67])(v18, v15);
}
else
{
v14 = my_write(v20, v4, (unsigned int)v10 & 0xFFFFF000, v12);
}
if ( v14 )
{
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
pthread_mutex_unlock(v19);
*(_DWORD *)(a1 + 228) = -1;
return 0xFFFFFFFFLL;
}
v10 &= 0xFFFFFFFF00000FFFLL;
v4 += v17;
*(_QWORD *)(a1 + 8) += v17;
}
}
memcpy(*(_QWORD *)(a1 + 64), v4, v10);
*(_QWORD *)(a1 + 64) += v10;
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
pthread_mutex_unlock(v19);
return 0LL;
}
|
my_b_append:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R13,RDX
MOV R15,RSI
MOV R14,RDI
ADD RDI,0x50
CMP qword ptr [R14 + 0x90],0x0
MOV qword ptr [RBP + -0x38],RDI
JNZ 0x0019af9a
CALL 0x0012a1f0
LAB_0019ae53:
MOV RDI,qword ptr [R14 + 0x40]
MOV RBX,qword ptr [R14 + 0x48]
SUB RBX,RDI
MOV R12,R13
SUB R12,RBX
JBE 0x0019aea3
MOV RSI,R15
MOV RDX,RBX
CALL 0x0012a0a0
ADD qword ptr [R14 + 0x40],RBX
MOV RDI,R14
XOR ESI,ESI
CALL 0x0019a355
TEST EAX,EAX
JZ 0x0019aee3
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x0019afc5
LAB_0019ae93:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0012a1c0
MOV EAX,0x1
JMP 0x0019aed4
LAB_0019aea3:
MOV R12,R13
LAB_0019aea6:
MOV RDI,qword ptr [R14 + 0x40]
MOV RSI,R15
MOV RDX,R12
CALL 0x0012a0a0
ADD qword ptr [R14 + 0x40],R12
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x0019afb0
LAB_0019aec9:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0012a1c0
XOR EAX,EAX
LAB_0019aed4:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019aee3:
ADD R15,RBX
CMP R12,0x1000
JC 0x0019aea6
MOV EBX,R12D
AND EBX,0xfffff000
MOV ESI,dword ptr [R14 + 0xd4]
MOV R13,qword ptr [R14 + 0xf8]
OR R13,0x4
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x90]
MOV dword ptr [RBP + -0x2c],ESI
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
MOV qword ptr [RBP + -0x48],RBX
JNZ 0x0019afda
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R13
CALL 0x001303a4
MOV RBX,RAX
LAB_0019af4a:
TEST RBX,RBX
JZ 0x0019af7d
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x0019b03c
LAB_0019af5f:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0012a1c0
MOV dword ptr [R14 + 0xe4],0xffffffff
MOV EAX,0xffffffff
JMP 0x0019aed4
LAB_0019af7d:
MOV RAX,-0xfffff001
AND R12,RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD R15,RAX
ADD qword ptr [R14 + 0x8],RAX
JMP 0x0019aea6
LAB_0019af9a:
LEA RSI,[0x1e494b]
MOV EDX,0x62b
CALL 0x0012ff2f
JMP 0x0019ae53
LAB_0019afb0:
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0019aec9
LAB_0019afc5:
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0019ae93
LAB_0019afda:
MOV RCX,RAX
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1e494b]
MOV qword ptr [RBP + -0x40],RCX
MOV RDI,RCX
MOV RSI,RBX
MOV ECX,0x63b
CALL qword ptr [RAX + 0x210]
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R13
CALL 0x001303a4
MOV RCX,RBX
MOV RBX,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVZ RSI,RCX
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0x218]
JMP 0x0019af4a
LAB_0019b03c:
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0019af5f
|
int8 my_b_append(long param_1,void *param_2,ulong param_3)
{
int iVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
int1 local_98 [72];
ulong local_50;
long local_48;
pthread_mutex_t *local_40;
int4 local_34;
local_40 = (pthread_mutex_t *)(param_1 + 0x50);
if (*(long *)(param_1 + 0x90) == 0) {
pthread_mutex_lock(local_40);
}
else {
psi_mutex_lock(local_40,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x62b);
}
uVar3 = *(long *)(param_1 + 0x48) - (long)*(void **)(param_1 + 0x40);
uVar4 = param_3 - uVar3;
if (uVar3 <= param_3 && uVar4 != 0) {
memcpy(*(void **)(param_1 + 0x40),param_2,uVar3);
*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + uVar3;
iVar1 = my_b_flush_io_cache(param_1,0);
if (iVar1 != 0) {
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_40);
return 1;
}
param_2 = (void *)((long)param_2 + uVar3);
param_3 = uVar4;
if (0xfff < uVar4) {
uVar3 = (ulong)((uint)uVar4 & 0xfffff000);
local_34 = *(int4 *)(param_1 + 0xd4);
uVar5 = *(ulong *)(param_1 + 0xf8) | 4;
lVar2 = (**(code **)(PSI_server + 0x158))(local_98,local_34,7);
local_50 = uVar3;
if (lVar2 == 0) {
lVar2 = my_write(local_34,param_2,uVar3,uVar5);
}
else {
local_48 = lVar2;
(**(code **)(PSI_server + 0x210))
(lVar2,uVar3,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x63b);
lVar2 = my_write(local_34,param_2,uVar3,uVar5);
uVar5 = 0;
if (lVar2 == 0) {
uVar5 = uVar3;
}
(**(code **)(PSI_server + 0x218))(local_48,uVar5);
}
if (lVar2 != 0) {
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_40);
*(int4 *)(param_1 + 0xe4) = 0xffffffff;
return 0xffffffff;
}
param_3 = uVar4 & 0xffffffff00000fff;
param_2 = (void *)((long)param_2 + local_50);
*(long *)(param_1 + 8) = *(long *)(param_1 + 8) + local_50;
}
}
memcpy(*(void **)(param_1 + 0x40),param_2,param_3);
*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + param_3;
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_40);
return 0;
}
|
|
8,553 |
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool)
|
monkey531[P]llama/common/common.cpp
|
std::string common_detokenize(const struct llama_vocab * vocab, const std::vector<llama_token> & tokens, bool special) {
std::string text;
text.resize(std::max(text.capacity(), tokens.size()));
int32_t n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special);
if (n_chars < 0) {
text.resize(-n_chars);
n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special);
GGML_ASSERT(n_chars <= (int32_t)text.size()); // whitespace trimming is performed after per-token detokenization
}
text.resize(n_chars);
// NOTE: the original tokenizer decodes bytes after collecting the pieces.
return text;
}
|
O1
|
cpp
|
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
sarq $0x2, %rax
cmpq $0x10, %rax
movl $0xf, %esi
cmovaeq %rax, %rsi
xorl %edx, %edx
callq 0x1b250
movq (%r15), %rsi
movq 0x8(%r15), %rdx
subq %rsi, %rdx
shrq $0x2, %rdx
movq (%rbx), %rcx
movl 0x8(%rbx), %r8d
movzbl %bpl, %ebp
movl %ebp, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x1b0d0
testl %eax, %eax
jns 0x79fec
negl %eax
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1b250
movq (%r15), %rsi
movq 0x8(%r15), %rdx
subq %rsi, %rdx
shrq $0x2, %rdx
movq (%rbx), %rcx
movl 0x8(%rbx), %r8d
movl %ebp, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x1b0d0
cmpl 0x8(%rbx), %eax
jg 0x7a009
movslq %eax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1b250
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7b9bd(%rip), %rdi # 0xf59cd
leaq 0x725de(%rip), %rdx # 0xec5f5
leaq 0x7c054(%rip), %rcx # 0xf6072
movl $0x6e2, %esi # imm = 0x6E2
xorl %eax, %eax
callq 0x1bfb0
jmp 0x7a02c
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x7a043
movq (%r12), %rsi
incq %rsi
callq 0x1b930
movq %r14, %rdi
callq 0x1c0d0
|
_Z17common_detokenizeB5cxx11PK11llama_vocabRKSt6vectorIiSaIiEEb:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, ecx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rax, [rdx+8]
sub rax, [rdx]
sar rax, 2
cmp rax, 10h
mov esi, 0Fh
cmovnb rsi, rax
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rsi, [r15]
mov rdx, [r15+8]
sub rdx, rsi
shr rdx, 2
mov rcx, [rbx]
mov r8d, [rbx+8]
movzx ebp, bpl
mov [rsp+38h+var_38], ebp
mov rdi, r14
xor r9d, r9d
call _llama_detokenize
test eax, eax
jns short loc_79FEC
neg eax
mov rdi, rbx
mov rsi, rax
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rsi, [r15]
mov rdx, [r15+8]
sub rdx, rsi
shr rdx, 2
mov rcx, [rbx]
mov r8d, [rbx+8]
mov [rsp+38h+var_38], ebp
mov rdi, r14
xor r9d, r9d
call _llama_detokenize
cmp eax, [rbx+8]
jg short loc_7A009
loc_79FEC:
movsxd rsi, eax
mov rdi, rbx
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_7A009:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsInt32TTe; "n_chars <= (int32_t)text.size()"
mov esi, 6E2h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_7A02C:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_7A043
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A043:
mov rdi, r14
call __Unwind_Resume
|
_QWORD * common_detokenize[abi:cxx11](_QWORD *a1, long long a2, _QWORD *a3, unsigned __int8 a4)
{
_QWORD *v7; // r12
long long v8; // rsi
int v9; // eax
long long v11; // r14
v7 = a1 + 2;
*a1 = a1 + 2;
a1[1] = 0LL;
*((_BYTE *)a1 + 16) = 0;
v8 = 15LL;
if ( (unsigned long long)((long long)(a3[1] - *a3) >> 2) >= 0x10 )
v8 = (long long)(a3[1] - *a3) >> 2;
std::string::resize(a1, v8, 0LL);
v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, a4);
if ( v9 < 0 )
{
std::string::resize(a1, (unsigned int)-v9, 0LL);
v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, a4);
if ( v9 > *((_DWORD *)a1 + 2) )
{
v11 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
1762LL,
"GGML_ASSERT(%s) failed",
"n_chars <= (int32_t)text.size()");
if ( (_QWORD *)*a1 != v7 )
operator delete((void *)*a1, *v7 + 1LL);
_Unwind_Resume(v11);
}
}
std::string::resize(a1, v9, 0LL);
return a1;
}
|
common_detokenize[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,ECX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RAX,qword ptr [RDX + 0x8]
SUB RAX,qword ptr [RDX]
SAR RAX,0x2
CMP RAX,0x10
MOV ESI,0xf
CMOVNC RSI,RAX
LAB_00179f83:
XOR EDX,EDX
CALL 0x0011b250
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
SUB RDX,RSI
SHR RDX,0x2
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RBX + 0x8]
LAB_00179f9f:
MOVZX EBP,BPL
MOV dword ptr [RSP],EBP
MOV RDI,R14
XOR R9D,R9D
CALL 0x0011b0d0
TEST EAX,EAX
JNS 0x00179fec
NEG EAX
MOV RDI,RBX
MOV RSI,RAX
XOR EDX,EDX
CALL 0x0011b250
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
SUB RDX,RSI
SHR RDX,0x2
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RBX + 0x8]
MOV dword ptr [RSP],EBP
MOV RDI,R14
XOR R9D,R9D
CALL 0x0011b0d0
CMP EAX,dword ptr [RBX + 0x8]
JG 0x0017a009
LAB_00179fec:
MOVSXD RSI,EAX
MOV RDI,RBX
XOR EDX,EDX
CALL 0x0011b250
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0017a009:
LEA RDI,[0x1f59cd]
LEA RDX,[0x1ec5f5]
LEA RCX,[0x1f6072]
MOV ESI,0x6e2
XOR EAX,EAX
CALL 0x0011bfb0
|
/* common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int> > const&,
bool) */
llama_vocab * common_detokenize_abi_cxx11_(llama_vocab *param_1,vector *param_2,bool param_3)
{
int iVar1;
ulong uVar2;
int1 in_CL;
int7 in_register_00000011;
long *plVar3;
ulong uVar4;
plVar3 = (long *)CONCAT71(in_register_00000011,param_3);
*(llama_vocab **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (llama_vocab)0x0;
uVar2 = plVar3[1] - *plVar3 >> 2;
uVar4 = 0xf;
if (0xf < uVar2) {
uVar4 = uVar2;
}
/* try { // try from 00179f83 to 00179f89 has its CatchHandler @ 0017a02a */
std::__cxx11::string::resize((ulong)param_1,(char)uVar4);
/* try { // try from 00179f9f to 0017a029 has its CatchHandler @ 0017a02c */
iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,*(int8 *)param_1,
*(int4 *)(param_1 + 8),0,in_CL);
if (iVar1 < 0) {
std::__cxx11::string::resize((ulong)param_1,-(char)iVar1);
iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,
*(int8 *)param_1,*(int4 *)(param_1 + 8),0,in_CL);
if (*(int *)(param_1 + 8) < iVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x6e2
,"GGML_ASSERT(%s) failed","n_chars <= (int32_t)text.size()");
}
}
std::__cxx11::string::resize((ulong)param_1,(char)iVar1);
return param_1;
}
|
|
8,554 |
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool)
|
monkey531[P]llama/common/common.cpp
|
std::string common_detokenize(const struct llama_vocab * vocab, const std::vector<llama_token> & tokens, bool special) {
std::string text;
text.resize(std::max(text.capacity(), tokens.size()));
int32_t n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special);
if (n_chars < 0) {
text.resize(-n_chars);
n_chars = llama_detokenize(vocab, tokens.data(), (int32_t)tokens.size(), &text[0], (int32_t)text.size(), false, special);
GGML_ASSERT(n_chars <= (int32_t)text.size()); // whitespace trimming is performed after per-token detokenization
}
text.resize(n_chars);
// NOTE: the original tokenizer decodes bytes after collecting the pieces.
return text;
}
|
O2
|
cpp
|
common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int>> const&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
sarq $0x2, %rax
cmpq $0x10, %rax
pushq $0xf
popq %rsi
cmovaeq %rax, %rsi
callq 0x23ce0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
subq %rsi, %rdx
shrq $0x2, %rdx
movq (%rbx), %rcx
movl 0x8(%rbx), %r8d
movzbl %bpl, %ebp
movl %ebp, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x230c0
testl %eax, %eax
jns 0x59b5c
negl %eax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x23ce0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
subq %rsi, %rdx
shrq $0x2, %rdx
movq (%rbx), %rcx
movl 0x8(%rbx), %r8d
movl %ebp, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x230c0
cmpl 0x8(%rbx), %eax
jg 0x59b75
movslq %eax, %rsi
movq %rbx, %rdi
callq 0x23ce0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5ce31(%rip), %rdi # 0xb69ad
leaq 0x53a72(%rip), %rdx # 0xad5f5
leaq 0x5d4c8(%rip), %rcx # 0xb7052
movl $0x6e2, %esi # imm = 0x6E2
xorl %eax, %eax
callq 0x23fe0
jmp 0x59b98
movq %rax, %r14
movq %rbx, %rdi
callq 0x24348
movq %r14, %rdi
callq 0x240e0
|
_Z17common_detokenizeB5cxx11PK11llama_vocabRKSt6vectorIiSaIiEEb:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, ecx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
and qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rax, [rdx+8]
sub rax, [rdx]
sar rax, 2
cmp rax, 10h
push 0Fh
pop rsi
cmovnb rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
mov rsi, [r15]
mov rdx, [r15+8]
sub rdx, rsi
shr rdx, 2
mov rcx, [rbx]
mov r8d, [rbx+8]
movzx ebp, bpl
mov [rsp+28h+var_28], ebp
mov rdi, r14
xor r9d, r9d
call _llama_detokenize
test eax, eax
jns short loc_59B5C
neg eax
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
mov rsi, [r15]
mov rdx, [r15+8]
sub rdx, rsi
shr rdx, 2
mov rcx, [rbx]
mov r8d, [rbx+8]
mov [rsp+28h+var_28], ebp
mov rdi, r14
xor r9d, r9d
call _llama_detokenize
cmp eax, [rbx+8]
jg short loc_59B75
loc_59B5C:
movsxd rsi, eax
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
mov rax, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_59B75:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsInt32TTe; "n_chars <= (int32_t)text.size()"
mov esi, 6E2h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_59B98:
mov r14, rax
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
|
_QWORD * common_detokenize[abi:cxx11](_QWORD *a1, long long a2, _QWORD *a3, unsigned __int8 a4)
{
long long v4; // rax
long long v8; // rsi
int v9; // eax
long long v10; // rdx
long long v12; // r14
long long v13; // [rsp+0h] [rbp-28h]
long long v14; // [rsp+0h] [rbp-28h]
HIDWORD(v13) = HIDWORD(v4);
*a1 = a1 + 2;
a1[1] = 0LL;
*((_BYTE *)a1 + 16) = 0;
v8 = 15LL;
if ( (unsigned long long)((long long)(a3[1] - *a3) >> 2) >= 0x10 )
v8 = (long long)(a3[1] - *a3) >> 2;
std::string::resize(a1, v8, a3);
LODWORD(v13) = a4;
v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, v13);
if ( v9 < 0 )
{
std::string::resize(a1, (unsigned int)-v9, v10);
LODWORD(v14) = a4;
v9 = llama_detokenize(a2, *a3, (a3[1] - *a3) >> 2, *a1, *((unsigned int *)a1 + 2), 0LL, v14);
if ( v9 > *((_DWORD *)a1 + 2) )
{
v12 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
1762LL,
"GGML_ASSERT(%s) failed",
"n_chars <= (int32_t)text.size()");
std::string::~string(a1);
_Unwind_Resume(v12);
}
}
std::string::resize(a1, v9, v10);
return a1;
}
|
common_detokenize[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV R15,RDX
MOV R14,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 RAX,qword ptr [RDX + 0x8]
SUB RAX,qword ptr [RDX]
SAR RAX,0x2
CMP RAX,0x10
PUSH 0xf
POP RSI
CMOVNC RSI,RAX
LAB_00159af7:
CALL 0x00123ce0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
SUB RDX,RSI
SHR RDX,0x2
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RBX + 0x8]
LAB_00159b11:
MOVZX EBP,BPL
MOV dword ptr [RSP],EBP
MOV RDI,R14
XOR R9D,R9D
CALL 0x001230c0
TEST EAX,EAX
JNS 0x00159b5c
NEG EAX
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00123ce0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
SUB RDX,RSI
SHR RDX,0x2
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RBX + 0x8]
MOV dword ptr [RSP],EBP
MOV RDI,R14
XOR R9D,R9D
CALL 0x001230c0
CMP EAX,dword ptr [RBX + 0x8]
JG 0x00159b75
LAB_00159b5c:
MOVSXD RSI,EAX
MOV RDI,RBX
CALL 0x00123ce0
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00159b75:
LEA RDI,[0x1b69ad]
LEA RDX,[0x1ad5f5]
LEA RCX,[0x1b7052]
MOV ESI,0x6e2
XOR EAX,EAX
CALL 0x00123fe0
|
/* common_detokenize[abi:cxx11](llama_vocab const*, std::vector<int, std::allocator<int> > const&,
bool) */
llama_vocab * common_detokenize_abi_cxx11_(llama_vocab *param_1,vector *param_2,bool param_3)
{
int iVar1;
int8 in_RAX;
int4 uVar2;
int4 in_ECX;
int7 in_register_00000011;
long *plVar3;
ulong uVar4;
uVar2 = (int4)((ulong)in_RAX >> 0x20);
plVar3 = (long *)CONCAT71(in_register_00000011,param_3);
*(llama_vocab **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (llama_vocab)0x0;
/* try { // try from 00159af7 to 00159afb has its CatchHandler @ 00159b96 */
std::__cxx11::string::resize((ulong)param_1);
/* try { // try from 00159b11 to 00159b95 has its CatchHandler @ 00159b98 */
uVar4 = CONCAT44(uVar2,in_ECX) & 0xffffffff000000ff;
iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,*(int8 *)param_1,
*(int4 *)(param_1 + 8),0,uVar4);
uVar2 = (int4)(uVar4 >> 0x20);
if (iVar1 < 0) {
std::__cxx11::string::resize((ulong)param_1);
iVar1 = llama_detokenize(param_2,*plVar3,(ulong)(plVar3[1] - *plVar3) >> 2,
*(int8 *)param_1,*(int4 *)(param_1 + 8),0,
CONCAT44(uVar2,in_ECX) & 0xffffffff000000ff);
if (*(int *)(param_1 + 8) < iVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x6e2
,"GGML_ASSERT(%s) failed","n_chars <= (int32_t)text.size()");
}
}
std::__cxx11::string::resize((ulong)param_1);
return param_1;
}
|
|
8,555 |
ma_test_if_reopen
|
eloqsql/storage/maria/ma_open.c
|
MARIA_HA *_ma_test_if_reopen(const char *filename)
{
LIST *pos;
for (pos=maria_open_list ; pos ; pos=pos->next)
{
MARIA_HA *info=(MARIA_HA*) pos->data;
MARIA_SHARE *share= info->s;
if (!strcmp(share->unique_file_name.str,filename) && share->last_version)
return info;
}
return 0;
}
|
O0
|
c
|
ma_test_if_reopen:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x417f2d(%rip), %rax # 0x478930
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x60a69
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x5b0(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2a660
cmpl $0x0, %eax
jne 0x60a59
movq -0x28(%rbp), %rax
cmpq $0x0, 0x718(%rax)
je 0x60a59
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x60a71
jmp 0x60a5b
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x60a0a
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ma_test_if_reopen:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
lea rax, maria_open_list
mov rax, [rax]
mov [rbp+var_18], rax
loc_60A0A:
cmp [rbp+var_18], 0
jz short loc_60A69
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rdi, [rax+5B0h]
mov rsi, [rbp+var_10]
call _strcmp
cmp eax, 0
jnz short loc_60A59
mov rax, [rbp+var_28]
cmp qword ptr [rax+718h], 0
jz short loc_60A59
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
jmp short loc_60A71
loc_60A59:
jmp short $+2
loc_60A5B:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
jmp short loc_60A0A
loc_60A69:
mov [rbp+var_8], 0
loc_60A71:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long * ma_test_if_reopen(long long a1)
{
long long v2; // [rsp+8h] [rbp-28h]
long long *v3; // [rsp+10h] [rbp-20h]
long long i; // [rsp+18h] [rbp-18h]
for ( i = maria_open_list; i; i = *(_QWORD *)(i + 8) )
{
v3 = *(long long **)(i + 16);
v2 = *v3;
if ( !(unsigned int)strcmp(*(_QWORD *)(*v3 + 1456), a1) && *(_QWORD *)(v2 + 1816) )
return v3;
}
return 0LL;
}
|
_ma_test_if_reopen:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[0x578930]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
LAB_00160a0a:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00160a69
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x5b0]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0012a660
CMP EAX,0x0
JNZ 0x00160a59
MOV RAX,qword ptr [RBP + -0x28]
CMP qword ptr [RAX + 0x718],0x0
JZ 0x00160a59
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00160a71
LAB_00160a59:
JMP 0x00160a5b
LAB_00160a5b:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00160a0a
LAB_00160a69:
MOV qword ptr [RBP + -0x8],0x0
LAB_00160a71:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
long * _ma_test_if_reopen(char *param_1)
{
long *plVar1;
long lVar2;
int iVar3;
long local_20;
local_20 = maria_open_list;
while( true ) {
if (local_20 == 0) {
return (long *)0x0;
}
plVar1 = *(long **)(local_20 + 0x10);
lVar2 = *plVar1;
iVar3 = strcmp(*(char **)(lVar2 + 0x5b0),param_1);
if ((iVar3 == 0) && (*(long *)(lVar2 + 0x718) != 0)) break;
local_20 = *(long *)(local_20 + 8);
}
return plVar1;
}
|
|
8,556 |
PFS_buffer_scalable_container<PFS_prepared_stmt, 1024, 1024, PFS_buffer_default_array<PFS_prepared_stmt>, PFS_buffer_default_allocator<PFS_prepared_stmt>>::allocate(pfs_dirty_state*)
|
eloqsql/storage/perfschema/pfs_buffer_container.h
|
value_type *allocate(pfs_dirty_state *dirty_state)
{
if (m_full)
{
m_lost++;
return NULL;
}
uint index;
uint monotonic;
uint monotonic_max;
uint current_page_count;
value_type *pfs;
array_type *array;
void *addr;
void * volatile * typed_addr;
void *ptr;
/*
1: Try to find an available record within the existing pages
*/
current_page_count= PFS_atomic::load_u32(& m_max_page_index.m_u32);
if (current_page_count != 0)
{
monotonic= PFS_atomic::load_u32(& m_monotonic.m_u32);
monotonic_max= monotonic + current_page_count;
while (monotonic < monotonic_max)
{
/*
Scan in the [0 .. current_page_count - 1] range,
in parallel with m_monotonic (see below)
*/
index= monotonic % current_page_count;
/* Atomic Load, array= m_pages[index] */
addr= & m_pages[index];
typed_addr= static_cast<void * volatile *>(addr);
ptr= my_atomic_loadptr(typed_addr);
array= static_cast<array_type *>(ptr);
if (array != NULL)
{
pfs= array->allocate(dirty_state);
if (pfs != NULL)
{
/* Keep a pointer to the parent page, for deallocate(). */
pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array);
return pfs;
}
}
/*
Parallel scans collaborate to increase
the common monotonic scan counter.
Note that when all the existing page are full,
one thread will eventually add a new page,
and cause m_max_page_index to increase,
which fools all the modulo logic for scans already in progress,
because the monotonic counter is not folded to the same place
(sometime modulo N, sometime modulo N+1).
This is actually ok: since all the pages are full anyway,
there is nothing to miss, so better increase the monotonic
counter faster and then move on to the detection of new pages,
in part 2: below.
*/
monotonic= PFS_atomic::add_u32(& m_monotonic.m_u32, 1);
};
}
/*
2: Try to add a new page, beyond the m_max_page_index limit
*/
while (current_page_count < m_max_page_count)
{
/* Peek for pages added by collaborating threads */
/* (2-a) Atomic Load, array= m_pages[current_page_count] */
addr= & m_pages[current_page_count];
typed_addr= static_cast<void * volatile *>(addr);
ptr= my_atomic_loadptr(typed_addr);
array= static_cast<array_type *>(ptr);
if (array == NULL)
{
// ==================================================================
// BEGIN CRITICAL SECTION -- buffer expand
// ==================================================================
/*
On a fresh started server, buffers are typically empty.
When a sudden load spike is seen by the server,
multiple threads may want to expand the buffer at the same time.
Using a compare and swap to allow multiple pages to be added,
possibly freeing duplicate pages on collisions,
does not work well because the amount of code involved
when creating a new page can be significant (PFS_thread),
causing MANY collisions between (2-b) and (2-d).
A huge number of collisions (which can happen when thousands
of new connections hits the server after a restart)
leads to a huge memory consumption, and to OOM.
To mitigate this, we use here a mutex,
to enforce that only ONE page is added at a time,
so that scaling the buffer happens in a predictable
and controlled manner.
*/
pthread_mutex_lock(& m_critical_section);
/*
Peek again for pages added by collaborating threads,
this time as the only thread allowed to expand the buffer
*/
/* (2-b) Atomic Load, array= m_pages[current_page_count] */
ptr= my_atomic_loadptr(typed_addr);
array= static_cast<array_type *>(ptr);
if (array == NULL)
{
/* (2-c) Found no page, allocate a new one */
array= new array_type();
builtin_memory_scalable_buffer.count_alloc(sizeof (array_type));
array->m_max= get_page_logical_size(current_page_count);
int rc= m_allocator->alloc_array(array);
if (rc != 0)
{
m_allocator->free_array(array);
delete array;
builtin_memory_scalable_buffer.count_free(sizeof (array_type));
m_lost++;
pthread_mutex_unlock(& m_critical_section);
return NULL;
}
/* Keep a pointer to this container, for static_deallocate(). */
array->m_container= reinterpret_cast<PFS_opaque_container *> (this);
/* (2-d) Atomic STORE, m_pages[current_page_count] = array */
ptr= array;
my_atomic_storeptr(typed_addr, ptr);
/* Advertise the new page */
PFS_atomic::add_u32(& m_max_page_index.m_u32, 1);
}
pthread_mutex_unlock(& m_critical_section);
// ==================================================================
// END CRITICAL SECTION -- buffer expand
// ==================================================================
}
assert(array != NULL);
pfs= array->allocate(dirty_state);
if (pfs != NULL)
{
/* Keep a pointer to the parent page, for deallocate(). */
pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array);
return pfs;
}
current_page_count++;
}
m_lost++;
m_full= true;
return NULL;
}
|
O0
|
c
|
PFS_buffer_scalable_container<PFS_prepared_stmt, 1024, 1024, PFS_buffer_default_array<PFS_prepared_stmt>, PFS_buffer_default_allocator<PFS_prepared_stmt>>::allocate(pfs_dirty_state*):
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
testb $0x1, 0x9(%rax)
je 0x4bbe2
movq -0x88(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x4bf52
movq -0x88(%rbp), %rdi
addq $0x58, %rdi
callq 0x2d480
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x4bcc9
movq -0x88(%rbp), %rdi
addq $0x18, %rdi
callq 0x2d480
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0x4bcc7
movl -0x20(%rbp), %eax
movl -0x28(%rbp), %ecx
xorl %edx, %edx
divl %ecx
movq -0x88(%rbp), %rax
movl %edx, -0x1c(%rbp)
movl -0x1c(%rbp), %ecx
leaq 0xa8(%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x4bcaa
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4c310
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x4bca8
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x7d8(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4bf52
jmp 0x4bcaa
movq -0x88(%rbp), %rdi
addq $0x18, %rdi
movl $0x1, %esi
callq 0x2d580
movl %eax, -0x20(%rbp)
jmp 0x4bc1b
jmp 0x4bcc9
jmp 0x4bccb
movq -0x88(%rbp), %rcx
movl -0x28(%rbp), %eax
cmpq 0x98(%rcx), %rax
jae 0x4bf35
movq -0x88(%rbp), %rax
movl -0x28(%rbp), %ecx
leaq 0xa8(%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x4bef6
movq -0x88(%rbp), %rdi
addq $0x4b0, %rdi # imm = 0x4B0
callq 0x264b0
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x4bee3
movl $0x88, %edi
callq 0x26310
movq %rax, %rdi
movq %rdi, -0xb0(%rbp)
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movaps %xmm0, 0x70(%rdi)
movaps %xmm0, 0x60(%rdi)
movaps %xmm0, 0x50(%rdi)
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
movq $0x0, 0x80(%rdi)
callq 0x4c3f0
jmp 0x4bdb8
movq -0xa8(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x3bf676(%rip), %rdi # 0x40b440
movl $0x88, %esi
callq 0x2d5d0
movq -0x88(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0x4c410
movl %eax, %ecx
movq -0x88(%rbp), %rax
movl %ecx, %ecx
movl %ecx, %edx
movq -0x38(%rbp), %rcx
movq %rdx, 0x50(%rcx)
movq 0x4a8(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x2f670
movl %eax, -0x78(%rbp)
cmpl $0x0, -0x78(%rbp)
je 0x4beab
movq -0x88(%rbp), %rax
movq 0x4a8(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x2fb20
movq -0x38(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, %rax
je 0x4be4e
movq -0xb8(%rbp), %rdi
movl $0x88, %esi
callq 0x26320
leaq 0x3bf5eb(%rip), %rdi # 0x40b440
movl $0x88, %esi
callq 0x2d640
movq -0x88(%rbp), %rdi
movq (%rdi), %rax
addq $0x1, %rax
movq %rax, (%rdi)
addq $0x4b0, %rdi # imm = 0x4B0
callq 0x26260
movq $0x0, -0x8(%rbp)
jmp 0x4bf52
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0x88, %esi
callq 0x26320
jmp 0x4bf5f
movq -0x88(%rbp), %rdi
movq -0x38(%rbp), %rax
movq %rdi, 0x58(%rax)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
xchgq %rax, (%rcx)
addq $0x58, %rdi
movl $0x1, %esi
callq 0x2d580
movq -0x88(%rbp), %rdi
addq $0x4b0, %rdi # imm = 0x4B0
callq 0x26260
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4c310
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x4bf27
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x7d8(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4bf52
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x4bccb
movq -0x88(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movb $0x1, 0x9(%rax)
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x265e0
nopl (%rax,%rax)
|
_ZN29PFS_buffer_scalable_containerI8PFS_userLi128ELi128E14PFS_user_array18PFS_user_allocatorE8allocateEP15pfs_dirty_state:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov [rbp+var_88], rax
test byte ptr [rax+9], 1
jz short loc_4BBE2
mov rax, [rbp+var_88]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov [rbp+var_8], 0
jmp loc_4BF52
loc_4BBE2:
mov rdi, [rbp+var_88]
add rdi, 58h ; 'X'; this
call _ZN10PFS_atomic8load_u32EPj; PFS_atomic::load_u32(uint *)
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jz loc_4BCC9
mov rdi, [rbp+var_88]
add rdi, 18h; this
call _ZN10PFS_atomic8load_u32EPj; PFS_atomic::load_u32(uint *)
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
add eax, [rbp+var_28]
mov [rbp+var_24], eax
loc_4BC1B:
mov eax, [rbp+var_20]
cmp eax, [rbp+var_24]
jnb loc_4BCC7
mov eax, [rbp+var_20]
mov ecx, [rbp+var_28]
xor edx, edx; unsigned int
div ecx
mov rax, [rbp+var_88]
mov [rbp+var_1C], edx
mov ecx, [rbp+var_1C]
lea rax, [rax+rcx*8+0A8h]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_48], rax
mov rax, [rbp+var_48]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jz short loc_4BCAA
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_18]
call _ZN24PFS_buffer_default_arrayI8PFS_userE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_user>::allocate(pfs_dirty_state *)
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_4BCA8
mov rcx, [rbp+var_38]
mov rax, [rbp+var_30]
mov [rax+7D8h], rcx
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
jmp loc_4BF52
loc_4BCA8:
jmp short $+2
loc_4BCAA:
mov rdi, [rbp+var_88]
add rdi, 18h; this
mov esi, (offset dword_0+1); unsigned int *
call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint)
mov [rbp+var_20], eax
jmp loc_4BC1B
loc_4BCC7:
jmp short $+2
loc_4BCC9:
jmp short $+2
loc_4BCCB:
mov rcx, [rbp+var_88]
mov eax, [rbp+var_28]
cmp rax, [rcx+98h]
jnb loc_4BF35
mov rax, [rbp+var_88]
mov ecx, [rbp+var_28]
lea rax, [rax+rcx*8+0A8h]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_48], rax
mov rax, [rbp+var_48]
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jnz loc_4BEF6
mov rdi, [rbp+var_88]
add rdi, 4B0h
call _pthread_mutex_lock
mov rax, [rbp+var_48]
mov rax, [rax]
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jnz loc_4BEE3
mov edi, 88h; unsigned __int64
call __Znwm; operator new(ulong)
mov rdi, rax; this
mov [rbp+var_B0], rdi
mov rax, rdi
mov [rbp+var_A8], rax
xorps xmm0, xmm0
movaps [rbp+var_A0], xmm0
movaps xmmword ptr [rdi+70h], xmm0
movaps xmmword ptr [rdi+60h], xmm0
movaps xmmword ptr [rdi+50h], xmm0
movaps xmmword ptr [rdi+40h], xmm0
movaps xmmword ptr [rdi+30h], xmm0
movaps xmmword ptr [rdi+20h], xmm0
movaps xmmword ptr [rdi+10h], xmm0
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+80h], 0
call _ZN14PFS_user_arrayC2Ev; PFS_user_array::PFS_user_array(void)
jmp short $+2
loc_4BDB8:
mov rax, [rbp+var_A8]
mov [rbp+var_38], rax
lea rdi, builtin_memory_scalable_buffer; this
mov esi, 88h; unsigned __int64
call _ZN24PFS_builtin_memory_class11count_allocEm; PFS_builtin_memory_class::count_alloc(ulong)
mov rdi, [rbp+var_88]
mov esi, [rbp+var_28]
call _ZN29PFS_buffer_scalable_containerI8PFS_userLi128ELi128E14PFS_user_array18PFS_user_allocatorE21get_page_logical_sizeEj; PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator>::get_page_logical_size(uint)
mov ecx, eax
mov rax, [rbp+var_88]
mov ecx, ecx
mov edx, ecx
mov rcx, [rbp+var_38]
mov [rcx+50h], rdx
mov rdi, [rax+4A8h]; this
mov rsi, [rbp+var_38]; PFS_user_array *
call _ZN18PFS_user_allocator11alloc_arrayEP14PFS_user_array; PFS_user_allocator::alloc_array(PFS_user_array *)
mov [rbp+var_78], eax
cmp [rbp+var_78], 0
jz loc_4BEAB
mov rax, [rbp+var_88]
mov rdi, [rax+4A8h]
mov rsi, [rbp+var_38]
call _ZN18PFS_user_allocator10free_arrayEP14PFS_user_array; PFS_user_allocator::free_array(PFS_user_array *)
mov rax, [rbp+var_38]
mov [rbp+var_B8], rax
cmp rax, 0
jz short loc_4BE4E
mov rdi, [rbp+var_B8]; void *
mov esi, 88h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4BE4E:
lea rdi, builtin_memory_scalable_buffer; this
mov esi, 88h; unsigned __int64
call _ZN24PFS_builtin_memory_class10count_freeEm; PFS_builtin_memory_class::count_free(ulong)
mov rdi, [rbp+var_88]
mov rax, [rdi]
add rax, 1
mov [rdi], rax
add rdi, 4B0h
call _pthread_mutex_unlock
mov [rbp+var_8], 0
jmp loc_4BF52
mov rdi, [rbp+var_A8]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_70], rcx
mov [rbp+var_74], eax
mov esi, 88h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_4BF5F
loc_4BEAB:
mov rdi, [rbp+var_88]
mov rax, [rbp+var_38]
mov [rax+58h], rdi
mov rax, [rbp+var_38]
mov [rbp+var_50], rax
mov rcx, [rbp+var_48]
mov rax, [rbp+var_50]
mov [rbp+var_80], rax
mov rax, [rbp+var_80]
xchg rax, [rcx]
add rdi, 58h ; 'X'; this
mov esi, (offset dword_0+1); unsigned int *
call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint)
loc_4BEE3:
mov rdi, [rbp+var_88]
add rdi, 4B0h
call _pthread_mutex_unlock
loc_4BEF6:
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_18]
call _ZN24PFS_buffer_default_arrayI8PFS_userE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_user>::allocate(pfs_dirty_state *)
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_4BF27
mov rcx, [rbp+var_38]
mov rax, [rbp+var_30]
mov [rax+7D8h], rcx
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
jmp short loc_4BF52
loc_4BF27:
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
jmp loc_4BCCB
loc_4BF35:
mov rax, [rbp+var_88]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov byte ptr [rax+9], 1
mov [rbp+var_8], 0
loc_4BF52:
mov rax, [rbp+var_8]
add rsp, 0C0h
pop rbp
retn
loc_4BF5F:
mov rdi, [rbp+var_70]
call __Unwind_Resume
|
long long PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator>::allocate(
long long a1,
unsigned int *a2)
{
_OWORD *v3; // [rsp+18h] [rbp-A8h]
volatile long long *v4; // [rsp+78h] [rbp-48h]
PFS_user_array *v5; // [rsp+88h] [rbp-38h]
PFS_user_array *v6; // [rsp+88h] [rbp-38h]
long long v7; // [rsp+90h] [rbp-30h]
long long v8; // [rsp+90h] [rbp-30h]
unsigned int u32; // [rsp+98h] [rbp-28h]
unsigned int v10; // [rsp+9Ch] [rbp-24h]
unsigned int v11; // [rsp+A0h] [rbp-20h]
if ( (*(_BYTE *)(a1 + 9) & 1) != 0 )
{
++*(_QWORD *)a1;
return 0LL;
}
u32 = PFS_atomic::load_u32((PFS_atomic *)(a1 + 88), a2);
if ( !u32 )
goto LABEL_10;
v11 = PFS_atomic::load_u32((PFS_atomic *)(a1 + 24), a2);
v10 = u32 + v11;
while ( v11 < v10 )
{
v5 = *(PFS_user_array **)(a1 + 8LL * (v11 % u32) + 168);
if ( v5 )
{
v7 = PFS_buffer_default_array<PFS_user>::allocate(v5, a2);
if ( v7 )
{
*(_QWORD *)(v7 + 2008) = v5;
return v7;
}
}
v11 = PFS_atomic::add_u32((PFS_atomic *)(a1 + 24), (unsigned int *)((char *)&dword_0 + 1));
}
while ( 1 )
{
LABEL_10:
if ( (unsigned long long)u32 >= *(_QWORD *)(a1 + 152) )
{
++*(_QWORD *)a1;
*(_BYTE *)(a1 + 9) = 1;
return 0LL;
}
v4 = (volatile long long *)(a1 + 8LL * u32 + 168);
v6 = (PFS_user_array *)*v4;
if ( !*v4 )
break;
LABEL_19:
v8 = PFS_buffer_default_array<PFS_user>::allocate(v6, a2);
if ( v8 )
{
*(_QWORD *)(v8 + 2008) = v6;
return v8;
}
++u32;
}
pthread_mutex_lock(a1 + 1200);
v6 = (PFS_user_array *)*v4;
if ( *v4 )
{
LABEL_18:
pthread_mutex_unlock(a1 + 1200);
goto LABEL_19;
}
v3 = (_OWORD *)operator new(0x88uLL);
v3[7] = 0LL;
v3[6] = 0LL;
v3[5] = 0LL;
v3[4] = 0LL;
v3[3] = 0LL;
v3[2] = 0LL;
v3[1] = 0LL;
*v3 = 0LL;
*((_QWORD *)v3 + 16) = 0LL;
PFS_user_array::PFS_user_array((PFS_user_array *)v3);
v6 = (PFS_user_array *)v3;
PFS_builtin_memory_class::count_alloc((PFS_builtin_memory_class *)&builtin_memory_scalable_buffer, 0x88uLL);
*((_QWORD *)v3 + 10) = (unsigned int)PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator>::get_page_logical_size(
a1,
u32);
if ( !(unsigned int)PFS_user_allocator::alloc_array(*(PFS_user_allocator **)(a1 + 1192), (PFS_user_array *)v3) )
{
*((_QWORD *)v3 + 11) = a1;
_InterlockedExchange64(v4, (long long)v3);
PFS_atomic::add_u32((PFS_atomic *)(a1 + 88), (unsigned int *)((char *)&dword_0 + 1));
goto LABEL_18;
}
PFS_user_allocator::free_array(*(PFS_user_allocator **)(a1 + 1192), (PFS_user_array *)v3);
if ( v3 )
operator delete(v3, 0x88uLL);
PFS_builtin_memory_class::count_free((PFS_builtin_memory_class *)&builtin_memory_scalable_buffer, 0x88uLL);
++*(_QWORD *)a1;
pthread_mutex_unlock(a1 + 1200);
return 0LL;
}
|
allocate:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x88],RAX
TEST byte ptr [RAX + 0x9],0x1
JZ 0x0014bbe2
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014bf52
LAB_0014bbe2:
MOV RDI,qword ptr [RBP + -0x88]
ADD RDI,0x58
CALL 0x0012d480
MOV dword ptr [RBP + -0x28],EAX
CMP dword ptr [RBP + -0x28],0x0
JZ 0x0014bcc9
MOV RDI,qword ptr [RBP + -0x88]
ADD RDI,0x18
CALL 0x0012d480
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],EAX
LAB_0014bc1b:
MOV EAX,dword ptr [RBP + -0x20]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x0014bcc7
MOV EAX,dword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x28]
XOR EDX,EDX
DIV ECX
MOV RAX,qword ptr [RBP + -0x88]
MOV dword ptr [RBP + -0x1c],EDX
MOV ECX,dword ptr [RBP + -0x1c]
LEA RAX,[RAX + RCX*0x8 + 0xa8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JZ 0x0014bcaa
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0014c310
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x0014bca8
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x7d8],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014bf52
LAB_0014bca8:
JMP 0x0014bcaa
LAB_0014bcaa:
MOV RDI,qword ptr [RBP + -0x88]
ADD RDI,0x18
MOV ESI,0x1
CALL 0x0012d580
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0014bc1b
LAB_0014bcc7:
JMP 0x0014bcc9
LAB_0014bcc9:
JMP 0x0014bccb
LAB_0014bccb:
MOV RCX,qword ptr [RBP + -0x88]
MOV EAX,dword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX + 0x98]
JNC 0x0014bf35
MOV RAX,qword ptr [RBP + -0x88]
MOV ECX,dword ptr [RBP + -0x28]
LEA RAX,[RAX + RCX*0x8 + 0xa8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0014bef6
MOV RDI,qword ptr [RBP + -0x88]
ADD RDI,0x4b0
CALL 0x001264b0
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0014bee3
MOV EDI,0x88
CALL 0x00126310
MOV RDI,RAX
MOV qword ptr [RBP + -0xb0],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0xa8],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RDI + 0x70],XMM0
MOVAPS xmmword ptr [RDI + 0x60],XMM0
MOVAPS xmmword ptr [RDI + 0x50],XMM0
MOVAPS xmmword ptr [RDI + 0x40],XMM0
MOVAPS xmmword ptr [RDI + 0x30],XMM0
MOVAPS xmmword ptr [RDI + 0x20],XMM0
MOVAPS xmmword ptr [RDI + 0x10],XMM0
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x80],0x0
LAB_0014bdb1:
CALL 0x0014c3f0
LAB_0014bdb6:
JMP 0x0014bdb8
LAB_0014bdb8:
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[0x50b440]
MOV ESI,0x88
CALL 0x0012d5d0
MOV RDI,qword ptr [RBP + -0x88]
MOV ESI,dword ptr [RBP + -0x28]
CALL 0x0014c410
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x88]
MOV ECX,ECX
MOV EDX,ECX
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RCX + 0x50],RDX
MOV RDI,qword ptr [RAX + 0x4a8]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x0012f670
MOV dword ptr [RBP + -0x78],EAX
CMP dword ptr [RBP + -0x78],0x0
JZ 0x0014beab
MOV RAX,qword ptr [RBP + -0x88]
MOV RDI,qword ptr [RAX + 0x4a8]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x0012fb20
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xb8],RAX
CMP RAX,0x0
JZ 0x0014be4e
MOV RDI,qword ptr [RBP + -0xb8]
MOV ESI,0x88
CALL 0x00126320
LAB_0014be4e:
LEA RDI,[0x50b440]
MOV ESI,0x88
CALL 0x0012d640
MOV RDI,qword ptr [RBP + -0x88]
MOV RAX,qword ptr [RDI]
ADD RAX,0x1
MOV qword ptr [RDI],RAX
ADD RDI,0x4b0
CALL 0x00126260
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014bf52
LAB_0014beab:
MOV RDI,qword ptr [RBP + -0x88]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x58],RDI
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x80]
XCHG qword ptr [RCX],RAX
ADD RDI,0x58
MOV ESI,0x1
CALL 0x0012d580
LAB_0014bee3:
MOV RDI,qword ptr [RBP + -0x88]
ADD RDI,0x4b0
CALL 0x00126260
LAB_0014bef6:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0014c310
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x0014bf27
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x7d8],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014bf52
LAB_0014bf27:
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0014bccb
LAB_0014bf35:
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV byte ptr [RAX + 0x9],0x1
MOV qword ptr [RBP + -0x8],0x0
LAB_0014bf52:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xc0
POP RBP
RET
|
/* PFS_buffer_scalable_container<PFS_user, 128, 128, PFS_user_array,
PFS_user_allocator>::allocate(pfs_dirty_state*) */
long __thiscall
PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator>::allocate
(PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator> *this,
pfs_dirty_state *param_1)
{
PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator> *pPVar1;
PFS_buffer_default_array<PFS_user> *this_00;
uint uVar2;
int iVar3;
long lVar4;
PFS_user_array *local_40;
uint local_30;
uint local_28;
if (((byte)this[9] & 1) == 0) {
local_30 = PFS_atomic::load_u32((uint *)(this + 0x58));
if (local_30 != 0) {
local_28 = PFS_atomic::load_u32((uint *)(this + 0x18));
uVar2 = local_28 + local_30;
while (local_28 < uVar2) {
this_00 = *(PFS_buffer_default_array<PFS_user> **)
(this + (ulong)(local_28 % local_30) * 8 + 0xa8);
if ((this_00 != (PFS_buffer_default_array<PFS_user> *)0x0) &&
(lVar4 = PFS_buffer_default_array<PFS_user>::allocate(this_00,param_1), lVar4 != 0)) {
*(PFS_buffer_default_array<PFS_user> **)(lVar4 + 0x7d8) = this_00;
return lVar4;
}
local_28 = PFS_atomic::add_u32((uint *)(this + 0x18),1);
}
}
for (; (ulong)local_30 < *(ulong *)(this + 0x98); local_30 = local_30 + 1) {
pPVar1 = this + (ulong)local_30 * 8 + 0xa8;
local_40 = *(PFS_user_array **)pPVar1;
if (local_40 == (PFS_user_array *)0x0) {
pthread_mutex_lock((pthread_mutex_t *)(this + 0x4b0));
local_40 = *(PFS_user_array **)pPVar1;
if (local_40 == (PFS_user_array *)0x0) {
local_40 = (PFS_user_array *)operator_new(0x88);
*(int8 *)(local_40 + 0x70) = 0;
*(int8 *)(local_40 + 0x78) = 0;
*(int8 *)(local_40 + 0x60) = 0;
*(int8 *)(local_40 + 0x68) = 0;
*(int8 *)(local_40 + 0x50) = 0;
*(int8 *)(local_40 + 0x58) = 0;
*(int8 *)(local_40 + 0x40) = 0;
*(int8 *)(local_40 + 0x48) = 0;
*(int8 *)(local_40 + 0x30) = 0;
*(int8 *)(local_40 + 0x38) = 0;
*(int8 *)(local_40 + 0x20) = 0;
*(int8 *)(local_40 + 0x28) = 0;
*(int8 *)(local_40 + 0x10) = 0;
*(int8 *)(local_40 + 0x18) = 0;
*(int8 *)local_40 = 0;
*(int8 *)(local_40 + 8) = 0;
*(int8 *)(local_40 + 0x80) = 0;
/* try { // try from 0014bdb1 to 0014bdb5 has its CatchHandler @ 0014be89 */
PFS_user_array::PFS_user_array(local_40);
PFS_builtin_memory_class::count_alloc
((PFS_builtin_memory_class *)builtin_memory_scalable_buffer,0x88);
uVar2 = get_page_logical_size(this,local_30);
*(ulong *)(local_40 + 0x50) = (ulong)uVar2;
iVar3 = PFS_user_allocator::alloc_array(*(PFS_user_allocator **)(this + 0x4a8),local_40);
if (iVar3 != 0) {
PFS_user_allocator::free_array(*(PFS_user_allocator **)(this + 0x4a8),local_40);
if (local_40 != (PFS_user_array *)0x0) {
operator_delete(local_40,0x88);
}
PFS_builtin_memory_class::count_free
((PFS_builtin_memory_class *)builtin_memory_scalable_buffer,0x88);
*(long *)this = *(long *)this + 1;
pthread_mutex_unlock((pthread_mutex_t *)(this + 0x4b0));
return 0;
}
*(PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator> **)
(local_40 + 0x58) = this;
LOCK();
*(PFS_user_array **)pPVar1 = local_40;
UNLOCK();
PFS_atomic::add_u32((uint *)(this + 0x58),1);
}
pthread_mutex_unlock((pthread_mutex_t *)(this + 0x4b0));
}
lVar4 = PFS_buffer_default_array<PFS_user>::allocate
((PFS_buffer_default_array<PFS_user> *)local_40,param_1);
if (lVar4 != 0) {
*(PFS_user_array **)(lVar4 + 0x7d8) = local_40;
return lVar4;
}
}
*(long *)this = *(long *)this + 1;
this[9] = (PFS_buffer_scalable_container<PFS_user,128,128,PFS_user_array,PFS_user_allocator>)0x1
;
}
else {
*(long *)this = *(long *)this + 1;
}
return 0;
}
|
|
8,557 |
PFS_buffer_scalable_container<PFS_prepared_stmt, 1024, 1024, PFS_buffer_default_array<PFS_prepared_stmt>, PFS_buffer_default_allocator<PFS_prepared_stmt>>::allocate(pfs_dirty_state*)
|
eloqsql/storage/perfschema/pfs_buffer_container.h
|
value_type *allocate(pfs_dirty_state *dirty_state)
{
if (m_full)
{
m_lost++;
return NULL;
}
uint index;
uint monotonic;
uint monotonic_max;
uint current_page_count;
value_type *pfs;
array_type *array;
void *addr;
void * volatile * typed_addr;
void *ptr;
/*
1: Try to find an available record within the existing pages
*/
current_page_count= PFS_atomic::load_u32(& m_max_page_index.m_u32);
if (current_page_count != 0)
{
monotonic= PFS_atomic::load_u32(& m_monotonic.m_u32);
monotonic_max= monotonic + current_page_count;
while (monotonic < monotonic_max)
{
/*
Scan in the [0 .. current_page_count - 1] range,
in parallel with m_monotonic (see below)
*/
index= monotonic % current_page_count;
/* Atomic Load, array= m_pages[index] */
addr= & m_pages[index];
typed_addr= static_cast<void * volatile *>(addr);
ptr= my_atomic_loadptr(typed_addr);
array= static_cast<array_type *>(ptr);
if (array != NULL)
{
pfs= array->allocate(dirty_state);
if (pfs != NULL)
{
/* Keep a pointer to the parent page, for deallocate(). */
pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array);
return pfs;
}
}
/*
Parallel scans collaborate to increase
the common monotonic scan counter.
Note that when all the existing page are full,
one thread will eventually add a new page,
and cause m_max_page_index to increase,
which fools all the modulo logic for scans already in progress,
because the monotonic counter is not folded to the same place
(sometime modulo N, sometime modulo N+1).
This is actually ok: since all the pages are full anyway,
there is nothing to miss, so better increase the monotonic
counter faster and then move on to the detection of new pages,
in part 2: below.
*/
monotonic= PFS_atomic::add_u32(& m_monotonic.m_u32, 1);
};
}
/*
2: Try to add a new page, beyond the m_max_page_index limit
*/
while (current_page_count < m_max_page_count)
{
/* Peek for pages added by collaborating threads */
/* (2-a) Atomic Load, array= m_pages[current_page_count] */
addr= & m_pages[current_page_count];
typed_addr= static_cast<void * volatile *>(addr);
ptr= my_atomic_loadptr(typed_addr);
array= static_cast<array_type *>(ptr);
if (array == NULL)
{
// ==================================================================
// BEGIN CRITICAL SECTION -- buffer expand
// ==================================================================
/*
On a fresh started server, buffers are typically empty.
When a sudden load spike is seen by the server,
multiple threads may want to expand the buffer at the same time.
Using a compare and swap to allow multiple pages to be added,
possibly freeing duplicate pages on collisions,
does not work well because the amount of code involved
when creating a new page can be significant (PFS_thread),
causing MANY collisions between (2-b) and (2-d).
A huge number of collisions (which can happen when thousands
of new connections hits the server after a restart)
leads to a huge memory consumption, and to OOM.
To mitigate this, we use here a mutex,
to enforce that only ONE page is added at a time,
so that scaling the buffer happens in a predictable
and controlled manner.
*/
pthread_mutex_lock(& m_critical_section);
/*
Peek again for pages added by collaborating threads,
this time as the only thread allowed to expand the buffer
*/
/* (2-b) Atomic Load, array= m_pages[current_page_count] */
ptr= my_atomic_loadptr(typed_addr);
array= static_cast<array_type *>(ptr);
if (array == NULL)
{
/* (2-c) Found no page, allocate a new one */
array= new array_type();
builtin_memory_scalable_buffer.count_alloc(sizeof (array_type));
array->m_max= get_page_logical_size(current_page_count);
int rc= m_allocator->alloc_array(array);
if (rc != 0)
{
m_allocator->free_array(array);
delete array;
builtin_memory_scalable_buffer.count_free(sizeof (array_type));
m_lost++;
pthread_mutex_unlock(& m_critical_section);
return NULL;
}
/* Keep a pointer to this container, for static_deallocate(). */
array->m_container= reinterpret_cast<PFS_opaque_container *> (this);
/* (2-d) Atomic STORE, m_pages[current_page_count] = array */
ptr= array;
my_atomic_storeptr(typed_addr, ptr);
/* Advertise the new page */
PFS_atomic::add_u32(& m_max_page_index.m_u32, 1);
}
pthread_mutex_unlock(& m_critical_section);
// ==================================================================
// END CRITICAL SECTION -- buffer expand
// ==================================================================
}
assert(array != NULL);
pfs= array->allocate(dirty_state);
if (pfs != NULL)
{
/* Keep a pointer to the parent page, for deallocate(). */
pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array);
return pfs;
}
current_page_count++;
}
m_lost++;
m_full= true;
return NULL;
}
|
O3
|
c
|
PFS_buffer_scalable_container<PFS_prepared_stmt, 1024, 1024, PFS_buffer_default_array<PFS_prepared_stmt>, PFS_buffer_default_allocator<PFS_prepared_stmt>>::allocate(pfs_dirty_state*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, %rbx
cmpb $0x1, 0x9(%rdi)
jne 0x39940
incq (%rbx)
jmp 0x39a9a
movl 0x58(%rbx), %r12d
testl %r12d, %r12d
je 0x39988
movl 0x18(%rbx), %eax
leal (%rax,%r12), %r14d
cmpl %r14d, %eax
jae 0x39988
xorl %edx, %edx
divl %r12d
movq 0xa8(%rbx,%rdx,8), %r15
testq %r15, %r15
je 0x3997c
movq %r15, %rdi
movq -0x38(%rbp), %rsi
callq 0x39b04
testq %rax, %rax
jne 0x39ab1
movl $0x1, %eax
lock
xaddl %eax, 0x18(%rbx)
jmp 0x39950
cmpq %r12, 0x98(%rbx)
jbe 0x39a93
leaq 0x20b0(%rbx), %r14
leal 0x1(%r12), %r15d
movl $0xc0, %eax
addq 0x2dd60b(%rip), %rax # 0x316fb8
movq %rax, -0x48(%rbp)
movq %r14, -0x30(%rbp)
movq 0xa8(%rbx,%r12,8), %r13
movl %r15d, %eax
movq %rax, -0x40(%rbp)
testq %r13, %r13
jne 0x39a67
movq %r14, %rdi
callq 0x264d0
movq 0xa8(%rbx,%r12,8), %r13
testq %r13, %r13
jne 0x39a5f
movl $0x60, %edi
callq 0x26330
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x40(%rax)
movaps %xmm0, 0x50(%rax)
movl $0x60, %esi
movq -0x48(%rbp), %rdi
callq 0x2efaa
movq -0x40(%rbp), %rax
cmpq %rax, 0x98(%rbx)
movl 0xa0(%rbx), %eax
movl $0x400, %ecx # imm = 0x400
cmovaq %rcx, %rax
movq %rax, 0x50(%r13)
movq 0x20a8(%rbx), %rdi
movq %r13, %rsi
callq 0x39b66
testl %eax, %eax
jne 0x39ab7
movq %rbx, 0x58(%r13)
movq %r13, %rax
xchgq %rax, 0xa8(%rbx,%r12,8)
lock
incl 0x58(%rbx)
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x26250
movq %r13, %rdi
movq -0x38(%rbp), %rsi
callq 0x39b04
testq %rax, %rax
jne 0x39aab
incl %r15d
movq -0x40(%rbp), %rax
movq %rax, %r12
cmpq %rax, 0x98(%rbx)
movq -0x30(%rbp), %r14
ja 0x399b5
incq (%rbx)
movb $0x1, 0x9(%rbx)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x8(%rax)
jmp 0x39a9c
movq %r15, 0x8(%rax)
jmp 0x39a9c
movq 0x20a8(%rbx), %rax
movq (%rax), %rdi
movq 0x48(%r13), %rcx
movq 0x50(%r13), %rsi
movl $0x80, %edx
callq 0x2ce61
movl $0x60, %esi
movq %r13, %rdi
callq 0x26340
movl $0xc0, %edi
addq 0x2dd4cc(%rip), %rdi # 0x316fb8
movl $0x60, %esi
callq 0x2efe0
incq (%rbx)
movq -0x30(%rbp), %rdi
callq 0x26250
jmp 0x39a9a
|
_ZN29PFS_buffer_scalable_containerI9PFS_mutexLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rbp+var_38], rsi
mov rbx, rdi
cmp byte ptr [rdi+9], 1
jnz short loc_39940
inc qword ptr [rbx]
jmp loc_39A9A
loc_39940:
mov r12d, [rbx+58h]
test r12d, r12d
jz short loc_39988
mov eax, [rbx+18h]
lea r14d, [rax+r12]
loc_39950:
cmp eax, r14d
jnb short loc_39988
xor edx, edx
div r12d
mov r15, [rbx+rdx*8+0A8h]
test r15, r15
jz short loc_3997C
mov rdi, r15
mov rsi, [rbp+var_38]
call _ZN24PFS_buffer_default_arrayI9PFS_mutexE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_mutex>::allocate(pfs_dirty_state *)
test rax, rax
jnz loc_39AB1
loc_3997C:
mov eax, 1
lock xadd [rbx+18h], eax
jmp short loc_39950
loc_39988:
cmp [rbx+98h], r12
jbe loc_39A93
lea r14, [rbx+20B0h]
lea r15d, [r12+1]
mov eax, 0C0h
add rax, cs:builtin_memory_scalable_buffer_ptr
mov [rbp+var_48], rax
mov [rbp+var_30], r14
loc_399B5:
mov r13, [rbx+r12*8+0A8h]
mov eax, r15d
mov [rbp+var_40], rax
test r13, r13
jnz loc_39A67
mov rdi, r14
call _pthread_mutex_lock
mov r13, [rbx+r12*8+0A8h]
test r13, r13
jnz short loc_39A5F
mov edi, 60h ; '`'; unsigned __int64
call __Znwm; operator new(ulong)
mov r13, rax
xorps xmm0, xmm0
movaps xmmword ptr [rax], xmm0
movaps xmmword ptr [rax+10h], xmm0
movaps xmmword ptr [rax+20h], xmm0
movaps xmmword ptr [rax+30h], xmm0
movaps xmmword ptr [rax+40h], xmm0
movaps xmmword ptr [rax+50h], xmm0
mov esi, 60h ; '`'; unsigned __int64
mov rdi, [rbp+var_48]; this
call _ZN15PFS_memory_stat19count_builtin_allocEm; PFS_memory_stat::count_builtin_alloc(ulong)
mov rax, [rbp+var_40]
cmp [rbx+98h], rax
mov eax, [rbx+0A0h]
mov ecx, 400h
cmova rax, rcx
mov [r13+50h], rax
mov rdi, [rbx+20A8h]
mov rsi, r13
call _ZN28PFS_buffer_default_allocatorI9PFS_mutexE11alloc_arrayEP24PFS_buffer_default_arrayIS0_E; PFS_buffer_default_allocator<PFS_mutex>::alloc_array(PFS_buffer_default_array<PFS_mutex> *)
test eax, eax
jnz short loc_39AB7
mov [r13+58h], rbx
mov rax, r13
xchg rax, [rbx+r12*8+0A8h]
lock inc dword ptr [rbx+58h]
mov r14, [rbp+var_30]
loc_39A5F:
mov rdi, r14
call _pthread_mutex_unlock
loc_39A67:
mov rdi, r13
mov rsi, [rbp+var_38]
call _ZN24PFS_buffer_default_arrayI9PFS_mutexE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_mutex>::allocate(pfs_dirty_state *)
test rax, rax
jnz short loc_39AAB
inc r15d
mov rax, [rbp+var_40]
mov r12, rax
cmp [rbx+98h], rax
mov r14, [rbp+var_30]
ja loc_399B5
loc_39A93:
inc qword ptr [rbx]
mov byte ptr [rbx+9], 1
loc_39A9A:
xor eax, eax
loc_39A9C:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_39AAB:
mov [rax+8], r13
jmp short loc_39A9C
loc_39AB1:
mov [rax+8], r15
jmp short loc_39A9C
loc_39AB7:
mov rax, [rbx+20A8h]
mov rdi, [rax]
mov rcx, [r13+48h]
mov rsi, [r13+50h]
mov edx, 80h
call _Z14pfs_free_arrayP24PFS_builtin_memory_classmmPv; pfs_free_array(PFS_builtin_memory_class *,ulong,ulong,void *)
mov esi, 60h ; '`'; unsigned __int64
mov rdi, r13; void *
call __ZdlPvm; operator delete(void *,ulong)
mov edi, 0C0h
add rdi, cs:builtin_memory_scalable_buffer_ptr; this
mov esi, 60h ; '`'; unsigned __int64
call _ZN15PFS_memory_stat18count_builtin_freeEm; PFS_memory_stat::count_builtin_free(ulong)
inc qword ptr [rbx]
mov rdi, [rbp+var_30]
call _pthread_mutex_unlock
jmp short loc_39A9A
|
long long PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>::allocate(
long long a1,
long long a2)
{
unsigned long long v2; // r12
unsigned __int32 v3; // eax
unsigned __int32 v4; // r14d
long long v5; // rdx
long long v6; // r15
long long result; // rax
long long v8; // r14
unsigned int v9; // r15d
long long v10; // r13
long long v11; // rax
unsigned long long v12; // [rsp+10h] [rbp-40h]
if ( *(_BYTE *)(a1 + 9) == 1 )
{
++*(_QWORD *)a1;
return 0LL;
}
v2 = *(unsigned int *)(a1 + 88);
if ( (_DWORD)v2 )
{
v3 = *(_DWORD *)(a1 + 24);
v4 = v3 + v2;
while ( v3 < v4 )
{
v5 = v3 % (unsigned int)v2;
v6 = *(_QWORD *)(a1 + 8 * v5 + 168);
if ( v6 )
{
result = PFS_buffer_default_array<PFS_mutex>::allocate(*(_QWORD *)(a1 + 8 * v5 + 168), a2);
if ( result )
{
*(_QWORD *)(result + 8) = v6;
return result;
}
}
v3 = _InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 24), 1u);
}
}
if ( *(_QWORD *)(a1 + 152) <= v2 )
{
LABEL_20:
++*(_QWORD *)a1;
*(_BYTE *)(a1 + 9) = 1;
return 0LL;
}
v8 = a1 + 8368;
v9 = v2 + 1;
while ( 1 )
{
v10 = *(_QWORD *)(a1 + 8 * v2 + 168);
v12 = v9;
if ( v10 )
goto LABEL_18;
pthread_mutex_lock(v8);
v10 = *(_QWORD *)(a1 + 8 * v2 + 168);
if ( !v10 )
break;
LABEL_17:
pthread_mutex_unlock(v8);
LABEL_18:
result = PFS_buffer_default_array<PFS_mutex>::allocate(v10, a2);
if ( result )
{
*(_QWORD *)(result + 8) = v10;
return result;
}
++v9;
v2 = v12;
v8 = a1 + 8368;
if ( *(_QWORD *)(a1 + 152) <= v12 )
goto LABEL_20;
}
v10 = operator new(0x60uLL);
*(_OWORD *)v10 = 0LL;
*(_OWORD *)(v10 + 16) = 0LL;
*(_OWORD *)(v10 + 32) = 0LL;
*(_OWORD *)(v10 + 48) = 0LL;
*(_OWORD *)(v10 + 64) = 0LL;
*(_OWORD *)(v10 + 80) = 0LL;
PFS_memory_stat::count_builtin_alloc((PFS_memory_stat *)&builtin_memory_scalable_buffer[12], 0x60uLL);
v11 = *(unsigned int *)(a1 + 160);
if ( *(_QWORD *)(a1 + 152) > (unsigned long long)v9 )
v11 = 1024LL;
*(_QWORD *)(v10 + 80) = v11;
if ( !(unsigned int)PFS_buffer_default_allocator<PFS_mutex>::alloc_array(*(_QWORD *)(a1 + 8360), v10) )
{
*(_QWORD *)(v10 + 88) = a1;
_InterlockedExchange64((volatile long long *)(a1 + 8 * v2 + 168), v10);
_InterlockedIncrement((volatile signed __int32 *)(a1 + 88));
v8 = a1 + 8368;
goto LABEL_17;
}
pfs_free_array(**(_QWORD **)(a1 + 8360), *(_QWORD *)(v10 + 80), 128LL, *(_QWORD *)(v10 + 72));
operator delete((void *)v10, 0x60uLL);
PFS_memory_stat::count_builtin_free(&builtin_memory_scalable_buffer[12], 0x60uLL);
++*(_QWORD *)a1;
pthread_mutex_unlock(a1 + 8368);
return 0LL;
}
|
allocate:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RBP + -0x38],RSI
MOV RBX,RDI
CMP byte ptr [RDI + 0x9],0x1
JNZ 0x00139940
INC qword ptr [RBX]
JMP 0x00139a9a
LAB_00139940:
MOV R12D,dword ptr [RBX + 0x58]
TEST R12D,R12D
JZ 0x00139988
MOV EAX,dword ptr [RBX + 0x18]
LEA R14D,[RAX + R12*0x1]
LAB_00139950:
CMP EAX,R14D
JNC 0x00139988
XOR EDX,EDX
DIV R12D
MOV R15,qword ptr [RBX + RDX*0x8 + 0xa8]
TEST R15,R15
JZ 0x0013997c
MOV RDI,R15
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00139b04
TEST RAX,RAX
JNZ 0x00139ab1
LAB_0013997c:
MOV EAX,0x1
XADD.LOCK dword ptr [RBX + 0x18],EAX
JMP 0x00139950
LAB_00139988:
CMP qword ptr [RBX + 0x98],R12
JBE 0x00139a93
LEA R14,[RBX + 0x20b0]
LEA R15D,[R12 + 0x1]
MOV EAX,0xc0
ADD RAX,qword ptr [0x00416fb8]
MOV qword ptr [RBP + -0x48],RAX
MOV qword ptr [RBP + -0x30],R14
LAB_001399b5:
MOV R13,qword ptr [RBX + R12*0x8 + 0xa8]
MOV EAX,R15D
MOV qword ptr [RBP + -0x40],RAX
TEST R13,R13
JNZ 0x00139a67
MOV RDI,R14
CALL 0x001264d0
MOV R13,qword ptr [RBX + R12*0x8 + 0xa8]
TEST R13,R13
JNZ 0x00139a5f
MOV EDI,0x60
CALL 0x00126330
MOV R13,RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RAX],XMM0
MOVAPS xmmword ptr [RAX + 0x10],XMM0
MOVAPS xmmword ptr [RAX + 0x20],XMM0
MOVAPS xmmword ptr [RAX + 0x30],XMM0
MOVAPS xmmword ptr [RAX + 0x40],XMM0
MOVAPS xmmword ptr [RAX + 0x50],XMM0
MOV ESI,0x60
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x0012efaa
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RBX + 0x98],RAX
MOV EAX,dword ptr [RBX + 0xa0]
MOV ECX,0x400
CMOVA RAX,RCX
MOV qword ptr [R13 + 0x50],RAX
MOV RDI,qword ptr [RBX + 0x20a8]
MOV RSI,R13
CALL 0x00139b66
TEST EAX,EAX
JNZ 0x00139ab7
MOV qword ptr [R13 + 0x58],RBX
MOV RAX,R13
XCHG qword ptr [RBX + R12*0x8 + 0xa8],RAX
INC.LOCK dword ptr [RBX + 0x58]
MOV R14,qword ptr [RBP + -0x30]
LAB_00139a5f:
MOV RDI,R14
CALL 0x00126250
LAB_00139a67:
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00139b04
TEST RAX,RAX
JNZ 0x00139aab
INC R15D
MOV RAX,qword ptr [RBP + -0x40]
MOV R12,RAX
CMP qword ptr [RBX + 0x98],RAX
MOV R14,qword ptr [RBP + -0x30]
JA 0x001399b5
LAB_00139a93:
INC qword ptr [RBX]
MOV byte ptr [RBX + 0x9],0x1
LAB_00139a9a:
XOR EAX,EAX
LAB_00139a9c:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00139aab:
MOV qword ptr [RAX + 0x8],R13
JMP 0x00139a9c
LAB_00139ab1:
MOV qword ptr [RAX + 0x8],R15
JMP 0x00139a9c
LAB_00139ab7:
MOV RAX,qword ptr [RBX + 0x20a8]
MOV RDI,qword ptr [RAX]
MOV RCX,qword ptr [R13 + 0x48]
MOV RSI,qword ptr [R13 + 0x50]
MOV EDX,0x80
CALL 0x0012ce61
MOV ESI,0x60
MOV RDI,R13
CALL 0x00126340
MOV EDI,0xc0
ADD RDI,qword ptr [0x00416fb8]
MOV ESI,0x60
CALL 0x0012efe0
INC qword ptr [RBX]
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00126250
JMP 0x00139a9a
|
/* PFS_buffer_scalable_container<PFS_mutex, 1024, 1024, PFS_buffer_default_array<PFS_mutex>,
PFS_buffer_default_allocator<PFS_mutex> >::allocate(pfs_dirty_state*) */
long __thiscall
PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>
::allocate(PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>
*this,pfs_dirty_state *param_1)
{
PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>
*pPVar1;
pthread_mutex_t *__mutex;
uint uVar2;
int iVar3;
long lVar4;
PFS_memory_stat *this_00;
ulong uVar5;
PFS_buffer_default_array<PFS_mutex> *pPVar6;
ulong uVar7;
ulong uVar8;
uint uVar9;
uint uVar10;
if (this[9] ==
(PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>
)0x1) {
*(long *)this = *(long *)this + 1;
}
else {
uVar10 = *(uint *)(this + 0x58);
uVar8 = (ulong)uVar10;
if (uVar10 != 0) {
uVar2 = *(uint *)(this + 0x18);
uVar9 = uVar2 + uVar10;
while (uVar2 < uVar9) {
pPVar6 = *(PFS_buffer_default_array<PFS_mutex> **)(this + ((ulong)uVar2 % uVar8) * 8 + 0xa8)
;
if ((pPVar6 != (PFS_buffer_default_array<PFS_mutex> *)0x0) &&
(lVar4 = PFS_buffer_default_array<PFS_mutex>::allocate(pPVar6,param_1), lVar4 != 0)) {
*(PFS_buffer_default_array<PFS_mutex> **)(lVar4 + 8) = pPVar6;
return lVar4;
}
LOCK();
pPVar1 = this + 0x18;
uVar2 = *(uint *)pPVar1;
*(uint *)pPVar1 = *(uint *)pPVar1 + 1;
UNLOCK();
}
}
if (uVar8 < *(ulong *)(this + 0x98)) {
__mutex = (pthread_mutex_t *)(this + 0x20b0);
this_00 = (PFS_memory_stat *)(PTR_builtin_memory_scalable_buffer_00416fb8 + 0xc0);
do {
uVar10 = uVar10 + 1;
pPVar6 = *(PFS_buffer_default_array<PFS_mutex> **)(this + uVar8 * 8 + 0xa8);
uVar5 = (ulong)uVar10;
if (pPVar6 == (PFS_buffer_default_array<PFS_mutex> *)0x0) {
pthread_mutex_lock(__mutex);
pPVar6 = *(PFS_buffer_default_array<PFS_mutex> **)(this + uVar8 * 8 + 0xa8);
if (pPVar6 == (PFS_buffer_default_array<PFS_mutex> *)0x0) {
pPVar6 = (PFS_buffer_default_array<PFS_mutex> *)operator_new(0x60);
*(int8 *)pPVar6 = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 8) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x10) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x18) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x20) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x28) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x30) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x38) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x40) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x48) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x50) = 0;
*(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x58) = 0;
PFS_memory_stat::count_builtin_alloc(this_00,0x60);
uVar7 = (ulong)*(uint *)(this + 0xa0);
if (uVar5 < *(ulong *)(this + 0x98)) {
uVar7 = 0x400;
}
*(ulong *)((PFS_buffer_default_array *)pPVar6 + 0x50) = uVar7;
iVar3 = PFS_buffer_default_allocator<PFS_mutex>::alloc_array
(*(PFS_buffer_default_allocator<PFS_mutex> **)(this + 0x20a8),
(PFS_buffer_default_array *)pPVar6);
if (iVar3 != 0) {
pfs_free_array((PFS_builtin_memory_class *)**(int8 **)(this + 0x20a8),
*(ulong *)((PFS_buffer_default_array *)pPVar6 + 0x50),0x80,
*(void **)((PFS_buffer_default_array *)pPVar6 + 0x48));
operator_delete(pPVar6,0x60);
PFS_memory_stat::count_builtin_free
((PFS_memory_stat *)(PTR_builtin_memory_scalable_buffer_00416fb8 + 0xc0),
0x60);
*(long *)this = *(long *)this + 1;
pthread_mutex_unlock(__mutex);
return 0;
}
*(PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>
**)((PFS_buffer_default_array *)pPVar6 + 0x58) = this;
LOCK();
*(PFS_buffer_default_array<PFS_mutex> **)(this + uVar8 * 8 + 0xa8) = pPVar6;
UNLOCK();
LOCK();
*(int *)(this + 0x58) = *(int *)(this + 0x58) + 1;
UNLOCK();
}
pthread_mutex_unlock(__mutex);
}
lVar4 = PFS_buffer_default_array<PFS_mutex>::allocate(pPVar6,param_1);
if (lVar4 != 0) {
*(PFS_buffer_default_array<PFS_mutex> **)(lVar4 + 8) = pPVar6;
return lVar4;
}
uVar8 = uVar5;
} while (uVar5 < *(ulong *)(this + 0x98));
}
*(long *)this = *(long *)this + 1;
this[9] = (PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>
)0x1;
}
return 0;
}
|
|
8,558 |
mz_adler32
|
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
|
mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len) {
mz_uint32 i, s1 = (mz_uint32)(adler & 0xffff), s2 = (mz_uint32)(adler >> 16);
size_t block_len = buf_len % 5552;
if (!ptr)
return MZ_ADLER32_INIT;
while (buf_len) {
for (i = 0; i + 7 < block_len; i += 8, ptr += 8) {
s1 += ptr[0], s2 += s1;
s1 += ptr[1], s2 += s1;
s1 += ptr[2], s2 += s1;
s1 += ptr[3], s2 += s1;
s1 += ptr[4], s2 += s1;
s1 += ptr[5], s2 += s1;
s1 += ptr[6], s2 += s1;
s1 += ptr[7], s2 += s1;
}
for (; i < block_len; ++i)
s1 += *ptr++, s2 += s1;
s1 %= 65521U, s2 %= 65521U;
buf_len -= block_len;
block_len = 5552;
}
return (s2 << 16) + s1;
}
|
O2
|
c
|
mz_adler32:
testq %rsi, %rsi
je 0x59733
movq %rdx, %rcx
movl $0x15b0, %r8d # imm = 0x15B0
movq %rdx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %r8
movq %rdi, %r10
shrq $0x10, %r10
movzwl %di, %r9d
movl $0xfff1, %edi # imm = 0xFFF1
testq %rcx, %rcx
je 0x5972a
xorl %r11d, %r11d
leal 0x7(%r11), %eax
cmpl %r8d, %eax
jae 0x59700
movzbl (%rsi,%r11), %eax
addl %eax, %r9d
addl %r9d, %r10d
movzbl 0x1(%rsi,%r11), %eax
addl %r9d, %eax
addl %eax, %r10d
movzbl 0x2(%rsi,%r11), %edx
addl %eax, %edx
addl %edx, %r10d
movzbl 0x3(%rsi,%r11), %eax
addl %edx, %eax
addl %eax, %r10d
movzbl 0x4(%rsi,%r11), %edx
addl %eax, %edx
addl %edx, %r10d
movzbl 0x5(%rsi,%r11), %eax
addl %edx, %eax
addl %eax, %r10d
movzbl 0x6(%rsi,%r11), %edx
addl %eax, %edx
addl %edx, %r10d
movzbl 0x7(%rsi,%r11), %r9d
addl %edx, %r9d
addl %r9d, %r10d
addq $0x8, %r11
jmp 0x59689
movzbl (%rsi,%r11), %eax
addl %eax, %r9d
addl %r9d, %r10d
incq %r11
cmpl %r8d, %r11d
jb 0x596f2
movl %r9d, %eax
xorl %edx, %edx
divl %edi
movl %edx, %r9d
movl %r10d, %eax
xorl %edx, %edx
divl %edi
subq %r8, %rcx
addq %r11, %rsi
movl $0x15b0, %r8d # imm = 0x15B0
movl %edx, %r10d
jmp 0x5967d
shll $0x10, %r10d
orl %r9d, %r10d
jmp 0x59737
pushq $0x1
popq %r10
movq %r10, %rax
retq
|
mz_adler32:
test rsi, rsi
jz loc_59733
mov rcx, rdx
mov r8d, 15B0h
mov rax, rdx
xor edx, edx
div r8
mov r8, rdx
mov r10, rdi
shr r10, 10h
movzx r9d, di
mov edi, 0FFF1h
loc_5967D:
test rcx, rcx
jz loc_5972A
xor r11d, r11d
loc_59689:
lea eax, [r11+7]
cmp eax, r8d
jnb short loc_59700
movzx eax, byte ptr [rsi+r11]
add r9d, eax
add r10d, r9d
movzx eax, byte ptr [rsi+r11+1]
add eax, r9d
add r10d, eax
movzx edx, byte ptr [rsi+r11+2]
add edx, eax
add r10d, edx
movzx eax, byte ptr [rsi+r11+3]
add eax, edx
add r10d, eax
movzx edx, byte ptr [rsi+r11+4]
add edx, eax
add r10d, edx
movzx eax, byte ptr [rsi+r11+5]
add eax, edx
add r10d, eax
movzx edx, byte ptr [rsi+r11+6]
add edx, eax
add r10d, edx
movzx r9d, byte ptr [rsi+r11+7]
add r9d, edx
add r10d, r9d
add r11, 8
jmp short loc_59689
loc_596F2:
movzx eax, byte ptr [rsi+r11]
add r9d, eax
add r10d, r9d
inc r11
loc_59700:
cmp r11d, r8d
jb short loc_596F2
mov eax, r9d
xor edx, edx
div edi
mov r9d, edx
mov eax, r10d
xor edx, edx
div edi
sub rcx, r8
add rsi, r11
mov r8d, 15B0h
mov r10d, edx
jmp loc_5967D
loc_5972A:
shl r10d, 10h
or r10d, r9d
jmp short loc_59737
loc_59733:
push 1
pop r10
loc_59737:
mov rax, r10
retn
|
long long mz_adler32(unsigned long long a1, long long a2, unsigned long long a3)
{
unsigned long long v3; // rcx
unsigned long long v4; // r8
unsigned long long v5; // r10
unsigned int v6; // r9d
long long i; // r11
unsigned int v8; // r9d
unsigned int v9; // eax
unsigned int v10; // edx
int v11; // r10d
unsigned int v12; // eax
unsigned int v13; // edx
unsigned int v14; // r10d
unsigned int v15; // eax
unsigned int v16; // edx
if ( !a2 )
return 1LL;
v3 = a3;
v4 = a3 % 0x15B0;
v5 = a1 >> 16;
v6 = (unsigned __int16)a1;
while ( v3 )
{
for ( i = 0LL; (int)i + 7 < (unsigned int)v4; i += 8LL )
{
v8 = *(unsigned __int8 *)(a2 + i) + v6;
v9 = v8 + *(unsigned __int8 *)(a2 + i + 1);
v10 = v9 + *(unsigned __int8 *)(a2 + i + 2);
v11 = v10 + v9 + v8 + v5;
v12 = v10 + *(unsigned __int8 *)(a2 + i + 3);
v13 = v12 + *(unsigned __int8 *)(a2 + i + 4);
v14 = v13 + v12 + v11;
v15 = v13 + *(unsigned __int8 *)(a2 + i + 5);
v16 = v15 + *(unsigned __int8 *)(a2 + i + 6);
v6 = v16 + *(unsigned __int8 *)(a2 + i + 7);
LODWORD(v5) = v6 + v16 + v15 + v14;
}
while ( (unsigned int)i < (unsigned int)v4 )
{
v6 += *(unsigned __int8 *)(a2 + i);
LODWORD(v5) = v6 + v5;
++i;
}
v6 %= 0xFFF1u;
v3 -= v4;
a2 += i;
v4 = 5552LL;
LODWORD(v5) = (unsigned int)v5 % 0xFFF1;
}
return v6 | ((_DWORD)v5 << 16);
}
|
mz_adler32:
TEST RSI,RSI
JZ 0x00159733
MOV RCX,RDX
MOV R8D,0x15b0
MOV RAX,RDX
XOR EDX,EDX
DIV R8
MOV R8,RDX
MOV R10,RDI
SHR R10,0x10
MOVZX R9D,DI
MOV EDI,0xfff1
LAB_0015967d:
TEST RCX,RCX
JZ 0x0015972a
XOR R11D,R11D
LAB_00159689:
LEA EAX,[R11 + 0x7]
CMP EAX,R8D
JNC 0x00159700
MOVZX EAX,byte ptr [RSI + R11*0x1]
ADD R9D,EAX
ADD R10D,R9D
MOVZX EAX,byte ptr [RSI + R11*0x1 + 0x1]
ADD EAX,R9D
ADD R10D,EAX
MOVZX EDX,byte ptr [RSI + R11*0x1 + 0x2]
ADD EDX,EAX
ADD R10D,EDX
MOVZX EAX,byte ptr [RSI + R11*0x1 + 0x3]
ADD EAX,EDX
ADD R10D,EAX
MOVZX EDX,byte ptr [RSI + R11*0x1 + 0x4]
ADD EDX,EAX
ADD R10D,EDX
MOVZX EAX,byte ptr [RSI + R11*0x1 + 0x5]
ADD EAX,EDX
ADD R10D,EAX
MOVZX EDX,byte ptr [RSI + R11*0x1 + 0x6]
ADD EDX,EAX
ADD R10D,EDX
MOVZX R9D,byte ptr [RSI + R11*0x1 + 0x7]
ADD R9D,EDX
ADD R10D,R9D
ADD R11,0x8
JMP 0x00159689
LAB_001596f2:
MOVZX EAX,byte ptr [RSI + R11*0x1]
ADD R9D,EAX
ADD R10D,R9D
INC R11
LAB_00159700:
CMP R11D,R8D
JC 0x001596f2
MOV EAX,R9D
XOR EDX,EDX
DIV EDI
MOV R9D,EDX
MOV EAX,R10D
XOR EDX,EDX
DIV EDI
SUB RCX,R8
ADD RSI,R11
MOV R8D,0x15b0
MOV R10D,EDX
JMP 0x0015967d
LAB_0015972a:
SHL R10D,0x10
OR R10D,R9D
JMP 0x00159737
LAB_00159733:
PUSH 0x1
POP R10
LAB_00159737:
MOV RAX,R10
RET
|
uint mz_adler32(ulong param_1,long param_2,ulong param_3)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
ulong uVar7;
int iVar8;
uint uVar9;
ulong uVar10;
long lVar11;
if (param_2 == 0) {
uVar9 = 1;
}
else {
uVar10 = param_1 >> 0x10;
param_1 = param_1 & 0xffff;
uVar7 = param_3 % 0x15b0;
while (param_3 != 0) {
for (lVar11 = 0; (int)lVar11 + 7U < (uint)uVar7; lVar11 = lVar11 + 8) {
iVar8 = (int)param_1 + (uint)*(byte *)(param_2 + lVar11);
iVar1 = (uint)*(byte *)(param_2 + 1 + lVar11) + iVar8;
iVar4 = (uint)*(byte *)(param_2 + 2 + lVar11) + iVar1;
iVar2 = (uint)*(byte *)(param_2 + 3 + lVar11) + iVar4;
iVar5 = (uint)*(byte *)(param_2 + 4 + lVar11) + iVar2;
iVar3 = (uint)*(byte *)(param_2 + 5 + lVar11) + iVar5;
iVar6 = (uint)*(byte *)(param_2 + 6 + lVar11) + iVar3;
uVar9 = (uint)*(byte *)(param_2 + 7 + lVar11) + iVar6;
param_1 = (ulong)uVar9;
uVar10 = (ulong)((int)uVar10 + iVar8 + iVar1 + iVar4 + iVar2 + iVar5 + iVar3 + iVar6 + uVar9
);
}
while( true ) {
if ((uint)uVar7 <= (uint)lVar11) break;
uVar9 = (int)param_1 + (uint)*(byte *)(param_2 + lVar11);
param_1 = (ulong)uVar9;
uVar10 = (ulong)((int)uVar10 + uVar9);
lVar11 = lVar11 + 1;
}
param_1 = param_1 % 0xfff1;
uVar10 = (uVar10 & 0xffffffff) % 0xfff1;
param_2 = param_2 + lVar11;
param_3 = param_3 - uVar7;
uVar7 = 0x15b0;
}
uVar9 = (int)uVar10 << 0x10 | (uint)param_1;
}
return uVar9;
}
|
|
8,559 |
mz_adler32
|
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
|
mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len) {
mz_uint32 i, s1 = (mz_uint32)(adler & 0xffff), s2 = (mz_uint32)(adler >> 16);
size_t block_len = buf_len % 5552;
if (!ptr)
return MZ_ADLER32_INIT;
while (buf_len) {
for (i = 0; i + 7 < block_len; i += 8, ptr += 8) {
s1 += ptr[0], s2 += s1;
s1 += ptr[1], s2 += s1;
s1 += ptr[2], s2 += s1;
s1 += ptr[3], s2 += s1;
s1 += ptr[4], s2 += s1;
s1 += ptr[5], s2 += s1;
s1 += ptr[6], s2 += s1;
s1 += ptr[7], s2 += s1;
}
for (; i < block_len; ++i)
s1 += *ptr++, s2 += s1;
s1 %= 65521U, s2 %= 65521U;
buf_len -= block_len;
block_len = 5552;
}
return (s2 << 16) + s1;
}
|
O3
|
c
|
mz_adler32:
testq %rsi, %rsi
je 0x7da8f
movq %rdx, %r8
movq %rdi, %rcx
shrq $0x10, %rcx
movzwl %di, %edi
testq %rdx, %rdx
je 0x7da88
movq %r8, %rax
shrq $0x4, %rax
movabsq $0x179baa6bb6398b7, %rdx # imm = 0x179BAA6BB6398B7
mulq %rdx
shrq %rdx
imulq $0x15b0, %rdx, %rdx # imm = 0x15B0
movq %r8, %rax
subq %rdx, %rax
movl $0x80078071, %edx # imm = 0x80078071
xorl %r9d, %r9d
cmpq $0x8, %rax
jb 0x7da30
movzbl (%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x1(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
movzbl 0x2(%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x3(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
movzbl 0x4(%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x5(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
movzbl 0x6(%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x7(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
addq $0x8, %r9
leal 0x7(%r9), %r10d
cmpl %eax, %r10d
jb 0x7d9c5
addq %r9, %rsi
movq %rax, %r10
subq %r9, %r10
jbe 0x7da50
xorl %r9d, %r9d
movzbl (%rsi,%r9), %r11d
addl %r11d, %edi
addl %edi, %ecx
incq %r9
cmpq %r9, %r10
jne 0x7da3b
addq %r10, %rsi
movl %edi, %r9d
imulq %rdx, %r9
shrq $0x2f, %r9
imull $0xfff1, %r9d, %r9d # imm = 0xFFF1
subl %r9d, %edi
movl %ecx, %r9d
imulq %rdx, %r9
shrq $0x2f, %r9
imull $0xfff1, %r9d, %r9d # imm = 0xFFF1
subl %r9d, %ecx
subq %rax, %r8
movl $0x15b0, %eax # imm = 0x15B0
jne 0x7d9bc
shll $0x10, %ecx
orl %edi, %ecx
jmp 0x7da94
movl $0x1, %ecx
movq %rcx, %rax
retq
|
mz_adler32:
test rsi, rsi
jz loc_7DA8F
mov r8, rdx
mov rcx, rdi
shr rcx, 10h
movzx edi, di
test rdx, rdx
jz loc_7DA88
mov rax, r8
shr rax, 4
mov rdx, 179BAA6BB6398B7h
mul rdx
shr rdx, 1
imul rdx, 15B0h
mov rax, r8
sub rax, rdx
mov edx, 80078071h
loc_7D9BC:
xor r9d, r9d
cmp rax, 8
jb short loc_7DA30
loc_7D9C5:
movzx r10d, byte ptr [rsi+r9]
add r10d, edi
add ecx, r10d
movzx edi, byte ptr [rsi+r9+1]
add edi, r10d
add ecx, edi
movzx r10d, byte ptr [rsi+r9+2]
add r10d, edi
add ecx, r10d
movzx edi, byte ptr [rsi+r9+3]
add edi, r10d
add ecx, edi
movzx r10d, byte ptr [rsi+r9+4]
add r10d, edi
add ecx, r10d
movzx edi, byte ptr [rsi+r9+5]
add edi, r10d
add ecx, edi
movzx r10d, byte ptr [rsi+r9+6]
add r10d, edi
add ecx, r10d
movzx edi, byte ptr [rsi+r9+7]
add edi, r10d
add ecx, edi
add r9, 8
lea r10d, [r9+7]
cmp r10d, eax
jb short loc_7D9C5
add rsi, r9
loc_7DA30:
mov r10, rax
sub r10, r9
jbe short loc_7DA50
xor r9d, r9d
loc_7DA3B:
movzx r11d, byte ptr [rsi+r9]
add edi, r11d
add ecx, edi
inc r9
cmp r10, r9
jnz short loc_7DA3B
add rsi, r10
loc_7DA50:
mov r9d, edi
imul r9, rdx
shr r9, 2Fh
imul r9d, 0FFF1h
sub edi, r9d
mov r9d, ecx
imul r9, rdx
shr r9, 2Fh
imul r9d, 0FFF1h
sub ecx, r9d
sub r8, rax
mov eax, 15B0h
jnz loc_7D9BC
loc_7DA88:
shl ecx, 10h
or ecx, edi
jmp short loc_7DA94
loc_7DA8F:
mov ecx, 1
loc_7DA94:
mov rax, rcx
retn
|
long long mz_adler32(unsigned long long a1, long long a2, unsigned long long a3)
{
unsigned long long v3; // r8
unsigned long long v4; // rcx
unsigned long long v5; // rax
unsigned long long v6; // r9
int v7; // r10d
int v8; // edi
int v9; // ecx
int v10; // r10d
int v11; // edi
int v12; // ecx
int v13; // r10d
int v14; // edi
int v15; // ecx
int v16; // r10d
long long v17; // r10
long long v18; // r9
if ( !a2 )
return 1LL;
v3 = a3;
v4 = a1 >> 16;
LODWORD(a1) = (unsigned __int16)a1;
if ( a3 )
{
v5 = a3 % 0x15B0;
do
{
v6 = 0LL;
if ( v5 >= 8 )
{
do
{
v7 = a1 + *(unsigned __int8 *)(a2 + v6);
v8 = v7 + *(unsigned __int8 *)(a2 + v6 + 1);
v9 = v8 + v7 + v4;
v10 = v8 + *(unsigned __int8 *)(a2 + v6 + 2);
v11 = v10 + *(unsigned __int8 *)(a2 + v6 + 3);
v12 = v11 + v10 + v9;
v13 = v11 + *(unsigned __int8 *)(a2 + v6 + 4);
v14 = v13 + *(unsigned __int8 *)(a2 + v6 + 5);
v15 = v14 + v13 + v12;
v16 = v14 + *(unsigned __int8 *)(a2 + v6 + 6);
LODWORD(a1) = v16 + *(unsigned __int8 *)(a2 + v6 + 7);
LODWORD(v4) = a1 + v16 + v15;
v6 += 8LL;
}
while ( (int)v6 + 7 < (unsigned int)v5 );
a2 += v6;
}
v17 = v5 - v6;
if ( v5 > v6 )
{
v18 = 0LL;
do
{
LODWORD(a1) = *(unsigned __int8 *)(a2 + v18) + (_DWORD)a1;
LODWORD(v4) = a1 + v4;
++v18;
}
while ( v17 != v18 );
a2 += v17;
}
LODWORD(a1) = (unsigned int)a1 % 0xFFF1;
LODWORD(v4) = (unsigned int)v4 % 0xFFF1;
v3 -= v5;
v5 = 5552LL;
}
while ( v3 );
}
return (unsigned int)a1 | ((_DWORD)v4 << 16);
}
| |||
8,560 |
print_tz_leaps_as_sql(st_time_zone_info const*)
|
eloqsql/sql/tztime.cc
|
void
print_tz_leaps_as_sql(const TIME_ZONE_INFO *sp)
{
uint i;
/*
We are assuming that there are only one list of leap seconds
For all timezones.
*/
if (!opt_skip_write_binlog)
printf(
"execute immediate if(@wsrep_cannot_replicate_tz, "
SAVE_ENGINE("time_zone_leap_second") ", 'do 0');\n"
"execute immediate if(@wsrep_cannot_replicate_tz, "
"'ALTER TABLE time_zone_leap_second ENGINE=InnoDB', 'do 0');\n");
printf("TRUNCATE TABLE time_zone_leap_second;\n");
if (sp->leapcnt)
{
printf("INSERT INTO time_zone_leap_second \
(Transition_time, Correction) VALUES\n");
for (i= 0; i < sp->leapcnt; i++)
printf("%s(%ld, %ld)\n", (i == 0 ? " " : ","),
sp->lsis[i].ls_trans, sp->lsis[i].ls_corr);
printf(";\n");
}
if (!opt_skip_write_binlog)
printf(
"execute immediate if(@wsrep_cannot_replicate_tz, "
"concat('ALTER TABLE time_zone_leap_second ENGINE=', "
"@time_zone_leap_second_engine), 'do 0');\n");
printf("ALTER TABLE time_zone_leap_second ORDER BY Transition_time;\n");
}
|
O3
|
cpp
|
print_tz_leaps_as_sql(st_time_zone_info const*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x3470d8(%rip) # 0x36cf52
jne 0x25e88
leaq 0x3b1fc(%rip), %rdi # 0x6107f
callq 0x24550
leaq 0x3b32f(%rip), %rdi # 0x611be
callq 0x24550
cmpl $0x0, (%rbx)
je 0x25f00
leaq 0x3b344(%rip), %rdi # 0x611e4
callq 0x24550
cmpl $0x0, (%rbx)
je 0x25ef4
leaq 0x3c23d(%rip), %r12 # 0x620ee
leaq 0x3a218(%rip), %r14 # 0x600d0
xorl %r13d, %r13d
xorl %r15d, %r15d
testq %r13, %r13
movq %r12, %rsi
leaq 0x3c0b2(%rip), %rax # 0x61f7d
cmoveq %rax, %rsi
movq 0x38(%rbx), %rax
movq (%rax,%r13), %rdx
movq 0x8(%rax,%r13), %rcx
movq %r14, %rdi
xorl %eax, %eax
callq 0x24060
incq %r15
movl (%rbx), %eax
addq $0x10, %r13
cmpq %rax, %r15
jb 0x25ebe
leaq 0x3b2c1(%rip), %rdi # 0x611bc
callq 0x24550
cmpb $0x0, 0x34704b(%rip) # 0x36cf52
jne 0x25f15
leaq 0x3b31b(%rip), %rdi # 0x6122b
callq 0x24550
leaq 0x3b39d(%rip), %rdi # 0x612b9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x24550
|
_Z21print_tz_leaps_as_sqlPK17st_time_zone_info:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
cmp cs:opt_skip_write_binlog, 0
jnz short loc_25E88
lea rdi, aExecuteImmedia; "execute immediate if(@wsrep_cannot_repl"...
call _puts
loc_25E88:
lea rdi, aTruncateTableT; "TRUNCATE TABLE time_zone_leap_second;"
call _puts
cmp dword ptr [rbx], 0
jz short loc_25F00
lea rdi, aInsertIntoTime_3; "INSERT INTO time_zone_leap_second (Tran"...
call _puts
cmp dword ptr [rbx], 0
jz short loc_25EF4
lea r12, aS+2; ","
lea r14, aSLdLd; "%s(%ld, %ld)\n"
xor r13d, r13d
xor r15d, r15d
loc_25EBE:
test r13, r13
mov rsi, r12
lea rax, asc_61F7C+1; " "
cmovz rsi, rax
mov rax, [rbx+38h]
mov rdx, [rax+r13]
mov rcx, [rax+r13+8]
mov rdi, r14
xor eax, eax
call _printf
inc r15
mov eax, [rbx]
add r13, 10h
cmp r15, rax
jb short loc_25EBE
loc_25EF4:
lea rdi, aExecuteImmedia+13Dh; ";"
call _puts
loc_25F00:
cmp cs:opt_skip_write_binlog, 0
jnz short loc_25F15
lea rdi, aExecuteImmedia_0; "execute immediate if(@wsrep_cannot_repl"...
call _puts
loc_25F15:
lea rdi, aAlterTableTime; "ALTER TABLE time_zone_leap_second ORDER"...
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _puts
|
long long print_tz_leaps_as_sql(unsigned int *a1)
{
long long v1; // r13
unsigned long long v2; // r15
const char *v3; // rsi
if ( !opt_skip_write_binlog )
puts(
"execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_leap_second_engine from informati"
"on_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone_leap_second'\", 'do 0');\n"
"execute immediate if(@wsrep_cannot_replicate_tz, 'ALTER TABLE time_zone_leap_second ENGINE=InnoDB', 'do 0');");
puts("TRUNCATE TABLE time_zone_leap_second;");
if ( *a1 )
{
puts("INSERT INTO time_zone_leap_second (Transition_time, Correction) VALUES");
if ( *a1 )
{
v1 = 0LL;
v2 = 0LL;
do
{
v3 = ",";
if ( !v1 )
v3 = " ";
printf("%s(%ld, %ld)\n", v3, *(_QWORD *)(*((_QWORD *)a1 + 7) + v1), *(_QWORD *)(*((_QWORD *)a1 + 7) + v1 + 8));
++v2;
v1 += 16LL;
}
while ( v2 < *a1 );
}
puts(";");
}
if ( !opt_skip_write_binlog )
puts(
"execute immediate if(@wsrep_cannot_replicate_tz, concat('ALTER TABLE time_zone_leap_second ENGINE=', @time_zone_le"
"ap_second_engine), 'do 0');");
return puts("ALTER TABLE time_zone_leap_second ORDER BY Transition_time;");
}
|
print_tz_leaps_as_sql:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP byte ptr [0x0046cf52],0x0
JNZ 0x00125e88
LEA RDI,[0x16107f]
CALL 0x00124550
LAB_00125e88:
LEA RDI,[0x1611be]
CALL 0x00124550
CMP dword ptr [RBX],0x0
JZ 0x00125f00
LEA RDI,[0x1611e4]
CALL 0x00124550
CMP dword ptr [RBX],0x0
JZ 0x00125ef4
LEA R12,[0x1620ee]
LEA R14,[0x1600d0]
XOR R13D,R13D
XOR R15D,R15D
LAB_00125ebe:
TEST R13,R13
MOV RSI,R12
LEA RAX,[0x161f7d]
CMOVZ RSI,RAX
MOV RAX,qword ptr [RBX + 0x38]
MOV RDX,qword ptr [RAX + R13*0x1]
MOV RCX,qword ptr [RAX + R13*0x1 + 0x8]
MOV RDI,R14
XOR EAX,EAX
CALL 0x00124060
INC R15
MOV EAX,dword ptr [RBX]
ADD R13,0x10
CMP R15,RAX
JC 0x00125ebe
LAB_00125ef4:
LEA RDI,[0x1611bc]
CALL 0x00124550
LAB_00125f00:
CMP byte ptr [0x0046cf52],0x0
JNZ 0x00125f15
LEA RDI,[0x16122b]
CALL 0x00124550
LAB_00125f15:
LEA RDI,[0x1612b9]
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00124550
|
/* print_tz_leaps_as_sql(st_time_zone_info const*) */
void print_tz_leaps_as_sql(st_time_zone_info *param_1)
{
int *puVar1;
long lVar2;
ulong uVar3;
if (opt_skip_write_binlog == '\0') {
puts(
"execute immediate if(@wsrep_cannot_replicate_tz, \"select ENGINE into @time_zone_leap_second_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME=\'time_zone_leap_second\'\", \'do 0\');\nexecute immediate if(@wsrep_cannot_replicate_tz, \'ALTER TABLE time_zone_leap_second ENGINE=InnoDB\', \'do 0\');"
);
}
puts("TRUNCATE TABLE time_zone_leap_second;");
if (*(int *)param_1 != 0) {
puts("INSERT INTO time_zone_leap_second (Transition_time, Correction) VALUES");
if (*(int *)param_1 != 0) {
lVar2 = 0;
uVar3 = 0;
do {
puVar1 = &DAT_001620ee;
if (lVar2 == 0) {
puVar1 = &DAT_00161f7d;
}
printf("%s(%ld, %ld)\n",puVar1,*(int8 *)(*(long *)(param_1 + 0x38) + lVar2),
*(int8 *)(*(long *)(param_1 + 0x38) + 8 + lVar2));
uVar3 = uVar3 + 1;
lVar2 = lVar2 + 0x10;
} while (uVar3 < *(uint *)param_1);
}
puts(";");
}
if (opt_skip_write_binlog == '\0') {
puts(
"execute immediate if(@wsrep_cannot_replicate_tz, concat(\'ALTER TABLE time_zone_leap_second ENGINE=\', @time_zone_leap_second_engine), \'do 0\');"
);
}
puts("ALTER TABLE time_zone_leap_second ORDER BY Transition_time;");
return;
}
|
|
8,561 |
pvio_socket_keepalive
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
int pvio_socket_keepalive(MARIADB_PVIO *pvio)
{
int opt= 1;
struct st_pvio_socket *csock= NULL;
if (!pvio || !pvio->data)
return 1;
csock= (struct st_pvio_socket *)pvio->data;
return setsockopt(csock->socket, SOL_SOCKET, SO_KEEPALIVE,
#ifndef _WIN32
(const void *)&opt, sizeof(opt));
#else
(char *)&opt, (int)sizeof(opt));
#endif
}
|
O0
|
c
|
pvio_socket_keepalive:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x4633c
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x46345
movl $0x1, -0x4(%rbp)
jmp 0x46372
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %edi
movl $0x1, %esi
movl $0x9, %edx
leaq -0x14(%rbp), %rcx
movl $0x4, %r8d
callq 0x13780
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
pvio_socket_keepalive:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], 1
mov [rbp+var_20], 0
cmp [rbp+var_10], 0
jz short loc_4633C
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_46345
loc_4633C:
mov [rbp+var_4], 1
jmp short loc_46372
loc_46345:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov edi, [rax]
mov esi, 1
mov edx, 9
lea rcx, [rbp+var_14]
mov r8d, 4
call _setsockopt
mov [rbp+var_4], eax
loc_46372:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long pvio_socket_keepalive(_QWORD *a1)
{
int v2; // [rsp+Ch] [rbp-14h] BYREF
_QWORD *v3; // [rsp+10h] [rbp-10h]
v3 = a1;
v2 = 1;
if ( a1 && *v3 )
return (unsigned int)setsockopt(*(unsigned int *)*v3, 1LL, 9LL, &v2, 4LL);
else
return 1;
}
|
pvio_socket_keepalive:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],0x1
MOV qword ptr [RBP + -0x20],0x0
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0014633c
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x00146345
LAB_0014633c:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00146372
LAB_00146345:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV EDI,dword ptr [RAX]
MOV ESI,0x1
MOV EDX,0x9
LEA RCX,[RBP + -0x14]
MOV R8D,0x4
CALL 0x00113780
MOV dword ptr [RBP + -0x4],EAX
LAB_00146372:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int pvio_socket_keepalive(long *param_1)
{
int4 local_1c;
long *local_18;
int local_c;
local_1c = 1;
if ((param_1 == (long *)0x0) || (*param_1 == 0)) {
local_c = 1;
}
else {
local_18 = param_1;
local_c = setsockopt(*(int *)*param_1,1,9,&local_1c,4);
}
return local_c;
}
|
|
8,562 |
pvio_socket_keepalive
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
int pvio_socket_keepalive(MARIADB_PVIO *pvio)
{
int opt= 1;
struct st_pvio_socket *csock= NULL;
if (!pvio || !pvio->data)
return 1;
csock= (struct st_pvio_socket *)pvio->data;
return setsockopt(csock->socket, SOL_SOCKET, SO_KEEPALIVE,
#ifndef _WIN32
(const void *)&opt, sizeof(opt));
#else
(char *)&opt, (int)sizeof(opt));
#endif
}
|
O3
|
c
|
pvio_socket_keepalive:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x1, -0x4(%rbp)
movl $0x1, %eax
testq %rdi, %rdi
je 0x3214b
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x3214b
movl (%rcx), %edi
leaq -0x4(%rbp), %rcx
movl $0x1, %esi
movl $0x9, %edx
movl $0x4, %r8d
callq 0x137c0
addq $0x10, %rsp
popq %rbp
retq
|
pvio_socket_keepalive:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_4], 1
mov eax, 1
test rdi, rdi
jz short loc_3214B
mov rcx, [rdi]
test rcx, rcx
jz short loc_3214B
mov edi, [rcx]
lea rcx, [rbp+var_4]
mov esi, 1
mov edx, 9
mov r8d, 4
call _setsockopt
loc_3214B:
add rsp, 10h
pop rbp
retn
|
long long pvio_socket_keepalive(_QWORD *a1)
{
long long result; // rax
int v2; // [rsp+Ch] [rbp-4h] BYREF
v2 = 1;
result = 1LL;
if ( a1 )
{
if ( *a1 )
return setsockopt(*(unsigned int *)*a1, 1LL, 9LL, &v2, 4LL);
}
return result;
}
|
pvio_socket_keepalive:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV dword ptr [RBP + -0x4],0x1
MOV EAX,0x1
TEST RDI,RDI
JZ 0x0013214b
MOV RCX,qword ptr [RDI]
TEST RCX,RCX
JZ 0x0013214b
MOV EDI,dword ptr [RCX]
LEA RCX,[RBP + -0x4]
MOV ESI,0x1
MOV EDX,0x9
MOV R8D,0x4
CALL 0x001137c0
LAB_0013214b:
ADD RSP,0x10
POP RBP
RET
|
int pvio_socket_keepalive(int8 *param_1)
{
int iVar1;
int4 local_c;
local_c = 1;
iVar1 = 1;
if ((param_1 != (int8 *)0x0) && ((int *)*param_1 != (int *)0x0)) {
iVar1 = setsockopt(*(int *)*param_1,1,9,&local_c,4);
}
return iVar1;
}
|
|
8,563 |
ggml_compute_forward_add1_f16_f32(ggml_compute_params const*, ggml_tensor*)
|
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
|
static void ggml_compute_forward_add1_f16_f32(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
const ggml_tensor * src1 = dst->src[1];
GGML_ASSERT(ggml_are_same_shape(src0, dst));
GGML_ASSERT(ggml_is_scalar(src1));
// scalar to add
const float v = *(float *) src1->data;
const int ith = params->ith;
const int nth = params->nth;
const int nr = ggml_nrows(src0);
GGML_TENSOR_UNARY_OP_LOCALS
GGML_ASSERT(src0->type == GGML_TYPE_F16);
GGML_ASSERT(src1->type == GGML_TYPE_F32);
GGML_ASSERT(dst->type == GGML_TYPE_F16);
GGML_ASSERT( nb0 == sizeof(ggml_fp16_t));
GGML_ASSERT(nb00 == sizeof(ggml_fp16_t));
// rows per thread
const int dr = (nr + nth - 1)/nth;
// row range for this thread
const int ir0 = dr*ith;
const int ir1 = MIN(ir0 + dr, nr);
for (int ir = ir0; ir < ir1; ++ir) {
// src0 and dst are same shape => same indices
const int i3 = ir/(ne2*ne1);
const int i2 = (ir - i3*ne2*ne1)/ne1;
const int i1 = (ir - i3*ne2*ne1 - i2*ne1);
ggml_fp16_t * dst_ptr = (ggml_fp16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*nb1 );
ggml_fp16_t * src0_ptr = (ggml_fp16_t *) ((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01);
for (int i = 0; i < ne0; i++) {
dst_ptr[i] = GGML_FP32_TO_FP16(GGML_FP16_TO_FP32(src0_ptr[i]) + v);
}
}
}
|
O3
|
cpp
|
ggml_compute_forward_add1_f16_f32(ggml_compute_params const*, ggml_tensor*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r13
movq 0x98(%rsi), %r15
movq 0xa0(%rsi), %r12
movq %r15, %rdi
callq 0xaf20
testb %al, %al
je 0x349f9
movq %r12, %rdi
callq 0xaf60
testb %al, %al
je 0x34a18
movq 0xf8(%r12), %rax
vmovd (%rax), %xmm0
vmovd %xmm0, 0xc(%rsp)
movslq (%r13), %rbx
movl 0x4(%r13), %r13d
movq %r15, %rdi
callq 0xaa40
cmpl $0x1, (%r15)
jne 0x34a37
cmpl $0x0, (%r12)
jne 0x34a53
cmpl $0x1, (%r14)
vmovss 0xc(%rsp), %xmm1
jne 0x34a6f
cmpq $0x2, 0x30(%r14)
jne 0x34a8b
cmpq $0x2, 0x30(%r15)
jne 0x34aa7
movq %rax, %rcx
addl %r13d, %eax
decl %eax
cltd
idivl %r13d
cltq
imulq %rax, %rbx
addl %ebx, %eax
cmpl %ecx, %eax
cmovgel %ecx, %eax
cmpl %eax, %ebx
jge 0x349ea
movq 0x38(%r15), %rcx
movq %rcx, 0x30(%rsp)
movq 0x40(%r15), %rcx
movq %rcx, 0x28(%rsp)
movq 0x48(%r15), %rcx
movq %rcx, 0x20(%rsp)
movq 0x10(%r14), %r8
movq 0x18(%r14), %r9
movq 0x38(%r14), %rcx
movq %rcx, 0x18(%rsp)
movq 0x40(%r14), %rcx
movq %rcx, 0x10(%rsp)
movq 0x48(%r14), %r12
movq 0x20(%r14), %r13
imulq %r9, %r13
movq 0xf8(%r14), %r14
movq 0xf8(%r15), %r15
movslq %eax, %rbp
movq 0x26607(%rip), %rcx # 0x5af60
movq %rbx, %rax
cqto
idivq %r13
movslq %eax, %r10
movq %r13, %rdx
imulq %r10, %rdx
movq %rbx, %rax
subq %rdx, %rax
cqto
idivq %r9
testq %r8, %r8
jle 0x349de
movslq %eax, %r11
movq %r10, %rsi
imulq %r12, %rsi
movq %r11, %rdi
imulq 0x10(%rsp), %rdi
movslq %edx, %rax
movq %rax, %rdx
imulq 0x18(%rsp), %rdx
addq %rsi, %rdx
addq %r14, %rdx
addq %rdi, %rdx
imulq 0x20(%rsp), %r10
imulq 0x28(%rsp), %r11
imulq 0x30(%rsp), %rax
addq %r10, %rax
addq %r15, %rax
addq %r11, %rax
xorl %esi, %esi
movzwl (%rax,%rsi,2), %edi
vaddss (%rcx,%rdi,4), %xmm1, %xmm0
vcvtps2ph $0x0, %xmm0, %xmm0
vpextrw $0x0, %xmm0, (%rdx,%rsi,2)
incq %rsi
cmpq %rsi, %r8
jne 0x349c0
incq %rbx
cmpq %rbp, %rbx
jne 0x34959
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e0a0(%rip), %rdi # 0x52aa0
leaq 0x13b63(%rip), %rdx # 0x4856a
leaq 0x1d9a5(%rip), %rcx # 0x523b3
movl $0x577, %esi # imm = 0x577
jmp 0x34ac1
leaq 0x1e081(%rip), %rdi # 0x52aa0
leaq 0x13b44(%rip), %rdx # 0x4856a
leaq 0x1e333(%rip), %rcx # 0x52d60
movl $0x578, %esi # imm = 0x578
jmp 0x34ac1
leaq 0x1e062(%rip), %rdi # 0x52aa0
leaq 0x13b25(%rip), %rdx # 0x4856a
leaq 0x1e0e0(%rip), %rcx # 0x52b2c
movl $0x584, %esi # imm = 0x584
jmp 0x34ac1
leaq 0x1e046(%rip), %rdi # 0x52aa0
leaq 0x13b09(%rip), %rdx # 0x4856a
leaq 0x13f74(%rip), %rcx # 0x489dc
movl $0x585, %esi # imm = 0x585
jmp 0x34ac1
leaq 0x1e02a(%rip), %rdi # 0x52aa0
leaq 0x13aed(%rip), %rdx # 0x4856a
leaq 0x1e323(%rip), %rcx # 0x52da7
movl $0x586, %esi # imm = 0x586
jmp 0x34ac1
leaq 0x1e00e(%rip), %rdi # 0x52aa0
leaq 0x13ad1(%rip), %rdx # 0x4856a
leaq 0x1e322(%rip), %rcx # 0x52dc2
movl $0x588, %esi # imm = 0x588
jmp 0x34ac1
leaq 0x1dff2(%rip), %rdi # 0x52aa0
leaq 0x13ab5(%rip), %rdx # 0x4856a
leaq 0x1e08c(%rip), %rcx # 0x52b48
movl $0x589, %esi # imm = 0x589
xorl %eax, %eax
callq 0xaf40
|
_ZL33ggml_compute_forward_add1_f16_f32PK19ggml_compute_paramsP11ggml_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rsi
mov r13, rdi
mov r15, [rsi+98h]
mov r12, [rsi+0A0h]
mov rdi, r15
call _ggml_are_same_shape
test al, al
jz loc_349F9
mov rdi, r12
call _ggml_is_scalar
test al, al
jz loc_34A18
mov rax, [r12+0F8h]
vmovd xmm0, dword ptr [rax]
vmovd [rsp+68h+var_5C], xmm0
movsxd rbx, dword ptr [r13+0]
mov r13d, [r13+4]
mov rdi, r15
call _ggml_nrows
cmp dword ptr [r15], 1
jnz loc_34A37
cmp dword ptr [r12], 0
jnz loc_34A53
cmp dword ptr [r14], 1
vmovss xmm1, [rsp+68h+var_5C]
jnz loc_34A6F
cmp qword ptr [r14+30h], 2
jnz loc_34A8B
cmp qword ptr [r15+30h], 2
jnz loc_34AA7
mov rcx, rax
add eax, r13d
dec eax
cdq
idiv r13d
cdqe
imul rbx, rax
add eax, ebx
cmp eax, ecx
cmovge eax, ecx
cmp ebx, eax
jge loc_349EA
mov rcx, [r15+38h]
mov [rsp+68h+var_38], rcx
mov rcx, [r15+40h]
mov [rsp+68h+var_40], rcx
mov rcx, [r15+48h]
mov [rsp+68h+var_48], rcx
mov r8, [r14+10h]
mov r9, [r14+18h]
mov rcx, [r14+38h]
mov [rsp+68h+var_50], rcx
mov rcx, [r14+40h]
mov [rsp+68h+var_58], rcx
mov r12, [r14+48h]
mov r13, [r14+20h]
imul r13, r9
mov r14, [r14+0F8h]
mov r15, [r15+0F8h]
movsxd rbp, eax
mov rcx, cs:ggml_table_f32_f16_ptr
loc_34959:
mov rax, rbx
cqo
idiv r13
movsxd r10, eax
mov rdx, r13
imul rdx, r10
mov rax, rbx
sub rax, rdx
cqo
idiv r9
test r8, r8
jle short loc_349DE
movsxd r11, eax
mov rsi, r10
imul rsi, r12
mov rdi, r11
imul rdi, [rsp+68h+var_58]
movsxd rax, edx
mov rdx, rax
imul rdx, [rsp+68h+var_50]
add rdx, rsi
add rdx, r14
add rdx, rdi
imul r10, [rsp+68h+var_48]
imul r11, [rsp+68h+var_40]
imul rax, [rsp+68h+var_38]
add rax, r10
add rax, r15
add rax, r11
xor esi, esi
loc_349C0:
movzx edi, word ptr [rax+rsi*2]
vaddss xmm0, xmm1, dword ptr [rcx+rdi*4]
vcvtps2ph xmm0, xmm0, 0
vpextrw word ptr [rdx+rsi*2], xmm0, 0
inc rsi
cmp r8, rsi
jnz short loc_349C0
loc_349DE:
inc rbx
cmp rbx, rbp
jnz loc_34959
loc_349EA:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_349F9:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)"
mov esi, 577h
jmp loc_34AC1
loc_34A18:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsScalarSr; "ggml_is_scalar(src1)"
mov esi, 578h
jmp loc_34AC1
loc_34A37:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc0TypeGgmlTy; "src0->type == GGML_TYPE_F16"
mov esi, 584h
jmp short loc_34AC1
loc_34A53:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc1TypeGgmlTy; "src1->type == GGML_TYPE_F32"
mov esi, 585h
jmp short loc_34AC1
loc_34A6F:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDstTypeGgmlTyp; "dst->type == GGML_TYPE_F16"
mov esi, 586h
jmp short loc_34AC1
loc_34A8B:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb0SizeofGgmlF; "nb0 == sizeof(ggml_fp16_t)"
mov esi, 588h
jmp short loc_34AC1
loc_34AA7:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb00SizeofGgml; "nb00 == sizeof(ggml_fp16_t)"
mov esi, 589h
loc_34AC1:
xor eax, eax
call _ggml_abort
|
long long ggml_compute_forward_add1_f16_f32(int *a1, long long a2)
{
long long v2; // r15
long long v3; // r12
long long v6; // rbx
int v7; // r13d
int v8; // eax
int v10; // ecx
int v11; // eax
long long v12; // rbx
long long result; // rax
long long v14; // r8
long long v15; // r9
long long v16; // r12
long long v17; // r13
long long v18; // r14
long long v19; // r15
long long v20; // rbp
long long v21; // r10
long long v22; // rdx
long long v23; // r11
long long v24; // rdi
long long v25; // rax
long long v30; // rsi
long long v32; // [rsp+10h] [rbp-58h]
long long v33; // [rsp+18h] [rbp-50h]
long long v34; // [rsp+20h] [rbp-48h]
long long v35; // [rsp+28h] [rbp-40h]
long long v36; // [rsp+30h] [rbp-38h]
v2 = *(_QWORD *)(a2 + 152);
v3 = *(_QWORD *)(a2 + 160);
if ( !(unsigned __int8)ggml_are_same_shape(v2, a2) )
{
v30 = 1399LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1399LL,
"GGML_ASSERT(%s) failed",
"ggml_are_same_shape(src0, dst)");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
if ( !(unsigned __int8)ggml_is_scalar(v3) )
{
v30 = 1400LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1400LL,
"GGML_ASSERT(%s) failed",
"ggml_is_scalar(src1)");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
_RAX = *(_QWORD *)(v3 + 248);
__asm
{
vmovd xmm0, dword ptr [rax]
vmovd [rsp+68h+var_5C], xmm0
}
v6 = *a1;
v7 = a1[1];
v8 = ggml_nrows(v2);
if ( *(_DWORD *)v2 != 1 )
{
v30 = 1412LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1412LL,
"GGML_ASSERT(%s) failed",
"src0->type == GGML_TYPE_F16");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
if ( *(_DWORD *)v3 )
{
v30 = 1413LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1413LL,
"GGML_ASSERT(%s) failed",
"src1->type == GGML_TYPE_F32");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
__asm { vmovss xmm1, [rsp+68h+var_5C] }
if ( *(_DWORD *)a2 != 1 )
{
v30 = 1414LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1414LL,
"GGML_ASSERT(%s) failed",
"dst->type == GGML_TYPE_F16");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
if ( *(_QWORD *)(a2 + 48) != 2LL )
{
v30 = 1416LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1416LL,
"GGML_ASSERT(%s) failed",
"nb0 == sizeof(ggml_fp16_t)");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
if ( *(_QWORD *)(v2 + 48) != 2LL )
{
v30 = 1417LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1417LL,
"GGML_ASSERT(%s) failed",
"nb00 == sizeof(ggml_fp16_t)");
return ggml_compute_forward_add1_bf16_bf16(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
v30);
}
v10 = v8;
v11 = (v7 + v8 - 1) / v7;
v12 = v11 * v6;
result = (unsigned int)(v12 + v11);
if ( (int)result >= v10 )
result = (unsigned int)v10;
if ( (int)v12 < (int)result )
{
v36 = *(_QWORD *)(v2 + 56);
v35 = *(_QWORD *)(v2 + 64);
v34 = *(_QWORD *)(v2 + 72);
v14 = *(_QWORD *)(a2 + 16);
v15 = *(_QWORD *)(a2 + 24);
v33 = *(_QWORD *)(a2 + 56);
v32 = *(_QWORD *)(a2 + 64);
v16 = *(_QWORD *)(a2 + 72);
v17 = v15 * *(_QWORD *)(a2 + 32);
v18 = *(_QWORD *)(a2 + 248);
v19 = *(_QWORD *)(v2 + 248);
v20 = (int)result;
do
{
v21 = (int)(v12 / v17);
result = (v12 - v21 * v17) / v15;
v22 = (v12 - v21 * v17) % v15;
if ( v14 > 0 )
{
v23 = (int)result;
v24 = v32 * (int)result;
v25 = (int)v22;
_RDX = v24 + v18 + v16 * v21 + v33 * (int)v22;
result = v35 * v23 + v19 + v34 * v21 + v36 * v25;
for ( _RSI = 0LL; _RSI != v14; ++_RSI )
{
__asm
{
vaddss xmm0, xmm1, dword ptr [rcx+rdi*4]
vcvtps2ph xmm0, xmm0, 0
vpextrw word ptr [rdx+rsi*2], xmm0, 0
}
}
}
++v12;
}
while ( v12 != v20 );
}
return result;
}
|
ggml_compute_forward_add1_f16_f32:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RSI
MOV R13,RDI
MOV R15,qword ptr [RSI + 0x98]
MOV R12,qword ptr [RSI + 0xa0]
MOV RDI,R15
CALL 0x0010af20
TEST AL,AL
JZ 0x001349f9
MOV RDI,R12
CALL 0x0010af60
TEST AL,AL
JZ 0x00134a18
MOV RAX,qword ptr [R12 + 0xf8]
VMOVD XMM0,dword ptr [RAX]
VMOVD dword ptr [RSP + 0xc],XMM0
MOVSXD RBX,dword ptr [R13]
MOV R13D,dword ptr [R13 + 0x4]
MOV RDI,R15
CALL 0x0010aa40
CMP dword ptr [R15],0x1
JNZ 0x00134a37
CMP dword ptr [R12],0x0
JNZ 0x00134a53
CMP dword ptr [R14],0x1
VMOVSS XMM1,dword ptr [RSP + 0xc]
JNZ 0x00134a6f
CMP qword ptr [R14 + 0x30],0x2
JNZ 0x00134a8b
CMP qword ptr [R15 + 0x30],0x2
JNZ 0x00134aa7
MOV RCX,RAX
ADD EAX,R13D
DEC EAX
CDQ
IDIV R13D
CDQE
IMUL RBX,RAX
ADD EAX,EBX
CMP EAX,ECX
CMOVGE EAX,ECX
CMP EBX,EAX
JGE 0x001349ea
MOV RCX,qword ptr [R15 + 0x38]
MOV qword ptr [RSP + 0x30],RCX
MOV RCX,qword ptr [R15 + 0x40]
MOV qword ptr [RSP + 0x28],RCX
MOV RCX,qword ptr [R15 + 0x48]
MOV qword ptr [RSP + 0x20],RCX
MOV R8,qword ptr [R14 + 0x10]
MOV R9,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [R14 + 0x38]
MOV qword ptr [RSP + 0x18],RCX
MOV RCX,qword ptr [R14 + 0x40]
MOV qword ptr [RSP + 0x10],RCX
MOV R12,qword ptr [R14 + 0x48]
MOV R13,qword ptr [R14 + 0x20]
IMUL R13,R9
MOV R14,qword ptr [R14 + 0xf8]
MOV R15,qword ptr [R15 + 0xf8]
MOVSXD RBP,EAX
MOV RCX,qword ptr [0x0015af60]
LAB_00134959:
MOV RAX,RBX
CQO
IDIV R13
MOVSXD R10,EAX
MOV RDX,R13
IMUL RDX,R10
MOV RAX,RBX
SUB RAX,RDX
CQO
IDIV R9
TEST R8,R8
JLE 0x001349de
MOVSXD R11,EAX
MOV RSI,R10
IMUL RSI,R12
MOV RDI,R11
IMUL RDI,qword ptr [RSP + 0x10]
MOVSXD RAX,EDX
MOV RDX,RAX
IMUL RDX,qword ptr [RSP + 0x18]
ADD RDX,RSI
ADD RDX,R14
ADD RDX,RDI
IMUL R10,qword ptr [RSP + 0x20]
IMUL R11,qword ptr [RSP + 0x28]
IMUL RAX,qword ptr [RSP + 0x30]
ADD RAX,R10
ADD RAX,R15
ADD RAX,R11
XOR ESI,ESI
LAB_001349c0:
MOVZX EDI,word ptr [RAX + RSI*0x2]
VADDSS XMM0,XMM1,dword ptr [RCX + RDI*0x4]
VCVTPS2PH XMM0,XMM0,0x0
VPEXTRW word ptr [RDX + RSI*0x2],XMM0,0x0
INC RSI
CMP R8,RSI
JNZ 0x001349c0
LAB_001349de:
INC RBX
CMP RBX,RBP
JNZ 0x00134959
LAB_001349ea:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001349f9:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x1523b3]
MOV ESI,0x577
JMP 0x00134ac1
LAB_00134a18:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152d60]
MOV ESI,0x578
JMP 0x00134ac1
LAB_00134a37:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152b2c]
MOV ESI,0x584
JMP 0x00134ac1
LAB_00134a53:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x1489dc]
MOV ESI,0x585
JMP 0x00134ac1
LAB_00134a6f:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152da7]
MOV ESI,0x586
JMP 0x00134ac1
LAB_00134a8b:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152dc2]
MOV ESI,0x588
JMP 0x00134ac1
LAB_00134aa7:
LEA RDI,[0x152aa0]
LEA RDX,[0x14856a]
LEA RCX,[0x152b48]
MOV ESI,0x589
LAB_00134ac1:
XOR EAX,EAX
CALL 0x0010af40
|
/* ggml_compute_forward_add1_f16_f32(ggml_compute_params const*, ggml_tensor*) */
void ggml_compute_forward_add1_f16_f32(ggml_compute_params *param_1,ggml_tensor *param_2)
{
float fVar1;
int iVar2;
int *piVar3;
int *piVar4;
long lVar5;
char cVar6;
int iVar7;
int iVar8;
long lVar9;
char *pcVar10;
long lVar11;
long lVar12;
int8 uVar13;
long lVar14;
int1 auVar15 [16];
piVar3 = *(int **)(param_2 + 0x98);
piVar4 = *(int **)(param_2 + 0xa0);
cVar6 = ggml_are_same_shape(piVar3);
if (cVar6 == '\0') {
pcVar10 = "ggml_are_same_shape(src0, dst)";
uVar13 = 0x577;
}
else {
cVar6 = ggml_is_scalar(piVar4);
if (cVar6 == '\0') {
pcVar10 = "ggml_is_scalar(src1)";
uVar13 = 0x578;
}
else {
fVar1 = **(float **)(piVar4 + 0x3e);
iVar2 = *(int *)param_1;
iVar8 = *(int *)(param_1 + 4);
iVar7 = ggml_nrows(piVar3);
if (*piVar3 == 1) {
if (*piVar4 == 0) {
if (*(int *)param_2 == 1) {
if (*(long *)(param_2 + 0x30) == 2) {
if (*(long *)(piVar3 + 0xc) == 2) {
iVar8 = (iVar7 + iVar8 + -1) / iVar8;
lVar11 = (long)iVar2 * (long)iVar8;
iVar8 = iVar8 + (int)lVar11;
if (iVar7 <= iVar8) {
iVar8 = iVar7;
}
if ((int)lVar11 < iVar8) {
lVar5 = *(long *)(param_2 + 0x18);
do {
lVar14 = (long)(int)(lVar11 / (*(long *)(param_2 + 0x20) * lVar5));
lVar9 = lVar11 - *(long *)(param_2 + 0x20) * lVar5 * lVar14;
if (0 < *(long *)(param_2 + 0x10)) {
lVar12 = 0;
do {
auVar15 = vcvtps2ph_f16c(ZEXT416((uint)(fVar1 + *(float *)(
PTR_ggml_table_f32_f16_0015af60 +
(ulong)*(ushort *)
((long)(int)(lVar9 % lVar5) *
*(long *)(piVar3 + 0xe) +
lVar14 * *(long *)(piVar3 + 0x12) +
*(long *)(piVar3 + 0x3e) +
(long)(int)(lVar9 / lVar5) *
*(long *)(piVar3 + 0x10) + lVar12 * 2) *
4))),0);
vpextrw_avx(auVar15,0);
lVar12 = lVar12 + 1;
} while (*(long *)(param_2 + 0x10) != lVar12);
}
lVar11 = lVar11 + 1;
} while (lVar11 != iVar8);
}
return;
}
pcVar10 = "nb00 == sizeof(ggml_fp16_t)";
uVar13 = 0x589;
}
else {
pcVar10 = "nb0 == sizeof(ggml_fp16_t)";
uVar13 = 0x588;
}
}
else {
pcVar10 = "dst->type == GGML_TYPE_F16";
uVar13 = 0x586;
}
}
else {
pcVar10 = "src1->type == GGML_TYPE_F32";
uVar13 = 0x585;
}
}
else {
pcVar10 = "src0->type == GGML_TYPE_F16";
uVar13 = 0x584;
}
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
uVar13,"GGML_ASSERT(%s) failed",pcVar10);
}
|
|
8,564 |
arena_destroy
|
tsotchke[P]eshkol/src/core/memory/arena.c
|
void arena_destroy(Arena* arena) {
assert(arena != NULL);
// Free all blocks
Block* block = arena->first;
while (block) {
Block* next = block->next;
free(block);
block = next;
}
// Free arena control structure
free(arena);
}
|
O0
|
c
|
arena_destroy:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x3f85
jmp 0x3fa4
leaq 0xb38f(%rip), %rdi # 0xf31b
leaq 0xc135(%rip), %rsi # 0x100c8
movl $0xba, %edx
leaq 0xc248(%rip), %rcx # 0x101e7
callq 0x10a0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3fd5
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1030
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x3fb0
movq -0x8(%rbp), %rdi
callq 0x1030
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
arena_destroy:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
cmp [rbp+var_8], 0
jz short loc_3F85
jmp short loc_3FA4
loc_3F85:
lea rdi, aArenaNull+1; "arena != NULL"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0BAh
lea rcx, aVoidArenaDestr; "void arena_destroy(Arena *)"
call ___assert_fail
loc_3FA4:
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_10], rax
loc_3FB0:
cmp [rbp+var_10], 0
jz short loc_3FD5
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rdi, [rbp+var_10]
call _free
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
jmp short loc_3FB0
loc_3FD5:
mov rdi, [rbp+var_8]
call _free
add rsp, 20h
pop rbp
retn
|
long long arena_destroy(long long a1)
{
_QWORD *v2; // [rsp+8h] [rbp-18h]
_QWORD *i; // [rsp+10h] [rbp-10h]
if ( !a1 )
__assert_fail(
"arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/arena.c",
186LL,
"void arena_destroy(Arena *)");
for ( i = *(_QWORD **)(a1 + 8); i; i = v2 )
{
v2 = (_QWORD *)*i;
free(i);
}
return free(a1);
}
|
arena_destroy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00103f85
JMP 0x00103fa4
LAB_00103f85:
LEA RDI,[0x10f31b]
LEA RSI,[0x1100c8]
MOV EDX,0xba
LEA RCX,[0x1101e7]
CALL 0x001010a0
LAB_00103fa4:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x10],RAX
LAB_00103fb0:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00103fd5
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00101030
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00103fb0
LAB_00103fd5:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00101030
ADD RSP,0x20
POP RBP
RET
|
void arena_destroy(void *param_1)
{
int8 *puVar1;
int8 *local_18;
if (param_1 != (void *)0x0) {
local_18 = *(int8 **)((long)param_1 + 8);
while (local_18 != (int8 *)0x0) {
puVar1 = (int8 *)*local_18;
free(local_18);
local_18 = puVar1;
}
free(param_1);
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/memory/arena.c",
0xba,"void arena_destroy(Arena *)");
}
|
|
8,565 |
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build()
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/irregularPatchBuilder.cpp
|
internal::IrregularPatchSharedPtr
IrregularPatchBuilder::Build() {
//
// Build a PatchTree -- the sole representation used for all irregular
// patch topologies.
//
// Given the PatchTree's origin in Far, it's builder class requires a
// Far::TopologyRefiner. Now that PatchTreeBuilder is part of Bfr, it
// could be adapted to accept the Bfr::FaceSurface directly and deal
// with any any intermediate TopologyRefiner internally.
//
// For now, the quickest way of constructing a TopologyRefiner is via
// a Far::TopologyDescriptor -- which simply refers to pre-allocated
// topology arrays. Those arrays will be allocated on the stack here
// to accommodate typical cases not involving excessively high valence.
//
// Use of TopologyDescriptor could be eliminated by defining a factory
// to create a TopologyRefiner directly from the FaceSurface, but the
// benefits relative to the cost of creating the PatchTree are not
// significant. The fact that the current assembly requires removing
// duplicate faces in some cases further complicates that process.
//
int numVerts = _numControlVerts;
int numFaces = _numControlFaces;
int numFaceVerts = _numControlFaceVerts;
int numCorners = _surface.GetFaceSize();
int numCreases = _numControlVerts;
// Allocate and partition stack buffers for the topology arrays:
int numInts = numFaces + numFaceVerts + numCorners + numCreases*2;
int numFloats = numCorners + numCreases;
Vtr::internal::StackBuffer<int, 256,true> intBuffer(numInts);
Vtr::internal::StackBuffer<float,64,true> floatBuffer(numFloats);
int * faceSizes = intBuffer;
int * faceVerts = faceSizes + numFaces;
int * cornerIndices = faceVerts + numFaceVerts;
int * creaseIndices = cornerIndices + numCorners;
float * cornerWeights = floatBuffer;
float * creaseWeights = cornerWeights + numCorners;
// Gather face topology (sizes and vertices) and explicit sharpness:
gatherControlFaces(faceSizes, faceVerts);
numCorners = _surface.GetTag().HasSharpVertices() ?
gatherControlVertexSharpness(cornerIndices, cornerWeights) : 0;
numCreases = _surface.GetTag().HasSharpEdges() ?
gatherControlEdgeSharpness(creaseIndices, creaseWeights) : 0;
// Make some adjustments when control faces may overlap:
if (controlFacesMayOverlap()) {
if (numFaces > 2) {
removeDuplicateControlFaces(faceSizes, faceVerts,
&numFaces, &numFaceVerts);
}
if (_surface.GetTag().HasBoundaryVertices()) {
sharpenBoundaryControlEdges(creaseIndices, creaseWeights,
&numCreases);
}
}
// Declare a TopologyDescriptor to reference the data gathered above:
Far::TopologyDescriptor topDescriptor;
topDescriptor.numVertices = numVerts;
topDescriptor.numFaces = numFaces;
topDescriptor.numVertsPerFace = faceSizes;
topDescriptor.vertIndicesPerFace = faceVerts;
if (numCorners) {
topDescriptor.numCorners = numCorners;
topDescriptor.cornerVertexIndices = cornerIndices;
topDescriptor.cornerWeights = cornerWeights;
}
if (numCreases) {
topDescriptor.numCreases = numCreases;
topDescriptor.creaseVertexIndexPairs = creaseIndices;
topDescriptor.creaseWeights = creaseWeights;
}
// Construct a TopologyRefiner in order to create a PatchTree:
typedef Far::TopologyDescriptor Descriptor;
typedef Far::TopologyRefinerFactory<Descriptor> RefinerFactory;
RefinerFactory::Options refinerOptions;
refinerOptions.schemeType = _surface.GetSdcScheme();
refinerOptions.schemeOptions = _surface.GetSdcOptionsInEffect();
// WIP - enable for debugging
//refinerOptions.validateFullTopology = true;
Far::TopologyRefiner * refiner =
RefinerFactory::Create(topDescriptor, refinerOptions);
// Create the PatchTree from the TopologyRefiner:
PatchTreeBuilder::Options patchTreeOptions;
patchTreeOptions.includeInteriorPatches = false;
patchTreeOptions.maxPatchDepthSharp = (unsigned char)_options.sharpLevel;
patchTreeOptions.maxPatchDepthSmooth = (unsigned char)_options.smoothLevel;
patchTreeOptions.useDoublePrecision = _options.doublePrecision;
PatchTreeBuilder patchTreeBuilder(*refiner, patchTreeOptions);
PatchTree const * patchTree = patchTreeBuilder.Build();
assert(patchTree->GetNumControlPoints() == _numControlVerts);
delete refiner;
return internal::IrregularPatchSharedPtr(patchTree);
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x638, %rsp # imm = 0x638
movq %rsi, %r14
movq %rdi, %r13
movl 0x14(%rsi), %ecx
movslq 0x18(%rsi), %rdx
movl %edx, 0x4(%rsp)
movslq 0x1c(%rsi), %rbx
movl %ebx, 0xc(%rsp)
movq (%rsi), %rax
movq (%rax), %rax
movslq 0x8(%rax), %r12
movl %ecx, (%rsp)
movq %rdx, 0x18(%rsp)
leal (%rdx,%rcx,2), %r15d
addl %ebx, %r15d
addl %r12d, %r15d
movq %rcx, 0x30(%rsp)
leal (%r12,%rcx), %ebp
leaq 0x230(%rsp), %rax
movq %rax, -0x10(%rax)
movl %r15d, -0x8(%rax)
movl $0x100, -0x4(%rax) # imm = 0x100
movq $0x0, 0x400(%rax)
cmpl $0x101, %r15d # imm = 0x101
jb 0x8b058
movl %r15d, %edi
shlq $0x2, %rdi
callq 0x3a230
movq %rax, 0x630(%rsp)
movq %rax, 0x220(%rsp)
movl %r15d, 0x22c(%rsp)
leaq 0x118(%rsp), %rax
movq %rax, -0x10(%rax)
movl %ebp, -0x8(%rax)
movl $0x40, -0x4(%rax)
movq $0x0, 0x100(%rax)
cmpl $0x41, %ebp
jb 0x8b0a0
movl %ebp, %edi
shlq $0x2, %rdi
callq 0x3a230
movq %rax, 0x218(%rsp)
movq %rax, 0x108(%rsp)
movl %ebp, 0x114(%rsp)
movq %r13, 0x28(%rsp)
movq 0x220(%rsp), %rsi
movq 0x18(%rsp), %rax
leaq (%rsi,%rax,4), %rdx
leaq (%rdx,%rbx,4), %rbx
movq 0x108(%rsp), %rbp
movq %r14, %rdi
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
callq 0x39bd0
movq (%r14), %rax
xorl %r15d, %r15d
testb $0x12, 0x88(%rax)
movl $0x0, %eax
je 0x8b0f6
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x39aa0
movl %eax, 0x8(%rsp)
movq %rbx, %r13
leaq (%rbx,%r12,4), %rbx
leaq (,%r12,4), %r12
addq %rbp, %r12
movq (%r14), %rax
testb $0x24, 0x88(%rax)
movq %rbp, 0x20(%rsp)
je 0x8b12e
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x3bf20
movl %eax, %r15d
movq %r12, 0x10(%rsp)
movl %r15d, (%rsp)
cmpb $0x1, 0x20(%r14)
movq 0x40(%rsp), %r15
movq 0x38(%rsp), %r12
jne 0x8b183
cmpl $0x3, 0x18(%rsp)
jl 0x8b164
leaq 0x4(%rsp), %rcx
leaq 0xc(%rsp), %r8
movq %r15, %rsi
movq %r12, %rdx
callq 0x3c420
movq (%r14), %rax
testb $0x1, 0x88(%rax)
je 0x8b183
movq %rsp, %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
callq 0x38e40
leaq 0x50(%rsp), %rdi
callq 0x39150
movq 0x30(%rsp), %rax
movl %eax, 0x50(%rsp)
movl 0x4(%rsp), %eax
movl %eax, 0x54(%rsp)
movq %r15, 0x58(%rsp)
movq %r12, 0x60(%rsp)
movl 0x8(%rsp), %eax
testl %eax, %eax
je 0x8b1cc
movl %eax, 0x80(%rsp)
movq %r13, 0x88(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x90(%rsp)
movl (%rsp), %eax
testl %eax, %eax
movq 0x28(%rsp), %r12
je 0x8b1eb
movl %eax, 0x68(%rsp)
movq %rbx, 0x70(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x78(%rsp)
movq (%r14), %rax
movq (%rax), %rcx
movl (%rcx), %ecx
movl 0x8a(%rax), %esi
shlq $0x20, %rsi
orq %rcx, %rsi
leaq 0x50(%rsp), %rdi
xorl %edx, %edx
callq 0x3c3e0
movq %rax, %rbx
leaq 0x4c(%rsp), %rdx
movw $0x401, (%rdx) # imm = 0x401
movb $0xf, 0x2(%rdx)
movb 0x3(%rdx), %al
andb $-0x4, %al
movb %al, 0x3(%rdx)
movb 0x8(%r14), %cl
movb %cl, 0x1(%rdx)
movb 0xc(%r14), %cl
movb %cl, 0x2(%rdx)
movb 0x10(%r14), %cl
addb %cl, %cl
orb %al, %cl
movb %cl, 0x3(%rdx)
leaq 0xb8(%rsp), %rdi
movq %rbx, %rsi
callq 0x384b0
leaq 0xb8(%rsp), %rdi
callq 0x39d70
movq %rax, %r15
movl 0x1c(%rax), %eax
cmpl 0x14(%r14), %eax
jne 0x8b2c9
movq %rbx, %rdi
callq 0x3bdd0
movl $0x78, %esi
movq %rbx, %rdi
callq 0x3a2d0
movq %r15, (%r12)
leaq 0x8(%r12), %rdi
movq %r15, %rsi
callq 0x38c40
leaq 0xb8(%rsp), %rdi
callq 0x38910
movq 0x218(%rsp), %rdi
callq 0x3a0c0
movq 0x630(%rsp), %rdi
callq 0x3a0c0
movq %r12, %rax
addq $0x638, %rsp # imm = 0x638
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x33739(%rip), %rdi # 0xbea09
leaq 0x33483(%rip), %rsi # 0xbe75a
leaq 0x33760(%rip), %rcx # 0xbea3e
movl $0x38f, %edx # imm = 0x38F
callq 0x39560
movq %rax, %rbx
jmp 0x8b32e
jmp 0x8b2f1
jmp 0x8b2f1
movq %rax, %rbx
jmp 0x8b306
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x38910
movq 0x218(%rsp), %rdi
callq 0x3a0c0
leaq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
movl $0x40, 0x114(%rsp)
movq 0x630(%rsp), %rdi
callq 0x3a0c0
movq %rbx, %rdi
callq 0x3bd70
nop
|
_ZN10OpenSubdiv6v3_6_03Bfr21IrregularPatchBuilder5BuildEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 638h
mov r14, rsi
mov r13, rdi
mov ecx, [rsi+14h]
movsxd rdx, dword ptr [rsi+18h]
mov [rsp+668h+var_664], edx
movsxd rbx, dword ptr [rsi+1Ch]
mov [rsp+668h+var_65C], ebx
mov rax, [rsi]
mov rax, [rax]
movsxd r12, dword ptr [rax+8]
mov [rsp+668h+var_668], ecx
mov [rsp+668h+var_650], rdx
lea r15d, [rdx+rcx*2]
add r15d, ebx
add r15d, r12d
mov [rsp+668h+var_638], rcx
lea ebp, [r12+rcx]
lea rax, [rsp+668h+var_438]
mov [rax-10h], rax
mov [rax-8], r15d
mov dword ptr [rax-4], 100h
mov qword ptr [rax+400h], 0
cmp r15d, 101h
jb short loc_8B058
mov edi, r15d
shl rdi, 2; unsigned __int64
call __Znwm; operator new(ulong)
mov [rsp+668h+var_38], rax
mov [rsp+668h+var_448], rax
mov [rsp+668h+var_43C], r15d
loc_8B058:
lea rax, [rsp+668h+var_550]
mov [rax-10h], rax
mov [rax-8], ebp
mov dword ptr [rax-4], 40h ; '@'
mov qword ptr [rax+100h], 0
cmp ebp, 41h ; 'A'
jb short loc_8B0A0
mov edi, ebp
shl rdi, 2; unsigned __int64
call __Znwm; operator new(ulong)
mov [rsp+668h+var_450], rax
mov [rsp+668h+var_560], rax
mov [rsp+668h+var_554], ebp
loc_8B0A0:
mov [rsp+668h+var_640], r13
mov rsi, [rsp+668h+var_448]; int *
mov rax, [rsp+668h+var_650]
lea rdx, [rsi+rax*4]; int *
lea rbx, [rdx+rbx*4]
mov rbp, [rsp+668h+var_560]
mov rdi, r14; this
mov [rsp+668h+var_628], rsi
mov [rsp+668h+var_630], rdx
call __ZNK10OpenSubdiv6v3_6_03Bfr21IrregularPatchBuilder18gatherControlFacesEPiS3_; OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::gatherControlFaces(int *,int *)
mov rax, [r14]
xor r15d, r15d
test byte ptr [rax+88h], 12h
mov eax, 0
jz short loc_8B0F6
mov rdi, r14; this
mov rsi, rbx; int *
mov rdx, rbp; float *
call __ZNK10OpenSubdiv6v3_6_03Bfr21IrregularPatchBuilder28gatherControlVertexSharpnessEPiPf; OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::gatherControlVertexSharpness(int *,float *)
loc_8B0F6:
mov [rsp+668h+var_660], eax
mov r13, rbx
lea rbx, [rbx+r12*4]
lea r12, ds:0[r12*4]
add r12, rbp
mov rax, [r14]
test byte ptr [rax+88h], 24h
mov [rsp+668h+var_648], rbp
jz short loc_8B12E
mov rdi, r14; this
mov rsi, rbx; int *
mov rdx, r12; float *
call __ZNK10OpenSubdiv6v3_6_03Bfr21IrregularPatchBuilder26gatherControlEdgeSharpnessEPiPf; OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::gatherControlEdgeSharpness(int *,float *)
mov r15d, eax
loc_8B12E:
mov [rsp+668h+var_658], r12
mov [rsp+668h+var_668], r15d
cmp byte ptr [r14+20h], 1
mov r15, [rsp+668h+var_628]
mov r12, [rsp+668h+var_630]
jnz short loc_8B183
cmp dword ptr [rsp+668h+var_650], 3
jl short loc_8B164
lea rcx, [rsp+668h+var_664]; int *
lea r8, [rsp+668h+var_65C]; int *
mov rsi, r15; int *
mov rdx, r12; int *
call __ZNK10OpenSubdiv6v3_6_03Bfr21IrregularPatchBuilder27removeDuplicateControlFacesEPiS3_S3_S3_; OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::removeDuplicateControlFaces(int *,int *,int *,int *)
loc_8B164:
mov rax, [r14]
test byte ptr [rax+88h], 1
jz short loc_8B183
mov rcx, rsp; int *
mov rdi, r14; this
mov rsi, rbx; int *
mov rdx, [rsp+668h+var_658]; float *
call __ZNK10OpenSubdiv6v3_6_03Bfr21IrregularPatchBuilder27sharpenBoundaryControlEdgesEPiPfS3_; OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::sharpenBoundaryControlEdges(int *,float *,int *)
loc_8B183:
lea rdi, [rsp+668h+var_618]; this
call __ZN10OpenSubdiv6v3_6_03Far18TopologyDescriptorC2Ev; OpenSubdiv::v3_6_0::Far::TopologyDescriptor::TopologyDescriptor(void)
mov rax, [rsp+668h+var_638]
mov [rsp+668h+var_618], eax
mov eax, [rsp+668h+var_664]
mov [rsp+668h+var_614], eax
mov [rsp+668h+var_610], r15
mov [rsp+668h+var_608], r12
mov eax, [rsp+668h+var_660]
test eax, eax
jz short loc_8B1CC
mov [rsp+668h+var_5E8], eax
mov [rsp+668h+var_5E0], r13
mov rax, [rsp+668h+var_648]
mov [rsp+668h+var_5D8], rax
loc_8B1CC:
mov eax, [rsp+668h+var_668]
test eax, eax
mov r12, [rsp+668h+var_640]
jz short loc_8B1EB
mov [rsp+668h+var_600], eax
mov [rsp+668h+var_5F8], rbx
mov rax, [rsp+668h+var_658]
mov [rsp+668h+var_5F0], rax
loc_8B1EB:
mov rax, [r14]
mov rcx, [rax]
mov ecx, [rcx]
mov esi, [rax+8Ah]
shl rsi, 20h
or rsi, rcx
lea rdi, [rsp+668h+var_618]; OpenSubdiv::v3_6_0::Far::TopologyRefiner *
xor edx, edx
call __ZN10OpenSubdiv6v3_6_03Far22TopologyRefinerFactoryINS1_18TopologyDescriptorEE6CreateERKS3_NS4_7OptionsE; OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&,OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
mov rbx, rax
lea rdx, [rsp+668h+var_61C]
mov word ptr [rdx], 401h
mov byte ptr [rdx+2], 0Fh
mov al, [rdx+3]
and al, 0FCh
mov [rdx+3], al
mov cl, [r14+8]
mov [rdx+1], cl
mov cl, [r14+0Ch]
mov [rdx+2], cl
mov cl, [r14+10h]
add cl, cl
or cl, al
mov [rdx+3], cl
lea rdi, [rsp+668h+var_5B0]; this
mov rsi, rbx
call __ZN10OpenSubdiv6v3_6_03Bfr16PatchTreeBuilderC2ERNS0_3Far15TopologyRefinerERKNS2_7OptionsE; OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::PatchTreeBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner &,OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::Options const&)
lea rdi, [rsp+668h+var_5B0]; this
call __ZN10OpenSubdiv6v3_6_03Bfr16PatchTreeBuilder5BuildEv; OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::Build(void)
mov r15, rax
mov eax, [rax+1Ch]
cmp eax, [r14+14h]
jnz short loc_8B2C9
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefinerD2Ev; OpenSubdiv::v3_6_0::Far::TopologyRefiner::~TopologyRefiner()
mov esi, 78h ; 'x'; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov [r12], r15
lea rdi, [r12+8]
mov rsi, r15
call __ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IPKN10OpenSubdiv6v3_6_03Bfr9PatchTreeEEET_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<OpenSubdiv::v3_6_0::Bfr::PatchTree const*>(OpenSubdiv::v3_6_0::Bfr::PatchTree const*)
lea rdi, [rsp+668h+var_5B0]; this
call __ZN10OpenSubdiv6v3_6_03Bfr16PatchTreeBuilderD2Ev; OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::~PatchTreeBuilder()
mov rdi, [rsp+668h+var_450]; void *
call __ZdlPv; operator delete(void *)
mov rdi, [rsp+668h+var_38]; void *
call __ZdlPv; operator delete(void *)
mov rax, r12
add rsp, 638h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8B2C9:
lea rdi, aPatchtreeGetnu; "patchTree->GetNumControlPoints() == _nu"...
lea rsi, aWorkspaceLlm4b_35; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aInternalIrregu; "internal::IrregularPatchSharedPtr OpenS"...
mov edx, 38Fh
call ___assert_fail
mov rbx, rax
jmp short loc_8B32E
jmp short loc_8B2F1
jmp short $+2
loc_8B2F1:
mov rbx, rax
jmp short loc_8B306
mov rbx, rax
lea rdi, [rsp+668h+var_5B0]; this
call __ZN10OpenSubdiv6v3_6_03Bfr16PatchTreeBuilderD2Ev; OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::~PatchTreeBuilder()
loc_8B306:
mov rdi, [rsp+668h+var_450]; void *
call __ZdlPv; operator delete(void *)
lea rax, [rsp+668h+var_550]
mov [rsp+668h+var_560], rax
mov [rsp+668h+var_554], 40h ; '@'
loc_8B32E:
mov rdi, [rsp+668h+var_38]; void *
call __ZdlPv; operator delete(void *)
mov rdi, rbx
call __Unwind_Resume
|
_QWORD * OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build(
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *this,
long long a2)
{
long long v2; // rcx
long long v3; // rbx
long long v4; // r12
unsigned int v5; // r15d
unsigned int v6; // ebp
int *v7; // rdx
int *v8; // rbx
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *v9; // rdi
int v10; // r15d
int v11; // eax
int *v12; // r13
int *v13; // rbx
float *v14; // r12
bool v15; // zf
int *v16; // r15
int *v17; // r12
_QWORD *v18; // r12
OpenSubdiv::v3_6_0::Far::TopologyRefiner *v19; // rbx
long long v20; // r15
int v22; // [rsp+0h] [rbp-668h] BYREF
int v23; // [rsp+4h] [rbp-664h] BYREF
int v24; // [rsp+8h] [rbp-660h]
int v25; // [rsp+Ch] [rbp-65Ch] BYREF
float *v26; // [rsp+10h] [rbp-658h]
long long v27; // [rsp+18h] [rbp-650h]
float *v28; // [rsp+20h] [rbp-648h]
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *v29; // [rsp+28h] [rbp-640h]
long long v30; // [rsp+30h] [rbp-638h]
int *v31; // [rsp+38h] [rbp-630h]
int *v32; // [rsp+40h] [rbp-628h]
__int16 v33; // [rsp+4Ch] [rbp-61Ch]
char v34; // [rsp+4Eh] [rbp-61Ah]
char v35; // [rsp+4Fh] [rbp-619h]
_DWORD v36[2]; // [rsp+50h] [rbp-618h] BYREF
int *v37; // [rsp+58h] [rbp-610h]
int *v38; // [rsp+60h] [rbp-608h]
int v39; // [rsp+68h] [rbp-600h]
int *v40; // [rsp+70h] [rbp-5F8h]
float *v41; // [rsp+78h] [rbp-5F0h]
int v42; // [rsp+80h] [rbp-5E8h]
int *v43; // [rsp+88h] [rbp-5E0h]
float *v44; // [rsp+90h] [rbp-5D8h]
_BYTE v45[80]; // [rsp+B8h] [rbp-5B0h] BYREF
float *v46; // [rsp+108h] [rbp-560h]
unsigned int v47; // [rsp+110h] [rbp-558h]
int v48; // [rsp+114h] [rbp-554h]
char v49; // [rsp+118h] [rbp-550h] BYREF
void *v50; // [rsp+218h] [rbp-450h]
int *v51; // [rsp+220h] [rbp-448h]
unsigned int v52; // [rsp+228h] [rbp-440h]
int v53; // [rsp+22Ch] [rbp-43Ch]
char v54; // [rsp+230h] [rbp-438h] BYREF
void *v55; // [rsp+630h] [rbp-38h]
v2 = *(unsigned int *)(a2 + 20);
v23 = *(_DWORD *)(a2 + 24);
v3 = *(int *)(a2 + 28);
v25 = v3;
v4 = *(int *)(**(_QWORD **)a2 + 8LL);
v22 = v2;
v27 = v23;
v5 = v4 + v3 + v23 + 2 * v2;
v30 = v2;
v6 = v4 + v2;
v51 = (int *)&v54;
v52 = v5;
v53 = 256;
v55 = 0LL;
if ( v5 >= 0x101 )
{
v55 = (void *)operator new(4LL * v5);
v51 = (int *)v55;
v53 = v5;
}
v46 = (float *)&v49;
v47 = v6;
v48 = 64;
v50 = 0LL;
if ( v6 >= 0x41 )
{
v50 = (void *)operator new(4LL * v6);
v46 = (float *)v50;
v48 = v6;
}
v29 = this;
v7 = &v51[v27];
v8 = &v7[v3];
v9 = (OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2;
v32 = v51;
v31 = v7;
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::gatherControlFaces(
(OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2,
v51,
v7);
v10 = 0;
v11 = 0;
if ( (*(_BYTE *)(*(_QWORD *)a2 + 136LL) & 0x12) != 0 )
{
v9 = (OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2;
v11 = OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::gatherControlVertexSharpness(
(OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2,
v8,
v46);
}
v24 = v11;
v12 = v8;
v13 = &v8[v4];
v14 = &v46[v4];
v15 = (*(_BYTE *)(*(_QWORD *)a2 + 136LL) & 0x24) == 0;
v28 = v46;
if ( !v15 )
{
v9 = (OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2;
v10 = OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::gatherControlEdgeSharpness(
(OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2,
v13,
v14);
}
v26 = v14;
v22 = v10;
v16 = v32;
v17 = v31;
if ( *(_BYTE *)(a2 + 32) == 1 )
{
if ( (int)v27 >= 3 )
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::removeDuplicateControlFaces(v9, v32, v31, &v23, &v25);
if ( (*(_BYTE *)(*(_QWORD *)a2 + 136LL) & 1) != 0 )
OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::sharpenBoundaryControlEdges(
(OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder *)a2,
v13,
v26,
&v22);
}
OpenSubdiv::v3_6_0::Far::TopologyDescriptor::TopologyDescriptor((OpenSubdiv::v3_6_0::Far::TopologyDescriptor *)v36);
v36[0] = v30;
v36[1] = v23;
v37 = v16;
v38 = v17;
if ( v24 )
{
v42 = v24;
v43 = v12;
v44 = v28;
}
v18 = v29;
if ( v22 )
{
v39 = v22;
v40 = v13;
v41 = v26;
}
v19 = (OpenSubdiv::v3_6_0::Far::TopologyRefiner *)OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create((OpenSubdiv::v3_6_0::Far::TopologyRefiner *)v36);
v33 = 1025;
v34 = 15;
v35 &= 0xFCu;
HIBYTE(v33) = *(_BYTE *)(a2 + 8);
v34 = *(_BYTE *)(a2 + 12);
v35 |= 2 * *(_BYTE *)(a2 + 16);
OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::PatchTreeBuilder((OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder *)v45);
v20 = OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::Build((OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder *)v45);
if ( *(_DWORD *)(v20 + 28) != *(_DWORD *)(a2 + 20) )
__assert_fail(
"patchTree->GetNumControlPoints() == _numControlVerts",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/irregularPatchBuilder.cpp",
911LL,
"internal::IrregularPatchSharedPtr OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build()");
OpenSubdiv::v3_6_0::Far::TopologyRefiner::~TopologyRefiner(v19);
operator delete(v19, 0x78uLL);
*v18 = v20;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<OpenSubdiv::v3_6_0::Bfr::PatchTree const*>(
v18 + 1,
v20);
OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder::~PatchTreeBuilder((OpenSubdiv::v3_6_0::Bfr::PatchTreeBuilder *)v45);
operator delete(v50);
operator delete(v55);
return v18;
}
|
Build:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x638
MOV R14,RSI
MOV R13,RDI
MOV ECX,dword ptr [RSI + 0x14]
MOVSXD RDX,dword ptr [RSI + 0x18]
MOV dword ptr [RSP + 0x4],EDX
MOVSXD RBX,dword ptr [RSI + 0x1c]
MOV dword ptr [RSP + 0xc],EBX
MOV RAX,qword ptr [RSI]
MOV RAX,qword ptr [RAX]
MOVSXD R12,dword ptr [RAX + 0x8]
MOV dword ptr [RSP],ECX
MOV qword ptr [RSP + 0x18],RDX
LEA R15D,[RDX + RCX*0x2]
ADD R15D,EBX
ADD R15D,R12D
MOV qword ptr [RSP + 0x30],RCX
LEA EBP,[R12 + RCX*0x1]
LEA RAX,[RSP + 0x230]
MOV qword ptr [RAX + -0x10],RAX
MOV dword ptr [RAX + -0x8],R15D
MOV dword ptr [RAX + -0x4],0x100
MOV qword ptr [RAX + 0x400],0x0
CMP R15D,0x101
JC 0x0018b058
MOV EDI,R15D
SHL RDI,0x2
CALL 0x0013a230
MOV qword ptr [RSP + 0x630],RAX
MOV qword ptr [RSP + 0x220],RAX
MOV dword ptr [RSP + 0x22c],R15D
LAB_0018b058:
LEA RAX,[RSP + 0x118]
MOV qword ptr [RAX + -0x10],RAX
MOV dword ptr [RAX + -0x8],EBP
MOV dword ptr [RAX + -0x4],0x40
MOV qword ptr [RAX + 0x100],0x0
CMP EBP,0x41
JC 0x0018b0a0
MOV EDI,EBP
SHL RDI,0x2
LAB_0018b084:
CALL 0x0013a230
MOV qword ptr [RSP + 0x218],RAX
MOV qword ptr [RSP + 0x108],RAX
MOV dword ptr [RSP + 0x114],EBP
LAB_0018b0a0:
MOV qword ptr [RSP + 0x28],R13
MOV RSI,qword ptr [RSP + 0x220]
MOV RAX,qword ptr [RSP + 0x18]
LEA RDX,[RSI + RAX*0x4]
LEA RBX,[RDX + RBX*0x4]
MOV RBP,qword ptr [RSP + 0x108]
MOV RDI,R14
MOV qword ptr [RSP + 0x40],RSI
MOV qword ptr [RSP + 0x38],RDX
CALL 0x00139bd0
MOV RAX,qword ptr [R14]
XOR R15D,R15D
TEST byte ptr [RAX + 0x88],0x12
MOV EAX,0x0
JZ 0x0018b0f6
MOV RDI,R14
MOV RSI,RBX
MOV RDX,RBP
CALL 0x00139aa0
LAB_0018b0f6:
MOV dword ptr [RSP + 0x8],EAX
MOV R13,RBX
LEA RBX,[RBX + R12*0x4]
LEA R12,[R12*0x4]
ADD R12,RBP
MOV RAX,qword ptr [R14]
TEST byte ptr [RAX + 0x88],0x24
MOV qword ptr [RSP + 0x20],RBP
JZ 0x0018b12e
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R12
CALL 0x0013bf20
MOV R15D,EAX
LAB_0018b12e:
MOV qword ptr [RSP + 0x10],R12
MOV dword ptr [RSP],R15D
CMP byte ptr [R14 + 0x20],0x1
MOV R15,qword ptr [RSP + 0x40]
MOV R12,qword ptr [RSP + 0x38]
JNZ 0x0018b183
CMP dword ptr [RSP + 0x18],0x3
JL 0x0018b164
LEA RCX,[RSP + 0x4]
LEA R8,[RSP + 0xc]
MOV RSI,R15
MOV RDX,R12
CALL 0x0013c420
LAB_0018b164:
MOV RAX,qword ptr [R14]
TEST byte ptr [RAX + 0x88],0x1
JZ 0x0018b183
MOV RCX,RSP
MOV RDI,R14
MOV RSI,RBX
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x00138e40
LAB_0018b183:
LEA RDI,[RSP + 0x50]
CALL 0x00139150
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RSP + 0x50],EAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSP + 0x54],EAX
MOV qword ptr [RSP + 0x58],R15
MOV qword ptr [RSP + 0x60],R12
MOV EAX,dword ptr [RSP + 0x8]
TEST EAX,EAX
JZ 0x0018b1cc
MOV dword ptr [RSP + 0x80],EAX
MOV qword ptr [RSP + 0x88],R13
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x90],RAX
LAB_0018b1cc:
MOV EAX,dword ptr [RSP]
TEST EAX,EAX
MOV R12,qword ptr [RSP + 0x28]
JZ 0x0018b1eb
MOV dword ptr [RSP + 0x68],EAX
MOV qword ptr [RSP + 0x70],RBX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x78],RAX
LAB_0018b1eb:
MOV RAX,qword ptr [R14]
MOV RCX,qword ptr [RAX]
MOV ECX,dword ptr [RCX]
MOV ESI,dword ptr [RAX + 0x8a]
SHL RSI,0x20
OR RSI,RCX
LAB_0018b200:
LEA RDI,[RSP + 0x50]
XOR EDX,EDX
CALL 0x0013c3e0
MOV RBX,RAX
LEA RDX,[RSP + 0x4c]
MOV word ptr [RDX],0x401
MOV byte ptr [RDX + 0x2],0xf
MOV AL,byte ptr [RDX + 0x3]
AND AL,0xfc
MOV byte ptr [RDX + 0x3],AL
MOV CL,byte ptr [R14 + 0x8]
MOV byte ptr [RDX + 0x1],CL
MOV CL,byte ptr [R14 + 0xc]
MOV byte ptr [RDX + 0x2],CL
MOV CL,byte ptr [R14 + 0x10]
ADD CL,CL
OR CL,AL
MOV byte ptr [RDX + 0x3],CL
LAB_0018b23e:
LEA RDI,[RSP + 0xb8]
MOV RSI,RBX
CALL 0x001384b0
LAB_0018b24e:
LEA RDI,[RSP + 0xb8]
CALL 0x00139d70
MOV R15,RAX
MOV EAX,dword ptr [RAX + 0x1c]
CMP EAX,dword ptr [R14 + 0x14]
JNZ 0x0018b2c9
MOV RDI,RBX
CALL 0x0013bdd0
MOV ESI,0x78
MOV RDI,RBX
CALL 0x0013a2d0
MOV qword ptr [R12],R15
LEA RDI,[R12 + 0x8]
MOV RSI,R15
CALL 0x00138c40
LAB_0018b28d:
LEA RDI,[RSP + 0xb8]
CALL 0x00138910
MOV RDI,qword ptr [RSP + 0x218]
CALL 0x0013a0c0
MOV RDI,qword ptr [RSP + 0x630]
CALL 0x0013a0c0
MOV RAX,R12
ADD RSP,0x638
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018b2c9:
LEA RDI,[0x1bea09]
LEA RSI,[0x1be75a]
LEA RCX,[0x1bea3e]
MOV EDX,0x38f
CALL 0x00139560
|
/* OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build() */
int8 * OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build(void)
{
int *piVar1;
int *piVar2;
int iVar3;
int *piVar4;
int *piVar5;
float *pfVar6;
TopologyRefiner *this;
PatchTree *pPVar7;
long lVar8;
uint uVar9;
IrregularPatchBuilder *in_RSI;
int8 *in_RDI;
IrregularPatchBuilder *this_00;
float *pfVar10;
uint uVar11;
uint local_668;
int local_664;
int local_660;
int local_65c;
float *local_658;
long local_650;
float *local_648;
int8 *local_640;
ulong local_638;
int *local_630;
int *local_628;
Options local_61c;
IrregularPatchBuilder IStack_61b;
IrregularPatchBuilder local_61a;
byte local_619;
int4 local_618;
int local_614;
int *local_610;
int *local_608;
uint local_600;
int *local_5f8;
float *local_5f0;
int local_5e8;
int *local_5e0;
float *local_5d8;
PatchTreeBuilder local_5b0 [80];
float *local_560;
uint local_558;
uint local_554;
float local_550 [64];
float *local_450;
int *local_448;
uint local_440;
uint local_43c;
int local_438 [256];
int *local_38;
local_668 = *(uint *)(in_RSI + 0x14);
local_638 = (ulong)local_668;
local_664 = *(int *)(in_RSI + 0x18);
local_650 = (long)local_664;
local_65c = *(int *)(in_RSI + 0x1c);
lVar8 = (long)local_65c;
iVar3 = *(int *)(**(long **)in_RSI + 8);
uVar11 = local_664 + local_668 * 2 + local_65c + iVar3;
uVar9 = iVar3 + local_668;
local_448 = local_438;
local_43c = 0x100;
local_38 = (int *)0x0;
local_440 = uVar11;
if (0x100 < uVar11) {
local_448 = (int *)operator_new((ulong)uVar11 << 2);
local_43c = uVar11;
local_38 = local_448;
}
local_560 = local_550;
local_554 = 0x40;
local_450 = (float *)0x0;
local_558 = uVar9;
if (0x40 < uVar9) {
/* try { // try from 0018b084 to 0018b088 has its CatchHandler @ 0018b2e8 */
local_560 = (float *)operator_new((ulong)uVar9 << 2);
local_554 = uVar9;
local_450 = local_560;
}
pfVar6 = local_560;
local_630 = local_448 + local_650;
piVar1 = local_630 + lVar8;
local_628 = local_448;
this_00 = in_RSI;
local_640 = in_RDI;
gatherControlFaces(in_RSI,local_448,local_630);
uVar9 = 0;
local_660 = 0;
if ((*(byte *)(*(long *)in_RSI + 0x88) & 0x12) != 0) {
this_00 = in_RSI;
local_660 = gatherControlVertexSharpness(in_RSI,piVar1,pfVar6);
}
piVar2 = piVar1 + iVar3;
pfVar10 = pfVar6 + iVar3;
local_648 = pfVar6;
if ((*(byte *)(*(long *)in_RSI + 0x88) & 0x24) != 0) {
this_00 = in_RSI;
uVar9 = gatherControlEdgeSharpness(in_RSI,piVar2,pfVar10);
}
piVar5 = local_628;
piVar4 = local_630;
local_668 = uVar9;
local_658 = pfVar10;
if (in_RSI[0x20] == (IrregularPatchBuilder)0x1) {
if (2 < (int)local_650) {
removeDuplicateControlFaces(this_00,local_628,local_630,&local_664,&local_65c);
}
if ((*(byte *)(*(long *)in_RSI + 0x88) & 1) != 0) {
sharpenBoundaryControlEdges(in_RSI,piVar2,local_658,(int *)&local_668);
}
}
/* try { // try from 0018b183 to 0018b18c has its CatchHandler @ 0018b2f1 */
Far::TopologyDescriptor::TopologyDescriptor((TopologyDescriptor *)&local_618);
local_618 = (int4)local_638;
local_614 = local_664;
local_610 = piVar5;
local_608 = piVar4;
if (local_660 != 0) {
local_5e8 = local_660;
local_5d8 = local_648;
local_5e0 = piVar1;
}
if (local_668 != 0) {
local_600 = local_668;
local_5f0 = local_658;
local_5f8 = piVar2;
}
/* try { // try from 0018b200 to 0018b20b has its CatchHandler @ 0018b2ef */
this = (TopologyRefiner *)
Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create
((TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor> *)
&local_618,
CONCAT44(*(int4 *)((long)*(int8 **)in_RSI + 0x8a),
*(int4 *)**(int8 **)in_RSI),0);
_local_61c = CONCAT11(in_RSI[8],1);
local_61a = in_RSI[0xc];
local_619 = (char)in_RSI[0x10] * '\x02' | local_619 & 0xfc;
/* try { // try from 0018b23e to 0018b24d has its CatchHandler @ 0018b2ed */
PatchTreeBuilder::PatchTreeBuilder(local_5b0,this,&local_61c);
/* try { // try from 0018b24e to 0018b28c has its CatchHandler @ 0018b2f6 */
pPVar7 = (PatchTree *)PatchTreeBuilder::Build(local_5b0);
if (*(int *)(pPVar7 + 0x1c) == *(int *)(in_RSI + 0x14)) {
Far::TopologyRefiner::~TopologyRefiner(this);
operator_delete(this,0x78);
*local_640 = pPVar7;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<OpenSubdiv::v3_6_0::Bfr::PatchTree_const*>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(local_640 + 1),pPVar7);
PatchTreeBuilder::~PatchTreeBuilder(local_5b0);
operator_delete(local_450);
operator_delete(local_38);
return local_640;
}
/* WARNING: Subroutine does not return */
__assert_fail("patchTree->GetNumControlPoints() == _numControlVerts",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/irregularPatchBuilder.cpp"
,0x38f,
"internal::IrregularPatchSharedPtr OpenSubdiv::v3_6_0::Bfr::IrregularPatchBuilder::Build()"
);
}
|
|
8,566 |
mthd_my_read_one_row
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int mthd_my_read_one_row(MYSQL *mysql,uint fields,MYSQL_ROW row, ulong *lengths)
{
uint field;
ulong pkt_len,len;
uchar *pos,*prev_pos, *end_pos;
if ((pkt_len=(uint) ma_net_safe_read(mysql)) == packet_error)
return -1;
if (pkt_len <= 8 && mysql->net.read_pos[0] == 254)
{
mysql->warning_count= uint2korr(mysql->net.read_pos + 1);
mysql->server_status= uint2korr(mysql->net.read_pos + 3);
return 1; /* End of data */
}
prev_pos= 0; /* allowed to write at packet[-1] */
pos=mysql->net.read_pos;
end_pos=pos+pkt_len;
for (field=0 ; field < fields ; field++)
{
if ((len=(ulong) net_field_length(&pos)) == NULL_LENGTH)
{ /* null field */
row[field] = 0;
*lengths++=0;
}
else
{
if (len > (ulong) (end_pos - pos) || pos > end_pos)
{
mysql->net.last_errno=CR_UNKNOWN_ERROR;
strncpy(mysql->net.last_error,ER(mysql->net.last_errno),
MYSQL_ERRMSG_SIZE - 1);
return -1;
}
row[field] = (char*) pos;
pos+=len;
*lengths++=len;
}
if (prev_pos)
*prev_pos=0; /* Terminate prev field */
prev_pos=pos;
}
row[field]=(char*) prev_pos+1; /* End of last field */
*prev_pos=0; /* Terminate last field */
return 0;
}
|
O0
|
c
|
mthd_my_read_one_row:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1c3b0
movl %eax, %eax
movq %rax, -0x38(%rbp)
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jne 0x20e2c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20fff
cmpq $0x8, -0x38(%rbp)
ja 0x20eb1
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jne 0x20eb1
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x10(%rbp), %rcx
movq 0x20(%rcx), %rcx
movzbl 0x2(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
addl %ecx, %eax
movzwl %ax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x388(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movzbl 0x3(%rax), %eax
movzwl %ax, %eax
movq -0x10(%rbp), %rcx
movq 0x20(%rcx), %rcx
movzbl 0x4(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
addl %ecx, %eax
movzwl %ax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x380(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x20fff
movq $0x0, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x20fde
leaq -0x48(%rbp), %rdi
callq 0x1c9d0
movq %rax, -0x40(%rbp)
cmpq $-0x1, %rax
jne 0x20f21
movq -0x20(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq $0x0, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x28(%rbp)
movq $0x0, (%rax)
jmp 0x20fba
movq -0x40(%rbp), %rax
movq -0x58(%rbp), %rcx
movq -0x48(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
ja 0x20f3f
movq -0x48(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0x20f89
movq -0x10(%rbp), %rax
movl $0x7d0, 0x90(%rax) # imm = 0x7D0
movq -0x10(%rbp), %rdi
addq $0x97, %rdi
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
subl $0x7d0, %eax # imm = 0x7D0
movl %eax, %eax
movl %eax, %ecx
leaq 0x4754e(%rip), %rax # 0x684c0
movq (%rax,%rcx,8), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20fff
movq -0x48(%rbp), %rdx
movq -0x20(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, -0x28(%rbp)
movq %rcx, (%rax)
cmpq $0x0, -0x50(%rbp)
je 0x20fc8
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x20ed8
movq -0x50(%rbp), %rdx
addq $0x1, %rdx
movq -0x20(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
mthd_my_read_one_row:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rdi, [rbp+var_10]
call ma_net_safe_read
mov eax, eax
mov [rbp+var_38], rax
mov ecx, 0FFFFFFFFh
cmp rax, rcx
jnz short loc_20E2C
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_20FFF
loc_20E2C:
cmp [rbp+var_38], 8
ja short loc_20EB1
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movzx eax, byte ptr [rax]
cmp eax, 0FEh
jnz short loc_20EB1
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_10]
mov rcx, [rcx+20h]
movzx ecx, byte ptr [rcx+2]
movzx ecx, cx
shl ecx, 8
add eax, ecx
movzx ecx, ax
mov rax, [rbp+var_10]
mov [rax+388h], ecx
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movzx eax, byte ptr [rax+3]
movzx eax, ax
mov rcx, [rbp+var_10]
mov rcx, [rcx+20h]
movzx ecx, byte ptr [rcx+4]
movzx ecx, cx
shl ecx, 8
add eax, ecx
movzx ecx, ax
mov rax, [rbp+var_10]
mov [rax+380h], ecx
mov [rbp+var_4], 1
jmp loc_20FFF
loc_20EB1:
mov [rbp+var_50], 0
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov [rbp+var_48], rax
mov rax, [rbp+var_48]
add rax, [rbp+var_38]
mov [rbp+var_58], rax
mov [rbp+var_2C], 0
loc_20ED8:
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_14]
jnb loc_20FDE
lea rdi, [rbp+var_48]
call net_field_length
mov [rbp+var_40], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_20F21
mov rax, [rbp+var_20]
mov ecx, [rbp+var_2C]
mov qword ptr [rax+rcx*8], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 8
mov [rbp+var_28], rcx
mov qword ptr [rax], 0
jmp loc_20FBA
loc_20F21:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_58]
mov rdx, [rbp+var_48]
sub rcx, rdx
cmp rax, rcx
ja short loc_20F3F
mov rax, [rbp+var_48]
cmp rax, [rbp+var_58]
jbe short loc_20F89
loc_20F3F:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 7D0h
mov rdi, [rbp+var_10]
add rdi, 97h
mov rax, [rbp+var_10]
mov eax, [rax+90h]
sub eax, 7D0h
mov eax, eax
mov ecx, eax
lea rax, client_errors
mov rsi, [rax+rcx*8]
mov edx, 1FFh
call _strncpy
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_20FFF
loc_20F89:
mov rdx, [rbp+var_48]
mov rax, [rbp+var_20]
mov ecx, [rbp+var_2C]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_40]
add rax, [rbp+var_48]
mov [rbp+var_48], rax
mov rcx, [rbp+var_40]
mov rax, [rbp+var_28]
mov rdx, rax
add rdx, 8
mov [rbp+var_28], rdx
mov [rax], rcx
loc_20FBA:
cmp [rbp+var_50], 0
jz short loc_20FC8
mov rax, [rbp+var_50]
mov byte ptr [rax], 0
loc_20FC8:
mov rax, [rbp+var_48]
mov [rbp+var_50], rax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp loc_20ED8
loc_20FDE:
mov rdx, [rbp+var_50]
add rdx, 1
mov rax, [rbp+var_20]
mov ecx, [rbp+var_2C]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_50]
mov byte ptr [rax], 0
mov [rbp+var_4], 0
loc_20FFF:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long mthd_my_read_one_row(long long a1, long long a2, long long a3, long long a4, int a5, int a6)
{
unsigned long long *v6; // rax
unsigned long long *v7; // rax
unsigned __int8 *v9; // [rsp+8h] [rbp-58h]
unsigned __int8 *v10; // [rsp+10h] [rbp-50h]
unsigned __int8 *v11; // [rsp+18h] [rbp-48h] BYREF
unsigned long long v12; // [rsp+20h] [rbp-40h]
unsigned long long v13; // [rsp+28h] [rbp-38h]
unsigned int i; // [rsp+34h] [rbp-2Ch]
unsigned long long *v15; // [rsp+38h] [rbp-28h]
long long v16; // [rsp+40h] [rbp-20h]
unsigned int v17; // [rsp+4Ch] [rbp-14h]
long long v18; // [rsp+50h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = (unsigned long long *)a4;
v13 = (unsigned int)ma_net_safe_read(a1, a2, a3, a4, a5, a6);
if ( v13 == 0xFFFFFFFF )
{
return (unsigned int)-1;
}
else if ( v13 <= 8 && **(unsigned __int8 **)(v18 + 32) == 254 )
{
*(_DWORD *)(v18 + 904) = (unsigned __int16)((*(unsigned __int8 *)(*(_QWORD *)(v18 + 32) + 2LL) << 8)
+ *(unsigned __int8 *)(*(_QWORD *)(v18 + 32) + 1LL));
*(_DWORD *)(v18 + 896) = (unsigned __int16)((*(unsigned __int8 *)(*(_QWORD *)(v18 + 32) + 4LL) << 8)
+ *(unsigned __int8 *)(*(_QWORD *)(v18 + 32) + 3LL));
return 1;
}
else
{
v10 = 0LL;
v11 = *(unsigned __int8 **)(v18 + 32);
v9 = &v11[v13];
for ( i = 0; i < v17; ++i )
{
v12 = net_field_length(&v11);
if ( v12 == -1LL )
{
*(_QWORD *)(v16 + 8LL * i) = 0LL;
v6 = v15++;
*v6 = 0LL;
}
else
{
if ( v12 > v9 - v11 || v11 > v9 )
{
*(_DWORD *)(v18 + 144) = 2000;
strncpy(v18 + 151, client_errors[*(_DWORD *)(v18 + 144) - 2000], 511LL);
return (unsigned int)-1;
}
*(_QWORD *)(v16 + 8LL * i) = v11;
v11 += v12;
v7 = v15++;
*v7 = v12;
}
if ( v10 )
*v10 = 0;
v10 = v11;
}
*(_QWORD *)(v16 + 8LL * i) = v10 + 1;
*v10 = 0;
return 0;
}
}
|
mthd_my_read_one_row:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0011c3b0
MOV EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
MOV ECX,0xffffffff
CMP RAX,RCX
JNZ 0x00120e2c
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00120fff
LAB_00120e2c:
CMP qword ptr [RBP + -0x38],0x8
JA 0x00120eb1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfe
JNZ 0x00120eb1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x20]
MOVZX ECX,byte ptr [RCX + 0x2]
MOVZX ECX,CX
SHL ECX,0x8
ADD EAX,ECX
MOVZX ECX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x388],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX + 0x3]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x20]
MOVZX ECX,byte ptr [RCX + 0x4]
MOVZX ECX,CX
SHL ECX,0x8
ADD EAX,ECX
MOVZX ECX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x380],ECX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00120fff
LAB_00120eb1:
MOV qword ptr [RBP + -0x50],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x58],RAX
MOV dword ptr [RBP + -0x2c],0x0
LAB_00120ed8:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x14]
JNC 0x00120fde
LEA RDI,[RBP + -0x48]
CALL 0x0011c9d0
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,-0x1
JNZ 0x00120f21
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x2c]
MOV qword ptr [RAX + RCX*0x8],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x8
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RAX],0x0
JMP 0x00120fba
LAB_00120f21:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x48]
SUB RCX,RDX
CMP RAX,RCX
JA 0x00120f3f
MOV RAX,qword ptr [RBP + -0x48]
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x00120f89
LAB_00120f3f:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x7d0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x97
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x90]
SUB EAX,0x7d0
MOV EAX,EAX
MOV ECX,EAX
LEA RAX,[0x1684c0]
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV EDX,0x1ff
CALL 0x00113220
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00120fff
LAB_00120f89:
MOV RDX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x2c]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RBP + -0x28],RDX
MOV qword ptr [RAX],RCX
LAB_00120fba:
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00120fc8
MOV RAX,qword ptr [RBP + -0x50]
MOV byte ptr [RAX],0x0
LAB_00120fc8:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00120ed8
LAB_00120fde:
MOV RDX,qword ptr [RBP + -0x50]
ADD RDX,0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x2c]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x50]
MOV byte ptr [RAX],0x0
MOV dword ptr [RBP + -0x4],0x0
LAB_00120fff:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 mthd_my_read_one_row(long param_1,uint param_2,long param_3,ulong *param_4)
{
uint uVar1;
int1 *puVar2;
int1 *local_58;
int1 *local_50;
ulong local_48;
ulong local_40;
uint local_34;
ulong *local_30;
long local_28;
uint local_1c;
long local_18;
int4 local_c;
local_30 = param_4;
local_28 = param_3;
local_1c = param_2;
local_18 = param_1;
uVar1 = ma_net_safe_read(param_1);
local_40 = (ulong)uVar1;
if (local_40 == 0xffffffff) {
local_c = 0xffffffff;
}
else if ((local_40 < 9) && (**(char **)(local_18 + 0x20) == -2)) {
*(uint *)(local_18 + 0x388) =
(uint)*(byte *)(*(long *)(local_18 + 0x20) + 1) +
(uint)*(byte *)(*(long *)(local_18 + 0x20) + 2) * 0x100 & 0xffff;
*(uint *)(local_18 + 0x380) =
(uint)*(byte *)(*(long *)(local_18 + 0x20) + 3) +
(uint)*(byte *)(*(long *)(local_18 + 0x20) + 4) * 0x100 & 0xffff;
local_c = 1;
}
else {
local_58 = (int1 *)0x0;
local_50 = *(int1 **)(local_18 + 0x20);
puVar2 = local_50 + local_40;
for (local_34 = 0; local_34 < local_1c; local_34 = local_34 + 1) {
local_48 = net_field_length(&local_50);
if (local_48 == 0xffffffffffffffff) {
*(int8 *)(local_28 + (ulong)local_34 * 8) = 0;
*local_30 = 0;
}
else {
if (((ulong)((long)puVar2 - (long)local_50) < local_48) || (puVar2 < local_50)) {
*(int4 *)(local_18 + 0x90) = 2000;
strncpy((char *)(local_18 + 0x97),(&client_errors)[*(int *)(local_18 + 0x90) - 2000],0x1ff
);
return 0xffffffff;
}
*(int1 **)(local_28 + (ulong)local_34 * 8) = local_50;
local_50 = local_50 + local_48;
*local_30 = local_48;
}
local_30 = local_30 + 1;
if (local_58 != (int1 *)0x0) {
*local_58 = 0;
}
local_58 = local_50;
}
*(int1 **)(local_28 + (ulong)local_34 * 8) = local_58 + 1;
*local_58 = 0;
local_c = 0;
}
return local_c;
}
|
|
8,567 |
quantize_row_q8_0_ref
|
ngxson[P]ggml-easy/ggml/src/ggml-quants.c
|
void quantize_row_q8_0_ref(const float * GGML_RESTRICT x, block_q8_0 * GGML_RESTRICT y, int64_t k) {
assert(k % QK8_0 == 0);
const int nb = k / QK8_0;
for (int i = 0; i < nb; i++) {
float amax = 0.0f; // absolute max
for (int j = 0; j < QK8_0; j++) {
const float v = x[i*QK8_0 + j];
amax = MAX(amax, fabsf(v));
}
const float d = amax / ((1 << 7) - 1);
const float id = d ? 1.0f/d : 0.0f;
y[i].d = GGML_FP32_TO_FP16(d);
for (int j = 0; j < QK8_0; ++j) {
const float x0 = x[i*QK8_0 + j]*id;
y[i].qs[j] = roundf(x0);
}
}
}
|
O0
|
c
|
quantize_row_q8_0_ref:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x30(%rsp), %rax
movl $0x20, %ecx
cqto
idivq %rcx
movl %eax, 0x2c(%rsp)
movl $0x0, 0x28(%rsp)
movl 0x28(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0x6f5e8
xorps %xmm0, %xmm0
movss %xmm0, 0x24(%rsp)
movl $0x0, 0x20(%rsp)
cmpl $0x20, 0x20(%rsp)
jge 0x6f4ec
movq 0x40(%rsp), %rax
movl 0x28(%rsp), %ecx
shll $0x5, %ecx
addl 0x20(%rsp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x1c(%rsp)
movss 0x24(%rsp), %xmm0
movss 0x1c(%rsp), %xmm1
movaps 0x44b8b(%rip), %xmm2 # 0xb4030
pand %xmm2, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x6f4bc
movss 0x24(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x6f4d3
movss 0x1c(%rsp), %xmm0
movaps 0x44b67(%rip), %xmm1 # 0xb4030
pand %xmm1, %xmm0
movss %xmm0, 0x8(%rsp)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x24(%rsp)
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x6f46d
movss 0x24(%rsp), %xmm0
movss 0x49316(%rip), %xmm1 # 0xb8810
divss %xmm1, %xmm0
movss %xmm0, 0x18(%rsp)
movss 0x18(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x6f516
jp 0x6f516
jmp 0x6f52c
movss 0x44f0a(%rip), %xmm0 # 0xb4428
divss 0x18(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
jmp 0x6f537
xorps %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
jmp 0x6f537
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
movss 0x18(%rsp), %xmm0
callq 0x6ea10
movw %ax, %cx
movq 0x38(%rsp), %rax
movslq 0x28(%rsp), %rdx
imulq $0x22, %rdx, %rdx
addq %rdx, %rax
movw %cx, (%rax)
movl $0x0, 0x10(%rsp)
cmpl $0x20, 0x10(%rsp)
jge 0x6f5d6
movq 0x40(%rsp), %rax
movl 0x28(%rsp), %ecx
shll $0x5, %ecx
movl 0x10(%rsp), %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movss 0x14(%rsp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, 0xc(%rsp)
movss 0xc(%rsp), %xmm0
callq 0x43de0
cvttss2si %xmm0, %eax
movb %al, %dl
movq 0x38(%rsp), %rax
movslq 0x28(%rsp), %rcx
imulq $0x22, %rcx, %rcx
addq %rcx, %rax
movslq 0x10(%rsp), %rcx
movb %dl, 0x2(%rax,%rcx)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x6f56d
jmp 0x6f5d8
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x6f44e
addq $0x48, %rsp
retq
nopl (%rax)
|
quantize_row_q8_0_ref:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov [rsp+48h+var_18], rdx
mov rax, [rsp+48h+var_18]
mov ecx, 20h ; ' '
cqo
idiv rcx
mov [rsp+48h+var_1C], eax
mov [rsp+48h+var_20], 0
loc_6F44E:
mov eax, [rsp+48h+var_20]
cmp eax, [rsp+48h+var_1C]
jge loc_6F5E8
xorps xmm0, xmm0
movss [rsp+48h+var_24], xmm0
mov [rsp+48h+var_28], 0
loc_6F46D:
cmp [rsp+48h+var_28], 20h ; ' '
jge short loc_6F4EC
mov rax, [rsp+48h+var_8]
mov ecx, [rsp+48h+var_20]
shl ecx, 5
add ecx, [rsp+48h+var_28]
movsxd rcx, ecx
movss xmm0, dword ptr [rax+rcx*4]
movss [rsp+48h+var_2C], xmm0
movss xmm0, [rsp+48h+var_24]
movss xmm1, [rsp+48h+var_2C]
movaps xmm2, cs:xmmword_B4030
pand xmm1, xmm2
ucomiss xmm0, xmm1
jbe short loc_6F4BC
movss xmm0, [rsp+48h+var_24]
movss [rsp+48h+var_40], xmm0
jmp short loc_6F4D3
loc_6F4BC:
movss xmm0, [rsp+48h+var_2C]
movaps xmm1, cs:xmmword_B4030
pand xmm0, xmm1
movss [rsp+48h+var_40], xmm0
loc_6F4D3:
movss xmm0, [rsp+48h+var_40]
movss [rsp+48h+var_24], xmm0
mov eax, [rsp+48h+var_28]
add eax, 1
mov [rsp+48h+var_28], eax
jmp short loc_6F46D
loc_6F4EC:
movss xmm0, [rsp+48h+var_24]
movss xmm1, cs:dword_B8810
divss xmm0, xmm1
movss [rsp+48h+var_30], xmm0
movss xmm0, [rsp+48h+var_30]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jnz short loc_6F516
jp short loc_6F516
jmp short loc_6F52C
loc_6F516:
movss xmm0, cs:dword_B4428
divss xmm0, [rsp+48h+var_30]
movss [rsp+48h+var_44], xmm0
jmp short loc_6F537
loc_6F52C:
xorps xmm0, xmm0
movss [rsp+48h+var_44], xmm0
jmp short $+2
loc_6F537:
movss xmm0, [rsp+48h+var_44]
movss [rsp+48h+var_34], xmm0
movss xmm0, [rsp+48h+var_30]
call ggml_compute_fp32_to_fp16_0
mov cx, ax
mov rax, [rsp+48h+var_10]
movsxd rdx, [rsp+48h+var_20]
imul rdx, 22h ; '"'
add rax, rdx
mov [rax], cx
mov [rsp+48h+var_38], 0
loc_6F56D:
cmp [rsp+48h+var_38], 20h ; ' '
jge short loc_6F5D6
mov rax, [rsp+48h+var_8]
mov ecx, [rsp+48h+var_20]
shl ecx, 5
mov edx, [rsp+48h+var_38]
add ecx, edx
movsxd rcx, ecx
movss xmm0, dword ptr [rax+rcx*4]
movss xmm1, [rsp+48h+var_34]
mulss xmm0, xmm1
movss [rsp+48h+var_3C], xmm0
movss xmm0, [rsp+48h+var_3C]
call _roundf
cvttss2si eax, xmm0
mov dl, al
mov rax, [rsp+48h+var_10]
movsxd rcx, [rsp+48h+var_20]
imul rcx, 22h ; '"'
add rax, rcx
movsxd rcx, [rsp+48h+var_38]
mov [rax+rcx+2], dl
mov eax, [rsp+48h+var_38]
add eax, 1
mov [rsp+48h+var_38], eax
jmp short loc_6F56D
loc_6F5D6:
jmp short $+2
loc_6F5D8:
mov eax, [rsp+48h+var_20]
add eax, 1
mov [rsp+48h+var_20], eax
jmp loc_6F44E
loc_6F5E8:
add rsp, 48h
retn
|
long long quantize_row_q8_0_ref(long long a1, long long a2, long long a3)
{
long long result; // rax
float v4; // [rsp+4h] [rbp-44h]
unsigned __int32 v5; // [rsp+8h] [rbp-40h]
int k; // [rsp+10h] [rbp-38h]
float v7; // [rsp+18h] [rbp-30h]
unsigned int v8; // [rsp+1Ch] [rbp-2Ch]
int j; // [rsp+20h] [rbp-28h]
float v10; // [rsp+24h] [rbp-24h]
unsigned int i; // [rsp+28h] [rbp-20h]
int v12; // [rsp+2Ch] [rbp-1Ch]
v12 = a3 / 32;
for ( i = 0; ; ++i )
{
result = i;
if ( (int)i >= v12 )
break;
v10 = 0.0;
for ( j = 0; j < 32; ++j )
{
v8 = *(_DWORD *)(a1 + 4LL * (int)(j + 32 * i));
if ( v10 <= *(float *)_mm_and_si128((__m128i)v8, (__m128i)xmmword_B4030).m128i_i32 )
v5 = _mm_and_si128((__m128i)v8, (__m128i)xmmword_B4030).m128i_u32[0];
else
v5 = LODWORD(v10);
v10 = *(float *)&v5;
}
v7 = v10 / 127.0;
if ( (float)(v10 / 127.0) == 0.0 )
v4 = 0.0;
else
v4 = 1.0 / v7;
*(_WORD *)(34LL * (int)i + a2) = ggml_compute_fp32_to_fp16_0(v7);
for ( k = 0; k < 32; ++k )
*(_BYTE *)(34LL * (int)i + a2 + k + 2) = (int)roundf(*(float *)(a1 + 4LL * (int)(k + 32 * i)) * v4);
}
return result;
}
|
quantize_row_q8_0_ref:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV ECX,0x20
CQO
IDIV RCX
MOV dword ptr [RSP + 0x2c],EAX
MOV dword ptr [RSP + 0x28],0x0
LAB_0016f44e:
MOV EAX,dword ptr [RSP + 0x28]
CMP EAX,dword ptr [RSP + 0x2c]
JGE 0x0016f5e8
XORPS XMM0,XMM0
MOVSS dword ptr [RSP + 0x24],XMM0
MOV dword ptr [RSP + 0x20],0x0
LAB_0016f46d:
CMP dword ptr [RSP + 0x20],0x20
JGE 0x0016f4ec
MOV RAX,qword ptr [RSP + 0x40]
MOV ECX,dword ptr [RSP + 0x28]
SHL ECX,0x5
ADD ECX,dword ptr [RSP + 0x20]
MOVSXD RCX,ECX
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOVSS dword ptr [RSP + 0x1c],XMM0
MOVSS XMM0,dword ptr [RSP + 0x24]
MOVSS XMM1,dword ptr [RSP + 0x1c]
MOVAPS XMM2,xmmword ptr [0x001b4030]
PAND XMM1,XMM2
UCOMISS XMM0,XMM1
JBE 0x0016f4bc
MOVSS XMM0,dword ptr [RSP + 0x24]
MOVSS dword ptr [RSP + 0x8],XMM0
JMP 0x0016f4d3
LAB_0016f4bc:
MOVSS XMM0,dword ptr [RSP + 0x1c]
MOVAPS XMM1,xmmword ptr [0x001b4030]
PAND XMM0,XMM1
MOVSS dword ptr [RSP + 0x8],XMM0
LAB_0016f4d3:
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RSP + 0x24],XMM0
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
JMP 0x0016f46d
LAB_0016f4ec:
MOVSS XMM0,dword ptr [RSP + 0x24]
MOVSS XMM1,dword ptr [0x001b8810]
DIVSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x18],XMM0
MOVSS XMM0,dword ptr [RSP + 0x18]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JNZ 0x0016f516
JP 0x0016f516
JMP 0x0016f52c
LAB_0016f516:
MOVSS XMM0,dword ptr [0x001b4428]
DIVSS XMM0,dword ptr [RSP + 0x18]
MOVSS dword ptr [RSP + 0x4],XMM0
JMP 0x0016f537
LAB_0016f52c:
XORPS XMM0,XMM0
MOVSS dword ptr [RSP + 0x4],XMM0
JMP 0x0016f537
LAB_0016f537:
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RSP + 0x14],XMM0
MOVSS XMM0,dword ptr [RSP + 0x18]
CALL 0x0016ea10
MOV CX,AX
MOV RAX,qword ptr [RSP + 0x38]
MOVSXD RDX,dword ptr [RSP + 0x28]
IMUL RDX,RDX,0x22
ADD RAX,RDX
MOV word ptr [RAX],CX
MOV dword ptr [RSP + 0x10],0x0
LAB_0016f56d:
CMP dword ptr [RSP + 0x10],0x20
JGE 0x0016f5d6
MOV RAX,qword ptr [RSP + 0x40]
MOV ECX,dword ptr [RSP + 0x28]
SHL ECX,0x5
MOV EDX,dword ptr [RSP + 0x10]
ADD ECX,EDX
MOVSXD RCX,ECX
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOVSS XMM1,dword ptr [RSP + 0x14]
MULSS XMM0,XMM1
MOVSS dword ptr [RSP + 0xc],XMM0
MOVSS XMM0,dword ptr [RSP + 0xc]
CALL 0x00143de0
CVTTSS2SI EAX,XMM0
MOV DL,AL
MOV RAX,qword ptr [RSP + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x28]
IMUL RCX,RCX,0x22
ADD RAX,RCX
MOVSXD RCX,dword ptr [RSP + 0x10]
MOV byte ptr [RAX + RCX*0x1 + 0x2],DL
MOV EAX,dword ptr [RSP + 0x10]
ADD EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
JMP 0x0016f56d
LAB_0016f5d6:
JMP 0x0016f5d8
LAB_0016f5d8:
MOV EAX,dword ptr [RSP + 0x28]
ADD EAX,0x1
MOV dword ptr [RSP + 0x28],EAX
JMP 0x0016f44e
LAB_0016f5e8:
ADD RSP,0x48
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void quantize_row_q8_0_ref(long param_1,long param_2,long param_3)
{
uint uVar1;
int2 uVar2;
float fVar3;
int4 local_44;
int4 local_40;
int4 local_38;
int4 local_28;
int4 local_24;
int4 local_20;
for (local_20 = 0; local_20 < (int)(param_3 / 0x20); local_20 = local_20 + 1) {
local_24 = 0.0;
for (local_28 = 0; local_28 < 0x20; local_28 = local_28 + 1) {
uVar1 = *(uint *)(param_1 + (long)(local_20 * 0x20 + local_28) * 4);
if (local_24 <= (float)(uVar1 & _DAT_001b4030)) {
local_40 = (float)(uVar1 & _DAT_001b4030);
}
else {
local_40 = local_24;
}
local_24 = local_40;
}
local_24 = local_24 / DAT_001b8810;
if ((local_24 != 0.0) || (NAN(local_24))) {
local_44 = DAT_001b4428 / local_24;
}
else {
local_44 = 0.0;
}
uVar2 = ggml_compute_fp32_to_fp16();
*(int2 *)(param_2 + (long)local_20 * 0x22) = uVar2;
for (local_38 = 0; local_38 < 0x20; local_38 = local_38 + 1) {
fVar3 = roundf(*(float *)(param_1 + (long)(local_20 * 0x20 + local_38) * 4) * local_44);
*(char *)(param_2 + (long)local_20 * 0x22 + 2 + (long)local_38) = (char)(int)fVar3;
}
}
return;
}
|
|
8,568 |
write_hook_for_redo
|
eloqsql/storage/maria/ma_blockrec.c
|
my_bool write_hook_for_redo(enum translog_record_type type
__attribute__ ((unused)),
TRN *trn, MARIA_HA *tbl_info
__attribute__ ((unused)),
LSN *lsn, void *hook_arg
__attribute__ ((unused)))
{
/*
Users of dummy_transaction_object must keep this TRN clean as it
is used by many threads (like those manipulating non-transactional
tables). It might be dangerous if one user sets rec_lsn or some other
member and it is picked up by another user (like putting this rec_lsn into
a page of a non-transactional table); it's safer if all members stay 0. So
non-transactional log records (REPAIR, CREATE, RENAME, DROP) should not
call this hook; we trust them but verify ;)
*/
DBUG_ASSERT(trn->trid != 0);
/*
If the hook stays so simple, it would be faster to pass
!trn->rec_lsn ? trn->rec_lsn : some_dummy_lsn
to translog_write_record(), like Monty did in his original code, and not
have a hook. For now we keep it like this.
*/
if (trn->rec_lsn == 0)
trn->rec_lsn= *lsn;
return 0;
}
|
O3
|
c
|
write_hook_for_redo:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0x90(%rsi)
jne 0x5fcd0
movq (%rcx), %rax
movq %rax, 0x90(%rsi)
xorl %eax, %eax
popq %rbp
retq
|
write_hook_for_redo:
push rbp
mov rbp, rsp
cmp qword ptr [rsi+90h], 0
jnz short loc_5FCD0
mov rax, [rcx]
mov [rsi+90h], rax
loc_5FCD0:
xor eax, eax
pop rbp
retn
|
long long write_hook_for_redo(long long a1, long long a2, long long a3, _QWORD *a4)
{
if ( !*(_QWORD *)(a2 + 144) )
*(_QWORD *)(a2 + 144) = *a4;
return 0LL;
}
|
write_hook_for_redo:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [RSI + 0x90],0x0
JNZ 0x0015fcd0
MOV RAX,qword ptr [RCX]
MOV qword ptr [RSI + 0x90],RAX
LAB_0015fcd0:
XOR EAX,EAX
POP RBP
RET
|
int8
write_hook_for_redo(int8 param_1,long param_2,int8 param_3,int8 *param_4)
{
if (*(long *)(param_2 + 0x90) == 0) {
*(int8 *)(param_2 + 0x90) = *param_4;
}
return 0;
}
|
|
8,569 |
stbi_is_hdr
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
STBIDEF int stbi_is_hdr (char const *filename)
{
FILE *f = stbi__fopen(filename, "rb");
int result=0;
if (f) {
result = stbi_is_hdr_from_file(f);
fclose(f);
}
return result;
}
|
O1
|
c
|
stbi_is_hdr:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0xe7118(%rip), %rsi # 0x1104f5
callq 0x1de50
testq %rax, %rax
je 0x29400
movq %rax, %rbx
movq %rax, %rdi
callq 0x29409
movl %eax, %ebp
movq %rbx, %rdi
callq 0x1dc00
movl %ebp, %eax
jmp 0x29402
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
stbi_is_hdr:
push rbp
push rbx
push rax
lea rsi, aCrb+2; "rb"
call _fopen
test rax, rax
jz short loc_29400
mov rbx, rax
mov rdi, rax
call stbi_is_hdr_from_file
mov ebp, eax
mov rdi, rbx
call _fclose
mov eax, ebp
jmp short loc_29402
loc_29400:
xor eax, eax
loc_29402:
add rsp, 8
pop rbx
pop rbp
retn
|
long long stbi_is_hdr(long long a1)
{
long long v1; // rax
long long v2; // rbx
unsigned int is_hdr_from_file; // ebp
v1 = fopen(a1, "rb");
if ( !v1 )
return 0LL;
v2 = v1;
is_hdr_from_file = stbi_is_hdr_from_file(v1);
fclose(v2);
return is_hdr_from_file;
}
|
stbi_is_hdr:
PUSH RBP
PUSH RBX
PUSH RAX
LEA RSI,[0x2104f5]
CALL 0x0011de50
TEST RAX,RAX
JZ 0x00129400
MOV RBX,RAX
MOV RDI,RAX
CALL 0x00129409
MOV EBP,EAX
MOV RDI,RBX
CALL 0x0011dc00
MOV EAX,EBP
JMP 0x00129402
LAB_00129400:
XOR EAX,EAX
LAB_00129402:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int4 stbi_is_hdr(char *param_1)
{
int4 uVar1;
FILE *__stream;
__stream = fopen(param_1,"rb");
if (__stream == (FILE *)0x0) {
uVar1 = 0;
}
else {
uVar1 = stbi_is_hdr_from_file(__stream);
fclose(__stream);
}
return uVar1;
}
|
|
8,570 |
w_search
|
eloqsql/storage/maria/ma_write.c
|
static int w_search(register MARIA_HA *info, uint32 comp_flag, MARIA_KEY *key,
my_off_t page_pos,
MARIA_PAGE *father_page, uchar *father_keypos,
my_bool insert_last)
{
int error,flag;
uchar *temp_buff,*keypos,*keybuff;
my_bool was_last_key, buff_alloced;
my_off_t next_page, dup_key_pos;
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *keyinfo= key->keyinfo;
MARIA_PAGE page;
DBUG_ENTER("w_search");
DBUG_PRINT("enter", ("page: %lu", (ulong) (page_pos/keyinfo->block_length)));
alloc_on_stack(*info->stack_end_ptr, temp_buff, buff_alloced,
(keyinfo->block_length + keyinfo->max_store_length*3));
if (!temp_buff)
DBUG_RETURN(1);
keybuff= temp_buff + (keyinfo->block_length + keyinfo->max_store_length*2);
if (_ma_fetch_keypage(&page, info, keyinfo, page_pos, PAGECACHE_LOCK_WRITE,
DFLT_INIT_HITS, temp_buff, 0))
goto err;
flag= (*keyinfo->bin_search)(key, &page, comp_flag, &keypos,
keybuff, &was_last_key);
if (flag == 0)
{
MARIA_KEY tmp_key;
/* get position to record with duplicated key */
tmp_key.keyinfo= keyinfo;
tmp_key.data= keybuff;
if ((*keyinfo->get_key)(&tmp_key, page.flag, page.node, &keypos))
dup_key_pos= _ma_row_pos_from_key(&tmp_key);
else
dup_key_pos= HA_OFFSET_ERROR;
if (keyinfo->flag & HA_FULLTEXT)
{
uint off;
int subkeys;
get_key_full_length_rdonly(off, keybuff);
subkeys=ft_sintXkorr(keybuff+off);
comp_flag=SEARCH_SAME;
if (subkeys >= 0)
{
/* normal word, one-level tree structure */
flag=(*keyinfo->bin_search)(key, &page, comp_flag,
&keypos, keybuff, &was_last_key);
}
else
{
/* popular word. two-level tree. going down */
my_off_t root= dup_key_pos;
MARIA_KEY subkey;
get_key_full_length_rdonly(off, key->data);
subkey.keyinfo= keyinfo= &share->ft2_keyinfo;
subkey.data= key->data + off;
subkey.data_length= key->data_length - off;
subkey.ref_length= key->ref_length;
subkey.flag= key->flag;
/* we'll modify key entry 'in vivo' */
keypos-= keyinfo->keylength + page.node;
error= _ma_ck_real_write_btree(info, &subkey, &root, comp_flag);
_ma_dpointer(share, keypos+HA_FT_WLEN, root);
subkeys--; /* should there be underflow protection ? */
DBUG_ASSERT(subkeys < 0);
ft_intXstore(keypos, subkeys);
if (!error)
{
page_mark_changed(info, &page);
if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED,
DFLT_INIT_HITS))
goto err;
}
stack_alloc_free(temp_buff, buff_alloced);
DBUG_RETURN(error);
}
}
else /* not HA_FULLTEXT, normal HA_NOSAME key */
{
/*
TODO
When the index will support true versioning - with multiple
identical values in the UNIQUE index, invisible to each other -
the following should be changed to "continue inserting keys, at the
end (of the row or statement) wait". We need to wait on *all*
unique conflicts at once, not one-at-a-time, because we need to
know all blockers in advance, otherwise we'll have incomplete wait-for
graph.
*/
/*
transaction that has inserted the conflicting key may be in progress.
the caller will wait for it to be committed or aborted.
*/
info->dup_key_trid= _ma_trid_from_key(&tmp_key);
info->dup_key_pos= dup_key_pos;
my_errno= HA_ERR_FOUND_DUPP_KEY;
DBUG_PRINT("warning",
("Duplicate key. dup_key_trid: %lu pos %lu visible: %d",
(ulong) info->dup_key_trid,
(ulong) info->dup_key_pos,
info->trn ? trnman_can_read_from(info->trn,
info->dup_key_trid) : 2));
goto err;
}
}
if (flag == MARIA_FOUND_WRONG_KEY)
{
my_errno= HA_ERR_CRASHED;
goto err;
}
if (!was_last_key)
insert_last=0;
next_page= _ma_kpos(page.node, keypos);
if (next_page == HA_OFFSET_ERROR ||
(error= w_search(info, comp_flag, key, next_page,
&page, keypos, insert_last)) > 0)
{
error= _ma_insert(info, key, &page, keypos, keybuff,
father_page, father_keypos, insert_last);
if (error < 0)
goto err;
page_mark_changed(info, &page);
if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED,
DFLT_INIT_HITS))
goto err;
}
stack_alloc_free(temp_buff, buff_alloced);
DBUG_RETURN(error);
err:
stack_alloc_free(temp_buff, buff_alloced);
DBUG_PRINT("exit",("Error: %d",my_errno));
DBUG_RETURN(-1);
}
|
O3
|
c
|
w_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, -0x68(%rbp)
movq %r8, -0x60(%rbp)
movq %rcx, %r12
movl %esi, -0x48(%rbp)
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rax
movq %rax, -0x58(%rbp)
movq %rdx, -0x70(%rbp)
movq 0x8(%rdx), %r13
movzwl 0xa6(%r13), %r15d
movzwl 0xb0(%r13), %ebx
leaq (%rbx,%rbx,2), %rsi
addq %r15, %rsi
leaq -0xb0(%rbp), %rcx
movq %rsi, (%rcx)
movq 0x78(%rdi), %rax
movq (%rax), %rax
subq %rcx, %rax
subq %rsi, %rax
jbe 0x5192d
cmpq $0x10000, %rax # imm = 0x10000
ja 0x51917
cmpl $0x1000, %esi # imm = 0x1000
jb 0x5192d
cmpq $0x8001, %rax # imm = 0x8001
jb 0x5192d
movq %rsp, %rax
addl $0xf, %esi
andl $-0x10, %esi
subq %rsi, %rax
movq %rax, %rsp
movb $0x1, %cl
movl %ecx, -0x44(%rbp)
jmp 0x51959
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0xa1359
testq %rax, %rax
je 0x519e3
movzwl 0xa6(%r13), %r15d
movzwl 0xb0(%r13), %ebx
movl $0x0, -0x44(%rbp)
leaq -0xb0(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movl $0x4, %r8d
movl $0x3, %r9d
pushq $0x0
movq %rax, -0x50(%rbp)
pushq %rax
callq 0x3a476
addq $0x10, %rsp
testb %al, %al
je 0x519a0
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x0, -0x44(%rbp)
jne 0x519e9
movq -0x50(%rbp), %rdi
callq 0xa1586
jmp 0x519e9
leaq (%r15,%rbx,2), %r12
addq -0x50(%rbp), %r12
leaq -0xb0(%rbp), %rsi
leaq -0x40(%rbp), %rcx
leaq -0x31(%rbp), %r9
movq -0x70(%rbp), %r15
movq %r15, %rdi
movl -0x48(%rbp), %edx
movq %r12, %r8
callq *0xd8(%r13)
testl %eax, %eax
je 0x51a0e
cmpl $0x7fffffff, %eax # imm = 0x7FFFFFFF
jne 0x51a4f
callq 0xa319a
movl $0x7e, (%rax)
jmp 0x51989
movl $0x1, %r13d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x51cd3
movl %r13d, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0xd0(%rbp), %rdi
movq %r13, 0x8(%rdi)
movq %r12, (%rdi)
movl -0x88(%rbp), %edx
movl -0x84(%rbp), %esi
leaq -0x40(%rbp), %rcx
callq *0xe0(%r13)
testl %eax, %eax
je 0x51b04
leaq -0xd0(%rbp), %rdi
callq 0x385ec
movq %rax, %rbx
jmp 0x51b0b
xorl %eax, %eax
cmpb $0x0, -0x31(%rbp)
movzbl 0x10(%rbp), %ebx
cmovel %eax, %ebx
movl -0x88(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x38487
movsbl %bl, %ebx
cmpq $-0x1, %rax
je 0x51aa1
movq -0x40(%rbp), %r9
subq $0x8, %rsp
leaq -0xb0(%rbp), %r8
movq %r14, %rdi
movl -0x48(%rbp), %esi
movq %r15, %rdx
movq %rax, %rcx
pushq %rbx
callq 0x5188e
addq $0x10, %rsp
testl %eax, %eax
jle 0x51b51
movq -0x40(%rbp), %rcx
leaq -0xb0(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %r8
movq -0x60(%rbp), %r9
pushq %rbx
pushq -0x68(%rbp)
callq 0x51fbf
addq $0x10, %rsp
testl %eax, %eax
js 0x51989
movl %eax, %r13d
movq 0x2e8(%r14), %rax
leaq -0xb0(%rbp), %rdi
movl 0x30(%rdi), %ecx
leaq (%rcx,%rcx,2), %rcx
movb $0x1, 0x10(%rax,%rcx,8)
movl $0x2, %esi
movl $0x3, %edx
callq 0x3a5b5
testb %al, %al
jne 0x51989
jmp 0x51b54
movq $-0x1, %rbx
testb $-0x80, 0xa2(%r13)
jne 0x51b3f
leaq -0xd0(%rbp), %rdi
callq 0x386a4
movq %rax, 0x430(%r14)
movq %rbx, 0x428(%r14)
callq 0xa319a
movl $0x79, (%rax)
jmp 0x51989
movzbl (%r12), %eax
cmpq $0xff, %rax
je 0x51b67
incq %rax
jmp 0x51b78
movl %eax, %r13d
cmpb $0x0, -0x44(%rbp)
movq -0x50(%rbp), %rdi
je 0x51999
jmp 0x519e9
movzwl 0x1(%r12), %eax
rolw $0x8, %ax
movzwl %ax, %eax
addq $0x3, %rax
movzbl (%r12,%rax), %ecx
shll $0x18, %ecx
js 0x51baf
leaq -0xb0(%rbp), %rsi
movl $0x4, -0x48(%rbp)
leaq -0x40(%rbp), %rcx
leaq -0x31(%rbp), %r9
movq %r15, %rdi
movl $0x4, %edx
movq %r12, %r8
callq *0xd8(%r13)
jmp 0x519cf
movzwl 0x2(%r12,%rax), %edx
rolw $0x8, %dx
movzwl %dx, %edx
movzbl 0x1(%r12,%rax), %r13d
shll $0x10, %r13d
orl %edx, %r13d
orl %ecx, %r13d
movq %rbx, -0x78(%rbp)
movq (%r15), %rax
movzbl (%rax), %ecx
cmpl $0xff, %ecx
je 0x51be2
incl %ecx
jmp 0x51bf0
movzwl 0x1(%rax), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
addl $0x3, %ecx
movq -0x58(%rbp), %rbx
leaq 0x458(%rbx), %rdx
leaq -0xf0(%rbp), %rsi
movq %rdx, 0x8(%rsi)
movl %ecx, %edx
addq %rdx, %rax
movq %rax, (%rsi)
movl 0x10(%r15), %eax
subl %ecx, %eax
movl %eax, 0x10(%rsi)
movq 0x14(%r15), %rax
movq %rax, 0x14(%rsi)
movzwl 0x502(%rbx), %eax
addl -0x88(%rbp), %eax
subq %rax, -0x40(%rbp)
leaq -0x78(%rbp), %r12
movq %r14, %rdi
movq %r12, %rdx
movl $0x4, %ecx
callq 0x51830
movl %eax, %r15d
movq -0x40(%rbp), %rsi
addq $0x4, %rsi
movq (%r12), %rdx
movq %rbx, %rdi
callq 0x387d0
movl %r13d, %edx
decl %edx
movq -0x40(%rbp), %rax
movb %dl, 0x3(%rax)
movq -0x40(%rbp), %rax
movb %dh, 0x2(%rax)
movl %edx, %eax
shrl $0x10, %eax
movq -0x40(%rbp), %rcx
movb %al, 0x1(%rcx)
shrl $0x18, %edx
movq -0x40(%rbp), %rax
movb %dl, (%rax)
testb %r15b, %r15b
je 0x51ca0
cmpb $0x0, -0x44(%rbp)
jne 0x51c97
movq -0x50(%rbp), %rdi
callq 0xa1586
movzbl %r15b, %r13d
jmp 0x519e9
movq 0x2e8(%r14), %rax
leaq -0xb0(%rbp), %rdi
movl 0x30(%rdi), %ecx
leaq (%rcx,%rcx,2), %rcx
movb $0x1, 0x10(%rax,%rcx,8)
movl $0x2, %esi
movl $0x3, %edx
callq 0x3a5b5
testb %al, %al
jne 0x51989
jmp 0x51c88
callq 0x29220
|
w_search:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov [rbp+var_68], r9
mov [rbp+var_60], r8
mov r12, rcx
mov [rbp+var_48], esi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi]
mov [rbp+var_58], rax
mov [rbp+var_70], rdx
mov r13, [rdx+8]
movzx r15d, word ptr [r13+0A6h]
movzx ebx, word ptr [r13+0B0h]
lea rsi, [rbx+rbx*2]
add rsi, r15
lea rcx, [rbp+var_B0]
mov [rcx], rsi
mov rax, [rdi+78h]
mov rax, [rax]
sub rax, rcx
sub rax, rsi
jbe short loc_5192D
cmp rax, 10000h
ja short loc_51917
cmp esi, 1000h
jb short loc_5192D
cmp rax, 8001h
jb short loc_5192D
loc_51917:
mov rax, rsp
add esi, 0Fh
and esi, 0FFFFFFF0h
sub rax, rsi
mov rsp, rax
mov cl, 1
mov [rbp+var_44], ecx
jmp short loc_51959
loc_5192D:
mov edx, 10010h
xor edi, edi
call my_malloc
test rax, rax
jz loc_519E3
movzx r15d, word ptr [r13+0A6h]
movzx ebx, word ptr [r13+0B0h]
mov [rbp+var_44], 0
loc_51959:
lea rdi, [rbp+var_B0]
mov rsi, r14
mov rdx, r13
mov rcx, r12
mov r8d, 4
mov r9d, 3
push 0
mov [rbp+var_50], rax
push rax
call _ma_fetch_keypage
add rsp, 10h
test al, al
jz short loc_519A0
loc_51989:
mov r13d, 0FFFFFFFFh
cmp byte ptr [rbp+var_44], 0
jnz short loc_519E9
mov rdi, [rbp+var_50]
loc_51999:
call my_free
jmp short loc_519E9
loc_519A0:
lea r12, [r15+rbx*2]
add r12, [rbp+var_50]
lea rsi, [rbp+var_B0]
lea rcx, [rbp+var_40]
lea r9, [rbp+var_31]
mov r15, [rbp+var_70]
mov rdi, r15
mov edx, [rbp+var_48]
mov r8, r12
call qword ptr [r13+0D8h]
test eax, eax
jz short loc_51A0E
loc_519CF:
cmp eax, 7FFFFFFFh
jnz short loc_51A4F
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
jmp short loc_51989
loc_519E3:
mov r13d, 1
loc_519E9:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_51CD3
mov eax, r13d
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_51A0E:
lea rdi, [rbp+var_D0]
mov [rdi+8], r13
mov [rdi], r12
mov edx, [rbp+var_88]
mov esi, [rbp+var_84]
lea rcx, [rbp+var_40]
call qword ptr [r13+0E0h]
test eax, eax
jz loc_51B04
lea rdi, [rbp+var_D0]
call _ma_row_pos_from_key
mov rbx, rax
jmp loc_51B0B
loc_51A4F:
xor eax, eax
cmp [rbp+var_31], 0
movzx ebx, [rbp+arg_0]
cmovz ebx, eax
mov edi, [rbp+var_88]
mov rsi, [rbp+var_40]
call _ma_kpos
movsx ebx, bl
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_51AA1
mov r9, [rbp+var_40]
sub rsp, 8
lea r8, [rbp+var_B0]
mov rdi, r14
mov esi, [rbp+var_48]
mov rdx, r15
mov rcx, rax
push rbx
call w_search
add rsp, 10h
test eax, eax
jle loc_51B51
loc_51AA1:
mov rcx, [rbp+var_40]
lea rdx, [rbp+var_B0]
mov rdi, r14
mov rsi, r15
mov r8, r12
mov r9, [rbp+var_60]
push rbx
push [rbp+var_68]
call _ma_insert
add rsp, 10h
test eax, eax
js loc_51989
mov r13d, eax
mov rax, [r14+2E8h]
lea rdi, [rbp+var_B0]
mov ecx, [rdi+30h]
lea rcx, [rcx+rcx*2]
mov byte ptr [rax+rcx*8+10h], 1
mov esi, 2
mov edx, 3
call _ma_write_keypage
test al, al
jnz loc_51989
jmp short loc_51B54
loc_51B04:
mov rbx, 0FFFFFFFFFFFFFFFFh
loc_51B0B:
test byte ptr [r13+0A2h], 80h
jnz short loc_51B3F
lea rdi, [rbp+var_D0]
call _ma_trid_from_key
mov [r14+430h], rax
mov [r14+428h], rbx
call _my_thread_var
mov dword ptr [rax], 79h ; 'y'
jmp loc_51989
loc_51B3F:
movzx eax, byte ptr [r12]
cmp rax, 0FFh
jz short loc_51B67
inc rax
jmp short loc_51B78
loc_51B51:
mov r13d, eax
loc_51B54:
cmp byte ptr [rbp+var_44], 0
mov rdi, [rbp+var_50]
jz loc_51999
jmp loc_519E9
loc_51B67:
movzx eax, word ptr [r12+1]
rol ax, 8
movzx eax, ax
add rax, 3
loc_51B78:
movzx ecx, byte ptr [r12+rax]
shl ecx, 18h
js short loc_51BAF
lea rsi, [rbp+var_B0]
mov [rbp+var_48], 4
lea rcx, [rbp+var_40]
lea r9, [rbp+var_31]
mov rdi, r15
mov edx, 4
mov r8, r12
call qword ptr [r13+0D8h]
jmp loc_519CF
loc_51BAF:
movzx edx, word ptr [r12+rax+2]
rol dx, 8
movzx edx, dx
movzx r13d, byte ptr [r12+rax+1]
shl r13d, 10h
or r13d, edx
or r13d, ecx
mov [rbp+var_78], rbx
mov rax, [r15]
movzx ecx, byte ptr [rax]
cmp ecx, 0FFh
jz short loc_51BE2
inc ecx
jmp short loc_51BF0
loc_51BE2:
movzx ecx, word ptr [rax+1]
rol cx, 8
movzx ecx, cx
add ecx, 3
loc_51BF0:
mov rbx, [rbp+var_58]
lea rdx, [rbx+458h]
lea rsi, [rbp+var_F0]
mov [rsi+8], rdx
mov edx, ecx
add rax, rdx
mov [rsi], rax
mov eax, [r15+10h]
sub eax, ecx
mov [rsi+10h], eax
mov rax, [r15+14h]
mov [rsi+14h], rax
movzx eax, word ptr [rbx+502h]
add eax, [rbp+var_88]
sub [rbp+var_40], rax
lea r12, [rbp+var_78]
mov rdi, r14
mov rdx, r12
mov ecx, 4
call _ma_ck_real_write_btree
mov r15d, eax
mov rsi, [rbp+var_40]
add rsi, 4
mov rdx, [r12]
mov rdi, rbx
call _ma_dpointer
mov edx, r13d
dec edx
mov rax, [rbp+var_40]
mov [rax+3], dl
mov rax, [rbp+var_40]
mov [rax+2], dh
mov eax, edx
shr eax, 10h
mov rcx, [rbp+var_40]
mov [rcx+1], al
shr edx, 18h
mov rax, [rbp+var_40]
mov [rax], dl
test r15b, r15b
jz short loc_51CA0
loc_51C88:
cmp byte ptr [rbp+var_44], 0
jnz short loc_51C97
mov rdi, [rbp+var_50]
call my_free
loc_51C97:
movzx r13d, r15b
jmp loc_519E9
loc_51CA0:
mov rax, [r14+2E8h]
lea rdi, [rbp+var_B0]
mov ecx, [rdi+30h]
lea rcx, [rcx+rcx*2]
mov byte ptr [rax+rcx*8+10h], 1
mov esi, 2
mov edx, 3
call _ma_write_keypage
test al, al
jnz loc_51989
jmp short loc_51C88
loc_51CD3:
call ___stack_chk_fail
|
long long w_search(
long long a1,
unsigned int a2,
unsigned __int8 **a3,
unsigned long long a4,
long long a5,
long long a6,
char a7)
{
long long v9; // r13
long long v10; // r15
long long v11; // rbx
long long *v12; // rsi
long long **v13; // rcx
unsigned long long v14; // rax
bool v15; // cc
unsigned long long v16; // rax
char *v17; // rax
unsigned int v18; // r13d
char *v19; // rdi
unsigned __int8 *v20; // r12
unsigned __int8 **v21; // r15
unsigned __int8 **v22; // rdi
int v23; // eax
long long v25; // rbx
long long v27; // rax
int v28; // eax
int v29; // eax
long long v30; // rax
long long v31; // rax
int v32; // r13d
unsigned __int8 *v33; // rax
int v34; // ecx
unsigned int v35; // ecx
long long v36; // rbx
bool v37; // r15
_QWORD v38[2]; // [rsp+0h] [rbp-F0h] BYREF
unsigned int v39; // [rsp+10h] [rbp-E0h]
long long v40; // [rsp+14h] [rbp-DCh]
long long v41[4]; // [rsp+20h] [rbp-D0h] BYREF
long long *v42[5]; // [rsp+40h] [rbp-B0h] BYREF
unsigned int v43; // [rsp+68h] [rbp-88h]
unsigned int v44; // [rsp+6Ch] [rbp-84h]
unsigned int v45; // [rsp+70h] [rbp-80h]
long long v46; // [rsp+78h] [rbp-78h] BYREF
unsigned __int8 **v47; // [rsp+80h] [rbp-70h]
long long v48; // [rsp+88h] [rbp-68h]
long long v49; // [rsp+90h] [rbp-60h]
long long v50; // [rsp+98h] [rbp-58h]
char *v51; // [rsp+A0h] [rbp-50h]
unsigned int v52; // [rsp+A8h] [rbp-48h]
int v53; // [rsp+ACh] [rbp-44h]
_BYTE *v54; // [rsp+B0h] [rbp-40h] BYREF
char v55; // [rsp+BFh] [rbp-31h] BYREF
unsigned long long v56; // [rsp+C0h] [rbp-30h]
v48 = a6;
v49 = a5;
v52 = a2;
v56 = __readfsqword(0x28u);
v50 = *(_QWORD *)a1;
v47 = a3;
v9 = (long long)a3[1];
v10 = *(unsigned __int16 *)(v9 + 166);
v11 = *(unsigned __int16 *)(v9 + 176);
v12 = (long long *)(v10 + 3 * v11);
v13 = v42;
v42[0] = v12;
v14 = **(_QWORD **)(a1 + 120) - (_QWORD)v42;
v15 = v14 <= (unsigned long long)v12;
v16 = v14 - (_QWORD)v12;
if ( v15 || v16 <= 0x10000 && ((unsigned int)v12 < 0x1000 || v16 < 0x8001) )
{
v17 = (char *)my_malloc(0LL, v12, 65552LL);
if ( !v17 )
return 1;
v10 = *(unsigned __int16 *)(v9 + 166);
v11 = *(unsigned __int16 *)(v9 + 176);
v53 = 0;
}
else
{
v17 = (char *)v38 - (((_DWORD)v12 + 15) & 0xFFFFFFF0);
LOBYTE(v13) = 1;
v53 = (int)v13;
}
v51 = v17;
if ( ma_fetch_keypage((long long)v42, a1, v9, a4, 4, 3, (long long)v17) )
goto LABEL_9;
v20 = (unsigned __int8 *)&v51[2 * v11 + v10];
v21 = v47;
v22 = v47;
v23 = (*(long long ( **)(unsigned __int8 **, long long **, _QWORD, _BYTE **, unsigned __int8 *, char *))(v9 + 216))(
v47,
v42,
v52,
&v54,
v20,
&v55);
if ( v23 )
{
LABEL_13:
if ( v23 == 0x7FFFFFFF )
{
*(_DWORD *)my_thread_var(v22) = 126;
goto LABEL_9;
}
if ( !v55 )
a7 = 0;
v27 = ma_kpos(v43, (long long)v54);
if ( v27 == -1 || (v28 = w_search(a1, v52, (_DWORD)v21, v27, (unsigned int)v42, (_DWORD)v54, a7), v28 > 0) )
{
v29 = ma_insert(a1, (_DWORD)v21, (unsigned int)v42, (_DWORD)v54, (_DWORD)v20, v49, v48, a7);
if ( v29 < 0 )
goto LABEL_9;
v18 = v29;
*(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v45 + 16) = 1;
if ( (unsigned __int8)ma_write_keypage(v42, 2, 3) )
goto LABEL_9;
}
else
{
v18 = v28;
}
v19 = v51;
if ( (_BYTE)v53 )
return v18;
goto LABEL_11;
}
v41[1] = v9;
v41[0] = (long long)v20;
if ( (*(unsigned int ( **)(long long *, _QWORD, _QWORD, _BYTE **))(v9 + 224))(v41, v44, v43, &v54) )
v25 = ma_row_pos_from_key(v41);
else
v25 = -1LL;
if ( *(char *)(v9 + 162) >= 0 )
{
*(_QWORD *)(a1 + 1072) = ma_trid_from_key((long long)v41);
*(_QWORD *)(a1 + 1064) = v25;
*(_DWORD *)my_thread_var(v41) = 121;
goto LABEL_9;
}
v30 = *v20;
if ( v30 == 255 )
v31 = (unsigned __int16)__ROL2__(*(_WORD *)(v20 + 1), 8) + 3LL;
else
v31 = v30 + 1;
if ( (v20[v31] & 0x80) == 0 )
{
v52 = 4;
v22 = v21;
v23 = (*(long long ( **)(unsigned __int8 **, long long **, long long, _BYTE **, unsigned __int8 *, char *))(v9 + 216))(
v21,
v42,
4LL,
&v54,
v20,
&v55);
goto LABEL_13;
}
v32 = (v20[v31] << 24) | (unsigned __int16)__ROL2__(*(_WORD *)&v20[v31 + 2], 8) | (v20[v31 + 1] << 16);
v46 = v25;
v33 = *v21;
v34 = **v21;
if ( v34 == 255 )
v35 = (unsigned __int16)__ROL2__(*(_WORD *)(v33 + 1), 8) + 3;
else
v35 = v34 + 1;
v36 = v50;
v38[1] = v50 + 1112;
v38[0] = &v33[v35];
v39 = *((_DWORD *)v21 + 4) - v35;
v40 = *(long long *)((char *)v21 + 20);
v54 += -v43 - *(unsigned __int16 *)(v50 + 1282);
v37 = ma_ck_real_write_btree(a1, (long long)v38, &v46, 4);
ma_dpointer(v36, (long long)(v54 + 4), v46);
v54[3] = v32 - 1;
v54[2] = (unsigned __int16)(v32 - 1) >> 8;
v54[1] = (unsigned int)(v32 - 1) >> 16;
*v54 = (unsigned int)(v32 - 1) >> 24;
if ( v37 || (*(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v45 + 16) = 1, !(unsigned __int8)ma_write_keypage(v42, 2, 3)) )
{
if ( !(_BYTE)v53 )
my_free(v51);
return v37;
}
LABEL_9:
v18 = -1;
if ( !(_BYTE)v53 )
{
v19 = v51;
LABEL_11:
my_free(v19);
}
return v18;
}
|
w_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV qword ptr [RBP + -0x68],R9
MOV qword ptr [RBP + -0x60],R8
MOV R12,RCX
MOV dword ptr [RBP + -0x48],ESI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI]
MOV qword ptr [RBP + -0x58],RAX
MOV qword ptr [RBP + -0x70],RDX
MOV R13,qword ptr [RDX + 0x8]
MOVZX R15D,word ptr [R13 + 0xa6]
MOVZX EBX,word ptr [R13 + 0xb0]
LEA RSI,[RBX + RBX*0x2]
ADD RSI,R15
LEA RCX,[RBP + -0xb0]
MOV qword ptr [RCX],RSI
MOV RAX,qword ptr [RDI + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RCX
SUB RAX,RSI
JBE 0x0015192d
CMP RAX,0x10000
JA 0x00151917
CMP ESI,0x1000
JC 0x0015192d
CMP RAX,0x8001
JC 0x0015192d
LAB_00151917:
MOV RAX,RSP
ADD ESI,0xf
AND ESI,0xfffffff0
SUB RAX,RSI
MOV RSP,RAX
MOV CL,0x1
MOV dword ptr [RBP + -0x44],ECX
JMP 0x00151959
LAB_0015192d:
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x001a1359
TEST RAX,RAX
JZ 0x001519e3
MOVZX R15D,word ptr [R13 + 0xa6]
MOVZX EBX,word ptr [R13 + 0xb0]
MOV dword ptr [RBP + -0x44],0x0
LAB_00151959:
LEA RDI,[RBP + -0xb0]
MOV RSI,R14
MOV RDX,R13
MOV RCX,R12
MOV R8D,0x4
MOV R9D,0x3
PUSH 0x0
MOV qword ptr [RBP + -0x50],RAX
PUSH RAX
CALL 0x0013a476
ADD RSP,0x10
TEST AL,AL
JZ 0x001519a0
LAB_00151989:
MOV R13D,0xffffffff
CMP byte ptr [RBP + -0x44],0x0
JNZ 0x001519e9
MOV RDI,qword ptr [RBP + -0x50]
LAB_00151999:
CALL 0x001a1586
JMP 0x001519e9
LAB_001519a0:
LEA R12,[R15 + RBX*0x2]
ADD R12,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0xb0]
LEA RCX,[RBP + -0x40]
LEA R9,[RBP + -0x31]
MOV R15,qword ptr [RBP + -0x70]
MOV RDI,R15
MOV EDX,dword ptr [RBP + -0x48]
MOV R8,R12
CALL qword ptr [R13 + 0xd8]
TEST EAX,EAX
JZ 0x00151a0e
LAB_001519cf:
CMP EAX,0x7fffffff
JNZ 0x00151a4f
CALL 0x001a319a
MOV dword ptr [RAX],0x7e
JMP 0x00151989
LAB_001519e3:
MOV R13D,0x1
LAB_001519e9:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00151cd3
MOV EAX,R13D
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00151a0e:
LEA RDI,[RBP + -0xd0]
MOV qword ptr [RDI + 0x8],R13
MOV qword ptr [RDI],R12
MOV EDX,dword ptr [RBP + -0x88]
MOV ESI,dword ptr [RBP + -0x84]
LEA RCX,[RBP + -0x40]
CALL qword ptr [R13 + 0xe0]
TEST EAX,EAX
JZ 0x00151b04
LEA RDI,[RBP + -0xd0]
CALL 0x001385ec
MOV RBX,RAX
JMP 0x00151b0b
LAB_00151a4f:
XOR EAX,EAX
CMP byte ptr [RBP + -0x31],0x0
MOVZX EBX,byte ptr [RBP + 0x10]
CMOVZ EBX,EAX
MOV EDI,dword ptr [RBP + -0x88]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138487
MOVSX EBX,BL
CMP RAX,-0x1
JZ 0x00151aa1
MOV R9,qword ptr [RBP + -0x40]
SUB RSP,0x8
LEA R8,[RBP + -0xb0]
MOV RDI,R14
MOV ESI,dword ptr [RBP + -0x48]
MOV RDX,R15
MOV RCX,RAX
PUSH RBX
CALL 0x0015188e
ADD RSP,0x10
TEST EAX,EAX
JLE 0x00151b51
LAB_00151aa1:
MOV RCX,qword ptr [RBP + -0x40]
LEA RDX,[RBP + -0xb0]
MOV RDI,R14
MOV RSI,R15
MOV R8,R12
MOV R9,qword ptr [RBP + -0x60]
PUSH RBX
PUSH qword ptr [RBP + -0x68]
CALL 0x00151fbf
ADD RSP,0x10
TEST EAX,EAX
JS 0x00151989
MOV R13D,EAX
MOV RAX,qword ptr [R14 + 0x2e8]
LEA RDI,[RBP + -0xb0]
MOV ECX,dword ptr [RDI + 0x30]
LEA RCX,[RCX + RCX*0x2]
MOV byte ptr [RAX + RCX*0x8 + 0x10],0x1
MOV ESI,0x2
MOV EDX,0x3
CALL 0x0013a5b5
TEST AL,AL
JNZ 0x00151989
JMP 0x00151b54
LAB_00151b04:
MOV RBX,-0x1
LAB_00151b0b:
TEST byte ptr [R13 + 0xa2],0x80
JNZ 0x00151b3f
LEA RDI,[RBP + -0xd0]
CALL 0x001386a4
MOV qword ptr [R14 + 0x430],RAX
MOV qword ptr [R14 + 0x428],RBX
CALL 0x001a319a
MOV dword ptr [RAX],0x79
JMP 0x00151989
LAB_00151b3f:
MOVZX EAX,byte ptr [R12]
CMP RAX,0xff
JZ 0x00151b67
INC RAX
JMP 0x00151b78
LAB_00151b51:
MOV R13D,EAX
LAB_00151b54:
CMP byte ptr [RBP + -0x44],0x0
MOV RDI,qword ptr [RBP + -0x50]
JZ 0x00151999
JMP 0x001519e9
LAB_00151b67:
MOVZX EAX,word ptr [R12 + 0x1]
ROL AX,0x8
MOVZX EAX,AX
ADD RAX,0x3
LAB_00151b78:
MOVZX ECX,byte ptr [R12 + RAX*0x1]
SHL ECX,0x18
JS 0x00151baf
LEA RSI,[RBP + -0xb0]
MOV dword ptr [RBP + -0x48],0x4
LEA RCX,[RBP + -0x40]
LEA R9,[RBP + -0x31]
MOV RDI,R15
MOV EDX,0x4
MOV R8,R12
CALL qword ptr [R13 + 0xd8]
JMP 0x001519cf
LAB_00151baf:
MOVZX EDX,word ptr [R12 + RAX*0x1 + 0x2]
ROL DX,0x8
MOVZX EDX,DX
MOVZX R13D,byte ptr [R12 + RAX*0x1 + 0x1]
SHL R13D,0x10
OR R13D,EDX
OR R13D,ECX
MOV qword ptr [RBP + -0x78],RBX
MOV RAX,qword ptr [R15]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0xff
JZ 0x00151be2
INC ECX
JMP 0x00151bf0
LAB_00151be2:
MOVZX ECX,word ptr [RAX + 0x1]
ROL CX,0x8
MOVZX ECX,CX
ADD ECX,0x3
LAB_00151bf0:
MOV RBX,qword ptr [RBP + -0x58]
LEA RDX,[RBX + 0x458]
LEA RSI,[RBP + -0xf0]
MOV qword ptr [RSI + 0x8],RDX
MOV EDX,ECX
ADD RAX,RDX
MOV qword ptr [RSI],RAX
MOV EAX,dword ptr [R15 + 0x10]
SUB EAX,ECX
MOV dword ptr [RSI + 0x10],EAX
MOV RAX,qword ptr [R15 + 0x14]
MOV qword ptr [RSI + 0x14],RAX
MOVZX EAX,word ptr [RBX + 0x502]
ADD EAX,dword ptr [RBP + -0x88]
SUB qword ptr [RBP + -0x40],RAX
LEA R12,[RBP + -0x78]
MOV RDI,R14
MOV RDX,R12
MOV ECX,0x4
CALL 0x00151830
MOV R15D,EAX
MOV RSI,qword ptr [RBP + -0x40]
ADD RSI,0x4
MOV RDX,qword ptr [R12]
MOV RDI,RBX
CALL 0x001387d0
MOV EDX,R13D
DEC EDX
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x3],DL
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x2],DH
MOV EAX,EDX
SHR EAX,0x10
MOV RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RCX + 0x1],AL
SHR EDX,0x18
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX],DL
TEST R15B,R15B
JZ 0x00151ca0
LAB_00151c88:
CMP byte ptr [RBP + -0x44],0x0
JNZ 0x00151c97
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001a1586
LAB_00151c97:
MOVZX R13D,R15B
JMP 0x001519e9
LAB_00151ca0:
MOV RAX,qword ptr [R14 + 0x2e8]
LEA RDI,[RBP + -0xb0]
MOV ECX,dword ptr [RDI + 0x30]
LEA RCX,[RCX + RCX*0x2]
MOV byte ptr [RAX + RCX*0x8 + 0x10],0x1
MOV ESI,0x2
MOV EDX,0x3
CALL 0x0013a5b5
TEST AL,AL
JNZ 0x00151989
JMP 0x00151c88
LAB_00151cd3:
CALL 0x00129220
|
uint w_search(long *param_1,int4 param_2,int8 *param_3,int8 param_4,
int8 param_5,int8 param_6,char param_7)
{
byte bVar1;
byte bVar2;
ushort uVar3;
code *pcVar4;
int8 *puVar5;
int8 uVar6;
long lVar7;
int4 uVar8;
char cVar9;
byte bVar10;
int iVar11;
int iVar12;
uint uVar13;
ulong uVar14;
ulong uVar15;
int4 *puVar16;
long lVar17;
long lVar18;
long lVar19;
ulong uVar20;
byte **ppbVar21;
int1 *puVar22;
byte *pbVar23;
ulong uVar24;
long in_FS_OFFSET;
byte *local_f8;
long local_f0;
int local_e8;
int8 local_e4;
byte *local_d8;
long local_d0;
ulong local_b8 [5];
int local_90;
int4 local_8c;
uint local_88;
long local_80;
int8 *local_78;
int8 local_70;
int8 local_68;
long local_60;
int1 *local_58;
int4 local_50;
int4 local_4c;
int1 *local_48;
char local_39;
long local_38;
ppbVar21 = &local_f8;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_60 = *param_1;
lVar18 = param_3[1];
uVar24 = (ulong)*(ushort *)(lVar18 + 0xa6);
uVar20 = (ulong)*(ushort *)(lVar18 + 0xb0);
local_b8[0] = uVar20 * 3 + uVar24;
uVar14 = *(long *)param_1[0xf] - (long)local_b8;
uVar15 = uVar14 - local_b8[0];
local_78 = param_3;
local_70 = param_6;
local_68 = param_5;
local_50 = param_2;
if ((local_b8[0] < uVar14) &&
((0x10000 < uVar15 || ((0xfff < (uint)local_b8[0] && (0x8000 < uVar15)))))) {
puVar22 = (int1 *)((long)&local_f8 - (ulong)((uint)local_b8[0] + 0xf & 0xfffffff0));
local_4c = (int4)CONCAT71((int7)((ulong)local_b8 >> 8),1);
ppbVar21 = (byte **)puVar22;
}
else {
puVar22 = (int1 *)my_malloc(0,local_b8[0],0x10010);
if (puVar22 == (int1 *)0x0) {
uVar13 = 1;
goto LAB_001519e9;
}
uVar24 = (ulong)*(ushort *)(lVar18 + 0xa6);
uVar20 = (ulong)*(ushort *)(lVar18 + 0xb0);
local_4c = 0;
ppbVar21 = &local_f8;
}
*(int8 *)((long)ppbVar21 + -8) = 0;
local_58 = puVar22;
*(int1 **)((long)ppbVar21 + -0x10) = puVar22;
*(int8 *)((long)ppbVar21 + -0x18) = 0x151981;
cVar9 = _ma_fetch_keypage(local_b8,param_1,lVar18,param_4,4,3);
uVar8 = local_50;
puVar5 = local_78;
if (cVar9 == '\0') {
pbVar23 = local_58 + uVar24 + uVar20 * 2;
pcVar4 = *(code **)(lVar18 + 0xd8);
*(int8 *)((long)ppbVar21 + -8) = 0x1519cb;
iVar11 = (*pcVar4)(puVar5,local_b8,uVar8,&local_48,pbVar23,&local_39);
iVar12 = local_90;
if (iVar11 == 0) {
pcVar4 = *(code **)(lVar18 + 0xe0);
local_d8 = pbVar23;
local_d0 = lVar18;
*(int8 *)((long)ppbVar21 + -8) = 0x151a33;
iVar12 = (*pcVar4)(&local_d8,local_8c,iVar12,&local_48);
if (iVar12 == 0) {
lVar17 = -1;
}
else {
*(int8 *)((long)ppbVar21 + -8) = 0x151a47;
lVar17 = _ma_row_pos_from_key(&local_d8);
}
lVar7 = local_60;
if ((*(byte *)(lVar18 + 0xa2) & 0x80) == 0) {
*(int8 *)((long)ppbVar21 + -8) = 0x151b21;
lVar18 = _ma_trid_from_key(&local_d8);
param_1[0x86] = lVar18;
param_1[0x85] = lVar17;
*(int8 *)((long)ppbVar21 + -8) = 0x151b34;
puVar16 = (int4 *)_my_thread_var();
*puVar16 = 0x79;
goto LAB_00151989;
}
if ((ulong)*pbVar23 == 0xff) {
lVar19 = (ulong)(ushort)(*(ushort *)(pbVar23 + 1) << 8 | *(ushort *)(pbVar23 + 1) >> 8) + 3;
}
else {
lVar19 = (ulong)*pbVar23 + 1;
}
bVar1 = pbVar23[lVar19];
if ((int)((uint)bVar1 << 0x18) < 0) {
uVar3 = *(ushort *)(pbVar23 + lVar19 + 2);
bVar2 = pbVar23[lVar19 + 1];
local_f8 = (byte *)*puVar5;
if (*local_f8 == 0xff) {
uVar13 = (ushort)(*(ushort *)(local_f8 + 1) << 8 | *(ushort *)(local_f8 + 1) >> 8) + 3;
}
else {
uVar13 = *local_f8 + 1;
}
local_f0 = local_60 + 0x458;
local_f8 = local_f8 + uVar13;
local_e8 = *(int *)(puVar5 + 2) - uVar13;
local_e4 = *(int8 *)((long)puVar5 + 0x14);
local_48 = local_48 + -(ulong)((uint)*(ushort *)(local_60 + 0x502) + local_90);
local_80 = lVar17;
*(int8 *)((long)ppbVar21 + -8) = 0x151c44;
bVar10 = _ma_ck_real_write_btree(param_1,&local_f8,&local_80,4);
lVar18 = local_80;
puVar22 = local_48 + 4;
*(int8 *)((long)ppbVar21 + -8) = 0x151c5b;
_ma_dpointer(lVar7,puVar22,lVar18);
iVar12 = CONCAT13(bVar1,CONCAT12(bVar2,uVar3 << 8 | uVar3 >> 8)) + -1;
local_48[3] = (char)iVar12;
local_48[2] = (char)((uint)iVar12 >> 8);
local_48[1] = (char)((uint)iVar12 >> 0x10);
*local_48 = (char)((uint)iVar12 >> 0x18);
if (bVar10 == 0) {
*(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_88 * 0x18) = 1;
*(int8 *)((long)ppbVar21 + -8) = 0x151cc9;
cVar9 = _ma_write_keypage(local_b8,2,3);
if (cVar9 != '\0') goto LAB_00151989;
}
puVar22 = local_58;
if ((char)local_4c == '\0') {
*(int8 *)((long)ppbVar21 + -8) = 0x151c97;
my_free(puVar22);
}
uVar13 = (uint)bVar10;
goto LAB_001519e9;
}
local_50 = 4;
pcVar4 = *(code **)(lVar18 + 0xd8);
*(int8 *)((long)ppbVar21 + -8) = 0x151baa;
iVar11 = (*pcVar4)(puVar5,local_b8,4,&local_48,pbVar23,&local_39);
}
puVar22 = local_48;
if (iVar11 == 0x7fffffff) {
*(int8 *)((long)ppbVar21 + -8) = 0x1519db;
puVar16 = (int4 *)_my_thread_var();
*puVar16 = 0x7e;
goto LAB_00151989;
}
if (local_39 == '\0') {
param_7 = '\0';
}
*(int8 *)((long)ppbVar21 + -8) = 0x151a6b;
lVar18 = _ma_kpos(local_90,puVar22);
puVar22 = local_48;
uVar8 = local_50;
if (lVar18 == -1) {
LAB_00151aa1:
puVar22 = local_48;
uVar6 = local_68;
*(ulong *)((long)ppbVar21 + -8) = (ulong)(uint)(int)param_7;
*(int8 *)((long)ppbVar21 + -0x10) = local_70;
*(int8 *)((long)ppbVar21 + -0x18) = 0x151ac2;
uVar13 = _ma_insert(param_1,puVar5,local_b8,puVar22,pbVar23,uVar6);
if (-1 < (int)uVar13) {
*(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_88 * 0x18) = 1;
*(int8 *)((long)ppbVar21 + -8) = 0x151afa;
cVar9 = _ma_write_keypage(local_b8,2,3);
if (cVar9 == '\0') goto LAB_00151b54;
}
goto LAB_00151989;
}
*(ulong *)((long)ppbVar21 + -0x10) = (ulong)(uint)(int)param_7;
*(int8 *)((long)ppbVar21 + -0x18) = 0x151a95;
uVar13 = w_search(param_1,uVar8,puVar5,lVar18,local_b8,puVar22);
if (0 < (int)uVar13) goto LAB_00151aa1;
LAB_00151b54:
puVar22 = local_58;
}
else {
LAB_00151989:
uVar13 = 0xffffffff;
puVar22 = local_58;
}
local_58 = puVar22;
if ((char)local_4c == '\0') {
*(int8 *)((long)ppbVar21 + -8) = 0x15199e;
my_free(puVar22);
}
LAB_001519e9:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar13;
}
/* WARNING: Subroutine does not return */
*(code **)((long)ppbVar21 + -8) = _ma_enlarge_root;
__stack_chk_fail();
}
|
|
8,571 |
trx_mod_table_time_t::rollback(unsigned long)
|
eloqsql/storage/innobase/include/trx0trx.h
|
bool rollback(undo_no_t limit)
{
ut_ad(valid());
if ((LIMIT & first) >= limit)
return true;
if (first_versioned < limit)
first_versioned= NONE;
return false;
}
|
O0
|
c
|
trx_mod_table_time_t::rollback(unsigned long):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x1213f66
movq -0x20(%rbp), %rcx
movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF
andq (%rcx), %rax
cmpq -0x18(%rbp), %rax
jb 0x1213f83
movb $0x1, -0x1(%rbp)
jmp 0x1213fa1
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x18(%rbp), %rax
jae 0x1213f9d
movq -0x20(%rbp), %rax
movq $-0x1, 0x8(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nopl (%rax,%rax)
|
_ZN20trx_mod_table_time_t8rollbackEm:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
jmp short $+2
loc_1213F66:
mov rcx, [rbp+var_20]
mov rax, 0FFFFFFFFFFFFFFh
and rax, [rcx]
cmp rax, [rbp+var_18]
jb short loc_1213F83
mov [rbp+var_1], 1
jmp short loc_1213FA1
loc_1213F83:
mov rax, [rbp+var_20]
mov rax, [rax+8]
cmp rax, [rbp+var_18]
jnb short loc_1213F9D
mov rax, [rbp+var_20]
mov qword ptr [rax+8], 0FFFFFFFFFFFFFFFFh
loc_1213F9D:
mov [rbp+var_1], 0
loc_1213FA1:
mov al, [rbp+var_1]
and al, 1
pop rbp
retn
|
char trx_mod_table_time_t::rollback(trx_mod_table_time_t *this, unsigned long long a2)
{
if ( (*(_QWORD *)this & 0xFFFFFFFFFFFFFFuLL) >= a2 )
return 1;
if ( *((_QWORD *)this + 1) < a2 )
*((_QWORD *)this + 1) = -1LL;
return 0;
}
|
lock_sys_tables:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0x70]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
CMP EAX,0x0
JNZ 0x012140a2
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0x78]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
CMP EAX,0x0
JNZ 0x012140a2
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0x80]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
CMP EAX,0x0
JNZ 0x012140a2
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0x88]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
CMP EAX,0x0
JNZ 0x012140a2
LEA RAX,[0x1c760c0]
CMP qword ptr [RAX + 0x90],0x0
JZ 0x01214030
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0x90]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
LAB_01214030:
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x01214068
LEA RAX,[0x1c760c0]
CMP qword ptr [RAX + 0x98],0x0
JZ 0x01214068
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0x98]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
LAB_01214068:
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x012140a0
LEA RAX,[0x1c760c0]
CMP qword ptr [RAX + 0xa0],0x0
JZ 0x012140a0
LEA RAX,[0x1c760c0]
MOV RDI,qword ptr [RAX + 0xa0]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,0x3
XOR ECX,ECX
CALL 0x01213d40
MOV dword ptr [RBP + -0xc],EAX
LAB_012140a0:
JMP 0x012140a2
LAB_012140a2:
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
/* lock_sys_tables(trx_t*) */
int lock_sys_tables(trx_t *param_1)
{
int local_14;
local_14 = lock_table_for_trx(dict_sys._112_8_,param_1,3,0);
if ((((local_14 == 0) &&
(local_14 = lock_table_for_trx(dict_sys._120_8_,param_1,3,0), local_14 == 0)) &&
(local_14 = lock_table_for_trx(dict_sys._128_8_,param_1,3,0), local_14 == 0)) &&
(local_14 = lock_table_for_trx(dict_sys._136_8_,param_1,3,0), local_14 == 0)) {
if (dict_sys._144_8_ != 0) {
local_14 = lock_table_for_trx(dict_sys._144_8_,param_1,3,0);
}
if ((local_14 == 0) && (dict_sys._152_8_ != 0)) {
local_14 = lock_table_for_trx(dict_sys._152_8_,param_1,3,0);
}
if ((local_14 == 0) && (dict_sys._160_8_ != 0)) {
local_14 = lock_table_for_trx(dict_sys._160_8_,param_1,3,0);
}
}
return local_14;
}
|
|
8,572 |
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>>::hex_bytes(unsigned char)
|
monkey531[P]llama/common/./json.hpp
|
static std::string hex_bytes(std::uint8_t byte)
{
std::string result = "FF";
constexpr const char* nibble_to_hex = "0123456789ABCDEF";
result[0] = nibble_to_hex[byte / 16];
result[1] = nibble_to_hex[byte % 16];
return result;
}
|
O2
|
cpp
|
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>>::hex_bytes(unsigned char):
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x5f7ff(%rip), %rsi # 0x9420d
leaq 0x7(%rsp), %rdx
callq 0x255a4
movl %ebx, %eax
shrl $0x4, %eax
leaq 0x60bd2(%rip), %rcx # 0x955f6
movb (%rax,%rcx), %al
movq (%r14), %rdx
movb %al, (%rdx)
andl $0xf, %ebx
movb (%rbx,%rcx), %al
movq (%r14), %rcx
movb %al, 0x1(%rcx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9hex_bytesEh:
push r14
push rbx
push rax
mov ebx, esi
mov r14, rdi
lea rsi, aInvalidStringS_0+41h; "FF"
lea rdx, [rsp+18h+var_11]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov eax, ebx
shr eax, 4
lea rcx, a0123456789abcd; "0123456789ABCDEF"
mov al, [rax+rcx]
mov rdx, [r14]
mov [rdx], al
and ebx, 0Fh
mov al, [rbx+rcx]
mov rcx, [r14]
mov [rcx+1], al
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
|
_QWORD * 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>>::hex_bytes(
_QWORD *a1,
unsigned int a2)
{
std::string::basic_string<std::allocator<char>>(a1, (long long)"FF");
*(_BYTE *)*a1 = a0123456789abcd[a2 >> 4];
*(_BYTE *)(*a1 + 1LL) = a0123456789abcd[a2 & 0xF];
return a1;
}
|
hex_bytes:
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
LEA RSI,[0x19420d]
LEA RDX,[RSP + 0x7]
CALL 0x001255a4
MOV EAX,EBX
SHR EAX,0x4
LEA RCX,[0x1955f6]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV RDX,qword ptr [R14]
MOV byte ptr [RDX],AL
AND EBX,0xf
MOV AL,byte ptr [RBX + RCX*0x1]
MOV RCX,qword ptr [R14]
MOV byte ptr [RCX + 0x1],AL
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* 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> >::hex_bytes(unsigned char) */
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>>
* __thiscall
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>>
::hex_bytes(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>>
*this,uchar param_1)
{
int7 in_register_00000031;
allocator local_11;
std::__cxx11::string::string<std::allocator<char>>((string *)this,"FF",&local_11);
**(char **)this = "0123456789ABCDEF"[(CONCAT71(in_register_00000031,param_1) & 0xffffffff) >> 4];
*(char *)(*(long *)this + 1) =
"0123456789ABCDEF"[(uint)CONCAT71(in_register_00000031,param_1) & 0xf];
return this;
}
|
|
8,573 |
pvio_socket_change_timeout
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
my_bool pvio_socket_change_timeout(MARIADB_PVIO *pvio, enum enum_pvio_timeout type, int timeout)
{
struct timeval tm;
int rc= 0;
struct st_pvio_socket *csock= NULL;
if (!pvio)
return 1;
if (!(csock= (struct st_pvio_socket *)pvio->data))
return 1;
tm.tv_sec= timeout / 1000;
tm.tv_usec= (timeout % 1000) * 1000;
switch(type)
{
case PVIO_WRITE_TIMEOUT:
#ifndef _WIN32
rc= setsockopt(csock->socket, SOL_SOCKET, SO_SNDTIMEO, (const char *)&tm, sizeof(tm));
#else
rc= setsockopt(csock->socket, SOL_SOCKET, SO_SNDTIMEO, (const char *)&timeout, sizeof(int));
#endif
break;
case PVIO_READ_TIMEOUT:
#ifndef _WIN32
rc= setsockopt(csock->socket, SOL_SOCKET, SO_RCVTIMEO, (const char *)&tm, sizeof(tm));
#else
rc= setsockopt(csock->socket, SOL_SOCKET, SO_RCVTIMEO, (const char *)&timeout, sizeof(int));
#endif
break;
default:
break;
}
return rc;
}
|
O0
|
c
|
pvio_socket_change_timeout:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl $0x0, -0x2c(%rbp)
movq $0x0, -0x38(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x5cd41
movb $0x1, -0x1(%rbp)
jmp 0x5ce0e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x5cd5b
movb $0x1, -0x1(%rbp)
jmp 0x5ce0e
movslq -0x18(%rbp), %rax
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x26, %rax
addl %ecx, %eax
cltq
movq %rax, -0x28(%rbp)
movslq -0x18(%rbp), %rcx
movl %ecx, %eax
imulq $0x10624dd3, %rcx, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
imull $0x3e8, %ecx, %ecx # imm = 0x3E8
subl %ecx, %eax
imull $0x3e8, %eax, %eax # imm = 0x3E8
cltq
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x3c(%rbp)
subl $0x1, %eax
je 0x5cde2
jmp 0x5cdb4
movl -0x3c(%rbp), %eax
subl $0x2, %eax
jne 0x5ce06
jmp 0x5cdbe
movq -0x38(%rbp), %rax
movl (%rax), %edi
movl $0x1, %esi
movl $0x15, %edx
leaq -0x28(%rbp), %rcx
movl $0x10, %r8d
callq 0x14790
movl %eax, -0x2c(%rbp)
jmp 0x5ce08
movq -0x38(%rbp), %rax
movl (%rax), %edi
movl $0x1, %esi
movl $0x14, %edx
leaq -0x28(%rbp), %rcx
movl $0x10, %r8d
callq 0x14790
movl %eax, -0x2c(%rbp)
jmp 0x5ce08
jmp 0x5ce08
movl -0x2c(%rbp), %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
pvio_socket_change_timeout:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_2C], 0
mov [rbp+var_38], 0
cmp [rbp+var_10], 0
jnz short loc_5CD41
mov [rbp+var_1], 1
jmp loc_5CE0E
loc_5CD41:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jnz short loc_5CD5B
mov [rbp+var_1], 1
jmp loc_5CE0E
loc_5CD5B:
movsxd rax, [rbp+var_18]
imul rax, 10624DD3h
mov rcx, rax
shr rcx, 3Fh
sar rax, 26h
add eax, ecx
cdqe
mov [rbp+var_28], rax
movsxd rcx, [rbp+var_18]
mov eax, ecx
imul rcx, 10624DD3h
mov rdx, rcx
shr rdx, 3Fh
sar rcx, 26h
add ecx, edx
imul ecx, 3E8h
sub eax, ecx
imul eax, 3E8h
cdqe
mov [rbp+var_20], rax
mov eax, [rbp+var_14]
mov [rbp+var_3C], eax
sub eax, 1
jz short loc_5CDE2
jmp short $+2
loc_5CDB4:
mov eax, [rbp+var_3C]
sub eax, 2
jnz short loc_5CE06
jmp short $+2
loc_5CDBE:
mov rax, [rbp+var_38]
mov edi, [rax]
mov esi, 1
mov edx, 15h
lea rcx, [rbp+var_28]
mov r8d, 10h
call _setsockopt
mov [rbp+var_2C], eax
jmp short loc_5CE08
loc_5CDE2:
mov rax, [rbp+var_38]
mov edi, [rax]
mov esi, 1
mov edx, 14h
lea rcx, [rbp+var_28]
mov r8d, 10h
call _setsockopt
mov [rbp+var_2C], eax
jmp short loc_5CE08
loc_5CE06:
jmp short $+2
loc_5CE08:
mov eax, [rbp+var_2C]
mov [rbp+var_1], al
loc_5CE0E:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
|
char pvio_socket_change_timeout(unsigned int **a1, int a2, int a3)
{
unsigned int *v4; // [rsp+8h] [rbp-38h]
char v5; // [rsp+14h] [rbp-2Ch]
_QWORD v6[2]; // [rsp+18h] [rbp-28h] BYREF
int v7; // [rsp+28h] [rbp-18h]
int v8; // [rsp+2Ch] [rbp-14h]
unsigned int **v9; // [rsp+30h] [rbp-10h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = 0;
if ( !a1 )
return 1;
v4 = *v9;
if ( !*v9 )
return 1;
v6[0] = v7 / 1000;
v6[1] = 1000 * (v7 % 1000);
if ( v8 == 1 )
return setsockopt(*v4, 1LL, 20LL, v6, 16LL);
if ( v8 == 2 )
return setsockopt(*v4, 1LL, 21LL, v6, 16LL);
return v5;
}
|
pvio_socket_change_timeout:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV dword ptr [RBP + -0x2c],0x0
MOV qword ptr [RBP + -0x38],0x0
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0015cd41
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015ce0e
LAB_0015cd41:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JNZ 0x0015cd5b
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015ce0e
LAB_0015cd5b:
MOVSXD RAX,dword ptr [RBP + -0x18]
IMUL RAX,RAX,0x10624dd3
MOV RCX,RAX
SHR RCX,0x3f
SAR RAX,0x26
ADD EAX,ECX
CDQE
MOV qword ptr [RBP + -0x28],RAX
MOVSXD RCX,dword ptr [RBP + -0x18]
MOV EAX,ECX
IMUL RCX,RCX,0x10624dd3
MOV RDX,RCX
SHR RDX,0x3f
SAR RCX,0x26
ADD ECX,EDX
IMUL ECX,ECX,0x3e8
SUB EAX,ECX
IMUL EAX,EAX,0x3e8
CDQE
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x3c],EAX
SUB EAX,0x1
JZ 0x0015cde2
JMP 0x0015cdb4
LAB_0015cdb4:
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,0x2
JNZ 0x0015ce06
JMP 0x0015cdbe
LAB_0015cdbe:
MOV RAX,qword ptr [RBP + -0x38]
MOV EDI,dword ptr [RAX]
MOV ESI,0x1
MOV EDX,0x15
LEA RCX,[RBP + -0x28]
MOV R8D,0x10
CALL 0x00114790
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0015ce08
LAB_0015cde2:
MOV RAX,qword ptr [RBP + -0x38]
MOV EDI,dword ptr [RAX]
MOV ESI,0x1
MOV EDX,0x14
LEA RCX,[RBP + -0x28]
MOV R8D,0x10
CALL 0x00114790
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0015ce08
LAB_0015ce06:
JMP 0x0015ce08
LAB_0015ce08:
MOV EAX,dword ptr [RBP + -0x2c]
MOV byte ptr [RBP + -0x1],AL
LAB_0015ce0e:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1 pvio_socket_change_timeout(int8 *param_1,int param_2,int param_3)
{
int *piVar1;
int iVar2;
int1 local_34;
long local_30;
long local_28;
int local_20;
int local_1c;
int8 *local_18;
int1 local_9;
local_34 = 0;
if (param_1 == (int8 *)0x0) {
local_9 = 1;
}
else {
piVar1 = (int *)*param_1;
if (piVar1 == (int *)0x0) {
local_9 = 1;
}
else {
local_30 = (long)(param_3 / 1000);
local_28 = (long)((param_3 % 1000) * 1000);
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
if (param_2 == 1) {
iVar2 = setsockopt(*piVar1,1,0x14,&local_30,0x10);
local_34 = (int1)iVar2;
}
else if (param_2 == 2) {
iVar2 = setsockopt(*piVar1,1,0x15,&local_30,0x10);
local_34 = (int1)iVar2;
}
local_9 = local_34;
}
}
return local_9;
}
|
|
8,574 |
mysql_set_server_option_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_set_server_option_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_set_server_option,
(parms->mysql, parms->option),
parms->mysql,
int,
r_int)
}
|
O0
|
c
|
mysql_set_server_option_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x53b40
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
mysql_set_server_option_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov esi, [rax+8]
call mysql_set_server_option
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
|
_DWORD * mysql_set_server_option_start_internal(long long a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL);
v2[2] = mysql_set_server_option(*(_QWORD *)a1, *(_DWORD *)(a1 + 8));
result = v2;
*v2 = 0;
return result;
}
|
mysql_set_server_option_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x8]
CALL 0x00153b40
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_set_server_option_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_set_server_option(*param_1,(int)param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
|
|
8,575 |
inline_mysql_file_open
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline File
inline_mysql_file_open(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *filename, int flags, myf myFlags)
{
File file;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_OPEN, filename,
&locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
file= my_open(filename, flags, myFlags);
PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file);
return file;
}
#endif
file= my_open(filename, flags, myFlags);
return file;
}
|
O0
|
c
|
inline_mysql_file_open:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x20b500(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x20(%rbp), %rcx
leaq -0x88(%rbp), %rdi
movl $0x2, %edx
leaq -0x40(%rbp), %r8
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 0xb4c52
leaq 0x20b4b2(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1f0(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
callq 0xf4240
movl %eax, -0x34(%rbp)
leaq 0x20b481(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x200(%rax), %rax
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
callq *%rax
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xb4c6b
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
callq 0xf4240
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
inline_mysql_file_open_2:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], 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+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_20]
lea rdi, [rbp+var_88]
mov edx, 2
lea r8, [rbp+var_40]
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_B4C52
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F0h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rdi, [rbp+var_20]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_30]
call my_open
mov [rbp+var_34], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+200h]
mov rdi, [rbp+var_40]
mov esi, [rbp+var_34]
call rax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_B4C6B
loc_B4C52:
mov rdi, [rbp+var_20]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_30]
call my_open
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_B4C6B:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_open_2(
unsigned int a1,
long long 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] BYREF
unsigned int v9; // [rsp+5Ch] [rbp-34h]
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+7Ch] [rbp-14h]
long long v14; // [rsp+80h] [rbp-10h]
unsigned int v15; // [rsp+88h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v7, a1, 2LL, a4, &v8);
if ( v8 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[62])(v8, v14, v13);
v9 = my_open(v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[64])(v8, v9);
}
else
{
return (unsigned int)my_open(v12, v11, v10);
}
return v9;
}
|
inline_mysql_file_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],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 + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x88]
MOV EDX,0x2
LEA R8,[RBP + -0x40]
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 0x001b4c52
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001f4240
MOV dword ptr [RBP + -0x34],EAX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x200]
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,dword ptr [RBP + -0x34]
CALL RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001b4c6b
LAB_001b4c52:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001f4240
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_001b4c6b:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int4
inline_mysql_file_open
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int4 local_3c;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_48 = (**(code **)(PSI_server + 0x148))(local_90,param_1,2,param_4,&local_48);
if (local_48 == 0) {
local_c = my_open(local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_48,local_18,local_1c);
local_3c = my_open(local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x200))(local_48,local_3c);
local_c = local_3c;
}
return local_c;
}
|
|
8,576 |
ma_apply_redo_purge_row_head_or_tail
|
eloqsql/storage/maria/ma_blockrec.c
|
uint _ma_apply_redo_purge_row_head_or_tail(MARIA_HA *info, LSN lsn,
uint page_type,
const uchar *header)
{
MARIA_SHARE *share= info->s;
pgcache_page_no_t page;
uint rownr, empty_space;
uchar *buff;
int result;
uint error;
MARIA_PINNED_PAGE page_link;
DBUG_ENTER("_ma_apply_redo_purge_row_head_or_tail");
page= page_korr(header);
rownr= dirpos_korr(header+PAGE_STORE_SIZE);
DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u",
(ulong) ma_recordpos(page, rownr),
(ulong) page, rownr));
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
if (!(buff= pagecache_read(share->pagecache, &info->dfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE,
&page_link.link)))
goto err;
if (lsn_korr(buff) >= lsn)
{
/*
Already applied
Note that in case the page is not anymore a head or tail page
a future redo will fix the bitmap.
*/
check_skipped_lsn(info, lsn_korr(buff), 1, page);
if ((uint) (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == page_type)
{
empty_space= uint2korr(buff+EMPTY_SPACE_OFFSET);
if (!enough_free_entries_on_page(share, buff))
empty_space= 0; /* Page is full */
if (_ma_bitmap_set(info, page, page_type == HEAD_PAGE,
empty_space))
goto err;
}
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
DBUG_RETURN(0);
}
DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == (uchar) page_type);
if (delete_dir_entry(share, buff, rownr, &empty_space) < 0)
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
goto err;
}
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
result= 0;
if (!enough_free_entries_on_page(share, buff))
empty_space= 0; /* Page is full */
/* This will work even if the page was marked as UNALLOCATED_PAGE */
if (_ma_bitmap_set(info, page, page_type == HEAD_PAGE, empty_space))
result= my_errno;
DBUG_RETURN(result);
err:
error= my_errno;
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
_ma_mark_file_crashed(share);
DBUG_ASSERT(!maria_assert_if_crashed_table);
DBUG_RETURN((my_errno= error));
}
|
O3
|
c
|
ma_apply_redo_purge_row_head_or_tail:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movq %rsi, -0x30(%rbp)
movq %rdi, %r14
movq (%rdi), %rbx
movl (%rcx), %eax
movzbl 0x4(%rcx), %r15d
movzbl 0x5(%rcx), %ecx
movl %ecx, -0x34(%rbp)
orl $0x181, 0x170(%rbx) # imm = 0x181
shlq $0x20, %r15
orq %rax, %r15
movq 0x600(%rbx), %rdi
leaq 0x470(%r14), %rsi
leaq -0x50(%rbp), %rax
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
pushq %rax
pushq $0x4
callq 0x33566
addq $0x10, %rsp
testq %rax, %rax
je 0x60905
movq %rax, %r13
movzwl (%rax), %eax
shlq $0x20, %rax
movzbl 0x2(%r13), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x3(%r13), %esi
orq %rcx, %rsi
cmpq -0x30(%rbp), %rsi
jge 0x6087b
movl 0x7bc(%rbx), %edi
leaq -0x38(%rbp), %rcx
movq %r13, %rsi
movl -0x34(%rbp), %edx
callq 0x60957
testl %eax, %eax
js 0x608f8
leaq -0x50(%rbp), %rsi
movl $0x6, 0x8(%rsi)
movb $0x1, 0x10(%rsi)
leaq 0x2e8(%r14), %rdi
callq 0x92af2
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5cf2a
xorl %r13d, %r13d
movl $0x0, %ecx
testb %al, %al
je 0x60852
movl -0x38(%rbp), %ecx
xorl %edx, %edx
cmpl $0x1, %r12d
sete %dl
movq %r14, %rdi
movq %r15, %rsi
callq 0x42bd3
testb %al, %al
je 0x60945
callq 0xa2a4e
movl (%rax), %r13d
jmp 0x60945
movq %r14, %rdi
movl $0x1, %edx
movq %r15, %rcx
callq 0x4d729
movzbl 0x7(%r13), %eax
andl $0x7, %eax
cmpl %r12d, %eax
jne 0x608cb
movzwl 0xa(%r13), %eax
movl %eax, -0x30(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5cf2a
xorl %ecx, %ecx
testb %al, %al
cmovnel -0x30(%rbp), %ecx
xorl %edx, %edx
cmpl $0x1, %r12d
sete %dl
movq %r14, %rdi
movq %r15, %rsi
callq 0x42bd3
testb %al, %al
jne 0x60905
movq 0x600(%rbx), %rdi
movq -0x50(%rbp), %rsi
xorl %r13d, %r13d
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r13
pushq %r13
callq 0x33281
addq $0x10, %rsp
jmp 0x60945
movq %r14, %rdi
movl $0x7f, %esi
callq 0x37978
callq 0xa2a4e
movl (%rax), %r13d
movq 0x600(%rbx), %rdi
movq -0x50(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x33281
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x39176
callq 0xa2a4e
movl %r13d, (%rax)
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_apply_redo_purge_row_head_or_tail:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12d, edx
mov [rbp+var_30], rsi
mov r14, rdi
mov rbx, [rdi]
mov eax, [rcx]
movzx r15d, byte ptr [rcx+4]
movzx ecx, byte ptr [rcx+5]
mov [rbp+var_34], ecx
or dword ptr [rbx+170h], 181h
shl r15, 20h
or r15, rax
mov rdi, [rbx+600h]
lea rsi, [r14+470h]
lea rax, [rbp+var_50]
mov rdx, r15
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
push rax
push 4
call pagecache_read
add rsp, 10h
test rax, rax
jz loc_60905
mov r13, rax
movzx eax, word ptr [rax]
shl rax, 20h
movzx ecx, byte ptr [r13+2]
shl rcx, 30h
or rcx, rax
mov esi, [r13+3]
or rsi, rcx
cmp rsi, [rbp+var_30]
jge short loc_6087B
mov edi, [rbx+7BCh]
lea rcx, [rbp+var_38]
mov rsi, r13
mov edx, [rbp+var_34]
call delete_dir_entry
test eax, eax
js loc_608F8
lea rsi, [rbp+var_50]
mov dword ptr [rsi+8], 6
mov byte ptr [rsi+10h], 1
lea rdi, [r14+2E8h]
call insert_dynamic
mov rdi, rbx
mov rsi, r13
call enough_free_entries_on_page
xor r13d, r13d
mov ecx, 0
test al, al
jz short loc_60852
mov ecx, [rbp+var_38]
loc_60852:
xor edx, edx
cmp r12d, 1
setz dl
mov rdi, r14
mov rsi, r15
call _ma_bitmap_set
test al, al
jz loc_60945
call _my_thread_var
mov r13d, [rax]
jmp loc_60945
loc_6087B:
mov rdi, r14
mov edx, 1
mov rcx, r15
call check_skipped_lsn
movzx eax, byte ptr [r13+7]
and eax, 7
cmp eax, r12d
jnz short loc_608CB
movzx eax, word ptr [r13+0Ah]
mov dword ptr [rbp+var_30], eax
mov rdi, rbx
mov rsi, r13
call enough_free_entries_on_page
xor ecx, ecx
test al, al
cmovnz ecx, dword ptr [rbp+var_30]
xor edx, edx
cmp r12d, 1
setz dl
mov rdi, r14
mov rsi, r15
call _ma_bitmap_set
test al, al
jnz short loc_60905
loc_608CB:
mov rdi, [rbx+600h]
mov rsi, [rbp+var_50]
xor r13d, r13d
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push r13
push r13
call pagecache_unlock_by_link
add rsp, 10h
jmp short loc_60945
loc_608F8:
mov rdi, r14
mov esi, 7Fh
call _ma_set_fatal_error
loc_60905:
call _my_thread_var
mov r13d, [rax]
mov rdi, [rbx+600h]
mov rsi, [rbp+var_50]
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
xor eax, eax
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
mov rdi, rbx
call _ma_mark_file_crashed
call _my_thread_var
mov [rax], r13d
loc_60945:
mov eax, r13d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_apply_redo_purge_row_head_or_tail(long long *a1, signed long long a2, int a3, unsigned int *a4)
{
long long v6; // rbx
long long v7; // rax
long long v8; // r15
const char *v9; // r15
long long v10; // rdi
const char *v11; // rsi
unsigned __int16 *v12; // rax
unsigned __int16 *v13; // r13
signed long long v14; // rsi
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
int v18; // r9d
bool v19; // al
unsigned int v20; // r13d
unsigned int v21; // ecx
bool v22; // al
unsigned int v23; // ecx
const char *v24; // rsi
const char *v26; // [rsp+0h] [rbp-50h] BYREF
int v27; // [rsp+8h] [rbp-48h]
char v28; // [rsp+10h] [rbp-40h]
unsigned int v29; // [rsp+18h] [rbp-38h] BYREF
unsigned int v30; // [rsp+1Ch] [rbp-34h]
signed long long v31; // [rsp+20h] [rbp-30h]
v31 = a2;
v6 = *a1;
v7 = *a4;
v8 = *((unsigned __int8 *)a4 + 4);
v30 = *((unsigned __int8 *)a4 + 5);
*(_DWORD *)(v6 + 368) |= 0x181u;
v9 = (const char *)(v7 | (v8 << 32));
v10 = *(_QWORD *)(v6 + 1536);
v11 = (const char *)(a1 + 142);
v12 = (unsigned __int16 *)pagecache_read(v10, (long long)(a1 + 142), (long long)v9, 0, 0LL, 1, 4u, &v26);
if ( !v12 )
goto LABEL_14;
v13 = v12;
v14 = ((unsigned long long)*v12 << 32) | ((unsigned long long)*((unsigned __int8 *)v12 + 2) << 48) | *(unsigned int *)((char *)v12 + 3);
if ( v14 >= v31 )
{
check_skipped_lsn((long long)a1, v14, 1, (int)v9);
if ( (*((_BYTE *)v13 + 7) & 7) != a3 )
goto LABEL_12;
LODWORD(v31) = v13[5];
v22 = enough_free_entries_on_page(v6, v13);
v23 = 0;
if ( v22 )
v23 = v31;
v10 = (long long)a1;
v11 = v9;
if ( !(unsigned __int8)ma_bitmap_set(a1, (unsigned long long)v9, a3 == 1, v23) )
{
LABEL_12:
v20 = 0;
pagecache_unlock_by_link(*(_QWORD *)(v6 + 1536), (long long)v26, 6, 3, 0LL, 0LL, 0);
return v20;
}
LABEL_14:
v20 = *(_DWORD *)my_thread_var(v10, v11);
v24 = v26;
pagecache_unlock_by_link(*(_QWORD *)(v6 + 1536), (long long)v26, 6, 3, 0LL, 0LL, 0);
ma_mark_file_crashed(v6);
*(_DWORD *)my_thread_var(v6, v24) = v20;
return v20;
}
if ( (int)delete_dir_entry(*(unsigned int *)(v6 + 1980), v12, v30, &v29) < 0 )
{
v10 = (long long)a1;
v11 = (_BYTE *)(&dword_7C + 3);
ma_set_fatal_error(a1, 127LL, v15, v16, v17, v18);
goto LABEL_14;
}
v27 = 6;
v28 = 1;
insert_dynamic(a1 + 93, &v26);
v19 = enough_free_entries_on_page(v6, v13);
v20 = 0;
v21 = 0;
if ( v19 )
v21 = v29;
if ( (unsigned __int8)ma_bitmap_set(a1, (unsigned long long)v9, a3 == 1, v21) )
return *(unsigned int *)my_thread_var(a1, v9);
return v20;
}
|
_ma_apply_redo_purge_row_head_or_tail:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12D,EDX
MOV qword ptr [RBP + -0x30],RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
MOV EAX,dword ptr [RCX]
MOVZX R15D,byte ptr [RCX + 0x4]
MOVZX ECX,byte ptr [RCX + 0x5]
MOV dword ptr [RBP + -0x34],ECX
OR dword ptr [RBX + 0x170],0x181
SHL R15,0x20
OR R15,RAX
MOV RDI,qword ptr [RBX + 0x600]
LEA RSI,[R14 + 0x470]
LEA RAX,[RBP + -0x50]
MOV RDX,R15
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
PUSH RAX
PUSH 0x4
CALL 0x00133566
ADD RSP,0x10
TEST RAX,RAX
JZ 0x00160905
MOV R13,RAX
MOVZX EAX,word ptr [RAX]
SHL RAX,0x20
MOVZX ECX,byte ptr [R13 + 0x2]
SHL RCX,0x30
OR RCX,RAX
MOV ESI,dword ptr [R13 + 0x3]
OR RSI,RCX
CMP RSI,qword ptr [RBP + -0x30]
JGE 0x0016087b
MOV EDI,dword ptr [RBX + 0x7bc]
LEA RCX,[RBP + -0x38]
MOV RSI,R13
MOV EDX,dword ptr [RBP + -0x34]
CALL 0x00160957
TEST EAX,EAX
JS 0x001608f8
LEA RSI,[RBP + -0x50]
MOV dword ptr [RSI + 0x8],0x6
MOV byte ptr [RSI + 0x10],0x1
LEA RDI,[R14 + 0x2e8]
CALL 0x00192af2
MOV RDI,RBX
MOV RSI,R13
CALL 0x0015cf2a
XOR R13D,R13D
MOV ECX,0x0
TEST AL,AL
JZ 0x00160852
MOV ECX,dword ptr [RBP + -0x38]
LAB_00160852:
XOR EDX,EDX
CMP R12D,0x1
SETZ DL
MOV RDI,R14
MOV RSI,R15
CALL 0x00142bd3
TEST AL,AL
JZ 0x00160945
CALL 0x001a2a4e
MOV R13D,dword ptr [RAX]
JMP 0x00160945
LAB_0016087b:
MOV RDI,R14
MOV EDX,0x1
MOV RCX,R15
CALL 0x0014d729
MOVZX EAX,byte ptr [R13 + 0x7]
AND EAX,0x7
CMP EAX,R12D
JNZ 0x001608cb
MOVZX EAX,word ptr [R13 + 0xa]
MOV dword ptr [RBP + -0x30],EAX
MOV RDI,RBX
MOV RSI,R13
CALL 0x0015cf2a
XOR ECX,ECX
TEST AL,AL
CMOVNZ ECX,dword ptr [RBP + -0x30]
XOR EDX,EDX
CMP R12D,0x1
SETZ DL
MOV RDI,R14
MOV RSI,R15
CALL 0x00142bd3
TEST AL,AL
JNZ 0x00160905
LAB_001608cb:
MOV RDI,qword ptr [RBX + 0x600]
MOV RSI,qword ptr [RBP + -0x50]
XOR R13D,R13D
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH R13
PUSH R13
CALL 0x00133281
ADD RSP,0x10
JMP 0x00160945
LAB_001608f8:
MOV RDI,R14
MOV ESI,0x7f
CALL 0x00137978
LAB_00160905:
CALL 0x001a2a4e
MOV R13D,dword ptr [RAX]
MOV RDI,qword ptr [RBX + 0x600]
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
XOR EAX,EAX
PUSH RAX
PUSH RAX
CALL 0x00133281
ADD RSP,0x10
MOV RDI,RBX
CALL 0x00139176
CALL 0x001a2a4e
MOV dword ptr [RAX],R13D
LAB_00160945:
MOV EAX,R13D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4
_ma_apply_redo_purge_row_head_or_tail(long *param_1,ulong param_2,uint param_3,uint5 *param_4)
{
long lVar1;
uint5 uVar2;
char cVar3;
int iVar4;
ushort *puVar5;
int4 *puVar6;
int4 uVar7;
ulong uVar8;
ulong uVar9;
int8 local_58;
int4 local_50;
int1 local_48;
int4 local_40;
uint local_3c;
ulong local_38;
lVar1 = *param_1;
uVar2 = *param_4;
local_3c = (uint)*(byte *)((long)param_4 + 5);
*(uint *)(lVar1 + 0x170) = *(uint *)(lVar1 + 0x170) | 0x181;
uVar9 = (ulong)uVar2;
local_38 = param_2;
puVar5 = (ushort *)
pagecache_read(*(int8 *)(lVar1 + 0x600),param_1 + 0x8e,uVar9,0,0,1,4,&local_58);
if (puVar5 != (ushort *)0x0) {
uVar8 = (ulong)*(uint *)((long)puVar5 + 3) |
(ulong)(byte)puVar5[1] << 0x30 | (ulong)*puVar5 << 0x20;
if ((long)local_38 <= (long)uVar8) {
check_skipped_lsn(param_1,uVar8,1,uVar9);
if ((*(byte *)((long)puVar5 + 7) & 7) == param_3) {
local_38 = CONCAT44(local_38._4_4_,(uint)puVar5[5]);
cVar3 = enough_free_entries_on_page(lVar1,puVar5);
uVar8 = 0;
if (cVar3 != '\0') {
uVar8 = local_38 & 0xffffffff;
}
cVar3 = _ma_bitmap_set(param_1,uVar9,param_3 == 1,uVar8);
if (cVar3 != '\0') goto LAB_00160905;
}
pagecache_unlock_by_link(*(int8 *)(lVar1 + 0x600),local_58,6,3,0,0,0,0);
return 0;
}
iVar4 = delete_dir_entry(*(int4 *)(lVar1 + 0x7bc),puVar5,local_3c,&local_40);
if (-1 < iVar4) {
local_50 = 6;
local_48 = 1;
insert_dynamic(param_1 + 0x5d);
cVar3 = enough_free_entries_on_page(lVar1,puVar5);
uVar7 = 0;
if (cVar3 != '\0') {
uVar7 = local_40;
}
cVar3 = _ma_bitmap_set(param_1,uVar9,param_3 == 1,uVar7);
if (cVar3 == '\0') {
return 0;
}
puVar6 = (int4 *)_my_thread_var();
return *puVar6;
}
_ma_set_fatal_error(param_1,0x7f);
}
LAB_00160905:
puVar6 = (int4 *)_my_thread_var();
uVar7 = *puVar6;
pagecache_unlock_by_link(*(int8 *)(lVar1 + 0x600),local_58,6,3,0,0,0,0);
_ma_mark_file_crashed(lVar1);
puVar6 = (int4 *)_my_thread_var();
*puVar6 = uVar7;
return uVar7;
}
|
|
8,577 |
release_wrlock
|
eloqsql/storage/maria/ma_pagecache.c
|
static void release_wrlock(PAGECACHE_BLOCK_LINK *block, my_bool read_lock)
{
DBUG_ENTER("release_wrlock");
PCBLOCK_INFO(block);
DBUG_ASSERT(block->wlocks > 0);
DBUG_ASSERT(block->rlocks == 0);
DBUG_ASSERT(block->pins > 0);
if (read_lock)
block->rlocks_queue++;
if (block->wlocks == 1)
{
block->rlocks= block->rlocks_queue;
block->rlocks_queue= 0;
}
block->wlocks--;
if (block->wlocks > 0)
DBUG_VOID_RETURN; /* Multiple write locked */
DBUG_PRINT("info", ("WR lock reset, block %p", block));
/* release all threads waiting for read lock or one waiting for write */
if (block->wqueue[COND_FOR_WRLOCK].last_thread)
wqueue_release_one_locktype_from_queue(&block->wqueue[COND_FOR_WRLOCK]);
PCBLOCK_INFO(block);
DBUG_VOID_RETURN;
}
|
O0
|
c
|
release_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
jmp 0x9fd64
jmp 0x9fd66
jmp 0x9fd68
jmp 0x9fd6a
jmp 0x9fd6c
jmp 0x9fd6e
jmp 0x9fd70
cmpb $0x0, -0x9(%rbp)
je 0x9fd83
movq -0x8(%rbp), %rax
movl 0x70(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x70(%rax)
movq -0x8(%rbp), %rax
cmpl $0x1, 0x68(%rax)
jne 0x9fda6
movq -0x8(%rbp), %rax
movl 0x70(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x6c(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x70(%rax)
movq -0x8(%rbp), %rax
movl 0x68(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x68(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x68(%rax)
jbe 0x9fdc1
jmp 0x9fdbf
jmp 0x9fde9
jmp 0x9fdc3
jmp 0x9fdc5
movq -0x8(%rbp), %rax
cmpq $0x0, 0x58(%rax)
je 0x9fde1
movq -0x8(%rbp), %rdi
addq $0x48, %rdi
addq $0x10, %rdi
callq 0x10f170
jmp 0x9fde3
jmp 0x9fde5
jmp 0x9fde7
jmp 0x9fde9
addq $0x10, %rsp
popq %rbp
retq
nop
|
release_wrlock:
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_9FD64:
jmp short $+2
loc_9FD66:
jmp short $+2
loc_9FD68:
jmp short $+2
loc_9FD6A:
jmp short $+2
loc_9FD6C:
jmp short $+2
loc_9FD6E:
jmp short $+2
loc_9FD70:
cmp [rbp+var_9], 0
jz short loc_9FD83
mov rax, [rbp+var_8]
mov ecx, [rax+70h]
add ecx, 1
mov [rax+70h], ecx
loc_9FD83:
mov rax, [rbp+var_8]
cmp dword ptr [rax+68h], 1
jnz short loc_9FDA6
mov rax, [rbp+var_8]
mov ecx, [rax+70h]
mov rax, [rbp+var_8]
mov [rax+6Ch], ecx
mov rax, [rbp+var_8]
mov dword ptr [rax+70h], 0
loc_9FDA6:
mov rax, [rbp+var_8]
mov ecx, [rax+68h]
add ecx, 0FFFFFFFFh
mov [rax+68h], ecx
mov rax, [rbp+var_8]
cmp dword ptr [rax+68h], 0
jbe short loc_9FDC1
jmp short $+2
loc_9FDBF:
jmp short loc_9FDE9
loc_9FDC1:
jmp short $+2
loc_9FDC3:
jmp short $+2
loc_9FDC5:
mov rax, [rbp+var_8]
cmp qword ptr [rax+58h], 0
jz short loc_9FDE1
mov rdi, [rbp+var_8]
add rdi, 48h ; 'H'
add rdi, 10h
call wqueue_release_one_locktype_from_queue
loc_9FDE1:
jmp short $+2
loc_9FDE3:
jmp short $+2
loc_9FDE5:
jmp short $+2
loc_9FDE7:
jmp short $+2
loc_9FDE9:
add rsp, 10h
pop rbp
retn
|
long long release_wrlock(long long a1, char a2)
{
long long result; // rax
if ( a2 )
++*(_DWORD *)(a1 + 112);
if ( *(_DWORD *)(a1 + 104) == 1 )
{
*(_DWORD *)(a1 + 108) = *(_DWORD *)(a1 + 112);
*(_DWORD *)(a1 + 112) = 0;
}
--*(_DWORD *)(a1 + 104);
result = a1;
if ( !*(_DWORD *)(a1 + 104) )
{
result = a1;
if ( *(_QWORD *)(a1 + 88) )
return wqueue_release_one_locktype_from_queue(a1 + 88);
}
return result;
}
|
release_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
JMP 0x0019fd64
LAB_0019fd64:
JMP 0x0019fd66
LAB_0019fd66:
JMP 0x0019fd68
LAB_0019fd68:
JMP 0x0019fd6a
LAB_0019fd6a:
JMP 0x0019fd6c
LAB_0019fd6c:
JMP 0x0019fd6e
LAB_0019fd6e:
JMP 0x0019fd70
LAB_0019fd70:
CMP byte ptr [RBP + -0x9],0x0
JZ 0x0019fd83
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x70]
ADD ECX,0x1
MOV dword ptr [RAX + 0x70],ECX
LAB_0019fd83:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x68],0x1
JNZ 0x0019fda6
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x70]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x6c],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x70],0x0
LAB_0019fda6:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x68]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x68],ECX
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x68],0x0
JBE 0x0019fdc1
JMP 0x0019fdbf
LAB_0019fdbf:
JMP 0x0019fde9
LAB_0019fdc1:
JMP 0x0019fdc3
LAB_0019fdc3:
JMP 0x0019fdc5
LAB_0019fdc5:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x58],0x0
JZ 0x0019fde1
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x48
ADD RDI,0x10
CALL 0x0020f170
LAB_0019fde1:
JMP 0x0019fde3
LAB_0019fde3:
JMP 0x0019fde5
LAB_0019fde5:
JMP 0x0019fde7
LAB_0019fde7:
JMP 0x0019fde9
LAB_0019fde9:
ADD RSP,0x10
POP RBP
RET
|
void release_wrlock(long param_1,char param_2)
{
if (param_2 != '\0') {
*(int *)(param_1 + 0x70) = *(int *)(param_1 + 0x70) + 1;
}
if (*(int *)(param_1 + 0x68) == 1) {
*(int4 *)(param_1 + 0x6c) = *(int4 *)(param_1 + 0x70);
*(int4 *)(param_1 + 0x70) = 0;
}
*(int *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + -1;
if ((*(int *)(param_1 + 0x68) == 0) && (*(long *)(param_1 + 0x58) != 0)) {
wqueue_release_one_locktype_from_queue(param_1 + 0x58);
}
return;
}
|
|
8,578 |
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>>::~serializer()
|
monkey531[P]llama/common/json.hpp
|
~serializer() = default;
|
O1
|
cpp
|
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>>::~serializer():
pushq %rbx
movq %rdi, %rbx
movq 0x260(%rdi), %rdi
leaq 0x270(%rbx), %rax
cmpq %rax, %rdi
je 0xdbda8
movq (%rax), %rsi
incq %rsi
callq 0x1dc40
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xdbdb7
popq %rbx
jmp 0x520bc
popq %rbx
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+260h]; void *
lea rax, [rbx+270h]
cmp rdi, rax
jz short loc_DBDA8
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_DBDA8:
mov rdi, [rbx+8]
test rdi, rdi
jz short loc_DBDB7
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_DBDB7:
pop rbx
retn
|
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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~serializer(
_QWORD *a1)
{
_QWORD *v2; // rdi
volatile signed __int32 *v3; // rdi
v2 = (_QWORD *)a1[76];
if ( v2 != a1 + 78 )
operator delete(v2, a1[78] + 1LL);
v3 = (volatile signed __int32 *)a1[1];
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
|
~serializer:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x260]
LEA RAX,[RBX + 0x270]
CMP RDI,RAX
JZ 0x001dbda8
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011dc40
LAB_001dbda8:
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x001dbdb7
POP RBX
JMP 0x001520bc
LAB_001dbdb7:
POP RBX
RET
|
/* 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> >::~serializer() */
void __thiscall
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>>
::~serializer(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>>
*this)
{
if (*(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>>
**)(this + 0x260) != this + 0x270) {
operator_delete(*(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>>
**)(this + 0x260),*(long *)(this + 0x270) + 1);
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8));
return;
}
return;
}
|
|
8,579 |
mysql_mbcharlen_utf8mb3
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
static unsigned int mysql_mbcharlen_utf8mb3(unsigned int utf8)
{
if (utf8 < 0x80) {
return 1; /* single byte character */
}
if (utf8 < 0xC2) {
return 0; /* invalid multibyte header */
}
if (utf8 < 0xE0) {
return 2; /* double byte character */
}
if (utf8 < 0xF0) {
return 3; /* triple byte character */
}
return 0;
}
|
O0
|
c
|
mysql_mbcharlen_utf8mb3:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
cmpl $0x80, -0x8(%rbp)
jae 0x751f9
movl $0x1, -0x4(%rbp)
jmp 0x75236
cmpl $0xc2, -0x8(%rbp)
jae 0x7520b
movl $0x0, -0x4(%rbp)
jmp 0x75236
cmpl $0xe0, -0x8(%rbp)
jae 0x7521d
movl $0x2, -0x4(%rbp)
jmp 0x75236
cmpl $0xf0, -0x8(%rbp)
jae 0x7522f
movl $0x3, -0x4(%rbp)
jmp 0x75236
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
mysql_mbcharlen_utf8mb3:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
cmp [rbp+var_8], 80h
jnb short loc_751F9
mov [rbp+var_4], 1
jmp short loc_75236
loc_751F9:
cmp [rbp+var_8], 0C2h
jnb short loc_7520B
mov [rbp+var_4], 0
jmp short loc_75236
loc_7520B:
cmp [rbp+var_8], 0E0h
jnb short loc_7521D
mov [rbp+var_4], 2
jmp short loc_75236
loc_7521D:
cmp [rbp+var_8], 0F0h
jnb short loc_7522F
mov [rbp+var_4], 3
jmp short loc_75236
loc_7522F:
mov [rbp+var_4], 0
loc_75236:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long mysql_mbcharlen_utf8mb3(unsigned int a1)
{
if ( a1 >= 0x80 )
{
if ( a1 >= 0xC2 )
{
if ( a1 >= 0xE0 )
{
if ( a1 >= 0xF0 )
return 0;
else
return 3;
}
else
{
return 2;
}
}
else
{
return 0;
}
}
else
{
return 1;
}
}
|
mysql_mbcharlen_utf8mb3:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
CMP dword ptr [RBP + -0x8],0x80
JNC 0x001751f9
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00175236
LAB_001751f9:
CMP dword ptr [RBP + -0x8],0xc2
JNC 0x0017520b
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00175236
LAB_0017520b:
CMP dword ptr [RBP + -0x8],0xe0
JNC 0x0017521d
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00175236
LAB_0017521d:
CMP dword ptr [RBP + -0x8],0xf0
JNC 0x0017522f
MOV dword ptr [RBP + -0x4],0x3
JMP 0x00175236
LAB_0017522f:
MOV dword ptr [RBP + -0x4],0x0
LAB_00175236:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 mysql_mbcharlen_utf8mb3(uint param_1)
{
int4 local_c;
if (param_1 < 0x80) {
local_c = 1;
}
else if (param_1 < 0xc2) {
local_c = 0;
}
else if (param_1 < 0xe0) {
local_c = 2;
}
else if (param_1 < 0xf0) {
local_c = 3;
}
else {
local_c = 0;
}
return local_c;
}
|
|
8,580 |
my_casedn_str_utf8mb4
|
eloqsql/strings/ctype-utf8.c
|
static size_t
my_casedn_str_utf8mb4(CHARSET_INFO *cs, char *src)
{
my_wc_t wc;
int srcres, dstres;
char *dst= src, *dst0= src;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(cs->casedn_multiply == 1);
while (*src &&
(srcres= my_mb_wc_utf8mb4_no_range(cs, &wc, (uchar *) src)) > 0)
{
my_tolower_utf8mb4(uni_plane, &wc);
if ((dstres= my_wc_mb_utf8mb4_no_range(cs, wc, (uchar*) dst)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
/*
In rare cases lower string can be shorter than
the original string, for example:
"U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE"
(which is 0xC4B0 in utf8mb3, i.e. two bytes)
is converted into
"U+0069 LATIN SMALL LETTER I"
(which is 0x69 in utf8mb3, i.e. one byte)
So, we need to put '\0' terminator after converting.
*/
*dst= '\0';
return (size_t) (dst - dst0);
}
|
O0
|
c
|
my_casedn_str_utf8mb4:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x6ea8e
jmp 0x6ea90
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x39(%rbp)
je 0x6eabe
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq -0x18(%rbp), %rsi
callq 0x72850
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
setg %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x6eac7
jmp 0x6eb16
movq -0x38(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x72c40
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x72b00
movl %eax, -0x20(%rbp)
cmpl $0x0, %eax
jg 0x6eaef
jmp 0x6eb16
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
jmp 0x6ea90
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
addq $0x40, %rsp
popq %rbp
retq
nop
|
my_casedn_str_utf8mb4:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_38], rax
jmp short $+2
loc_6EA8E:
jmp short $+2
loc_6EA90:
mov rax, [rbp+var_10]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_39], al
jz short loc_6EABE
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
lea rsi, [rbp+var_18]
call my_mb_wc_utf8mb4_no_range
mov [rbp+var_1C], eax
cmp eax, 0
setnle al
mov [rbp+var_39], al
loc_6EABE:
mov al, [rbp+var_39]
test al, 1
jnz short loc_6EAC7
jmp short loc_6EB16
loc_6EAC7:
mov rdi, [rbp+var_38]
lea rsi, [rbp+var_18]
call my_tolower_utf8mb4
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call my_wc_mb_utf8mb4_no_range
mov [rbp+var_20], eax
cmp eax, 0
jg short loc_6EAEF
jmp short loc_6EB16
loc_6EAEF:
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_20]
mov rax, [rbp+var_28]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_28], rax
jmp loc_6EA90
loc_6EB16:
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, [rbp+var_30]
sub rax, rcx
add rsp, 40h
pop rbp
retn
|
_BYTE * my_casedn_str_utf8mb4(long long a1, _BYTE *a2)
{
bool v3; // [rsp+7h] [rbp-39h]
long long v4; // [rsp+8h] [rbp-38h]
_BYTE *v5; // [rsp+18h] [rbp-28h]
int v6; // [rsp+20h] [rbp-20h]
int v7; // [rsp+24h] [rbp-1Ch]
long long v8; // [rsp+28h] [rbp-18h] BYREF
_BYTE *v9; // [rsp+30h] [rbp-10h]
long long v10; // [rsp+38h] [rbp-8h]
v10 = a1;
v9 = a2;
v5 = a2;
v4 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v3 = 0;
if ( *v9 )
{
v7 = my_mb_wc_utf8mb4_no_range(v10, &v8, v9);
v3 = v7 > 0;
}
if ( !v3 )
break;
my_tolower_utf8mb4(v4, &v8);
v6 = my_wc_mb_utf8mb4_no_range(v10, v8, v5);
if ( v6 <= 0 )
break;
v9 += v7;
v5 += v6;
}
*v5 = 0;
return (_BYTE *)(v5 - a2);
}
|
my_casedn_str_utf8mb4:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0016ea8e
LAB_0016ea8e:
JMP 0x0016ea90
LAB_0016ea90:
MOV RAX,qword ptr [RBP + -0x10]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x39],AL
JZ 0x0016eabe
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x18]
CALL 0x00172850
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
SETG AL
MOV byte ptr [RBP + -0x39],AL
LAB_0016eabe:
MOV AL,byte ptr [RBP + -0x39]
TEST AL,0x1
JNZ 0x0016eac7
JMP 0x0016eb16
LAB_0016eac7:
MOV RDI,qword ptr [RBP + -0x38]
LEA RSI,[RBP + -0x18]
CALL 0x00172c40
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00172b00
MOV dword ptr [RBP + -0x20],EAX
CMP EAX,0x0
JG 0x0016eaef
JMP 0x0016eb16
LAB_0016eaef:
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0016ea90
LAB_0016eb16:
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
ADD RSP,0x40
POP RBP
RET
|
long my_casedn_str_utf8mb4(long param_1,char *param_2)
{
int8 uVar1;
bool bVar2;
int iVar3;
char *local_30;
int local_24;
int8 local_20;
char *local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_30 = param_2;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (*local_18 != '\0') {
local_24 = my_mb_wc_utf8mb4_no_range(local_10,&local_20,local_18);
bVar2 = 0 < local_24;
}
if (!bVar2) break;
my_tolower_utf8mb4(uVar1,&local_20);
iVar3 = my_wc_mb_utf8mb4_no_range(local_10,local_20,local_30);
if (iVar3 < 1) break;
local_18 = local_18 + local_24;
local_30 = local_30 + iVar3;
}
*local_30 = '\0';
return (long)local_30 - (long)param_2;
}
|
|
8,581 |
mi_cmp_dynamic_unique
|
eloqsql/storage/myisam/mi_dynrec.c
|
int _mi_cmp_dynamic_unique(MI_INFO *info, MI_UNIQUEDEF *def,
const uchar *record, my_off_t pos)
{
uchar *rec_buff,*old_record;
int error;
DBUG_ENTER("_mi_cmp_dynamic_unique");
if (!(old_record=my_alloca(info->s->base.reclength)))
DBUG_RETURN(1);
/* Don't let the compare destroy blobs that may be in use */
rec_buff=info->rec_buff;
if (info->s->base.blobs)
info->rec_buff=0;
error=_mi_read_dynamic_record(info,pos,old_record);
if (!error)
error=mi_unique_comp(def, record, old_record, def->null_are_equal);
if (info->s->base.blobs)
{
my_free(mi_get_rec_buff_ptr(info, info->rec_buff));
info->rec_buff=rec_buff;
}
my_afree(old_record);
DBUG_RETURN(error);
}
|
O0
|
c
|
mi_cmp_dynamic_unique:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x140(%rax), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %edx
callq 0xfc020
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0xad9c9
jmp 0xad9bd
movl $0x1, -0x4(%rbp)
jmp 0xadaae
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x188(%rax)
je 0xad9f7
movq -0x10(%rbp), %rax
movq $0x0, 0x120(%rax)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xad580
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jne 0xada2d
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x18(%rbp), %rax
movsbl 0x3(%rax), %ecx
callq 0xc6c10
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x188(%rax)
je 0xada9f
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x318(%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xada78
movq -0x10(%rbp), %rax
cmpq $0x0, 0x120(%rax)
je 0xada78
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
addq $-0x18, %rax
movq %rax, -0x48(%rbp)
jmp 0xada87
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xfc3a0
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x120(%rax)
movq -0x38(%rbp), %rdi
callq 0xfc3a0
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_mi_cmp_dynamic_unique:
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_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+140h]
xor edi, edi
xor eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_38], rax
cmp rax, 0
jnz short loc_AD9C9
jmp short $+2
loc_AD9BD:
mov [rbp+var_4], 1
jmp loc_ADAAE
loc_AD9C9:
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax]
cmp dword ptr [rax+188h], 0
jz short loc_AD9F7
mov rax, [rbp+var_10]
mov qword ptr [rax+120h], 0
loc_AD9F7:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
call _mi_read_dynamic_record
mov [rbp+var_3C], eax
cmp [rbp+var_3C], 0
jnz short loc_ADA2D
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_38]
mov rax, [rbp+var_18]
movsx ecx, byte ptr [rax+3]
call mi_unique_comp
mov [rbp+var_3C], eax
loc_ADA2D:
mov rax, [rbp+var_10]
mov rax, [rax]
cmp dword ptr [rax+188h], 0
jz short loc_ADA9F
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+318h]
and rax, 1
cmp rax, 0
jz short loc_ADA78
mov rax, [rbp+var_10]
cmp qword ptr [rax+120h], 0
jz short loc_ADA78
mov rax, [rbp+var_10]
mov rax, [rax+120h]
add rax, 0FFFFFFFFFFFFFFE8h
mov [rbp+var_48], rax
jmp short loc_ADA87
loc_ADA78:
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov [rbp+var_48], rax
loc_ADA87:
mov rdi, [rbp+var_48]
call my_free
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+120h], rcx
loc_ADA9F:
mov rdi, [rbp+var_38]
call my_free
mov eax, [rbp+var_3C]
mov [rbp+var_4], eax
loc_ADAAE:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
long long mi_cmp_dynamic_unique(char *a1, long long a2, long long a3, const char *a4)
{
unsigned int dynamic_record; // [rsp+14h] [rbp-3Ch]
const char *v6; // [rsp+18h] [rbp-38h]
long long v7; // [rsp+20h] [rbp-30h]
v6 = (const char *)my_malloc(0LL, *(_QWORD *)(*(_QWORD *)a1 + 320LL), 0LL);
if ( v6 )
{
v7 = *((_QWORD *)a1 + 36);
if ( *(_DWORD *)(*(_QWORD *)a1 + 392LL) )
*((_QWORD *)a1 + 36) = 0LL;
dynamic_record = mi_read_dynamic_record(a1, a4, v6);
if ( !dynamic_record )
dynamic_record = mi_unique_comp(a2, a3, v6, (unsigned int)*(char *)(a2 + 3));
if ( *(_DWORD *)(*(_QWORD *)a1 + 392LL) )
{
if ( (*(_QWORD *)(*(_QWORD *)a1 + 792LL) & 1LL) != 0 && *((_QWORD *)a1 + 36) )
my_free(*((_QWORD *)a1 + 36) - 24LL);
else
my_free(*((_QWORD *)a1 + 36));
*((_QWORD *)a1 + 36) = v7;
}
my_free(v6);
return dynamic_record;
}
else
{
return 1;
}
}
|
_mi_cmp_dynamic_unique:
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 qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x140]
XOR EDI,EDI
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001fc020
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JNZ 0x001ad9c9
JMP 0x001ad9bd
LAB_001ad9bd:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001adaae
LAB_001ad9c9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x120]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x188],0x0
JZ 0x001ad9f7
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x120],0x0
LAB_001ad9f7:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001ad580
MOV dword ptr [RBP + -0x3c],EAX
CMP dword ptr [RBP + -0x3c],0x0
JNZ 0x001ada2d
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x18]
MOVSX ECX,byte ptr [RAX + 0x3]
CALL 0x001c6c10
MOV dword ptr [RBP + -0x3c],EAX
LAB_001ada2d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x188],0x0
JZ 0x001ada9f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x318]
AND RAX,0x1
CMP RAX,0x0
JZ 0x001ada78
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x120],0x0
JZ 0x001ada78
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x120]
ADD RAX,-0x18
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001ada87
LAB_001ada78:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x120]
MOV qword ptr [RBP + -0x48],RAX
LAB_001ada87:
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x001fc3a0
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x120],RCX
LAB_001ada9f:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001fc3a0
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x4],EAX
LAB_001adaae:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int _mi_cmp_dynamic_unique(long *param_1,long param_2,int8 param_3,int8 param_4)
{
long lVar1;
long lVar2;
long local_50;
int local_44;
int local_c;
lVar2 = my_malloc(0,*(int8 *)(*param_1 + 0x140),0);
if (lVar2 == 0) {
local_c = 1;
}
else {
lVar1 = param_1[0x24];
if (*(int *)(*param_1 + 0x188) != 0) {
param_1[0x24] = 0;
}
local_44 = _mi_read_dynamic_record(param_1,param_4,lVar2);
if (local_44 == 0) {
local_44 = mi_unique_comp(param_2,param_3,lVar2,(int)*(char *)(param_2 + 3));
}
if (*(int *)(*param_1 + 0x188) != 0) {
if (((*(ulong *)(*param_1 + 0x318) & 1) == 0) || (param_1[0x24] == 0)) {
local_50 = param_1[0x24];
}
else {
local_50 = param_1[0x24] + -0x18;
}
my_free(local_50);
param_1[0x24] = lVar1;
}
my_free(lVar2);
local_c = local_44;
}
return local_c;
}
|
|
8,582 |
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
|
monkey531[P]llama/common/json.hpp
|
static diyfp normalize(diyfp x) noexcept
{
JSON_ASSERT(x.f != 0);
while ((x.f >> 63u) == 0)
{
x.f <<= 1u;
x.e--;
}
return x;
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
subq $0x28, %rsp
movq %rdi, (%rsp)
movl %esi, 0x8(%rsp)
cmpq $0x0, (%rsp)
jne 0x14f576
leaq 0x769b7(%rip), %rdi # 0x1c5f11
leaq 0x7338a(%rip), %rdx # 0x1c28eb
leaq 0x7967b(%rip), %rcx # 0x1c8be3
xorl %eax, %eax
movl $0x42a1, %esi # imm = 0x42A1
callq 0x55cd0
jmp 0x14f576
jmp 0x14f578
movq (%rsp), %rax
shrq $0x3f, %rax
cmpq $0x0, %rax
jne 0x14f59e
movq (%rsp), %rax
shlq %rax
movq %rax, (%rsp)
movl 0x8(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x14f578
movups (%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl 0x18(%rsp), %edx
addq $0x28, %rsp
retq
movq %rax, %rdi
callq 0x5e2c0
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_:
sub rsp, 28h
mov qword ptr [rsp+28h+var_28], rdi
mov dword ptr [rsp+28h+var_28+8], esi
cmp qword ptr [rsp+28h+var_28], 0
jnz short loc_14F576
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aXF0; "x.f != 0"
xor eax, eax
mov esi, 42A1h
call _ggml_abort
jmp short $+2
loc_14F576:
jmp short $+2
loc_14F578:
mov rax, qword ptr [rsp+28h+var_28]
shr rax, 3Fh
cmp rax, 0
jnz short loc_14F59E
mov rax, qword ptr [rsp+28h+var_28]
shl rax, 1
mov qword ptr [rsp+28h+var_28], rax
mov eax, dword ptr [rsp+28h+var_28+8]
add eax, 0FFFFFFFFh
mov dword ptr [rsp+28h+var_28+8], eax
jmp short loc_14F578
loc_14F59E:
movups xmm0, [rsp+28h+var_28]
movaps [rsp+28h+var_18], xmm0
mov rax, qword ptr [rsp+28h+var_18]
mov edx, dword ptr [rsp+28h+var_18+8]
add rsp, 28h
retn
mov rdi, rax
call __clang_call_terminate
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(long long a1, int a2)
{
long long v3; // [rsp+0h] [rbp-28h]
v3 = a1;
if ( !a1 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17057LL,
"GGML_ASSERT(%s) failed",
"x.f != 0");
while ( v3 >= 0 )
{
v3 *= 2LL;
--a2;
}
return v3;
}
| |||
8,583 |
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
|
monkey531[P]llama/common/json.hpp
|
static diyfp normalize(diyfp x) noexcept
{
JSON_ASSERT(x.f != 0);
while ((x.f >> 63u) == 0)
{
x.f <<= 1u;
x.e--;
}
return x;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rax
testq %rdi, %rdi
jne 0x71648
leaq 0x22e89(%rip), %rdi # 0x944b2
leaq 0x2033f(%rip), %rdx # 0x9196f
leaq 0x25b04(%rip), %rcx # 0x9713b
movl $0x42a1, %esi # imm = 0x42A1
xorl %eax, %eax
callq 0x22c90
addq %rdi, %rdi
decl %esi
testq %rdi, %rdi
jns 0x71643
movq %rdi, %rax
movl %esi, %edx
popq %rcx
retq
movq %rax, %rdi
callq 0x26895
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_:
push rax
test rdi, rdi
jnz short loc_71648
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aXF0; "x.f != 0"
mov esi, 42A1h
xor eax, eax
call _ggml_abort
loc_71643:
add rdi, rdi
dec esi
loc_71648:
test rdi, rdi
jns short loc_71643
mov rax, rdi
mov edx, esi
pop rcx
retn
mov rdi, rax
call __clang_call_terminate
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(long long a1, int a2)
{
if ( a1 )
goto LABEL_4;
a1 = (long long)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp";
a2 = 17057;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17057LL,
"GGML_ASSERT(%s) failed",
"x.f != 0");
do
{
a1 *= 2LL;
--a2;
LABEL_4:
;
}
while ( a1 >= 0 );
return a1;
}
|
normalize:
PUSH RAX
TEST RDI,RDI
JNZ 0x00171648
LAB_00171622:
LEA RDI,[0x1944b2]
LEA RDX,[0x19196f]
LEA RCX,[0x19713b]
MOV ESI,0x42a1
XOR EAX,EAX
CALL 0x00122c90
LAB_00171643:
ADD RDI,RDI
DEC ESI
LAB_00171648:
TEST RDI,RDI
JNS 0x00171643
MOV RAX,RDI
MOV EDX,ESI
POP RCX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
*/
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(diyfp *this,int param_2)
{
int1 auVar1 [16];
if (this == (diyfp *)0x0) {
/* try { // try from 00171622 to 00171642 has its CatchHandler @ 00171654 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x42a1,
"GGML_ASSERT(%s) failed","x.f != 0");
}
for (; -1 < (long)this; this = (diyfp *)((long)this * 2)) {
param_2 = param_2 + -1;
}
auVar1._8_4_ = param_2;
auVar1._0_8_ = this;
auVar1._12_4_ = 0;
return auVar1;
}
|
|
8,584 |
my_rw_wrlock
|
eloqsql/mysys/thr_rwlock.c
|
int my_rw_wrlock(my_rw_lock_t *rwp)
{
pthread_mutex_lock(&rwp->lock);
rwp->waiters++; /* another writer queued */
my_rw_lock_assert_not_write_owner(rwp);
while (rwp->state)
pthread_cond_wait(&rwp->writers, &rwp->lock);
rwp->state = -1;
rwp->waiters--;
#ifdef SAFE_MUTEX
rwp->write_thread= pthread_self();
#endif
pthread_mutex_unlock(&rwp->lock);
return(0);
}
|
O0
|
c
|
my_rw_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x27260
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x88(%rax)
je 0xc45a8
movq -0x8(%rbp), %rdi
addq $0x58, %rdi
movq -0x8(%rbp), %rsi
callq 0x27490
jmp 0xc4588
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x88(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rdi
callq 0x27240
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
my_rw_wrlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
mov ecx, [rax+8Ch]
add ecx, 1
mov [rax+8Ch], ecx
loc_C4588:
mov rax, [rbp+var_8]
cmp dword ptr [rax+88h], 0
jz short loc_C45A8
mov rdi, [rbp+var_8]
add rdi, 58h ; 'X'
mov rsi, [rbp+var_8]
call _pthread_cond_wait
jmp short loc_C4588
loc_C45A8:
mov rax, [rbp+var_8]
mov dword ptr [rax+88h], 0FFFFFFFFh
mov rax, [rbp+var_8]
mov ecx, [rax+8Ch]
add ecx, 0FFFFFFFFh
mov [rax+8Ch], ecx
mov rdi, [rbp+var_8]
call _pthread_mutex_unlock
xor eax, eax
add rsp, 10h
pop rbp
retn
|
long long my_rw_wrlock(long long a1)
{
pthread_mutex_lock(a1);
++*(_DWORD *)(a1 + 140);
while ( *(_DWORD *)(a1 + 136) )
pthread_cond_wait(a1 + 88, a1);
*(_DWORD *)(a1 + 136) = -1;
--*(_DWORD *)(a1 + 140);
pthread_mutex_unlock(a1);
return 0LL;
}
|
my_rw_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00127260
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x8c],ECX
LAB_001c4588:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x88],0x0
JZ 0x001c45a8
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x58
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x00127490
JMP 0x001c4588
LAB_001c45a8:
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x88],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x8c],ECX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00127240
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 my_rw_wrlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
*(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + 1;
while (*(int *)((long)param_1 + 0x88) != 0) {
pthread_cond_wait((pthread_cond_t *)((long)param_1 + 0x58),param_1);
}
*(int4 *)((long)param_1 + 0x88) = 0xffffffff;
*(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + -1;
pthread_mutex_unlock(param_1);
return 0;
}
|
|
8,585 |
Destroy(Context&, Object&)
|
csit-sgu[P]mit-game-2025_1/internal.cpp
|
void Destroy(Context &ctx, Object &obj) {
ctx.to_destroy.push_back(obj.id);
}
|
O1
|
cpp
|
Destroy(Context&, Object&):
movq %rsi, %rdx
addq $0x8, %rdx
movq 0x70(%rdi), %rsi
cmpq 0x78(%rdi), %rsi
je 0xd5c8
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x70(%rdi)
retq
addq $0x68, %rdi
jmp 0xf474
|
_Z7DestroyR7ContextR6Object:
mov rdx, rsi
add rdx, 8
mov rsi, [rdi+70h]
cmp rsi, [rdi+78h]
jz short loc_D5C8
mov rax, [rdx]
mov [rsi], rax
add rsi, 8
mov [rdi+70h], rsi
retn
loc_D5C8:
add rdi, 68h ; 'h'
jmp _ZNSt6vectorImSaImEE17_M_realloc_insertIJRKmEEEvN9__gnu_cxx17__normal_iteratorIPmS1_EEDpOT_; std::vector<ulong>::_M_realloc_insert<ulong const&>(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong const&)
|
long long Destroy(Context *a1, Object *a2)
{
long long *v2; // rdx
long long *v3; // rsi
long long result; // rax
v2 = (long long *)((char *)a2 + 8);
v3 = (long long *)*((_QWORD *)a1 + 14);
if ( v3 == *((long long **)a1 + 15) )
return std::vector<unsigned long>::_M_realloc_insert<unsigned long const&>((char *)a1 + 104, v3, v2);
result = *v2;
*v3 = *v2;
*((_QWORD *)a1 + 14) = v3 + 1;
return result;
}
|
Destroy:
MOV RDX,RSI
ADD RDX,0x8
MOV RSI,qword ptr [RDI + 0x70]
CMP RSI,qword ptr [RDI + 0x78]
JZ 0x0010d5c8
MOV RAX,qword ptr [RDX]
MOV qword ptr [RSI],RAX
ADD RSI,0x8
MOV qword ptr [RDI + 0x70],RSI
RET
LAB_0010d5c8:
ADD RDI,0x68
JMP 0x0010f474
|
/* Destroy(Context&, Object&) */
void Destroy(Context *param_1,Object *param_2)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_1 + 0x70);
if (puVar1 != *(int8 **)(param_1 + 0x78)) {
*puVar1 = *(int8 *)(param_2 + 8);
*(int8 **)(param_1 + 0x70) = puVar1 + 1;
return;
}
std::vector<unsigned_long,std::allocator<unsigned_long>>::_M_realloc_insert<unsigned_long_const&>
((vector<unsigned_long,std::allocator<unsigned_long>> *)(param_1 + 0x68));
return;
}
|
|
8,586 |
Destroy(Context&, Object&)
|
csit-sgu[P]mit-game-2025_1/internal.cpp
|
void Destroy(Context &ctx, Object &obj) {
ctx.to_destroy.push_back(obj.id);
}
|
O3
|
cpp
|
Destroy(Context&, Object&):
movq %rsi, %rdx
addq $0x8, %rdx
movq 0x70(%rdi), %rsi
cmpq 0x78(%rdi), %rsi
je 0xe5bd
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x70(%rdi)
retq
addq $0x68, %rdi
jmp 0x1034a
|
_Z7DestroyR7ContextR6Object:
mov rdx, rsi
add rdx, 8
mov rsi, [rdi+70h]
cmp rsi, [rdi+78h]
jz short loc_E5BD
mov rax, [rdx]
mov [rsi], rax
add rsi, 8
mov [rdi+70h], rsi
retn
loc_E5BD:
add rdi, 68h ; 'h'
jmp _ZNSt6vectorImSaImEE17_M_realloc_insertIJRKmEEEvN9__gnu_cxx17__normal_iteratorIPmS1_EEDpOT_; std::vector<ulong>::_M_realloc_insert<ulong const&>(__gnu_cxx::__normal_iterator<ulong *,std::vector<ulong>>,ulong const&)
|
long long Destroy(Context *a1, Object *a2)
{
long long *v2; // rdx
long long *v3; // rsi
long long result; // rax
v2 = (long long *)((char *)a2 + 8);
v3 = (long long *)*((_QWORD *)a1 + 14);
if ( v3 == *((long long **)a1 + 15) )
return std::vector<unsigned long>::_M_realloc_insert<unsigned long const&>((char *)a1 + 104, v3, v2);
result = *v2;
*v3 = *v2;
*((_QWORD *)a1 + 14) = v3 + 1;
return result;
}
|
Destroy:
MOV RDX,RSI
ADD RDX,0x8
MOV RSI,qword ptr [RDI + 0x70]
CMP RSI,qword ptr [RDI + 0x78]
JZ 0x0010e5bd
MOV RAX,qword ptr [RDX]
MOV qword ptr [RSI],RAX
ADD RSI,0x8
MOV qword ptr [RDI + 0x70],RSI
RET
LAB_0010e5bd:
ADD RDI,0x68
JMP 0x0011034a
|
/* Destroy(Context&, Object&) */
void Destroy(Context *param_1,Object *param_2)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_1 + 0x70);
if (puVar1 != *(int8 **)(param_1 + 0x78)) {
*puVar1 = *(int8 *)(param_2 + 8);
*(int8 **)(param_1 + 0x70) = puVar1 + 1;
return;
}
std::vector<unsigned_long,std::allocator<unsigned_long>>::_M_realloc_insert<unsigned_long_const&>
((vector<unsigned_long,std::allocator<unsigned_long>> *)(param_1 + 0x68));
return;
}
|
|
8,587 |
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&)
|
llama.cpp/common/minja/minja.hpp
|
static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) {
std::map<std::string, size_t> named_positions;
for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i;
return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value {
auto args_obj = Value::object();
std::vector<bool> provided_args(params.size());
for (size_t i = 0, n = args.args.size(); i < n; i++) {
auto & arg = args.args[i];
if (i < params.size()) {
args_obj.set(params[i], arg);
provided_args[i] = true;
} else {
throw std::runtime_error("Too many positional params for " + fn_name);
}
}
for (auto & [name, value] : args.kwargs) {
auto named_pos_it = named_positions.find(name);
if (named_pos_it == named_positions.end()) {
throw std::runtime_error("Unknown argument " + name + " for function " + fn_name);
}
provided_args[named_pos_it->second] = true;
args_obj.set(name, value);
}
return fn(context, args_obj);
});
}
|
O3
|
cpp
|
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, 0x28(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
leaq 0xc0(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0x8(%rdx), %rbp
subq (%rdx), %rbp
je 0x9cfda
sarq $0x5, %rbp
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %ebx, %ebx
leaq 0xb8(%rsp), %r13
xorl %r12d, %r12d
movq (%r15), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0xc0606
movq %r12, (%rax)
incq %r12
addq $0x20, %rbx
cmpq %r12, %rbp
jne 0x9cfbd
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x64610
leaq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x27f06
leaq 0x68(%rsp), %r14
leaq 0xb8(%rsp), %rsi
movq %r14, %rdi
callq 0xc09f8
leaq 0x98(%rsp), %r15
movq %r15, %rdi
movq 0x28(%rsp), %rsi
callq 0xc069a
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl $0x88, %edi
callq 0x20200
movq %rax, %r12
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x64610
leaq 0x18(%r12), %rdi
leaq 0x28(%r12), %rbp
movq %rbp, 0x18(%r12)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
callq 0x27f06
leaq 0x40(%r12), %rax
movq 0x78(%rsp), %rdx
testq %rdx, %rdx
je 0x9d0c1
leaq 0x70(%rsp), %rdi
movl (%rdi), %ecx
movq %rdx, 0x48(%r12)
movq 0x10(%rdi), %r8
movq 0x18(%rdi), %rsi
movq %rax, 0x8(%rdx)
leaq 0x90(%rsp), %rdx
movq (%rdx), %rax
movq %rax, 0x60(%r12)
movq $0x0, -0x18(%rdx)
movq %rdi, -0x10(%rdx)
movq %rdi, -0x8(%rdx)
movq %r8, %rax
jmp 0x9d0d4
movq $0x0, 0x48(%r12)
leaq 0x60(%r12), %rdx
xorl %ecx, %ecx
movq %rax, %rsi
movq %rax, 0x50(%r12)
movq %rsi, 0x58(%r12)
movq $0x0, (%rdx)
movl %ecx, 0x40(%r12)
leaq 0x68(%r12), %rdi
movq %r15, %rsi
callq 0xc069a
movq %rsp, %rsi
movq %r12, (%rsi)
leaq 0x1c8(%rip), %rax # 0x9d2cc
movq %rax, 0x18(%rsi)
leaq 0x7cb(%rip), %rax # 0x9d8da
movq %rax, 0x10(%rsi)
movq 0x20(%rsp), %rdi
callq 0xbb38e
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9d134
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xa8(%rsp), %rax
testq %rax, %rax
je 0x9d14e
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
movq %r14, %rdi
callq 0xc0c5a
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x9d16d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x20170
leaq 0x30(%rsp), %rdi
callq 0x27a06
leaq 0xb8(%rsp), %rdi
callq 0xc0c5a
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9d215
jmp 0x9d215
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9d220
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x9d220
jmp 0x9d215
movq %rax, %rbx
movq %r12, %rdi
addq $0x38, %rdi
callq 0xc0c5a
movq 0x18(%r12), %rdi
cmpq %rbp, %rdi
je 0x9d1e2
movq (%rbp), %rsi
incq %rsi
callq 0x20170
jmp 0x9d1e2
movq %rax, %rbx
movq %r12, %rdi
callq 0x27a06
jmp 0x9d1ef
movq %rax, %rbx
movl $0x88, %esi
movq %r12, %rdi
callq 0x20170
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9d220
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x9d220
movq %rax, %rdi
callq 0x27e37
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x9d27e
jmp 0x9d269
movq %rax, %rbx
movq %r14, %rdi
callq 0xc0c5a
jmp 0x9d23c
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x9d258
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x20170
jmp 0x9d258
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x27a06
jmp 0x9d269
jmp 0x9d266
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xc0c5a
movq %rbx, %rdi
callq 0x20ae0
|
_ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov [rsp+118h+var_F0], rcx
mov r15, rdx
mov r14, rsi
mov [rsp+118h+var_F8], rdi
lea rax, [rsp+118h+var_58]
mov dword ptr [rax], 0
xor ecx, ecx
mov [rax+8], rcx
mov [rax+10h], rax
mov [rax+18h], rax
mov [rax+20h], rcx
mov rbp, [rdx+8]
sub rbp, [rdx]
jz short loc_9CFDA
sar rbp, 5
cmp rbp, 1
adc rbp, 0
xor ebx, ebx
lea r13, [rsp+118h+var_60]
xor r12d, r12d
loc_9CFBD:
mov rsi, [r15]
add rsi, rbx
mov rdi, r13
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&)
mov [rax], r12
inc r12
add rbx, 20h ; ' '
cmp rbp, r12
jnz short loc_9CFBD
loc_9CFDA:
lea rdi, [rsp+118h+var_E8]
mov rsi, r15
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
lea rdi, [rsp+118h+var_D0]
lea r13, [rsp+118h+var_C0]
mov [r13-10h], r13
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea r14, [rsp+118h+var_B0]
lea rsi, [rsp+118h+var_60]
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&)
lea r15, [rsp+118h+var_80]
mov rdi, r15
mov rsi, [rsp+118h+var_F0]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)
xorps xmm0, xmm0
movaps [rsp+118h+var_108], xmm0
movaps [rsp+118h+var_118], xmm0
mov edi, 88h; unsigned __int64
call __Znwm; operator new(ulong)
mov r12, rax
lea rsi, [rsp+118h+var_E8]
mov rdi, rax
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
lea rdi, [r12+18h]
lea rbp, [r12+28h]
mov [r12+18h], rbp
mov rsi, [rsp+118h+var_D0]
mov rdx, [rsp+118h+var_C8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rax, [r12+40h]
mov rdx, [rsp+118h+var_A0]
test rdx, rdx
jz short loc_9D0C1
lea rdi, [rsp+118h+var_A8]
mov ecx, [rdi]
mov [r12+48h], rdx
mov r8, [rdi+10h]
mov rsi, [rdi+18h]
mov [rdx+8], rax
lea rdx, [rsp+118h+var_88]
mov rax, [rdx]
mov [r12+60h], rax
mov qword ptr [rdx-18h], 0
mov [rdx-10h], rdi
mov [rdx-8], rdi
mov rax, r8
jmp short loc_9D0D4
loc_9D0C1:
mov qword ptr [r12+48h], 0
lea rdx, [r12+60h]
xor ecx, ecx
mov rsi, rax
loc_9D0D4:
mov [r12+50h], rax
mov [r12+58h], rsi
mov qword ptr [rdx], 0
mov [r12+40h], ecx
lea rdi, [r12+68h]
mov rsi, r15
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)
mov rsi, rsp
mov [rsi], r12
lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8_; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
mov rdi, [rsp+118h+var_F8]
call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
mov rax, qword ptr [rsp+118h+var_108]
test rax, rax
jz short loc_9D134
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_9D134:
mov rax, [rsp+118h+var_70]
test rax, rax
jz short loc_9D14E
mov rdi, r15
mov rsi, r15
mov edx, 3
call rax
loc_9D14E:
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, [rsp+118h+var_D0]; void *
cmp rdi, r13
jz short loc_9D16D
mov rsi, [rsp+118h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9D16D:
lea rdi, [rsp+118h+var_E8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+118h+var_60]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_9D215
jmp short loc_9D215
mov rbx, rax
mov rax, qword ptr [rsp+118h+var_108]
test rax, rax
jz short loc_9D220
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_9D220
jmp short loc_9D215
mov rbx, rax
mov rdi, r12
add rdi, 38h ; '8'
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, [r12+18h]; void *
cmp rdi, rbp
jz short loc_9D1E2
mov rsi, [rbp+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9D1E2
mov rbx, rax
loc_9D1E2:
mov rdi, r12
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_9D1EF
mov rbx, rax
loc_9D1EF:
mov esi, 88h; unsigned __int64
mov rdi, r12; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rax, qword ptr [rsp+118h+var_108]
test rax, rax
jz short loc_9D220
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_9D220
loc_9D215:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
loc_9D220:
lea rdi, [rsp+118h+var_E8]
call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0()
jmp short loc_9D269
mov rbx, rax
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
jmp short loc_9D23C
mov rbx, rax
loc_9D23C:
mov rdi, [rsp+118h+var_D0]; void *
cmp rdi, r13
jz short loc_9D258
mov rsi, [rsp+118h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9D258
mov rbx, rax
loc_9D258:
lea rdi, [rsp+118h+var_E8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_9D269
jmp short $+2
loc_9D266:
mov rbx, rax
loc_9D269:
lea rdi, [rsp+118h+var_60]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
|
long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v5; // rbp
long long v6; // rbp
long long v7; // rbx
long long v8; // r12
long long v9; // r12
long long v10; // rax
long long v11; // rdx
int v12; // ecx
int *v13; // r8
int *v14; // rsi
long long *v15; // rdx
__int128 v17; // [rsp+0h] [rbp-118h] BYREF
__int128 v18; // [rsp+10h] [rbp-108h]
long long v19; // [rsp+20h] [rbp-F8h]
long long v20; // [rsp+28h] [rbp-F0h]
_QWORD v21[3]; // [rsp+30h] [rbp-E8h] BYREF
void *v22[2]; // [rsp+48h] [rbp-D0h] BYREF
_QWORD v23[2]; // [rsp+58h] [rbp-C0h] BYREF
_BYTE v24[8]; // [rsp+68h] [rbp-B0h] BYREF
int v25; // [rsp+70h] [rbp-A8h] BYREF
long long v26; // [rsp+78h] [rbp-A0h]
int *v27; // [rsp+80h] [rbp-98h]
int *v28; // [rsp+88h] [rbp-90h]
long long v29; // [rsp+90h] [rbp-88h] BYREF
_BYTE v30[16]; // [rsp+98h] [rbp-80h] BYREF
void ( *v31)(_BYTE *, _BYTE *, long long); // [rsp+A8h] [rbp-70h]
_BYTE v32[8]; // [rsp+B8h] [rbp-60h] BYREF
int v33; // [rsp+C0h] [rbp-58h] BYREF
long long v34; // [rsp+C8h] [rbp-50h]
int *v35; // [rsp+D0h] [rbp-48h]
int *v36; // [rsp+D8h] [rbp-40h]
long long v37; // [rsp+E0h] [rbp-38h]
v20 = a4;
v19 = a1;
v33 = 0;
v34 = 0LL;
v35 = &v33;
v36 = &v33;
v37 = 0LL;
v5 = a3[1] - *a3;
if ( v5 )
{
v6 = (v5 >> 5 == 0) + (v5 >> 5);
v7 = 0LL;
v8 = 0LL;
do
{
*(_QWORD *)std::map<std::string,unsigned long>::operator[](v32, v7 + *a3) = v8++;
v7 += 32LL;
}
while ( v6 != v8 );
}
std::vector<std::string>::vector((long long)v21, a3);
v22[0] = v23;
std::string::_M_construct<char *>((long long)v22, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree(
v24,
v32);
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v30, v20);
v18 = 0LL;
v17 = 0LL;
v9 = operator new(0x88uLL);
std::vector<std::string>::vector(v9, v21);
*(_QWORD *)(v9 + 24) = v9 + 40;
std::string::_M_construct<char *>(v9 + 24, (_BYTE *)v22[0], (long long)v22[0] + (unsigned long long)v22[1]);
v10 = v9 + 64;
v11 = v26;
if ( v26 )
{
v12 = v25;
*(_QWORD *)(v9 + 72) = v26;
v13 = v27;
v14 = v28;
*(_QWORD *)(v11 + 8) = v10;
v15 = &v29;
*(_QWORD *)(v9 + 96) = v29;
v26 = 0LL;
v27 = &v25;
v28 = &v25;
v10 = (long long)v13;
}
else
{
*(_QWORD *)(v9 + 72) = 0LL;
v15 = (long long *)(v9 + 96);
v12 = 0;
v14 = (int *)(v9 + 64);
}
*(_QWORD *)(v9 + 80) = v10;
*(_QWORD *)(v9 + 88) = v14;
*v15 = 0LL;
*(_DWORD *)(v9 + 64) = v12;
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v9 + 104, v30);
*(_QWORD *)&v17 = v9;
*((_QWORD *)&v18 + 1) = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke;
*(_QWORD *)&v18 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager;
minja::Value::callable(v19);
if ( std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager )
((void ( *)(__int128 *, __int128 *, long long))v18)(&v17, &v17, 3LL);
if ( v31 )
v31(v30, v30, 3LL);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v24);
if ( v22[0] != v23 )
operator delete(v22[0], v23[0] + 1LL);
std::vector<std::string>::~vector((long long)v21);
return std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v32);
}
|
simple_function:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV qword ptr [RSP + 0x28],RCX
MOV R15,RDX
MOV R14,RSI
MOV qword ptr [RSP + 0x20],RDI
LEA RAX,[RSP + 0xc0]
MOV dword ptr [RAX],0x0
XOR ECX,ECX
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX + 0x10],RAX
MOV qword ptr [RAX + 0x18],RAX
MOV qword ptr [RAX + 0x20],RCX
MOV RBP,qword ptr [RDX + 0x8]
SUB RBP,qword ptr [RDX]
JZ 0x0019cfda
SAR RBP,0x5
CMP RBP,0x1
ADC RBP,0x0
XOR EBX,EBX
LEA R13,[RSP + 0xb8]
XOR R12D,R12D
LAB_0019cfbd:
MOV RSI,qword ptr [R15]
ADD RSI,RBX
LAB_0019cfc3:
MOV RDI,R13
CALL 0x001c0606
MOV qword ptr [RAX],R12
INC R12
ADD RBX,0x20
CMP RBP,R12
JNZ 0x0019cfbd
LAB_0019cfda:
LEA RDI,[RSP + 0x30]
MOV RSI,R15
CALL 0x00164610
LEA RDI,[RSP + 0x48]
LEA R13,[RSP + 0x58]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_0019cfff:
CALL 0x00127f06
LEA R14,[RSP + 0x68]
LAB_0019d009:
LEA RSI,[RSP + 0xb8]
MOV RDI,R14
CALL 0x001c09f8
LEA R15,[RSP + 0x98]
LAB_0019d021:
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001c069a
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
LAB_0019d03a:
MOV EDI,0x88
CALL 0x00120200
LAB_0019d044:
MOV R12,RAX
LEA RSI,[RSP + 0x30]
MOV RDI,RAX
CALL 0x00164610
LEA RDI,[R12 + 0x18]
LEA RBP,[R12 + 0x28]
MOV qword ptr [R12 + 0x18],RBP
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,RSI
LAB_0019d070:
CALL 0x00127f06
LEA RAX,[R12 + 0x40]
MOV RDX,qword ptr [RSP + 0x78]
TEST RDX,RDX
JZ 0x0019d0c1
LEA RDI,[RSP + 0x70]
MOV ECX,dword ptr [RDI]
MOV qword ptr [R12 + 0x48],RDX
MOV R8,qword ptr [RDI + 0x10]
MOV RSI,qword ptr [RDI + 0x18]
MOV qword ptr [RDX + 0x8],RAX
LEA RDX,[RSP + 0x90]
MOV RAX,qword ptr [RDX]
MOV qword ptr [R12 + 0x60],RAX
MOV qword ptr [RDX + -0x18],0x0
MOV qword ptr [RDX + -0x10],RDI
MOV qword ptr [RDX + -0x8],RDI
MOV RAX,R8
JMP 0x0019d0d4
LAB_0019d0c1:
MOV qword ptr [R12 + 0x48],0x0
LEA RDX,[R12 + 0x60]
XOR ECX,ECX
MOV RSI,RAX
LAB_0019d0d4:
MOV qword ptr [R12 + 0x50],RAX
MOV qword ptr [R12 + 0x58],RSI
MOV qword ptr [RDX],0x0
MOV dword ptr [R12 + 0x40],ECX
LEA RDI,[R12 + 0x68]
LAB_0019d0ef:
MOV RSI,R15
CALL 0x001c069a
MOV RSI,RSP
MOV qword ptr [RSI],R12
LEA RAX,[0x19d2cc]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x19d8da]
MOV qword ptr [RSI + 0x10],RAX
LAB_0019d113:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001bb38e
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x0019d134
LAB_0019d127:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0019d134:
MOV RAX,qword ptr [RSP + 0xa8]
TEST RAX,RAX
JZ 0x0019d14e
LAB_0019d141:
MOV RDI,R15
MOV RSI,R15
MOV EDX,0x3
CALL RAX
LAB_0019d14e:
MOV RDI,R14
CALL 0x001c0c5a
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,R13
JZ 0x0019d16d
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x00120170
LAB_0019d16d:
LEA RDI,[RSP + 0x30]
CALL 0x00127a06
LEA RDI,[RSP + 0xb8]
CALL 0x001c0c5a
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::simple_function(std::__cxx11::string const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, std::function<minja::Value
(std::shared_ptr<minja::Context> const&, minja::Value&)> const&) */
void __thiscall
minja::simple_function(minja *this,string *param_1,vector *param_2,function *param_3)
{
long *plVar1;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar2;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar3;
long lVar4;
long lVar5;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar6;
long lVar7;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_118;
int8 uStack_110;
code *local_108;
code *pcStack_100;
minja *local_f8;
function *local_f0;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_e8 [24];
long *local_d0;
long local_c8;
long local_c0 [2];
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
local_b0 [8];
int4 local_a8 [2];
long local_a0;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_98;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_90;
int8 local_88;
function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> local_80 [16];
code *local_70;
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
local_60 [8];
int4 local_58 [2];
int8 local_50;
int4 *local_48;
int4 *local_40;
int8 local_38;
local_48 = local_58;
local_58[0] = 0;
local_50 = 0;
local_38 = 0;
local_f8 = this;
local_f0 = param_3;
local_40 = local_48;
if (*(long *)(param_2 + 8) - *(long *)param_2 != 0) {
lVar5 = *(long *)(param_2 + 8) - *(long *)param_2 >> 5;
lVar4 = 0;
lVar7 = 0;
do {
/* try { // try from 0019cfc3 to 0019cfca has its CatchHandler @ 0019d266 */
plVar1 = (long *)std::
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::operator[](local_60,(string *)(*(long *)param_2 + lVar4));
*plVar1 = lVar7;
lVar7 = lVar7 + 1;
lVar4 = lVar4 + 0x20;
} while (lVar5 + (ulong)(lVar5 == 0) != lVar7);
}
/* try { // try from 0019cfda to 0019cfe6 has its CatchHandler @ 0019d264 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_e8,param_2);
local_d0 = local_c0;
/* try { // try from 0019cfff to 0019d003 has its CatchHandler @ 0019d255 */
std::__cxx11::string::_M_construct<char*>
(&local_d0,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
/* try { // try from 0019d009 to 0019d018 has its CatchHandler @ 0019d239 */
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::_Rb_tree(local_b0,(_Rb_tree *)local_60);
/* try { // try from 0019d021 to 0019d02d has its CatchHandler @ 0019d22c */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function
(local_80,local_f0);
local_108 = (code *)0x0;
pcStack_100 = (code *)0x0;
local_118 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0;
uStack_110 = 0;
/* try { // try from 0019d03a to 0019d043 has its CatchHandler @ 0019d21d */
this_00 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)operator_new(0x88);
/* try { // try from 0019d044 to 0019d053 has its CatchHandler @ 0019d1ec */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
(this_00,(vector *)local_e8);
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x18) =
this_00 + 0x28;
/* try { // try from 0019d070 to 0019d074 has its CatchHandler @ 0019d1df */
std::__cxx11::string::_M_construct<char*>(this_00 + 0x18,local_d0,local_c8 + (long)local_d0);
pvVar2 = this_00 + 0x40;
if (local_a0 == 0) {
*(int8 *)(this_00 + 0x48) = 0;
pvVar3 = this_00 + 0x60;
local_a8[0] = 0;
pvVar6 = pvVar2;
}
else {
*(long *)(this_00 + 0x48) = local_a0;
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(local_a0 + 8) = pvVar2;
pvVar3 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_88;
*(int8 *)(this_00 + 0x60) = local_88;
local_a0 = 0;
pvVar2 = local_98;
pvVar6 = local_90;
local_98 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a8;
local_90 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a8;
}
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x50) = pvVar2;
*(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x58) = pvVar6;
*(int8 *)pvVar3 = 0;
*(int4 *)(this_00 + 0x40) = local_a8[0];
/* try { // try from 0019d0ef to 0019d0f6 has its CatchHandler @ 0019d1b8 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function
((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> *)
(this_00 + 0x68),local_80);
pcStack_100 = std::
_Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0>
::_M_invoke;
local_108 = std::
_Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0>
::_M_manager;
local_118 = this_00;
/* try { // try from 0019d113 to 0019d11c has its CatchHandler @ 0019d19a */
Value::callable((Value *)local_f8,(function *)&local_118);
if (local_108 != (code *)0x0) {
/* try { // try from 0019d127 to 0019d133 has its CatchHandler @ 0019d198 */
(*local_108)(&local_118,&local_118,3);
}
if (local_70 != (code *)0x0) {
/* try { // try from 0019d141 to 0019d14d has its CatchHandler @ 0019d196 */
(*local_70)(local_80,local_80,3);
}
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::~_Rb_tree(local_b0);
if (local_d0 != local_c0) {
operator_delete(local_d0,local_c0[0] + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_e8);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)local_60);
return;
}
|
|
8,588 |
init_state_maps
|
eloqsql/mysys/charset.c
|
static my_bool init_state_maps(struct charset_info_st *cs)
{
uint i;
uchar *state_map;
uchar *ident_map;
if (!(cs->state_map= state_map= (uchar*) my_once_alloc(256*2, MYF(MY_WME))))
return 1;
cs->ident_map= ident_map= state_map + 256;
/* Fill state_map with states to get a faster parser */
for (i=0; i < 256 ; i++)
{
if (my_isalpha(cs,i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isdigit(cs,i))
state_map[i]=(uchar) MY_LEX_NUMBER_IDENT;
else if (is_multi_byte_ident(cs, i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isspace(cs,i))
state_map[i]=(uchar) MY_LEX_SKIP;
else
state_map[i]=(uchar) MY_LEX_CHAR;
}
state_map[(uchar)'_']=state_map[(uchar)'$']=(uchar) MY_LEX_IDENT;
state_map[(uchar)'\'']=(uchar) MY_LEX_STRING;
state_map[(uchar)'.']=(uchar) MY_LEX_REAL_OR_POINT;
state_map[(uchar)'>']=state_map[(uchar)'=']=state_map[(uchar)'!']= (uchar) MY_LEX_CMP_OP;
state_map[(uchar)'<']= (uchar) MY_LEX_LONG_CMP_OP;
state_map[(uchar)'&']=state_map[(uchar)'|']=(uchar) MY_LEX_BOOL;
state_map[(uchar)'#']=(uchar) MY_LEX_COMMENT;
state_map[(uchar)';']=(uchar) MY_LEX_SEMICOLON;
state_map[(uchar)':']=(uchar) MY_LEX_SET_VAR;
state_map[0]=(uchar) MY_LEX_EOL;
state_map[(uchar)'\\']= (uchar) MY_LEX_ESCAPE;
state_map[(uchar)'/']= (uchar) MY_LEX_LONG_COMMENT;
state_map[(uchar)'*']= (uchar) MY_LEX_END_LONG_COMMENT;
state_map[(uchar)'@']= (uchar) MY_LEX_USER_END;
state_map[(uchar) '`']= (uchar) MY_LEX_USER_VARIABLE_DELIMITER;
state_map[(uchar)'"']= (uchar) MY_LEX_STRING_OR_DELIMITER;
state_map[(uchar)'-']= (uchar) MY_LEX_MINUS_OR_COMMENT;
state_map[(uchar)',']= (uchar) MY_LEX_COMMA;
state_map[(uchar)'?']= (uchar) MY_LEX_PLACEHOLDER;
/*
Create a second map to make it faster to find identifiers
*/
for (i=0; i < 256 ; i++)
{
ident_map[i]= (uchar) (state_map[i] == MY_LEX_IDENT ||
state_map[i] == MY_LEX_NUMBER_IDENT);
}
/* Special handling of hex and binary strings */
state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX;
state_map[(uchar)'b']= state_map[(uchar)'B']= (uchar) MY_LEX_IDENT_OR_BIN;
state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR;
return 0;
}
|
O3
|
c
|
init_state_maps:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x200, %edi # imm = 0x200
movl $0x10, %esi
callq 0x29f60
movq %rax, 0x80(%r14)
testq %rax, %rax
je 0x2f72a
movq %rax, %rbx
movq %rax, %r13
addq $0x100, %r13 # imm = 0x100
movq %r13, 0x88(%r14)
xorl %r15d, %r15d
leaq -0x29(%rbp), %r12
movq 0x40(%r14), %rax
movzbl 0x1(%rax,%r15), %eax
testb $0x3, %al
je 0x2f636
movb $0x2, (%rbx,%r15)
jmp 0x2f675
testb $0x4, %al
jne 0x2f670
movb %r15b, -0x29(%rbp)
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
leaq -0x28(%rbp), %rdx
callq *0xc0(%rax)
addl $0x64, %eax
cmpl $-0x6, %eax
jae 0x2f62f
movq 0x40(%r14), %rax
testb $0x8, 0x1(%rax,%r15)
jne 0x2f683
movb $0x1, (%rbx,%r15)
jmp 0x2f675
movb $0xe, (%rbx,%r15)
incq %r15
cmpq $0x100, %r15 # imm = 0x100
jne 0x2f621
jmp 0x2f68a
movb $0x1a, (%rbx,%r15)
jmp 0x2f675
movw $0x1b02, 0x5f(%rbx) # imm = 0x1B02
movb $0x8, 0x3e(%rbx)
movb $0x11, 0x7c(%rbx)
movw $0xa11, 0x26(%rbx) # imm = 0xA11
movl $0x8091617, 0x3a(%rbx) # imm = 0x8091617
movb $0x12, (%rbx)
movb $0x13, 0x5c(%rbx)
movb $0x15, 0x2a(%rbx)
movl $0x20b2108, 0x21(%rbx) # imm = 0x20B2108
movl $0x14102224, 0x2c(%rbx) # imm = 0x14102224
movw $0x1823, 0x3f(%rbx) # imm = 0x1823
movq $-0x100, %rax
movdqa 0x3774d(%rip), %xmm0 # 0x66e20
movdqa 0x37755(%rip), %xmm1 # 0x66e30
movdqa 0x3775d(%rip), %xmm2 # 0x66e40
movdqu (%r13,%rax), %xmm3
movdqa %xmm3, %xmm4
pcmpeqb %xmm0, %xmm4
pcmpeqb %xmm1, %xmm3
por %xmm4, %xmm3
pand %xmm2, %xmm3
movdqu %xmm3, 0x100(%r13,%rax)
addq $0x10, %rax
jne 0x2f6e3
movb $0x1e, %al
movb %al, 0x58(%rbx)
movb %al, 0x78(%rbx)
movb $0x1f, %al
movb %al, 0x42(%rbx)
movb %al, 0x62(%rbx)
movb $0x20, %al
movb %al, 0x4e(%rbx)
movb %al, 0x6e(%rbx)
xorl %eax, %eax
jmp 0x2f72c
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
init_state_maps:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdi
mov edi, 200h
mov esi, 10h
call my_once_alloc
mov [r14+80h], rax
test rax, rax
jz loc_2F72A
mov rbx, rax
mov r13, rax
add r13, 100h
mov [r14+88h], r13
xor r15d, r15d
lea r12, [rbp+var_29]
loc_2F621:
mov rax, [r14+40h]
movzx eax, byte ptr [rax+r15+1]
test al, 3
jz short loc_2F636
loc_2F62F:
mov byte ptr [rbx+r15], 2
jmp short loc_2F675
loc_2F636:
test al, 4
jnz short loc_2F670
mov [rbp+var_29], r15b
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, r12
lea rdx, [rbp+var_28]
call qword ptr [rax+0C0h]
add eax, 64h ; 'd'
cmp eax, 0FFFFFFFAh
jnb short loc_2F62F
mov rax, [r14+40h]
test byte ptr [rax+r15+1], 8
jnz short loc_2F683
mov byte ptr [rbx+r15], 1
jmp short loc_2F675
loc_2F670:
mov byte ptr [rbx+r15], 0Eh
loc_2F675:
inc r15
cmp r15, 100h
jnz short loc_2F621
jmp short loc_2F68A
loc_2F683:
mov byte ptr [rbx+r15], 1Ah
jmp short loc_2F675
loc_2F68A:
mov word ptr [rbx+5Fh], 1B02h
mov byte ptr [rbx+3Eh], 8
mov byte ptr [rbx+7Ch], 11h
mov word ptr [rbx+26h], 0A11h
mov dword ptr [rbx+3Ah], 8091617h
mov byte ptr [rbx], 12h
mov byte ptr [rbx+5Ch], 13h
mov byte ptr [rbx+2Ah], 15h
mov dword ptr [rbx+21h], 20B2108h
mov dword ptr [rbx+2Ch], 14102224h
mov word ptr [rbx+3Fh], 1823h
mov rax, 0FFFFFFFFFFFFFF00h
movdqa xmm0, cs:xmmword_66E20
movdqa xmm1, cs:xmmword_66E30
movdqa xmm2, cs:xmmword_66E40
loc_2F6E3:
movdqu xmm3, xmmword ptr [r13+rax+0]
movdqa xmm4, xmm3
pcmpeqb xmm4, xmm0
pcmpeqb xmm3, xmm1
por xmm3, xmm4
pand xmm3, xmm2
movdqu xmmword ptr [r13+rax+100h], xmm3
add rax, 10h
jnz short loc_2F6E3
mov al, 1Eh
mov [rbx+58h], al
mov [rbx+78h], al
mov al, 1Fh
mov [rbx+42h], al
mov [rbx+62h], al
mov al, 20h ; ' '
mov [rbx+4Eh], al
mov [rbx+6Eh], al
xor eax, eax
jmp short loc_2F72C
loc_2F72A:
mov al, 1
loc_2F72C:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long init_state_maps(_QWORD *a1)
{
long long v1; // rax
long long v2; // rax
long long v3; // rbx
long long v4; // r13
long long i; // r15
char v6; // al
long long v7; // rax
__m128i si128; // xmm0
__m128i v9; // xmm1
__m128i v10; // xmm2
__m128i v11; // xmm3
char v13; // [rsp+1h] [rbp-29h] BYREF
_BYTE v14[40]; // [rsp+2h] [rbp-28h] BYREF
v13 = HIBYTE(v1);
v2 = my_once_alloc(512LL, 16LL);
a1[16] = v2;
if ( !v2 )
return 1LL;
v3 = v2;
v4 = v2 + 256;
a1[17] = v2 + 256;
for ( i = 0LL; i != 256; ++i )
{
v6 = *(_BYTE *)(a1[8] + i + 1);
if ( (v6 & 3) != 0 )
{
LABEL_4:
*(_BYTE *)(v3 + i) = 2;
continue;
}
if ( (v6 & 4) != 0 )
{
*(_BYTE *)(v3 + i) = 14;
}
else
{
v13 = i;
if ( (*(unsigned int ( **)(_QWORD *, char *, _BYTE *))(a1[23] + 192LL))(a1, &v13, v14) + 100 >= 0xFFFFFFFA )
goto LABEL_4;
if ( (*(_BYTE *)(a1[8] + i + 1) & 8) != 0 )
*(_BYTE *)(v3 + i) = 26;
else
*(_BYTE *)(v3 + i) = 1;
}
}
*(_WORD *)(v3 + 95) = 6914;
*(_BYTE *)(v3 + 62) = 8;
*(_BYTE *)(v3 + 124) = 17;
*(_WORD *)(v3 + 38) = 2577;
*(_DWORD *)(v3 + 58) = 134813207;
*(_BYTE *)v3 = 18;
*(_BYTE *)(v3 + 92) = 19;
*(_BYTE *)(v3 + 42) = 21;
*(_DWORD *)(v3 + 33) = 34283784;
*(_DWORD *)(v3 + 44) = 336601636;
*(_WORD *)(v3 + 63) = 6179;
v7 = -256LL;
si128 = _mm_load_si128((const __m128i *)&xmmword_66E20);
v9 = _mm_load_si128((const __m128i *)&xmmword_66E30);
v10 = _mm_load_si128((const __m128i *)&xmmword_66E40);
do
{
v11 = _mm_loadu_si128((const __m128i *)(v4 + v7));
*(__m128i *)(v4 + v7 + 256) = _mm_and_si128(_mm_or_si128(_mm_cmpeq_epi8(v11, v9), _mm_cmpeq_epi8(v11, si128)), v10);
v7 += 16LL;
}
while ( v7 );
*(_BYTE *)(v3 + 88) = 30;
*(_BYTE *)(v3 + 120) = 30;
*(_BYTE *)(v3 + 66) = 31;
*(_BYTE *)(v3 + 98) = 31;
*(_BYTE *)(v3 + 78) = 32;
*(_BYTE *)(v3 + 110) = 32;
return 0LL;
}
|
init_state_maps:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV EDI,0x200
MOV ESI,0x10
CALL 0x00129f60
MOV qword ptr [R14 + 0x80],RAX
TEST RAX,RAX
JZ 0x0012f72a
MOV RBX,RAX
MOV R13,RAX
ADD R13,0x100
MOV qword ptr [R14 + 0x88],R13
XOR R15D,R15D
LEA R12,[RBP + -0x29]
LAB_0012f621:
MOV RAX,qword ptr [R14 + 0x40]
MOVZX EAX,byte ptr [RAX + R15*0x1 + 0x1]
TEST AL,0x3
JZ 0x0012f636
LAB_0012f62f:
MOV byte ptr [RBX + R15*0x1],0x2
JMP 0x0012f675
LAB_0012f636:
TEST AL,0x4
JNZ 0x0012f670
MOV byte ptr [RBP + -0x29],R15B
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,R12
LEA RDX,[RBP + -0x28]
CALL qword ptr [RAX + 0xc0]
ADD EAX,0x64
CMP EAX,-0x6
JNC 0x0012f62f
MOV RAX,qword ptr [R14 + 0x40]
TEST byte ptr [RAX + R15*0x1 + 0x1],0x8
JNZ 0x0012f683
MOV byte ptr [RBX + R15*0x1],0x1
JMP 0x0012f675
LAB_0012f670:
MOV byte ptr [RBX + R15*0x1],0xe
LAB_0012f675:
INC R15
CMP R15,0x100
JNZ 0x0012f621
JMP 0x0012f68a
LAB_0012f683:
MOV byte ptr [RBX + R15*0x1],0x1a
JMP 0x0012f675
LAB_0012f68a:
MOV word ptr [RBX + 0x5f],0x1b02
MOV byte ptr [RBX + 0x3e],0x8
MOV byte ptr [RBX + 0x7c],0x11
MOV word ptr [RBX + 0x26],0xa11
MOV dword ptr [RBX + 0x3a],0x8091617
MOV byte ptr [RBX],0x12
MOV byte ptr [RBX + 0x5c],0x13
MOV byte ptr [RBX + 0x2a],0x15
MOV dword ptr [RBX + 0x21],0x20b2108
MOV dword ptr [RBX + 0x2c],0x14102224
MOV word ptr [RBX + 0x3f],0x1823
MOV RAX,-0x100
MOVDQA XMM0,xmmword ptr [0x00166e20]
MOVDQA XMM1,xmmword ptr [0x00166e30]
MOVDQA XMM2,xmmword ptr [0x00166e40]
LAB_0012f6e3:
MOVDQU XMM3,xmmword ptr [R13 + RAX*0x1]
MOVDQA XMM4,XMM3
PCMPEQB XMM4,XMM0
PCMPEQB XMM3,XMM1
POR XMM3,XMM4
PAND XMM3,XMM2
MOVDQU xmmword ptr [R13 + RAX*0x1 + 0x100],XMM3
ADD RAX,0x10
JNZ 0x0012f6e3
MOV AL,0x1e
MOV byte ptr [RBX + 0x58],AL
MOV byte ptr [RBX + 0x78],AL
MOV AL,0x1f
MOV byte ptr [RBX + 0x42],AL
MOV byte ptr [RBX + 0x62],AL
MOV AL,0x20
MOV byte ptr [RBX + 0x4e],AL
MOV byte ptr [RBX + 0x6e],AL
XOR EAX,EAX
JMP 0x0012f72c
LAB_0012f72a:
MOV AL,0x1
LAB_0012f72c:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 init_state_maps(long param_1)
{
char *pcVar1;
byte *pbVar2;
byte bVar3;
char cVar4;
char cVar5;
char cVar6;
char cVar7;
char cVar8;
char cVar9;
char cVar10;
char cVar11;
char cVar12;
char cVar13;
char cVar14;
char cVar15;
char cVar16;
char cVar17;
char cVar18;
char cVar19;
char cVar20;
char cVar21;
char cVar22;
char cVar23;
char cVar24;
char cVar25;
char cVar26;
char cVar27;
char cVar28;
char cVar29;
char cVar30;
char cVar31;
char cVar32;
char cVar33;
char cVar34;
char cVar35;
char cVar36;
char cVar37;
char cVar38;
char cVar39;
char cVar40;
char cVar41;
char cVar42;
char cVar43;
char cVar44;
char cVar45;
char cVar46;
char cVar47;
char cVar48;
char cVar49;
char cVar50;
byte bVar51;
byte bVar52;
byte bVar53;
byte bVar54;
byte bVar55;
byte bVar56;
byte bVar57;
byte bVar58;
byte bVar59;
byte bVar60;
byte bVar61;
byte bVar62;
byte bVar63;
byte bVar64;
byte bVar65;
int iVar66;
int8 in_RAX;
int1 *puVar67;
int8 uVar68;
long lVar69;
int8 uStack_38;
uStack_38 = in_RAX;
puVar67 = (int1 *)my_once_alloc(0x200,0x10);
*(int1 **)(param_1 + 0x80) = puVar67;
if (puVar67 == (int1 *)0x0) {
uVar68 = 1;
}
else {
*(int1 **)(param_1 + 0x88) = puVar67 + 0x100;
lVar69 = 0;
do {
bVar3 = *(byte *)(*(long *)(param_1 + 0x40) + 1 + lVar69);
if ((bVar3 & 3) == 0) {
if ((bVar3 & 4) == 0) {
uStack_38 = CONCAT17((char)lVar69,(int7)uStack_38);
iVar66 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,(long)&uStack_38 + 7,&stack0xffffffffffffffd0);
if (0xfffffff9 < iVar66 + 100U) goto LAB_0012f62f;
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + lVar69) & 8) == 0) {
puVar67[lVar69] = 1;
}
else {
puVar67[lVar69] = 0x1a;
}
}
else {
puVar67[lVar69] = 0xe;
}
}
else {
LAB_0012f62f:
puVar67[lVar69] = 2;
}
lVar69 = lVar69 + 1;
} while (lVar69 != 0x100);
*(int2 *)(puVar67 + 0x5f) = 0x1b02;
puVar67[0x3e] = 8;
puVar67[0x7c] = 0x11;
*(int2 *)(puVar67 + 0x26) = 0xa11;
*(int4 *)(puVar67 + 0x3a) = 0x8091617;
*puVar67 = 0x12;
puVar67[0x5c] = 0x13;
puVar67[0x2a] = 0x15;
*(int4 *)(puVar67 + 0x21) = 0x20b2108;
*(int4 *)(puVar67 + 0x2c) = 0x14102224;
*(int2 *)(puVar67 + 0x3f) = 0x1823;
bVar65 = UNK_00166e4f;
bVar64 = UNK_00166e4e;
bVar63 = UNK_00166e4d;
bVar62 = UNK_00166e4c;
bVar61 = UNK_00166e4b;
bVar60 = UNK_00166e4a;
bVar59 = UNK_00166e49;
bVar58 = UNK_00166e48;
bVar57 = UNK_00166e47;
bVar56 = UNK_00166e46;
bVar55 = UNK_00166e45;
bVar54 = UNK_00166e44;
bVar53 = UNK_00166e43;
bVar52 = UNK_00166e42;
bVar51 = UNK_00166e41;
bVar3 = DAT_00166e40;
cVar50 = UNK_00166e3f;
cVar49 = UNK_00166e3e;
cVar48 = UNK_00166e3d;
cVar47 = UNK_00166e3c;
cVar46 = UNK_00166e3b;
cVar45 = UNK_00166e3a;
cVar44 = UNK_00166e39;
cVar43 = UNK_00166e38;
cVar42 = UNK_00166e37;
cVar41 = UNK_00166e36;
cVar40 = UNK_00166e35;
cVar39 = UNK_00166e34;
cVar38 = UNK_00166e33;
cVar37 = UNK_00166e32;
cVar36 = UNK_00166e31;
cVar35 = DAT_00166e30;
cVar34 = UNK_00166e2f;
cVar33 = UNK_00166e2e;
cVar32 = UNK_00166e2d;
cVar31 = UNK_00166e2c;
cVar30 = UNK_00166e2b;
cVar29 = UNK_00166e2a;
cVar28 = UNK_00166e29;
cVar27 = UNK_00166e28;
cVar26 = UNK_00166e27;
cVar25 = UNK_00166e26;
cVar24 = UNK_00166e25;
cVar23 = UNK_00166e24;
cVar22 = UNK_00166e23;
cVar21 = UNK_00166e22;
cVar20 = UNK_00166e21;
cVar19 = DAT_00166e20;
lVar69 = -0x100;
do {
pcVar1 = puVar67 + 0x100 + lVar69;
cVar4 = pcVar1[1];
cVar5 = pcVar1[2];
cVar6 = pcVar1[3];
cVar7 = pcVar1[4];
cVar8 = pcVar1[5];
cVar9 = pcVar1[6];
cVar10 = pcVar1[7];
cVar11 = pcVar1[8];
cVar12 = pcVar1[9];
cVar13 = pcVar1[10];
cVar14 = pcVar1[0xb];
cVar15 = pcVar1[0xc];
cVar16 = pcVar1[0xd];
cVar17 = pcVar1[0xe];
cVar18 = pcVar1[0xf];
pbVar2 = puVar67 + lVar69 + 0x200;
*pbVar2 = (-(*pcVar1 == cVar35) | -(*pcVar1 == cVar19)) & bVar3;
pbVar2[1] = (-(cVar4 == cVar36) | -(cVar4 == cVar20)) & bVar51;
pbVar2[2] = (-(cVar5 == cVar37) | -(cVar5 == cVar21)) & bVar52;
pbVar2[3] = (-(cVar6 == cVar38) | -(cVar6 == cVar22)) & bVar53;
pbVar2[4] = (-(cVar7 == cVar39) | -(cVar7 == cVar23)) & bVar54;
pbVar2[5] = (-(cVar8 == cVar40) | -(cVar8 == cVar24)) & bVar55;
pbVar2[6] = (-(cVar9 == cVar41) | -(cVar9 == cVar25)) & bVar56;
pbVar2[7] = (-(cVar10 == cVar42) | -(cVar10 == cVar26)) & bVar57;
pbVar2[8] = (-(cVar11 == cVar43) | -(cVar11 == cVar27)) & bVar58;
pbVar2[9] = (-(cVar12 == cVar44) | -(cVar12 == cVar28)) & bVar59;
pbVar2[10] = (-(cVar13 == cVar45) | -(cVar13 == cVar29)) & bVar60;
pbVar2[0xb] = (-(cVar14 == cVar46) | -(cVar14 == cVar30)) & bVar61;
pbVar2[0xc] = (-(cVar15 == cVar47) | -(cVar15 == cVar31)) & bVar62;
pbVar2[0xd] = (-(cVar16 == cVar48) | -(cVar16 == cVar32)) & bVar63;
pbVar2[0xe] = (-(cVar17 == cVar49) | -(cVar17 == cVar33)) & bVar64;
pbVar2[0xf] = (-(cVar18 == cVar50) | -(cVar18 == cVar34)) & bVar65;
lVar69 = lVar69 + 0x10;
} while (lVar69 != 0);
puVar67[0x58] = 0x1e;
puVar67[0x78] = 0x1e;
puVar67[0x42] = 0x1f;
puVar67[0x62] = 0x1f;
puVar67[0x4e] = 0x20;
puVar67[0x6e] = 0x20;
uVar68 = 0;
}
return uVar68;
}
|
|
8,589 |
mi_munmap_file
|
eloqsql/storage/myisam/mi_dynrec.c
|
int mi_munmap_file(MI_INFO *info)
{
int ret;
DBUG_ENTER("mi_unmap_file");
if ((ret= my_munmap((void*) info->s->file_map, info->s->mmaped_length)))
DBUG_RETURN(ret);
info->s->file_read= mi_nommap_pread;
info->s->file_write= mi_nommap_pwrite;
info->s->file_map= 0;
info->s->mmaped_length= 0;
DBUG_RETURN(0);
}
|
O0
|
c
|
mi_munmap_file:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x270(%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rsi
callq 0x2a4a0
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0xa739f
jmp 0xa7397
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xa73f4
movq -0x10(%rbp), %rax
movq (%rax), %rax
leaq 0x53(%rip), %rcx # 0xa7400
movq %rcx, 0x2e0(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
leaq 0x9e(%rip), %rcx # 0xa7460
movq %rcx, 0x2e8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, 0x270(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, 0x4d0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
mi_munmap_file:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+270h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+4D0h]
call _munmap
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_A739F
jmp short $+2
loc_A7397:
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
jmp short loc_A73F4
loc_A739F:
mov rax, [rbp+var_10]
mov rax, [rax]
lea rcx, mi_nommap_pread
mov [rax+2E0h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
lea rcx, mi_nommap_pwrite
mov [rax+2E8h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax+270h], 0
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax+4D0h], 0
mov [rbp+var_4], 0
loc_A73F4:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long mi_munmap_file(long long a1)
{
unsigned int v2; // [rsp+Ch] [rbp-14h]
v2 = munmap(*(_QWORD *)(*(_QWORD *)a1 + 624LL), *(_QWORD *)(*(_QWORD *)a1 + 1232LL));
if ( v2 )
{
return v2;
}
else
{
*(_QWORD *)(*(_QWORD *)a1 + 736LL) = mi_nommap_pread;
*(_QWORD *)(*(_QWORD *)a1 + 744LL) = mi_nommap_pwrite;
*(_QWORD *)(*(_QWORD *)a1 + 624LL) = 0LL;
*(_QWORD *)(*(_QWORD *)a1 + 1232LL) = 0LL;
return 0;
}
}
|
mi_munmap_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x270]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x4d0]
CALL 0x0012a4a0
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x001a739f
JMP 0x001a7397
LAB_001a7397:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001a73f4
LAB_001a739f:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
LEA RCX,[0x1a7400]
MOV qword ptr [RAX + 0x2e0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
LEA RCX,[0x1a7460]
MOV qword ptr [RAX + 0x2e8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x270],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x4d0],0x0
MOV dword ptr [RBP + -0x4],0x0
LAB_001a73f4:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int mi_munmap_file(long *param_1)
{
int local_c;
local_c = munmap(*(void **)(*param_1 + 0x270),*(size_t *)(*param_1 + 0x4d0));
if (local_c == 0) {
*(code **)(*param_1 + 0x2e0) = mi_nommap_pread;
*(code **)(*param_1 + 0x2e8) = mi_nommap_pwrite;
*(int8 *)(*param_1 + 0x270) = 0;
*(int8 *)(*param_1 + 0x4d0) = 0;
local_c = 0;
}
return local_c;
}
|
|
8,590 |
find_mid
|
eloqsql/storage/maria/ma_bitmap.c
|
static my_bool find_mid(MARIA_HA *info, ulong pages, uint position)
{
MARIA_FILE_BITMAP *bitmap= &info->s->bitmap;
MARIA_BITMAP_BLOCK *block;
block= dynamic_element(&info->bitmap_blocks, position, MARIA_BITMAP_BLOCK *);
while (!allocate_full_pages(bitmap, pages, block, 1))
{
if (move_to_next_bitmap(info, bitmap))
return 1;
}
return 0;
}
|
O0
|
c
|
find_mid:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x2c0(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl $0x1, %ecx
callq 0x607d0
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x610a2
jmp 0x610bb
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x60350
cmpb $0x0, %al
je 0x610b9
movb $0x1, -0x1(%rbp)
jmp 0x610bf
jmp 0x6107d
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
find_mid:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_10]
mov rax, [rax]
add rax, 0A10h
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rax, [rax+2C0h]
mov ecx, [rbp+var_1C]
imul rcx, 18h
add rax, rcx
mov [rbp+var_30], rax
loc_6107D:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
mov ecx, 1
call allocate_full_pages
cmp rax, 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_610A2
jmp short loc_610BB
loc_610A2:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
call move_to_next_bitmap
cmp al, 0
jz short loc_610B9
mov [rbp+var_1], 1
jmp short loc_610BF
loc_610B9:
jmp short loc_6107D
loc_610BB:
mov [rbp+var_1], 0
loc_610BF:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char find_mid(long long *a1, unsigned long long a2, unsigned int a3)
{
long long v4; // [rsp+0h] [rbp-30h]
long long v5; // [rsp+8h] [rbp-28h]
v5 = *a1 + 2576;
v4 = 24LL * a3 + a1[88];
while ( !allocate_full_pages(v5, a2, v4, 1) )
{
if ( move_to_next_bitmap(a1, v5) )
return 1;
}
return 0;
}
|
find_mid:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2c0]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_0016107d:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
MOV ECX,0x1
CALL 0x001607d0
CMP RAX,0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001610a2
JMP 0x001610bb
LAB_001610a2:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00160350
CMP AL,0x0
JZ 0x001610b9
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001610bf
LAB_001610b9:
JMP 0x0016107d
LAB_001610bb:
MOV byte ptr [RBP + -0x1],0x0
LAB_001610bf:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 find_mid(long *param_1,int8 param_2,uint param_3)
{
long lVar1;
long lVar2;
char cVar3;
long lVar4;
lVar1 = *param_1;
lVar2 = param_1[0x58];
do {
lVar4 = allocate_full_pages(lVar1 + 0xa10,param_2,lVar2 + (ulong)param_3 * 0x18,1);
if (lVar4 != 0) {
return 0;
}
cVar3 = move_to_next_bitmap(param_1,lVar1 + 0xa10);
} while (cVar3 == '\0');
return 1;
}
|
|
8,591 |
AttachAudioMixedProcessor
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
|
void AttachAudioMixedProcessor(AudioCallback process)
{
ma_mutex_lock(&AUDIO.System.lock);
rAudioProcessor *processor = (rAudioProcessor *)RL_CALLOC(1, sizeof(rAudioProcessor));
processor->process = process;
rAudioProcessor *last = AUDIO.mixedProcessor;
while (last && last->next)
{
last = last->next;
}
if (last)
{
processor->prev = last;
last->next = processor;
}
else AUDIO.mixedProcessor = processor;
ma_mutex_unlock(&AUDIO.System.lock);
}
|
O0
|
c
|
AttachAudioMixedProcessor:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x1989ed(%rip), %rdi # 0x216930
addq $0x12b8, %rdi # imm = 0x12B8
callq 0x1d970
movl $0x1, %edi
movl $0x18, %esi
callq 0xa340
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq 0x199ccc(%rip), %rax # 0x217c40
movq %rax, -0x18(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x19(%rbp)
je 0x7df93
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x7df9c
jmp 0x7dfaa
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x7df78
cmpq $0x0, -0x18(%rbp)
je 0x7dfcb
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x7dfd6
movq -0x10(%rbp), %rax
movq %rax, 0x199c6a(%rip) # 0x217c40
leaq 0x198953(%rip), %rdi # 0x216930
addq $0x12b8, %rdi # imm = 0x12B8
callq 0x1d9e0
addq $0x20, %rsp
popq %rbp
retq
nop
|
AttachAudioMixedProcessor:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
lea rdi, AUDIO
add rdi, 12B8h
call ma_mutex_lock
mov edi, 1
mov esi, 18h
call _calloc
mov [rbp+var_10], rax
mov rcx, [rbp+var_8]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, cs:qword_217C40
mov [rbp+var_18], rax
loc_7DF78:
xor eax, eax
cmp [rbp+var_18], 0
mov [rbp+var_19], al
jz short loc_7DF93
mov rax, [rbp+var_18]
cmp qword ptr [rax+8], 0
setnz al
mov [rbp+var_19], al
loc_7DF93:
mov al, [rbp+var_19]
test al, 1
jnz short loc_7DF9C
jmp short loc_7DFAA
loc_7DF9C:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
jmp short loc_7DF78
loc_7DFAA:
cmp [rbp+var_18], 0
jz short loc_7DFCB
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_18]
mov [rax+8], rcx
jmp short loc_7DFD6
loc_7DFCB:
mov rax, [rbp+var_10]
mov cs:qword_217C40, rax
loc_7DFD6:
lea rdi, AUDIO
add rdi, 12B8h
call ma_mutex_unlock
add rsp, 20h
pop rbp
retn
|
long long AttachAudioMixedProcessor(long long a1)
{
bool v2; // [rsp+7h] [rbp-19h]
long long i; // [rsp+8h] [rbp-18h]
_QWORD *v4; // [rsp+10h] [rbp-10h]
ma_mutex_lock((long long)&AUDIO + 4792);
v4 = (_QWORD *)calloc(1LL, 24LL);
*v4 = a1;
for ( i = qword_217C40; ; i = *(_QWORD *)(i + 8) )
{
v2 = 0;
if ( i )
v2 = *(_QWORD *)(i + 8) != 0LL;
if ( !v2 )
break;
}
if ( i )
{
v4[2] = i;
*(_QWORD *)(i + 8) = v4;
}
else
{
qword_217C40 = (long long)v4;
}
return ma_mutex_unlock((long long)&AUDIO + 4792);
}
|
AttachAudioMixedProcessor:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
LEA RDI,[0x316930]
ADD RDI,0x12b8
CALL 0x0011d970
MOV EDI,0x1
MOV ESI,0x18
CALL 0x0010a340
MOV qword ptr [RBP + -0x10],RAX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [0x00317c40]
MOV qword ptr [RBP + -0x18],RAX
LAB_0017df78:
XOR EAX,EAX
CMP qword ptr [RBP + -0x18],0x0
MOV byte ptr [RBP + -0x19],AL
JZ 0x0017df93
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x8],0x0
SETNZ AL
MOV byte ptr [RBP + -0x19],AL
LAB_0017df93:
MOV AL,byte ptr [RBP + -0x19]
TEST AL,0x1
JNZ 0x0017df9c
JMP 0x0017dfaa
LAB_0017df9c:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0017df78
LAB_0017dfaa:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0017dfcb
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x0017dfd6
LAB_0017dfcb:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [0x00317c40],RAX
LAB_0017dfd6:
LEA RDI,[0x316930]
ADD RDI,0x12b8
CALL 0x0011d9e0
ADD RSP,0x20
POP RBP
RET
|
void AttachAudioMixedProcessor(int8 param_1)
{
int8 *puVar1;
bool bVar2;
long local_20;
ma_mutex_lock(0x317be8);
puVar1 = (int8 *)calloc(1,0x18);
*puVar1 = param_1;
local_20 = AUDIO._4880_8_;
while( true ) {
bVar2 = false;
if (local_20 != 0) {
bVar2 = *(long *)(local_20 + 8) != 0;
}
if (!bVar2) break;
local_20 = *(long *)(local_20 + 8);
}
if (local_20 != 0) {
puVar1[2] = local_20;
*(int8 **)(local_20 + 8) = puVar1;
puVar1 = (int8 *)AUDIO._4880_8_;
}
AUDIO._4880_8_ = puVar1;
ma_mutex_unlock(0x317be8);
return;
}
|
|
8,592 |
AttachAudioMixedProcessor
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
|
void AttachAudioMixedProcessor(AudioCallback process)
{
ma_mutex_lock(&AUDIO.System.lock);
rAudioProcessor *processor = (rAudioProcessor *)RL_CALLOC(1, sizeof(rAudioProcessor));
processor->process = process;
rAudioProcessor *last = AUDIO.mixedProcessor;
while (last && last->next)
{
last = last->next;
}
if (last)
{
processor->prev = last;
last->next = processor;
}
else AUDIO.mixedProcessor = processor;
ma_mutex_unlock(&AUDIO.System.lock);
}
|
O2
|
c
|
AttachAudioMixedProcessor:
pushq %rbx
movq %rdi, %rbx
leaq 0xe7c63(%rip), %rdi # 0x124b48
callq 0x97c0
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x9320
movq %rbx, (%rax)
movq 0xe7ca1(%rip), %rsi # 0x124ba0
leaq 0xe7c9a(%rip), %rcx # 0x124ba0
testq %rsi, %rsi
je 0x3cf22
movq %rsi, %rdx
movq 0x8(%rsi), %rsi
testq %rsi, %rsi
jne 0x3cf06
movq %rdx, 0x10(%rax)
addq $0x8, %rdx
movq %rdx, %rcx
movq %rax, (%rcx)
leaq 0xe7c1c(%rip), %rdi # 0x124b48
popq %rbx
jmp 0x93b0
|
AttachAudioMixedProcessor:
push rbx
mov rbx, rdi
lea rdi, unk_124B48
call _pthread_mutex_lock
push 1
pop rdi
push 18h
pop rsi
call _calloc
mov [rax], rbx
mov rsi, cs:qword_124BA0
lea rcx, qword_124BA0
loc_3CF06:
test rsi, rsi
jz short loc_3CF22
mov rdx, rsi
mov rsi, [rsi+8]
test rsi, rsi
jnz short loc_3CF06
mov [rax+10h], rdx
add rdx, 8
mov rcx, rdx
loc_3CF22:
mov [rcx], rax
lea rdi, unk_124B48
pop rbx
jmp _pthread_mutex_unlock
|
long long AttachAudioMixedProcessor(long long a1)
{
_QWORD *v1; // rax
long long v2; // rsi
long long *v3; // rcx
long long v4; // rdx
pthread_mutex_lock(&unk_124B48);
v1 = (_QWORD *)calloc(1LL, 24LL);
*v1 = a1;
v2 = qword_124BA0;
v3 = &qword_124BA0;
while ( v2 )
{
v4 = v2;
v2 = *(_QWORD *)(v2 + 8);
if ( !v2 )
{
v1[2] = v4;
v3 = (long long *)(v4 + 8);
break;
}
}
*v3 = (long long)v1;
return pthread_mutex_unlock(&unk_124B48);
}
|
AttachAudioMixedProcessor:
PUSH RBX
MOV RBX,RDI
LEA RDI,[0x224b48]
CALL 0x001097c0
PUSH 0x1
POP RDI
PUSH 0x18
POP RSI
CALL 0x00109320
MOV qword ptr [RAX],RBX
MOV RSI,qword ptr [0x00224ba0]
LEA RCX,[0x224ba0]
LAB_0013cf06:
TEST RSI,RSI
JZ 0x0013cf22
MOV RDX,RSI
MOV RSI,qword ptr [RSI + 0x8]
TEST RSI,RSI
JNZ 0x0013cf06
MOV qword ptr [RAX + 0x10],RDX
ADD RDX,0x8
MOV RCX,RDX
LAB_0013cf22:
MOV qword ptr [RCX],RAX
LEA RDI,[0x224b48]
POP RBX
JMP 0x001093b0
|
void AttachAudioMixedProcessor(int8 param_1)
{
long lVar1;
int8 *puVar2;
int8 *puVar3;
long lVar4;
pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8));
puVar2 = (int8 *)calloc(1,0x18);
*puVar2 = param_1;
puVar3 = (int8 *)(AUDIO + 0x1310);
lVar1 = AUDIO._4880_8_;
do {
lVar4 = lVar1;
if (lVar4 == 0) goto LAB_0013cf22;
lVar1 = *(long *)(lVar4 + 8);
} while (*(long *)(lVar4 + 8) != 0);
puVar2[2] = lVar4;
puVar3 = (int8 *)(lVar4 + 8);
LAB_0013cf22:
*puVar3 = puVar2;
pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8));
return;
}
|
|
8,593 |
my_uca_init_one_contraction
|
eloqsql/strings/ctype-uca.c
|
static uint16 *
my_uca_init_one_contraction(MY_CONTRACTIONS *contractions,
my_wc_t *str, uint length, my_bool with_context)
{
int flag;
uint i;
my_uca_add_contraction_flag(contractions, str[0],
with_context ?
MY_UCA_PREVIOUS_CONTEXT_HEAD :
MY_UCA_CNT_HEAD);
for (i= 1, flag= MY_UCA_CNT_MID1; i < length - 1; i++, flag<<= 1)
my_uca_add_contraction_flag(contractions, str[i], flag);
my_uca_add_contraction_flag(contractions, str[i],
with_context ?
MY_UCA_PREVIOUS_CONTEXT_TAIL :
MY_UCA_CNT_TAIL);
/* Add new contraction to the contraction list */
return my_uca_add_contraction(contractions, str, length,
with_context)->weight;
}
|
O0
|
c
|
my_uca_init_one_contraction:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb %al, -0x15(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movsbl -0x15(%rbp), %ecx
movl $0x1, %edx
movl $0x40, %eax
cmpl $0x0, %ecx
cmovnel %eax, %edx
callq 0x510f0
movl $0x1, -0x20(%rbp)
movl $0x4, -0x1c(%rbp)
movl -0x20(%rbp), %eax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jae 0x50651
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
movl -0x1c(%rbp), %edx
callq 0x510f0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
jmp 0x5061a
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
movsbl -0x15(%rbp), %ecx
movl $0x2, %edx
movl $0x80, %eax
cmpl $0x0, %ecx
cmovnel %eax, %edx
callq 0x510f0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
movsbl -0x15(%rbp), %ecx
callq 0x51120
addq $0x30, %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
my_uca_init_one_contraction:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, cl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_15], al
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
mov rsi, [rax]
movsx ecx, [rbp+var_15]
mov edx, 1
mov eax, 40h ; '@'
cmp ecx, 0
cmovnz edx, eax
call my_uca_add_contraction_flag
mov [rbp+var_20], 1
mov [rbp+var_1C], 4
loc_5061A:
mov eax, [rbp+var_20]
mov ecx, [rbp+var_14]
sub ecx, 1
cmp eax, ecx
jnb short loc_50651
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_20]
mov rsi, [rax+rcx*8]
mov edx, [rbp+var_1C]
call my_uca_add_contraction_flag
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
mov eax, [rbp+var_1C]
shl eax, 1
mov [rbp+var_1C], eax
jmp short loc_5061A
loc_50651:
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_20]
mov rsi, [rax+rcx*8]
movsx ecx, [rbp+var_15]
mov edx, 2
mov eax, 80h
cmp ecx, 0
cmovnz edx, eax
call my_uca_add_contraction_flag
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov eax, [rbp+var_14]
mov edx, eax
movsx ecx, [rbp+var_15]
call my_uca_add_contraction
add rax, 30h ; '0'
add rsp, 20h
pop rbp
retn
|
long long my_uca_init_one_contraction(long long a1, long long *a2, unsigned int a3, char a4)
{
long long v4; // rsi
long long v5; // rdx
long long v6; // rdx
unsigned int v8; // [rsp+0h] [rbp-20h]
unsigned int v9; // [rsp+4h] [rbp-1Ch]
v4 = *a2;
v5 = 1LL;
if ( a4 )
v5 = 64LL;
my_uca_add_contraction_flag(a1, v4, v5);
v8 = 1;
v9 = 4;
while ( v8 < a3 - 1 )
{
my_uca_add_contraction_flag(a1, a2[v8++], v9);
v9 *= 2;
}
v6 = 2LL;
if ( a4 )
v6 = 128LL;
my_uca_add_contraction_flag(a1, a2[v8], v6);
return my_uca_add_contraction(a1, a2, a3, (unsigned int)a4) + 48;
}
|
my_uca_init_one_contraction:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,CL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV byte ptr [RBP + -0x15],AL
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOVSX ECX,byte ptr [RBP + -0x15]
MOV EDX,0x1
MOV EAX,0x40
CMP ECX,0x0
CMOVNZ EDX,EAX
CALL 0x001510f0
MOV dword ptr [RBP + -0x20],0x1
MOV dword ptr [RBP + -0x1c],0x4
LAB_0015061a:
MOV EAX,dword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
SUB ECX,0x1
CMP EAX,ECX
JNC 0x00150651
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV EDX,dword ptr [RBP + -0x1c]
CALL 0x001510f0
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x1c]
SHL EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0015061a
LAB_00150651:
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX + RCX*0x8]
MOVSX ECX,byte ptr [RBP + -0x15]
MOV EDX,0x2
MOV EAX,0x80
CMP ECX,0x0
CMOVNZ EDX,EAX
CALL 0x001510f0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
MOVSX ECX,byte ptr [RBP + -0x15]
CALL 0x00151120
ADD RAX,0x30
ADD RSP,0x20
POP RBP
RET
|
long my_uca_init_one_contraction(int8 param_1,int8 *param_2,int param_3,char param_4)
{
long lVar1;
int8 uVar2;
uint local_28;
int local_24;
uVar2 = 1;
if (param_4 != '\0') {
uVar2 = 0x40;
}
my_uca_add_contraction_flag(param_1,*param_2,uVar2);
local_24 = 4;
for (local_28 = 1; local_28 < param_3 - 1U; local_28 = local_28 + 1) {
my_uca_add_contraction_flag(param_1,param_2[local_28],local_24);
local_24 = local_24 << 1;
}
uVar2 = 2;
if (param_4 != '\0') {
uVar2 = 0x80;
}
my_uca_add_contraction_flag(param_1,param_2[local_28],uVar2);
lVar1 = my_uca_add_contraction(param_1,param_2,param_3,(int)param_4);
return lVar1 + 0x30;
}
|
|
8,594 |
mysql_stmt_store_result_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_stmt_store_result_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_store_result,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
}
|
O3
|
c
|
mysql_stmt_store_result_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x23f72
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_stmt_store_result_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_store_result
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
|
long long mysql_stmt_store_result_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_store_result(v1);
v2[2] = result;
*v2 = 0;
return result;
}
|
mysql_stmt_store_result_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x00123f72
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_store_result_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_store_result();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
|
|
8,595 |
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);
}
}
|
O2
|
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 %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x44dcb
testq %rax, %rax
je 0x44e1c
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x44dad
cmpl $0x1, %eax
jne 0x44db7
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x44dbf
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x44dbf
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x20390
movq %rax, %rbx
leaq 0x57651(%rip), %rsi # 0x9c42e
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x262e2
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x44e62
xorl %ebp, %ebp
leaq 0x9b5d3(%rip), %rsi # 0xe03e0
leaq 0x21ce(%rip), %rdx # 0x46fe2
movq %rbx, %rdi
callq 0x20b30
leaq 0x5d338(%rip), %rdi # 0xa215b
leaq 0x55004(%rip), %rsi # 0x99e2e
leaq 0x5762e(%rip), %rcx # 0x9c45f
movl $0x3422, %edx # imm = 0x3422
callq 0x204a0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x20d78
testb %bpl, %bpl
jne 0x44e52
jmp 0x44e5a
movq %rax, %r14
movq %rbx, %rdi
callq 0x20520
movq %r14, %rdi
callq 0x20b90
|
_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 r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_44DCB
test rax, rax
jz loc_44E1C
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_44DAD
cmp eax, 1
jnz short loc_44DB7
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_44DBF
loc_44DAD:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_44DBF
loc_44DB7:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_44DBF:
setz al
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_44DCB:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdi, [rsp+48h+var_38]
lea rdx, [rsp+48h+var_39]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_38]
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_44E1C:
lea rdi, aAnchorMObjectN+7; "m_object != nullptr"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolNlohmannDe_4; "bool nlohmann::detail::iter_impl<nlohma"...
mov edx, 3422h
call ___assert_fail
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_44E52
jmp short loc_44E5A
mov r14, rax
loc_44E52:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_44E5A:
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 R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x00144dcb
TEST RAX,RAX
JZ 0x00144e1c
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x00144dad
CMP EAX,0x1
JNZ 0x00144db7
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x00144dbf
LAB_00144dad:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x00144dbf
LAB_00144db7:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_00144dbf:
SETZ AL
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00144dcb:
PUSH 0x20
POP RDI
CALL 0x00120390
MOV RBX,RAX
LAB_00144dd6:
LEA RSI,[0x19c42e]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x001262e2
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_00144df2:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x00144e62
XOR EBP,EBP
LEA RSI,[0x1e03e0]
LEA RDX,[0x146fe2]
MOV RDI,RBX
CALL 0x00120b30
LAB_00144e1c:
LEA RDI,[0x1a215b]
LEA RSI,[0x199e2e]
LEA RCX,[0x19c45f]
MOV EDX,0x3422
CALL 0x001204a0
|
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;
allocator local_39;
string local_38 [32];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
/* try { // try from 00144dd6 to 00144deb has its CatchHandler @ 00144e4f */
std::__cxx11::string::string<std::allocator<char>>
(local_38,"cannot compare iterators of different containers",&local_39);
/* try { // try from 00144df2 to 00144e1b has its CatchHandler @ 00144e3b */
_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_38,*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 */
__assert_fail("m_object != nullptr",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x3422
,
"bool nlohmann::detail::iter_impl<nlohmann::basic_json<nlohmann::ordered_map>>::operator==(const IterImpl &) const [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, IterImpl = nlohmann::detail::iter_impl<nlohmann::basic_json<nlohmann::ordered_map>>]"
);
}
|
||
8,596 |
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 0x4e31b
testq %rax, %rax
je 0x4e379
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x4e2fb
cmpl $0x1, %eax
jne 0x4e305
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x4e30d
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x4e30d
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 0x18360
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x6af6e(%rip), %rsi # 0xb92a6
leaq 0x6af97(%rip), %rdx # 0xb92d6
leaq 0x8(%rsp), %rdi
callq 0x590a2
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x4e3cc
xorl %ebp, %ebp
leaq 0xa0076(%rip), %rsi # 0xee3e0
leaq -0x1fc1(%rip), %rdx # 0x4c3b0
movq %rbx, %rdi
callq 0x18b30
leaq 0x6ea02(%rip), %rdi # 0xbcd82
leaq 0x6891f(%rip), %rsi # 0xb6ca6
leaq 0x6c53f(%rip), %rcx # 0xba8cd
movl $0x3422, %edx # imm = 0x3422
callq 0x18470
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4e3b2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
testb %bpl, %bpl
jne 0x4e3bc
jmp 0x4e3c4
movq %rax, %r14
movq %rbx, %rdi
callq 0x18500
movq %r14, %rdi
callq 0x18b90
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_:
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_4E31B
test rax, rax
jz loc_4E379
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_4E2FB
cmp eax, 1
jnz short loc_4E305
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_4E30D
loc_4E2FB:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_4E30D
loc_4E305:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_4E30D:
setz al
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4E31B:
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_iterator6createIPKNS0_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_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_4E379:
lea rdi, aAnchorMObjectN+7; "m_object != nullptr"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolNlohmannDe_8; "bool nlohmann::detail::iter_impl<const "...
mov edx, 3422h
call ___assert_fail
mov r14, rax
mov rdi, [rsp+48h+var_40]; void *
cmp rdi, r15
jz short loc_4E3B2
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4E3B2:
test bpl, bpl
jnz short loc_4E3BC
jmp short loc_4E3C4
mov r14, rax
loc_4E3BC:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_4E3C4:
mov rdi, r14
call __Unwind_Resume
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_:
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 0x0014e31b
TEST RAX,RAX
JZ 0x0014e379
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x0014e2fb
CMP EAX,0x1
JNZ 0x0014e305
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x0014e30d
LAB_0014e2fb:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x0014e30d
LAB_0014e305:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_0014e30d:
SETZ AL
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014e31b:
MOV EDI,0x20
CALL 0x00118360
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0014e331:
LEA RSI,[0x1b92a6]
LEA RDX,[0x1b92d6]
LEA RDI,[RSP + 0x8]
CALL 0x001590a2
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0014e34f:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x0014e3cc
XOR EBP,EBP
LEA RSI,[0x1ee3e0]
LEA RDX,[0x14c3b0]
MOV RDI,RBX
CALL 0x00118b30
LAB_0014e379:
LEA RDI,[0x1bcd82]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1ba8cd]
MOV EDX,0x3422
CALL 0x00118470
|
int8
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(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 0014e331 to 0014e348 has its CatchHandler @ 0014e3b9 */
std::__cxx11::string::_M_construct<char_const*>
(local_40,"cannot compare iterators of different containers","");
/* try { // try from 0014e34f to 0014e378 has its CatchHandler @ 0014e398 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(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 */
__assert_fail("m_object != nullptr",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x3422
,
"bool nlohmann::detail::iter_impl<const nlohmann::basic_json<nlohmann::ordered_map>>::operator==(const IterImpl &) const [BasicJsonType = const nlohmann::basic_json<nlohmann::ordered_map>, IterImpl = nlohmann::detail::iter_impl<const nlohmann::basic_json<nlohmann::ordered_map>>]"
);
}
|
||
8,597 |
testing::internal::FilePath::CalculateRootLength() const
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc
|
size_t FilePath::CalculateRootLength() const {
const auto& path = pathname_;
auto s = path.begin();
auto end = path.end();
#ifdef GTEST_OS_WINDOWS
if (end - s >= 2 && s[1] == ':' && (end - s == 2 || IsPathSeparator(s[2])) &&
(('A' <= s[0] && s[0] <= 'Z') || ('a' <= s[0] && s[0] <= 'z'))) {
// A typical absolute path like "C:\Windows" or "D:"
s += 2;
if (s != end) {
++s;
}
} else if (end - s >= 3 && IsPathSeparator(*s) && IsPathSeparator(*(s + 1)) &&
!IsPathSeparator(*(s + 2))) {
// Move past the "\\" prefix in a UNC path like "\\Server\Share\Folder"
s += 2;
// Skip 2 components and their following separators ("Server\" and "Share\")
for (int i = 0; i < 2; ++i) {
while (s != end) {
bool stop = IsPathSeparator(*s);
++s;
if (stop) {
break;
}
}
}
} else if (s != end && IsPathSeparator(*s)) {
// A drive-rooted path like "\Windows"
++s;
}
#else
if (s != end && IsPathSeparator(*s)) {
++s;
}
#endif
return static_cast<size_t>(s - path.begin());
}
|
O0
|
cpp
|
testing::internal::FilePath::CalculateRootLength() const:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0x3b6a0
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rdi
callq 0x3b600
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3b550
xorb $-0x1, %al
testb $0x1, %al
jne 0xb68e8
jmp 0xb690a
leaq 0x10(%rsp), %rdi
callq 0x3b590
movsbl (%rax), %edi
callq 0xb6930
testb $0x1, %al
jne 0xb6900
jmp 0xb690a
leaq 0x10(%rsp), %rdi
callq 0x3b5a0
movq 0x18(%rsp), %rdi
callq 0x3b6a0
movq %rax, (%rsp)
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0xe3410
addq $0x28, %rsp
retq
nopw (%rax,%rax)
|
_ZNK7testing8internal8FilePath19CalculateRootLengthEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_10], rax
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov [rsp+28h+var_18], rax
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void)
mov qword ptr [rsp+28h+var_20], rax
lea rdi, [rsp+28h+var_18]
lea rsi, [rsp+28h+var_20]; char
call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
xor al, 0FFh
test al, 1
jnz short loc_B68E8
jmp short loc_B690A
loc_B68E8:
lea rdi, [rsp+28h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx edi, byte ptr [rax]; this
call _ZN7testing8internalL15IsPathSeparatorEc; testing::internal::IsPathSeparator(char)
test al, 1
jnz short loc_B6900
jmp short loc_B690A
loc_B6900:
lea rdi, [rsp+28h+var_18]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
loc_B690A:
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov [rsp+28h+var_28], rax
lea rdi, [rsp+28h+var_18]
mov rsi, rsp
call _ZN9__gnu_cxxmiIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSC_SF_; __gnu_cxx::operator-<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
add rsp, 28h
retn
|
long long testing::internal::FilePath::CalculateRootLength(testing::internal::FilePath *this)
{
char *v1; // rax
long long v3; // [rsp+0h] [rbp-28h] BYREF
char v4[8]; // [rsp+8h] [rbp-20h] BYREF
long long v5; // [rsp+10h] [rbp-18h] BYREF
testing::internal::FilePath *v6; // [rsp+18h] [rbp-10h]
testing::internal::FilePath *v7; // [rsp+20h] [rbp-8h]
v7 = this;
v6 = this;
v5 = std::string::begin((long long)this);
*(_QWORD *)v4 = std::string::end((long long)this);
if ( !__gnu_cxx::operator==<char const*,std::string>((long long)&v5, (long long)v4) )
{
v1 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*((long long)&v5);
if ( (testing::internal::IsPathSeparator((testing::internal *)(unsigned int)*v1, (char)v4) & 1) != 0 )
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++(&v5);
}
v3 = std::string::begin((long long)v6);
return __gnu_cxx::operator-<char const*,std::string>(&v5, &v3);
}
|
CalculateRootLength:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0013b6a0
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0013b600
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x8]
CALL 0x0013b550
XOR AL,0xff
TEST AL,0x1
JNZ 0x001b68e8
JMP 0x001b690a
LAB_001b68e8:
LEA RDI,[RSP + 0x10]
CALL 0x0013b590
MOVSX EDI,byte ptr [RAX]
CALL 0x001b6930
TEST AL,0x1
JNZ 0x001b6900
JMP 0x001b690a
LAB_001b6900:
LEA RDI,[RSP + 0x10]
CALL 0x0013b5a0
LAB_001b690a:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0013b6a0
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
CALL 0x001e3410
ADD RSP,0x28
RET
|
/* testing::internal::FilePath::CalculateRootLength() const */
void __thiscall testing::internal::FilePath::CalculateRootLength(FilePath *this)
{
byte bVar1;
char *pcVar2;
ulong uVar3;
int8 local_28;
int8 local_20;
int8 local_18;
string *local_10;
FilePath *local_8;
local_10 = (string *)this;
local_8 = this;
local_18 = std::__cxx11::string::begin((string *)this);
local_20 = std::__cxx11::string::end(local_10);
bVar1 = _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
(&local_18,&local_20);
if (((bVar1 ^ 0xff) & 1) != 0) {
pcVar2 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_18);
uVar3 = IsPathSeparator(*pcVar2);
if ((uVar3 & 1) != 0) {
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_18);
}
}
local_28 = std::__cxx11::string::begin(local_10);
__gnu_cxx::operator-((__normal_iterator *)&local_18,(__normal_iterator *)&local_28);
return;
}
|
|
8,598 |
MyCTX_gcm::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*)
|
eloqsql/mysys_ssl/my_crypt.cc
|
int update(const uchar *src, uint slen, uchar *dst, uint *dlen)
{
/*
note that this GCM class cannot do streaming decryption, because
it needs the tag (which is located at the end of encrypted data)
before decrypting the data. it can encrypt data piecewise, like, first
half, then the second half, but it must decrypt all at once
*/
if (!EVP_CIPHER_CTX_encrypting(ctx))
{
/* encrypted string must contain authenticaton tag (see MDEV-11174) */
if (slen < MY_AES_BLOCK_SIZE)
return MY_AES_BAD_DATA;
slen-= MY_AES_BLOCK_SIZE;
if(!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, MY_AES_BLOCK_SIZE,
(void*)(src + slen)))
return MY_AES_OPENSSL_ERROR;
}
int unused;
if (aadlen && !EVP_CipherUpdate(ctx, NULL, &unused, aad, aadlen))
return MY_AES_OPENSSL_ERROR;
aadlen= 0;
return MyCTX::update(src, slen, dst, dlen);
}
|
O3
|
cpp
|
MyCTX_gcm::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r12
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r13
movq 0xc8(%rdi), %rdi
callq 0x297e0
testl %eax, %eax
je 0x946ce
movl 0xd8(%r13), %r8d
testl %r8d, %r8d
je 0x946a0
movq 0xc8(%r13), %rdi
movq 0xd0(%r13), %rcx
leaq -0x2c(%rbp), %rdx
xorl %esi, %esi
callq 0x29800
testl %eax, %eax
je 0x946ff
movq %rbx, %rdx
xorl %ebx, %ebx
movl %ebx, 0xd8(%r13)
movq 0xc8(%r13), %rdi
movq %r12, %rsi
movq %r15, %rcx
movl %r14d, %r8d
callq 0x29800
cmpl $0x1, %eax
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmovel %ebx, %eax
jmp 0x94704
movl $0xffffff9c, %eax # imm = 0xFFFFFF9C
cmpl $0x10, %r14d
jb 0x94704
addl $-0x10, %r14d
movq 0xc8(%r13), %rdi
leaq (%r15,%r14), %rcx
movl $0x11, %esi
movl $0x10, %edx
callq 0x29280
testl %eax, %eax
jne 0x94677
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN9MyCTX_gcm6updateEPKhjPhPj:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, r8
mov r12, rcx
mov r14d, edx
mov r15, rsi
mov r13, rdi
mov rdi, [rdi+0C8h]
call _EVP_CIPHER_CTX_is_encrypting
test eax, eax
jz short loc_946CE
loc_94677:
mov r8d, [r13+0D8h]
test r8d, r8d
jz short loc_946A0
mov rdi, [r13+0C8h]
mov rcx, [r13+0D0h]
lea rdx, [rbp+var_2C]
xor esi, esi
call _EVP_CipherUpdate
test eax, eax
jz short loc_946FF
loc_946A0:
mov rdx, rbx
xor ebx, ebx
mov [r13+0D8h], ebx
mov rdi, [r13+0C8h]
mov rsi, r12
mov rcx, r15
mov r8d, r14d
call _EVP_CipherUpdate
cmp eax, 1
mov eax, 0FFFFFF9Bh
cmovz eax, ebx
jmp short loc_94704
loc_946CE:
mov eax, 0FFFFFF9Ch
cmp r14d, 10h
jb short loc_94704
add r14d, 0FFFFFFF0h
mov rdi, [r13+0C8h]
lea rcx, [r15+r14]
mov esi, 11h
mov edx, 10h
call _EVP_CIPHER_CTX_ctrl
test eax, eax
jnz loc_94677
loc_946FF:
mov eax, 0FFFFFF9Bh
loc_94704:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long MyCTX_gcm::update(
MyCTX_gcm *this,
const unsigned __int8 *a2,
unsigned int a3,
unsigned __int8 *a4,
unsigned int *a5)
{
long long v5; // rax
bool v9; // zf
long long result; // rax
_DWORD v11[11]; // [rsp+0h] [rbp-2Ch] BYREF
v11[0] = HIDWORD(v5);
if ( !(unsigned int)EVP_CIPHER_CTX_is_encrypting(*((_QWORD *)this + 25)) )
{
result = 4294967196LL;
if ( a3 < 0x10 )
return result;
if ( !(unsigned int)EVP_CIPHER_CTX_ctrl(*((_QWORD *)this + 25), 17LL, 16LL, &a2[a3 - 16]) )
return 4294967195LL;
}
if ( *((_DWORD *)this + 54)
&& !(unsigned int)EVP_CipherUpdate(*((_QWORD *)this + 25), 0LL, v11, *((_QWORD *)this + 26)) )
{
return 4294967195LL;
}
*((_DWORD *)this + 54) = 0;
v9 = (unsigned int)EVP_CipherUpdate(*((_QWORD *)this + 25), a4, a5, a2) == 1;
result = 4294967195LL;
if ( v9 )
return 0LL;
return result;
}
|
update:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,R8
MOV R12,RCX
MOV R14D,EDX
MOV R15,RSI
MOV R13,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CALL 0x001297e0
TEST EAX,EAX
JZ 0x001946ce
LAB_00194677:
MOV R8D,dword ptr [R13 + 0xd8]
TEST R8D,R8D
JZ 0x001946a0
MOV RDI,qword ptr [R13 + 0xc8]
MOV RCX,qword ptr [R13 + 0xd0]
LEA RDX,[RBP + -0x2c]
XOR ESI,ESI
CALL 0x00129800
TEST EAX,EAX
JZ 0x001946ff
LAB_001946a0:
MOV RDX,RBX
XOR EBX,EBX
MOV dword ptr [R13 + 0xd8],EBX
MOV RDI,qword ptr [R13 + 0xc8]
MOV RSI,R12
MOV RCX,R15
MOV R8D,R14D
CALL 0x00129800
CMP EAX,0x1
MOV EAX,0xffffff9b
CMOVZ EAX,EBX
JMP 0x00194704
LAB_001946ce:
MOV EAX,0xffffff9c
CMP R14D,0x10
JC 0x00194704
ADD R14D,-0x10
MOV RDI,qword ptr [R13 + 0xc8]
LEA RCX,[R15 + R14*0x1]
MOV ESI,0x11
MOV EDX,0x10
CALL 0x00129280
TEST EAX,EAX
JNZ 0x00194677
LAB_001946ff:
MOV EAX,0xffffff9b
LAB_00194704:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* MyCTX_gcm::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*) */
int8 __thiscall
MyCTX_gcm::update(MyCTX_gcm *this,uchar *param_1,uint param_2,uchar *param_3,uint *param_4)
{
int iVar1;
int local_34;
iVar1 = EVP_CIPHER_CTX_is_encrypting(*(int8 *)(this + 200));
if (iVar1 == 0) {
if (param_2 < 0x10) {
return 0xffffff9c;
}
param_2 = param_2 - 0x10;
iVar1 = EVP_CIPHER_CTX_ctrl(*(EVP_CIPHER_CTX **)(this + 200),0x11,0x10,param_1 + param_2);
if (iVar1 == 0) {
return 0xffffff9b;
}
}
if ((*(int *)(this + 0xd8) != 0) &&
(iVar1 = EVP_CipherUpdate(*(EVP_CIPHER_CTX **)(this + 200),(uchar *)0x0,&local_34,
*(uchar **)(this + 0xd0),*(int *)(this + 0xd8)), iVar1 == 0)) {
return 0xffffff9b;
}
*(int4 *)(this + 0xd8) = 0;
iVar1 = EVP_CipherUpdate(*(EVP_CIPHER_CTX **)(this + 200),param_3,(int *)param_4,param_1,param_2);
if (iVar1 == 1) {
return 0;
}
return 0xffffff9b;
}
|
|
8,599 |
std::vector<int, std::allocator<int>> string_split<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
|
monkey531[P]llama/common/common.h
|
static std::vector<T> string_split(const std::string & str, char delim) {
static_assert(!std::is_same<T, std::string>::value, "Please use the specialized version for std::string");
std::vector<T> values;
std::istringstream str_stream(str);
std::string token;
while (std::getline(str_stream, token, delim)) {
T value;
std::istringstream token_stream(token);
token_stream >> value;
values.push_back(value);
}
return values;
}
|
O1
|
c
|
std::vector<int, std::allocator<int>> string_split<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp # imm = 0x328
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x28(%rsp), %rdi
movl $0x8, %edx
callq 0x1beb0
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
leaq 0x1a8(%rsp), %r13
leaq 0x4(%rsp), %rbp
movq 0xdc3dc(%rip), %r14 # 0x12ef58
movq %r15, %rdi
movq %r12, %rsi
movl $0x2c, %edx
callq 0x1c050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x52bf4
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x1beb0
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1b570
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x52bcf
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x52bda
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x71960
movq %r13, %rdi
movq %r14, %rsi
callq 0x1bc90
leaq 0x220(%rsp), %rdi
callq 0x1b2c0
jmp 0x52b7c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x52c10
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq 0xdc341(%rip), %rsi # 0x12ef58
leaq 0x28(%rsp), %rdi
callq 0x1bc90
leaq 0xa0(%rsp), %rdi
callq 0x1b2c0
movq %rbx, %rax
addq $0x328, %rsp # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x52cad
jmp 0x52c4a
movq %rax, %r14
jmp 0x52c73
movq %rax, %r14
movq 0xdc2ff(%rip), %rsi # 0x12ef58
leaq 0x1a8(%rsp), %rdi
callq 0x1bc90
leaq 0x220(%rsp), %rdi
callq 0x1b2c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x52c8f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq 0xdc2c2(%rip), %rsi # 0x12ef58
leaq 0x28(%rsp), %rdi
callq 0x1bc90
leaq 0xa0(%rsp), %rdi
callq 0x1b2c0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x52cc1
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1b8e0
movq %r14, %rdi
callq 0x1bf90
nop
|
_ZL12string_splitIiESt6vectorIT_SaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 328h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
lea rdi, [rsp+358h+var_330]
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
lea rax, [rsp+358h+var_340]
mov [rax-10h], rax
mov qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea r15, [rsp+358h+var_330]
lea r12, [rsp+358h+var_350]
lea r13, [rsp+358h+var_1B0]
lea rbp, [rsp+358h+var_354]
mov r14, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
loc_52B7C:
mov rdi, r15
mov rsi, r12
mov edx, 2Ch ; ','
call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char)
mov rcx, [rax]
mov rcx, [rcx-18h]
test byte ptr [rax+rcx+20h], 5
jnz short loc_52BF4
mov rdi, r13
mov rsi, r12
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
mov rdi, r13
mov rsi, rbp
call __ZNSirsERi; std::istream::operator>>(int &)
mov rsi, [rbx+8]
cmp rsi, [rbx+10h]
jz short loc_52BCF
mov eax, [rsp+358h+var_354]
mov [rsi], eax
add rsi, 4
mov [rbx+8], rsi
jmp short loc_52BDA
loc_52BCF:
mov rdi, rbx
mov rdx, rbp
call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&)
loc_52BDA:
mov rdi, r13
mov rsi, r14
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+358h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
jmp short loc_52B7C
loc_52BF4:
mov rdi, [rsp+358h+var_350]; void *
lea rax, [rsp+358h+var_340]
cmp rdi, rax
jz short loc_52C10
mov rsi, [rsp+358h+var_340]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_52C10:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+358h+var_330]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+358h+var_2B8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 328h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
jmp short loc_52CAD
jmp short $+2
loc_52C4A:
mov r14, rax
jmp short loc_52C73
mov r14, rax
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_1A0]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+arg_218]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_52C73:
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_52C8F
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_52C8F:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_20]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+arg_98]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_52CAD:
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_52CC1
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_52CC1:
mov rdi, r14
call __Unwind_Resume
|
long long string_split<int>(long long a1, long long a2)
{
_QWORD *v2; // rax
_DWORD *v3; // rsi
int v5; // [rsp+4h] [rbp-354h] BYREF
void *v6[2]; // [rsp+8h] [rbp-350h] BYREF
_QWORD v7[2]; // [rsp+18h] [rbp-340h] BYREF
_BYTE v8[120]; // [rsp+28h] [rbp-330h] BYREF
_BYTE v9[264]; // [rsp+A0h] [rbp-2B8h] BYREF
_BYTE v10[120]; // [rsp+1A8h] [rbp-1B0h] BYREF
_BYTE v11[312]; // [rsp+220h] [rbp-138h] BYREF
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
std::istringstream::basic_istringstream(v8, a2, 8LL);
v6[0] = v7;
v6[1] = 0LL;
LOBYTE(v7[0]) = 0;
while ( 1 )
{
v2 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v8, v6, 44LL);
if ( (*((_BYTE *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) & 5) != 0 )
break;
std::istringstream::basic_istringstream(v10, v6, 8LL);
std::istream::operator>>(v10, &v5);
v3 = *(_DWORD **)(a1 + 8);
if ( v3 == *(_DWORD **)(a1 + 16) )
{
std::vector<int>::_M_realloc_insert<int const&>(a1, v3, &v5);
}
else
{
*v3 = v5;
*(_QWORD *)(a1 + 8) = v3 + 1;
}
std::istringstream::~istringstream(v10, &`VTT for'std::istringstream);
std::ios_base::~ios_base((std::ios_base *)v11);
}
if ( v6[0] != v7 )
operator delete(v6[0], v7[0] + 1LL);
std::istringstream::~istringstream(v8, &`VTT for'std::istringstream);
std::ios_base::~ios_base((std::ios_base *)v9);
return a1;
}
|
string_split<int>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x328
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
LAB_00152b3b:
LEA RDI,[RSP + 0x28]
MOV EDX,0x8
CALL 0x0011beb0
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX + -0x10],RAX
MOV qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LEA R15,[RSP + 0x28]
LEA R12,[RSP + 0x8]
LEA R13,[RSP + 0x1a8]
LEA RBP,[RSP + 0x4]
MOV R14,qword ptr [0x0022ef58]
LAB_00152b7c:
MOV RDI,R15
MOV RSI,R12
MOV EDX,0x2c
CALL 0x0011c050
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JNZ 0x00152bf4
LAB_00152b9a:
MOV RDI,R13
MOV RSI,R12
MOV EDX,0x8
CALL 0x0011beb0
LAB_00152baa:
MOV RDI,R13
MOV RSI,RBP
CALL 0x0011b570
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,qword ptr [RBX + 0x10]
JZ 0x00152bcf
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSI],EAX
ADD RSI,0x4
MOV qword ptr [RBX + 0x8],RSI
JMP 0x00152bda
LAB_00152bcf:
MOV RDI,RBX
MOV RDX,RBP
CALL 0x00171960
LAB_00152bda:
MOV RDI,R13
MOV RSI,R14
CALL 0x0011bc90
LEA RDI,[RSP + 0x220]
CALL 0x0011b2c0
JMP 0x00152b7c
LAB_00152bf4:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x00152c10
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b8e0
LAB_00152c10:
MOV RSI,qword ptr [0x0022ef58]
LEA RDI,[RSP + 0x28]
CALL 0x0011bc90
LEA RDI,[RSP + 0xa0]
CALL 0x0011b2c0
MOV RAX,RBX
ADD RSP,0x328
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::vector<int, std::allocator<int> > string_split<int>(std::__cxx11::string const&, char) */
string * string_split<int>(string *param_1,char param_2)
{
int *piVar1;
istream *piVar2;
int7 in_register_00000031;
int local_354;
int1 *local_350;
int8 local_348;
int1 local_340;
int7 uStack_33f;
istringstream local_330 [120];
ios_base local_2b8 [264];
istream local_1b0 [120];
ios_base local_138 [264];
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
/* try { // try from 00152b3b to 00152b49 has its CatchHandler @ 00152c43 */
std::__cxx11::istringstream::istringstream(local_330,CONCAT71(in_register_00000031,param_2),8);
local_350 = &local_340;
local_348 = 0;
local_340 = 0;
while( true ) {
/* try { // try from 00152b7c to 00152b8b has its CatchHandler @ 00152c4a */
piVar2 = std::getline<char,std::char_traits<char>,std::allocator<char>>
((istream *)local_330,(string *)&local_350,',');
if (((byte)piVar2[*(long *)(*(long *)piVar2 + -0x18) + 0x20] & 5) != 0) break;
/* try { // try from 00152b9a to 00152ba9 has its CatchHandler @ 00152c48 */
std::__cxx11::istringstream::istringstream((istringstream *)local_1b0,(string *)&local_350,8);
/* try { // try from 00152baa to 00152bd9 has its CatchHandler @ 00152c4f */
std::istream::operator>>(local_1b0,&local_354);
piVar1 = *(int **)(param_1 + 8);
if (piVar1 == *(int **)(param_1 + 0x10)) {
std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&>
((vector<int,std::allocator<int>> *)param_1,piVar1,&local_354);
}
else {
*piVar1 = local_354;
*(int **)(param_1 + 8) = piVar1 + 1;
}
std::__cxx11::istringstream::~istringstream((istringstream *)local_1b0);
std::ios_base::~ios_base(local_138);
}
if (local_350 != &local_340) {
operator_delete(local_350,CONCAT71(uStack_33f,local_340) + 1);
}
std::__cxx11::istringstream::~istringstream(local_330);
std::ios_base::~ios_base(local_2b8);
return param_1;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.