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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
23,200 | downheap | eloqsql/mysys/queues.c | void _downheap(QUEUE *queue, uint idx)
{
uchar *element= queue->root[idx];
uint next_index,
elements= queue->elements,
half_queue= elements >> 1,
offset_to_key= queue->offset_to_key,
offset_to_queue_pos= queue->offset_to_queue_pos;
while (idx <= half_queue)
{
next_index= idx+idx;
if (next_index < elements &&
(queue->compare(queue->first_cmp_arg,
queue->root[next_index]+offset_to_key,
queue->root[next_index+1]+offset_to_key) *
queue->max_at_top) > 0)
next_index++;
if ((queue->compare(queue->first_cmp_arg,
queue->root[next_index]+offset_to_key,
element+offset_to_key) * queue->max_at_top) >= 0)
break;
queue->root[idx]= queue->root[next_index];
if (offset_to_queue_pos)
(*(uint*) (queue->root[idx] + offset_to_queue_pos-1))= idx;
idx= next_index;
}
queue->root[idx]=element;
if (offset_to_queue_pos)
(*(uint*) (element + offset_to_queue_pos-1))= idx;
} | O3 | c | downheap:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebx
movq (%rdi), %rax
movl %esi, %r13d
movq (%rax,%r13,8), %rcx
movl 0x10(%rdi), %edx
movl %edx, -0x30(%rbp)
shrl %edx
movl 0x1c(%rdi), %r15d
movl %edx, -0x2c(%rbp)
cmpl %esi, %edx
jb 0x72bc6
movq %rdi, %r14
movl 0x18(%rdi), %eax
movq %rcx, -0x40(%rbp)
movq %rax, -0x38(%rbp)
addq %rcx, %rax
movq %rax, -0x48(%rbp)
leal (%rbx,%rbx), %r12d
movq (%r14), %rax
cmpl -0x30(%rbp), %r12d
jae 0x72b69
movq 0x8(%r14), %rdi
movl %r12d, %ecx
movq (%rax,%rcx,8), %rsi
movq -0x38(%rbp), %rcx
addq %rcx, %rsi
movl %r12d, %r13d
orl $0x1, %r13d
movq (%rax,%r13,8), %rdx
addq %rcx, %rdx
callq *0x28(%r14)
imull 0x24(%r14), %eax
testl %eax, %eax
jg 0x72b63
movl %r12d, %r13d
movq (%r14), %rax
movl %r13d, %r12d
movq 0x8(%r14), %rdi
movl %r12d, %r13d
movq (%rax,%r13,8), %rsi
addq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq *0x28(%r14)
imull 0x24(%r14), %eax
testl %eax, %eax
jns 0x72bb6
movq (%r14), %rcx
movq (%rcx,%r13,8), %rdx
movl %ebx, %eax
movq %rdx, (%rcx,%rax,8)
testq %r15, %r15
je 0x72ba7
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
movl %ebx, -0x1(%rax,%r15)
movl %r12d, %ebx
cmpl -0x2c(%rbp), %r12d
jbe 0x72b26
jmp 0x72bbc
movl %ebx, %r13d
movl %ebx, %r12d
movq (%r14), %rax
movl %r12d, %ebx
movq -0x40(%rbp), %rcx
movq %rcx, (%rax,%r13,8)
testq %r15, %r15
je 0x72bd4
movl %ebx, -0x1(%rcx,%r15)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _downheap:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, esi
mov rax, [rdi]
mov r13d, esi
mov rcx, [rax+r13*8]
mov edx, [rdi+10h]
mov [rbp+var_30], edx
shr edx, 1
mov r15d, [rdi+1Ch]
mov [rbp+var_2C], edx
cmp edx, esi
jb loc_72BC6
mov r14, rdi
mov eax, [rdi+18h]
mov [rbp+var_40], rcx
mov [rbp+var_38], rax
add rax, rcx
mov [rbp+var_48], rax
loc_72B26:
lea r12d, [rbx+rbx]
mov rax, [r14]
cmp r12d, [rbp+var_30]
jnb short loc_72B69
mov rdi, [r14+8]
mov ecx, r12d
mov rsi, [rax+rcx*8]
mov rcx, [rbp+var_38]
add rsi, rcx
mov r13d, r12d
or r13d, 1
mov rdx, [rax+r13*8]
add rdx, rcx
call qword ptr [r14+28h]
imul eax, [r14+24h]
test eax, eax
jg short loc_72B63
mov r13d, r12d
loc_72B63:
mov rax, [r14]
mov r12d, r13d
loc_72B69:
mov rdi, [r14+8]
mov r13d, r12d
mov rsi, [rax+r13*8]
add rsi, [rbp+var_38]
mov rdx, [rbp+var_48]
call qword ptr [r14+28h]
imul eax, [r14+24h]
test eax, eax
jns short loc_72BB6
mov rcx, [r14]
mov rdx, [rcx+r13*8]
mov eax, ebx
mov [rcx+rax*8], rdx
test r15, r15
jz short loc_72BA7
mov rcx, [r14]
mov rax, [rcx+rax*8]
mov [rax+r15-1], ebx
loc_72BA7:
mov ebx, r12d
cmp r12d, [rbp+var_2C]
jbe loc_72B26
jmp short loc_72BBC
loc_72BB6:
mov r13d, ebx
mov r12d, ebx
loc_72BBC:
mov rax, [r14]
mov ebx, r12d
mov rcx, [rbp+var_40]
loc_72BC6:
mov [rax+r13*8], rcx
test r15, r15
jz short loc_72BD4
mov [rcx+r15-1], ebx
loc_72BD4:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long downheap(long long *a1, unsigned int a2)
{
unsigned int v2; // ebx
long long result; // rax
long long v4; // r13
long long v5; // rcx
long long v6; // r15
unsigned int v7; // r12d
long long v8; // rax
long long v9; // r13
long long v10; // [rsp+8h] [rbp-48h]
long long v11; // [rsp+10h] [rbp-40h]
long long v12; // [rsp+18h] [rbp-38h]
unsigned int v13; // [rsp+20h] [rbp-30h]
v2 = a2;
result = *a1;
v4 = a2;
v5 = *(_QWORD *)(*a1 + 8LL * a2);
v13 = *((_DWORD *)a1 + 4);
v6 = *((unsigned int *)a1 + 7);
if ( v13 >> 1 >= a2 )
{
v11 = *(_QWORD *)(*a1 + 8LL * a2);
v12 = *((unsigned int *)a1 + 6);
v10 = v5 + v12;
while ( 1 )
{
v7 = 2 * v2;
v8 = *a1;
if ( 2 * v2 < v13 )
{
v9 = v7 | 1;
if ( (int)(*((_DWORD *)a1 + 9)
* ((long long ( *)(long long, long long, long long))a1[5])(
a1[1],
v12 + *(_QWORD *)(v8 + 8LL * v7),
v12 + *(_QWORD *)(v8 + 8 * v9))) <= 0 )
LODWORD(v9) = 2 * v2;
v8 = *a1;
v7 = v9;
}
v4 = v7;
if ( (int)(*((_DWORD *)a1 + 9)
* ((long long ( *)(long long, long long, long long))a1[5])(
a1[1],
v12 + *(_QWORD *)(v8 + 8LL * v7),
v10)) >= 0 )
break;
*(_QWORD *)(*a1 + 8LL * v2) = *(_QWORD *)(*a1 + 8LL * v7);
if ( v6 )
*(_DWORD *)(*(_QWORD *)(*a1 + 8LL * v2) + v6 - 1) = v2;
v2 = v7;
if ( v7 > v13 >> 1 )
goto LABEL_13;
}
v4 = v2;
v7 = v2;
LABEL_13:
result = *a1;
v2 = v7;
v5 = v11;
}
*(_QWORD *)(result + 8 * v4) = v5;
if ( v6 )
*(_DWORD *)(v5 + v6 - 1) = v2;
return result;
}
| _downheap:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,ESI
MOV RAX,qword ptr [RDI]
MOV R13D,ESI
MOV RCX,qword ptr [RAX + R13*0x8]
MOV EDX,dword ptr [RDI + 0x10]
MOV dword ptr [RBP + -0x30],EDX
SHR EDX,0x1
MOV R15D,dword ptr [RDI + 0x1c]
MOV dword ptr [RBP + -0x2c],EDX
CMP EDX,ESI
JC 0x00172bc6
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x18]
MOV qword ptr [RBP + -0x40],RCX
MOV qword ptr [RBP + -0x38],RAX
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
LAB_00172b26:
LEA R12D,[RBX + RBX*0x1]
MOV RAX,qword ptr [R14]
CMP R12D,dword ptr [RBP + -0x30]
JNC 0x00172b69
MOV RDI,qword ptr [R14 + 0x8]
MOV ECX,R12D
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV RCX,qword ptr [RBP + -0x38]
ADD RSI,RCX
MOV R13D,R12D
OR R13D,0x1
MOV RDX,qword ptr [RAX + R13*0x8]
ADD RDX,RCX
CALL qword ptr [R14 + 0x28]
IMUL EAX,dword ptr [R14 + 0x24]
TEST EAX,EAX
JG 0x00172b63
MOV R13D,R12D
LAB_00172b63:
MOV RAX,qword ptr [R14]
MOV R12D,R13D
LAB_00172b69:
MOV RDI,qword ptr [R14 + 0x8]
MOV R13D,R12D
MOV RSI,qword ptr [RAX + R13*0x8]
ADD RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x48]
CALL qword ptr [R14 + 0x28]
IMUL EAX,dword ptr [R14 + 0x24]
TEST EAX,EAX
JNS 0x00172bb6
MOV RCX,qword ptr [R14]
MOV RDX,qword ptr [RCX + R13*0x8]
MOV EAX,EBX
MOV qword ptr [RCX + RAX*0x8],RDX
TEST R15,R15
JZ 0x00172ba7
MOV RCX,qword ptr [R14]
MOV RAX,qword ptr [RCX + RAX*0x8]
MOV dword ptr [RAX + R15*0x1 + -0x1],EBX
LAB_00172ba7:
MOV EBX,R12D
CMP R12D,dword ptr [RBP + -0x2c]
JBE 0x00172b26
JMP 0x00172bbc
LAB_00172bb6:
MOV R13D,EBX
MOV R12D,EBX
LAB_00172bbc:
MOV RAX,qword ptr [R14]
MOV EBX,R12D
MOV RCX,qword ptr [RBP + -0x40]
LAB_00172bc6:
MOV qword ptr [RAX + R13*0x8],RCX
TEST R15,R15
JZ 0x00172bd4
MOV dword ptr [RCX + R15*0x1 + -0x1],EBX
LAB_00172bd4:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void _downheap(long *param_1,uint param_2)
{
uint uVar1;
long lVar2;
uint uVar3;
int iVar4;
ulong uVar5;
long lVar6;
uint uVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
lVar6 = *param_1;
uVar9 = (ulong)param_2;
lVar2 = *(long *)(lVar6 + uVar9 * 8);
uVar1 = *(uint *)(param_1 + 2);
uVar7 = uVar1 >> 1;
uVar10 = (ulong)*(uint *)((long)param_1 + 0x1c);
if (param_2 <= uVar7) {
uVar5 = (ulong)*(uint *)(param_1 + 3);
uVar8 = param_2;
do {
uVar3 = uVar8 * 2;
uVar9 = (ulong)uVar3;
lVar6 = *param_1;
if (uVar3 < uVar1) {
uVar9 = (ulong)(uVar3 | 1);
iVar4 = (*(code *)param_1[5])
(param_1[1],*(long *)(lVar6 + (ulong)uVar3 * 8) + uVar5,
*(long *)(lVar6 + uVar9 * 8) + uVar5);
if (iVar4 * *(int *)((long)param_1 + 0x24) < 1) {
uVar9 = (ulong)uVar3;
}
lVar6 = *param_1;
}
param_2 = (uint)uVar9;
iVar4 = (*(code *)param_1[5])(param_1[1],*(long *)(lVar6 + uVar9 * 8) + uVar5,uVar5 + lVar2);
if (-1 < iVar4 * *(int *)((long)param_1 + 0x24)) {
uVar9 = (ulong)uVar8;
param_2 = uVar8;
break;
}
*(int8 *)(*param_1 + (ulong)uVar8 * 8) = *(int8 *)(*param_1 + uVar9 * 8);
if (uVar10 != 0) {
*(uint *)(*(long *)(*param_1 + (ulong)uVar8 * 8) + -1 + uVar10) = uVar8;
}
uVar8 = param_2;
} while (param_2 <= uVar7);
lVar6 = *param_1;
}
*(long *)(lVar6 + uVar9 * 8) = lVar2;
if (uVar10 != 0) {
*(uint *)(lVar2 + -1 + uVar10) = param_2;
}
return;
}
| |
23,201 | PycCComplex::isEqual(PycRef<PycObject>) const | Pyarmor-Static-Unpack-1shot/pyc_numeric.h | bool isEqual(PycRef<PycObject> obj) const override
{
return (PycCFloat::isEqual(obj)) &&
(m_imag == obj.cast<PycCComplex>()->m_imag);
} | O3 | c | PycCComplex::isEqual(PycRef<PycObject>) const:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
movq %rax, -0x18(%rbp)
testq %rax, %rax
je 0x3290e
incl 0x8(%rax)
leaq -0x18(%rbp), %rsi
movq %r14, %rdi
callq 0x3287e
testb %al, %al
je 0x32959
movsd 0x18(%r14), %xmm0
movsd %xmm0, -0x20(%rbp)
leaq -0x28(%rbp), %rdi
movq %rbx, %rsi
callq 0xbea2
movq -0x28(%rbp), %rdi
movsd -0x20(%rbp), %xmm0
cmpeqsd 0x18(%rdi), %xmm0
movq %xmm0, %rbx
andl $0x1, %ebx
decl 0x8(%rdi)
jne 0x3295b
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x3295b
xorl %ebx, %ebx
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x3296f
decl 0x8(%rdi)
jne 0x3296f
movq (%rdi), %rax
callq *0x8(%rax)
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x3297c
movq %rax, %rbx
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x32993
decl 0x8(%rdi)
jne 0x32993
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7450
nop
| _ZNK11PycCComplex7isEqualE6PycRefI9PycObjectE:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 20h
mov rbx, rsi
mov r14, rdi
mov rax, [rsi]
mov [rbp+var_18], rax
test rax, rax
jz short loc_3290E
inc dword ptr [rax+8]
loc_3290E:
lea rsi, [rbp+var_18]
mov rdi, r14
call _ZNK9PycCFloat7isEqualE6PycRefI9PycObjectE; PycCFloat::isEqual(PycRef<PycObject>)
test al, al
jz short loc_32959
movsd xmm0, qword ptr [r14+18h]
movsd [rbp+var_20], xmm0
lea rdi, [rbp+var_28]
mov rsi, rbx
call _ZNK6PycRefI9PycObjectE4castI11PycCComplexEES_IT_Ev; PycRef<PycObject>::cast<PycCComplex>(void)
mov rdi, [rbp+var_28]
movsd xmm0, [rbp+var_20]
cmpeqsd xmm0, qword ptr [rdi+18h]
movq rbx, xmm0
and ebx, 1
dec dword ptr [rdi+8]
jnz short loc_3295B
mov rax, [rdi]
call qword ptr [rax+8]
jmp short loc_3295B
loc_32959:
xor ebx, ebx
loc_3295B:
mov rdi, [rbp+var_18]
test rdi, rdi
jz short loc_3296F
dec dword ptr [rdi+8]
jnz short loc_3296F
mov rax, [rdi]
call qword ptr [rax+8]
loc_3296F:
mov eax, ebx
add rsp, 20h
pop rbx
pop r14
pop rbp
retn
jmp short $+2
loc_3297C:
mov rbx, rax
mov rdi, [rbp+var_18]
test rdi, rdi
jz short loc_32993
dec dword ptr [rdi+8]
jnz short loc_32993
mov rax, [rdi]
call qword ptr [rax+8]
loc_32993:
mov rdi, rbx
call __Unwind_Resume
| long long PycCComplex::isEqual(long long a1, const void **a2)
{
_DWORD *v2; // rax
long long v3; // rdi
__m128d v4; // rt1
unsigned int v5; // ebx
bool v6; // zf
_DWORD *v7; // rdi
long long v9; // [rsp+8h] [rbp-28h] BYREF
unsigned long long v10; // [rsp+10h] [rbp-20h]
_DWORD *v11; // [rsp+18h] [rbp-18h] BYREF
v2 = *a2;
v11 = v2;
if ( v2 )
++v2[2];
if ( (unsigned __int8)PycCFloat::isEqual(a1, (const void **)&v11) )
{
v10 = *(_QWORD *)(a1 + 24);
PycRef<PycObject>::cast<PycCComplex>(&v9, a2);
v3 = v9;
v4.m128d_f64[0] = *(double *)(v9 + 24);
v5 = *(_OWORD *)&_mm_cmpeq_sd((__m128d)v10, v4) & 1;
v6 = (*(_DWORD *)(v9 + 8))-- == 1;
if ( v6 )
(*(void ( **)(long long))(*(_QWORD *)v3 + 8LL))(v3);
}
else
{
v5 = 0;
}
v7 = v11;
if ( v11 )
{
v6 = v11[2]-- == 1;
if ( v6 )
(*(void ( **)(_DWORD *))(*(_QWORD *)v7 + 8LL))(v7);
}
return v5;
}
| isEqual:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RSI]
MOV qword ptr [RBP + -0x18],RAX
TEST RAX,RAX
JZ 0x0013290e
INC dword ptr [RAX + 0x8]
LAB_0013290e:
LEA RSI,[RBP + -0x18]
MOV RDI,R14
CALL 0x0013287e
TEST AL,AL
JZ 0x00132959
MOVSD XMM0,qword ptr [R14 + 0x18]
MOVSD qword ptr [RBP + -0x20],XMM0
LAB_00132929:
LEA RDI,[RBP + -0x28]
MOV RSI,RBX
CALL 0x0010bea2
LAB_00132935:
MOV RDI,qword ptr [RBP + -0x28]
MOVSD XMM0,qword ptr [RBP + -0x20]
CMPEQSD XMM0,qword ptr [RDI + 0x18]
MOVQ RBX,XMM0
AND EBX,0x1
DEC dword ptr [RDI + 0x8]
JNZ 0x0013295b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
JMP 0x0013295b
LAB_00132959:
XOR EBX,EBX
LAB_0013295b:
MOV RDI,qword ptr [RBP + -0x18]
TEST RDI,RDI
JZ 0x0013296f
DEC dword ptr [RDI + 0x8]
JNZ 0x0013296f
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0013296f:
MOV EAX,EBX
ADD RSP,0x20
POP RBX
POP R14
POP RBP
RET
|
/* PycCComplex::isEqual(PycRef<PycObject>) const */
byte __thiscall PycCComplex::isEqual(PycCComplex *this,long *param_2)
{
long *plVar1;
double dVar2;
char cVar3;
byte bVar4;
long *local_30;
long *local_20;
local_20 = (long *)*param_2;
if (local_20 != (long *)0x0) {
*(int *)(local_20 + 1) = (int)local_20[1] + 1;
}
/* try { // try from 0013290e to 00132919 has its CatchHandler @ 0013297c */
cVar3 = PycCFloat::isEqual((PycCFloat *)this,&local_20);
if (cVar3 == '\0') {
bVar4 = 0;
}
else {
dVar2 = *(double *)(this + 0x18);
/* try { // try from 00132929 to 00132934 has its CatchHandler @ 0013297a */
PycRef<PycObject>::cast<PycCComplex>();
bVar4 = -(dVar2 == (double)local_30[3]) & 1;
plVar1 = local_30 + 1;
*(int *)plVar1 = (int)*plVar1 + -1;
if ((int)*plVar1 == 0) {
(**(code **)(*local_30 + 8))();
}
}
if (local_20 != (long *)0x0) {
plVar1 = local_20 + 1;
*(int *)plVar1 = (int)*plVar1 + -1;
if ((int)*plVar1 == 0) {
(**(code **)(*local_20 + 8))();
}
}
return bVar4;
}
| |
23,202 | d2b | eloqsql/strings/dtoa.c | static Bigint *d2b(U *d, int *e, int *bits, Stack_alloc *alloc)
{
Bigint *b;
int de, k;
ULong *x, y, z;
int i;
#define d0 word0(d)
#define d1 word1(d)
b= Balloc(1, alloc);
x= b->p.x;
z= d0 & Frac_mask;
d0 &= 0x7fffffff; /* clear sign bit, which we ignore */
if ((de= (int)(d0 >> Exp_shift)))
z|= Exp_msk1;
if ((y= d1))
{
if ((k= lo0bits(&y)))
{
x[0]= y | z << (32 - k);
z>>= k;
}
else
x[0]= y;
i= b->wds= (x[1]= z) ? 2 : 1;
}
else
{
k= lo0bits(&z);
x[0]= z;
i= b->wds= 1;
k+= 32;
}
if (de)
{
*e= de - Bias - (P-1) + k;
*bits= P - k;
}
else
{
*e= de - Bias - (P-1) + 1 + k;
*bits= 32*i - hi0bits(x[i-1]);
}
return b;
#undef d0
#undef d1
} | O3 | c | d2b:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, -0x40(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, %r12
movl $0x1, %edi
movq %rcx, %rsi
callq 0x5bb9c
movq %rax, %r14
movq (%rax), %r13
movl 0x4(%r12), %ebx
movl %ebx, %r15d
andl $0xfffff, %r15d # imm = 0xFFFFF
movl %r15d, -0x2c(%rbp)
andl $0x7fffffff, %ebx # imm = 0x7FFFFFFF
movl %ebx, 0x4(%r12)
cmpl $0x100000, %ebx # imm = 0x100000
jb 0x5bc70
orl $0x100000, %r15d # imm = 0x100000
movl %r15d, -0x2c(%rbp)
movl (%r12), %eax
movl %eax, -0x30(%rbp)
testl %eax, %eax
je 0x5bcba
leaq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x5c275
movl %eax, %ecx
negb %cl
movl %r15d, %edx
shll %cl, %edx
movl %eax, %ecx
shrl %cl, %r15d
testl %eax, %eax
cmovel %eax, %edx
orl (%r12), %edx
movl %edx, (%r13)
movl %r15d, 0x4(%r13)
cmpl $0x1, %r15d
movl $0x2, %r15d
sbbl $0x0, %r15d
movl %r15d, 0x14(%r14)
jmp 0x5bcdf
leaq -0x2c(%rbp), %r12
movq %r12, %rdi
callq 0x5c275
movl (%r12), %ecx
movl %ecx, (%r13)
movl $0x1, 0x14(%r14)
addl $0x20, %eax
movl $0x1, %r15d
cmpl $0x100000, %ebx # imm = 0x100000
jae 0x5bd08
addl $0xfffffbce, %eax # imm = 0xFFFFFBCE
movq -0x38(%rbp), %rcx
movl %eax, (%rcx)
movl %r15d, %eax
shll $0x5, %r15d
movl -0x4(%r13,%rax,4), %edi
callq 0x5c306
subl %eax, %r15d
jmp 0x5bd23
shrl $0x14, %ebx
leal (%rbx,%rax), %ecx
addl $0xfffffbcd, %ecx # imm = 0xFFFFFBCD
movq -0x38(%rbp), %rdx
movl %ecx, (%rdx)
movl $0x35, %r15d
subl %eax, %r15d
movq -0x40(%rbp), %rax
movl %r15d, (%rax)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| d2b:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], rdx
mov [rbp+var_38], rsi
mov r12, rdi
mov edi, 1
mov rsi, rcx
call Balloc
mov r14, rax
mov r13, [rax]
mov ebx, [r12+4]
mov r15d, ebx
and r15d, 0FFFFFh
mov [rbp+var_2C], r15d
and ebx, 7FFFFFFFh
mov [r12+4], ebx
cmp ebx, offset unk_100000
jb short loc_5BC70
or r15d, 100000h
mov [rbp+var_2C], r15d
loc_5BC70:
mov eax, [r12]
mov [rbp+var_30], eax
test eax, eax
jz short loc_5BCBA
lea r12, [rbp+var_30]
mov rdi, r12
call lo0bits
mov ecx, eax
neg cl
mov edx, r15d
shl edx, cl
mov ecx, eax
shr r15d, cl
test eax, eax
cmovz edx, eax
or edx, [r12]
mov [r13+0], edx
mov [r13+4], r15d
cmp r15d, 1
mov r15d, 2
sbb r15d, 0
mov [r14+14h], r15d
jmp short loc_5BCDF
loc_5BCBA:
lea r12, [rbp+var_2C]
mov rdi, r12
call lo0bits
mov ecx, [r12]
mov [r13+0], ecx
mov dword ptr [r14+14h], 1
add eax, 20h ; ' '
mov r15d, 1
loc_5BCDF:
cmp ebx, offset unk_100000
jnb short loc_5BD08
add eax, 0FFFFFBCEh
mov rcx, [rbp+var_38]
mov [rcx], eax
mov eax, r15d
shl r15d, 5
mov edi, [r13+rax*4-4]
call hi0bits
sub r15d, eax
jmp short loc_5BD23
loc_5BD08:
shr ebx, 14h
lea ecx, [rbx+rax]
add ecx, 0FFFFFBCDh
mov rdx, [rbp+var_38]
mov [rdx], ecx
mov r15d, 35h ; '5'
sub r15d, eax
loc_5BD23:
mov rax, [rbp+var_40]
mov [rax], r15d
mov rax, r14
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long d2b(int *a1, _DWORD *a2, _DWORD *a3, long long a4)
{
long long v4; // r14
int *v5; // r13
int v6; // ebx
unsigned int v7; // r15d
unsigned int v8; // ebx
int v9; // eax
unsigned int v10; // edx
unsigned int v11; // r15d
unsigned int v12; // r15d
int v13; // eax
int v14; // r15d
int v17; // [rsp+10h] [rbp-30h] BYREF
int v18[11]; // [rsp+14h] [rbp-2Ch] BYREF
v4 = Balloc(1, a4);
v5 = *(int **)v4;
v6 = a1[1];
v7 = v6 & 0xFFFFF;
v18[0] = v6 & 0xFFFFF;
v8 = v6 & 0x7FFFFFFF;
a1[1] = v8;
if ( v8 >= (unsigned int)&unk_100000 )
{
v7 |= 0x100000u;
v18[0] = v7;
}
v17 = *a1;
if ( v17 )
{
v9 = lo0bits(&v17);
v10 = v7 << -(char)v9;
v11 = v7 >> v9;
if ( !v9 )
v10 = 0;
*v5 = v17 | v10;
v5[1] = v11;
v12 = 2 - (v11 == 0);
*(_DWORD *)(v4 + 20) = v12;
}
else
{
v13 = lo0bits(v18);
*v5 = v18[0];
*(_DWORD *)(v4 + 20) = 1;
v9 = v13 + 32;
v12 = 1;
}
if ( v8 >= (unsigned int)&unk_100000 )
{
*a2 = (v8 >> 20) + v9 - 1075;
v14 = 53 - v9;
}
else
{
*a2 = v9 - 1074;
v14 = 32 * v12 - hi0bits((unsigned int)v5[v12 - 1]);
}
*a3 = v14;
return v4;
}
| d2b:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],RDX
MOV qword ptr [RBP + -0x38],RSI
MOV R12,RDI
MOV EDI,0x1
MOV RSI,RCX
CALL 0x0015bb9c
MOV R14,RAX
MOV R13,qword ptr [RAX]
MOV EBX,dword ptr [R12 + 0x4]
MOV R15D,EBX
AND R15D,0xfffff
MOV dword ptr [RBP + -0x2c],R15D
AND EBX,0x7fffffff
MOV dword ptr [R12 + 0x4],EBX
CMP EBX,0x100000
JC 0x0015bc70
OR R15D,0x100000
MOV dword ptr [RBP + -0x2c],R15D
LAB_0015bc70:
MOV EAX,dword ptr [R12]
MOV dword ptr [RBP + -0x30],EAX
TEST EAX,EAX
JZ 0x0015bcba
LEA R12,[RBP + -0x30]
MOV RDI,R12
CALL 0x0015c275
MOV ECX,EAX
NEG CL
MOV EDX,R15D
SHL EDX,CL
MOV ECX,EAX
SHR R15D,CL
TEST EAX,EAX
CMOVZ EDX,EAX
OR EDX,dword ptr [R12]
MOV dword ptr [R13],EDX
MOV dword ptr [R13 + 0x4],R15D
CMP R15D,0x1
MOV R15D,0x2
SBB R15D,0x0
MOV dword ptr [R14 + 0x14],R15D
JMP 0x0015bcdf
LAB_0015bcba:
LEA R12,[RBP + -0x2c]
MOV RDI,R12
CALL 0x0015c275
MOV ECX,dword ptr [R12]
MOV dword ptr [R13],ECX
MOV dword ptr [R14 + 0x14],0x1
ADD EAX,0x20
MOV R15D,0x1
LAB_0015bcdf:
CMP EBX,0x100000
JNC 0x0015bd08
ADD EAX,0xfffffbce
MOV RCX,qword ptr [RBP + -0x38]
MOV dword ptr [RCX],EAX
MOV EAX,R15D
SHL R15D,0x5
MOV EDI,dword ptr [R13 + RAX*0x4 + -0x4]
CALL 0x0015c306
SUB R15D,EAX
JMP 0x0015bd23
LAB_0015bd08:
SHR EBX,0x14
LEA ECX,[RBX + RAX*0x1]
ADD ECX,0xfffffbcd
MOV RDX,qword ptr [RBP + -0x38]
MOV dword ptr [RDX],ECX
MOV R15D,0x35
SUB R15D,EAX
LAB_0015bd23:
MOV RAX,qword ptr [RBP + -0x40]
MOV dword ptr [RAX],R15D
MOV RAX,R14
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long * d2b(uint *param_1,int *param_2,int *param_3,int8 param_4)
{
uint *puVar1;
int iVar2;
long *plVar3;
uint uVar4;
uint uVar5;
uint uVar6;
uint local_38;
uint local_34;
plVar3 = (long *)Balloc(1,param_4);
puVar1 = (uint *)*plVar3;
uVar6 = param_1[1] & 0xfffff;
uVar5 = param_1[1] & 0x7fffffff;
param_1[1] = uVar5;
if (0xfffff < uVar5) {
uVar6 = uVar6 | 0x100000;
}
local_38 = *param_1;
local_34 = uVar6;
if (local_38 == 0) {
iVar2 = lo0bits(&local_34);
*puVar1 = local_34;
*(int4 *)((long)plVar3 + 0x14) = 1;
iVar2 = iVar2 + 0x20;
uVar6 = 1;
}
else {
iVar2 = lo0bits(&local_38);
uVar4 = uVar6 << (-(byte)iVar2 & 0x1f);
uVar6 = uVar6 >> ((byte)iVar2 & 0x1f);
if (iVar2 == 0) {
uVar4 = 0;
}
*puVar1 = uVar4 | local_38;
puVar1[1] = uVar6;
uVar6 = 2 - (uVar6 == 0);
*(uint *)((long)plVar3 + 0x14) = uVar6;
}
if (uVar5 < 0x100000) {
*param_2 = iVar2 + -0x432;
iVar2 = hi0bits(puVar1[(ulong)uVar6 - 1]);
iVar2 = uVar6 * 0x20 - iVar2;
}
else {
*param_2 = (uVar5 >> 0x14) + iVar2 + -0x433;
iVar2 = 0x35 - iVar2;
}
*param_3 = iVar2;
return plVar3;
}
| |
23,203 | sp_get_polygon_mbr | eloqsql/storage/maria/ma_sp_key.c | static int sp_get_polygon_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
{
uint n_linear_rings;
uint n_points;
n_linear_rings = uint4korr((*wkb));
(*wkb) += 4;
for (; n_linear_rings > 0; --n_linear_rings)
{
n_points = uint4korr((*wkb));
(*wkb) += 4;
for (; n_points > 0; --n_points)
{
/* Add next point to mbr */
if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
}
return 0;
} | O0 | c | sp_get_polygon_mbr:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x2c(%rbp)
jbe 0x9e5be
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x30(%rbp)
jbe 0x9e5b1
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x1d(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9e5d0
cmpl $0x0, %eax
je 0x9e5a4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9e5c5
jmp 0x9e5a6
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9e576
jmp 0x9e5b3
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x9e556
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| sp_get_polygon_mbr:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, cl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_1D], al
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_2C], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9E556:
cmp [rbp+var_2C], 0
jbe short loc_9E5BE
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9E576:
cmp [rbp+var_30], 0
jbe short loc_9E5B1
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_1D]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_add_point_to_mbr
cmp eax, 0
jz short loc_9E5A4
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9E5C5
loc_9E5A4:
jmp short $+2
loc_9E5A6:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
jmp short loc_9E576
loc_9E5B1:
jmp short $+2
loc_9E5B3:
mov eax, [rbp+var_2C]
add eax, 0FFFFFFFFh
mov [rbp+var_2C], eax
jmp short loc_9E556
loc_9E5BE:
mov [rbp+var_4], 0
loc_9E5C5:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long sp_get_polygon_mbr(_DWORD **a1, long long a2, unsigned int a3, unsigned __int8 a4, long long a5)
{
int j; // [rsp+0h] [rbp-30h]
int i; // [rsp+4h] [rbp-2Ch]
for ( i = *(*a1)++; i; --i )
{
for ( j = *(*a1)++; j; --j )
{
if ( (unsigned int)sp_add_point_to_mbr(a1, a2, a3, a4, a5) )
return (unsigned int)-1;
}
}
return 0;
}
| sp_get_polygon_mbr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,CL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV byte ptr [RBP + -0x1d],AL
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019e556:
CMP dword ptr [RBP + -0x2c],0x0
JBE 0x0019e5be
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019e576:
CMP dword ptr [RBP + -0x30],0x0
JBE 0x0019e5b1
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x1d]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019e5d0
CMP EAX,0x0
JZ 0x0019e5a4
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019e5c5
LAB_0019e5a4:
JMP 0x0019e5a6
LAB_0019e5a6:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019e576
LAB_0019e5b1:
JMP 0x0019e5b3
LAB_0019e5b3:
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0019e556
LAB_0019e5be:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019e5c5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4
sp_get_polygon_mbr(long *param_1,int8 param_2,int4 param_3,int1 param_4,
int8 param_5)
{
int iVar1;
int local_38;
int local_34;
local_34 = *(int *)*param_1;
*param_1 = *param_1 + 4;
do {
if (local_34 == 0) {
return 0;
}
local_38 = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_38 != 0; local_38 = local_38 + -1) {
iVar1 = sp_add_point_to_mbr(param_1,param_2,param_3,param_4,param_5);
if (iVar1 != 0) {
return 0xffffffff;
}
}
local_34 = local_34 + -1;
} while( true );
}
| |
23,204 | uf_varchar2 | eloqsql/storage/maria/ma_packrec.c | static void uf_varchar2(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end __attribute__((unused)))
{
if (get_bit(bit_buff))
to[0]=to[1]=0; /* Zero lengths */
else
{
ulong length=get_bits(bit_buff,rec->space_length_bits);
int2store(to,length);
decode_bytes(rec,bit_buff,to+2,to+2+length);
}
} | O0 | c | uf_varchar2:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x4a117
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x4a13b
jmp 0x4a14f
movq -0x10(%rbp), %rdi
callq 0x48ac0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0x4a14f
movq -0x18(%rbp), %rax
movb $0x0, 0x1(%rax)
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
jmp 0x4a1e5
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jb 0x4a192
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %ecx
movl %ecx, %edx
leaq 0x276ec6(%rip), %rcx # 0x2c1050
andl (%rcx,%rdx,4), %eax
movl %eax, -0x34(%rbp)
jmp 0x4a1a5
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x48270
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, %eax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movw %ax, %cx
movq -0x30(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0x2, %rdx
movq -0x18(%rbp), %rcx
addq $0x2, %rcx
addq -0x28(%rbp), %rcx
callq 0x48e00
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| uf_varchar2:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_4A117
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_4A13B
jmp short loc_4A14F
loc_4A117:
mov rdi, [rbp+var_10]
call fill_buffer
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_4A14F
loc_4A13B:
mov rax, [rbp+var_18]
mov byte ptr [rax+1], 0
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
jmp loc_4A1E5
loc_4A14F:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+24h]
jb short loc_4A192
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+24h]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+24h]
mov edx, ecx
lea rcx, mask
and eax, [rcx+rdx*4]
mov [rbp+var_34], eax
jmp short loc_4A1A5
loc_4A192:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+24h]
call fill_and_get_bits
mov [rbp+var_34], eax
loc_4A1A5:
mov eax, [rbp+var_34]
mov eax, eax
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov cx, ax
mov rax, [rbp+var_30]
mov [rax], cx
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
add rdx, 2
mov rcx, [rbp+var_18]
add rcx, 2
add rcx, [rbp+var_28]
call decode_bytes
loc_4A1E5:
add rsp, 40h
pop rbp
retn
| long long uf_varchar2(long long a1, int *a2, _BYTE *a3)
{
int v3; // eax
int v4; // ecx
long long result; // rax
unsigned int v6; // eax
int v7; // ecx
int bits; // [rsp+Ch] [rbp-34h]
if ( a2[1] )
{
v3 = *a2;
v4 = a2[1] - 1;
a2[1] = v4;
if ( ((1 << v4) & v3) == 0 )
goto LABEL_6;
LABEL_5:
a3[1] = 0;
result = (long long)a3;
*a3 = 0;
return result;
}
fill_buffer((long long)a2);
a2[1] = 31;
if ( *a2 < 0 )
goto LABEL_5;
LABEL_6:
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 36) )
{
bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36));
}
else
{
v6 = *a2;
v7 = a2[1] - *(_DWORD *)(a1 + 36);
a2[1] = v7;
bits = mask[*(unsigned int *)(a1 + 36)] & (v6 >> v7);
}
*(_WORD *)a3 = bits;
return decode_bytes(a1, (long long)a2, a3 + 2, &a3[bits + 2]);
}
| uf_varchar2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x0014a117
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x0014a13b
JMP 0x0014a14f
LAB_0014a117:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00148ac0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x0014a14f
LAB_0014a13b:
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x1],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
JMP 0x0014a1e5
LAB_0014a14f:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x24]
JC 0x0014a192
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x24]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x24]
MOV EDX,ECX
LEA RCX,[0x3c1050]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0014a1a5
LAB_0014a192:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x24]
CALL 0x00148270
MOV dword ptr [RBP + -0x34],EAX
LAB_0014a1a5:
MOV EAX,dword ptr [RBP + -0x34]
MOV EAX,EAX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x30]
MOV word ptr [RAX],CX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,0x2
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x2
ADD RCX,qword ptr [RBP + -0x28]
CALL 0x00148e00
LAB_0014a1e5:
ADD RSP,0x40
POP RBP
RET
|
void uf_varchar2(long param_1,uint *param_2,int2 *param_3)
{
uint uVar1;
uint local_3c;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
if (param_2[1] < *(uint *)(param_1 + 0x24)) {
local_3c = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x24);
param_2[1] = uVar1;
local_3c = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4);
}
*param_3 = (short)local_3c;
decode_bytes(param_1,param_2,param_3 + 1,(int1 *)((long)param_3 + (ulong)local_3c + 2));
}
else {
*(int1 *)((long)param_3 + 1) = 0;
*(int1 *)param_3 = 0;
}
return;
}
| |
23,205 | uf_varchar2 | eloqsql/storage/maria/ma_packrec.c | static void uf_varchar2(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end __attribute__((unused)))
{
if (get_bit(bit_buff))
to[0]=to[1]=0; /* Zero lengths */
else
{
ulong length=get_bits(bit_buff,rec->space_length_bits);
int2store(to,length);
decode_bytes(rec,bit_buff,to+2,to+2+length);
}
} | O3 | c | uf_varchar2:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x42756
movl (%r14), %r13d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r13d
jae 0x42773
movw $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x4172c
movl $0x1f, 0x4(%r14)
movl (%r14), %r13d
movl $0x1f, %eax
testl %r13d, %r13d
js 0x42742
movl 0x24(%r15), %r12d
movl %eax, %ecx
subl %r12d, %ecx
jae 0x427b8
subl %eax, %r12d
movl %eax, %eax
leaq 0xa0a76(%rip), %rcx # 0xe3200
andl (%rcx,%rax,4), %r13d
movl %r12d, %ecx
shll %cl, %r13d
movq %r14, %rdi
callq 0x4172c
movl $0x20, %eax
subl %r12d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r12d
movl %r12d, %ecx
shrl %cl, %eax
addl %eax, %r13d
jmp 0x427ce
movl %ecx, 0x4(%r14)
shrl %cl, %r13d
movl 0x24(%r15), %eax
leaq 0xa0a36(%rip), %rcx # 0xe3200
andl (%rcx,%rax,4), %r13d
movl %r13d, %eax
movw %r13w, (%rbx)
leaq (%rbx,%rax), %rcx
addq $0x2, %rcx
addq $0x2, %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x418e9
| uf_varchar2:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_42756
mov r13d, [r14]
dec eax
mov [r14+4], eax
bt r13d, eax
jnb short loc_42773
loc_42742:
mov word ptr [rbx], 0
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_42756:
mov rdi, r14
call fill_buffer
mov dword ptr [r14+4], 1Fh
mov r13d, [r14]
mov eax, 1Fh
test r13d, r13d
js short loc_42742
loc_42773:
mov r12d, [r15+24h]
mov ecx, eax
sub ecx, r12d
jnb short loc_427B8
sub r12d, eax
mov eax, eax
lea rcx, mask
and r13d, [rcx+rax*4]
mov ecx, r12d
shl r13d, cl
mov rdi, r14
call fill_buffer
mov eax, 20h ; ' '
sub eax, r12d
mov [r14+4], eax
mov eax, [r14]
neg r12d
mov ecx, r12d
shr eax, cl
add r13d, eax
jmp short loc_427CE
loc_427B8:
mov [r14+4], ecx
shr r13d, cl
mov eax, [r15+24h]
lea rcx, mask
and r13d, [rcx+rax*4]
loc_427CE:
mov eax, r13d
mov [rbx], r13w
lea rcx, [rbx+rax]
add rcx, 2
add rbx, 2
mov rdi, r15
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes
| long long uf_varchar2(long long a1, unsigned int *a2, long long a3)
{
unsigned int v4; // eax
unsigned int v5; // r13d
long long result; // rax
unsigned int v7; // r12d
unsigned int v8; // ecx
int v9; // r12d
int v10; // r13d
unsigned int v11; // r13d
v4 = a2[1];
if ( v4 )
{
v5 = *a2;
result = v4 - 1;
a2[1] = result;
if ( _bittest((const int *)&v5, result) )
{
LABEL_3:
*(_WORD *)a3 = 0;
return result;
}
}
else
{
fill_buffer((long long)a2);
a2[1] = 31;
v5 = *a2;
result = 31LL;
if ( (*a2 & 0x80000000) != 0 )
goto LABEL_3;
}
v7 = *(_DWORD *)(a1 + 36);
v8 = result - v7;
if ( (unsigned int)result >= v7 )
{
a2[1] = v8;
v11 = mask[*(unsigned int *)(a1 + 36)] & (v5 >> v8);
}
else
{
v9 = v7 - result;
v10 = (mask[(unsigned int)result] & v5) << v9;
fill_buffer((long long)a2);
a2[1] = 32 - v9;
v11 = (*a2 >> -(char)v9) + v10;
}
*(_WORD *)a3 = v11;
return (long long)decode_bytes(a1, (long long)a2, (_BYTE *)(a3 + 2), (_BYTE *)(a3 + v11 + 2));
}
| uf_varchar2:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00142756
MOV R13D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R13D,EAX
JNC 0x00142773
LAB_00142742:
MOV word ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00142756:
MOV RDI,R14
CALL 0x0014172c
MOV dword ptr [R14 + 0x4],0x1f
MOV R13D,dword ptr [R14]
MOV EAX,0x1f
TEST R13D,R13D
JS 0x00142742
LAB_00142773:
MOV R12D,dword ptr [R15 + 0x24]
MOV ECX,EAX
SUB ECX,R12D
JNC 0x001427b8
SUB R12D,EAX
MOV EAX,EAX
LEA RCX,[0x1e3200]
AND R13D,dword ptr [RCX + RAX*0x4]
MOV ECX,R12D
SHL R13D,CL
MOV RDI,R14
CALL 0x0014172c
MOV EAX,0x20
SUB EAX,R12D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R12D
MOV ECX,R12D
SHR EAX,CL
ADD R13D,EAX
JMP 0x001427ce
LAB_001427b8:
MOV dword ptr [R14 + 0x4],ECX
SHR R13D,CL
MOV EAX,dword ptr [R15 + 0x24]
LEA RCX,[0x1e3200]
AND R13D,dword ptr [RCX + RAX*0x4]
LAB_001427ce:
MOV EAX,R13D
MOV word ptr [RBX],R13W
LEA RCX,[RBX + RAX*0x1]
ADD RCX,0x2
ADD RBX,0x2
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001418e9
|
void uf_varchar2(long param_1,uint *param_2,int2 *param_3)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
uVar3 = 0x1f;
if (-1 < (int)uVar5) goto LAB_00142773;
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) {
LAB_00142773:
uVar1 = *(uint *)(param_1 + 0x24);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x24)];
}
*param_3 = (short)uVar5;
decode_bytes(param_1,param_2,param_3 + 1,(long)param_3 + (ulong)uVar5 + 2);
return;
}
}
*param_3 = 0;
return;
}
| |
23,206 | ma_control_file_end | eloqsql/storage/maria/ma_control_file.c | int ma_control_file_end(void)
{
int close_error;
DBUG_ENTER("ma_control_file_end");
if (control_file_fd < 0) /* already closed */
DBUG_RETURN(0);
#ifndef _WIN32
(void) my_lock(control_file_fd, F_UNLCK, 0L, F_TO_EOF,
MYF(MY_SEEK_NOT_DONE | MY_FORCE_LOCK));
#endif
close_error= mysql_file_close(control_file_fd, MYF(MY_WME));
/*
As mysql_file_close() frees structures even if close() fails, we do the
same, i.e. we mark the file as closed in all cases.
*/
control_file_fd= -1;
/*
As this module owns these variables, closing the module forbids access to
them (just a safety):
*/
last_checkpoint_lsn= LSN_IMPOSSIBLE;
last_logno= FILENO_IMPOSSIBLE;
max_trid_in_control_file= recovery_failures= 0;
DBUG_RETURN(close_error);
} | O3 | c | ma_control_file_end:
movl 0x321c81(%rip), %edi # 0x385190
testl %edi, %edi
js 0x6359c
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movl $0xa0, %r8d
movl $0x2, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa10fc
movl 0x321c54(%rip), %ebx # 0x385190
leaq 0x323b0d(%rip), %rax # 0x387050
movq (%rax), %rax
leaq -0x60(%rbp), %rdi
movl %ebx, %esi
movl $0x4, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x6359f
movl $0x10, %esi
movl %ebx, %edi
callq 0xa1ac1
movl $0xffffffff, 0x321c1e(%rip) # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movq %rcx, 0x39bfcd(%rip) # 0x3ff548
movl $0x0, 0x39bfcb(%rip) # 0x3ff550
movb $0x0, 0x39bfd4(%rip) # 0x3ff560
movq %rcx, 0x39bfc5(%rip) # 0x3ff558
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
retq
leaq -0x14(%rbp), %r14
movq %rax, %rdi
movl %ebx, %esi
movq %r14, %rdx
callq 0x2abbf
movl (%r14), %eax
jmp 0x63568
| ma_control_file_end:
mov edi, cs:control_file_fd
test edi, edi
js loc_6359C
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 50h
mov r8d, 0A0h
mov esi, 2
xor edx, edx
xor ecx, ecx
call my_lock
mov ebx, cs:control_file_fd
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp-60h]
mov esi, ebx
mov edx, 4
call qword ptr [rax+158h]
test rax, rax
jnz short loc_6359F
mov esi, 10h
mov edi, ebx
call my_close
loc_63568:
mov cs:control_file_fd, 0FFFFFFFFh
xor ecx, ecx
mov cs:last_checkpoint_lsn, rcx
mov cs:last_logno, 0
mov cs:recovery_failures, 0
mov cs:max_trid_in_control_file, rcx
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_6359C:
xor eax, eax
retn
loc_6359F:
lea r14, [rbp-14h]
mov rdi, rax
mov esi, ebx
mov rdx, r14
call ma_control_file_end_cold_1
mov eax, [r14]
jmp short loc_63568
| long long ma_control_file_end()
{
unsigned int v0; // ebx
long long v1; // rax
long long result; // rax
long long v3; // [rsp-68h] [rbp-68h] BYREF
unsigned int v4; // [rsp-1Ch] [rbp-1Ch] BYREF
if ( control_file_fd < 0 )
return 0LL;
my_lock((unsigned int)control_file_fd, 2LL, 0LL, 0LL, 160LL);
v0 = control_file_fd;
v1 = ((long long ( *)(long long *, _QWORD, long long))PSI_server[43])(&v3, (unsigned int)control_file_fd, 4LL);
if ( v1 )
{
ma_control_file_end_cold_1(v1, v0, &v4);
result = v4;
}
else
{
result = my_close(v0, 16LL);
}
control_file_fd = -1;
last_checkpoint_lsn = 0LL;
last_logno = 0;
recovery_failures = 0;
max_trid_in_control_file = 0LL;
return result;
}
| ma_control_file_end:
MOV EDI,dword ptr [0x00485190]
TEST EDI,EDI
JS 0x0016359c
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R8D,0xa0
MOV ESI,0x2
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a10fc
MOV EBX,dword ptr [0x00485190]
LEA RAX,[0x487050]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x60]
MOV ESI,EBX
MOV EDX,0x4
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0016359f
MOV ESI,0x10
MOV EDI,EBX
CALL 0x001a1ac1
LAB_00163568:
MOV dword ptr [0x00485190],0xffffffff
XOR ECX,ECX
MOV qword ptr [0x004ff548],RCX
MOV dword ptr [0x004ff550],0x0
MOV byte ptr [0x004ff560],0x0
MOV qword ptr [0x004ff558],RCX
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_0016359c:
XOR EAX,EAX
RET
LAB_0016359f:
LEA R14,[RBP + -0x14]
MOV RDI,RAX
MOV ESI,EBX
MOV RDX,R14
CALL 0x0012abbf
MOV EAX,dword ptr [R14]
JMP 0x00163568
|
ulong ma_control_file_end(void)
{
int iVar1;
long lVar2;
ulong uVar3;
int1 local_68 [76];
uint local_1c;
if (-1 < control_file_fd) {
my_lock(control_file_fd,2,0,0,0xa0);
iVar1 = control_file_fd;
lVar2 = (**(code **)(PSI_server + 0x158))(local_68,control_file_fd,4);
if (lVar2 == 0) {
uVar3 = my_close(iVar1,0x10);
}
else {
ma_control_file_end_cold_1(lVar2,iVar1,&local_1c);
uVar3 = (ulong)local_1c;
}
control_file_fd = 0xffffffff;
last_checkpoint_lsn = 0;
last_logno = 0;
recovery_failures = 0;
max_trid_in_control_file = 0;
return uVar3;
}
return 0;
}
| |
23,207 | nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>) | ng-log[P]ng-log/src/logging.cc | LogMessageTime::LogMessageTime(std::chrono::system_clock::time_point now)
: timestamp_{now} {
std::time_t timestamp;
std::tie(tm_, timestamp, gmtoffset_) = Breakdown(now);
usecs_ = std::chrono::duration_cast<std::chrono::microseconds>(
now - std::chrono::system_clock::from_time_t(timestamp));
} | O0 | cpp | nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>):
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rsi, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x0, (%rax)
movl $0x0, 0x4(%rax)
movl $0x0, 0x8(%rax)
movl $0x0, 0xc(%rax)
movl $0x0, 0x10(%rax)
movl $0x0, 0x14(%rax)
movl $0x0, 0x18(%rax)
movl $0x0, 0x1c(%rax)
movl $0x0, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq $0x0, 0x30(%rax)
movq -0x8(%rbp), %rcx
movq %rcx, 0x38(%rax)
leaq -0x60(%rbp), %rdi
leaq -0x8(%rbp), %rsi
callq 0x36340
movq -0x98(%rbp), %rsi
movq %rsi, %rcx
addq $0x48, %rcx
leaq -0x78(%rbp), %rdi
leaq -0x18(%rbp), %rdx
callq 0x3b740
leaq -0x78(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x3b780
movq -0x18(%rbp), %rdi
callq 0x3b830
movq %rax, -0x90(%rbp)
leaq -0x8(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3b7e0
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x3b7b0
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, 0x40(%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ZN5nglog14LogMessageTimeC2ENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEE:
push rbp; Alternative name is 'nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>)'
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_8], rsi
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+var_98], rax
mov dword ptr [rax], 0
mov dword ptr [rax+4], 0
mov dword ptr [rax+8], 0
mov dword ptr [rax+0Ch], 0
mov dword ptr [rax+10h], 0
mov dword ptr [rax+14h], 0
mov dword ptr [rax+18h], 0
mov dword ptr [rax+1Ch], 0
mov dword ptr [rax+20h], 0
mov qword ptr [rax+28h], 0
mov qword ptr [rax+30h], 0
mov rcx, [rbp+var_8]
mov [rax+38h], rcx
lea rdi, [rbp+var_60]
lea rsi, [rbp+var_8]
call _ZN5nglog12_GLOBAL__N_19BreakdownI2tmEENSt9enable_ifIXsr20has_member_tm_gmtoffIT_EE5valueESt5tupleIJS2_lNSt6chrono8durationIlSt5ratioILl3600ELl1EEEEEEE4typeERKNS6_10time_pointINS6_3_V212system_clockENS7_IlS8_ILl1ELl1000000000EEEEEE
mov rsi, [rbp+var_98]
mov rcx, rsi
add rcx, 48h ; 'H'
lea rdi, [rbp+var_78]
lea rdx, [rbp+var_18]
call _ZSt3tieIJ2tmlNSt6chrono8durationIlSt5ratioILl1ELl1EEEEEESt5tupleIJDpRT_EES9_; std::tie<tm,long,std::chrono::duration<long,std::ratio<1l,1l>>>(tm,long,std::chrono::duration<long,std::ratio<1l,1l>> &)
lea rdi, [rbp+var_78]
lea rsi, [rbp+var_60]; __int64
call _ZNSt5tupleIJR2tmRlRNSt6chrono8durationIlSt5ratioILl1ELl1EEEEEEaSIJS0_lNS4_IlS5_ILl3600ELl1EEEEEEENSt9enable_ifIXcl12__assignableIDpT_EEERS9_E4typeEOS_IJSF_EE; std::tuple<tm &,long &,std::chrono::duration<long,std::ratio<1l,1l>> &>::operator=<tm,long,std::chrono::duration<long,std::ratio<3600l,1l>>>(std::tuple&&<tm,long,std::chrono::duration<long,std::ratio<3600l,1l>>>)
mov rdi, [rbp+var_18]; this
call _ZNSt6chrono3_V212system_clock11from_time_tEl; std::chrono::_V2::system_clock::from_time_t(long)
mov [rbp+var_90], rax
lea rdi, [rbp+var_8]
lea rsi, [rbp+var_90]
call _ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE; std::chrono::operator-<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&)
mov [rbp+var_88], rax
lea rdi, [rbp+var_88]
call _ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE
mov rcx, rax
mov rax, [rbp+var_98]
mov [rbp+var_80], rcx
mov rcx, [rbp+var_80]
mov [rax+40h], rcx
add rsp, 0A0h
pop rbp
retn
| long long nglog::LogMessageTime::LogMessageTime(long long a1, long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // [rsp+10h] [rbp-90h] BYREF
long long v5; // [rsp+18h] [rbp-88h] BYREF
_BYTE v6[24]; // [rsp+28h] [rbp-78h] BYREF
long long v7[9]; // [rsp+40h] [rbp-60h] BYREF
std::chrono::_V2::system_clock *v8[2]; // [rsp+88h] [rbp-18h] BYREF
long long v9; // [rsp+98h] [rbp-8h] BYREF
v9 = a2;
v8[1] = (std::chrono::_V2::system_clock *)a1;
*(_DWORD *)a1 = 0;
*(_DWORD *)(a1 + 4) = 0;
*(_DWORD *)(a1 + 8) = 0;
*(_DWORD *)(a1 + 12) = 0;
*(_DWORD *)(a1 + 16) = 0;
*(_DWORD *)(a1 + 20) = 0;
*(_DWORD *)(a1 + 24) = 0;
*(_DWORD *)(a1 + 28) = 0;
*(_DWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 48) = 0LL;
*(_QWORD *)(a1 + 56) = v9;
nglog::`anonymous namespace'::Breakdown<tm>(v7, &v9);
std::tie<tm,long,std::chrono::duration<long,std::ratio<1l,1l>>>(v6, a1, v8, a1 + 72);
std::tuple<tm &,long &,std::chrono::duration<long,std::ratio<1l,1l>> &>::operator=<tm,long,std::chrono::duration<long,std::ratio<3600l,1l>>>(
v6,
v7);
v4 = std::chrono::_V2::system_clock::from_time_t(v8[0], (long long)v7);
v5 = std::chrono::operator-<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(
&v9,
&v4);
v2 = std::chrono::duration_cast<std::chrono::duration<long,std::ratio<1l,1000000l>>,long,std::ratio<1l,1000000000l>>(&v5);
result = a1;
*(_QWORD *)(a1 + 64) = v2;
return result;
}
| LogMessageTime:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x98],RAX
MOV dword ptr [RAX],0x0
MOV dword ptr [RAX + 0x4],0x0
MOV dword ptr [RAX + 0x8],0x0
MOV dword ptr [RAX + 0xc],0x0
MOV dword ptr [RAX + 0x10],0x0
MOV dword ptr [RAX + 0x14],0x0
MOV dword ptr [RAX + 0x18],0x0
MOV dword ptr [RAX + 0x1c],0x0
MOV dword ptr [RAX + 0x20],0x0
MOV qword ptr [RAX + 0x28],0x0
MOV qword ptr [RAX + 0x30],0x0
MOV RCX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x38],RCX
LEA RDI,[RBP + -0x60]
LEA RSI,[RBP + -0x8]
CALL 0x00136340
MOV RSI,qword ptr [RBP + -0x98]
MOV RCX,RSI
ADD RCX,0x48
LEA RDI,[RBP + -0x78]
LEA RDX,[RBP + -0x18]
CALL 0x0013b740
LEA RDI,[RBP + -0x78]
LEA RSI,[RBP + -0x60]
CALL 0x0013b780
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013b830
MOV qword ptr [RBP + -0x90],RAX
LEA RDI,[RBP + -0x8]
LEA RSI,[RBP + -0x90]
CALL 0x0013b7e0
MOV qword ptr [RBP + -0x88],RAX
LEA RDI,[RBP + -0x88]
CALL 0x0013b7b0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x80],RCX
MOV RCX,qword ptr [RBP + -0x80]
MOV qword ptr [RAX + 0x40],RCX
ADD RSP,0xa0
POP RBP
RET
|
/* nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock,
std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) */
void __thiscall nglog::LogMessageTime::LogMessageTime(LogMessageTime *this,int8 param_2)
{
int8 uVar1;
int8 local_98;
int8 local_90 [2];
int1 local_80 [96];
long local_20;
LogMessageTime *local_18;
int8 local_10;
*(int4 *)this = 0;
*(int4 *)(this + 4) = 0;
*(int4 *)(this + 8) = 0;
*(int4 *)(this + 0xc) = 0;
*(int4 *)(this + 0x10) = 0;
*(int4 *)(this + 0x14) = 0;
*(int4 *)(this + 0x18) = 0;
*(int4 *)(this + 0x1c) = 0;
*(int4 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = param_2;
local_18 = this;
local_10 = param_2;
(anonymous_namespace)::Breakdown<tm>
((_anonymous_namespace_ *)(local_80 + 0x18),(time_point *)&local_10);
std::tie<tm,long,std::chrono::duration<long,std::ratio<1l,1l>>>
((tm *)local_80,(long *)this,(duration *)&local_20);
std::tuple<tm&,long&,std::chrono::duration<long,std::ratio<1l,1l>>&>::operator=
((tuple<tm&,long&,std::chrono::duration<long,std::ratio<1l,1l>>&> *)local_80,
(tuple *)(local_80 + 0x18));
local_98 = std::chrono::_V2::system_clock::from_time_t(local_20);
local_90[0] = std::chrono::operator-((time_point *)&local_10,(time_point *)&local_98);
uVar1 = std::chrono::
duration_cast<std::chrono::duration<long,std::ratio<1l,1000000l>>,long,std::ratio<1l,1000000000l>>
((duration *)local_90);
*(int8 *)(this + 0x40) = uVar1;
return;
}
| |
23,208 | maria_ftparser_alloc_param | eloqsql/storage/maria/ma_ft_parser.c | MYSQL_FTPARSER_PARAM* maria_ftparser_alloc_param(MARIA_HA *info)
{
if (!info->ftparser_param)
{
/*
. info->ftparser_param can not be zero after the initialization,
because it always includes built-in fulltext parser. And built-in
parser can be called even if the table has no fulltext indexes and
no varchar/text fields.
ftb_find_relevance... parser (ftb_find_relevance_parse,
ftb_find_relevance_add_word) calls ftb_check_phrase... parser
(ftb_check_phrase_internal, ftb_phrase_add_word). Thus MAX_PARAM_NR=2.
*/
info->ftparser_param= (MYSQL_FTPARSER_PARAM *)
my_malloc(PSI_INSTRUMENT_ME, MAX_PARAM_NR * sizeof(MYSQL_FTPARSER_PARAM) *
info->s->ftkeys, MYF(MY_WME | MY_ZEROFILL));
init_alloc_root(PSI_INSTRUMENT_ME, &info->ft_memroot,
FTPARSER_MEMROOT_ALLOC_SIZE, 0, MYF(0));
}
return info->ftparser_param;
} | O3 | c | maria_ftparser_alloc_param:
movq 0x368(%rdi), %rax
testq %rax, %rax
je 0x6feee
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movl 0x748(%rax), %esi
shlq $0x7, %rsi
movl $0x30, %edx
xorl %edi, %edi
callq 0xc3acd
movq %rax, 0x368(%rbx)
leaq 0x328(%rbx), %rsi
movl $0x10000, %edx # imm = 0x10000
xorl %edi, %edi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xbde94
movq 0x368(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| maria_ftparser_alloc_param:
mov rax, [rdi+368h]
test rax, rax
jz short loc_6FEEE
retn
loc_6FEEE:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rax, [rdi]
mov esi, [rax+748h]
shl rsi, 7
mov edx, 30h ; '0'
xor edi, edi
call my_malloc
mov [rbx+368h], rax
lea rsi, [rbx+328h]
mov edx, 10000h
xor edi, edi
xor ecx, ecx
xor r8d, r8d
call init_alloc_root
mov rax, [rbx+368h]
add rsp, 8
pop rbx
pop rbp
retn
| long long maria_ftparser_alloc_param(_QWORD *a1)
{
long long result; // rax
result = a1[109];
if ( !result )
{
a1[109] = my_malloc(0LL, (unsigned long long)*(unsigned int *)(*a1 + 1864LL) << 7, 48LL);
init_alloc_root(0LL, a1 + 101, 0x10000LL, 0LL, 0LL);
return a1[109];
}
return result;
}
| maria_ftparser_alloc_param:
MOV RAX,qword ptr [RDI + 0x368]
TEST RAX,RAX
JZ 0x0016feee
RET
LAB_0016feee:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV ESI,dword ptr [RAX + 0x748]
SHL RSI,0x7
MOV EDX,0x30
XOR EDI,EDI
CALL 0x001c3acd
MOV qword ptr [RBX + 0x368],RAX
LEA RSI,[RBX + 0x328]
MOV EDX,0x10000
XOR EDI,EDI
XOR ECX,ECX
XOR R8D,R8D
CALL 0x001bde94
MOV RAX,qword ptr [RBX + 0x368]
ADD RSP,0x8
POP RBX
POP RBP
RET
|
long maria_ftparser_alloc_param(long *param_1)
{
long lVar1;
int8 in_R9;
long lVar2;
lVar2 = param_1[0x6d];
if (lVar2 != 0) {
return lVar2;
}
lVar1 = my_malloc(0,(ulong)*(uint *)(*param_1 + 0x748) << 7,0x30);
param_1[0x6d] = lVar1;
init_alloc_root(0,param_1 + 0x65,0x10000,0,0,in_R9,lVar2);
return param_1[0x6d];
}
| |
23,209 | fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>::get(int) const | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h | FMT_CONSTEXPR auto get(int id) const -> format_arg {
format_arg arg;
if (!is_packed()) {
if (id < max_size()) arg = args_[id];
return arg;
}
if (id >= detail::max_packed_args) return arg;
arg.type_ = type(id);
if (arg.type_ == detail::type::none_type) return arg;
arg.value_ = values_[id];
return arg;
} | O0 | c | fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>::get(int) const:
subq $0x38, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
callq 0x8d0d0
movq 0x20(%rsp), %rdi
callq 0x8d110
testb $0x1, %al
jne 0x8b813
movq 0x20(%rsp), %rdi
movl 0x2c(%rsp), %eax
movl %eax, 0xc(%rsp)
callq 0x8d140
movl %eax, %ecx
movl 0xc(%rsp), %eax
cmpl %ecx, %eax
jge 0x8b811
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
movslq 0x2c(%rsp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movl 0x10(%rcx), %ecx
movl %ecx, 0x10(%rax)
jmp 0x8b864
cmpl $0xf, 0x2c(%rsp)
jl 0x8b81c
jmp 0x8b864
movq 0x20(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x8d1a0
movl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x10(%rax)
cmpl $0x0, 0x10(%rax)
jne 0x8b83c
jmp 0x8b864
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
movslq 0x2c(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rax
addq $0x38, %rsp
retq
nop
| _ZNK3fmt3v1017basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEE3getEi:
sub rsp, 38h
mov [rsp+38h+var_28], rdi
mov rax, rdi
mov [rsp+38h+var_20], rax
mov [rsp+38h+var_8], rsi
mov [rsp+38h+var_C], edx
mov rax, [rsp+38h+var_8]
mov [rsp+38h+var_18], rax
call _ZN3fmt3v1016basic_format_argINS0_20basic_format_contextINS0_8appenderEcEEEC2Ev; fmt::v10::basic_format_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>>::basic_format_arg(void)
mov rdi, [rsp+38h+var_18]
call _ZNK3fmt3v1017basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEE9is_packedEv; fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::is_packed(void)
test al, 1
jnz short loc_8B813
mov rdi, [rsp+38h+var_18]
mov eax, [rsp+38h+var_C]
mov [rsp+38h+var_2C], eax
call _ZNK3fmt3v1017basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEE8max_sizeEv; fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::max_size(void)
mov ecx, eax
mov eax, [rsp+38h+var_2C]
cmp eax, ecx
jge short loc_8B811
mov rax, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_18]
mov rcx, [rcx+8]
movsxd rdx, [rsp+38h+var_C]
shl rdx, 5
add rcx, rdx
mov rdx, [rcx]
mov [rax], rdx
mov rdx, [rcx+8]
mov [rax+8], rdx
mov ecx, [rcx+10h]
mov [rax+10h], ecx
loc_8B811:
jmp short loc_8B864
loc_8B813:
cmp [rsp+38h+var_C], 0Fh
jl short loc_8B81C
jmp short loc_8B864
loc_8B81C:
mov rdi, [rsp+38h+var_18]
mov esi, [rsp+38h+var_C]
call _ZNK3fmt3v1017basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEE4typeEi; fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::type(int)
mov ecx, eax
mov rax, [rsp+38h+var_28]
mov [rax+10h], ecx
cmp dword ptr [rax+10h], 0
jnz short loc_8B83C
jmp short loc_8B864
loc_8B83C:
mov rax, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_18]
mov rcx, [rcx+8]
movsxd rdx, [rsp+38h+var_C]
shl rdx, 4
add rcx, rdx
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
loc_8B864:
mov rax, [rsp+38h+var_20]
add rsp, 38h
retn
| long long fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::get(
long long a1,
long long a2,
int a3)
{
long long v3; // rcx
_QWORD *v4; // rcx
fmt::v10::basic_format_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>>::basic_format_arg();
if ( (fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::is_packed(a2) & 1) != 0 )
{
if ( a3 < 15 )
{
*(_DWORD *)(a1 + 16) = fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::type(
a2,
(unsigned int)a3);
if ( *(_DWORD *)(a1 + 16) )
{
v4 = (_QWORD *)(16LL * a3 + *(_QWORD *)(a2 + 8));
*(_QWORD *)a1 = *v4;
*(_QWORD *)(a1 + 8) = v4[1];
}
}
}
else if ( a3 < (int)fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::max_size(a2) )
{
v3 = 32LL * a3 + *(_QWORD *)(a2 + 8);
*(_QWORD *)a1 = *(_QWORD *)v3;
*(_QWORD *)(a1 + 8) = *(_QWORD *)(v3 + 8);
*(_DWORD *)(a1 + 16) = *(_DWORD *)(v3 + 16);
}
return a1;
}
| get:
SUB RSP,0x38
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x30],RSI
MOV dword ptr [RSP + 0x2c],EDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x20],RAX
CALL 0x0018d0d0
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x0018d110
TEST AL,0x1
JNZ 0x0018b813
MOV RDI,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0xc],EAX
CALL 0x0018d140
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0xc]
CMP EAX,ECX
JGE 0x0018b811
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x8]
MOVSXD RDX,dword ptr [RSP + 0x2c]
SHL RDX,0x5
ADD RCX,RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RDX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV ECX,dword ptr [RCX + 0x10]
MOV dword ptr [RAX + 0x10],ECX
LAB_0018b811:
JMP 0x0018b864
LAB_0018b813:
CMP dword ptr [RSP + 0x2c],0xf
JL 0x0018b81c
JMP 0x0018b864
LAB_0018b81c:
MOV RDI,qword ptr [RSP + 0x20]
MOV ESI,dword ptr [RSP + 0x2c]
CALL 0x0018d1a0
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x10]
MOV dword ptr [RAX + 0x10],ECX
CMP dword ptr [RAX + 0x10],0x0
JNZ 0x0018b83c
JMP 0x0018b864
LAB_0018b83c:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x8]
MOVSXD RDX,dword ptr [RSP + 0x2c]
SHL RDX,0x4
ADD RCX,RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_0018b864:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x38
RET
|
/* fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >::get(int)
const */
basic_format_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>> *
fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>::get
(int param_1)
{
int iVar1;
int4 uVar2;
ulong uVar3;
int8 *puVar4;
int in_EDX;
basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>> *in_RSI;
int4 in_register_0000003c;
basic_format_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>> *this;
this = (basic_format_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>> *)
CONCAT44(in_register_0000003c,param_1);
basic_format_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>>::basic_format_arg(this);
uVar3 = is_packed(in_RSI);
if ((uVar3 & 1) == 0) {
iVar1 = max_size(in_RSI);
if (in_EDX < iVar1) {
puVar4 = (int8 *)(*(long *)(in_RSI + 8) + (long)in_EDX * 0x20);
*(int8 *)this = *puVar4;
*(int8 *)(this + 8) = puVar4[1];
*(int4 *)(this + 0x10) = *(int4 *)(puVar4 + 2);
}
}
else if (in_EDX < 0xf) {
uVar2 = type(in_RSI,in_EDX);
*(int4 *)(this + 0x10) = uVar2;
if (*(int *)(this + 0x10) != 0) {
puVar4 = (int8 *)(*(long *)(in_RSI + 8) + (long)in_EDX * 0x10);
*(int8 *)this = *puVar4;
*(int8 *)(this + 8) = puVar4[1];
}
}
return this;
}
| |
23,210 | test_returning | eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c | static int test_returning(MYSQL *mysql)
{
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
MYSQL_RES *result;
int rc;
diag("MDEV-23768 not fixed yet");
mysql_stmt_close(stmt);
return SKIP;
rc= mysql_query(mysql, "CREATE TEMPORARY TABLE t1 (a int not null auto_increment primary key, b json)");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "INSERT INTO t1 (a,b) VALUES (NULL, '[incorrect json]') RETURNING a");
check_mysql_rc(rc, mysql);
if (!rc) diag("should have fail");
result= mysql_store_result(mysql);
mysql_free_result(result);
diag("Error: %s", mysql_error(mysql));
rc= mysql_stmt_prepare(stmt, SL("INSERT INTO t1 (a,b) VALUES (NULL, '[incorrect json]') RETURNING a"));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_close(stmt);
return OK;
} | O0 | c | test_returning:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x44950
movq %rax, -0x10(%rbp)
leaq 0x4f3d3(%rip), %rdi # 0x665e3
movb $0x0, %al
callq 0x2fc40
movq -0x10(%rbp), %rdi
callq 0x43eb0
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| test_returning:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call mysql_stmt_init
mov [rbp+var_10], rax
lea rdi, aMdev23768NotFi; "MDEV-23768 not fixed yet"
mov al, 0
call diag
mov rdi, [rbp+var_10]
call mysql_stmt_close
mov eax, 0FFFFFFFFh
add rsp, 20h
pop rbp
retn
| long long test_returning(long long a1, int a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
long long v7; // [rsp+10h] [rbp-10h]
v7 = mysql_stmt_init(a1);
diag((unsigned int)"MDEV-23768 not fixed yet", a2, v2, v3, v4, v5);
mysql_stmt_close(v7);
return 0xFFFFFFFFLL;
}
| test_returning:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00144950
MOV qword ptr [RBP + -0x10],RAX
LEA RDI,[0x1665e3]
MOV AL,0x0
CALL 0x0012fc40
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00143eb0
MOV EAX,0xffffffff
ADD RSP,0x20
POP RBP
RET
|
int8 test_returning(int8 param_1)
{
int8 uVar1;
uVar1 = mysql_stmt_init(param_1);
diag("MDEV-23768 not fixed yet");
mysql_stmt_close(uVar1);
return 0xffffffff;
}
| |
23,211 | testing::internal::FilePath::FileOrDirectoryExists() const | giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-filepath.cc | bool FilePath::FileOrDirectoryExists() const {
#ifdef GTEST_OS_WINDOWS_MOBILE
LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str());
const DWORD attributes = GetFileAttributes(unicode);
delete[] unicode;
return attributes != kInvalidFileAttributes;
#else
posix::StatStruct file_stat{};
return posix::Stat(pathname_.c_str(), &file_stat) == 0;
#endif // GTEST_OS_WINDOWS_MOBILE
} | O3 | cpp | testing::internal::FilePath::FileOrDirectoryExists() const:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0x90, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x82b0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x8440
testl %eax, %eax
sete %al
addq $0x98, %rsp
popq %rbx
popq %r14
retq
| _ZNK7testing8internal8FilePath21FileOrDirectoryExistsEv:
push r14
push rbx
sub rsp, 98h
mov rbx, rdi
lea r14, [rsp+0A8h+var_A0]
mov edx, 90h
mov rdi, r14
xor esi, esi
call _memset
mov rdi, [rbx]
mov rsi, r14
call _stat
test eax, eax
setz al
add rsp, 98h
pop rbx
pop r14
retn
| bool testing::internal::FilePath::FileOrDirectoryExists(testing::internal::FilePath *this)
{
_BYTE v2[160]; // [rsp+8h] [rbp-A0h] BYREF
memset(v2, 0LL, 144LL);
return (unsigned int)stat(*(_QWORD *)this, v2) == 0;
}
| FileOrDirectoryExists:
PUSH R14
PUSH RBX
SUB RSP,0x98
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV EDX,0x90
MOV RDI,R14
XOR ESI,ESI
CALL 0x001082b0
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x00108440
TEST EAX,EAX
SETZ AL
ADD RSP,0x98
POP RBX
POP R14
RET
|
/* testing::internal::FilePath::FileOrDirectoryExists() const */
int8 __thiscall testing::internal::FilePath::FileOrDirectoryExists(FilePath *this)
{
int iVar1;
int4 extraout_var;
stat local_a0;
memset(&local_a0,0,0x90);
iVar1 = stat(*(char **)this,&local_a0);
return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),iVar1 == 0);
}
| |
23,212 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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>>::~iteration_proxy_value() | monkey531[P]llama/common/json.hpp | ~iteration_proxy_value() = default; | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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>>::~iteration_proxy_value():
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0xaa636
movq (%rax), %rsi
incq %rsi
callq 0x1a8d0
movq 0x30(%rbx), %rdi
addq $0x40, %rbx
cmpq %rbx, %rdi
je 0xaa64f
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x1a8d0
popq %rbx
retq
nop
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+50h]; void *
lea rax, [rbx+60h]
cmp rdi, rax
jz short loc_AA636
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA636:
mov rdi, [rbx+30h]; void *
add rbx, 40h ; '@'
cmp rdi, rbx
jz short loc_AA64F
mov rsi, [rbx]
inc rsi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_AA64F:
pop rbx
retn
| void nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(
_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // rbx
v2 = (_QWORD *)a1[10];
if ( v2 != a1 + 12 )
operator delete(v2, a1[12] + 1LL);
v3 = (_QWORD *)a1[6];
v4 = a1 + 8;
if ( v3 != v4 )
operator delete(v3, *v4 + 1LL);
}
| ~iteration_proxy_value:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x50]
LEA RAX,[RBX + 0x60]
CMP RDI,RAX
JZ 0x001aa636
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011a8d0
LAB_001aa636:
MOV RDI,qword ptr [RBX + 0x30]
ADD RBX,0x40
CMP RDI,RBX
JZ 0x001aa64f
MOV RSI,qword ptr [RBX]
INC RSI
POP RBX
JMP 0x0011a8d0
LAB_001aa64f:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<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::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const> >::~iteration_proxy_value() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::~iteration_proxy_value
(iteration_proxy_value<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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
*this)
{
if (*(iteration_proxy_value<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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x50) != this + 0x60) {
operator_delete(*(iteration_proxy_value<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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x50),*(long *)(this + 0x60) + 1);
}
if (*(iteration_proxy_value<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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x30) != this + 0x40) {
operator_delete(*(iteration_proxy_value<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::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
**)(this + 0x30),*(long *)(this + 0x40) + 1);
return;
}
return;
}
| |
23,213 | write_hook_for_undo_key_insert | eloqsql/storage/maria/ma_key_recover.c | my_bool write_hook_for_undo_key_insert(enum translog_record_type type,
TRN *trn, MARIA_HA *tbl_info,
LSN *lsn, void *hook_arg)
{
struct st_msg_to_write_hook_for_undo_key *msg=
(struct st_msg_to_write_hook_for_undo_key *) hook_arg;
MARIA_SHARE *share= tbl_info->s;
if (msg->auto_increment > 0)
{
/*
Only reason to set it here is to have a mutex protect from checkpoint
reading at the same time (would see a corrupted value).
The purpose of the following code is to set auto_increment if the row
has a with auto_increment value higher than the current one. We also
want to be able to restore the old value, in case of rollback,
if no one else has tried to set the value.
The logic used is that we only restore the auto_increment value if
tbl_info->last_auto_increment == share->last_auto_increment
when it's time to do the rollback.
*/
DBUG_PRINT("info",("auto_inc: %lu new auto_inc: %lu",
(ulong)share->state.auto_increment,
(ulong)msg->auto_increment));
if (share->state.auto_increment < msg->auto_increment)
{
/* Remember the original value, in case of rollback */
tbl_info->last_auto_increment= share->last_auto_increment=
share->state.auto_increment;
share->state.auto_increment= msg->auto_increment;
}
else
{
/*
If the current value would have affected the original auto_increment
value, set it to an impossible value so that it's not restored on
rollback
*/
if (msg->auto_increment > share->last_auto_increment)
share->last_auto_increment= ~(ulonglong) 0;
}
}
return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg);
} | O3 | c | write_hook_for_undo_key_insert:
movq 0x18(%r8), %r9
testq %r9, %r9
je 0x5aa62
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rax
movq 0xd8(%rax), %r10
cmpq %r9, %r10
jae 0x5aaeb
movq %r10, 0x610(%rax)
movq %r10, 0x3e8(%rdx)
movq 0x18(%r8), %r9
movq %r9, 0xd8(%rax)
jmp 0x5aaff
cmpq 0x610(%rax), %r9
jbe 0x5aaff
movq $-0x1, 0x610(%rax)
popq %rbp
jmp 0x5aa62
| write_hook_for_undo_key_insert:
mov r9, [r8+18h]
test r9, r9
jz write_hook_for_undo_key
push rbp
mov rbp, rsp
mov rax, [rdx]
mov r10, [rax+0D8h]
cmp r10, r9
jnb short loc_5AAEB
mov [rax+610h], r10
mov [rdx+3E8h], r10
mov r9, [r8+18h]
mov [rax+0D8h], r9
jmp short loc_5AAFF
loc_5AAEB:
cmp r9, [rax+610h]
jbe short loc_5AAFF
mov qword ptr [rax+610h], 0FFFFFFFFFFFFFFFFh
loc_5AAFF:
pop rbp
jmp write_hook_for_undo_key
| long long write_hook_for_undo_key_insert(unsigned int a1, long long a2, long long a3, long long a4, long long a5)
{
unsigned long long v5; // r9
long long v7; // rax
unsigned long long v8; // r10
v5 = *(_QWORD *)(a5 + 24);
if ( v5 )
{
v7 = *(_QWORD *)a3;
v8 = *(_QWORD *)(*(_QWORD *)a3 + 216LL);
if ( v8 >= v5 )
{
if ( v5 > *(_QWORD *)(v7 + 1552) )
*(_QWORD *)(v7 + 1552) = -1LL;
}
else
{
*(_QWORD *)(v7 + 1552) = v8;
*(_QWORD *)(a3 + 1000) = v8;
*(_QWORD *)(v7 + 216) = *(_QWORD *)(a5 + 24);
}
}
return write_hook_for_undo_key(a1, a2, a3, a4, a5);
}
| write_hook_for_undo_key_insert:
MOV R9,qword ptr [R8 + 0x18]
TEST R9,R9
JZ 0x0015aa62
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDX]
MOV R10,qword ptr [RAX + 0xd8]
CMP R10,R9
JNC 0x0015aaeb
MOV qword ptr [RAX + 0x610],R10
MOV qword ptr [RDX + 0x3e8],R10
MOV R9,qword ptr [R8 + 0x18]
MOV qword ptr [RAX + 0xd8],R9
JMP 0x0015aaff
LAB_0015aaeb:
CMP R9,qword ptr [RAX + 0x610]
JBE 0x0015aaff
MOV qword ptr [RAX + 0x610],-0x1
LAB_0015aaff:
POP RBP
JMP 0x0015aa62
|
void write_hook_for_undo_key_insert
(int4 param_1,int8 param_2,long *param_3,int8 param_4,
int8 *param_5)
{
ulong uVar1;
long lVar2;
ulong uVar3;
uVar1 = param_5[3];
if (uVar1 != 0) {
lVar2 = *param_3;
uVar3 = *(ulong *)(lVar2 + 0xd8);
if (uVar3 < uVar1) {
*(ulong *)(lVar2 + 0x610) = uVar3;
param_3[0x7d] = uVar3;
*(int8 *)(lVar2 + 0xd8) = param_5[3];
}
else if (*(ulong *)(lVar2 + 0x610) < uVar1) {
*(int8 *)(lVar2 + 0x610) = 0xffffffffffffffff;
}
write_hook_for_undo_key();
return;
}
*(int8 *)*param_5 = param_5[1];
if (*(char *)((long)param_3 + 0x67e) != '\0') {
_ma_unlock_key_del(param_3);
}
write_hook_for_undo(param_1,param_2,param_3,param_4,0);
return;
}
| |
23,214 | my_strnxfrm_simple | eloqsql/strings/ctype-simple.c | size_t my_strnxfrm_simple(CHARSET_INFO * cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
uchar *d0= dst;
dst= d0 + my_strnxfrm_simple_internal(cs, dst, dstlen, &nweights,
src, srclen);
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, d0 + dstlen,
nweights, flags, 0);
} | O0 | c | my_strnxfrm_simple:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
leaq -0x1c(%rbp), %rcx
callq 0x4a640
movq %rax, %rcx
movq -0x40(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rcx
addq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x4a7e0
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_simple:
push rbp
mov rbp, rsp
sub rsp, 50h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov r8, [rbp+var_28]
mov r9, [rbp+var_30]
lea rcx, [rbp+var_1C]
call my_strnxfrm_simple_internal
mov rcx, rax
mov rax, [rbp+var_40]
add rax, rcx
mov [rbp+var_10], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_38]
add rcx, [rbp+var_18]
mov r8d, [rbp+var_1C]
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+50h+var_50], 0
call my_strxfrm_pad_desc_and_reverse
add rsp, 50h
pop rbp
retn
| long long my_strnxfrm_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned int a4,
unsigned __int8 *a5,
unsigned long long a6,
int a7)
{
_BYTE *v7; // rax
unsigned int v9; // [rsp+34h] [rbp-1Ch] BYREF
unsigned long long v10; // [rsp+38h] [rbp-18h]
unsigned __int8 *v11; // [rsp+40h] [rbp-10h]
long long v12; // [rsp+48h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = a4;
v7 = my_strnxfrm_simple_internal(a1, a2, a3, &v9, a5, a6);
v11 = &a2[(_QWORD)v7];
return my_strxfrm_pad_desc_and_reverse(v12, (_DWORD)a2, (int)v7 + (int)a2, (int)v10 + (int)a2, v9, a7, 0);
}
| my_strnxfrm_simple:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x28]
MOV R9,qword ptr [RBP + -0x30]
LEA RCX,[RBP + -0x1c]
CALL 0x0014a640
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,qword ptr [RBP + -0x18]
MOV R8D,dword ptr [RBP + -0x1c]
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x0014a7e0
ADD RSP,0x50
POP RBP
RET
|
void my_strnxfrm_simple(int8 param_1,long param_2,long param_3,int4 param_4,
int8 param_5,int8 param_6,int4 param_7)
{
int4 local_24;
long local_20;
long local_18;
int8 local_10;
local_24 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_18 = my_strnxfrm_simple_internal(param_1,param_2,param_3,&local_24,param_5,param_6);
local_18 = param_2 + local_18;
my_strxfrm_pad_desc_and_reverse(local_10,param_2,local_18,param_2 + local_20,local_24,param_7,0);
return;
}
| |
23,215 | rw_pr_unlock | eloqsql/mysys/thr_rwlock.c | int rw_pr_unlock(rw_pr_lock_t *rwlock)
{
if (rwlock->active_writer)
{
/* We are unlocking wr-lock. */
#ifdef SAFE_MUTEX
rwlock->writer_thread= 0;
#endif
rwlock->active_writer= FALSE;
if (rwlock->writers_waiting_readers)
{
/*
Avoid expensive cond signal in case when there is no contention
or it is wr-only.
Note that from view point of performance it would be better to
signal on the condition variable after unlocking mutex (as it
reduces number of contex switches).
Unfortunately this would mean that such rwlock can't be safely
used by MDL subsystem, which relies on the fact that it is OK
to destroy rwlock once it is in unlocked state.
*/
pthread_cond_signal(&rwlock->no_active_readers);
}
pthread_mutex_unlock(&rwlock->lock);
}
else
{
/* We are unlocking rd-lock. */
pthread_mutex_lock(&rwlock->lock);
rwlock->active_readers--;
if (rwlock->active_readers == 0 &&
rwlock->writers_waiting_readers)
{
/*
If we are last reader and there are waiting
writers wake them up.
*/
pthread_cond_signal(&rwlock->no_active_readers);
}
pthread_mutex_unlock(&rwlock->lock);
}
return 0;
} | O3 | c | rw_pr_unlock:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x60(%rdi)
je 0x64144
movb $0x0, 0x60(%rbx)
cmpl $0x0, 0x5c(%rbx)
je 0x64151
leaq 0x28(%rbx), %rdi
callq 0x36750
jmp 0x64151
movq %rbx, %rdi
callq 0x36280
decl 0x58(%rbx)
je 0x64133
movq %rbx, %rdi
callq 0x36240
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
| rw_pr_unlock:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
cmp byte ptr [rdi+60h], 0
jz short loc_64144
mov byte ptr [rbx+60h], 0
loc_64133:
cmp dword ptr [rbx+5Ch], 0
jz short loc_64151
lea rdi, [rbx+28h]
call _pthread_cond_signal
jmp short loc_64151
loc_64144:
mov rdi, rbx
call _pthread_mutex_lock
dec dword ptr [rbx+58h]
jz short loc_64133
loc_64151:
mov rdi, rbx
call _pthread_mutex_unlock
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
| long long rw_pr_unlock(long long a1)
{
if ( *(_BYTE *)(a1 + 96) )
{
*(_BYTE *)(a1 + 96) = 0;
}
else
{
pthread_mutex_lock(a1);
if ( (*(_DWORD *)(a1 + 88))-- != 1 )
goto LABEL_6;
}
if ( *(_DWORD *)(a1 + 92) )
pthread_cond_signal(a1 + 40);
LABEL_6:
pthread_mutex_unlock(a1);
return 0LL;
}
| rw_pr_unlock:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP byte ptr [RDI + 0x60],0x0
JZ 0x00164144
MOV byte ptr [RBX + 0x60],0x0
LAB_00164133:
CMP dword ptr [RBX + 0x5c],0x0
JZ 0x00164151
LEA RDI,[RBX + 0x28]
CALL 0x00136750
JMP 0x00164151
LAB_00164144:
MOV RDI,RBX
CALL 0x00136280
DEC dword ptr [RBX + 0x58]
JZ 0x00164133
LAB_00164151:
MOV RDI,RBX
CALL 0x00136240
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 rw_pr_unlock(pthread_mutex_t *param_1)
{
int *piVar1;
if (*(char *)((long)param_1 + 0x60) == '\0') {
pthread_mutex_lock(param_1);
piVar1 = (int *)((long)param_1 + 0x58);
*piVar1 = *piVar1 + -1;
if (*piVar1 != 0) goto LAB_00164151;
}
else {
*(int1 *)((long)param_1 + 0x60) = 0;
}
if (*(int *)((long)param_1 + 0x5c) != 0) {
pthread_cond_signal((pthread_cond_t *)(param_1 + 1));
}
LAB_00164151:
pthread_mutex_unlock(param_1);
return 0;
}
| |
23,216 | js_array_copyWithin | bluesky950520[P]quickjs/quickjs.c | static JSValue js_array_copyWithin(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
int64_t len, from, to, final, count;
obj = JS_ToObject(ctx, this_val);
if (js_get_length64(ctx, &len, obj))
goto exception;
if (JS_ToInt64Clamp(ctx, &to, argv[0], 0, len, len))
goto exception;
if (JS_ToInt64Clamp(ctx, &from, argv[1], 0, len, len))
goto exception;
final = len;
if (argc > 2 && !JS_IsUndefined(argv[2])) {
if (JS_ToInt64Clamp(ctx, &final, argv[2], 0, len, len))
goto exception;
}
count = min_int64(final - from, len - to);
if (JS_CopySubArray(ctx, obj, to, from, count,
(from < to && to < from + count) ? -1 : +1))
goto exception;
return obj;
exception:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
} | O2 | c | js_array_copyWithin:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r13
movl %ecx, %ebp
movq %rdi, %r15
callq 0x24742
movq %rax, %r14
movq %rdx, %rbx
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x207f3
testl %eax, %eax
jne 0x686c3
movq 0x20(%rsp), %r12
movq (%r13), %rdx
movq 0x8(%r13), %rcx
movq %r12, (%rsp)
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
xorl %r8d, %r8d
movq %r12, %r9
callq 0x25067
testl %eax, %eax
jne 0x686c3
movq 0x10(%r13), %rdx
movq 0x18(%r13), %rcx
movq %r12, (%rsp)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
xorl %r8d, %r8d
movq %r12, %r9
callq 0x25067
testl %eax, %eax
jne 0x686c3
movq %r12, 0x8(%rsp)
movq %r12, %rax
cmpl $0x3, %ebp
jl 0x6867a
movq 0x28(%r13), %rcx
movq %r12, %rax
cmpl $0x3, %ecx
je 0x6867a
movq 0x20(%r13), %rdx
movq %r12, (%rsp)
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %r8d, %r8d
movq %r12, %r9
callq 0x25067
testl %eax, %eax
jne 0x686c3
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %r8
subq %r8, %rax
movq 0x10(%rsp), %rcx
subq %rcx, %r12
cmpq %r12, %rax
cmovlq %rax, %r12
cmpq %rcx, %r8
setl %al
leaq (%r12,%r8), %rdx
cmpq %rdx, %rcx
setl %dl
andb %al, %dl
movzbl %dl, %eax
negl %eax
orl $0x1, %eax
movl %eax, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %r9
callq 0x4601a
testl %eax, %eax
je 0x686d7
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1bbce
pushq $0x6
popq %rbx
xorl %r14d, %r14d
movq %r14, %rax
movq %rbx, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_array_copyWithin:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r13, r8
mov ebp, ecx
mov r15, rdi
call JS_ToObject
mov r14, rax
mov rbx, rdx
lea rsi, [rsp+58h+var_38]
mov rdi, r15
mov rdx, rax
mov rcx, rbx
call js_get_length64
test eax, eax
jnz loc_686C3
mov r12, [rsp+58h+var_38]
mov rdx, [r13+0]
mov rcx, [r13+8]
mov [rsp+58h+var_58], r12
lea rsi, [rsp+58h+var_48]
mov rdi, r15
xor r8d, r8d
mov r9, r12
call JS_ToInt64Clamp
test eax, eax
jnz loc_686C3
mov rdx, [r13+10h]
mov rcx, [r13+18h]
mov [rsp+58h+var_58], r12
lea rsi, [rsp+58h+var_40]
mov rdi, r15
xor r8d, r8d
mov r9, r12
call JS_ToInt64Clamp
test eax, eax
jnz loc_686C3
mov [rsp+58h+var_50], r12
mov rax, r12
cmp ebp, 3
jl short loc_6867A
mov rcx, [r13+28h]
mov rax, r12
cmp ecx, 3
jz short loc_6867A
mov rdx, [r13+20h]
mov [rsp+58h+var_58], r12
lea rsi, [rsp+58h+var_50]
mov rdi, r15
xor r8d, r8d
mov r9, r12
call JS_ToInt64Clamp
test eax, eax
jnz short loc_686C3
mov rax, [rsp+58h+var_50]
loc_6867A:
mov r8, [rsp+58h+var_40]
sub rax, r8
mov rcx, [rsp+58h+var_48]
sub r12, rcx
cmp rax, r12
cmovl r12, rax
cmp r8, rcx
setl al
lea rdx, [r12+r8]
cmp rcx, rdx
setl dl
and dl, al
movzx eax, dl
neg eax
or eax, 1
mov dword ptr [rsp+58h+var_58], eax
mov rdi, r15
mov rsi, r14
mov rdx, rbx
mov r9, r12
call JS_CopySubArray
test eax, eax
jz short loc_686D7
loc_686C3:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
push 6
pop rbx
xor r14d, r14d
loc_686D7:
mov rax, r14
mov rdx, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long js_array_copyWithin(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
int v15; // ebp
long long v16; // r14
long long v17; // rdx
long long v18; // rbx
signed long long v19; // r12
double v20; // xmm4_8
double v21; // xmm5_8
unsigned long long v22; // rax
long long v23; // rcx
signed long long v24; // rax
long long v25; // r12
unsigned long long v27; // [rsp+8h] [rbp-50h] BYREF
long long v28; // [rsp+10h] [rbp-48h] BYREF
long long v29; // [rsp+18h] [rbp-40h] BYREF
long long v30[7]; // [rsp+20h] [rbp-38h] BYREF
v15 = a4;
v16 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v18 = v17;
if ( (unsigned int)js_get_length64(a1, v30, v16, v17) )
goto LABEL_11;
v19 = v30[0];
if ( (unsigned int)JS_ToInt64Clamp(
a1,
(unsigned long long *)&v28,
*(_DWORD **)a5,
*(_QWORD *)(a5 + 8),
0LL,
v30[0],
v30[0])
|| (unsigned int)JS_ToInt64Clamp(
a1,
(unsigned long long *)&v29,
*(_DWORD **)(a5 + 16),
*(_QWORD *)(a5 + 24),
0LL,
v19,
v19) )
{
goto LABEL_11;
}
v27 = v19;
v22 = v19;
if ( v15 >= 3 )
{
v23 = *(_QWORD *)(a5 + 40);
v22 = v19;
if ( (_DWORD)v23 != 3 )
{
if ( !(unsigned int)JS_ToInt64Clamp(a1, &v27, *(_DWORD **)(a5 + 32), v23, 0LL, v19, v19) )
{
v22 = v27;
goto LABEL_8;
}
LABEL_11:
JS_FreeValue(a1, v16, v18);
return 0LL;
}
}
LABEL_8:
v24 = v22 - v29;
v25 = v19 - v28;
if ( v24 < v25 )
v25 = v24;
if ( (unsigned int)JS_CopySubArray(
a1,
v16,
v18,
v28,
v29,
v25,
a7,
a8,
a9,
a10,
v20,
v21,
a13,
a14,
v29 < v28 && v28 < v25 + v29 ? -1 : 1) )
goto LABEL_11;
return v16;
}
| js_array_copyWithin:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R13,R8
MOV EBP,ECX
MOV R15,RDI
CALL 0x00124742
MOV R14,RAX
MOV RBX,RDX
LEA RSI,[RSP + 0x20]
MOV RDI,R15
MOV RDX,RAX
MOV RCX,RBX
CALL 0x001207f3
TEST EAX,EAX
JNZ 0x001686c3
MOV R12,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [R13]
MOV RCX,qword ptr [R13 + 0x8]
MOV qword ptr [RSP],R12
LEA RSI,[RSP + 0x10]
MOV RDI,R15
XOR R8D,R8D
MOV R9,R12
CALL 0x00125067
TEST EAX,EAX
JNZ 0x001686c3
MOV RDX,qword ptr [R13 + 0x10]
MOV RCX,qword ptr [R13 + 0x18]
MOV qword ptr [RSP],R12
LEA RSI,[RSP + 0x18]
MOV RDI,R15
XOR R8D,R8D
MOV R9,R12
CALL 0x00125067
TEST EAX,EAX
JNZ 0x001686c3
MOV qword ptr [RSP + 0x8],R12
MOV RAX,R12
CMP EBP,0x3
JL 0x0016867a
MOV RCX,qword ptr [R13 + 0x28]
MOV RAX,R12
CMP ECX,0x3
JZ 0x0016867a
MOV RDX,qword ptr [R13 + 0x20]
MOV qword ptr [RSP],R12
LEA RSI,[RSP + 0x8]
MOV RDI,R15
XOR R8D,R8D
MOV R9,R12
CALL 0x00125067
TEST EAX,EAX
JNZ 0x001686c3
MOV RAX,qword ptr [RSP + 0x8]
LAB_0016867a:
MOV R8,qword ptr [RSP + 0x18]
SUB RAX,R8
MOV RCX,qword ptr [RSP + 0x10]
SUB R12,RCX
CMP RAX,R12
CMOVL R12,RAX
CMP R8,RCX
SETL AL
LEA RDX,[R12 + R8*0x1]
CMP RCX,RDX
SETL DL
AND DL,AL
MOVZX EAX,DL
NEG EAX
OR EAX,0x1
MOV dword ptr [RSP],EAX
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV R9,R12
CALL 0x0014601a
TEST EAX,EAX
JZ 0x001686d7
LAB_001686c3:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011bbce
PUSH 0x6
POP RBX
XOR R14D,R14D
LAB_001686d7:
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_array_copyWithin(int8 param_1,int8 param_2,int8 param_3,int param_4,
int8 *param_5)
{
int iVar1;
int8 uVar2;
int8 uVar3;
long lVar4;
int1 auVar5 [16];
int4 uVar6;
long local_50;
long local_48;
long local_40;
long local_38;
auVar5 = JS_ToObject();
uVar3 = auVar5._8_8_;
uVar2 = auVar5._0_8_;
iVar1 = js_get_length64(param_1,&local_38,uVar2,uVar3);
if ((iVar1 == 0) &&
(iVar1 = JS_ToInt64Clamp(param_1,&local_48,*param_5,param_5[1],0,local_38,local_38), iVar1 == 0
)) {
lVar4 = local_38;
iVar1 = JS_ToInt64Clamp(param_1,&local_40,param_5[2],param_5[3],0,local_38,local_38);
uVar6 = (int4)((ulong)lVar4 >> 0x20);
if (iVar1 == 0) {
local_50 = local_38;
if ((2 < param_4) && ((int)param_5[5] != 3)) {
lVar4 = local_38;
iVar1 = JS_ToInt64Clamp(param_1,&local_50,param_5[4],param_5[5],0,local_38,local_38);
uVar6 = (int4)((ulong)lVar4 >> 0x20);
if (iVar1 != 0) goto LAB_001686c3;
}
lVar4 = local_38 - local_48;
if (local_50 - local_40 < local_38 - local_48) {
lVar4 = local_50 - local_40;
}
iVar1 = JS_CopySubArray(param_1,uVar2,uVar3,local_48,local_40,lVar4,
CONCAT44(uVar6,-(uint)(local_48 < lVar4 + local_40 &&
local_40 < local_48)) | 1);
if (iVar1 == 0) {
return auVar5;
}
}
}
LAB_001686c3:
JS_FreeValue(param_1,uVar2,uVar3);
return ZEXT816(6) << 0x40;
}
| |
23,217 | init_available_charsets | eloqsql/mysys/charset.c | static void init_available_charsets(void)
{
char fname[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
struct charset_info_st **cs;
MY_CHARSET_LOADER loader;
DBUG_ENTER("init_available_charsets");
bzero((char*) &all_charsets,sizeof(all_charsets));
bzero((char*) &my_collation_statistics, sizeof(my_collation_statistics));
my_hash_init2(key_memory_charsets, &charset_name_hash, 16,
&my_charset_latin1, 64, 0, 0, get_charset_key,
0, 0, HASH_UNIQUE);
init_compiled_charsets(MYF(0));
/* Copy compiled charsets */
for (cs= (struct charset_info_st**) all_charsets;
cs < (struct charset_info_st**) all_charsets +
array_elements(all_charsets)-1 ;
cs++)
{
if (*cs)
{
DBUG_ASSERT(cs[0]->mbmaxlen <= MY_CS_MBMAXLEN);
if (cs[0]->m_ctype)
if (init_state_maps(*cs))
*cs= NULL;
}
}
my_charset_loader_init_mysys(&loader);
strmov(get_charsets_dir(fname), MY_CHARSET_INDEX);
my_read_charset_file(&loader, fname, MYF(0));
DBUG_VOID_RETURN;
} | O0 | c | init_available_charsets:
pushq %rbp
movq %rsp, %rbp
subq $0x300, %rsp # imm = 0x300
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
leaq 0x35a7c1(%rip), %rdi # 0x38de20
xorl %esi, %esi
movl $0x4000, %edx # imm = 0x4000
callq 0x24180
leaq 0x35e81e(%rip), %rdi # 0x391e90
xorl %esi, %esi
movl $0x4000, %edx # imm = 0x4000
callq 0x24180
leaq 0x35a487(%rip), %rax # 0x38db0c
movl (%rax), %edi
leaq 0x35e792(%rip), %rsi # 0x391e20
movl $0x10, %edx
leaq 0x248666(%rip), %rcx # 0x27bd00
movl $0x40, %r8d
xorl %eax, %eax
movl %eax, %r9d
leaq 0x1ab4(%rip), %rax # 0x35160
movq $0x0, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x1, 0x20(%rsp)
callq 0x35b80
xorl %eax, %eax
movl %eax, %edi
callq 0x39a10
leaq 0x35a738(%rip), %rax # 0x38de20
movq %rax, -0x2d8(%rbp)
leaq 0x35a72a(%rip), %rax # 0x38de20
addq $0x4000, %rax # imm = 0x4000
addq $-0x8, %rax
cmpq %rax, -0x2d8(%rbp)
jae 0x33766
movq -0x2d8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x33750
jmp 0x33718
jmp 0x3371a
movq -0x2d8(%rbp), %rax
movq (%rax), %rax
cmpq $0x0, 0x40(%rax)
je 0x3374e
movq -0x2d8(%rbp), %rax
movq (%rax), %rdi
callq 0x34cc0
cmpb $0x0, %al
je 0x3374c
movq -0x2d8(%rbp), %rax
movq $0x0, (%rax)
jmp 0x3374e
jmp 0x33750
jmp 0x33752
movq -0x2d8(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x2d8(%rbp)
jmp 0x336ef
leaq -0x2d0(%rbp), %rdi
callq 0x32c60
leaq -0x220(%rbp), %rdi
callq 0x33300
movq %rax, %rdi
leaq 0x4ce90(%rip), %rsi # 0x80618
callq 0x242a0
leaq -0x220(%rbp), %rsi
leaq -0x2d0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x351a0
jmp 0x337a6
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x337c1
addq $0x300, %rsp # imm = 0x300
popq %rbp
retq
callq 0x24300
nopw %cs:(%rax,%rax)
| init_available_charsets:
push rbp
mov rbp, rsp
sub rsp, 300h
mov rax, fs:28h
mov [rbp+var_8], rax
lea rdi, all_charsets
xor esi, esi
mov edx, 4000h
call _memset
lea rdi, my_collation_statistics
xor esi, esi
mov edx, 4000h
call _memset
lea rax, key_memory_charsets
mov edi, [rax]
lea rsi, charset_name_hash
mov edx, 10h
lea rcx, my_charset_latin1
mov r8d, 40h ; '@'
xor eax, eax
mov r9d, eax
lea rax, get_charset_key
mov [rsp+300h+var_300], 0
mov [rsp+300h+var_2F8], rax
mov [rsp+300h+var_2F0], 0
mov [rsp+300h+var_2E8], 0
mov [rsp+300h+var_2E0], 1
call my_hash_init2
xor eax, eax
mov edi, eax
call init_compiled_charsets
lea rax, all_charsets
mov [rbp+var_2D8], rax
loc_336EF:
lea rax, all_charsets
add rax, 4000h
add rax, 0FFFFFFFFFFFFFFF8h
cmp [rbp+var_2D8], rax
jnb short loc_33766
mov rax, [rbp+var_2D8]
cmp qword ptr [rax], 0
jz short loc_33750
jmp short $+2
loc_33718:
jmp short $+2
loc_3371A:
mov rax, [rbp+var_2D8]
mov rax, [rax]
cmp qword ptr [rax+40h], 0
jz short loc_3374E
mov rax, [rbp+var_2D8]
mov rdi, [rax]
call init_state_maps
cmp al, 0
jz short loc_3374C
mov rax, [rbp+var_2D8]
mov qword ptr [rax], 0
loc_3374C:
jmp short $+2
loc_3374E:
jmp short $+2
loc_33750:
jmp short $+2
loc_33752:
mov rax, [rbp+var_2D8]
add rax, 8
mov [rbp+var_2D8], rax
jmp short loc_336EF
loc_33766:
lea rdi, [rbp+var_2D0]
call my_charset_loader_init_mysys
lea rdi, [rbp+var_220]
call get_charsets_dir
mov rdi, rax
lea rsi, aIndexXml; "Index.xml"
call _stpcpy
lea rsi, [rbp+var_220]
lea rdi, [rbp+var_2D0]
xor eax, eax
mov edx, eax
call my_read_charset_file
jmp short $+2
loc_337A6:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_337C1
add rsp, 300h
pop rbp
retn
loc_337C1:
call ___stack_chk_fail
| unsigned long long init_available_charsets()
{
_BYTE *charsets_dir; // rax
_QWORD *i; // [rsp+28h] [rbp-2D8h]
_BYTE v3[176]; // [rsp+30h] [rbp-2D0h] BYREF
_BYTE v4[536]; // [rsp+E0h] [rbp-220h] BYREF
unsigned long long v5; // [rsp+2F8h] [rbp-8h]
v5 = __readfsqword(0x28u);
memset(all_charsets, 0LL, sizeof(all_charsets));
memset(my_collation_statistics, 0LL, sizeof(my_collation_statistics));
my_hash_init2(
key_memory_charsets,
(unsigned int)&charset_name_hash,
16,
(unsigned int)&my_charset_latin1,
64,
0,
0LL,
(long long)get_charset_key,
0LL,
0LL,
1);
init_compiled_charsets(0LL);
for ( i = all_charsets; i < &all_charsets[2047]; ++i )
{
if ( *i && *(_QWORD *)(*i + 64LL) )
{
if ( (unsigned __int8)init_state_maps(*i) )
*i = 0LL;
}
}
my_charset_loader_init_mysys((long long)v3);
charsets_dir = get_charsets_dir(v4);
stpcpy(charsets_dir, "Index.xml");
my_read_charset_file(v3, v4, 0LL);
return __readfsqword(0x28u);
}
| init_available_charsets:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x300
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[0x48de20]
XOR ESI,ESI
MOV EDX,0x4000
CALL 0x00124180
LEA RDI,[0x491e90]
XOR ESI,ESI
MOV EDX,0x4000
CALL 0x00124180
LEA RAX,[0x48db0c]
MOV EDI,dword ptr [RAX]
LEA RSI,[0x491e20]
MOV EDX,0x10
LEA RCX,[0x37bd00]
MOV R8D,0x40
XOR EAX,EAX
MOV R9D,EAX
LEA RAX,[0x135160]
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x20],0x1
CALL 0x00135b80
XOR EAX,EAX
MOV EDI,EAX
CALL 0x00139a10
LEA RAX,[0x48de20]
MOV qword ptr [RBP + -0x2d8],RAX
LAB_001336ef:
LEA RAX,[0x48de20]
ADD RAX,0x4000
ADD RAX,-0x8
CMP qword ptr [RBP + -0x2d8],RAX
JNC 0x00133766
MOV RAX,qword ptr [RBP + -0x2d8]
CMP qword ptr [RAX],0x0
JZ 0x00133750
JMP 0x00133718
LAB_00133718:
JMP 0x0013371a
LAB_0013371a:
MOV RAX,qword ptr [RBP + -0x2d8]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x40],0x0
JZ 0x0013374e
MOV RAX,qword ptr [RBP + -0x2d8]
MOV RDI,qword ptr [RAX]
CALL 0x00134cc0
CMP AL,0x0
JZ 0x0013374c
MOV RAX,qword ptr [RBP + -0x2d8]
MOV qword ptr [RAX],0x0
LAB_0013374c:
JMP 0x0013374e
LAB_0013374e:
JMP 0x00133750
LAB_00133750:
JMP 0x00133752
LAB_00133752:
MOV RAX,qword ptr [RBP + -0x2d8]
ADD RAX,0x8
MOV qword ptr [RBP + -0x2d8],RAX
JMP 0x001336ef
LAB_00133766:
LEA RDI,[RBP + -0x2d0]
CALL 0x00132c60
LEA RDI,[RBP + -0x220]
CALL 0x00133300
MOV RDI,RAX
LEA RSI,[0x180618]
CALL 0x001242a0
LEA RSI,[RBP + -0x220]
LEA RDI,[RBP + -0x2d0]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001351a0
JMP 0x001337a6
LAB_001337a6:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001337c1
ADD RSP,0x300
POP RBP
RET
LAB_001337c1:
CALL 0x00124300
|
void init_available_charsets(void)
{
char cVar1;
char *__dest;
long in_FS_OFFSET;
long *local_2e0;
int1 local_2d8 [176];
int1 local_228 [536];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
memset(&all_charsets,0,0x4000);
memset(my_collation_statistics,0,0x4000);
my_hash_init2(key_memory_charsets,charset_name_hash,0x10,&my_charset_latin1,0x40,0,0,
get_charset_key,0,0,1);
init_compiled_charsets(0);
for (local_2e0 = &all_charsets; local_2e0 < (long *)0x491e18; local_2e0 = local_2e0 + 1) {
if (((*local_2e0 != 0) && (*(long *)(*local_2e0 + 0x40) != 0)) &&
(cVar1 = init_state_maps(*local_2e0), cVar1 != '\0')) {
*local_2e0 = 0;
}
}
my_charset_loader_init_mysys(local_2d8);
__dest = (char *)get_charsets_dir(local_228);
stpcpy(__dest,"Index.xml");
my_read_charset_file(local_2d8,local_228,0);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
23,218 | testing::internal::PrintStringTo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::ostream*) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-printers.cc | void PrintStringTo(const ::std::string& s, ostream* os) {
if (PrintCharsAsStringTo(s.data(), s.size(), os) == kHexEscape) {
if (GTEST_FLAG_GET(print_utf8)) {
ConditionalPrintAsText(s.data(), s.size(), os);
}
}
} | O1 | cpp | testing::internal::PrintStringTo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::ostream*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %rdi
movq 0x8(%r15), %rsi
movq %rbx, %rdx
callq 0x1811e
testl %eax, %eax
je 0x180d6
cmpb $0x1, 0x41773(%rip) # 0x59680
jne 0x180d6
movq %rbx, (%rsp)
movq (%r15), %r14
movq 0x8(%r15), %r15
testq %r15, %r15
setne %r12b
je 0x17f69
movq %r15, %r13
negq %r13
movl $0x1, %ebx
movzbl -0x1(%r14,%rbx), %ebp
movl %ebp, %edi
callq 0x8820
testl %eax, %eax
je 0x17f52
cmpl $0xd, %ebp
ja 0x17f69
movl $0x2600, %eax # imm = 0x2600
btl %ebp, %eax
jae 0x17f69
cmpq %r15, %rbx
setb %r12b
leaq (%rbx,%r13), %rax
incq %rax
incq %rbx
cmpq $0x1, %rax
jne 0x17f32
testb $0x1, %r12b
movq (%rsp), %rbx
jne 0x180d6
testq %r15, %r15
sete %al
je 0x180a1
xorl %edi, %edi
leaq 0x1(%rdi), %rdx
movzbl (%r14,%rdi), %esi
movl $0x3, %r8d
testb %sil, %sil
js 0x17fa1
movq %rdx, %rcx
jmp 0x18087
cmpb $-0x3e, %sil
jb 0x1807e
cmpb $-0x21, %sil
ja 0x17fc8
leaq 0x2(%rdi), %rcx
cmpq %r15, %rcx
ja 0x17fc8
xorl %r8d, %r8d
cmpb $-0x40, (%r14,%rdx)
jl 0x18087
movl %esi, %ecx
andb $-0x10, %cl
cmpb $-0x20, %cl
jne 0x1801a
leaq 0x3(%rdi), %rcx
cmpq %r15, %rcx
ja 0x1801a
movb (%r14,%rdx), %r9b
cmpb $-0x41, %r9b
jg 0x1801a
cmpb $-0x41, 0x2(%r14,%rdi)
jg 0x1801a
xorl %r8d, %r8d
cmpl $0xed, %esi
je 0x18014
cmpl $0xe0, %esi
jne 0x18087
cmpl $0xed, %esi
je 0x1801a
cmpb $-0x60, %r9b
jae 0x18087
jmp 0x1801a
cmpb $-0x60, %r9b
jb 0x18087
leal 0x10(%rsi), %ecx
cmpb $0x4, %cl
ja 0x1807e
leaq 0x4(%rdi), %rcx
cmpq %r15, %rcx
ja 0x1807e
movb (%r14,%rdx), %r9b
cmpb $-0x41, %r9b
jg 0x1807e
cmpb $-0x41, 0x2(%r14,%rdi)
jg 0x1807e
cmpb $-0x41, 0x3(%r14,%rdi)
jg 0x1807e
cmpl $0xf4, %esi
je 0x18066
xorl %r8d, %r8d
cmpl $0xf0, %esi
jne 0x18087
cmpb $-0x70, %r9b
jb 0x1807e
cmpl $0xf4, %esi
jne 0x18087
xorl %r8d, %r8d
cmpb $-0x70, %r9b
setae %sil
jae 0x18076
movq %rcx, %rdx
movb %sil, %r8b
jmp 0x17f99
movq %rdx, %rcx
movl $0x1, %r8d
cmpl $0x3, %r8d
je 0x18092
testl %r8d, %r8d
jne 0x180a1
movq %rcx, %rdi
cmpq %r15, %rcx
setae %al
jb 0x17f85
testb $0x1, %al
je 0x180d6
leaq 0x2be61(%rip), %rsi # 0x43f0d
movl $0xf, %edx
movq %rbx, %rdi
callq 0x85b0
testq %r14, %r14
je 0x180e5
movq %r14, %rdi
callq 0x8200
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x85b0
jmp 0x180fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x8930
leaq 0x2b5e8(%rip), %rsi # 0x436eb
movl $0x1, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x85b0
| _ZN7testing8internal13PrintStringToERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSo:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r15, rdi
mov rdi, [rdi]
mov rsi, [r15+8]
mov rdx, rbx
call _ZN7testing8internalL20PrintCharsAsStringToIcEENS0_10CharFormatEPKT_mPSo; testing::internal::PrintCharsAsStringTo<char>(char const*,ulong,std::ostream *)
test eax, eax
jz loc_180D6
cmp cs:_ZN7testing22FLAGS_gtest_print_utf8E, 1; testing::FLAGS_gtest_print_utf8
jnz loc_180D6
mov [rsp+38h+var_38], rbx
mov r14, [r15]
mov r15, [r15+8]
test r15, r15
setnz r12b
jz short loc_17F69
mov r13, r15
neg r13
mov ebx, 1
loc_17F32:
movzx ebp, byte ptr [r14+rbx-1]
mov edi, ebp
call _iscntrl
test eax, eax
jz short loc_17F52
cmp ebp, 0Dh
ja short loc_17F69
mov eax, 2600h
bt eax, ebp
jnb short loc_17F69
loc_17F52:
cmp rbx, r15
setb r12b
lea rax, [rbx+r13]
inc rax
inc rbx
cmp rax, 1
jnz short loc_17F32
loc_17F69:
test r12b, 1
mov rbx, [rsp+38h+var_38]
jnz loc_180D6
test r15, r15
setz al
jz loc_180A1
xor edi, edi
loc_17F85:
lea rdx, [rdi+1]
movzx esi, byte ptr [r14+rdi]
mov r8d, 3
test sil, sil
js short loc_17FA1
loc_17F99:
mov rcx, rdx
jmp loc_18087
loc_17FA1:
cmp sil, 0C2h
jb loc_1807E
cmp sil, 0DFh
ja short loc_17FC8
lea rcx, [rdi+2]
cmp rcx, r15
ja short loc_17FC8
xor r8d, r8d
cmp byte ptr [r14+rdx], 0C0h
jl loc_18087
loc_17FC8:
mov ecx, esi
and cl, 0F0h
cmp cl, 0E0h
jnz short loc_1801A
lea rcx, [rdi+3]
cmp rcx, r15
ja short loc_1801A
mov r9b, [r14+rdx]
cmp r9b, 0BFh
jg short loc_1801A
cmp byte ptr [r14+rdi+2], 0BFh
jg short loc_1801A
xor r8d, r8d
cmp esi, 0EDh
jz short loc_18014
cmp esi, 0E0h
jnz loc_18087
cmp esi, 0EDh
jz short loc_1801A
cmp r9b, 0A0h
jnb short loc_18087
jmp short loc_1801A
loc_18014:
cmp r9b, 0A0h
jb short loc_18087
loc_1801A:
lea ecx, [rsi+10h]
cmp cl, 4
ja short loc_1807E
lea rcx, [rdi+4]
cmp rcx, r15
ja short loc_1807E
mov r9b, [r14+rdx]
cmp r9b, 0BFh
jg short loc_1807E
cmp byte ptr [r14+rdi+2], 0BFh
jg short loc_1807E
cmp byte ptr [r14+rdi+3], 0BFh
jg short loc_1807E
cmp esi, 0F4h
jz short loc_18066
xor r8d, r8d
cmp esi, 0F0h
jnz short loc_18087
cmp r9b, 90h
jb short loc_1807E
cmp esi, 0F4h
jnz short loc_18087
loc_18066:
xor r8d, r8d
cmp r9b, 90h
setnb sil
jnb short loc_18076
mov rdx, rcx
loc_18076:
mov r8b, sil
jmp loc_17F99
loc_1807E:
mov rcx, rdx
mov r8d, 1
loc_18087:
cmp r8d, 3
jz short loc_18092
test r8d, r8d
jnz short loc_180A1
loc_18092:
mov rdi, rcx
cmp rcx, r15
setnb al
jb loc_17F85
loc_180A1:
test al, 1
jz short loc_180D6
lea rsi, aAsText; "\n As Text: \""
mov edx, 0Fh
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test r14, r14
jz short loc_180E5
mov rdi, r14
call _strlen
mov rdi, rbx
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_180FC
loc_180D6:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_180E5:
mov rax, [rbx]
mov rax, [rax-18h]
lea rdi, [rbx+rax]
mov esi, [rbx+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_180FC:
lea rsi, aMessage+0Fh; "\""
mov edx, 1
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
| char testing::internal::PrintStringTo(_QWORD *a1, _QWORD *a2, long long a3, long long a4)
{
long long v4; // rax
long long v5; // r14
unsigned long long v6; // r15
bool v7; // r12
unsigned long long v8; // rbx
unsigned int v9; // ebp
unsigned long long v10; // rdi
unsigned long long v11; // rdx
int v12; // esi
int v13; // r8d
unsigned long long v14; // rcx
char v15; // r9
char v16; // r9
long long v17; // rax
LODWORD(v4) = testing::internal::PrintCharsAsStringTo<char>(*a1, a1[1], a2, a4);
if ( (_DWORD)v4 && testing::FLAGS_gtest_print_utf8 == 1 )
{
v5 = *a1;
v6 = a1[1];
v7 = v6 != 0;
if ( v6 )
{
v8 = 1LL;
do
{
v9 = *(unsigned __int8 *)(v5 + v8 - 1);
LODWORD(v4) = iscntrl(*(unsigned __int8 *)(v5 + v8 - 1));
if ( (_DWORD)v4 )
{
if ( v9 > 0xD )
break;
LODWORD(v4) = 9728;
if ( !_bittest((const int *)&v4, v9) )
break;
}
v7 = v8 < v6;
v4 = v8 - v6 + 1;
++v8;
}
while ( v4 != 1 );
}
if ( !v7 )
{
LOBYTE(v4) = v6 == 0;
if ( v6 )
{
v10 = 0LL;
while ( 1 )
{
v11 = v10 + 1;
v12 = *(unsigned __int8 *)(v5 + v10);
v13 = 3;
if ( (v12 & 0x80u) == 0 )
goto LABEL_13;
if ( (unsigned __int8)v12 < 0xC2u )
goto LABEL_39;
if ( (unsigned __int8)v12 > 0xDFu || (v14 = v10 + 2, v10 + 2 > v6) || (v13 = 0, *(char *)(v5 + v11) >= -64) )
{
if ( (v12 & 0xF0) == 0xE0 )
{
v14 = v10 + 3;
if ( v10 + 3 <= v6 )
{
v15 = *(_BYTE *)(v5 + v11);
if ( v15 <= -65 && *(char *)(v5 + v10 + 2) <= -65 )
{
v13 = 0;
if ( v12 == 237 )
{
if ( (unsigned __int8)v15 < 0xA0u )
goto LABEL_40;
}
else if ( v12 != 224 || (unsigned __int8)v15 >= 0xA0u )
{
goto LABEL_40;
}
}
}
}
if ( (unsigned __int8)(v12 + 16) > 4u
|| (v14 = v10 + 4, v10 + 4 > v6)
|| (v16 = *(_BYTE *)(v5 + v11), v16 > -65)
|| *(char *)(v5 + v10 + 2) > -65
|| *(char *)(v5 + v10 + 3) > -65 )
{
LABEL_39:
v14 = v10 + 1;
v13 = 1;
goto LABEL_40;
}
if ( v12 == 244 )
{
v13 = 0;
if ( (unsigned __int8)v16 < 0x90u )
v11 = v10 + 4;
LOBYTE(v13) = (unsigned __int8)v16 >= 0x90u;
LABEL_13:
v14 = v11;
goto LABEL_40;
}
v13 = 0;
if ( v12 == 240 && (unsigned __int8)v16 < 0x90u )
goto LABEL_39;
}
LABEL_40:
if ( v13 == 3 || !v13 )
{
v10 = v14;
LOBYTE(v4) = v14 >= v6;
if ( v14 < v6 )
continue;
}
break;
}
}
if ( (v4 & 1) != 0 )
{
std::__ostream_insert<char,std::char_traits<char>>(a2, "\n As Text: \"", 15LL);
if ( v5 )
{
v17 = strlen(v5);
std::__ostream_insert<char,std::char_traits<char>>(a2, v5, v17);
}
else
{
std::ios::clear(
(char *)a2 + *(_QWORD *)(*a2 - 24LL),
*(_DWORD *)((char *)a2 + *(_QWORD *)(*a2 - 24LL) + 32) | 1u);
}
LOBYTE(v4) = std::__ostream_insert<char,std::char_traits<char>>(a2, "\"", 1LL);
}
}
}
return v4;
}
| PrintStringTo:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R15,RDI
MOV RDI,qword ptr [RDI]
MOV RSI,qword ptr [R15 + 0x8]
MOV RDX,RBX
CALL 0x0011811e
TEST EAX,EAX
JZ 0x001180d6
CMP byte ptr [0x00159680],0x1
JNZ 0x001180d6
MOV qword ptr [RSP],RBX
MOV R14,qword ptr [R15]
MOV R15,qword ptr [R15 + 0x8]
TEST R15,R15
SETNZ R12B
JZ 0x00117f69
MOV R13,R15
NEG R13
MOV EBX,0x1
LAB_00117f32:
MOVZX EBP,byte ptr [R14 + RBX*0x1 + -0x1]
MOV EDI,EBP
CALL 0x00108820
TEST EAX,EAX
JZ 0x00117f52
CMP EBP,0xd
JA 0x00117f69
MOV EAX,0x2600
BT EAX,EBP
JNC 0x00117f69
LAB_00117f52:
CMP RBX,R15
SETC R12B
LEA RAX,[RBX + R13*0x1]
INC RAX
INC RBX
CMP RAX,0x1
JNZ 0x00117f32
LAB_00117f69:
TEST R12B,0x1
MOV RBX,qword ptr [RSP]
JNZ 0x001180d6
TEST R15,R15
SETZ AL
JZ 0x001180a1
XOR EDI,EDI
LAB_00117f85:
LEA RDX,[RDI + 0x1]
MOVZX ESI,byte ptr [R14 + RDI*0x1]
MOV R8D,0x3
TEST SIL,SIL
JS 0x00117fa1
LAB_00117f99:
MOV RCX,RDX
JMP 0x00118087
LAB_00117fa1:
CMP SIL,0xc2
JC 0x0011807e
CMP SIL,0xdf
JA 0x00117fc8
LEA RCX,[RDI + 0x2]
CMP RCX,R15
JA 0x00117fc8
XOR R8D,R8D
CMP byte ptr [R14 + RDX*0x1],0xc0
JL 0x00118087
LAB_00117fc8:
MOV ECX,ESI
AND CL,0xf0
CMP CL,0xe0
JNZ 0x0011801a
LEA RCX,[RDI + 0x3]
CMP RCX,R15
JA 0x0011801a
MOV R9B,byte ptr [R14 + RDX*0x1]
CMP R9B,0xbf
JG 0x0011801a
CMP byte ptr [R14 + RDI*0x1 + 0x2],0xbf
JG 0x0011801a
XOR R8D,R8D
CMP ESI,0xed
JZ 0x00118014
CMP ESI,0xe0
JNZ 0x00118087
CMP ESI,0xed
JZ 0x0011801a
CMP R9B,0xa0
JNC 0x00118087
JMP 0x0011801a
LAB_00118014:
CMP R9B,0xa0
JC 0x00118087
LAB_0011801a:
LEA ECX,[RSI + 0x10]
CMP CL,0x4
JA 0x0011807e
LEA RCX,[RDI + 0x4]
CMP RCX,R15
JA 0x0011807e
MOV R9B,byte ptr [R14 + RDX*0x1]
CMP R9B,0xbf
JG 0x0011807e
CMP byte ptr [R14 + RDI*0x1 + 0x2],0xbf
JG 0x0011807e
CMP byte ptr [R14 + RDI*0x1 + 0x3],0xbf
JG 0x0011807e
CMP ESI,0xf4
JZ 0x00118066
XOR R8D,R8D
CMP ESI,0xf0
JNZ 0x00118087
CMP R9B,0x90
JC 0x0011807e
CMP ESI,0xf4
JNZ 0x00118087
LAB_00118066:
XOR R8D,R8D
CMP R9B,0x90
SETNC SIL
JNC 0x00118076
MOV RDX,RCX
LAB_00118076:
MOV R8B,SIL
JMP 0x00117f99
LAB_0011807e:
MOV RCX,RDX
MOV R8D,0x1
LAB_00118087:
CMP R8D,0x3
JZ 0x00118092
TEST R8D,R8D
JNZ 0x001180a1
LAB_00118092:
MOV RDI,RCX
CMP RCX,R15
SETNC AL
JC 0x00117f85
LAB_001180a1:
TEST AL,0x1
JZ 0x001180d6
LEA RSI,[0x143f0d]
MOV EDX,0xf
MOV RDI,RBX
CALL 0x001085b0
TEST R14,R14
JZ 0x001180e5
MOV RDI,R14
CALL 0x00108200
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
CALL 0x001085b0
JMP 0x001180fc
LAB_001180d6:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001180e5:
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
LEA RDI,[RBX + RAX*0x1]
MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00108930
LAB_001180fc:
LEA RSI,[0x1436eb]
MOV EDX,0x1
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001085b0
|
/* testing::internal::PrintStringTo(std::__cxx11::string const&, std::ostream*) */
void testing::internal::PrintStringTo(string *param_1,ostream *param_2)
{
ulong uVar1;
ulong uVar2;
byte bVar3;
byte bVar4;
char *__s;
ulong uVar5;
int iVar6;
size_t sVar7;
ulong uVar8;
ulong uVar9;
char cVar10;
bool bVar11;
bool bVar12;
iVar6 = PrintCharsAsStringTo<char>(*(char **)param_1,*(ulong *)(param_1 + 8),param_2);
if ((iVar6 != 0) && (FLAGS_gtest_print_utf8 == '\x01')) {
__s = *(char **)param_1;
uVar5 = *(ulong *)(param_1 + 8);
bVar11 = uVar5 != 0;
if (bVar11) {
uVar9 = 1;
do {
bVar4 = __s[uVar9 - 1];
iVar6 = iscntrl((uint)bVar4);
if ((iVar6 != 0) && ((0xd < bVar4 || ((0x2600U >> (bVar4 & 0x1f) & 1) == 0)))) break;
bVar11 = uVar9 < uVar5;
bVar12 = uVar9 != uVar5;
uVar9 = uVar9 + 1;
} while (bVar12);
}
if (!bVar11) {
bVar11 = uVar5 == 0;
if (!bVar11) {
uVar9 = 0;
do {
uVar1 = uVar9 + 1;
bVar4 = __s[uVar9];
cVar10 = '\x03';
uVar8 = uVar1;
if ((char)bVar4 < '\0') {
if (bVar4 < 0xc2) goto LAB_0011807e;
if (((0xdf < bVar4) || (uVar5 < uVar9 + 2)) ||
(cVar10 = '\0', uVar8 = uVar9 + 2, -0x41 < __s[uVar1])) {
if ((((bVar4 & 0xf0) == 0xe0) && (uVar8 = uVar9 + 3, uVar8 <= uVar5)) &&
((bVar3 = __s[uVar1], (char)bVar3 < -0x40 && (__s[uVar9 + 2] < -0x40)))) {
cVar10 = '\0';
if (bVar4 == 0xed) {
if (0x9f < bVar3) goto LAB_0011801a;
}
else if ((bVar4 == 0xe0) && (bVar3 < 0xa0)) goto LAB_0011801a;
}
else {
LAB_0011801a:
if (((byte)(bVar4 + 0x10) < 5) &&
((((uVar2 = uVar9 + 4, uVar2 <= uVar5 &&
(bVar3 = __s[uVar1], (char)bVar3 < -0x40)) && (__s[uVar9 + 2] < -0x40)) &&
(__s[uVar9 + 3] < -0x40)))) {
uVar8 = uVar2;
if (bVar4 == 0xf4) {
cVar10 = 0x8f < bVar3;
uVar8 = uVar1;
if (!(bool)cVar10) {
uVar8 = uVar2;
}
}
else {
cVar10 = '\0';
if ((bVar4 == 0xf0) && (bVar3 < 0x90)) goto LAB_0011807e;
}
}
else {
LAB_0011807e:
cVar10 = '\x01';
uVar8 = uVar1;
}
}
}
}
} while (((cVar10 == '\x03') || (cVar10 == '\0')) &&
(bVar11 = uVar8 >= uVar5, uVar9 = uVar8, uVar8 < uVar5));
}
if (bVar11) {
std::__ostream_insert<char,std::char_traits<char>>(param_2,"\n As Text: \"",0xf);
if (__s == (char *)0x0) {
std::ios::clear(param_2 + *(long *)(*(long *)param_2 + -0x18),
*(uint *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 0x20) | 1);
}
else {
sVar7 = strlen(__s);
std::__ostream_insert<char,std::char_traits<char>>(param_2,__s,sVar7);
}
std::__ostream_insert<char,std::char_traits<char>>(param_2,"\"",1);
return;
}
}
}
return;
}
| |
23,219 | pagecache_file_set_null_hooks | eloqsql/storage/maria/ma_pagecache.c | void pagecache_file_set_null_hooks(PAGECACHE_FILE *file)
{
file->pre_read_hook= null_pre_hook;
file->post_read_hook= null_post_read_hook;
file->pre_write_hook= null_pre_hook;
file->post_write_hook= null_post_write_hook;
file->flush_log_callback= null_pre_hook;
file->callback_data= NULL;
file->head_blocks= file->big_block_size= 0;
} | O0 | c | pagecache_file_set_null_hooks:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
leaq 0x6d(%rip), %rcx # 0x30560
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
leaq 0x6e(%rip), %rcx # 0x30570
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
leaq 0x4f(%rip), %rcx # 0x30560
movq %rcx, 0x28(%rax)
movq -0x8(%rbp), %rax
leaq 0x70(%rip), %rcx # 0x30590
movq %rcx, 0x30(%rax)
movq -0x8(%rbp), %rax
leaq 0x31(%rip), %rcx # 0x30560
movq %rcx, 0x38(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
popq %rbp
retq
nopl (%rax,%rax)
| pagecache_file_set_null_hooks:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
lea rcx, null_pre_hook
mov [rax+18h], rcx
mov rax, [rbp+var_8]
lea rcx, null_post_read_hook
mov [rax+20h], rcx
mov rax, [rbp+var_8]
lea rcx, null_pre_hook
mov [rax+28h], rcx
mov rax, [rbp+var_8]
lea rcx, null_post_write_hook
mov [rax+30h], rcx
mov rax, [rbp+var_8]
lea rcx, null_pre_hook
mov [rax+38h], rcx
mov rax, [rbp+var_8]
mov qword ptr [rax+40h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
pop rbp
retn
| _QWORD * pagecache_file_set_null_hooks(_QWORD *a1)
{
_QWORD *result; // rax
a1[3] = null_pre_hook;
a1[4] = null_post_read_hook;
a1[5] = null_pre_hook;
a1[6] = null_post_write_hook;
a1[7] = null_pre_hook;
a1[8] = 0LL;
a1[1] = 0LL;
result = a1;
*a1 = 0LL;
return result;
}
| pagecache_file_set_null_hooks:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x130560]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x130570]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x130560]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x130590]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x130560]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
POP RBP
RET
|
void pagecache_file_set_null_hooks(int8 *param_1)
{
param_1[3] = null_pre_hook;
param_1[4] = null_post_read_hook;
param_1[5] = null_pre_hook;
param_1[6] = null_post_write_hook;
param_1[7] = null_pre_hook;
param_1[8] = 0;
param_1[1] = 0;
*param_1 = 0;
return;
}
| |
23,220 | minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, 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> const&) const | monkey531[P]llama/common/chat-template.hpp | std::string try_raw_render(
const nlohmann::ordered_json & messages,
const nlohmann::ordered_json & tools,
bool add_generation_prompt,
const nlohmann::ordered_json & extra_context = nlohmann::ordered_json()) const
{
try {
auto prompt = apply(messages, tools, add_generation_prompt, extra_context, /* adjust_inputs= */ false);
// fprintf(stderr, "try_raw_render: %s\n", prompt.c_str());
return prompt;
} catch (const std::exception & e) {
// fprintf(stderr, "try_raw_render error: %s\n", e.what());
return "";
}
} | O2 | cpp | minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, 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> const&) const:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
andl $0x0, (%rsp)
callq 0x7b92e
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x5fe29
movq %r14, %rdi
callq 0x233c0
leaq 0x4d336(%rip), %rsi # 0xad143
leaq 0x17(%rsp), %rdx
movq %rbx, %rdi
callq 0x29c20
callq 0x23f80
jmp 0x5fdeb
movq %rax, %r14
callq 0x23f80
movq %r14, %rdi
callq 0x240e0
movq %rax, %rdi
callq 0x2a647
nop
| _ZNK5minja13chat_template14try_raw_renderERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
and [rsp+28h+var_28], 0
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool)
loc_5FDEB:
mov rax, rbx
add rsp, 18h
pop rbx
pop r14
retn
mov r14, rax
cmp edx, 1
jnz short loc_5FE29
mov rdi, r14; void *
call ___cxa_begin_catch
lea rsi, asc_AD135+0Eh; ""
lea rdx, [rsp+28h+var_11]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
call ___cxa_end_catch
jmp short loc_5FDEB
mov r14, rax
call ___cxa_end_catch
loc_5FE29:
mov rdi, r14
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| long long minja::chat_template::try_raw_render(long long a1, int a2, int a3, int a4, int a5, int a6)
{
minja::chat_template::apply(a1, a2, a3, a4, a5, a6, 0);
return a1;
}
| try_raw_render:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LAB_0015fde2:
AND dword ptr [RSP],0x0
CALL 0x0017b92e
LAB_0015fdeb:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&, 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> const&) const */
chat_template * __thiscall
minja::chat_template::try_raw_render
(chat_template *this,basic_json *param_1,basic_json *param_2,bool param_3,
basic_json *param_4)
{
int7 in_register_00000009;
/* try { // try from 0015fde2 to 0015fdea has its CatchHandler @ 0015fdf6 */
apply(this,param_1,SUB81(param_2,0),(basic_json *)CONCAT71(in_register_00000009,param_3),
SUB81(param_4,0));
return this;
}
| |
23,221 | OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp | UnorderedSubset::UnorderedSubset(Level const& level,
Index faceIndex, Index vertIndex, int vertInFace, int regFaceSize) :
_faceIndex(faceIndex), _vertIndex(vertIndex), _vertInFace(vertInFace), _regFaceSize(regFaceSize) {
int faceInRing = populateFaceVertexDescriptor(level, faceIndex, vertIndex, vertInFace);
if (faceInRing >= 0) {
int numFaceVerts = finalizeVertexTag(faceInRing);
assert(numFaceVerts > 0);
StackBuffer<Index, 64, true> cFaceVertIndices;
cFaceVertIndices.SetSize(numFaceVerts);
int numFaceVertices = getFaceVertexIncidentFaceVertexIndices(level, vertIndex, cFaceVertIndices);
assert(numFaceVertices > 0);
connectUnOrderedFaces(cFaceVertIndices);
if (_tag.boundaryNonSharp) {
_vdesc.isValid = false;
return;
}
}
} | O0 | cpp | OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int):
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x168(%rbp)
movq %rdi, %rax
movq %rax, -0x170(%rbp)
callq 0xc8580
movq -0x168(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, 0x100(%rdi)
movl -0x18(%rbp), %eax
movl %eax, 0x104(%rdi)
movl -0x1c(%rbp), %eax
movl %eax, 0x108(%rdi)
movw $0xffff, 0x10c(%rdi) # imm = 0xFFFF
movw -0x20(%rbp), %ax
movw %ax, 0x10e(%rdi)
movb 0x110(%rdi), %al
andb $-0x2, %al
movb %al, 0x110(%rdi)
movb 0x110(%rdi), %al
andb $-0x3, %al
movb %al, 0x110(%rdi)
movb 0x110(%rdi), %al
andb $-0x5, %al
movb %al, 0x110(%rdi)
movb 0x110(%rdi), %al
andb $-0x9, %al
movb %al, 0x110(%rdi)
addq $0x112, %rdi # imm = 0x112
callq 0xd0800
movq -0x168(%rbp), %rdi
addq $0x118, %rdi # imm = 0x118
movq %rdi, -0x160(%rbp)
callq 0xcd110
jmp 0x1e8e61
movq -0x170(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movl -0x1c(%rbp), %r8d
callq 0xc3b90
movl %eax, -0x174(%rbp)
jmp 0x1e8e83
movl -0x174(%rbp), %eax
movl %eax, -0x30(%rbp)
cmpl $0x0, -0x30(%rbp)
jl 0x1e904b
movq -0x170(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0xc6950
movl %eax, -0x178(%rbp)
jmp 0x1e8ead
movl -0x178(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jle 0x1e8ebe
jmp 0x1e8eff
leaq 0x170b1(%rip), %rdi # 0x1fff76
leaq 0x16e18(%rip), %rsi # 0x1ffce4
movl $0x269, %edx # imm = 0x269
leaq 0x170af(%rip), %rcx # 0x1fff87
callq 0xc9440
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e9060
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e9054
leaq -0x150(%rbp), %rdi
callq 0xc6f60
jmp 0x1e8f0d
movl -0x34(%rbp), %esi
leaq -0x150(%rbp), %rdi
callq 0xc3780
jmp 0x1e8f1e
movq -0x10(%rbp), %rax
movq %rax, -0x190(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x184(%rbp)
leaq -0x150(%rbp), %rdi
callq 0xd03d0
movq %rax, -0x180(%rbp)
jmp 0x1e8f47
movq -0x180(%rbp), %rdx
movl -0x184(%rbp), %esi
movq -0x190(%rbp), %rdi
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
callq 0xc57c0
movl %eax, -0x194(%rbp)
jmp 0x1e8f6d
movl -0x194(%rbp), %eax
movl %eax, -0x154(%rbp)
cmpl $0x0, -0x154(%rbp)
jle 0x1e8f84
jmp 0x1e8fc0
leaq 0x1349c(%rip), %rdi # 0x1fc427
leaq 0x16d52(%rip), %rsi # 0x1ffce4
movl $0x26f, %edx # imm = 0x26F
leaq 0x16fe9(%rip), %rcx # 0x1fff87
callq 0xc9440
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x150(%rbp), %rdi
callq 0xc4ef0
jmp 0x1e9054
leaq -0x150(%rbp), %rdi
callq 0xd03d0
movq %rax, -0x1a0(%rbp)
jmp 0x1e8fd5
movq -0x1a0(%rbp), %rsi
movq -0x170(%rbp), %rdi
callq 0xd0340
jmp 0x1e8fea
movq -0x170(%rbp), %rax
movw 0x112(%rax), %ax
shrw $0x9, %ax
andw $0x1, %ax
cmpw $0x0, %ax
je 0x1e9025
movq -0x170(%rbp), %rax
movb 0x8(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0x8(%rax)
movl $0x1, -0x158(%rbp)
jmp 0x1e902f
movl $0x0, -0x158(%rbp)
leaq -0x150(%rbp), %rdi
callq 0xc4ef0
movl -0x158(%rbp), %eax
testl %eax, %eax
je 0x1e9049
jmp 0x1e9047
jmp 0x1e904b
jmp 0x1e904b
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbp
retq
movq -0x160(%rbp), %rdi
callq 0xcc2d0
movq -0x168(%rbp), %rdi
callq 0xd6820
movq -0x28(%rbp), %rdi
callq 0xd58b0
nopw %cs:(%rax,%rax)
nop
| _ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubsetC2ERKNS0_3Vtr8internal5LevelEiiii:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int)'
mov rbp, rsp
sub rsp, 1A0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
mov [rbp+var_1C], r8d
mov [rbp+var_20], r9d
mov rdi, [rbp+var_8]; this
mov [rbp+var_168], rdi
mov rax, rdi
mov [rbp+var_170], rax
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptorC2Ev; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::VertexDescriptor(void)
mov rdi, [rbp+var_168]
mov eax, [rbp+var_14]
mov [rdi+100h], eax
mov eax, [rbp+var_18]
mov [rdi+104h], eax
mov eax, [rbp+var_1C]
mov [rdi+108h], eax
mov word ptr [rdi+10Ch], 0FFFFh
mov ax, word ptr [rbp+var_20]
mov [rdi+10Eh], ax
mov al, [rdi+110h]
and al, 0FEh
mov [rdi+110h], al
mov al, [rdi+110h]
and al, 0FDh
mov [rdi+110h], al
mov al, [rdi+110h]
and al, 0FBh
mov [rdi+110h], al
mov al, [rdi+110h]
and al, 0F7h
mov [rdi+110h], al
add rdi, 112h; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset9VertexTagC2Ev; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexTag::VertexTag(void)
mov rdi, [rbp+var_168]
add rdi, 118h
mov [rbp+var_160], rdi
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIsLj32ELb1EEC2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,32u,true>::StackBuffer(void)
jmp short $+2
loc_1E8E61:
mov rdi, [rbp+var_170]; this
mov rsi, [rbp+var_10]; OpenSubdiv::v3_6_0::Vtr::internal::Level *
mov edx, [rbp+var_14]; int
mov ecx, [rbp+var_18]; int
mov r8d, [rbp+var_1C]; int
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset28populateFaceVertexDescriptorERKNS0_3Vtr8internal5LevelEiii; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,int,int)
mov [rbp+var_174], eax
jmp short $+2
loc_1E8E83:
mov eax, [rbp+var_174]
mov [rbp+var_30], eax
cmp [rbp+var_30], 0
jl loc_1E904B
mov rdi, [rbp+var_170]; this
mov esi, [rbp+var_30]; int
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset17finalizeVertexTagEi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::finalizeVertexTag(int)
mov [rbp+var_178], eax
jmp short $+2
loc_1E8EAD:
mov eax, [rbp+var_178]
mov [rbp+var_34], eax
cmp [rbp+var_34], 0
jle short loc_1E8EBE
jmp short loc_1E8EFF
loc_1E8EBE:
lea rdi, aNumfaceverts0; "numFaceVerts > 0"
lea rsi, aWorkspaceLlm4b_56; "/workspace/llm4binary/github/2025_star3"...
mov edx, 269h
lea rcx, aOpensubdivV360_1; "OpenSubdiv::v3_6_0::Tmr::UnorderedSubse"...
call ___assert_fail
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
jmp loc_1E9060
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
jmp loc_1E9054
loc_1E8EFF:
lea rdi, [rbp+var_150]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj64ELb1EEC2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::StackBuffer(void)
jmp short $+2
loc_1E8F0D:
mov esi, [rbp+var_34]
lea rdi, [rbp+var_150]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj64ELb1EE7SetSizeEj; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::SetSize(uint)
jmp short $+2
loc_1E8F1E:
mov rax, [rbp+var_10]
mov [rbp+var_190], rax
mov eax, [rbp+var_18]
mov dword ptr [rbp+var_184], eax
lea rdi, [rbp+var_150]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj64ELb1EEcvPiEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::operator int *(void)
mov [rbp+var_184+4], rax
jmp short $+2
loc_1E8F47:
mov rdx, [rbp+var_184+4]; int
mov esi, dword ptr [rbp+var_184]; OpenSubdiv::v3_6_0::Vtr::internal::Level *
mov rdi, [rbp+var_190]; this
mov ecx, 0FFFFFFFFh; int *
call __ZN10OpenSubdiv6v3_6_03Tmr38getFaceVertexIncidentFaceVertexIndicesERKNS0_3Vtr8internal5LevelEiPii; OpenSubdiv::v3_6_0::Tmr::getFaceVertexIncidentFaceVertexIndices(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,int *,int)
mov [rbp+var_194], eax
jmp short $+2
loc_1E8F6D:
mov eax, [rbp+var_194]
mov [rbp+var_154], eax
cmp [rbp+var_154], 0
jle short loc_1E8F84
jmp short loc_1E8FC0
loc_1E8F84:
lea rdi, aNumfacevertice; "numFaceVertices > 0"
lea rsi, aWorkspaceLlm4b_56; "/workspace/llm4binary/github/2025_star3"...
mov edx, 26Fh
lea rcx, aOpensubdivV360_1; "OpenSubdiv::v3_6_0::Tmr::UnorderedSubse"...
call ___assert_fail
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
lea rdi, [rbp+var_150]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj64ELb1EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::~StackBuffer()
jmp loc_1E9054
loc_1E8FC0:
lea rdi, [rbp+var_150]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj64ELb1EEcvPiEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::operator int *(void)
mov [rbp+var_1A0], rax
jmp short $+2
loc_1E8FD5:
mov rsi, [rbp+var_1A0]; int *
mov rdi, [rbp+var_170]; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset21connectUnOrderedFacesEPKi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::connectUnOrderedFaces(int const*)
jmp short $+2
loc_1E8FEA:
mov rax, [rbp+var_170]
mov ax, [rax+112h]
shr ax, 9
and ax, 1
cmp ax, 0
jz short loc_1E9025
mov rax, [rbp+var_170]
mov cl, [rax+8]
and cl, 0FEh
or cl, 0
mov [rax+8], cl
mov [rbp+var_158], 1
jmp short loc_1E902F
loc_1E9025:
mov [rbp+var_158], 0
loc_1E902F:
lea rdi, [rbp+var_150]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj64ELb1EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::~StackBuffer()
mov eax, [rbp+var_158]
test eax, eax
jz short loc_1E9049
jmp short $+2
loc_1E9047:
jmp short loc_1E904B
loc_1E9049:
jmp short $+2
loc_1E904B:
add rsp, 1A0h
pop rbp
retn
loc_1E9054:
mov rdi, [rbp+var_160]
call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIsLj32ELb1EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,32u,true>::~StackBuffer()
loc_1E9060:
mov rdi, [rbp+var_168]; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptorD2Ev; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::~VertexDescriptor()
mov rdi, [rbp+var_28]
call __Unwind_Resume
| long long OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this,
const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2,
int a3,
int a4,
int a5,
int a6)
{
long long result; // rax
int v7; // r8d
int *v8; // [rsp+0h] [rbp-1A0h]
OpenSubdiv::v3_6_0::Vtr::internal::Level *v9; // [rsp+10h] [rbp-190h]
unsigned int v10; // [rsp+1Ch] [rbp-184h]
int v11; // [rsp+20h] [rbp-180h]
int v12; // [rsp+2Ch] [rbp-174h]
unsigned int v13; // [rsp+48h] [rbp-158h]
_BYTE v14[284]; // [rsp+50h] [rbp-150h] BYREF
int v15; // [rsp+16Ch] [rbp-34h]
int v16; // [rsp+170h] [rbp-30h]
int v17; // [rsp+180h] [rbp-20h]
int v18; // [rsp+184h] [rbp-1Ch]
int v19; // [rsp+188h] [rbp-18h]
int v20; // [rsp+18Ch] [rbp-14h]
OpenSubdiv::v3_6_0::Vtr::internal::Level *v21; // [rsp+190h] [rbp-10h]
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor *v22; // [rsp+198h] [rbp-8h]
v22 = this;
v21 = a2;
v20 = a3;
v19 = a4;
v18 = a5;
v17 = a6;
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::VertexDescriptor(this);
*((_DWORD *)this + 64) = v20;
*((_DWORD *)this + 65) = v19;
*((_DWORD *)this + 66) = v18;
*((_WORD *)this + 134) = -1;
*((_WORD *)this + 135) = v17;
*((_BYTE *)this + 272) &= ~1u;
*((_BYTE *)this + 272) &= ~2u;
*((_BYTE *)this + 272) &= ~4u;
*((_BYTE *)this + 272) &= ~8u;
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexTag::VertexTag((OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *)((char *)this + 274));
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,32u,true>::StackBuffer();
v12 = OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(this, v21, v20, v19, v18);
result = (unsigned int)v12;
v16 = v12;
if ( v12 >= 0 )
{
v15 = OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::finalizeVertexTag(this, v16);
if ( v15 <= 0 )
__assert_fail(
"numFaceVerts > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp",
617LL,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)");
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::StackBuffer(v14);
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::SetSize(v14, (unsigned int)v15);
v9 = v21;
v10 = v19;
v11 = OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::operator int *(v14);
if ( (int)OpenSubdiv::v3_6_0::Tmr::getFaceVertexIncidentFaceVertexIndices(
v9,
(const OpenSubdiv::v3_6_0::Vtr::internal::Level *)v10,
v11,
(int *)0xFFFFFFFFLL,
v7) <= 0 )
__assert_fail(
"numFaceVertices > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp",
623LL,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)");
v8 = (int *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::operator int *(v14);
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::connectUnOrderedFaces(this, v8);
if ( ((*((_WORD *)this + 137) >> 9) & 1) != 0 )
{
*((_BYTE *)this + 8) &= ~1u;
v13 = 1;
}
else
{
v13 = 0;
}
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,64u,true>::~StackBuffer(v14);
return v13;
}
return result;
}
| Level:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RDI],0x0
MOV dword ptr [RDI + 0x4],0x0
MOV dword ptr [RDI + 0x8],0x0
MOV dword ptr [RDI + 0xc],0x0
MOV dword ptr [RDI + 0x10],0x0
MOV dword ptr [RDI + 0x14],0x0
ADD RDI,0x18
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x30
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x48
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x60
CALL 0x001d28e0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x78
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x90
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xa8
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xc0
CALL 0x001cfaa0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xd8
CALL 0x001cd580
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xf0
CALL 0x001d3910
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x108
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x120
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x138
CALL 0x001cfaa0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x150
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x168
CALL 0x001d2780
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x180
CALL 0x001cfaa0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x198
CALL 0x001cd580
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x1b0
CALL 0x001c3930
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x1c8
CALL 0x001c4270
ADD RSP,0x10
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::Level() */
void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::Level(Level *this)
{
*(int4 *)this = 0;
*(int4 *)(this + 4) = 0;
*(int4 *)(this + 8) = 0;
*(int4 *)(this + 0xc) = 0;
*(int4 *)(this + 0x10) = 0;
*(int4 *)(this + 0x14) = 0;
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x18));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x30));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x48));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::FTag>>
*)(this + 0x60));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x78));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x90));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0xa8));
std::vector<unsigned_short,std::allocator<unsigned_short>>::vector
((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0xc0));
std::vector<float,std::allocator<float>>::vector
((vector<float,std::allocator<float>> *)(this + 0xd8));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::ETag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::ETag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::ETag>>
*)(this + 0xf0));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x108));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x120));
std::vector<unsigned_short,std::allocator<unsigned_short>>::vector
((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0x138));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x150));
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x168));
std::vector<unsigned_short,std::allocator<unsigned_short>>::vector
((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0x180));
std::vector<float,std::allocator<float>>::vector
((vector<float,std::allocator<float>> *)(this + 0x198));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
*)(this + 0x1b0));
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel*,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel*>>
::vector((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel*,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel*>>
*)(this + 0x1c8));
return;
}
| |
23,222 | OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp | UnorderedSubset::UnorderedSubset(Level const& level,
Index faceIndex, Index vertIndex, int vertInFace, int regFaceSize) :
_faceIndex(faceIndex), _vertIndex(vertIndex), _vertInFace(vertInFace), _regFaceSize(regFaceSize) {
int faceInRing = populateFaceVertexDescriptor(level, faceIndex, vertIndex, vertInFace);
if (faceInRing >= 0) {
int numFaceVerts = finalizeVertexTag(faceInRing);
assert(numFaceVerts > 0);
StackBuffer<Index, 64, true> cFaceVertIndices;
cFaceVertIndices.SetSize(numFaceVerts);
int numFaceVertices = getFaceVertexIncidentFaceVertexIndices(level, vertIndex, cFaceVertIndices);
assert(numFaceVertices > 0);
connectUnOrderedFaces(cFaceVertIndices);
if (_tag.boundaryNonSharp) {
_vdesc.isValid = false;
return;
}
}
} | O1 | cpp | OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movl %ecx, %ebp
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, (%rdi)
andb $-0x20, 0x8(%rdi)
movq %rsi, %r14
leaq 0x20(%rdi), %rcx
movq %rcx, 0x10(%rdi)
movabsq $0x1000000000, %rcx # imm = 0x1000000000
movq %rcx, 0x18(%rdi)
movq %rax, 0x60(%rdi)
leaq 0x78(%rdi), %rcx
movq %rcx, 0x68(%rdi)
movabsq $0x2000000000, %rcx # imm = 0x2000000000
movq %rcx, 0x70(%rdi)
movq %rax, 0xf8(%rdi)
movl %edx, 0x100(%rdi)
movl %ebp, 0x104(%rdi)
movl %r8d, 0x108(%rdi)
movw $0xffff, 0x10c(%rdi) # imm = 0xFFFF
movw %r9w, 0x10e(%rdi)
andb $-0x10, 0x110(%rdi)
movw $0x0, 0x112(%rdi)
leaq 0x128(%rdi), %r12
movq %r12, 0x118(%rdi)
movq %rcx, 0x120(%rdi)
movq %rax, 0x168(%rdi)
movl %ebp, %ecx
callq 0x38240
testl %eax, %eax
js 0xb1177
movq %rbx, %rdi
movl %eax, %esi
callq 0x38c80
testl %eax, %eax
jle 0xb1189
movl %eax, %r15d
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movabsq $0x4000000000, %rax # imm = 0x4000000000
movq %rax, -0x8(%r13)
movq $0x0, 0x100(%r13)
cmpl $0x41, %r15d
jb 0xb1135
xorl %edi, %edi
callq 0x3a0c0
movq %r13, (%rsp)
movl $0x40, 0xc(%rsp)
movl %r15d, %edi
shlq $0x2, %rdi
callq 0x3a230
movq %rax, 0x110(%rsp)
movq %rax, (%rsp)
movl %r15d, 0xc(%rsp)
movl %r15d, 0x8(%rsp)
movq (%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
callq 0x38800
testl %eax, %eax
jle 0xb11a8
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x3ab90
testb $0x2, 0x113(%rbx)
je 0xb116a
andb $-0x2, 0x8(%rbx)
movq 0x110(%rsp), %rdi
callq 0x3a0c0
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15176(%rip), %rdi # 0xc6306
leaq 0x14edd(%rip), %rsi # 0xc6074
leaq 0x15179(%rip), %rcx # 0xc6317
movl $0x269, %edx # imm = 0x269
callq 0x39560
leaq 0x11bf8(%rip), %rdi # 0xc2da7
leaq 0x14ebe(%rip), %rsi # 0xc6074
leaq 0x1515a(%rip), %rcx # 0xc6317
movl $0x26f, %edx # imm = 0x26F
callq 0x39560
jmp 0xb11ce
movq %rax, %r14
jmp 0xb11de
movq %rax, %r14
movq 0x110(%rsp), %rdi
callq 0x3a0c0
movq 0x168(%rbx), %rdi
callq 0x3a0c0
movq %r12, 0x118(%rbx)
movl $0x20, 0x124(%rbx)
movq %rbx, %rdi
callq 0x3c040
movq %r14, %rdi
callq 0x3bd70
nop
| _ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubsetC2ERKNS0_3Vtr8internal5LevelEiiii:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int)'
push r15
push r14
push r13
push r12
push rbx
sub rsp, 118h
mov ebp, ecx
mov rbx, rdi
xor eax, eax
mov [rdi], rax
and byte ptr [rdi+8], 0E0h
mov r14, rsi
lea rcx, [rdi+20h]
mov [rdi+10h], rcx
mov rcx, 1000000000h
mov [rdi+18h], rcx
mov [rdi+60h], rax
lea rcx, [rdi+78h]
mov [rdi+68h], rcx
mov rcx, 2000000000h
mov [rdi+70h], rcx
mov [rdi+0F8h], rax
mov [rdi+100h], edx
mov [rdi+104h], ebp
mov [rdi+108h], r8d
mov word ptr [rdi+10Ch], 0FFFFh
mov [rdi+10Eh], r9w
and byte ptr [rdi+110h], 0F0h
mov word ptr [rdi+112h], 0
lea r12, [rdi+128h]
mov [rdi+118h], r12
mov [rdi+120h], rcx
mov [rdi+168h], rax
mov ecx, ebp; int
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset28populateFaceVertexDescriptorERKNS0_3Vtr8internal5LevelEiii; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,int,int)
test eax, eax
js loc_B1177
mov rdi, rbx; this
mov esi, eax; int
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset17finalizeVertexTagEi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::finalizeVertexTag(int)
test eax, eax
jle loc_B1189
mov r15d, eax
lea r13, [rsp+148h+var_138]
mov [r13-10h], r13
mov rax, 4000000000h
mov [r13-8], rax
mov qword ptr [r13+100h], 0
cmp r15d, 41h ; 'A'
jb short loc_B1135
xor edi, edi; void *
call __ZdlPv; operator delete(void *)
mov [rsp+148h+var_148], r13
mov [rsp+148h+var_13C], 40h ; '@'
mov edi, r15d
shl rdi, 2; unsigned __int64
call __Znwm; operator new(ulong)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_148], rax
mov [rsp+148h+var_13C], r15d
loc_B1135:
mov [rsp+148h+var_140], r15d
mov rdx, [rsp+148h+var_148]; int
mov rdi, r14; this
mov esi, ebp; OpenSubdiv::v3_6_0::Vtr::internal::Level *
mov ecx, 0FFFFFFFFh; int *
call __ZN10OpenSubdiv6v3_6_03Tmr38getFaceVertexIncidentFaceVertexIndicesERKNS0_3Vtr8internal5LevelEiPii; OpenSubdiv::v3_6_0::Tmr::getFaceVertexIncidentFaceVertexIndices(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,int *,int)
test eax, eax
jle short loc_B11A8
mov rsi, [rsp+148h+var_148]; int *
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset21connectUnOrderedFacesEPKi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::connectUnOrderedFaces(int const*)
test byte ptr [rbx+113h], 2
jz short loc_B116A
and byte ptr [rbx+8], 0FEh
loc_B116A:
mov rdi, [rsp+148h+var_38]; void *
call __ZdlPv; operator delete(void *)
loc_B1177:
add rsp, 118h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B1189:
lea rdi, aNumfaceverts0; "numFaceVerts > 0"
lea rsi, aWorkspaceLlm4b_59; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aOpensubdivV360_1; "OpenSubdiv::v3_6_0::Tmr::UnorderedSubse"...
mov edx, 269h
call ___assert_fail
loc_B11A8:
lea rdi, aNumfacevertice; "numFaceVertices > 0"
lea rsi, aWorkspaceLlm4b_59; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aOpensubdivV360_1; "OpenSubdiv::v3_6_0::Tmr::UnorderedSubse"...
mov edx, 26Fh
call ___assert_fail
jmp short loc_B11CE
mov r14, rax
jmp short loc_B11DE
loc_B11CE:
mov r14, rax
mov rdi, [rsp+148h+var_38]; void *
call __ZdlPv; operator delete(void *)
loc_B11DE:
mov rdi, [rbx+168h]; void *
call __ZdlPv; operator delete(void *)
mov [rbx+118h], r12
mov dword ptr [rbx+124h], 20h ; ' '
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptorD2Ev; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::~VertexDescriptor()
mov rdi, r14
call __Unwind_Resume
| void OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this,
const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2,
int a3,
unsigned int a4,
int a5,
__int16 a6)
{
int v7; // eax
int v8; // eax
int v9; // r8d
unsigned int v10; // r15d
int *v11; // [rsp+0h] [rbp-148h]
char v12; // [rsp+10h] [rbp-138h] BYREF
void *v13; // [rsp+110h] [rbp-38h]
*(_QWORD *)this = 0LL;
*((_BYTE *)this + 8) &= 0xE0u;
*((_QWORD *)this + 2) = (char *)this + 32;
*((_QWORD *)this + 3) = 0x1000000000LL;
*((_QWORD *)this + 12) = 0LL;
*((_QWORD *)this + 13) = (char *)this + 120;
*((_QWORD *)this + 14) = 0x2000000000LL;
*((_QWORD *)this + 31) = 0LL;
*((_DWORD *)this + 64) = a3;
*((_DWORD *)this + 65) = a4;
*((_DWORD *)this + 66) = a5;
*((_WORD *)this + 134) = -1;
*((_WORD *)this + 135) = a6;
*((_BYTE *)this + 272) &= 0xF0u;
*((_WORD *)this + 137) = 0;
*((_QWORD *)this + 35) = (char *)this + 296;
*((_QWORD *)this + 36) = 0x2000000000LL;
*((_QWORD *)this + 45) = 0LL;
v7 = OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(this, a2, a3, a4, a5);
if ( v7 >= 0 )
{
v8 = OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::finalizeVertexTag(this, v7);
if ( v8 <= 0 )
__assert_fail(
"numFaceVerts > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp",
617LL,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)");
v10 = v8;
v11 = (int *)&v12;
v13 = 0LL;
if ( (unsigned int)v8 >= 0x41 )
{
operator delete(0LL);
v13 = (void *)operator new(4LL * v10);
v11 = (int *)v13;
}
if ( (int)OpenSubdiv::v3_6_0::Tmr::getFaceVertexIncidentFaceVertexIndices(
a2,
(const OpenSubdiv::v3_6_0::Vtr::internal::Level *)a4,
(int)v11,
(int *)0xFFFFFFFFLL,
v9) <= 0 )
__assert_fail(
"numFaceVertices > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp",
623LL,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)");
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::connectUnOrderedFaces(this, v11);
if ( (*((_BYTE *)this + 275) & 2) != 0 )
*((_BYTE *)this + 8) &= ~1u;
operator delete(v13);
}
}
| UnorderedSubset:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x118
MOV EBP,ECX
MOV RBX,RDI
XOR EAX,EAX
MOV qword ptr [RDI],RAX
AND byte ptr [RDI + 0x8],0xe0
MOV R14,RSI
LEA RCX,[RDI + 0x20]
MOV qword ptr [RDI + 0x10],RCX
MOV RCX,0x1000000000
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x60],RAX
LEA RCX,[RDI + 0x78]
MOV qword ptr [RDI + 0x68],RCX
MOV RCX,0x2000000000
MOV qword ptr [RDI + 0x70],RCX
MOV qword ptr [RDI + 0xf8],RAX
MOV dword ptr [RDI + 0x100],EDX
MOV dword ptr [RDI + 0x104],EBP
MOV dword ptr [RDI + 0x108],R8D
MOV word ptr [RDI + 0x10c],0xffff
MOV word ptr [RDI + 0x10e],R9W
AND byte ptr [RDI + 0x110],0xf0
MOV word ptr [RDI + 0x112],0x0
LEA R12,[RDI + 0x128]
MOV qword ptr [RDI + 0x118],R12
MOV qword ptr [RDI + 0x120],RCX
MOV qword ptr [RDI + 0x168],RAX
LAB_001b10b9:
MOV ECX,EBP
CALL 0x00138240
TEST EAX,EAX
JS 0x001b1177
MOV RDI,RBX
MOV ESI,EAX
CALL 0x00138c80
TEST EAX,EAX
JLE 0x001b1189
MOV R15D,EAX
LEA R13,[RSP + 0x10]
MOV qword ptr [R13 + -0x10],R13
MOV RAX,0x4000000000
MOV qword ptr [R13 + -0x8],RAX
MOV qword ptr [R13 + 0x100],0x0
CMP R15D,0x41
JC 0x001b1135
XOR EDI,EDI
CALL 0x0013a0c0
MOV qword ptr [RSP],R13
MOV dword ptr [RSP + 0xc],0x40
MOV EDI,R15D
SHL RDI,0x2
LAB_001b111f:
CALL 0x0013a230
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0xc],R15D
LAB_001b1135:
MOV dword ptr [RSP + 0x8],R15D
MOV RDX,qword ptr [RSP]
LAB_001b113e:
MOV RDI,R14
MOV ESI,EBP
MOV ECX,0xffffffff
CALL 0x00138800
TEST EAX,EAX
JLE 0x001b11a8
MOV RSI,qword ptr [RSP]
MOV RDI,RBX
CALL 0x0013ab90
LAB_001b115d:
TEST byte ptr [RBX + 0x113],0x2
JZ 0x001b116a
AND byte ptr [RBX + 0x8],0xfe
LAB_001b116a:
MOV RDI,qword ptr [RSP + 0x110]
CALL 0x0013a0c0
LAB_001b1177:
ADD RSP,0x118
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b1189:
LEA RDI,[0x1c6306]
LEA RSI,[0x1c6074]
LEA RCX,[0x1c6317]
MOV EDX,0x269
CALL 0x00139560
LAB_001b11a8:
LEA RDI,[0x1c2da7]
LEA RSI,[0x1c6074]
LEA RCX,[0x1c6317]
MOV EDX,0x26f
CALL 0x00139560
|
/* OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level
const&, int, int, int, int) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset
(UnorderedSubset *this,Level *param_1,int param_2,int param_3,int param_4,int param_5)
{
int iVar1;
uint uVar2;
int *local_148;
int local_138 [64];
int *local_38;
*(int8 *)this = 0;
this[8] = (UnorderedSubset)((byte)this[8] & 0xe0);
*(UnorderedSubset **)(this + 0x10) = this + 0x20;
*(int8 *)(this + 0x18) = 0x1000000000;
*(int8 *)(this + 0x60) = 0;
*(UnorderedSubset **)(this + 0x68) = this + 0x78;
*(int8 *)(this + 0x70) = 0x2000000000;
*(int8 *)(this + 0xf8) = 0;
*(int *)(this + 0x100) = param_2;
*(int *)(this + 0x104) = param_3;
*(int *)(this + 0x108) = param_4;
*(int2 *)(this + 0x10c) = 0xffff;
*(short *)(this + 0x10e) = (short)param_5;
this[0x110] = (UnorderedSubset)((byte)this[0x110] & 0xf0);
*(int2 *)(this + 0x112) = 0;
*(UnorderedSubset **)(this + 0x118) = this + 0x128;
*(int8 *)(this + 0x120) = 0x2000000000;
*(int8 *)(this + 0x168) = 0;
/* try { // try from 001b10b9 to 001b10bf has its CatchHandler @ 001b11c9 */
iVar1 = populateFaceVertexDescriptor(this,param_1,param_2,param_3,param_4);
if (-1 < iVar1) {
uVar2 = finalizeVertexTag(this,iVar1);
if ((int)uVar2 < 1) {
/* WARNING: Subroutine does not return */
__assert_fail("numFaceVerts > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp"
,0x269,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)"
);
}
local_148 = local_138;
local_38 = (int *)0x0;
if (0x40 < uVar2) {
operator_delete((void *)0x0);
/* try { // try from 001b111f to 001b1123 has its CatchHandler @ 001b11c7 */
local_148 = (int *)operator_new((ulong)uVar2 << 2);
local_38 = local_148;
}
/* try { // try from 001b113e to 001b115c has its CatchHandler @ 001b11ce */
iVar1 = getFaceVertexIncidentFaceVertexIndices(param_1,param_3,local_148,-1);
if (iVar1 < 1) {
/* WARNING: Subroutine does not return */
__assert_fail("numFaceVertices > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp"
,0x26f,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)"
);
}
connectUnOrderedFaces(this,local_148);
if (((byte)this[0x113] & 2) != 0) {
this[8] = (UnorderedSubset)((byte)this[8] & 0xfe);
}
operator_delete(local_38);
}
return;
}
| |
23,223 | OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp | UnorderedSubset::UnorderedSubset(Level const& level,
Index faceIndex, Index vertIndex, int vertInFace, int regFaceSize) :
_faceIndex(faceIndex), _vertIndex(vertIndex), _vertInFace(vertInFace), _regFaceSize(regFaceSize) {
int faceInRing = populateFaceVertexDescriptor(level, faceIndex, vertIndex, vertInFace);
if (faceInRing >= 0) {
int numFaceVerts = finalizeVertexTag(faceInRing);
assert(numFaceVerts > 0);
StackBuffer<Index, 64, true> cFaceVertIndices;
cFaceVertIndices.SetSize(numFaceVerts);
int numFaceVertices = getFaceVertexIncidentFaceVertexIndices(level, vertIndex, cFaceVertIndices);
assert(numFaceVertices > 0);
connectUnOrderedFaces(cFaceVertIndices);
if (_tag.boundaryNonSharp) {
_vdesc.isValid = false;
return;
}
}
} | O3 | cpp | OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movl %ecx, %ebp
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, (%rdi)
andb $-0x20, 0x8(%rdi)
movq %rsi, %r14
leaq 0x20(%rdi), %rcx
movq %rcx, 0x10(%rdi)
movabsq $0x1000000000, %rcx # imm = 0x1000000000
movq %rcx, 0x18(%rdi)
movq %rax, 0x60(%rdi)
leaq 0x78(%rdi), %rcx
movq %rcx, 0x68(%rdi)
movabsq $0x2000000000, %rcx # imm = 0x2000000000
movq %rcx, 0x70(%rdi)
movq %rax, 0xf8(%rdi)
movl %edx, 0x100(%rdi)
movl %ebp, 0x104(%rdi)
movl %r8d, 0x108(%rdi)
movw $0xffff, 0x10c(%rdi) # imm = 0xFFFF
movw %r9w, 0x10e(%rdi)
andb $-0x10, 0x110(%rdi)
movw $0x0, 0x112(%rdi)
leaq 0x128(%rdi), %r13
movq %r13, 0x118(%rdi)
movq %rcx, 0x120(%rdi)
movq %rax, 0x168(%rdi)
movl %ebp, %ecx
callq 0x38240
testl %eax, %eax
js 0xb418c
movq %rbx, %rdi
movl %eax, %esi
callq 0x38c80
testl %eax, %eax
jle 0xb419e
movl %eax, %r15d
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movabsq $0x4000000000, %rax # imm = 0x4000000000
movq %rax, -0x8(%r12)
movq $0x0, 0x100(%r12)
cmpl $0x41, %r15d
jb 0xb414b
xorl %edi, %edi
callq 0x3a0a0
movq %r12, (%rsp)
movl $0x40, 0xc(%rsp)
movl %r15d, %edi
shlq $0x2, %rdi
callq 0x3a210
movq %rax, %r12
movq %rax, 0x110(%rsp)
movq %rax, (%rsp)
movl %r15d, 0xc(%rsp)
movl %r15d, 0x8(%rsp)
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
callq 0x38800
testl %eax, %eax
jle 0xb41bd
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x3ab70
testb $0x2, 0x113(%rbx)
je 0xb417f
andb $-0x2, 0x8(%rbx)
movq 0x110(%rsp), %rdi
callq 0x3a0a0
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15979(%rip), %rdi # 0xc9b1e
leaq 0x156e0(%rip), %rsi # 0xc988c
leaq 0x1597c(%rip), %rcx # 0xc9b2f
movl $0x269, %edx # imm = 0x269
callq 0x39540
leaq 0x12453(%rip), %rdi # 0xc6617
leaq 0x156c1(%rip), %rsi # 0xc988c
leaq 0x1595d(%rip), %rcx # 0xc9b2f
movl $0x26f, %edx # imm = 0x26F
callq 0x39540
jmp 0xb41e3
movq %rax, %r14
jmp 0xb41f3
movq %rax, %r14
movq 0x110(%rsp), %rdi
callq 0x3a0a0
movq 0x168(%rbx), %rdi
callq 0x3a0a0
movq %r13, 0x118(%rbx)
movl $0x20, 0x124(%rbx)
movq %rbx, %rdi
callq 0x3bff0
movq %r14, %rdi
callq 0x3bd30
| _ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubsetC2ERKNS0_3Vtr8internal5LevelEiiii:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int, int)'
push r15
push r14
push r13
push r12
push rbx
sub rsp, 118h
mov ebp, ecx
mov rbx, rdi
xor eax, eax
mov [rdi], rax
and byte ptr [rdi+8], 0E0h
mov r14, rsi
lea rcx, [rdi+20h]
mov [rdi+10h], rcx
mov rcx, 1000000000h
mov [rdi+18h], rcx
mov [rdi+60h], rax
lea rcx, [rdi+78h]
mov [rdi+68h], rcx
mov rcx, 2000000000h
mov [rdi+70h], rcx
mov [rdi+0F8h], rax
mov [rdi+100h], edx
mov [rdi+104h], ebp
mov [rdi+108h], r8d
mov word ptr [rdi+10Ch], 0FFFFh
mov [rdi+10Eh], r9w
and byte ptr [rdi+110h], 0F0h
mov word ptr [rdi+112h], 0
lea r13, [rdi+128h]
mov [rdi+118h], r13
mov [rdi+120h], rcx
mov [rdi+168h], rax
mov ecx, ebp; int
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset28populateFaceVertexDescriptorERKNS0_3Vtr8internal5LevelEiii; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,int,int)
test eax, eax
js loc_B418C
mov rdi, rbx; this
mov esi, eax; int
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset17finalizeVertexTagEi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::finalizeVertexTag(int)
test eax, eax
jle loc_B419E
mov r15d, eax
lea r12, [rsp+148h+var_138]
mov [r12-10h], r12
mov rax, 4000000000h
mov [r12-8], rax
mov qword ptr [r12+100h], 0
cmp r15d, 41h ; 'A'
jb short loc_B414B
xor edi, edi; void *
call __ZdlPv; operator delete(void *)
mov [rsp+148h+var_148], r12
mov [rsp+148h+var_13C], 40h ; '@'
mov edi, r15d
shl rdi, 2; unsigned __int64
call __Znwm; operator new(ulong)
mov r12, rax
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_148], rax
mov [rsp+148h+var_13C], r15d
loc_B414B:
mov [rsp+148h+var_140], r15d
mov rdi, r14; this
mov esi, ebp; OpenSubdiv::v3_6_0::Vtr::internal::Level *
mov rdx, r12; int
mov ecx, 0FFFFFFFFh; int *
call __ZN10OpenSubdiv6v3_6_03Tmr38getFaceVertexIncidentFaceVertexIndicesERKNS0_3Vtr8internal5LevelEiPii; OpenSubdiv::v3_6_0::Tmr::getFaceVertexIncidentFaceVertexIndices(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,int *,int)
test eax, eax
jle short loc_B41BD
mov rsi, [rsp+148h+var_148]; int *
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset21connectUnOrderedFacesEPKi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::connectUnOrderedFaces(int const*)
test byte ptr [rbx+113h], 2
jz short loc_B417F
and byte ptr [rbx+8], 0FEh
loc_B417F:
mov rdi, [rsp+148h+var_38]; void *
call __ZdlPv; operator delete(void *)
loc_B418C:
add rsp, 118h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B419E:
lea rdi, aNumfaceverts0; "numFaceVerts > 0"
lea rsi, aWorkspaceLlm4b_59; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aOpensubdivV360_1; "OpenSubdiv::v3_6_0::Tmr::UnorderedSubse"...
mov edx, 269h
call ___assert_fail
loc_B41BD:
lea rdi, aNumfacevertice; "numFaceVertices > 0"
lea rsi, aWorkspaceLlm4b_59; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aOpensubdivV360_1; "OpenSubdiv::v3_6_0::Tmr::UnorderedSubse"...
mov edx, 26Fh
call ___assert_fail
jmp short loc_B41E3
mov r14, rax
jmp short loc_B41F3
loc_B41E3:
mov r14, rax
mov rdi, [rsp+148h+var_38]; void *
call __ZdlPv; operator delete(void *)
loc_B41F3:
mov rdi, [rbx+168h]; void *
call __ZdlPv; operator delete(void *)
mov [rbx+118h], r13
mov dword ptr [rbx+124h], 20h ; ' '
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptorD2Ev; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::~VertexDescriptor()
mov rdi, r14
call __Unwind_Resume
| void OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this,
const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2,
int a3,
unsigned int a4,
int a5,
__int16 a6)
{
int v7; // eax
int v8; // eax
int v9; // r8d
unsigned int v10; // r15d
int *v11; // r12
void *v12; // rax
const int *v13; // [rsp+0h] [rbp-148h]
int v14[64]; // [rsp+10h] [rbp-138h] BYREF
void *v15; // [rsp+110h] [rbp-38h]
*(_QWORD *)this = 0LL;
*((_BYTE *)this + 8) &= 0xE0u;
*((_QWORD *)this + 2) = (char *)this + 32;
*((_QWORD *)this + 3) = 0x1000000000LL;
*((_QWORD *)this + 12) = 0LL;
*((_QWORD *)this + 13) = (char *)this + 120;
*((_QWORD *)this + 14) = 0x2000000000LL;
*((_QWORD *)this + 31) = 0LL;
*((_DWORD *)this + 64) = a3;
*((_DWORD *)this + 65) = a4;
*((_DWORD *)this + 66) = a5;
*((_WORD *)this + 134) = -1;
*((_WORD *)this + 135) = a6;
*((_BYTE *)this + 272) &= 0xF0u;
*((_WORD *)this + 137) = 0;
*((_QWORD *)this + 35) = (char *)this + 296;
*((_QWORD *)this + 36) = 0x2000000000LL;
*((_QWORD *)this + 45) = 0LL;
v7 = OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(this, a2, a3, a4, a5);
if ( v7 >= 0 )
{
v8 = OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::finalizeVertexTag(this, v7);
if ( v8 <= 0 )
__assert_fail(
"numFaceVerts > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp",
617LL,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)");
v10 = v8;
v11 = v14;
v13 = v14;
v15 = 0LL;
if ( (unsigned int)v8 >= 0x41 )
{
operator delete(0LL);
v12 = (void *)operator new(4LL * v10);
LODWORD(v11) = (_DWORD)v12;
v15 = v12;
v13 = (const int *)v12;
}
if ( (int)OpenSubdiv::v3_6_0::Tmr::getFaceVertexIncidentFaceVertexIndices(
a2,
(const OpenSubdiv::v3_6_0::Vtr::internal::Level *)a4,
(int)v11,
(int *)0xFFFFFFFFLL,
v9) <= 0 )
__assert_fail(
"numFaceVertices > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp",
623LL,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)");
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::connectUnOrderedFaces(this, v13);
if ( (*((_BYTE *)this + 275) & 2) != 0 )
*((_BYTE *)this + 8) &= ~1u;
operator delete(v15);
}
}
| UnorderedSubset:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x118
MOV EBP,ECX
MOV RBX,RDI
XOR EAX,EAX
MOV qword ptr [RDI],RAX
AND byte ptr [RDI + 0x8],0xe0
MOV R14,RSI
LEA RCX,[RDI + 0x20]
MOV qword ptr [RDI + 0x10],RCX
MOV RCX,0x1000000000
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x60],RAX
LEA RCX,[RDI + 0x78]
MOV qword ptr [RDI + 0x68],RCX
MOV RCX,0x2000000000
MOV qword ptr [RDI + 0x70],RCX
MOV qword ptr [RDI + 0xf8],RAX
MOV dword ptr [RDI + 0x100],EDX
MOV dword ptr [RDI + 0x104],EBP
MOV dword ptr [RDI + 0x108],R8D
MOV word ptr [RDI + 0x10c],0xffff
MOV word ptr [RDI + 0x10e],R9W
AND byte ptr [RDI + 0x110],0xf0
MOV word ptr [RDI + 0x112],0x0
LEA R13,[RDI + 0x128]
MOV qword ptr [RDI + 0x118],R13
MOV qword ptr [RDI + 0x120],RCX
MOV qword ptr [RDI + 0x168],RAX
LAB_001b40c9:
MOV ECX,EBP
CALL 0x00138240
TEST EAX,EAX
JS 0x001b418c
MOV RDI,RBX
MOV ESI,EAX
CALL 0x00138c80
TEST EAX,EAX
JLE 0x001b419e
MOV R15D,EAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RAX,0x4000000000
MOV qword ptr [R12 + -0x8],RAX
MOV qword ptr [R12 + 0x100],0x0
CMP R15D,0x41
JC 0x001b414b
XOR EDI,EDI
CALL 0x0013a0a0
MOV qword ptr [RSP],R12
MOV dword ptr [RSP + 0xc],0x40
MOV EDI,R15D
SHL RDI,0x2
LAB_001b4132:
CALL 0x0013a210
MOV R12,RAX
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0xc],R15D
LAB_001b414b:
MOV dword ptr [RSP + 0x8],R15D
LAB_001b4150:
MOV RDI,R14
MOV ESI,EBP
MOV RDX,R12
MOV ECX,0xffffffff
CALL 0x00138800
TEST EAX,EAX
JLE 0x001b41bd
MOV RSI,qword ptr [RSP]
MOV RDI,RBX
CALL 0x0013ab70
LAB_001b4172:
TEST byte ptr [RBX + 0x113],0x2
JZ 0x001b417f
AND byte ptr [RBX + 0x8],0xfe
LAB_001b417f:
MOV RDI,qword ptr [RSP + 0x110]
CALL 0x0013a0a0
LAB_001b418c:
ADD RSP,0x118
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b419e:
LEA RDI,[0x1c9b1e]
LEA RSI,[0x1c988c]
LEA RCX,[0x1c9b2f]
MOV EDX,0x269
CALL 0x00139540
LAB_001b41bd:
LEA RDI,[0x1c6617]
LEA RSI,[0x1c988c]
LEA RCX,[0x1c9b2f]
MOV EDX,0x26f
CALL 0x00139540
|
/* OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(OpenSubdiv::v3_6_0::Vtr::internal::Level
const&, int, int, int, int) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset
(UnorderedSubset *this,Level *param_1,int param_2,int param_3,int param_4,int param_5)
{
int iVar1;
uint uVar2;
int *piVar3;
int local_138 [64];
int *local_38;
*(int8 *)this = 0;
this[8] = (UnorderedSubset)((byte)this[8] & 0xe0);
*(UnorderedSubset **)(this + 0x10) = this + 0x20;
*(int8 *)(this + 0x18) = 0x1000000000;
*(int8 *)(this + 0x60) = 0;
*(UnorderedSubset **)(this + 0x68) = this + 0x78;
*(int8 *)(this + 0x70) = 0x2000000000;
*(int8 *)(this + 0xf8) = 0;
*(int *)(this + 0x100) = param_2;
*(int *)(this + 0x104) = param_3;
*(int *)(this + 0x108) = param_4;
*(int2 *)(this + 0x10c) = 0xffff;
*(short *)(this + 0x10e) = (short)param_5;
this[0x110] = (UnorderedSubset)((byte)this[0x110] & 0xf0);
*(int2 *)(this + 0x112) = 0;
*(UnorderedSubset **)(this + 0x118) = this + 0x128;
*(int8 *)(this + 0x120) = 0x2000000000;
*(int8 *)(this + 0x168) = 0;
/* try { // try from 001b40c9 to 001b40cf has its CatchHandler @ 001b41de */
iVar1 = populateFaceVertexDescriptor(this,param_1,param_2,param_3,param_4);
if (-1 < iVar1) {
uVar2 = finalizeVertexTag(this,iVar1);
if ((int)uVar2 < 1) {
/* WARNING: Subroutine does not return */
__assert_fail("numFaceVerts > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp"
,0x269,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)"
);
}
piVar3 = local_138;
local_38 = (int *)0x0;
if (0x40 < uVar2) {
operator_delete((void *)0x0);
/* try { // try from 001b4132 to 001b4136 has its CatchHandler @ 001b41dc */
piVar3 = (int *)operator_new((ulong)uVar2 << 2);
local_38 = piVar3;
}
/* try { // try from 001b4150 to 001b4171 has its CatchHandler @ 001b41e3 */
iVar1 = getFaceVertexIncidentFaceVertexIndices(param_1,param_3,piVar3,-1);
if (iVar1 < 1) {
/* WARNING: Subroutine does not return */
__assert_fail("numFaceVertices > 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp"
,0x26f,
"OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::UnorderedSubset(const Level &, Index, Index, int, int)"
);
}
connectUnOrderedFaces(this,piVar3);
if (((byte)this[0x113] & 2) != 0) {
this[8] = (UnorderedSubset)((byte)this[8] & 0xfe);
}
operator_delete(local_38);
}
return;
}
| |
23,224 | mysql_select_db | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL
mysql_select_db(MYSQL *mysql, const char *db)
{
int error;
if (!db)
return 1;
if ((error=ma_simple_command(mysql, COM_INIT_DB, db,
(uint) strlen(db),0,0)))
return(error);
free(mysql->db);
mysql->db=strdup(db);
return(0);
} | O0 | c | mysql_select_db:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x22a80
movl $0x1, -0x4(%rbp)
jmp 0x22af5
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x131a0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl %eax, %eax
movl %eax, %ecx
movl $0x2, %esi
xorl %r8d, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0x1c930
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
je 0x22ac7
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x22af5
movq -0x10(%rbp), %rax
movq 0x2e8(%rax), %rdi
callq 0x13520
movq -0x18(%rbp), %rdi
callq 0x137a0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2e8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| mysql_select_db:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_18], 0
jnz short loc_22A80
mov [rbp+var_4], 1
jmp short loc_22AF5
loc_22A80:
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
call _strlen
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_28]
mov eax, eax
mov ecx, eax
mov esi, 2
xor r8d, r8d
xor eax, eax
mov r9d, eax
call ma_simple_command
mov [rbp+var_1C], eax
cmp eax, 0
jz short loc_22AC7
mov eax, [rbp+var_1C]
mov [rbp+var_4], eax
jmp short loc_22AF5
loc_22AC7:
mov rax, [rbp+var_10]
mov rdi, [rax+2E8h]
call _free
mov rdi, [rbp+var_18]
call _strdup
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2E8h], rcx
mov [rbp+var_4], 0
loc_22AF5:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_select_db(long long a1, long long a2)
{
unsigned int v2; // eax
unsigned int v4; // [rsp+14h] [rbp-1Ch]
if ( a2 )
{
v2 = strlen(a2);
v4 = ma_simple_command(a1, 2u, a2, v2, 0, 0LL);
if ( v4 )
{
return v4;
}
else
{
free(*(_QWORD *)(a1 + 744));
*(_QWORD *)(a1 + 744) = strdup(a2);
return 0;
}
}
else
{
return 1;
}
}
| mysql_select_db:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x00122a80
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00122af5
LAB_00122a80:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001131a0
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
MOV EAX,EAX
MOV ECX,EAX
MOV ESI,0x2
XOR R8D,R8D
XOR EAX,EAX
MOV R9D,EAX
CALL 0x0011c930
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
JZ 0x00122ac7
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00122af5
LAB_00122ac7:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x2e8]
CALL 0x00113520
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001137a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2e8],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_00122af5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int mysql_select_db(long param_1,char *param_2)
{
size_t sVar1;
char *pcVar2;
int4 local_c;
if (param_2 == (char *)0x0) {
local_c = 1;
}
else {
sVar1 = strlen(param_2);
local_c = ma_simple_command(param_1,2,param_2,sVar1 & 0xffffffff,0,0);
if (local_c == 0) {
free(*(void **)(param_1 + 0x2e8));
pcVar2 = strdup(param_2);
*(char **)(param_1 + 0x2e8) = pcVar2;
local_c = 0;
}
}
return local_c;
}
| |
23,225 | mag_machine_probe_os_name | magnetron/magnetron/magnetron.c | static void MAG_COLDPROC mag_machine_probe_os_name(char (*out_os_name)[128]) { /* Get OS name */
#ifdef _WIN32
#elif defined(__APPLE__)
size_t len;
uint8_t tmp[256];
if (mag_likely(mag_sysctl_mib01(&tmp, &len, CTL_KERN, KERN_VERSION) && len && *tmp)) {
char* colon = strchr((const char*)tmp, ':');
if (colon) *colon = '\0';
snprintf(*out_os_name, sizeof(*out_os_name), "%s", (const char*)tmp);
}
#elif defined (__linux__)
FILE* f = mag_fopen("/etc/os-release", "r");
if (!f) {
f = mag_fopen("/usr/lib/os-release", "r");
if (!f) {
f = mag_fopen("/etc/lsb-release", "r");
if (mag_unlikely(!f)) return;
char line[256];
while (fgets(line, sizeof(line), f) != NULL) {
size_t len = strlen(line);
if (len > 0 && line[len-1] == '\n') line[len-1] = '\0';
if (strncmp(line, "DISTRIB_ID", sizeof("DISTRIB_ID")-1) == 0) {
char* equals_sign = strchr(line, '=');
if (equals_sign && *(equals_sign+1)) {
strncpy(*out_os_name, equals_sign+1, sizeof(*out_os_name)-1);
(*out_os_name)[sizeof(*out_os_name)-1] = '\0';
}
} else if (strncmp(line, "DISTRIB_DESCRIPTION", sizeof("DISTRIB_DESCRIPTION")-1) == 0) {
char* equals_sign = strchr(line, '=');
if (equals_sign && *(equals_sign+1)) {
char* start_quote = strchr(equals_sign+1, '"');
if (start_quote) {
char* end_quote = strchr(start_quote+1, '"');
if (end_quote) {
size_t desc_len = end_quote-start_quote-1;
if (desc_len >= sizeof(*out_os_name)) desc_len = sizeof(*out_os_name)-1;
strncpy(*out_os_name, start_quote+1, desc_len);
(*out_os_name)[desc_len] = '\0';
} else {
strncpy(*out_os_name, start_quote+1, sizeof(*out_os_name)-1);
(*out_os_name)[sizeof(*out_os_name)-1] = '\0';
}
} else {
strncpy(*out_os_name, equals_sign+1, sizeof(*out_os_name)-1);
(*out_os_name)[sizeof(*out_os_name)-1] = '\0';
}
}
}
}
fclose(f);
return;
}
}
char line[256];
while (fgets(line, sizeof(line), f) != NULL) {
size_t len = strlen(line);
if (len > 0 && line[len-1] == '\n') line[len-1] = '\0';
if (strncmp(line, "NAME", sizeof("NAME")-1) == 0) {
char* equals_sign = strchr(line, '=');
if (equals_sign && *(equals_sign+1)) {
strncpy(*out_os_name, equals_sign + 1, sizeof(*out_os_name)-1);
(*out_os_name)[sizeof(*out_os_name)-1] = '\0';
}
} else if (strncmp(line, "PRETTY_NAME", sizeof("PRETTY_NAME")-1) == 0) {
char* equals_sign = strchr(line, '=');
if (equals_sign && *(equals_sign+1)) {
strncpy(*out_os_name, equals_sign+1, sizeof(*out_os_name)-1);
(*out_os_name)[sizeof(*out_os_name)-1] = '\0';
}
}
}
fclose(f);
mag_trim_quotes(*out_os_name);
#endif
} | O0 | c | mag_machine_probe_os_name:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp # imm = 0x260
movq %rdi, -0x8(%rbp)
leaq 0x1a8c47(%rip), %rdi # 0x1c392d
leaq 0x1ab9f8(%rip), %rsi # 0x1c66e5
callq 0x19660
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x1afa2
leaq 0x1a8c35(%rip), %rdi # 0x1c393d
leaq 0x1ab9d6(%rip), %rsi # 0x1c66e5
callq 0x19660
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x1afa0
leaq 0x1a8c27(%rip), %rdi # 0x1c3951
leaq 0x1ab9b4(%rip), %rsi # 0x1c66e5
callq 0x19660
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x1ad5a
jmp 0x1b108
jmp 0x1ad5c
leaq -0x110(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl $0x100, %esi # imm = 0x100
callq 0xf3f0
cmpq $0x0, %rax
je 0x1af92
leaq -0x110(%rbp), %rdi
callq 0xf200
movq %rax, -0x118(%rbp)
cmpq $0x0, -0x118(%rbp)
jbe 0x1adc3
movq -0x118(%rbp), %rax
subq $0x1, %rax
movsbl -0x110(%rbp,%rax), %eax
cmpl $0xa, %eax
jne 0x1adc3
movq -0x118(%rbp), %rax
subq $0x1, %rax
movb $0x0, -0x110(%rbp,%rax)
leaq -0x110(%rbp), %rdi
leaq 0x1a8b91(%rip), %rsi # 0x1c3962
movl $0xa, %edx
callq 0xf0d0
cmpl $0x0, %eax
jne 0x1ae38
leaq -0x110(%rbp), %rdi
movl $0x3d, %esi
callq 0xf240
movq %rax, -0x120(%rbp)
cmpq $0x0, -0x120(%rbp)
je 0x1ae33
movq -0x120(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x1ae33
movq -0x8(%rbp), %rdi
movq -0x120(%rbp), %rsi
addq $0x1, %rsi
movl $0x7f, %edx
callq 0xf0c0
movq -0x8(%rbp), %rax
movb $0x0, 0x7f(%rax)
jmp 0x1af8d
leaq -0x110(%rbp), %rdi
leaq 0x1a8b27(%rip), %rsi # 0x1c396d
movl $0x13, %edx
callq 0xf0d0
cmpl $0x0, %eax
jne 0x1af8b
leaq -0x110(%rbp), %rdi
movl $0x3d, %esi
callq 0xf240
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
je 0x1af89
movq -0x128(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x1af89
movq -0x128(%rbp), %rdi
addq $0x1, %rdi
movl $0x22, %esi
callq 0xf240
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x130(%rbp)
je 0x1af66
movq -0x130(%rbp), %rdi
addq $0x1, %rdi
movl $0x22, %esi
callq 0xf240
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x138(%rbp)
je 0x1af43
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movq %rax, -0x140(%rbp)
cmpq $0x80, -0x140(%rbp)
jb 0x1af17
movq $0x7f, -0x140(%rbp)
movq -0x8(%rbp), %rdi
movq -0x130(%rbp), %rsi
addq $0x1, %rsi
movq -0x140(%rbp), %rdx
callq 0xf0c0
movq -0x8(%rbp), %rax
movq -0x140(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x1af64
movq -0x8(%rbp), %rdi
movq -0x130(%rbp), %rsi
addq $0x1, %rsi
movl $0x7f, %edx
callq 0xf0c0
movq -0x8(%rbp), %rax
movb $0x0, 0x7f(%rax)
jmp 0x1af87
movq -0x8(%rbp), %rdi
movq -0x128(%rbp), %rsi
addq $0x1, %rsi
movl $0x7f, %edx
callq 0xf0c0
movq -0x8(%rbp), %rax
movb $0x0, 0x7f(%rax)
jmp 0x1af89
jmp 0x1af8b
jmp 0x1af8d
jmp 0x1ad5c
movq -0x10(%rbp), %rdi
callq 0xf1e0
jmp 0x1b108
jmp 0x1afa2
jmp 0x1afa4
leaq -0x240(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl $0x100, %esi # imm = 0x100
callq 0xf3f0
cmpq $0x0, %rax
je 0x1b0f6
leaq -0x240(%rbp), %rdi
callq 0xf200
movq %rax, -0x248(%rbp)
cmpq $0x0, -0x248(%rbp)
jbe 0x1b00b
movq -0x248(%rbp), %rax
subq $0x1, %rax
movsbl -0x240(%rbp,%rax), %eax
cmpl $0xa, %eax
jne 0x1b00b
movq -0x248(%rbp), %rax
subq $0x1, %rax
movb $0x0, -0x240(%rbp,%rax)
leaq -0x240(%rbp), %rdi
leaq 0x1a896f(%rip), %rsi # 0x1c3988
movl $0x4, %edx
callq 0xf0d0
cmpl $0x0, %eax
jne 0x1b07d
leaq -0x240(%rbp), %rdi
movl $0x3d, %esi
callq 0xf240
movq %rax, -0x250(%rbp)
cmpq $0x0, -0x250(%rbp)
je 0x1b07b
movq -0x250(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x1b07b
movq -0x8(%rbp), %rdi
movq -0x250(%rbp), %rsi
addq $0x1, %rsi
movl $0x7f, %edx
callq 0xf0c0
movq -0x8(%rbp), %rax
movb $0x0, 0x7f(%rax)
jmp 0x1b0f1
leaq -0x240(%rbp), %rdi
leaq 0x1a88f6(%rip), %rsi # 0x1c3981
movl $0xb, %edx
callq 0xf0d0
cmpl $0x0, %eax
jne 0x1b0ef
leaq -0x240(%rbp), %rdi
movl $0x3d, %esi
callq 0xf240
movq %rax, -0x258(%rbp)
cmpq $0x0, -0x258(%rbp)
je 0x1b0ed
movq -0x258(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x1b0ed
movq -0x8(%rbp), %rdi
movq -0x258(%rbp), %rsi
addq $0x1, %rsi
movl $0x7f, %edx
callq 0xf0c0
movq -0x8(%rbp), %rax
movb $0x0, 0x7f(%rax)
jmp 0x1b0ef
jmp 0x1b0f1
jmp 0x1afa4
movq -0x10(%rbp), %rdi
callq 0xf1e0
movq -0x8(%rbp), %rdi
callq 0x1bd90
addq $0x260, %rsp # imm = 0x260
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mag_machine_probe_os_name:
push rbp
mov rbp, rsp
sub rsp, 260h
mov [rbp+var_8], rdi
lea rdi, aEtcOsRelease; "/etc/os-release"
lea rsi, aBadDhtHeader+0Dh; "r"
call mag_fopen
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jnz loc_1AFA2
lea rdi, aUsrLibOsReleas; "/usr/lib/os-release"
lea rsi, aBadDhtHeader+0Dh; "r"
call mag_fopen
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jnz loc_1AFA0
lea rdi, aEtcLsbRelease; "/etc/lsb-release"
lea rsi, aBadDhtHeader+0Dh; "r"
call mag_fopen
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
setnz al
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_1AD5A
jmp loc_1B108
loc_1AD5A:
jmp short $+2
loc_1AD5C:
lea rdi, [rbp+var_110]
mov rdx, [rbp+var_10]
mov esi, 100h
call _fgets
cmp rax, 0
jz loc_1AF92
lea rdi, [rbp+var_110]
call _strlen
mov [rbp+var_118], rax
cmp [rbp+var_118], 0
jbe short loc_1ADC3
mov rax, [rbp+var_118]
sub rax, 1
movsx eax, [rbp+rax+var_110]
cmp eax, 0Ah
jnz short loc_1ADC3
mov rax, [rbp+var_118]
sub rax, 1
mov [rbp+rax+var_110], 0
loc_1ADC3:
lea rdi, [rbp+var_110]
lea rsi, aDistribId; "DISTRIB_ID"
mov edx, 0Ah
call _strncmp
cmp eax, 0
jnz short loc_1AE38
lea rdi, [rbp+var_110]
mov esi, 3Dh ; '='
call _strchr
mov [rbp+var_120], rax
cmp [rbp+var_120], 0
jz short loc_1AE33
mov rax, [rbp+var_120]
movsx eax, byte ptr [rax+1]
cmp eax, 0
jz short loc_1AE33
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_120]
add rsi, 1
mov edx, 7Fh
call _strncpy
mov rax, [rbp+var_8]
mov byte ptr [rax+7Fh], 0
loc_1AE33:
jmp loc_1AF8D
loc_1AE38:
lea rdi, [rbp+var_110]
lea rsi, aDistribDescrip; "DISTRIB_DESCRIPTION"
mov edx, 13h
call _strncmp
cmp eax, 0
jnz loc_1AF8B
lea rdi, [rbp+var_110]
mov esi, 3Dh ; '='
call _strchr
mov [rbp+var_128], rax
cmp [rbp+var_128], 0
jz loc_1AF89
mov rax, [rbp+var_128]
movsx eax, byte ptr [rax+1]
cmp eax, 0
jz loc_1AF89
mov rdi, [rbp+var_128]
add rdi, 1
mov esi, 22h ; '"'
call _strchr
mov [rbp+var_130], rax
cmp [rbp+var_130], 0
jz loc_1AF66
mov rdi, [rbp+var_130]
add rdi, 1
mov esi, 22h ; '"'
call _strchr
mov [rbp+var_138], rax
cmp [rbp+var_138], 0
jz short loc_1AF43
mov rax, [rbp+var_138]
mov rcx, [rbp+var_130]
sub rax, rcx
sub rax, 1
mov [rbp+var_140], rax
cmp [rbp+var_140], 80h
jb short loc_1AF17
mov [rbp+var_140], 7Fh
loc_1AF17:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_130]
add rsi, 1
mov rdx, [rbp+var_140]
call _strncpy
mov rax, [rbp+var_8]
mov rcx, [rbp+var_140]
mov byte ptr [rax+rcx], 0
jmp short loc_1AF64
loc_1AF43:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_130]
add rsi, 1
mov edx, 7Fh
call _strncpy
mov rax, [rbp+var_8]
mov byte ptr [rax+7Fh], 0
loc_1AF64:
jmp short loc_1AF87
loc_1AF66:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_128]
add rsi, 1
mov edx, 7Fh
call _strncpy
mov rax, [rbp+var_8]
mov byte ptr [rax+7Fh], 0
loc_1AF87:
jmp short $+2
loc_1AF89:
jmp short $+2
loc_1AF8B:
jmp short $+2
loc_1AF8D:
jmp loc_1AD5C
loc_1AF92:
mov rdi, [rbp+var_10]
call _fclose
jmp loc_1B108
loc_1AFA0:
jmp short $+2
loc_1AFA2:
jmp short $+2
loc_1AFA4:
lea rdi, [rbp+var_240]
mov rdx, [rbp+var_10]
mov esi, 100h
call _fgets
cmp rax, 0
jz loc_1B0F6
lea rdi, [rbp+var_240]
call _strlen
mov [rbp+var_248], rax
cmp [rbp+var_248], 0
jbe short loc_1B00B
mov rax, [rbp+var_248]
sub rax, 1
movsx eax, [rbp+rax+var_240]
cmp eax, 0Ah
jnz short loc_1B00B
mov rax, [rbp+var_248]
sub rax, 1
mov [rbp+rax+var_240], 0
loc_1B00B:
lea rdi, [rbp+var_240]
lea rsi, aPrettyName+7; "NAME"
mov edx, 4
call _strncmp
cmp eax, 0
jnz short loc_1B07D
lea rdi, [rbp+var_240]
mov esi, 3Dh ; '='
call _strchr
mov [rbp+var_250], rax
cmp [rbp+var_250], 0
jz short loc_1B07B
mov rax, [rbp+var_250]
movsx eax, byte ptr [rax+1]
cmp eax, 0
jz short loc_1B07B
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_250]
add rsi, 1
mov edx, 7Fh
call _strncpy
mov rax, [rbp+var_8]
mov byte ptr [rax+7Fh], 0
loc_1B07B:
jmp short loc_1B0F1
loc_1B07D:
lea rdi, [rbp+var_240]
lea rsi, aPrettyName; "PRETTY_NAME"
mov edx, 0Bh
call _strncmp
cmp eax, 0
jnz short loc_1B0EF
lea rdi, [rbp+var_240]
mov esi, 3Dh ; '='
call _strchr
mov [rbp+var_258], rax
cmp [rbp+var_258], 0
jz short loc_1B0ED
mov rax, [rbp+var_258]
movsx eax, byte ptr [rax+1]
cmp eax, 0
jz short loc_1B0ED
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_258]
add rsi, 1
mov edx, 7Fh
call _strncpy
mov rax, [rbp+var_8]
mov byte ptr [rax+7Fh], 0
loc_1B0ED:
jmp short $+2
loc_1B0EF:
jmp short $+2
loc_1B0F1:
jmp loc_1AFA4
loc_1B0F6:
mov rdi, [rbp+var_10]
call _fclose
mov rdi, [rbp+var_8]
call mag_trim_quotes
loc_1B108:
add rsp, 260h
pop rbp
retn
| long long mag_machine_probe_os_name(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
long long result; // rax
long long v27; // [rsp+8h] [rbp-258h]
long long v28; // [rsp+10h] [rbp-250h]
long long v29; // [rsp+18h] [rbp-248h]
_BYTE v30[256]; // [rsp+20h] [rbp-240h] BYREF
unsigned long long v31; // [rsp+120h] [rbp-140h]
long long v32; // [rsp+128h] [rbp-138h]
long long v33; // [rsp+130h] [rbp-130h]
long long v34; // [rsp+138h] [rbp-128h]
long long v35; // [rsp+140h] [rbp-120h]
long long v36; // [rsp+148h] [rbp-118h]
_BYTE v37[256]; // [rsp+150h] [rbp-110h] BYREF
long long v38; // [rsp+250h] [rbp-10h]
long long v39; // [rsp+258h] [rbp-8h]
v39 = a1;
v38 = mag_fopen("/etc/os-release", "r", a2, a3, a4, a5, a6, a7, a8, a9, a11, a12, a13, a14);
if ( v38 || (v38 = mag_fopen("/usr/lib/os-release", "r", a2, a3, a4, a5, v18, v19, a8, a9, v14, v15, v16, v17)) != 0 )
{
while ( fgets(v30, 256LL, v38) )
{
v29 = strlen(v30);
if ( v29 && v30[v29 - 1] == 10 )
v30[v29 - 1] = 0;
if ( !(unsigned int)strncmp(v30, "NAME", 4LL) )
{
v28 = strchr(v30, 61LL);
if ( v28 && *(_BYTE *)(v28 + 1) )
{
strncpy(v39, v28 + 1, 127LL);
*(_BYTE *)(v39 + 127) = 0;
}
}
else if ( !(unsigned int)strncmp(v30, "PRETTY_NAME", 11LL) )
{
v27 = strchr(v30, 61LL);
if ( v27 )
{
if ( *(_BYTE *)(v27 + 1) )
{
strncpy(v39, v27 + 1, 127LL);
*(_BYTE *)(v39 + 127) = 0;
}
}
}
}
fclose(v38);
return mag_trim_quotes(v39);
}
else
{
v38 = mag_fopen("/etc/lsb-release", "r", a2, a3, a4, a5, v24, v25, a8, a9, v20, v21, v22, v23);
result = v38 == 0;
if ( v38 )
{
while ( fgets(v37, 256LL, v38) )
{
v36 = strlen(v37);
if ( v36 && v37[v36 - 1] == 10 )
v37[v36 - 1] = 0;
if ( !(unsigned int)strncmp(v37, "DISTRIB_ID", 10LL) )
{
v35 = strchr(v37, 61LL);
if ( v35 )
{
if ( *(_BYTE *)(v35 + 1) )
{
strncpy(v39, v35 + 1, 127LL);
*(_BYTE *)(v39 + 127) = 0;
}
}
}
else if ( !(unsigned int)strncmp(v37, "DISTRIB_DESCRIPTION", 19LL) )
{
v34 = strchr(v37, 61LL);
if ( v34 )
{
if ( *(_BYTE *)(v34 + 1) )
{
v33 = strchr(v34 + 1, 34LL);
if ( v33 )
{
v32 = strchr(v33 + 1, 34LL);
if ( v32 )
{
v31 = v32 - v33 - 1;
if ( v31 >= 0x80 )
v31 = 127LL;
strncpy(v39, v33 + 1, v31);
*(_BYTE *)(v39 + v31) = 0;
}
else
{
strncpy(v39, v33 + 1, 127LL);
*(_BYTE *)(v39 + 127) = 0;
}
}
else
{
strncpy(v39, v34 + 1, 127LL);
*(_BYTE *)(v39 + 127) = 0;
}
}
}
}
}
return fclose(v38);
}
}
return result;
}
| mag_machine_probe_os_name:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x260
MOV qword ptr [RBP + -0x8],RDI
LEA RDI,[0x2c392d]
LEA RSI,[0x2c66e5]
CALL 0x00119660
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0011afa2
LEA RDI,[0x2c393d]
LEA RSI,[0x2c66e5]
CALL 0x00119660
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0011afa0
LEA RDI,[0x2c3951]
LEA RSI,[0x2c66e5]
CALL 0x00119660
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
SETNZ AL
XOR AL,0xff
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0011ad5a
JMP 0x0011b108
LAB_0011ad5a:
JMP 0x0011ad5c
LAB_0011ad5c:
LEA RDI,[RBP + -0x110]
MOV RDX,qword ptr [RBP + -0x10]
MOV ESI,0x100
CALL 0x0010f3f0
CMP RAX,0x0
JZ 0x0011af92
LEA RDI,[RBP + -0x110]
CALL 0x0010f200
MOV qword ptr [RBP + -0x118],RAX
CMP qword ptr [RBP + -0x118],0x0
JBE 0x0011adc3
MOV RAX,qword ptr [RBP + -0x118]
SUB RAX,0x1
MOVSX EAX,byte ptr [RBP + RAX*0x1 + -0x110]
CMP EAX,0xa
JNZ 0x0011adc3
MOV RAX,qword ptr [RBP + -0x118]
SUB RAX,0x1
MOV byte ptr [RBP + RAX*0x1 + -0x110],0x0
LAB_0011adc3:
LEA RDI,[RBP + -0x110]
LEA RSI,[0x2c3962]
MOV EDX,0xa
CALL 0x0010f0d0
CMP EAX,0x0
JNZ 0x0011ae38
LEA RDI,[RBP + -0x110]
MOV ESI,0x3d
CALL 0x0010f240
MOV qword ptr [RBP + -0x120],RAX
CMP qword ptr [RBP + -0x120],0x0
JZ 0x0011ae33
MOV RAX,qword ptr [RBP + -0x120]
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
JZ 0x0011ae33
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x120]
ADD RSI,0x1
MOV EDX,0x7f
CALL 0x0010f0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x7f],0x0
LAB_0011ae33:
JMP 0x0011af8d
LAB_0011ae38:
LEA RDI,[RBP + -0x110]
LEA RSI,[0x2c396d]
MOV EDX,0x13
CALL 0x0010f0d0
CMP EAX,0x0
JNZ 0x0011af8b
LEA RDI,[RBP + -0x110]
MOV ESI,0x3d
CALL 0x0010f240
MOV qword ptr [RBP + -0x128],RAX
CMP qword ptr [RBP + -0x128],0x0
JZ 0x0011af89
MOV RAX,qword ptr [RBP + -0x128]
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
JZ 0x0011af89
MOV RDI,qword ptr [RBP + -0x128]
ADD RDI,0x1
MOV ESI,0x22
CALL 0x0010f240
MOV qword ptr [RBP + -0x130],RAX
CMP qword ptr [RBP + -0x130],0x0
JZ 0x0011af66
MOV RDI,qword ptr [RBP + -0x130]
ADD RDI,0x1
MOV ESI,0x22
CALL 0x0010f240
MOV qword ptr [RBP + -0x138],RAX
CMP qword ptr [RBP + -0x138],0x0
JZ 0x0011af43
MOV RAX,qword ptr [RBP + -0x138]
MOV RCX,qword ptr [RBP + -0x130]
SUB RAX,RCX
SUB RAX,0x1
MOV qword ptr [RBP + -0x140],RAX
CMP qword ptr [RBP + -0x140],0x80
JC 0x0011af17
MOV qword ptr [RBP + -0x140],0x7f
LAB_0011af17:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x130]
ADD RSI,0x1
MOV RDX,qword ptr [RBP + -0x140]
CALL 0x0010f0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x140]
MOV byte ptr [RAX + RCX*0x1],0x0
JMP 0x0011af64
LAB_0011af43:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x130]
ADD RSI,0x1
MOV EDX,0x7f
CALL 0x0010f0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x7f],0x0
LAB_0011af64:
JMP 0x0011af87
LAB_0011af66:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x128]
ADD RSI,0x1
MOV EDX,0x7f
CALL 0x0010f0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x7f],0x0
LAB_0011af87:
JMP 0x0011af89
LAB_0011af89:
JMP 0x0011af8b
LAB_0011af8b:
JMP 0x0011af8d
LAB_0011af8d:
JMP 0x0011ad5c
LAB_0011af92:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010f1e0
JMP 0x0011b108
LAB_0011afa0:
JMP 0x0011afa2
LAB_0011afa2:
JMP 0x0011afa4
LAB_0011afa4:
LEA RDI,[RBP + -0x240]
MOV RDX,qword ptr [RBP + -0x10]
MOV ESI,0x100
CALL 0x0010f3f0
CMP RAX,0x0
JZ 0x0011b0f6
LEA RDI,[RBP + -0x240]
CALL 0x0010f200
MOV qword ptr [RBP + -0x248],RAX
CMP qword ptr [RBP + -0x248],0x0
JBE 0x0011b00b
MOV RAX,qword ptr [RBP + -0x248]
SUB RAX,0x1
MOVSX EAX,byte ptr [RBP + RAX*0x1 + -0x240]
CMP EAX,0xa
JNZ 0x0011b00b
MOV RAX,qword ptr [RBP + -0x248]
SUB RAX,0x1
MOV byte ptr [RBP + RAX*0x1 + -0x240],0x0
LAB_0011b00b:
LEA RDI,[RBP + -0x240]
LEA RSI,[0x2c3988]
MOV EDX,0x4
CALL 0x0010f0d0
CMP EAX,0x0
JNZ 0x0011b07d
LEA RDI,[RBP + -0x240]
MOV ESI,0x3d
CALL 0x0010f240
MOV qword ptr [RBP + -0x250],RAX
CMP qword ptr [RBP + -0x250],0x0
JZ 0x0011b07b
MOV RAX,qword ptr [RBP + -0x250]
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
JZ 0x0011b07b
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x250]
ADD RSI,0x1
MOV EDX,0x7f
CALL 0x0010f0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x7f],0x0
LAB_0011b07b:
JMP 0x0011b0f1
LAB_0011b07d:
LEA RDI,[RBP + -0x240]
LEA RSI,[0x2c3981]
MOV EDX,0xb
CALL 0x0010f0d0
CMP EAX,0x0
JNZ 0x0011b0ef
LEA RDI,[RBP + -0x240]
MOV ESI,0x3d
CALL 0x0010f240
MOV qword ptr [RBP + -0x258],RAX
CMP qword ptr [RBP + -0x258],0x0
JZ 0x0011b0ed
MOV RAX,qword ptr [RBP + -0x258]
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
JZ 0x0011b0ed
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x258]
ADD RSI,0x1
MOV EDX,0x7f
CALL 0x0010f0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x7f],0x0
LAB_0011b0ed:
JMP 0x0011b0ef
LAB_0011b0ef:
JMP 0x0011b0f1
LAB_0011b0f1:
JMP 0x0011afa4
LAB_0011b0f6:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010f1e0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0011bd90
LAB_0011b108:
ADD RSP,0x260
POP RBP
RET
|
void mag_machine_probe_os_name(char *param_1)
{
int iVar1;
char *pcVar2;
int8 local_250;
char local_248 [256];
char *local_148;
char *local_140;
char *local_138;
char *local_130;
char *local_128;
int8 local_120;
char local_118 [256];
FILE *local_18;
char *local_10;
local_10 = param_1;
local_18 = (FILE *)mag_fopen("/etc/os-release","r");
if ((local_18 == (FILE *)0x0) &&
(local_18 = (FILE *)mag_fopen("/usr/lib/os-release","r"), local_18 == (FILE *)0x0)) {
local_18 = (FILE *)mag_fopen("/etc/lsb-release","r");
if (local_18 != (FILE *)0x0) {
while (pcVar2 = fgets(local_118,0x100,local_18), pcVar2 != (char *)0x0) {
local_120 = strlen(local_118);
if ((local_120 != 0) && (local_118[local_120 - 1] == '\n')) {
local_118[local_120 - 1] = '\0';
}
iVar1 = strncmp(local_118,"DISTRIB_ID",10);
if (iVar1 == 0) {
local_128 = strchr(local_118,0x3d);
if ((local_128 != (char *)0x0) && (local_128[1] != '\0')) {
strncpy(local_10,local_128 + 1,0x7f);
local_10[0x7f] = '\0';
}
}
else {
iVar1 = strncmp(local_118,"DISTRIB_DESCRIPTION",0x13);
if (((iVar1 == 0) && (local_130 = strchr(local_118,0x3d), local_130 != (char *)0x0)) &&
(local_130[1] != '\0')) {
local_138 = strchr(local_130 + 1,0x22);
if (local_138 == (char *)0x0) {
strncpy(local_10,local_130 + 1,0x7f);
local_10[0x7f] = '\0';
}
else {
local_140 = strchr(local_138 + 1,0x22);
if (local_140 == (char *)0x0) {
strncpy(local_10,local_138 + 1,0x7f);
local_10[0x7f] = '\0';
}
else {
local_148 = local_140 + (-1 - (long)local_138);
if ((char *)0x7f < local_148) {
local_148 = (char *)0x7f;
}
strncpy(local_10,local_138 + 1,(size_t)local_148);
local_10[(long)local_148] = '\0';
}
}
}
}
}
fclose(local_18);
}
}
else {
while (pcVar2 = fgets(local_248,0x100,local_18), pcVar2 != (char *)0x0) {
local_250 = strlen(local_248);
if ((local_250 != 0) && (local_248[local_250 - 1] == '\n')) {
local_248[local_250 - 1] = '\0';
}
iVar1 = strncmp(local_248,"NAME",4);
if (iVar1 == 0) {
pcVar2 = strchr(local_248,0x3d);
if ((pcVar2 != (char *)0x0) && (pcVar2[1] != '\0')) {
strncpy(local_10,pcVar2 + 1,0x7f);
local_10[0x7f] = '\0';
}
}
else {
iVar1 = strncmp(local_248,"PRETTY_NAME",0xb);
if (((iVar1 == 0) && (pcVar2 = strchr(local_248,0x3d), pcVar2 != (char *)0x0)) &&
(pcVar2[1] != '\0')) {
strncpy(local_10,pcVar2 + 1,0x7f);
local_10[0x7f] = '\0';
}
}
}
fclose(local_18);
mag_trim_quotes(local_10);
}
return;
}
| |
23,226 | minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, minja::BinaryOpExpr::Op) | monkey531[P]llama/common/minja.hpp | BinaryOpExpr(const Location & location, std::shared_ptr<Expression> && l, std::shared_ptr<Expression> && r, Op o)
: Expression(location), left(std::move(l)), right(std::move(r)), op(o) {} | O2 | cpp | minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, minja::BinaryOpExpr::Op):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %r12
callq 0x65d58
leaq 0x8dfd0(%rip), %rax # 0x1009c8
addq $0x10, %rax
movq %rax, (%r12)
andq $0x0, 0x28(%r12)
movups (%r15), %xmm0
andq $0x0, 0x8(%r15)
movups %xmm0, 0x20(%r12)
andq $0x0, (%r15)
andq $0x0, 0x38(%r12)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x30(%r12)
andq $0x0, (%r14)
movl %ebx, 0x40(%r12)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE:
push r15
push r14
push r12
push rbx
push rax
mov ebx, r8d
mov r14, rcx
mov r15, rdx
mov r12, rdi
call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&)
lea rax, _ZTVN5minja12BinaryOpExprE; `vtable for'minja::BinaryOpExpr
add rax, 10h
mov [r12], rax
and qword ptr [r12+28h], 0
movups xmm0, xmmword ptr [r15]
and qword ptr [r15+8], 0
movups xmmword ptr [r12+20h], xmm0
and qword ptr [r15], 0
and qword ptr [r12+38h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r12+30h], xmm0
and qword ptr [r14], 0
mov [r12+40h], ebx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long * minja::BinaryOpExpr::BinaryOpExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4, int a5)
{
long long *result; // rax
__int128 v9; // xmm0
__int128 v10; // xmm0
minja::Expression::Expression((_QWORD *)a1, a2);
result = &`vtable for'minja::BinaryOpExpr + 2;
*(_QWORD *)a1 = &`vtable for'minja::BinaryOpExpr + 2;
*(_QWORD *)(a1 + 40) = 0LL;
v9 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v9;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v10 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v10;
*(_QWORD *)a4 = 0LL;
*(_DWORD *)(a1 + 64) = a5;
return result;
}
| BinaryOpExpr:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,R8D
MOV R14,RCX
MOV R15,RDX
MOV R12,RDI
CALL 0x00165d58
LEA RAX,[0x2009c8]
ADD RAX,0x10
MOV qword ptr [R12],RAX
AND qword ptr [R12 + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R15]
AND qword ptr [R15 + 0x8],0x0
MOVUPS xmmword ptr [R12 + 0x20],XMM0
AND qword ptr [R15],0x0
AND qword ptr [R12 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R12 + 0x30],XMM0
AND qword ptr [R14],0x0
MOV dword ptr [R12 + 0x40],EBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, minja::BinaryOpExpr::Op) */
void __thiscall
minja::BinaryOpExpr::BinaryOpExpr
(BinaryOpExpr *this,Location *param_1,int8 *param_2,int8 *param_3,
int4 param_5)
{
int8 uVar1;
Expression::Expression((Expression *)this,param_1);
*(int ***)this = &PTR_do_evaluate_002009d8;
*(int8 *)(this + 0x28) = 0;
uVar1 = param_2[1];
param_2[1] = 0;
*(int8 *)(this + 0x20) = *param_2;
*(int8 *)(this + 0x28) = uVar1;
*param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar1 = param_3[1];
param_3[1] = 0;
*(int8 *)(this + 0x30) = *param_3;
*(int8 *)(this + 0x38) = uVar1;
*param_3 = 0;
*(int4 *)(this + 0x40) = param_5;
return;
}
| |
23,227 | used_buffs_register_unlock | eloqsql/storage/maria/ma_loghandler.c | static void
used_buffs_register_unlock(TRUNSLOG_USED_BUFFERS *buffs,
struct st_translog_buffer *buff
__attribute__((unused)) )
{
DBUG_ENTER("used_buffs_register_unlock");
DBUG_PRINT("enter", ("SUB buffs: %p unlk %u (%p) wrt_ptr: %u (%p)"
" buff %p (%u)",
buffs,
buffs->wrt_ptr, buffs->buff[buffs->wrt_ptr],
buffs->unlck_ptr, buffs->buff[buffs->unlck_ptr],
buff, buff->buffer_no));
DBUG_ASSERT(buffs->buff[buffs->unlck_ptr] == buff);
buffs->unlck_ptr++;
DBUG_VOID_RETURN;
} | O0 | c | used_buffs_register_unlock:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0x39c0e
jmp 0x39c10
jmp 0x39c12
movq -0x8(%rbp), %rax
movb 0x19(%rax), %cl
addb $0x1, %cl
movb %cl, 0x19(%rax)
jmp 0x39c21
popq %rbp
retq
nopw %cs:(%rax,%rax)
| used_buffs_register_unlock:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_39C0E:
jmp short $+2
loc_39C10:
jmp short $+2
loc_39C12:
mov rax, [rbp+var_8]
mov cl, [rax+19h]
add cl, 1
mov [rax+19h], cl
jmp short $+2
loc_39C21:
pop rbp
retn
| long long used_buffs_register_unlock(long long a1)
{
long long result; // rax
result = a1;
++*(_BYTE *)(a1 + 25);
return result;
}
| used_buffs_register_unlock:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x00139c0e
LAB_00139c0e:
JMP 0x00139c10
LAB_00139c10:
JMP 0x00139c12
LAB_00139c12:
MOV RAX,qword ptr [RBP + -0x8]
MOV CL,byte ptr [RAX + 0x19]
ADD CL,0x1
MOV byte ptr [RAX + 0x19],CL
JMP 0x00139c21
LAB_00139c21:
POP RBP
RET
|
void used_buffs_register_unlock(long param_1)
{
*(char *)(param_1 + 0x19) = *(char *)(param_1 + 0x19) + '\x01';
return;
}
| |
23,228 | build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&)::$_0::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string build_grammar(const std::function<void(const common_grammar_builder &)> & cb, const common_grammar_options & options) {
SchemaConverter converter([&](const std::string &) { return json(); }, options.dotall, options.compact_spaces);
common_grammar_builder builder {
/* .add_rule = */ [&](const std::string & name, const std::string & rule) {
return converter._add_rule(name, rule);
},
/* .add_schema = */ [&](const std::string & name, const nlohmann::ordered_json & schema) {
return converter.visit(schema, name == "root" ? "" : name);
},
/* .resolve_refs = */ [&](nlohmann::ordered_json & schema) {
converter.resolve_refs(schema, "");
}
};
cb(builder);
converter.check_errors();
return converter.format_grammar();
} | O0 | cpp | build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&)::$_0::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const:
subq $0x28, %rsp
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0x9f6a0
movq 0x8(%rsp), %rax
addq $0x28, %rsp
retq
nop
| _ZZ13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsENK3$_0clERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 28h
mov rax, rdi
mov [rsp+28h+var_20], rax
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
xor eax, eax
mov esi, eax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr))
mov rax, [rsp+28h+var_20]
add rsp, 28h
retn
| long long build_grammar[abi:cxx11](std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0::operator()(
long long a1)
{
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(a1);
return a1;
}
| |||
23,229 | build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&)::$_0::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string build_grammar(const std::function<void(const common_grammar_builder &)> & cb, const common_grammar_options & options) {
SchemaConverter converter([&](const std::string &) { return json(); }, options.dotall, options.compact_spaces);
common_grammar_builder builder {
/* .add_rule = */ [&](const std::string & name, const std::string & rule) {
return converter._add_rule(name, rule);
},
/* .add_schema = */ [&](const std::string & name, const nlohmann::ordered_json & schema) {
return converter.visit(schema, name == "root" ? "" : name);
},
/* .resolve_refs = */ [&](nlohmann::ordered_json & schema) {
converter.resolve_refs(schema, "");
}
};
cb(builder);
converter.check_errors();
return converter.format_grammar();
} | O1 | cpp | build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&, common_grammar_options const&)::$_0::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x160, %rsp # imm = 0x160
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x304(%rip), %rax # 0xbd0e4
movq %rax, 0x18(%rsi)
leaq 0x325(%rip), %rax # 0xbd110
movq %rax, 0x10(%rsi)
movzbl (%rdx), %eax
movzbl 0x1(%rdx), %ecx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movl %eax, %edx
callq 0xc0362
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xbce1c
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movq %r15, (%rsp)
leaq 0x2f5(%rip), %rax # 0xbd128
movq %rax, 0x18(%rsp)
leaq 0x2fb(%rip), %rax # 0xbd13a
movq %rax, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movq %r15, 0x20(%rsp)
leaq 0x306(%rip), %rax # 0xbd160
movq %rax, 0x38(%rsp)
leaq 0x3ac(%rip), %rax # 0xbd212
movq %rax, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %r15, 0x40(%rsp)
leaq 0x2e37(%rip), %rax # 0xbfcb8
movq %rax, 0x58(%rsp)
leaq 0x2e95(%rip), %rax # 0xbfd22
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x10(%r14)
je 0xbcf73
movq %rsp, %rsi
movq %r14, %rdi
callq *0x18(%r14)
leaq 0x68(%rsp), %rdi
callq 0xc0564
leaq 0x68(%rsp), %rsi
movq %rbx, %rdi
callq 0xc071a
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0xbced7
leaq 0x40(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xbcef0
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xbcf07
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x148(%rsp), %rdi
callq 0x22caa
leaq 0x130(%rsp), %rdi
callq 0x22caa
leaq 0xf8(%rsp), %rdi
callq 0x7fdcc
leaq 0xc0(%rsp), %rdi
callq 0xc0f2e
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0xc1010
movq -0x18(%r14), %rax
testq %rax, %rax
je 0xbcf63
leaq 0x68(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x160, %rsp # imm = 0x160
popq %rbx
popq %r14
popq %r15
retq
callq 0x1b320
jmp 0xbcf9e
jmp 0xbcf9e
jmp 0xbcf9e
jmp 0xbcf9e
jmp 0xbcf9e
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xbcfbb
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xbcfbb
movq %rax, %rdi
callq 0x2306b
movq %rax, %rbx
movq %rsp, %rdi
callq 0xc0826
leaq 0x68(%rsp), %rdi
callq 0xc087c
movq %rbx, %rdi
callq 0x1bfd0
nop
| _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options:
push r15
push r14
push rbx
sub rsp, 160h
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
mov rsi, rsp; int
movaps xmmword ptr [rsi], xmm0
lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E9_M_invokeERKSt9_Any_dataSG_; std::_Function_handler<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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke(std::_Any_data const&,std::string const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
movzx eax, byte ptr [rdx]
movzx ecx, byte ptr [rdx+1]; int
lea r15, [rsp+178h+var_110]
mov rdi, r15; int
mov edx, eax; int
call _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEbb; SchemaConverter::SchemaConverter(std::function<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::string const&)> const&,bool,bool)
mov rax, qword ptr [rsp+178h+var_168]
test rax, rax
jz short loc_BCE1C
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_BCE1C:
xorps xmm0, xmm0
movaps [rsp+178h+var_178], xmm0
movaps [rsp+178h+var_168], xmm0
mov qword ptr [rsp+178h+var_178], r15
lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E9_M_invokeERKSt9_Any_dataS7_S7_; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke(std::_Any_data const&,std::string const&,std::string const&)
mov qword ptr [rsp+178h+var_168+8], rax
lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_S7_EZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_1E10_M_managerERSt9_Any_dataRKSM_St18_Manager_operation; std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov qword ptr [rsp+178h+var_168], rax
movaps [rsp+178h+var_158], xmm0
movaps [rsp+178h+var_148], xmm0
mov qword ptr [rsp+178h+var_158], r15
lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E9_M_invokeERKSt9_Any_dataS7_SI_; std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke(std::_Any_data const&,std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov qword ptr [rsp+178h+var_148+8], rax
lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_2E10_M_managerERSt9_Any_dataRKSX_St18_Manager_operation; std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov qword ptr [rsp+178h+var_148], rax
movaps [rsp+178h+var_138], xmm0
movaps [rsp+178h+var_128], xmm0
mov qword ptr [rsp+178h+var_138], r15
lea rax, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E9_M_invokeERKSt9_Any_dataSF_; std::_Function_handler<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> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke(std::_Any_data const&,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 qword ptr [rsp+178h+var_128+8], rax
lea rax, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZ13build_grammarRKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_optionsE3$_3E10_M_managerERSt9_Any_dataRKSU_St18_Manager_operation; std::_Function_handler<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> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov qword ptr [rsp+178h+var_128], rax
cmp qword ptr [r14+10h], 0
jz loc_BCF73
mov rsi, rsp
mov rdi, r14
call qword ptr [r14+18h]
lea rdi, [rsp+178h+var_110]; this
call _ZN15SchemaConverter12check_errorsEv; SchemaConverter::check_errors(void)
lea rsi, [rsp+178h+var_110]
mov rdi, rbx
call _ZN15SchemaConverter14format_grammarB5cxx11Ev; SchemaConverter::format_grammar(void)
mov rax, qword ptr [rsp+178h+var_128]
test rax, rax
jz short loc_BCED7
lea rdi, [rsp+178h+var_138]
mov rsi, rdi
mov edx, 3
call rax
loc_BCED7:
mov rax, qword ptr [rsp+178h+var_148]
test rax, rax
jz short loc_BCEF0
lea rdi, [rsp+178h+var_158]
mov rsi, rdi
mov edx, 3
call rax
loc_BCEF0:
mov rax, qword ptr [rsp+178h+var_168]
test rax, rax
jz short loc_BCF07
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_BCF07:
lea rdi, [rsp+178h+var_30]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+178h+var_48]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+178h+var_80]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
lea rdi, [rsp+178h+var_B8]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSJ_18_Mod_range_hashingENSJ_20_Default_ranged_hashENSJ_20_Prime_rehash_policyENSJ_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,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::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
lea r14, [rsp+178h+var_E8]
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rax, [r14-18h]
test rax, rax
jz short loc_BCF63
lea rdi, [rsp+178h+var_110]
mov rsi, rdi
mov edx, 3
call rax
loc_BCF63:
mov rax, rbx
add rsp, 160h
pop rbx
pop r14
pop r15
retn
loc_BCF73:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
jmp short loc_BCF9E
jmp short loc_BCF9E
jmp short loc_BCF9E
jmp short loc_BCF9E
jmp short loc_BCF9E
mov rbx, rax
mov rax, qword ptr [rsp+178h+var_168]
test rax, rax
jz short loc_BCFBB
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_BCFBB
loc_BCF9E:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
mov rdi, rsp; this
call _ZN22common_grammar_builderD2Ev; common_grammar_builder::~common_grammar_builder()
lea rdi, [rsp+178h+var_110]; this
call _ZN15SchemaConverterD2Ev; SchemaConverter::~SchemaConverter()
loc_BCFBB:
mov rdi, rbx
call __Unwind_Resume
| long long build_grammar[abi:cxx11](long long a1, long long a2, unsigned __int8 *a3, long long a4, int a5, int a6)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
__int128 v11; // [rsp+0h] [rbp-178h] BYREF
long long ( *v12)(); // [rsp+10h] [rbp-168h]
void *v13; // [rsp+18h] [rbp-160h]
__int128 v14; // [rsp+20h] [rbp-158h] BYREF
long long ( *v15)(); // [rsp+30h] [rbp-148h]
long long ( *v16)(int, int, int, int, int, int, int, long long); // [rsp+38h] [rbp-140h]
__int128 v17; // [rsp+40h] [rbp-138h] BYREF
long long ( *v18)(); // [rsp+50h] [rbp-128h]
long long ( *v19)(int, int, int, int, int, int, void *, int, long long); // [rsp+58h] [rbp-120h]
int v20; // [rsp+60h] [rbp-118h]
int v21[4]; // [rsp+68h] [rbp-110h] BYREF
void ( *v22)(int *, int *, long long); // [rsp+78h] [rbp-100h]
_BYTE v23[48]; // [rsp+90h] [rbp-E8h] BYREF
_BYTE v24[56]; // [rsp+C0h] [rbp-B8h] BYREF
_BYTE v25[56]; // [rsp+F8h] [rbp-80h] BYREF
_QWORD v26[3]; // [rsp+130h] [rbp-48h] BYREF
_QWORD v27[6]; // [rsp+148h] [rbp-30h] BYREF
SchemaConverter::SchemaConverter(
(int)v21,
(int)&v11,
*a3,
a3[1],
a5,
a6,
0LL,
0,
(long long)std::_Function_handler<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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_manager,
(int)std::_Function_handler<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::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_0>::_M_invoke,
(void *)v14,
SDWORD2(v14),
(long long)v15);
if ( v12 )
((void ( *)(__int128 *, __int128 *, long long))v12)(&v11, &v11, 3LL);
v11 = (unsigned long long)v21;
v13 = &std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_invoke;
v12 = std::_Function_handler<std::string ()(std::string const&,std::string const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_1>::_M_manager;
v14 = (unsigned long long)v21;
v16 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_invoke;
v15 = std::_Function_handler<std::string ()(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_2>::_M_manager;
v17 = (unsigned long long)v21;
v19 = std::_Function_handler<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> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_invoke;
v18 = std::_Function_handler<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> &),build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)::$_3>::_M_manager;
if ( !*(_QWORD *)(a2 + 16) )
std::__throw_bad_function_call();
(*(void ( **)(long long, __int128 *))(a2 + 24))(a2, &v11);
SchemaConverter::check_errors((SchemaConverter *)v21);
SchemaConverter::format_grammar[abi:cxx11](
a1,
(unsigned int)v21,
v6,
v7,
v8,
v9,
v11,
DWORD2(v11),
(_DWORD)v12,
(_DWORD)v13,
v14,
DWORD2(v14),
(_DWORD)v15,
(_DWORD)v16,
v17,
DWORD2(v17),
(_DWORD)v18,
(_DWORD)v19,
v20,
v21[0],
v21[2],
(char)v22);
if ( v18 )
((void ( *)(__int128 *, __int128 *, long long))v18)(&v17, &v17, 3LL);
if ( v15 )
((void ( *)(__int128 *, __int128 *, long long))v15)(&v14, &v14, 3LL);
if ( v12 )
((void ( *)(__int128 *, __int128 *, long long))v12)(&v11, &v11, 3LL);
std::vector<std::string>::~vector(v27);
std::vector<std::string>::~vector(v26);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable((long long)v25);
std::_Hashtable<std::string,std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<std::string const,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::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable(v24);
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree(v23);
if ( v22 )
v22(v21, v21, 3LL);
return a1;
}
| build_grammar[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x160
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
LEA RAX,[0x1bd0e4]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x1bd110]
MOV qword ptr [RSI + 0x10],RAX
MOVZX EAX,byte ptr [RDX]
MOVZX ECX,byte ptr [RDX + 0x1]
LAB_001bcdf6:
LEA R15,[RSP + 0x68]
MOV RDI,R15
MOV EDX,EAX
CALL 0x001c0362
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001bce1c
LAB_001bce0f:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001bce1c:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP],R15
LEA RAX,[0x1bd128]
MOV qword ptr [RSP + 0x18],RAX
LEA RAX,[0x1bd13a]
MOV qword ptr [RSP + 0x10],RAX
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV qword ptr [RSP + 0x20],R15
LEA RAX,[0x1bd160]
MOV qword ptr [RSP + 0x38],RAX
LEA RAX,[0x1bd212]
MOV qword ptr [RSP + 0x30],RAX
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOV qword ptr [RSP + 0x40],R15
LEA RAX,[0x1bfcb8]
MOV qword ptr [RSP + 0x58],RAX
LEA RAX,[0x1bfd22]
MOV qword ptr [RSP + 0x50],RAX
CMP qword ptr [R14 + 0x10],0x0
JZ 0x001bcf73
LAB_001bce9d:
MOV RSI,RSP
MOV RDI,R14
CALL qword ptr [R14 + 0x18]
LEA RDI,[RSP + 0x68]
CALL 0x001c0564
LEA RSI,[RSP + 0x68]
MOV RDI,RBX
CALL 0x001c071a
MOV RAX,qword ptr [RSP + 0x50]
TEST RAX,RAX
JZ 0x001bced7
LEA RDI,[RSP + 0x40]
LAB_001bcecd:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001bced7:
MOV RAX,qword ptr [RSP + 0x30]
TEST RAX,RAX
JZ 0x001bcef0
LEA RDI,[RSP + 0x20]
LAB_001bcee6:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001bcef0:
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001bcf07
LAB_001bcefa:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001bcf07:
LEA RDI,[RSP + 0x148]
CALL 0x00122caa
LEA RDI,[RSP + 0x130]
CALL 0x00122caa
LEA RDI,[RSP + 0xf8]
CALL 0x0017fdcc
LEA RDI,[RSP + 0xc0]
CALL 0x001c0f2e
LEA R14,[RSP + 0x90]
MOV RDI,R14
CALL 0x001c1010
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x001bcf63
LAB_001bcf54:
LEA RDI,[RSP + 0x68]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001bcf63:
MOV RAX,RBX
ADD RSP,0x160
POP RBX
POP R14
POP R15
RET
LAB_001bcf73:
CALL 0x0011b320
|
/* build_grammar[abi:cxx11](std::function<void (common_grammar_builder const&)> const&,
common_grammar_options const&) */
function * build_grammar_abi_cxx11_(function *param_1,common_grammar_options *param_2)
{
long in_RDX;
SchemaConverter *local_178;
int8 uStack_170;
code *local_168;
code *pcStack_160;
SchemaConverter *local_158;
int8 uStack_150;
code *local_148;
code *pcStack_140;
SchemaConverter *local_138;
int8 uStack_130;
code *local_128;
code *pcStack_120;
SchemaConverter local_110 [16];
code *local_100;
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_e8 [48];
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,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::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
local_b8 [56];
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
local_80 [56];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_48 [24];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_30 [24];
local_178 = (SchemaConverter *)0x0;
uStack_170 = 0;
pcStack_160 = std::
_Function_handler<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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0>
::_M_invoke;
local_168 = std::
_Function_handler<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::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_0>
::_M_manager;
/* try { // try from 001bcdf6 to 001bce04 has its CatchHandler @ 001bcf82 */
SchemaConverter::SchemaConverter
(local_110,(function *)&local_178,*(bool *)in_RDX,*(bool *)(in_RDX + 1));
if (local_168 != (code *)0x0) {
/* try { // try from 001bce0f to 001bce1b has its CatchHandler @ 001bcf80 */
(*local_168)(&local_178,&local_178,3);
}
uStack_170 = 0;
pcStack_160 = std::
_Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1>
::_M_invoke;
local_168 = std::
_Function_handler<std::__cxx11::string(std::__cxx11::string_const&,std::__cxx11::string_const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_1>
::_M_manager;
uStack_150 = 0;
pcStack_140 = std::
_Function_handler<std::__cxx11::string(std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2>
::_M_invoke;
local_148 = std::
_Function_handler<std::__cxx11::string(std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_2>
::_M_manager;
uStack_130 = 0;
pcStack_120 = std::
_Function_handler<void(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>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3>
::_M_invoke;
local_128 = std::
_Function_handler<void(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>&),build_grammar(std::function<void(common_grammar_builder_const&)>const&,common_grammar_options_const&)::$_3>
::_M_manager;
local_178 = local_110;
local_158 = local_110;
local_138 = local_110;
if (*(long *)(param_2 + 0x10) != 0) {
/* try { // try from 001bce9d to 001bcebd has its CatchHandler @ 001bcfa6 */
(**(code **)(param_2 + 0x18))(param_2,&local_178);
SchemaConverter::check_errors(local_110);
SchemaConverter::format_grammar_abi_cxx11_();
if (local_128 != (code *)0x0) {
/* try { // try from 001bcecd to 001bced6 has its CatchHandler @ 001bcf7e */
(*local_128)(&local_138,&local_138,3);
}
if (local_148 != (code *)0x0) {
/* try { // try from 001bcee6 to 001bceef has its CatchHandler @ 001bcf7c */
(*local_148)(&local_158,&local_158,3);
}
if (local_168 != (code *)0x0) {
/* try { // try from 001bcefa to 001bcf06 has its CatchHandler @ 001bcf7a */
(*local_168)(&local_178,&local_178,3);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_30);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_48);
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::~_Hashtable(local_80);
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,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::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::~_Hashtable(local_b8);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~_Rb_tree(local_e8);
if (local_100 != (code *)0x0) {
/* try { // try from 001bcf54 to 001bcf62 has its CatchHandler @ 001bcf78 */
(*local_100)(local_110,local_110,3);
}
return param_1;
}
/* WARNING: Subroutine does not return */
/* try { // try from 001bcf73 to 001bcf77 has its CatchHandler @ 001bcfa6 */
std::__throw_bad_function_call();
}
| |
23,230 | mj_solveM_island | aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_smooth.c | void mj_solveM_island(const mjModel* m, const mjData* d, mjtNum* restrict x, int island) {
// if no islands, call mj_solveLD
const mjtNum* qLD = d->qLD;
const mjtNum* qLDiagInv = d->qLDiagInv;
if (island < 0) {
mj_solveLD(m, x, 1, qLD, qLDiagInv);
return;
}
// local constants: general
const int* Madr = m->dof_Madr;
const int* parentid = m->dof_parentid;
const int* simplenum = m->dof_simplenum;
// local constants: island specific
int ndof = d->island_dofnum[island];
const int* dofind = d->island_dofind + d->island_dofadr[island];
const int* islandind = d->dof_islandind;
// x <- inv(L') * x; skip simple, exploit sparsity of input vector
for (int k=ndof-1; k >= 0; k--) {
int i = dofind[k];
if (!simplenum[i] && x[k]) {
// init
int Madr_ij = Madr[i]+1;
int j = parentid[i];
// traverse ancestors backwards
// read directly from x[l] since j cannot be a parent of itself
while (j >= 0) {
x[islandind[j]] -= qLD[Madr_ij++]*x[k]; // x(j) -= L(i,j) * x(i)
// advance to parent
j = parentid[j];
}
}
}
// x <- inv(D) * x
for (int k=ndof-1; k >= 0; k--) {
x[k] *= qLDiagInv[dofind[k]]; // x(i) /= L(i,i)
}
// x <- inv(L) * x; skip simple
for (int k=0; k < ndof; k++) {
int i = dofind[k];
if (!simplenum[i]) {
// init
int Madr_ij = Madr[i]+1;
int j = parentid[i];
// traverse ancestors backwards
// write directly in x[i] since i cannot be a parent of itself
while (j >= 0) {
x[k] -= qLD[Madr_ij++]*x[islandind[j]]; // x(i) -= L(i,j) * x(j)
// advance to parent
j = parentid[j];
}
}
}
} | O0 | c | mj_solveM_island:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movl %ecx, 0x6c(%rsp)
movq 0x78(%rsp), %rax
movq 0x27930(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rax
movq 0x27938(%rax), %rax
movq %rax, 0x58(%rsp)
cmpl $0x0, 0x6c(%rsp)
jge 0x80d3c
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movl $0x1, %edx
callq 0x49a30
jmp 0x8101f
movq 0x80(%rsp), %rax
movq 0x6e0(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq 0x6d0(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x80(%rsp), %rax
movq 0x6e8(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x78(%rsp), %rax
movq 0x27b08(%rax), %rax
movslq 0x6c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x3c(%rsp)
movq 0x78(%rsp), %rax
movq 0x27b18(%rax), %rax
movq 0x78(%rsp), %rcx
movq 0x27b10(%rcx), %rcx
movslq 0x6c(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %rax
movq 0x27b20(%rax), %rax
movq %rax, 0x28(%rsp)
movl 0x3c(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x24(%rsp)
cmpl $0x0, 0x24(%rsp)
jl 0x80ee1
movq 0x30(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movslq 0x20(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x80ecf
movq 0x70(%rsp), %rax
movslq 0x24(%rsp), %rcx
vmovsd (%rax,%rcx,8), %xmm0
vxorps %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jne 0x80e29
jp 0x80e29
jmp 0x80ecf
movq 0x50(%rsp), %rax
movslq 0x20(%rsp), %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
movq 0x48(%rsp), %rax
movslq 0x20(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x18(%rsp)
cmpl $0x0, 0x18(%rsp)
jl 0x80ecd
movq 0x60(%rsp), %rax
movl 0x1c(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x1c(%rsp)
movslq %ecx, %rcx
vmovsd (%rax,%rcx,8), %xmm0
movq 0x70(%rsp), %rax
movslq 0x24(%rsp), %rcx
vmovsd (%rax,%rcx,8), %xmm2
movq 0x70(%rsp), %rax
movq 0x28(%rsp), %rcx
movslq 0x18(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
vmovsd (%rax,%rcx,8), %xmm1
vmovq %xmm0, %rdx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
xorq %rsi, %rdx
vmovq %rdx, %xmm0
vmulsd %xmm2, %xmm0, %xmm0
vaddsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, (%rax,%rcx,8)
movq 0x48(%rsp), %rax
movslq 0x18(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x18(%rsp)
jmp 0x80e4e
jmp 0x80ecf
jmp 0x80ed1
movl 0x24(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x80dd9
movl 0x3c(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jl 0x80f2c
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
movslq 0x14(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
vmovsd (%rax,%rcx,8), %xmm0
movq 0x70(%rsp), %rax
movslq 0x14(%rsp), %rcx
vmulsd (%rax,%rcx,8), %xmm0, %xmm0
vmovsd %xmm0, (%rax,%rcx,8)
movl 0x14(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x80eec
movl $0x0, 0x10(%rsp)
movl 0x10(%rsp), %eax
cmpl 0x3c(%rsp), %eax
jge 0x8101f
movq 0x30(%rsp), %rax
movslq 0x10(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0xc(%rsp)
movq 0x40(%rsp), %rax
movslq 0xc(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x8100d
movq 0x50(%rsp), %rax
movslq 0xc(%rsp), %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
movq 0x48(%rsp), %rax
movslq 0xc(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jl 0x8100b
movq 0x60(%rsp), %rax
movl 0x8(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x8(%rsp)
movslq %ecx, %rcx
vmovsd (%rax,%rcx,8), %xmm0
movq 0x70(%rsp), %rax
movq 0x28(%rsp), %rcx
movslq 0x4(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
vmovsd (%rax,%rcx,8), %xmm2
movq 0x70(%rsp), %rax
movslq 0x10(%rsp), %rcx
vmovsd (%rax,%rcx,8), %xmm1
vmovq %xmm0, %rdx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
xorq %rsi, %rdx
vmovq %rdx, %xmm0
vmulsd %xmm2, %xmm0, %xmm0
vaddsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, (%rax,%rcx,8)
movq 0x48(%rsp), %rax
movslq 0x4(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x4(%rsp)
jmp 0x80f8c
jmp 0x8100d
jmp 0x8100f
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x80f34
addq $0x88, %rsp
retq
nopw (%rax,%rax)
| mj_solveM_island:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_18], rdx
mov [rsp+88h+var_1C], ecx
mov rax, [rsp+88h+var_10]
mov rax, [rax+27930h]
mov [rsp+88h+var_28], rax
mov rax, [rsp+88h+var_10]
mov rax, [rax+27938h]
mov [rsp+88h+var_30], rax
cmp [rsp+88h+var_1C], 0
jge short loc_80D3C
mov rdi, [rsp+88h+var_8]
mov rsi, [rsp+88h+var_18]
mov rcx, [rsp+88h+var_28]
mov r8, [rsp+88h+var_30]
mov edx, 1
call _mj_solveLD
jmp loc_8101F
loc_80D3C:
mov rax, [rsp+88h+var_8]
mov rax, [rax+6E0h]
mov [rsp+88h+var_38], rax
mov rax, [rsp+88h+var_8]
mov rax, [rax+6D0h]
mov [rsp+88h+var_40], rax
mov rax, [rsp+88h+var_8]
mov rax, [rax+6E8h]
mov [rsp+88h+var_48], rax
mov rax, [rsp+88h+var_10]
mov rax, [rax+27B08h]
movsxd rcx, [rsp+88h+var_1C]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_4C], eax
mov rax, [rsp+88h+var_10]
mov rax, [rax+27B18h]
mov rcx, [rsp+88h+var_10]
mov rcx, [rcx+27B10h]
movsxd rdx, [rsp+88h+var_1C]
movsxd rcx, dword ptr [rcx+rdx*4]
shl rcx, 2
add rax, rcx
mov [rsp+88h+var_58], rax
mov rax, [rsp+88h+var_10]
mov rax, [rax+27B20h]
mov [rsp+88h+var_60], rax
mov eax, [rsp+88h+var_4C]
sub eax, 1
mov [rsp+88h+var_64], eax
loc_80DD9:
cmp [rsp+88h+var_64], 0
jl loc_80EE1
mov rax, [rsp+88h+var_58]
movsxd rcx, [rsp+88h+var_64]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_68], eax
mov rax, [rsp+88h+var_48]
movsxd rcx, [rsp+88h+var_68]
cmp dword ptr [rax+rcx*4], 0
jnz loc_80ECF
mov rax, [rsp+88h+var_18]
movsxd rcx, [rsp+88h+var_64]
vmovsd xmm0, qword ptr [rax+rcx*8]
vxorps xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
jnz short loc_80E29
jp short loc_80E29
jmp loc_80ECF
loc_80E29:
mov rax, [rsp+88h+var_38]
movsxd rcx, [rsp+88h+var_68]
mov eax, [rax+rcx*4]
add eax, 1
mov [rsp+88h+var_6C], eax
mov rax, [rsp+88h+var_40]
movsxd rcx, [rsp+88h+var_68]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_70], eax
loc_80E4E:
cmp [rsp+88h+var_70], 0
jl short loc_80ECD
mov rax, [rsp+88h+var_28]
mov ecx, [rsp+88h+var_6C]
mov edx, ecx
add edx, 1
mov [rsp+88h+var_6C], edx
movsxd rcx, ecx
vmovsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rsp+88h+var_18]
movsxd rcx, [rsp+88h+var_64]
vmovsd xmm2, qword ptr [rax+rcx*8]
mov rax, [rsp+88h+var_18]
mov rcx, [rsp+88h+var_60]
movsxd rdx, [rsp+88h+var_70]
movsxd rcx, dword ptr [rcx+rdx*4]
vmovsd xmm1, qword ptr [rax+rcx*8]
vmovq rdx, xmm0
mov rsi, 8000000000000000h
xor rdx, rsi
vmovq xmm0, rdx
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd qword ptr [rax+rcx*8], xmm0
mov rax, [rsp+88h+var_40]
movsxd rcx, [rsp+88h+var_70]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_70], eax
jmp short loc_80E4E
loc_80ECD:
jmp short $+2
loc_80ECF:
jmp short $+2
loc_80ED1:
mov eax, [rsp+88h+var_64]
add eax, 0FFFFFFFFh
mov [rsp+88h+var_64], eax
jmp loc_80DD9
loc_80EE1:
mov eax, [rsp+88h+var_4C]
sub eax, 1
mov [rsp+88h+var_74], eax
loc_80EEC:
cmp [rsp+88h+var_74], 0
jl short loc_80F2C
mov rax, [rsp+88h+var_30]
mov rcx, [rsp+88h+var_58]
movsxd rdx, [rsp+88h+var_74]
movsxd rcx, dword ptr [rcx+rdx*4]
vmovsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rsp+88h+var_18]
movsxd rcx, [rsp+88h+var_74]
vmulsd xmm0, xmm0, qword ptr [rax+rcx*8]
vmovsd qword ptr [rax+rcx*8], xmm0
mov eax, [rsp+88h+var_74]
add eax, 0FFFFFFFFh
mov [rsp+88h+var_74], eax
jmp short loc_80EEC
loc_80F2C:
mov [rsp+88h+var_78], 0
loc_80F34:
mov eax, [rsp+88h+var_78]
cmp eax, [rsp+88h+var_4C]
jge loc_8101F
mov rax, [rsp+88h+var_58]
movsxd rcx, [rsp+88h+var_78]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_7C], eax
mov rax, [rsp+88h+var_48]
movsxd rcx, [rsp+88h+var_7C]
cmp dword ptr [rax+rcx*4], 0
jnz loc_8100D
mov rax, [rsp+88h+var_38]
movsxd rcx, [rsp+88h+var_7C]
mov eax, [rax+rcx*4]
add eax, 1
mov [rsp+88h+var_80], eax
mov rax, [rsp+88h+var_40]
movsxd rcx, [rsp+88h+var_7C]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_84], eax
loc_80F8C:
cmp [rsp+88h+var_84], 0
jl short loc_8100B
mov rax, [rsp+88h+var_28]
mov ecx, [rsp+88h+var_80]
mov edx, ecx
add edx, 1
mov [rsp+88h+var_80], edx
movsxd rcx, ecx
vmovsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rsp+88h+var_18]
mov rcx, [rsp+88h+var_60]
movsxd rdx, [rsp+88h+var_84]
movsxd rcx, dword ptr [rcx+rdx*4]
vmovsd xmm2, qword ptr [rax+rcx*8]
mov rax, [rsp+88h+var_18]
movsxd rcx, [rsp+88h+var_78]
vmovsd xmm1, qword ptr [rax+rcx*8]
vmovq rdx, xmm0
mov rsi, 8000000000000000h
xor rdx, rsi
vmovq xmm0, rdx
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd qword ptr [rax+rcx*8], xmm0
mov rax, [rsp+88h+var_40]
movsxd rcx, [rsp+88h+var_84]
mov eax, [rax+rcx*4]
mov [rsp+88h+var_84], eax
jmp short loc_80F8C
loc_8100B:
jmp short $+2
loc_8100D:
jmp short $+2
loc_8100F:
mov eax, [rsp+88h+var_78]
add eax, 1
mov [rsp+88h+var_78], eax
jmp loc_80F34
loc_8101F:
add rsp, 88h
retn
| long long mj_solveM_island(_QWORD *a1, _QWORD *a2, long long a3, int a4, double a5, __m128 _XMM1)
{
long long result; // rax
int n; // [rsp+4h] [rbp-84h]
int v42; // [rsp+8h] [rbp-80h]
int v43; // [rsp+Ch] [rbp-7Ch]
unsigned int m; // [rsp+10h] [rbp-78h]
int k; // [rsp+14h] [rbp-74h]
int j; // [rsp+18h] [rbp-70h]
int v47; // [rsp+1Ch] [rbp-6Ch]
int v48; // [rsp+20h] [rbp-68h]
int i; // [rsp+24h] [rbp-64h]
long long v50; // [rsp+28h] [rbp-60h]
long long v51; // [rsp+30h] [rbp-58h]
int v52; // [rsp+3Ch] [rbp-4Ch]
long long v53; // [rsp+40h] [rbp-48h]
long long v54; // [rsp+48h] [rbp-40h]
long long v55; // [rsp+50h] [rbp-38h]
long long v56; // [rsp+58h] [rbp-30h]
long long v57; // [rsp+60h] [rbp-28h]
v57 = a2[20262];
v56 = a2[20263];
if ( a4 < 0 )
return mj_solveLD((long long)a1, a3, 1, v57, v56, a5, _XMM1);
v55 = a1[220];
v54 = a1[218];
v53 = a1[221];
v52 = *(_DWORD *)(a2[20321] + 4LL * a4);
v51 = 4LL * *(int *)(a2[20322] + 4LL * a4) + a2[20323];
v50 = a2[20324];
for ( i = v52 - 1; i >= 0; --i )
{
v48 = *(_DWORD *)(v51 + 4LL * i);
if ( !*(_DWORD *)(v53 + 4LL * v48) )
{
_RAX = a3;
_RCX = i;
__asm
{
vmovsd xmm0, qword ptr [rax+rcx*8]
vxorps xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
}
if ( __SETP__(*(_DWORD *)(v53 + 4LL * v48), 0) )
{
v47 = *(_DWORD *)(v55 + 4LL * v48) + 1;
for ( j = *(_DWORD *)(v54 + 4LL * v48); j >= 0; j = *(_DWORD *)(v54 + 4LL * j) )
{
_RAX = v57;
LODWORD(_RCX) = v47++;
_RCX = (int)_RCX;
__asm { vmovsd xmm0, qword ptr [rax+rcx*8] }
_RAX = a3;
_RCX = i;
__asm { vmovsd xmm2, qword ptr [rax+rcx*8] }
_RAX = a3;
_RCX = *(int *)(v50 + 4LL * j);
__asm
{
vmovsd xmm1, qword ptr [rax+rcx*8]
vmovq rdx, xmm0
}
_RDX ^= 0x8000000000000000LL;
__asm
{
vmovq xmm0, rdx
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd qword ptr [rax+rcx*8], xmm0
}
}
}
}
}
for ( k = v52 - 1; k >= 0; --k )
{
_RAX = v56;
_RCX = *(int *)(v51 + 4LL * k);
__asm { vmovsd xmm0, qword ptr [rax+rcx*8] }
_RAX = a3;
_RCX = k;
__asm
{
vmulsd xmm0, xmm0, qword ptr [rax+rcx*8]
vmovsd qword ptr [rax+rcx*8], xmm0
}
}
for ( m = 0; ; ++m )
{
result = m;
if ( (int)m >= v52 )
break;
v43 = *(_DWORD *)(v51 + 4LL * (int)m);
if ( !*(_DWORD *)(v53 + 4LL * v43) )
{
v42 = *(_DWORD *)(v55 + 4LL * v43) + 1;
for ( n = *(_DWORD *)(v54 + 4LL * v43); n >= 0; n = *(_DWORD *)(v54 + 4LL * n) )
{
_RAX = v57;
LODWORD(_RCX) = v42++;
_RCX = (int)_RCX;
__asm { vmovsd xmm0, qword ptr [rax+rcx*8] }
_RAX = a3;
_RCX = *(int *)(v50 + 4LL * n);
__asm { vmovsd xmm2, qword ptr [rax+rcx*8] }
_RAX = a3;
_RCX = (int)m;
__asm
{
vmovsd xmm1, qword ptr [rax+rcx*8]
vmovq rdx, xmm0
}
_RDX ^= 0x8000000000000000LL;
__asm
{
vmovq xmm0, rdx
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd qword ptr [rax+rcx*8], xmm0
}
}
}
}
return result;
}
| mj_solveM_island:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RSI
MOV qword ptr [RSP + 0x70],RDX
MOV dword ptr [RSP + 0x6c],ECX
MOV RAX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RAX + 0x27930]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RAX + 0x27938]
MOV qword ptr [RSP + 0x58],RAX
CMP dword ptr [RSP + 0x6c],0x0
JGE 0x00180d3c
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x60]
MOV R8,qword ptr [RSP + 0x58]
MOV EDX,0x1
CALL 0x00149a30
JMP 0x0018101f
LAB_00180d3c:
MOV RAX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RAX + 0x6e0]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RAX + 0x6d0]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RAX + 0x27b08]
MOVSXD RCX,dword ptr [RSP + 0x6c]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x3c],EAX
MOV RAX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RAX + 0x27b18]
MOV RCX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RCX + 0x27b10]
MOVSXD RDX,dword ptr [RSP + 0x6c]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RAX + 0x27b20]
MOV qword ptr [RSP + 0x28],RAX
MOV EAX,dword ptr [RSP + 0x3c]
SUB EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
LAB_00180dd9:
CMP dword ptr [RSP + 0x24],0x0
JL 0x00180ee1
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x20],EAX
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x20]
CMP dword ptr [RAX + RCX*0x4],0x0
JNZ 0x00180ecf
MOV RAX,qword ptr [RSP + 0x70]
MOVSXD RCX,dword ptr [RSP + 0x24]
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
VXORPS XMM1,XMM1,XMM1
VUCOMISD XMM0,XMM1
JNZ 0x00180e29
JP 0x00180e29
JMP 0x00180ecf
LAB_00180e29:
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOV EAX,dword ptr [RAX + RCX*0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x18],EAX
LAB_00180e4e:
CMP dword ptr [RSP + 0x18],0x0
JL 0x00180ecd
MOV RAX,qword ptr [RSP + 0x60]
MOV ECX,dword ptr [RSP + 0x1c]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x1c],EDX
MOVSXD RCX,ECX
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x70]
MOVSXD RCX,dword ptr [RSP + 0x24]
VMOVSD XMM2,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x28]
MOVSXD RDX,dword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
VMOVSD XMM1,qword ptr [RAX + RCX*0x8]
VMOVQ RDX,XMM0
MOV RSI,-0x8000000000000000
XOR RDX,RSI
VMOVQ XMM0,RDX
VMULSD XMM0,XMM0,XMM2
VADDSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RAX + RCX*0x8],XMM0
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x18],EAX
JMP 0x00180e4e
LAB_00180ecd:
JMP 0x00180ecf
LAB_00180ecf:
JMP 0x00180ed1
LAB_00180ed1:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,-0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00180dd9
LAB_00180ee1:
MOV EAX,dword ptr [RSP + 0x3c]
SUB EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
LAB_00180eec:
CMP dword ptr [RSP + 0x14],0x0
JL 0x00180f2c
MOV RAX,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RDX,dword ptr [RSP + 0x14]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x70]
MOVSXD RCX,dword ptr [RSP + 0x14]
VMULSD XMM0,XMM0,qword ptr [RAX + RCX*0x8]
VMOVSD qword ptr [RAX + RCX*0x8],XMM0
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,-0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x00180eec
LAB_00180f2c:
MOV dword ptr [RSP + 0x10],0x0
LAB_00180f34:
MOV EAX,dword ptr [RSP + 0x10]
CMP EAX,dword ptr [RSP + 0x3c]
JGE 0x0018101f
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0xc]
CMP dword ptr [RAX + RCX*0x4],0x0
JNZ 0x0018100d
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0xc]
MOV EAX,dword ptr [RAX + RCX*0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0xc]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x4],EAX
LAB_00180f8c:
CMP dword ptr [RSP + 0x4],0x0
JL 0x0018100b
MOV RAX,qword ptr [RSP + 0x60]
MOV ECX,dword ptr [RSP + 0x8]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x8],EDX
MOVSXD RCX,ECX
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x28]
MOVSXD RDX,dword ptr [RSP + 0x4]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
VMOVSD XMM2,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x70]
MOVSXD RCX,dword ptr [RSP + 0x10]
VMOVSD XMM1,qword ptr [RAX + RCX*0x8]
VMOVQ RDX,XMM0
MOV RSI,-0x8000000000000000
XOR RDX,RSI
VMOVQ XMM0,RDX
VMULSD XMM0,XMM0,XMM2
VADDSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RAX + RCX*0x8],XMM0
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x4]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x4],EAX
JMP 0x00180f8c
LAB_0018100b:
JMP 0x0018100d
LAB_0018100d:
JMP 0x0018100f
LAB_0018100f:
MOV EAX,dword ptr [RSP + 0x10]
ADD EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
JMP 0x00180f34
LAB_0018101f:
ADD RSP,0x88
RET
|
void mj_solveM_island(long param_1,long param_2,long param_3,int param_4)
{
double dVar1;
int iVar2;
int iVar3;
long lVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
long lVar10;
long lVar11;
int local_84;
int local_80;
int local_78;
int local_74;
int local_70;
int local_6c;
int local_64;
lVar4 = *(long *)(param_2 + 0x27930);
lVar5 = *(long *)(param_2 + 0x27938);
if (param_4 < 0) {
mj_solveLD(param_1,param_3,1,lVar4,lVar5);
}
else {
lVar6 = *(long *)(param_1 + 0x6e0);
lVar7 = *(long *)(param_1 + 0x6d0);
lVar8 = *(long *)(param_1 + 0x6e8);
iVar2 = *(int *)(*(long *)(param_2 + 0x27b08) + (long)param_4 * 4);
lVar10 = *(long *)(param_2 + 0x27b18) +
(long)*(int *)(*(long *)(param_2 + 0x27b10) + (long)param_4 * 4) * 4;
lVar9 = *(long *)(param_2 + 0x27b20);
local_64 = iVar2;
while (local_64 = local_64 + -1, local_74 = iVar2, -1 < local_64) {
iVar3 = *(int *)(lVar10 + (long)local_64 * 4);
if ((*(int *)(lVar8 + (long)iVar3 * 4) == 0) &&
((dVar1 = *(double *)(param_3 + (long)local_64 * 8), dVar1 != 0.0 || (NAN(dVar1))))) {
local_6c = *(int *)(lVar6 + (long)iVar3 * 4);
for (local_70 = *(int *)(lVar7 + (long)iVar3 * 4); local_6c = local_6c + 1, -1 < local_70;
local_70 = *(int *)(lVar7 + (long)local_70 * 4)) {
lVar11 = (long)*(int *)(lVar9 + (long)local_70 * 4);
*(double *)(param_3 + lVar11 * 8) =
-*(double *)(lVar4 + (long)local_6c * 8) * *(double *)(param_3 + (long)local_64 * 8)
+ *(double *)(param_3 + lVar11 * 8);
}
}
}
while (local_74 = local_74 + -1, -1 < local_74) {
*(double *)(param_3 + (long)local_74 * 8) =
*(double *)(lVar5 + (long)*(int *)(lVar10 + (long)local_74 * 4) * 8) *
*(double *)(param_3 + (long)local_74 * 8);
}
for (local_78 = 0; local_78 < iVar2; local_78 = local_78 + 1) {
iVar3 = *(int *)(lVar10 + (long)local_78 * 4);
if (*(int *)(lVar8 + (long)iVar3 * 4) == 0) {
local_80 = *(int *)(lVar6 + (long)iVar3 * 4);
for (local_84 = *(int *)(lVar7 + (long)iVar3 * 4); local_80 = local_80 + 1, -1 < local_84;
local_84 = *(int *)(lVar7 + (long)local_84 * 4)) {
*(double *)(param_3 + (long)local_78 * 8) =
-*(double *)(lVar4 + (long)local_80 * 8) *
*(double *)(param_3 + (long)*(int *)(lVar9 + (long)local_84 * 4) * 8) +
*(double *)(param_3 + (long)local_78 * 8);
}
}
}
}
return;
}
| |
23,231 | PVG_FT_Stroker_Set | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c | void PVG_FT_Stroker_Set(PVG_FT_Stroker stroker, PVG_FT_Fixed radius,
PVG_FT_Stroker_LineCap line_cap,
PVG_FT_Stroker_LineJoin line_join,
PVG_FT_Fixed miter_limit)
{
stroker->radius = radius;
stroker->line_cap = line_cap;
stroker->line_join = line_join;
stroker->miter_limit = miter_limit;
/* ensure miter limit has sensible value */
if (stroker->miter_limit < 0x10000) stroker->miter_limit = 0x10000;
/* save line join style: */
/* line join style can be temporarily changed when stroking curves */
stroker->line_join_saved = line_join;
PVG_FT_Stroker_Rewind(stroker);
} | O1 | c | PVG_FT_Stroker_Set:
movq %rsi, 0x68(%rdi)
movl %edx, 0x54(%rdi)
cmpq $0x10001, %r8 # imm = 0x10001
movl $0x10000, %eax # imm = 0x10000
cmovgeq %r8, %rax
movl %ecx, 0x58(%rdi)
movq %rax, 0x60(%rdi)
movl %ecx, 0x5c(%rdi)
testq %rdi, %rdi
je 0x1cf9a
xorl %eax, %eax
movl %eax, 0x70(%rdi)
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl %ecx, 0x8c(%rdi)
movb %al, 0x90(%rdi)
movl %eax, 0x98(%rdi)
movl %ecx, 0xb4(%rdi)
movb %al, 0xb8(%rdi)
retq
| PVG_FT_Stroker_Set:
mov [rdi+68h], rsi
mov [rdi+54h], edx
cmp r8, 10001h
mov eax, 10000h
cmovge rax, r8
mov [rdi+58h], ecx
mov [rdi+60h], rax
mov [rdi+5Ch], ecx
test rdi, rdi
jz short locret_1CF9A
xor eax, eax
mov [rdi+70h], eax
mov ecx, 0FFFFFFFFh
mov [rdi+8Ch], ecx
mov [rdi+90h], al
mov [rdi+98h], eax
mov [rdi+0B4h], ecx
mov [rdi+0B8h], al
locret_1CF9A:
retn
| long long PVG_FT_Stroker_Set(long long a1, long long a2, int a3, int a4, long long a5)
{
long long result; // rax
*(_QWORD *)(a1 + 104) = a2;
*(_DWORD *)(a1 + 84) = a3;
result = 0x10000LL;
if ( a5 >= 65537 )
result = a5;
*(_DWORD *)(a1 + 88) = a4;
*(_QWORD *)(a1 + 96) = result;
*(_DWORD *)(a1 + 92) = a4;
if ( a1 )
{
result = 0LL;
*(_DWORD *)(a1 + 112) = 0;
*(_DWORD *)(a1 + 140) = -1;
*(_BYTE *)(a1 + 144) = 0;
*(_DWORD *)(a1 + 152) = 0;
*(_DWORD *)(a1 + 180) = -1;
*(_BYTE *)(a1 + 184) = 0;
}
return result;
}
| PVG_FT_Stroker_Set:
MOV qword ptr [RDI + 0x68],RSI
MOV dword ptr [RDI + 0x54],EDX
CMP R8,0x10001
MOV EAX,0x10000
CMOVGE RAX,R8
MOV dword ptr [RDI + 0x58],ECX
MOV qword ptr [RDI + 0x60],RAX
MOV dword ptr [RDI + 0x5c],ECX
TEST RDI,RDI
JZ 0x0011cf9a
XOR EAX,EAX
MOV dword ptr [RDI + 0x70],EAX
MOV ECX,0xffffffff
MOV dword ptr [RDI + 0x8c],ECX
MOV byte ptr [RDI + 0x90],AL
MOV dword ptr [RDI + 0x98],EAX
MOV dword ptr [RDI + 0xb4],ECX
MOV byte ptr [RDI + 0xb8],AL
LAB_0011cf9a:
RET
|
void PVG_FT_Stroker_Set(long param_1,int8 param_2,int4 param_3,int4 param_4,
long param_5)
{
long lVar1;
*(int8 *)(param_1 + 0x68) = param_2;
*(int4 *)(param_1 + 0x54) = param_3;
lVar1 = 0x10000;
if (0x10000 < param_5) {
lVar1 = param_5;
}
*(int4 *)(param_1 + 0x58) = param_4;
*(long *)(param_1 + 0x60) = lVar1;
*(int4 *)(param_1 + 0x5c) = param_4;
if (param_1 != 0) {
*(int4 *)(param_1 + 0x70) = 0;
*(int4 *)(param_1 + 0x8c) = 0xffffffff;
*(int1 *)(param_1 + 0x90) = 0;
*(int4 *)(param_1 + 0x98) = 0;
*(int4 *)(param_1 + 0xb4) = 0xffffffff;
*(int1 *)(param_1 + 0xb8) = 0;
}
return;
}
| |
23,232 | PVG_FT_Stroker_Set | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c | void PVG_FT_Stroker_Set(PVG_FT_Stroker stroker, PVG_FT_Fixed radius,
PVG_FT_Stroker_LineCap line_cap,
PVG_FT_Stroker_LineJoin line_join,
PVG_FT_Fixed miter_limit)
{
stroker->radius = radius;
stroker->line_cap = line_cap;
stroker->line_join = line_join;
stroker->miter_limit = miter_limit;
/* ensure miter limit has sensible value */
if (stroker->miter_limit < 0x10000) stroker->miter_limit = 0x10000;
/* save line join style: */
/* line join style can be temporarily changed when stroking curves */
stroker->line_join_saved = line_join;
PVG_FT_Stroker_Rewind(stroker);
} | O2 | c | PVG_FT_Stroker_Set:
movq %rsi, 0x68(%rdi)
movl %edx, 0x54(%rdi)
cmpq $0x10001, %r8 # imm = 0x10001
movl $0x10000, %eax # imm = 0x10000
cmovgeq %r8, %rax
movl %ecx, 0x58(%rdi)
movq %rax, 0x60(%rdi)
movl %ecx, 0x5c(%rdi)
jmp 0x18e6f
| PVG_FT_Stroker_Set:
mov [rdi+68h], rsi
mov [rdi+54h], edx
cmp r8, 10001h
mov eax, 10000h
cmovge rax, r8
mov [rdi+58h], ecx
mov [rdi+60h], rax
mov [rdi+5Ch], ecx
jmp PVG_FT_Stroker_Rewind
| long long PVG_FT_Stroker_Set(long long a1, long long a2, int a3, int a4, long long a5)
{
long long v5; // rax
*(_QWORD *)(a1 + 104) = a2;
*(_DWORD *)(a1 + 84) = a3;
v5 = 0x10000LL;
if ( a5 >= 65537 )
v5 = a5;
*(_DWORD *)(a1 + 88) = a4;
*(_QWORD *)(a1 + 96) = v5;
*(_DWORD *)(a1 + 92) = a4;
return PVG_FT_Stroker_Rewind(a1);
}
| PVG_FT_Stroker_Set:
MOV qword ptr [RDI + 0x68],RSI
MOV dword ptr [RDI + 0x54],EDX
CMP R8,0x10001
MOV EAX,0x10000
CMOVGE RAX,R8
MOV dword ptr [RDI + 0x58],ECX
MOV qword ptr [RDI + 0x60],RAX
MOV dword ptr [RDI + 0x5c],ECX
JMP 0x00118e6f
|
void PVG_FT_Stroker_Set(long param_1,int8 param_2,int4 param_3,int4 param_4,
long param_5)
{
long lVar1;
*(int8 *)(param_1 + 0x68) = param_2;
*(int4 *)(param_1 + 0x54) = param_3;
lVar1 = 0x10000;
if (0x10000 < param_5) {
lVar1 = param_5;
}
*(int4 *)(param_1 + 0x58) = param_4;
*(long *)(param_1 + 0x60) = lVar1;
*(int4 *)(param_1 + 0x5c) = param_4;
PVG_FT_Stroker_Rewind();
return;
}
| |
23,233 | my_casedn_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_casedn_utf32(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((res= my_utf32_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_utf32(uni_plane,&wc);
if (res != my_uni_utf32(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O0 | c | my_casedn_utf32:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x6bab2
jmp 0x6bab4
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0x6b8a0
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jle 0x6bb28
movq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x6fc00
movl -0x34(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0x6b8d0
movl %eax, %ecx
movl -0x54(%rbp), %eax
cmpl %ecx, %eax
je 0x6bb04
jmp 0x6bb28
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x34(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x6bab4
movq -0x18(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_casedn_utf32:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_50], rax
jmp short $+2
loc_6BAB2:
jmp short $+2
loc_6BAB4:
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf32_uni
mov [rbp+var_34], eax
cmp eax, 0
jle short loc_6BB28
mov rdi, [rbp+var_50]
lea rsi, [rbp+var_30]
call my_tolower_utf32
mov eax, [rbp+var_34]
mov [rbp+var_54], eax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_48]
call my_uni_utf32
mov ecx, eax
mov eax, [rbp+var_54]
cmp eax, ecx
jz short loc_6BB04
jmp short loc_6BB28
loc_6BB04:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_34]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
jmp short loc_6BAB4
loc_6BB28:
mov rax, [rbp+var_18]
add rsp, 60h
pop rbp
retn
| long long my_casedn_utf32(long long a1, long long a2, long long a3, _BYTE *a4, long long a5, long long a6)
{
long long v7; // [rsp+10h] [rbp-50h]
unsigned long long v8; // [rsp+18h] [rbp-48h]
long long v9; // [rsp+20h] [rbp-40h]
int v10; // [rsp+2Ch] [rbp-34h]
unsigned long long v11[2]; // [rsp+30h] [rbp-30h] BYREF
_BYTE *v12; // [rsp+40h] [rbp-20h]
long long v13; // [rsp+48h] [rbp-18h]
long long v14; // [rsp+50h] [rbp-10h]
long long v15; // [rsp+58h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11[1] = a5;
v9 = a3 + a2;
v8 = (unsigned long long)&a4[a5];
v7 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v10 = my_utf32_uni(v15, (long long)v11, v14, v9, a5, a6);
if ( v10 <= 0 )
break;
my_tolower_utf32(v7, v11);
if ( v10 != (unsigned int)my_uni_utf32(v15, v11[0], v12, v8) )
break;
v14 += v10;
v12 += v10;
}
return v13;
}
| my_casedn_utf32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0016bab2
LAB_0016bab2:
JMP 0x0016bab4
LAB_0016bab4:
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x30]
CALL 0x0016b8a0
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JLE 0x0016bb28
MOV RDI,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0x30]
CALL 0x0016fc00
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x54],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x0016b8d0
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x54]
CMP EAX,ECX
JZ 0x0016bb04
JMP 0x0016bb28
LAB_0016bb04:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0016bab4
LAB_0016bb28:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x60
POP RBP
RET
|
long my_casedn_utf32(long param_1,long param_2,long param_3,long param_4,long param_5)
{
int8 uVar1;
int iVar2;
int iVar3;
int8 local_38;
long local_30;
long local_28;
long local_20;
long local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
iVar2 = my_utf32_uni(local_10,&local_38,local_18,param_2 + param_3);
if (iVar2 < 1) {
return local_20;
}
my_tolower_utf32(uVar1,&local_38);
iVar3 = my_uni_utf32(local_10,local_38,local_28,param_4 + param_5);
if (iVar2 != iVar3) break;
local_18 = local_18 + iVar2;
local_28 = local_28 + iVar2;
}
return local_20;
}
| |
23,234 | my_casedn_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_casedn_utf32(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((res= my_utf32_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_utf32(uni_plane,&wc);
if (res != my_uni_utf32(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O3 | c | my_casedn_utf32:
movq %rdx, %rax
cmpq $0x4, %rdx
jl 0x4e905
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x4, %rcx
movzbl (%rsi), %r9d
shll $0x18, %r9d
movzbl 0x1(%rsi), %r10d
shll $0x10, %r10d
orl %r9d, %r10d
cmpl $0x10ffff, %r10d # imm = 0x10FFFF
ja 0x4e903
movzbl 0x2(%rsi), %ebx
shll $0x8, %ebx
movzbl 0x3(%rsi), %r9d
orq %r9, %rbx
orq %r10, %rbx
cmpq (%rdi), %rbx
ja 0x4e8cc
movq 0x8(%rdi), %r10
movl %ebx, %r11d
shrl $0x8, %r11d
movq (%r10,%r11,8), %r10
testq %r10, %r10
je 0x4e8cc
leaq (%r9,%r9,2), %r9
movl 0x4(%r10,%r9,4), %ebx
cmpq %r8, %rcx
ja 0x4e903
cmpl $0x10ffff, %ebx # imm = 0x10FFFF
ja 0x4e903
movb $0x0, -0x4(%rcx)
movl %ebx, %r9d
shrl $0x10, %r9d
movb %r9b, -0x3(%rcx)
movb %bh, -0x2(%rcx)
movb %bl, -0x1(%rcx)
leaq 0x8(%rsi), %r9
addq $0x4, %rcx
addq $0x4, %rsi
cmpq %rdx, %r9
jbe 0x4e87b
popq %rbx
popq %rbp
retq
| my_casedn_utf32:
mov rax, rdx
cmp rdx, 4
jl locret_4E905
push rbp
mov rbp, rsp
push rbx
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 4
loc_4E87B:
movzx r9d, byte ptr [rsi]
shl r9d, 18h
movzx r10d, byte ptr [rsi+1]
shl r10d, 10h
or r10d, r9d
cmp r10d, offset unk_10FFFF
ja short loc_4E903
movzx ebx, byte ptr [rsi+2]
shl ebx, 8
movzx r9d, byte ptr [rsi+3]
or rbx, r9
or rbx, r10
cmp rbx, [rdi]
ja short loc_4E8CC
mov r10, [rdi+8]
mov r11d, ebx
shr r11d, 8
mov r10, [r10+r11*8]
test r10, r10
jz short loc_4E8CC
lea r9, [r9+r9*2]
mov ebx, [r10+r9*4+4]
loc_4E8CC:
cmp rcx, r8
ja short loc_4E903
cmp ebx, offset unk_10FFFF
ja short loc_4E903
mov byte ptr [rcx-4], 0
mov r9d, ebx
shr r9d, 10h
mov [rcx-3], r9b
mov [rcx-2], bh
mov [rcx-1], bl
lea r9, [rsi+8]
add rcx, 4
add rsi, 4
cmp r9, rdx
jbe loc_4E87B
loc_4E903:
pop rbx
pop rbp
locret_4E905:
retn
| long long my_casedn_utf32(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned __int8 *v6; // rdx
unsigned long long v7; // r8
unsigned long long *v8; // rdi
unsigned long long v9; // rcx
long long v10; // r10
long long v11; // r9
unsigned long long v12; // rbx
long long v13; // r10
unsigned __int8 *v14; // r9
result = a3;
if ( a3 >= 4 )
{
v6 = &a2[a3];
v7 = a4 + a5;
v8 = *(unsigned long long **)(a1 + 120);
v9 = a4 + 4;
do
{
v10 = (*a2 << 24) | (a2[1] << 16);
if ( (unsigned int)v10 > (unsigned int)&unk_10FFFF )
break;
v11 = a2[3];
v12 = v10 | v11 | (a2[2] << 8);
if ( v12 <= *v8 )
{
v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v12 >> 8));
if ( v13 )
LODWORD(v12) = *(_DWORD *)(v13 + 12 * v11 + 4);
}
if ( v9 > v7 )
break;
if ( (unsigned int)v12 > (unsigned int)&unk_10FFFF )
break;
*(_BYTE *)(v9 - 4) = 0;
*(_BYTE *)(v9 - 3) = BYTE2(v12);
*(_BYTE *)(v9 - 2) = BYTE1(v12);
*(_BYTE *)(v9 - 1) = v12;
v14 = a2 + 8;
v9 += 4LL;
a2 += 4;
}
while ( v14 <= v6 );
}
return result;
}
| my_casedn_utf32:
MOV RAX,RDX
CMP RDX,0x4
JL 0x0014e905
PUSH RBP
MOV RBP,RSP
PUSH RBX
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x4
LAB_0014e87b:
MOVZX R9D,byte ptr [RSI]
SHL R9D,0x18
MOVZX R10D,byte ptr [RSI + 0x1]
SHL R10D,0x10
OR R10D,R9D
CMP R10D,0x10ffff
JA 0x0014e903
MOVZX EBX,byte ptr [RSI + 0x2]
SHL EBX,0x8
MOVZX R9D,byte ptr [RSI + 0x3]
OR RBX,R9
OR RBX,R10
CMP RBX,qword ptr [RDI]
JA 0x0014e8cc
MOV R10,qword ptr [RDI + 0x8]
MOV R11D,EBX
SHR R11D,0x8
MOV R10,qword ptr [R10 + R11*0x8]
TEST R10,R10
JZ 0x0014e8cc
LEA R9,[R9 + R9*0x2]
MOV EBX,dword ptr [R10 + R9*0x4 + 0x4]
LAB_0014e8cc:
CMP RCX,R8
JA 0x0014e903
CMP EBX,0x10ffff
JA 0x0014e903
MOV byte ptr [RCX + -0x4],0x0
MOV R9D,EBX
SHR R9D,0x10
MOV byte ptr [RCX + -0x3],R9B
MOV byte ptr [RCX + -0x2],BH
MOV byte ptr [RCX + -0x1],BL
LEA R9,[RSI + 0x8]
ADD RCX,0x4
ADD RSI,0x4
CMP R9,RDX
JBE 0x0014e87b
LAB_0014e903:
POP RBX
POP RBP
LAB_0014e905:
RET
|
void my_casedn_utf32(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
byte *pbVar1;
byte *pbVar2;
ulong *puVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
uint uVar7;
if (3 < param_3) {
pbVar2 = param_2 + param_3;
puVar3 = *(ulong **)(param_1 + 0x78);
uVar5 = param_4 + 4;
while (uVar7 = (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18, uVar7 < 0x110000) {
uVar6 = (ulong)CONCAT11(param_2[2],param_2[3]) | (ulong)uVar7;
if ((uVar6 <= *puVar3) && (lVar4 = *(long *)(puVar3[1] + (uVar6 >> 8) * 8), lVar4 != 0)) {
uVar6 = (ulong)*(uint *)(lVar4 + 4 + (ulong)param_2[3] * 0xc);
}
if ((ulong)(param_5 + param_4) < uVar5) {
return;
}
if (0x10ffff < (uint)uVar6) {
return;
}
*(int1 *)(uVar5 - 4) = 0;
*(char *)(uVar5 - 3) = (char)(uVar6 >> 0x10);
*(char *)(uVar5 - 2) = (char)(uVar6 >> 8);
*(char *)(uVar5 - 1) = (char)uVar6;
pbVar1 = param_2 + 8;
uVar5 = uVar5 + 4;
param_2 = param_2 + 4;
if (pbVar2 < pbVar1) {
return;
}
}
}
return;
}
| |
23,235 | js_object_toString | bluesky950520[P]quickjs/quickjs.c | static JSValue js_object_toString(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, tag;
int is_array;
JSAtom atom;
JSObject *p;
if (JS_IsNull(this_val)) {
tag = js_new_string8(ctx, "Null");
} else if (JS_IsUndefined(this_val)) {
tag = js_new_string8(ctx, "Undefined");
} else {
obj = JS_ToObject(ctx, this_val);
if (JS_IsException(obj))
return obj;
is_array = JS_IsArray(ctx, obj);
if (is_array < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
if (is_array) {
atom = JS_ATOM_Array;
} else if (JS_IsFunction(ctx, obj)) {
atom = JS_ATOM_Function;
} else {
p = JS_VALUE_GET_OBJ(obj);
switch(p->class_id) {
case JS_CLASS_STRING:
case JS_CLASS_ARGUMENTS:
case JS_CLASS_MAPPED_ARGUMENTS:
case JS_CLASS_ERROR:
case JS_CLASS_BOOLEAN:
case JS_CLASS_NUMBER:
case JS_CLASS_DATE:
case JS_CLASS_REGEXP:
atom = ctx->rt->class_array[p->class_id].class_name;
break;
default:
atom = JS_ATOM_Object;
break;
}
}
tag = JS_GetProperty(ctx, obj, JS_ATOM_Symbol_toStringTag);
JS_FreeValue(ctx, obj);
if (JS_IsException(tag))
return JS_EXCEPTION;
if (!JS_IsString(tag)) {
JS_FreeValue(ctx, tag);
tag = JS_AtomToString(ctx, atom);
}
}
return JS_ConcatString3(ctx, "[object ", tag, "]");
} | O1 | c | js_object_toString:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x3, %edx
je 0x75385
cmpl $0x2, %edx
jne 0x753d6
leaq 0x3097f(%rip), %rsi # 0xa5cfa
movq %rbx, %rdi
movl $0x4, %edx
jmp 0x75394
leaq 0x30973(%rip), %rsi # 0xa5cff
movq %rbx, %rdi
movl $0x9, %edx
callq 0x24239
movq %rax, %r12
movq %rdx, %r13
leaq 0x30963(%rip), %rsi # 0xa5d09
leaq 0x2a763(%rip), %r8 # 0x9fb10
movq %rbx, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x45f5e
movq %rax, %r15
movq %rdx, %r14
movq %r15, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x2ae39
movq %rax, %r15
movq %rdx, %r14
movq %rax, (%rsp)
cmpl $0x6, %r14d
je 0x753c1
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2c32e
testl %eax, %eax
js 0x7549c
movl $0x94, %ebp
jne 0x75451
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x26e1a
movl $0x9e, %ebp
testl %eax, %eax
jne 0x75451
movq (%rsp), %rax
movzwl 0x6(%rax), %eax
movl $0x93, %ebp
cmpl $0x12, %eax
ja 0x75451
movl $0x40778, %ecx # imm = 0x40778
btl %eax, %ecx
jae 0x75451
movq 0x18(%rbx), %rcx
movq 0x80(%rcx), %rcx
leaq (%rax,%rax,4), %rax
movl 0x4(%rcx,%rax,8), %ebp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0xda, %ecx
movq %r15, %r8
movq %r14, %r9
pushq $0x0
pushq $0x0
callq 0x26fff
addq $0x10, %rsp
movq %rax, %r12
movq %rdx, %r13
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x21922
cmpl $-0x7, %r13d
je 0x7539f
cmpl $0x6, %r13d
jne 0x754b9
movl %r13d, %r14d
jmp 0x754b1
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x21922
movl $0x6, %r14d
xorl %r15d, %r15d
jmp 0x753c1
movq 0x18(%rbx), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21922
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0x247b6
jmp 0x75399
| js_object_toString:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
cmp edx, 3
jz short loc_75385
cmp edx, 2
jnz short loc_753D6
lea rsi, aNull_0; "Null"
mov rdi, rbx
mov edx, 4
jmp short loc_75394
loc_75385:
lea rsi, aUndefined; "Undefined"
mov rdi, rbx
mov edx, 9
loc_75394:
call js_new_string8_len
loc_75399:
mov r12, rax
mov r13, rdx
loc_7539F:
lea rsi, aObject_0; "[object "
lea r8, asc_9FB0B+5; "]"
mov rdi, rbx
mov rdx, r12
mov rcx, r13
call JS_ConcatString3
mov r15, rax
mov r14, rdx
loc_753C1:
mov rax, r15
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_753D6:
mov rdi, rbx
call JS_ToObject
mov r15, rax
mov r14, rdx
mov [rsp+38h+var_38], rax
cmp r14d, 6
jz short loc_753C1
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_IsArray
test eax, eax
js loc_7549C
mov ebp, 94h
jnz short loc_75451
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_IsFunction
mov ebp, 9Eh
test eax, eax
jnz short loc_75451
mov rax, [rsp+38h+var_38]
movzx eax, word ptr [rax+6]
mov ebp, 93h
cmp eax, 12h
ja short loc_75451
mov ecx, 40778h
bt ecx, eax
jnb short loc_75451
mov rcx, [rbx+18h]
mov rcx, [rcx+80h]
lea rax, [rax+rax*4]
mov ebp, [rcx+rax*8+4]
loc_75451:
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, 0DAh
mov r8, r15
mov r9, r14
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov r12, rax
mov r13, rdx
mov rdi, [rbx+18h]
mov rsi, r15
mov rdx, r14
call JS_FreeValueRT
cmp r13d, 0FFFFFFF9h
jz loc_7539F
cmp r13d, 6
jnz short loc_754B9
mov r14d, r13d
jmp short loc_754B1
loc_7549C:
mov rdi, [rbx+18h]
mov rsi, r15
mov rdx, r14
call JS_FreeValueRT
mov r14d, 6
loc_754B1:
xor r15d, r15d
jmp loc_753C1
loc_754B9:
mov rdi, [rbx+18h]
mov rsi, r12
mov rdx, r13
call JS_FreeValueRT
mov rdi, rbx
mov esi, ebp
mov edx, 1
call __JS_AtomToValue
jmp loc_75399
| _DWORD * js_object_toString(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
const char *v14; // rsi
unsigned int v15; // edx
long long v16; // rax
long long v17; // rdx
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
_DWORD *PropertyInternal2; // r12
long long v22; // r13
_DWORD *v23; // r15
_DWORD *v25; // rax
long long v26; // rdx
long long v27; // r14
int IsArray; // eax
int v29; // ebp
long long v30; // rax
int v31; // ecx
long long v32; // rdx
_DWORD *v33; // [rsp+0h] [rbp-38h]
if ( (_DWORD)a3 == 3 )
{
v14 = "Undefined";
v15 = 9;
}
else
{
if ( (_DWORD)a3 != 2 )
{
v25 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v23 = v25;
v27 = v26;
v33 = v25;
if ( (_DWORD)v26 == 6 )
return v23;
IsArray = JS_IsArray(a1, (long long)v25, v26);
if ( IsArray < 0 )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v27);
}
else
{
v29 = 148;
if ( !IsArray )
{
v29 = 158;
if ( !(unsigned int)JS_IsFunction(a1, (long long)v23, v27) )
{
v30 = *((unsigned __int16 *)v33 + 3);
v29 = 147;
if ( (unsigned int)v30 <= 0x12 )
{
v31 = 264056;
if ( _bittest(&v31, v30) )
v29 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 128LL) + 40 * v30 + 4);
}
}
}
PropertyInternal2 = (_DWORD *)JS_GetPropertyInternal2(a1, (long long)v23, v27, 0xDAu, (long long)v23, v27, 0LL, 0);
v22 = v32;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v27);
if ( (_DWORD)v22 == -7 )
return JS_ConcatString3(
a1,
(long long)"[object ",
PropertyInternal2,
v22,
(long long)"]",
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14);
if ( (_DWORD)v22 != 6 )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), PropertyInternal2, v22);
v16 = _JS_AtomToValue(a1, v29, 1);
goto LABEL_6;
}
}
return 0LL;
}
v14 = "Null";
v15 = 4;
}
v16 = js_new_string8_len(a1, (long long)v14, v15);
LABEL_6:
PropertyInternal2 = (_DWORD *)v16;
v22 = v17;
return JS_ConcatString3(
a1,
(long long)"[object ",
PropertyInternal2,
v22,
(long long)"]",
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14);
}
| js_object_toString:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP EDX,0x3
JZ 0x00175385
CMP EDX,0x2
JNZ 0x001753d6
LEA RSI,[0x1a5cfa]
MOV RDI,RBX
MOV EDX,0x4
JMP 0x00175394
LAB_00175385:
LEA RSI,[0x1a5cff]
MOV RDI,RBX
MOV EDX,0x9
LAB_00175394:
CALL 0x00124239
LAB_00175399:
MOV R12,RAX
MOV R13,RDX
LAB_0017539f:
LEA RSI,[0x1a5d09]
LEA R8,[0x19fb10]
MOV RDI,RBX
MOV RDX,R12
MOV RCX,R13
CALL 0x00145f5e
MOV R15,RAX
MOV R14,RDX
LAB_001753c1:
MOV RAX,R15
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001753d6:
MOV RDI,RBX
CALL 0x0012ae39
MOV R15,RAX
MOV R14,RDX
MOV qword ptr [RSP],RAX
CMP R14D,0x6
JZ 0x001753c1
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0012c32e
TEST EAX,EAX
JS 0x0017549c
MOV EBP,0x94
JNZ 0x00175451
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x00126e1a
MOV EBP,0x9e
TEST EAX,EAX
JNZ 0x00175451
MOV RAX,qword ptr [RSP]
MOVZX EAX,word ptr [RAX + 0x6]
MOV EBP,0x93
CMP EAX,0x12
JA 0x00175451
MOV ECX,0x40778
BT ECX,EAX
JNC 0x00175451
MOV RCX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RCX + 0x80]
LEA RAX,[RAX + RAX*0x4]
MOV EBP,dword ptr [RCX + RAX*0x8 + 0x4]
LAB_00175451:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,0xda
MOV R8,R15
MOV R9,R14
PUSH 0x0
PUSH 0x0
CALL 0x00126fff
ADD RSP,0x10
MOV R12,RAX
MOV R13,RDX
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R15
MOV RDX,R14
CALL 0x00121922
CMP R13D,-0x7
JZ 0x0017539f
CMP R13D,0x6
JNZ 0x001754b9
MOV R14D,R13D
JMP 0x001754b1
LAB_0017549c:
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R15
MOV RDX,R14
CALL 0x00121922
MOV R14D,0x6
LAB_001754b1:
XOR R15D,R15D
JMP 0x001753c1
LAB_001754b9:
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R12
MOV RDX,R13
CALL 0x00121922
MOV RDI,RBX
MOV ESI,EBP
MOV EDX,0x1
CALL 0x001247b6
JMP 0x00175399
|
int1 [16] js_object_toString(long param_1,int8 param_2,int param_3)
{
ushort uVar1;
int iVar2;
long lVar3;
int8 uVar4;
int4 uVar5;
char *pcVar6;
ulong uVar7;
int1 auVar8 [16];
if (param_3 == 3) {
pcVar6 = "Undefined";
uVar4 = 9;
}
else {
if (param_3 != 2) {
auVar8 = JS_ToObject(param_1);
uVar4 = auVar8._8_8_;
lVar3 = auVar8._0_8_;
if (auVar8._8_4_ == 6) {
return auVar8;
}
iVar2 = JS_IsArray(param_1,lVar3,uVar4);
if (iVar2 < 0) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),lVar3,uVar4);
uVar7 = 6;
LAB_001754b1:
auVar8._8_8_ = 0;
auVar8._0_8_ = uVar7;
return auVar8 << 0x40;
}
uVar5 = 0x94;
if (iVar2 == 0) {
iVar2 = JS_IsFunction(param_1,lVar3,uVar4);
uVar5 = 0x9e;
if (iVar2 == 0) {
uVar1 = *(ushort *)(lVar3 + 6);
uVar5 = 0x93;
if ((uVar1 < 0x13) && ((0x40778U >> (uVar1 & 0x1f) & 1) != 0)) {
uVar5 = *(int4 *)
(*(long *)(*(long *)(param_1 + 0x18) + 0x80) + 4 + (ulong)uVar1 * 0x28);
}
}
}
auVar8 = JS_GetPropertyInternal2(param_1,lVar3,uVar4,0xda,lVar3,uVar4,0,0);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),lVar3,uVar4);
if (auVar8._8_4_ != -7) {
if (auVar8._8_4_ == 6) {
uVar7 = auVar8._8_8_ & 0xffffffff;
goto LAB_001754b1;
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar8._0_8_,auVar8._8_8_);
auVar8 = __JS_AtomToValue(param_1,uVar5,1);
}
goto LAB_0017539f;
}
pcVar6 = "Null";
uVar4 = 4;
}
auVar8 = js_new_string8_len(param_1,pcVar6,uVar4);
LAB_0017539f:
auVar8 = JS_ConcatString3(param_1,"[object ",auVar8._0_8_,auVar8._8_8_,&DAT_0019fb10);
return auVar8;
}
| |
23,236 | js_object_toString | bluesky950520[P]quickjs/quickjs.c | static JSValue js_object_toString(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, tag;
int is_array;
JSAtom atom;
JSObject *p;
if (JS_IsNull(this_val)) {
tag = js_new_string8(ctx, "Null");
} else if (JS_IsUndefined(this_val)) {
tag = js_new_string8(ctx, "Undefined");
} else {
obj = JS_ToObject(ctx, this_val);
if (JS_IsException(obj))
return obj;
is_array = JS_IsArray(ctx, obj);
if (is_array < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
if (is_array) {
atom = JS_ATOM_Array;
} else if (JS_IsFunction(ctx, obj)) {
atom = JS_ATOM_Function;
} else {
p = JS_VALUE_GET_OBJ(obj);
switch(p->class_id) {
case JS_CLASS_STRING:
case JS_CLASS_ARGUMENTS:
case JS_CLASS_MAPPED_ARGUMENTS:
case JS_CLASS_ERROR:
case JS_CLASS_BOOLEAN:
case JS_CLASS_NUMBER:
case JS_CLASS_DATE:
case JS_CLASS_REGEXP:
atom = ctx->rt->class_array[p->class_id].class_name;
break;
default:
atom = JS_ATOM_Object;
break;
}
}
tag = JS_GetProperty(ctx, obj, JS_ATOM_Symbol_toStringTag);
JS_FreeValue(ctx, obj);
if (JS_IsException(tag))
return JS_EXCEPTION;
if (!JS_IsString(tag)) {
JS_FreeValue(ctx, tag);
tag = JS_AtomToString(ctx, atom);
}
}
return JS_ConcatString3(ctx, "[object ", tag, "]");
} | O2 | c | js_object_toString:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x3, %edx
je 0x62fe1
cmpl $0x2, %edx
jne 0x6302d
leaq 0x28c55(%rip), %rsi # 0x8bc34
jmp 0x62fe8
leaq 0x28c51(%rip), %rsi # 0x8bc39
movq %rbx, %rdi
callq 0x25406
movq %rax, %r12
movq %rdx, %r13
leaq 0x28c46(%rip), %rsi # 0x8bc43
leaq 0x22af5(%rip), %r8 # 0x85af9
movq %rbx, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x3d7e0
movq %rax, %r15
movq %rdx, %r14
movq %r15, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x24742
movq %rax, %r15
movq %rdx, %r14
cmpl $0x6, %r14d
je 0x63018
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x258b1
testl %eax, %eax
js 0x630dd
movl $0x94, %ebp
jne 0x630a1
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20a2d
movl $0x9e, %ebp
testl %eax, %eax
jne 0x630a1
movzwl 0x6(%r15), %eax
movl $0x93, %ebp
cmpl $0x12, %eax
ja 0x630a1
movl $0x40778, %ecx # imm = 0x40778
btl %eax, %ecx
jae 0x630a1
movq 0x18(%rbx), %rcx
movq 0x80(%rcx), %rcx
imulq $0x28, %rax, %rax
movl 0x4(%rcx,%rax), %ebp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0xda, %ecx
callq 0x1ebf3
movq %rax, %r12
movq %rdx, %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1bbce
cmpl $-0x7, %r13d
je 0x62ff6
cmpl $0x6, %r13d
jne 0x630f7
movl %r13d, %r14d
jmp 0x630ef
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1bbce
pushq $0x6
popq %r14
xorl %r15d, %r15d
jmp 0x63018
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1bbce
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1e540
jmp 0x62ff0
| js_object_toString:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
cmp edx, 3
jz short loc_62FE1
cmp edx, 2
jnz short loc_6302D
lea rsi, aNull_0; "Null"
jmp short loc_62FE8
loc_62FE1:
lea rsi, aUndefined; "Undefined"
loc_62FE8:
mov rdi, rbx
call js_new_string8
loc_62FF0:
mov r12, rax
mov r13, rdx
loc_62FF6:
lea rsi, aObject_0; "[object "
lea r8, asc_85AF4+5; "]"
mov rdi, rbx
mov rdx, r12
mov rcx, r13
call JS_ConcatString3
mov r15, rax
mov r14, rdx
loc_63018:
mov rax, r15
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6302D:
mov rdi, rbx
call JS_ToObject
mov r15, rax
mov r14, rdx
cmp r14d, 6
jz short loc_63018
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_IsArray
test eax, eax
js loc_630DD
mov ebp, 94h
jnz short loc_630A1
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_IsFunction
mov ebp, 9Eh
test eax, eax
jnz short loc_630A1
movzx eax, word ptr [r15+6]
mov ebp, 93h
cmp eax, 12h
ja short loc_630A1
mov ecx, 40778h
bt ecx, eax
jnb short loc_630A1
mov rcx, [rbx+18h]
mov rcx, [rcx+80h]
imul rax, 28h ; '('
mov ebp, [rcx+rax+4]
loc_630A1:
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, 0DAh
call JS_GetProperty
mov r12, rax
mov r13, rdx
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_FreeValue
cmp r13d, 0FFFFFFF9h
jz loc_62FF6
cmp r13d, 6
jnz short loc_630F7
mov r14d, r13d
jmp short loc_630EF
loc_630DD:
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_FreeValue
push 6
pop r14
loc_630EF:
xor r15d, r15d
jmp loc_63018
loc_630F7:
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call JS_FreeValue
mov rdi, rbx
mov esi, ebp
call JS_AtomToString
jmp loc_62FF0
| long long js_object_toString(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
const char *v14; // rsi
long long v15; // rax
long long v16; // rdx
long long Property; // r12
long long v18; // r13
long long v19; // r15
long long v21; // rax
long long v22; // rdx
long long v23; // r14
int IsArray; // eax
int v25; // ebp
long long v26; // rax
int v27; // ecx
long long v28; // rdx
if ( (_DWORD)a3 == 3 )
{
v14 = "Undefined";
}
else
{
if ( (_DWORD)a3 != 2 )
{
v21 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v19 = v21;
v23 = v22;
if ( (_DWORD)v22 == 6 )
return v19;
IsArray = JS_IsArray(a1, v21, v22);
if ( IsArray < 0 )
{
JS_FreeValue(a1, v19, v23);
}
else
{
v25 = 148;
if ( !IsArray )
{
v25 = 158;
if ( !(unsigned int)JS_IsFunction(a1, v19, v23) )
{
v26 = *(unsigned __int16 *)(v19 + 6);
v25 = 147;
if ( (unsigned int)v26 <= 0x12 )
{
v27 = 264056;
if ( _bittest(&v27, v26) )
v25 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 128LL) + 40 * v26 + 4);
}
}
}
Property = JS_GetProperty(a1, v19, v23, 218);
v18 = v28;
JS_FreeValue(a1, v19, v23);
if ( (_DWORD)v18 == -7 )
return JS_ConcatString3(a1, (long long)"[object ", Property, v18, (long long)"]");
if ( (_DWORD)v18 != 6 )
{
JS_FreeValue(a1, Property, v18);
v15 = JS_AtomToString(a1, v25);
goto LABEL_6;
}
}
return 0LL;
}
v14 = "Null";
}
v15 = js_new_string8(a1, (long long)v14);
LABEL_6:
Property = v15;
v18 = v16;
return JS_ConcatString3(a1, (long long)"[object ", Property, v18, (long long)"]");
}
| js_object_toString:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP EDX,0x3
JZ 0x00162fe1
CMP EDX,0x2
JNZ 0x0016302d
LEA RSI,[0x18bc34]
JMP 0x00162fe8
LAB_00162fe1:
LEA RSI,[0x18bc39]
LAB_00162fe8:
MOV RDI,RBX
CALL 0x00125406
LAB_00162ff0:
MOV R12,RAX
MOV R13,RDX
LAB_00162ff6:
LEA RSI,[0x18bc43]
LEA R8,[0x185af9]
MOV RDI,RBX
MOV RDX,R12
MOV RCX,R13
CALL 0x0013d7e0
MOV R15,RAX
MOV R14,RDX
LAB_00163018:
MOV RAX,R15
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016302d:
MOV RDI,RBX
CALL 0x00124742
MOV R15,RAX
MOV R14,RDX
CMP R14D,0x6
JZ 0x00163018
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x001258b1
TEST EAX,EAX
JS 0x001630dd
MOV EBP,0x94
JNZ 0x001630a1
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x00120a2d
MOV EBP,0x9e
TEST EAX,EAX
JNZ 0x001630a1
MOVZX EAX,word ptr [R15 + 0x6]
MOV EBP,0x93
CMP EAX,0x12
JA 0x001630a1
MOV ECX,0x40778
BT ECX,EAX
JNC 0x001630a1
MOV RCX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RCX + 0x80]
IMUL RAX,RAX,0x28
MOV EBP,dword ptr [RCX + RAX*0x1 + 0x4]
LAB_001630a1:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,0xda
CALL 0x0011ebf3
MOV R12,RAX
MOV R13,RDX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0011bbce
CMP R13D,-0x7
JZ 0x00162ff6
CMP R13D,0x6
JNZ 0x001630f7
MOV R14D,R13D
JMP 0x001630ef
LAB_001630dd:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0011bbce
PUSH 0x6
POP R14
LAB_001630ef:
XOR R15D,R15D
JMP 0x00163018
LAB_001630f7:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x0011bbce
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0011e540
JMP 0x00162ff0
|
int1 [16] js_object_toString(long param_1,int8 param_2,int param_3)
{
ushort uVar1;
int iVar2;
long lVar3;
int8 uVar4;
int4 uVar5;
char *pcVar6;
ulong uVar7;
int1 auVar8 [16];
if (param_3 == 3) {
pcVar6 = "Undefined";
}
else {
if (param_3 != 2) {
auVar8 = JS_ToObject(param_1);
uVar4 = auVar8._8_8_;
lVar3 = auVar8._0_8_;
if (auVar8._8_4_ == 6) {
return auVar8;
}
iVar2 = JS_IsArray(param_1,lVar3,uVar4);
if (iVar2 < 0) {
JS_FreeValue(param_1,lVar3,uVar4);
uVar7 = 6;
LAB_001630ef:
auVar8._8_8_ = 0;
auVar8._0_8_ = uVar7;
return auVar8 << 0x40;
}
uVar5 = 0x94;
if (iVar2 == 0) {
iVar2 = JS_IsFunction(param_1,lVar3,uVar4);
uVar5 = 0x9e;
if (iVar2 == 0) {
uVar1 = *(ushort *)(lVar3 + 6);
uVar5 = 0x93;
if ((uVar1 < 0x13) && ((0x40778U >> (uVar1 & 0x1f) & 1) != 0)) {
uVar5 = *(int4 *)
(*(long *)(*(long *)(param_1 + 0x18) + 0x80) + 4 + (ulong)uVar1 * 0x28);
}
}
}
auVar8 = JS_GetProperty(param_1,lVar3,uVar4,0xda);
JS_FreeValue(param_1,lVar3,uVar4);
if (auVar8._8_4_ != -7) {
if (auVar8._8_4_ == 6) {
uVar7 = auVar8._8_8_ & 0xffffffff;
goto LAB_001630ef;
}
JS_FreeValue(param_1,auVar8._0_8_,auVar8._8_8_);
auVar8 = JS_AtomToString(param_1,uVar5);
}
goto LAB_00162ff6;
}
pcVar6 = "Null";
}
auVar8 = js_new_string8(param_1,pcVar6);
LAB_00162ff6:
auVar8 = JS_ConcatString3(param_1,"[object ",auVar8._0_8_,auVar8._8_8_,&DAT_00185af9);
return auVar8;
}
| |
23,237 | js_mark_module_def | bluesky950520[P]quickjs/quickjs.c | static void js_mark_module_def(JSRuntime *rt, JSModuleDef *m,
JS_MarkFunc *mark_func)
{
int i;
for(i = 0; i < m->export_entries_count; i++) {
JSExportEntry *me = &m->export_entries[i];
if (me->export_type == JS_EXPORT_TYPE_LOCAL &&
me->u.local.var_ref) {
mark_func(rt, &me->u.local.var_ref->header);
}
}
JS_MarkValue(rt, m->module_ns, mark_func);
JS_MarkValue(rt, m->func_obj, mark_func);
JS_MarkValue(rt, m->eval_exception, mark_func);
JS_MarkValue(rt, m->meta_obj, mark_func);
JS_MarkValue(rt, m->promise, mark_func);
JS_MarkValue(rt, m->resolving_funcs[0], mark_func);
JS_MarkValue(rt, m->resolving_funcs[1], mark_func);
} | O0 | c | js_mark_module_def:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x5e87a
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0xc(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, (%rsp)
movq (%rsp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x5e86b
movq (%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x5e86b
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
movq (%rsp), %rcx
movq 0x8(%rcx), %rsi
callq *%rax
jmp 0x5e86d
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x5e81b
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x58(%rax), %rsi
movq 0x60(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x68(%rax), %rsi
movq 0x70(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0xf8(%rax), %rsi
movq 0x100(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x108(%rax), %rsi
movq 0x110(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0xc0(%rax), %rsi
movq 0xc8(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0xd0(%rax), %rsi
movq 0xd8(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0xe0(%rax), %rsi
movq 0xe8(%rax), %rdx
callq 0x29920
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| js_mark_module_def:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
mov [rsp+28h+var_1C], 0
loc_5E81B:
mov eax, [rsp+28h+var_1C]
mov rcx, [rsp+28h+var_10]
cmp eax, [rcx+30h]
jge short loc_5E87A
mov rax, [rsp+28h+var_10]
mov rax, [rax+28h]
movsxd rcx, [rsp+28h+var_1C]
shl rcx, 5
add rax, rcx
mov [rsp+28h+var_28], rax
mov rax, [rsp+28h+var_28]
cmp dword ptr [rax+10h], 0
jnz short loc_5E86B
mov rax, [rsp+28h+var_28]
cmp qword ptr [rax+8], 0
jz short loc_5E86B
mov rax, [rsp+28h+var_18]
mov rdi, [rsp+28h+var_8]
mov rcx, [rsp+28h+var_28]
mov rsi, [rcx+8]
call rax
loc_5E86B:
jmp short $+2
loc_5E86D:
mov eax, [rsp+28h+var_1C]
add eax, 1
mov [rsp+28h+var_1C], eax
jmp short loc_5E81B
loc_5E87A:
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+58h]
mov rdx, [rax+60h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+68h]
mov rdx, [rax+70h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+0F8h]
mov rdx, [rax+100h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+108h]
mov rdx, [rax+110h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+0C0h]
mov rdx, [rax+0C8h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+0D0h]
mov rdx, [rax+0D8h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+0E0h]
mov rdx, [rax+0E8h]
call JS_MarkValue
add rsp, 28h
retn
| long long js_mark_module_def(long long a1, long long a2, long long ( *a3)(long long, long long))
{
long long v4; // [rsp+0h] [rbp-28h]
int i; // [rsp+Ch] [rbp-1Ch]
for ( i = 0; i < *(_DWORD *)(a2 + 48); ++i )
{
v4 = 32LL * i + *(_QWORD *)(a2 + 40);
if ( !*(_DWORD *)(v4 + 16) )
{
if ( *(_QWORD *)(v4 + 8) )
a3(a1, *(_QWORD *)(v4 + 8));
}
}
JS_MarkValue(a1, *(_QWORD *)(a2 + 88), *(_QWORD *)(a2 + 96), a3);
JS_MarkValue(a1, *(_QWORD *)(a2 + 104), *(_QWORD *)(a2 + 112), a3);
JS_MarkValue(a1, *(_QWORD *)(a2 + 248), *(_QWORD *)(a2 + 256), a3);
JS_MarkValue(a1, *(_QWORD *)(a2 + 264), *(_QWORD *)(a2 + 272), a3);
JS_MarkValue(a1, *(_QWORD *)(a2 + 192), *(_QWORD *)(a2 + 200), a3);
JS_MarkValue(a1, *(_QWORD *)(a2 + 208), *(_QWORD *)(a2 + 216), a3);
return JS_MarkValue(a1, *(_QWORD *)(a2 + 224), *(_QWORD *)(a2 + 232), a3);
}
| js_mark_module_def:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV dword ptr [RSP + 0xc],0x0
LAB_0015e81b:
MOV EAX,dword ptr [RSP + 0xc]
MOV RCX,qword ptr [RSP + 0x18]
CMP EAX,dword ptr [RCX + 0x30]
JGE 0x0015e87a
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + 0xc]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP]
CMP dword ptr [RAX + 0x10],0x0
JNZ 0x0015e86b
MOV RAX,qword ptr [RSP]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0015e86b
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP]
MOV RSI,qword ptr [RCX + 0x8]
CALL RAX
LAB_0015e86b:
JMP 0x0015e86d
LAB_0015e86d:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0015e81b
LAB_0015e87a:
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x58]
MOV RDX,qword ptr [RAX + 0x60]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x68]
MOV RDX,qword ptr [RAX + 0x70]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0xf8]
MOV RDX,qword ptr [RAX + 0x100]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x108]
MOV RDX,qword ptr [RAX + 0x110]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0xc0]
MOV RDX,qword ptr [RAX + 0xc8]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0xd0]
MOV RDX,qword ptr [RAX + 0xd8]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0xe0]
MOV RDX,qword ptr [RAX + 0xe8]
CALL 0x00129920
ADD RSP,0x28
RET
|
void js_mark_module_def(int8 param_1,long param_2,code *param_3)
{
long lVar1;
int4 local_1c;
for (local_1c = 0; local_1c < *(int *)(param_2 + 0x30); local_1c = local_1c + 1) {
lVar1 = *(long *)(param_2 + 0x28) + (long)local_1c * 0x20;
if ((*(int *)(lVar1 + 0x10) == 0) && (*(long *)(lVar1 + 8) != 0)) {
(*param_3)(param_1,*(int8 *)(lVar1 + 8));
}
}
JS_MarkValue(param_1,*(int8 *)(param_2 + 0x58),*(int8 *)(param_2 + 0x60),param_3);
JS_MarkValue(param_1,*(int8 *)(param_2 + 0x68),*(int8 *)(param_2 + 0x70),param_3);
JS_MarkValue(param_1,*(int8 *)(param_2 + 0xf8),*(int8 *)(param_2 + 0x100),param_3);
JS_MarkValue(param_1,*(int8 *)(param_2 + 0x108),*(int8 *)(param_2 + 0x110),param_3);
JS_MarkValue(param_1,*(int8 *)(param_2 + 0xc0),*(int8 *)(param_2 + 200),param_3);
JS_MarkValue(param_1,*(int8 *)(param_2 + 0xd0),*(int8 *)(param_2 + 0xd8),param_3);
JS_MarkValue(param_1,*(int8 *)(param_2 + 0xe0),*(int8 *)(param_2 + 0xe8),param_3);
return;
}
| |
23,238 | my_longlong10_to_str_8bit | eloqsql/strings/ctype-simple.c | size_t my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t len, int radix,
longlong val)
{
char buffer[65];
register char *p, *e;
long long_val;
uint sign= 0;
ulonglong uval = (ulonglong)val;
if (radix < 0)
{
if (val < 0)
{
/* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */
uval = (ulonglong)0 - uval;
*dst++= '-';
len--;
sign= 1;
}
}
e = p = &buffer[sizeof(buffer)-1];
*p= 0;
if (uval == 0)
{
*--p= '0';
len= 1;
goto cnv;
}
while (uval > (ulonglong) LONG_MAX)
{
ulonglong quo= uval/(uint) 10;
uint rem= (uint) (uval- quo* (uint) 10);
*--p = '0' + rem;
uval= quo;
}
long_val= (long) uval;
while (long_val != 0)
{
long quo= long_val/10;
*--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}
len= MY_MIN(len, (size_t) (e-p));
cnv:
memcpy(dst, p, len);
return len+sign;
} | O0 | c | my_longlong10_to_str_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x58(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movl %ecx, -0x6c(%rbp)
movq %r8, -0x78(%rbp)
movl $0x0, -0x94(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x6c(%rbp)
jge 0xae6b7
cmpq $0x0, -0x78(%rbp)
jge 0xae6b5
xorl %eax, %eax
subq -0xa0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
movb $0x2d, (%rax)
movq -0x68(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x68(%rbp)
movl $0x1, -0x94(%rbp)
jmp 0xae6b7
leaq -0x50(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movb $0x0, (%rax)
cmpq $0x0, -0xa0(%rbp)
jne 0xae6fb
movq -0x80(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x80(%rbp)
movb $0x30, -0x1(%rax)
movq $0x1, -0x68(%rbp)
jmp 0xae81b
jmp 0xae6fd
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0xa0(%rbp)
jbe 0xae76d
movq -0xa0(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rax
imulq $0xa, -0xa8(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
addl $0x30, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xa8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xae6fd
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0xae7d7
movq -0x90(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0xb8(%rbp)
movq -0x90(%rbp), %rax
imulq $0xa, -0xb8(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xb8(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xae77b
movq -0x68(%rbp), %rax
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0xae7fb
movq -0x68(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0xae810
movq -0x88(%rbp), %rax
movq -0x80(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x292d0
movq -0x68(%rbp), %rax
movl -0x94(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xae862
movq -0xc8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
callq 0x29420
nopw (%rax,%rax)
| my_longlong10_to_str_8bit:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_58], rdi
mov [rbp+var_60], rsi
mov [rbp+var_68], rdx
mov [rbp+var_6C], ecx
mov [rbp+var_78], r8
mov [rbp+var_94], 0
mov rax, [rbp+var_78]
mov [rbp+var_A0], rax
cmp [rbp+var_6C], 0
jge short loc_AE6B7
cmp [rbp+var_78], 0
jge short loc_AE6B5
xor eax, eax
sub rax, [rbp+var_A0]
mov [rbp+var_A0], rax
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 1
mov [rbp+var_60], rcx
mov byte ptr [rax], 2Dh ; '-'
mov rax, [rbp+var_68]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_68], rax
mov [rbp+var_94], 1
loc_AE6B5:
jmp short $+2
loc_AE6B7:
lea rax, [rbp+var_50]
add rax, 40h ; '@'
mov [rbp+var_80], rax
mov [rbp+var_88], rax
mov rax, [rbp+var_80]
mov byte ptr [rax], 0
cmp [rbp+var_A0], 0
jnz short loc_AE6FB
mov rax, [rbp+var_80]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rcx
mov byte ptr [rax-1], 30h ; '0'
mov [rbp+var_68], 1
jmp loc_AE81B
loc_AE6FB:
jmp short $+2
loc_AE6FD:
mov rax, 7FFFFFFFFFFFFFFFh
cmp [rbp+var_A0], rax
jbe short loc_AE76D
mov rax, [rbp+var_A0]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rbp+var_A8], rax
mov rax, [rbp+var_A0]
imul rcx, [rbp+var_A8], 0Ah
sub rax, rcx
mov [rbp+var_AC], eax
mov eax, [rbp+var_AC]
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_A8]
mov [rbp+var_A0], rax
jmp short loc_AE6FD
loc_AE76D:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_AE77B:
cmp [rbp+var_90], 0
jz short loc_AE7D7
mov rax, [rbp+var_90]
mov ecx, 0Ah
cqo
idiv rcx
mov [rbp+var_B8], rax
mov rax, [rbp+var_90]
imul rcx, [rbp+var_B8], 0Ah
sub rax, rcx
add rax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_B8]
mov [rbp+var_90], rax
jmp short loc_AE77B
loc_AE7D7:
mov rax, [rbp+var_68]
mov rcx, [rbp+var_88]
mov rdx, [rbp+var_80]
sub rcx, rdx
cmp rax, rcx
jnb short loc_AE7FB
mov rax, [rbp+var_68]
mov [rbp+var_C0], rax
jmp short loc_AE810
loc_AE7FB:
mov rax, [rbp+var_88]
mov rcx, [rbp+var_80]
sub rax, rcx
mov [rbp+var_C0], rax
loc_AE810:
mov rax, [rbp+var_C0]
mov [rbp+var_68], rax
loc_AE81B:
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_68]
call _memcpy
mov rax, [rbp+var_68]
mov ecx, [rbp+var_94]
add rax, rcx
mov [rbp+var_C8], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_AE862
mov rax, [rbp+var_C8]
add rsp, 0D0h
pop rbp
retn
loc_AE862:
call ___stack_chk_fail
| long long my_longlong10_to_str_8bit(long long a1, _BYTE *a2, _BYTE *a3, int a4, long long a5)
{
char *v5; // rax
char *v6; // rax
_BYTE *v8; // [rsp+10h] [rbp-C0h]
unsigned long long v9; // [rsp+30h] [rbp-A0h]
unsigned int v10; // [rsp+3Ch] [rbp-94h]
signed long long i; // [rsp+40h] [rbp-90h]
char *v12; // [rsp+50h] [rbp-80h]
_BYTE *v13; // [rsp+68h] [rbp-68h]
long long v14; // [rsp+68h] [rbp-68h]
_BYTE *v15; // [rsp+70h] [rbp-60h]
char v16; // [rsp+BFh] [rbp-11h] BYREF
_BYTE v17[8]; // [rsp+C0h] [rbp-10h] BYREF
unsigned long long v18; // [rsp+C8h] [rbp-8h]
v18 = __readfsqword(0x28u);
v15 = a2;
v13 = a3;
v10 = 0;
v9 = a5;
if ( a4 < 0 && a5 < 0 )
{
v9 = -a5;
v15 = a2 + 1;
*a2 = 45;
v13 = a3 - 1;
v10 = 1;
}
v12 = v17;
v17[0] = 0;
if ( v9 )
{
while ( v9 > 0x7FFFFFFFFFFFFFFFLL )
{
v5 = v12--;
*(v5 - 1) = v9 % 0xA + 48;
v9 /= 0xAuLL;
}
for ( i = v9; i; i /= 10LL )
{
v6 = v12--;
*(v6 - 1) = i % 10 + 48;
}
if ( (unsigned long long)v13 >= v17 - v12 )
v8 = (_BYTE *)(v17 - v12);
else
v8 = v13;
v14 = (long long)v8;
}
else
{
v12 = &v16;
v16 = 48;
v14 = 1LL;
}
memcpy(v15, v12, v14);
return v10 + v14;
}
| my_longlong10_to_str_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x60],RSI
MOV qword ptr [RBP + -0x68],RDX
MOV dword ptr [RBP + -0x6c],ECX
MOV qword ptr [RBP + -0x78],R8
MOV dword ptr [RBP + -0x94],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa0],RAX
CMP dword ptr [RBP + -0x6c],0x0
JGE 0x001ae6b7
CMP qword ptr [RBP + -0x78],0x0
JGE 0x001ae6b5
XOR EAX,EAX
SUB RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RAX],0x2d
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x94],0x1
LAB_001ae6b5:
JMP 0x001ae6b7
LAB_001ae6b7:
LEA RAX,[RBP + -0x50]
ADD RAX,0x40
MOV qword ptr [RBP + -0x80],RAX
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV byte ptr [RAX],0x0
CMP qword ptr [RBP + -0xa0],0x0
JNZ 0x001ae6fb
MOV RAX,qword ptr [RBP + -0x80]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x80],RCX
MOV byte ptr [RAX + -0x1],0x30
MOV qword ptr [RBP + -0x68],0x1
JMP 0x001ae81b
LAB_001ae6fb:
JMP 0x001ae6fd
LAB_001ae6fd:
MOV RAX,0x7fffffffffffffff
CMP qword ptr [RBP + -0xa0],RAX
JBE 0x001ae76d
MOV RAX,qword ptr [RBP + -0xa0]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa0]
IMUL RCX,qword ptr [RBP + -0xa8],0xa
SUB RAX,RCX
MOV dword ptr [RBP + -0xac],EAX
MOV EAX,dword ptr [RBP + -0xac]
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001ae6fd
LAB_001ae76d:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001ae77b:
CMP qword ptr [RBP + -0x90],0x0
JZ 0x001ae7d7
MOV RAX,qword ptr [RBP + -0x90]
MOV ECX,0xa
CQO
IDIV RCX
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x90]
IMUL RCX,qword ptr [RBP + -0xb8],0xa
SUB RAX,RCX
ADD RAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xb8]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001ae77b
LAB_001ae7d7:
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x88]
MOV RDX,qword ptr [RBP + -0x80]
SUB RCX,RDX
CMP RAX,RCX
JNC 0x001ae7fb
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x001ae810
LAB_001ae7fb:
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RBP + -0x80]
SUB RAX,RCX
MOV qword ptr [RBP + -0xc0],RAX
LAB_001ae810:
MOV RAX,qword ptr [RBP + -0xc0]
MOV qword ptr [RBP + -0x68],RAX
LAB_001ae81b:
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x68]
CALL 0x001292d0
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x94]
ADD RAX,RCX
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001ae862
MOV RAX,qword ptr [RBP + -0xc8]
ADD RSP,0xd0
POP RBP
RET
LAB_001ae862:
CALL 0x00129420
|
long my_longlong10_to_str_8bit
(int8 param_1,int1 *param_2,ulong param_3,int param_4,ulong param_5)
{
char *pcVar1;
long in_FS_OFFSET;
ulong local_c8;
ulong local_a8;
uint local_9c;
ulong local_98;
char *local_88;
size_t local_70;
int1 *local_68;
char local_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_9c = 0;
local_a8 = param_5;
local_70 = param_3;
local_68 = param_2;
if (param_4 < 0) {
if ((long)param_5 < 0) {
local_a8 = -param_5;
local_68 = param_2 + 1;
*param_2 = 0x2d;
local_70 = param_3 - 1;
}
local_9c = (uint)((long)param_5 < 0);
}
pcVar1 = local_19 + 1;
local_19[1] = 0;
local_88 = pcVar1;
if (local_a8 == 0) {
local_88 = local_19;
local_19[0] = '0';
local_70 = 1;
}
else {
while (0x7fffffffffffffff < local_a8) {
local_88[-1] = (char)local_a8 + (char)(local_a8 / 10) * -10 + '0';
local_a8 = local_a8 / 10;
local_88 = local_88 + -1;
}
local_98 = local_a8;
while (local_98 != 0) {
local_88[-1] = (char)local_98 + (char)((long)local_98 / 10) * -10 + '0';
local_98 = (long)local_98 / 10;
local_88 = local_88 + -1;
}
if (local_70 < (ulong)((long)pcVar1 - (long)local_88)) {
local_c8 = local_70;
}
else {
local_c8 = (long)pcVar1 - (long)local_88;
}
local_70 = local_c8;
}
memcpy(local_68,local_88,local_70);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_70 + local_9c;
}
| |
23,239 | IsFileNameValid | csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/rcore.c | bool IsFileNameValid(const char *fileName)
{
bool valid = true;
if ((fileName != NULL) && (fileName[0] != '\0'))
{
int length = (int)strlen(fileName);
bool allPeriods = true;
for (int i = 0; i < length; i++)
{
// Check invalid characters
if ((fileName[i] == '<') ||
(fileName[i] == '>') ||
(fileName[i] == ':') ||
(fileName[i] == '\"') ||
(fileName[i] == '/') ||
(fileName[i] == '\\') ||
(fileName[i] == '|') ||
(fileName[i] == '?') ||
(fileName[i] == '*')) { valid = false; break; }
// Check non-glyph characters
if ((unsigned char)fileName[i] < 32) { valid = false; break; }
// TODO: Check trailing periods/spaces?
// Check if filename is not all periods
if (fileName[i] != '.') allPeriods = false;
}
if (allPeriods) valid = false;
/*
if (valid)
{
// Check invalid DOS names
if (length >= 3)
{
if (((fileName[0] == 'C') && (fileName[1] == 'O') && (fileName[2] == 'N')) || // CON
((fileName[0] == 'P') && (fileName[1] == 'R') && (fileName[2] == 'N')) || // PRN
((fileName[0] == 'A') && (fileName[1] == 'U') && (fileName[2] == 'X')) || // AUX
((fileName[0] == 'N') && (fileName[1] == 'U') && (fileName[2] == 'L'))) valid = false; // NUL
}
if (length >= 4)
{
if (((fileName[0] == 'C') && (fileName[1] == 'O') && (fileName[2] == 'M') && ((fileName[3] >= '0') && (fileName[3] <= '9'))) || // COM0-9
((fileName[0] == 'L') && (fileName[1] == 'P') && (fileName[2] == 'T') && ((fileName[3] >= '0') && (fileName[3] <= '9')))) valid = false; // LPT0-9
}
}
*/
}
return valid;
} | O3 | c | IsFileNameValid:
movb $0x1, %al
testq %rdi, %rdi
je 0x766ce
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, (%rdi)
je 0x766cd
movq %rbx, %rdi
callq 0xa230
movq %rax, %rcx
testl %ecx, %ecx
jle 0x766cb
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
movq %rcx, %rsi
negq %rsi
movb $0x1, %al
movl $0x1, %edi
xorl %edx, %edx
movabsq $0x400000035002101, %r8 # imm = 0x400000035002101
movb -0x1(%rbx,%rdi), %r9b
movzbl %r9b, %r10d
leal -0x22(%r10), %r11d
cmpl $0x3a, %r11d
ja 0x7669a
btq %r11, %r8
jb 0x766c5
cmpl $0x7c, %r10d
je 0x766c5
cmpb $0x20, %r9b
jb 0x766c5
cmpb $0x2e, %r9b
sete %dl
andb %dl, %al
cmpq %rcx, %rdi
setae %dl
leaq (%rsi,%rdi), %r9
incq %r9
incq %rdi
cmpq $0x1, %r9
jne 0x76681
xorb $0x1, %al
andb %dl, %al
jmp 0x766cd
xorl %eax, %eax
popq %rbx
andb $0x1, %al
retq
| IsFileNameValid:
mov al, 1
test rdi, rdi
jz loc_766CE
push rbx
mov rbx, rdi
cmp byte ptr [rdi], 0
jz short loc_766CD
mov rdi, rbx
call _strlen
mov rcx, rax
test ecx, ecx
jle short loc_766CB
and ecx, 7FFFFFFFh
mov rsi, rcx
neg rsi
mov al, 1
mov edi, 1
xor edx, edx
mov r8, 400000035002101h
loc_76681:
mov r9b, [rbx+rdi-1]
movzx r10d, r9b
lea r11d, [r10-22h]
cmp r11d, 3Ah ; ':'
ja short loc_7669A
bt r8, r11
jb short loc_766C5
loc_7669A:
cmp r10d, 7Ch ; '|'
jz short loc_766C5
cmp r9b, 20h ; ' '
jb short loc_766C5
cmp r9b, 2Eh ; '.'
setz dl
and al, dl
cmp rdi, rcx
setnb dl
lea r9, [rsi+rdi]
inc r9
inc rdi
cmp r9, 1
jnz short loc_76681
loc_766C5:
xor al, 1
and al, dl
jmp short loc_766CD
loc_766CB:
xor eax, eax
loc_766CD:
pop rbx
loc_766CE:
and al, 1
retn
| char IsFileNameValid(_BYTE *a1)
{
char v1; // al
int v3; // eax
unsigned long long v4; // rcx
char v5; // al
unsigned long long v6; // rdi
bool v7; // dl
long long v8; // r8
unsigned __int8 v9; // r9
unsigned long long v10; // r11
long long v11; // r9
v1 = 1;
if ( a1 && *a1 )
{
v3 = strlen(a1);
if ( v3 <= 0 )
{
v1 = 0;
}
else
{
v4 = v3 & 0x7FFFFFFF;
v5 = 1;
v6 = 1LL;
v7 = 0;
v8 = 0x400000035002101LL;
do
{
v9 = a1[v6 - 1];
v10 = (unsigned int)v9 - 34;
if ( (unsigned int)v10 <= 0x3A && _bittest64(&v8, v10) )
break;
if ( v9 == 124 )
break;
if ( v9 < 0x20u )
break;
v5 &= v9 == 46;
v7 = v6 >= v4;
v11 = v6 - v4 + 1;
++v6;
}
while ( v11 != 1 );
v1 = v7 & (v5 ^ 1);
}
}
return v1 & 1;
}
| IsFileNameValid:
MOV AL,0x1
TEST RDI,RDI
JZ 0x001766ce
PUSH RBX
MOV RBX,RDI
CMP byte ptr [RDI],0x0
JZ 0x001766cd
MOV RDI,RBX
CALL 0x0010a230
MOV RCX,RAX
TEST ECX,ECX
JLE 0x001766cb
AND ECX,0x7fffffff
MOV RSI,RCX
NEG RSI
MOV AL,0x1
MOV EDI,0x1
XOR EDX,EDX
MOV R8,0x400000035002101
LAB_00176681:
MOV R9B,byte ptr [RBX + RDI*0x1 + -0x1]
MOVZX R10D,R9B
LEA R11D,[R10 + -0x22]
CMP R11D,0x3a
JA 0x0017669a
BT R8,R11
JC 0x001766c5
LAB_0017669a:
CMP R10D,0x7c
JZ 0x001766c5
CMP R9B,0x20
JC 0x001766c5
CMP R9B,0x2e
SETZ DL
AND AL,DL
CMP RDI,RCX
SETNC DL
LEA R9,[RSI + RDI*0x1]
INC R9
INC RDI
CMP R9,0x1
JNZ 0x00176681
LAB_001766c5:
XOR AL,0x1
AND AL,DL
JMP 0x001766cd
LAB_001766cb:
XOR EAX,EAX
LAB_001766cd:
POP RBX
LAB_001766ce:
AND AL,0x1
RET
|
byte IsFileNameValid(char *param_1)
{
byte bVar1;
byte bVar2;
size_t sVar3;
ulong uVar4;
ulong uVar5;
bool bVar6;
bool bVar7;
bVar2 = 1;
if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {
sVar3 = strlen(param_1);
if ((int)(uint)sVar3 < 1) {
bVar2 = 0;
}
else {
uVar4 = (ulong)((uint)sVar3 & 0x7fffffff);
bVar2 = 1;
bVar6 = false;
uVar5 = 1;
do {
bVar1 = param_1[uVar5 - 1];
if ((((bVar1 - 0x22 < 0x3b) &&
((0x400000035002101U >> ((ulong)(bVar1 - 0x22) & 0x3f) & 1) != 0)) || (bVar1 == 0x7c))
|| (bVar1 < 0x20)) break;
bVar2 = bVar2 & bVar1 == 0x2e;
bVar6 = uVar4 <= uVar5;
bVar7 = uVar5 != uVar4;
uVar5 = uVar5 + 1;
} while (bVar7);
bVar2 = (bVar2 ^ 1) & bVar6;
}
}
return bVar2;
}
| |
23,240 | my_free | eloqsql/mysys/my_malloc.c | void my_free(void *ptr)
{
my_memory_header *mh;
size_t old_size;
my_bool old_flags;
DBUG_ENTER("my_free");
DBUG_PRINT("my",("ptr: %p", ptr));
if (ptr == NULL)
DBUG_VOID_RETURN;
mh= USER_TO_HEADER(ptr);
old_size= mh->m_size & ~1;
old_flags= mh->m_size & 1;
PSI_CALL_memory_free(mh->m_key, old_size, mh->m_owner);
update_malloc_size(- (longlong) old_size - HEADER_SIZE, old_flags);
#ifndef SAFEMALLOC
/*
Trash memory if not safemalloc. We don't have to do this if safemalloc
is used as safemalloc will also do trashing
*/
TRASH_FREE(ptr, old_size);
#endif
sf_free(mh);
DBUG_VOID_RETURN;
} | O3 | c | my_free:
testq %rdi, %rdi
je 0x60fb3
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq -0x18(%rdi), %rbx
movq -0x18(%rdi), %rdx
movq -0x10(%rdi), %r14
movq %r14, %r15
andq $-0x2, %r15
leaq 0x2d9e3d(%rip), %rax # 0x33adb8
movq (%rax), %rax
movl -0x8(%rdi), %edi
movq %r15, %rsi
callq *0x3f8(%rax)
movq $-0x18, %rdi
subq %r15, %rdi
andl $0x1, %r14d
movl %r14d, %esi
callq *0x2d98df(%rip) # 0x33a880
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x36180
retq
| my_free:
test rdi, rdi
jz short locret_60FB3
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
lea rbx, [rdi-18h]
mov rdx, [rdi-18h]
mov r14, [rdi-10h]
mov r15, r14
and r15, 0FFFFFFFFFFFFFFFEh
lea rax, PSI_server
mov rax, [rax]
mov edi, [rdi-8]
mov rsi, r15
call qword ptr [rax+3F8h]
mov rdi, 0FFFFFFFFFFFFFFE8h
sub rdi, r15
and r14d, 1
mov esi, r14d
call cs:update_malloc_size
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _free
locret_60FB3:
retn
| long long my_free(long long a1)
{
long long result; // rax
if ( a1 )
{
(*((void ( **)(_QWORD, unsigned long long, _QWORD))PSI_server + 127))(
*(unsigned int *)(a1 - 8),
*(_QWORD *)(a1 - 16) & 0xFFFFFFFFFFFFFFFELL,
*(_QWORD *)(a1 - 24));
update_malloc_size();
return free(a1 - 24);
}
return result;
}
| my_free:
TEST RDI,RDI
JZ 0x00160fb3
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
LEA RBX,[RDI + -0x18]
MOV RDX,qword ptr [RDI + -0x18]
MOV R14,qword ptr [RDI + -0x10]
MOV R15,R14
AND R15,-0x2
LEA RAX,[0x43adb8]
MOV RAX,qword ptr [RAX]
MOV EDI,dword ptr [RDI + -0x8]
MOV RSI,R15
CALL qword ptr [RAX + 0x3f8]
MOV RDI,-0x18
SUB RDI,R15
AND R14D,0x1
MOV ESI,R14D
CALL qword ptr [0x0043a880]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00136180
LAB_00160fb3:
RET
|
void my_free(long param_1)
{
ulong uVar1;
ulong uVar2;
if (param_1 != 0) {
uVar1 = *(ulong *)(param_1 + -0x10);
uVar2 = uVar1 & 0xfffffffffffffffe;
(**(code **)(PSI_server + 0x3f8))
(*(int4 *)(param_1 + -8),uVar2,*(int8 *)(param_1 + -0x18));
(*(code *)update_malloc_size)(-0x18 - uVar2,(uint)uVar1 & 1);
free((void *)(param_1 + -0x18));
return;
}
return;
}
| |
23,241 | ggml_compute_forward_add_rel_pos | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_add_rel_pos(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F32:
{
ggml_compute_forward_add_rel_pos_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_compute_forward_add_rel_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
testl %eax, %eax
jne 0x193aa
jmp 0x1939b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3b160
jmp 0x193c4
leaq 0x5a7b1(%rip), %rdi # 0x73b62
movl $0x2e14, %esi # imm = 0x2E14
leaq 0x5aa00(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ggml_compute_forward_add_rel_pos:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
test eax, eax
jnz short loc_193AA
jmp short $+2
loc_1939B:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_add_rel_pos_f32
jmp short loc_193C4
loc_193AA:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2E14h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_193C4:
add rsp, 20h
pop rbp
retn
| double ggml_compute_forward_add_rel_pos(long long a1, long long a2)
{
double result; // xmm0_8
if ( **(_DWORD **)(a2 + 152) )
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
11796LL,
"fatal error");
ggml_compute_forward_add_rel_pos_f32(a1, a2);
return result;
}
| ggml_compute_forward_add_rel_pos:
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 + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
TEST EAX,EAX
JNZ 0x001193aa
JMP 0x0011939b
LAB_0011939b:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0013b160
JMP 0x001193c4
LAB_001193aa:
LEA RDI,[0x173b62]
MOV ESI,0x2e14
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_001193c4:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_add_rel_pos(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_add_rel_pos_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2e14,"fatal error");
}
return;
}
| |
23,242 | pngsearch | pnggroup[P]pngcheck/pngcheck.c | void pngsearch(FILE *fp, const char *fname, int extracting)
{
/* Go through the file looking for a PNG magic number; if one is
found, check the data to see if it is a PNG and validate the
contents. Useful when something puts a PNG in something else. */
int ch;
int ipng = 0;
if (verbose)
printf("Scanning: %s\n", fname);
else if (extracting)
printf("Extracting PNGs from %s\n", fname);
/* This works because the leading 137 code is not repeated in the
magic, so ANSI C says we will break out of the comparison as
soon as the partial match fails, and we can start a new test.
*/
do {
ch = getc(fp);
while (ch == good_PNG_magic[0]) {
if ((ch = getc(fp)) == good_PNG_magic[1] &&
(ch = getc(fp)) == good_PNG_magic[2] &&
(ch = getc(fp)) == good_PNG_magic[3] &&
(ch = getc(fp)) == good_PNG_magic[4] &&
(ch = getc(fp)) == good_PNG_magic[5] &&
(ch = getc(fp)) == good_PNG_magic[6] &&
(ch = getc(fp)) == good_PNG_magic[7])
{
/* just after a PNG header */
/* int error = */ pnginfile(fp, fname, ++ipng, extracting);
}
}
} while (ch != EOF);
} | O1 | c | pngsearch:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x188a2(%rip) # 0x1b210
je 0x2979
leaq 0x14637(%rip), %rdi # 0x16fae
jmp 0x2984
testl %ebx, %ebx
je 0x298e
leaq 0x14638(%rip), %rdi # 0x16fbc
movq %r14, %rsi
xorl %eax, %eax
callq 0x20e0
xorl %ebp, %ebp
movq %r15, %rdi
callq 0x21f0
cmpl $0x89, %eax
jne 0x2a12
movq %r15, %rdi
callq 0x21f0
cmpl $0x50, %eax
jne 0x2998
movq %r15, %rdi
callq 0x21f0
cmpl $0x4e, %eax
jne 0x2998
movq %r15, %rdi
callq 0x21f0
cmpl $0x47, %eax
jne 0x2998
movq %r15, %rdi
callq 0x21f0
cmpl $0xd, %eax
jne 0x2998
movq %r15, %rdi
callq 0x21f0
cmpl $0xa, %eax
jne 0x2998
movq %r15, %rdi
callq 0x21f0
cmpl $0x1a, %eax
jne 0x2998
movq %r15, %rdi
callq 0x21f0
cmpl $0xa, %eax
jne 0x2998
incl %ebp
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x11abf
movl $0xa, %eax
jmp 0x2998
cmpl $-0x1, %eax
jne 0x2990
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| pngsearch:
push rbp
push r15
push r14
push rbx
push rax
mov ebx, edx
mov r14, rsi
mov r15, rdi
cmp cs:verbose, 0
jz short loc_2979
lea rdi, aScanningS; "Scanning: %s\n"
jmp short loc_2984
loc_2979:
test ebx, ebx
jz short loc_298E
lea rdi, aExtractingPngs; "Extracting PNGs from %s\n"
loc_2984:
mov rsi, r14
xor eax, eax
call _printf
loc_298E:
xor ebp, ebp
loc_2990:
mov rdi, r15
call _getc
loc_2998:
cmp eax, 89h
jnz short loc_2A12
mov rdi, r15
call _getc
cmp eax, 50h ; 'P'
jnz short loc_2998
mov rdi, r15
call _getc
cmp eax, 4Eh ; 'N'
jnz short loc_2998
mov rdi, r15
call _getc
cmp eax, 47h ; 'G'
jnz short loc_2998
mov rdi, r15
call _getc
cmp eax, 0Dh
jnz short loc_2998
mov rdi, r15
call _getc
cmp eax, 0Ah
jnz short loc_2998
mov rdi, r15
call _getc
cmp eax, 1Ah
jnz short loc_2998
mov rdi, r15
call _getc
cmp eax, 0Ah
jnz short loc_2998
inc ebp
mov rdi, r15
mov rsi, r14
mov edx, ebp
mov ecx, ebx
call pnginfile
mov eax, 0Ah
jmp short loc_2998
loc_2A12:
cmp eax, 0FFFFFFFFh
jnz loc_2990
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long pngsearch(long long a1, long long a2, unsigned int a3)
{
int v4; // ebp
long long result; // rax
if ( verbose )
{
printf("Scanning: %s\n", a2);
}
else if ( a3 )
{
printf("Extracting PNGs from %s\n", a2);
}
v4 = 0;
do
{
result = getc(a1);
while ( (_DWORD)result == 137 )
{
result = getc(a1);
if ( (_DWORD)result == 80 )
{
result = getc(a1);
if ( (_DWORD)result == 78 )
{
result = getc(a1);
if ( (_DWORD)result == 71 )
{
result = getc(a1);
if ( (_DWORD)result == 13 )
{
result = getc(a1);
if ( (_DWORD)result == 10 )
{
result = getc(a1);
if ( (_DWORD)result == 26 )
{
result = getc(a1);
if ( (_DWORD)result == 10 )
{
pnginfile(a1, a2, (unsigned int)++v4, a3);
result = 10LL;
}
}
}
}
}
}
}
}
}
while ( (_DWORD)result != -1 );
return result;
}
| pngsearch:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,EDX
MOV R14,RSI
MOV R15,RDI
CMP dword ptr [0x0011b210],0x0
JZ 0x00102979
LEA RDI,[0x116fae]
JMP 0x00102984
LAB_00102979:
TEST EBX,EBX
JZ 0x0010298e
LEA RDI,[0x116fbc]
LAB_00102984:
MOV RSI,R14
XOR EAX,EAX
CALL 0x001020e0
LAB_0010298e:
XOR EBP,EBP
LAB_00102990:
MOV RDI,R15
CALL 0x001021f0
LAB_00102998:
CMP EAX,0x89
JNZ 0x00102a12
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x50
JNZ 0x00102998
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x4e
JNZ 0x00102998
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x47
JNZ 0x00102998
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0xd
JNZ 0x00102998
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0xa
JNZ 0x00102998
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x1a
JNZ 0x00102998
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0xa
JNZ 0x00102998
INC EBP
MOV RDI,R15
MOV RSI,R14
MOV EDX,EBP
MOV ECX,EBX
CALL 0x00111abf
MOV EAX,0xa
JMP 0x00102998
LAB_00102a12:
CMP EAX,-0x1
JNZ 0x00102990
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void pngsearch(FILE *param_1,int8 param_2,int param_3)
{
int iVar1;
int iVar2;
char *__format;
if (verbose == 0) {
if (param_3 == 0) goto LAB_0010298e;
__format = "Extracting PNGs from %s\n";
}
else {
__format = "Scanning: %s\n";
}
printf(__format,param_2);
LAB_0010298e:
iVar2 = 0;
do {
iVar1 = getc(param_1);
while (iVar1 == 0x89) {
iVar1 = getc(param_1);
if (iVar1 == 0x50) {
iVar1 = getc(param_1);
if (iVar1 == 0x4e) {
iVar1 = getc(param_1);
if (iVar1 == 0x47) {
iVar1 = getc(param_1);
if (iVar1 == 0xd) {
iVar1 = getc(param_1);
if (iVar1 == 10) {
iVar1 = getc(param_1);
if (iVar1 == 0x1a) {
iVar1 = getc(param_1);
if (iVar1 == 10) {
iVar2 = iVar2 + 1;
pnginfile(param_1,param_2,iVar2,param_3);
iVar1 = 10;
}
}
}
}
}
}
}
}
} while (iVar1 != -1);
return;
}
| |
23,243 | pngsearch | pnggroup[P]pngcheck/pngcheck.c | void pngsearch(FILE *fp, const char *fname, int extracting)
{
/* Go through the file looking for a PNG magic number; if one is
found, check the data to see if it is a PNG and validate the
contents. Useful when something puts a PNG in something else. */
int ch;
int ipng = 0;
if (verbose)
printf("Scanning: %s\n", fname);
else if (extracting)
printf("Extracting PNGs from %s\n", fname);
/* This works because the leading 137 code is not repeated in the
magic, so ANSI C says we will break out of the comparison as
soon as the partial match fails, and we can start a new test.
*/
do {
ch = getc(fp);
while (ch == good_PNG_magic[0]) {
if ((ch = getc(fp)) == good_PNG_magic[1] &&
(ch = getc(fp)) == good_PNG_magic[2] &&
(ch = getc(fp)) == good_PNG_magic[3] &&
(ch = getc(fp)) == good_PNG_magic[4] &&
(ch = getc(fp)) == good_PNG_magic[5] &&
(ch = getc(fp)) == good_PNG_magic[6] &&
(ch = getc(fp)) == good_PNG_magic[7])
{
/* just after a PNG header */
/* int error = */ pnginfile(fp, fname, ++ipng, extracting);
}
}
} while (ch != EOF);
} | O3 | c | pngsearch:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x198ca(%rip) # 0x1c210
je 0x2951
leaq 0x15595(%rip), %rdi # 0x17ee4
jmp 0x295c
testl %ebx, %ebx
je 0x2966
leaq 0x15596(%rip), %rdi # 0x17ef2
movq %r14, %rsi
xorl %eax, %eax
callq 0x20e0
xorl %ebp, %ebp
movq %r15, %rdi
callq 0x21f0
cmpl $0x89, %eax
jne 0x29ea
movq %r15, %rdi
callq 0x21f0
cmpl $0x50, %eax
jne 0x2970
movq %r15, %rdi
callq 0x21f0
cmpl $0x4e, %eax
jne 0x2970
movq %r15, %rdi
callq 0x21f0
cmpl $0x47, %eax
jne 0x2970
movq %r15, %rdi
callq 0x21f0
cmpl $0xd, %eax
jne 0x2970
movq %r15, %rdi
callq 0x21f0
cmpl $0xa, %eax
jne 0x2970
movq %r15, %rdi
callq 0x21f0
cmpl $0x1a, %eax
jne 0x2970
movq %r15, %rdi
callq 0x21f0
cmpl $0xa, %eax
jne 0x2970
incl %ebp
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x12540
movl $0xa, %eax
jmp 0x2970
cmpl $-0x1, %eax
jne 0x2968
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| pngsearch:
push rbp
push r15
push r14
push rbx
push rax
mov ebx, edx
mov r14, rsi
mov r15, rdi
cmp cs:verbose, 0
jz short loc_2951
lea rdi, aScanningS; "Scanning: %s\n"
jmp short loc_295C
loc_2951:
test ebx, ebx
jz short loc_2966
lea rdi, aExtractingPngs; "Extracting PNGs from %s\n"
loc_295C:
mov rsi, r14
xor eax, eax
call _printf
loc_2966:
xor ebp, ebp
loc_2968:
mov rdi, r15
call _getc
loc_2970:
cmp eax, 89h
jnz short loc_29EA
mov rdi, r15
call _getc
cmp eax, 50h ; 'P'
jnz short loc_2970
mov rdi, r15
call _getc
cmp eax, 4Eh ; 'N'
jnz short loc_2970
mov rdi, r15
call _getc
cmp eax, 47h ; 'G'
jnz short loc_2970
mov rdi, r15
call _getc
cmp eax, 0Dh
jnz short loc_2970
mov rdi, r15
call _getc
cmp eax, 0Ah
jnz short loc_2970
mov rdi, r15
call _getc
cmp eax, 1Ah
jnz short loc_2970
mov rdi, r15
call _getc
cmp eax, 0Ah
jnz short loc_2970
inc ebp
mov rdi, r15
mov rsi, r14
mov edx, ebp
mov ecx, ebx
call pnginfile
mov eax, 0Ah
jmp short loc_2970
loc_29EA:
cmp eax, 0FFFFFFFFh
jnz loc_2968
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long pngsearch(long long a1, long long a2, unsigned int a3)
{
int v4; // ebp
long long result; // rax
if ( verbose )
{
printf("Scanning: %s\n", a2);
}
else if ( a3 )
{
printf("Extracting PNGs from %s\n", a2);
}
v4 = 0;
do
{
result = getc(a1);
while ( (_DWORD)result == 137 )
{
result = getc(a1);
if ( (_DWORD)result == 80 )
{
result = getc(a1);
if ( (_DWORD)result == 78 )
{
result = getc(a1);
if ( (_DWORD)result == 71 )
{
result = getc(a1);
if ( (_DWORD)result == 13 )
{
result = getc(a1);
if ( (_DWORD)result == 10 )
{
result = getc(a1);
if ( (_DWORD)result == 26 )
{
result = getc(a1);
if ( (_DWORD)result == 10 )
{
pnginfile(a1, a2, (unsigned int)++v4, a3);
result = 10LL;
}
}
}
}
}
}
}
}
}
while ( (_DWORD)result != -1 );
return result;
}
| pngsearch:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,EDX
MOV R14,RSI
MOV R15,RDI
CMP dword ptr [0x0011c210],0x0
JZ 0x00102951
LEA RDI,[0x117ee4]
JMP 0x0010295c
LAB_00102951:
TEST EBX,EBX
JZ 0x00102966
LEA RDI,[0x117ef2]
LAB_0010295c:
MOV RSI,R14
XOR EAX,EAX
CALL 0x001020e0
LAB_00102966:
XOR EBP,EBP
LAB_00102968:
MOV RDI,R15
CALL 0x001021f0
LAB_00102970:
CMP EAX,0x89
JNZ 0x001029ea
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x50
JNZ 0x00102970
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x4e
JNZ 0x00102970
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x47
JNZ 0x00102970
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0xd
JNZ 0x00102970
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0xa
JNZ 0x00102970
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0x1a
JNZ 0x00102970
MOV RDI,R15
CALL 0x001021f0
CMP EAX,0xa
JNZ 0x00102970
INC EBP
MOV RDI,R15
MOV RSI,R14
MOV EDX,EBP
MOV ECX,EBX
CALL 0x00112540
MOV EAX,0xa
JMP 0x00102970
LAB_001029ea:
CMP EAX,-0x1
JNZ 0x00102968
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void pngsearch(FILE *param_1,int8 param_2,int param_3)
{
int iVar1;
int iVar2;
char *__format;
if (verbose == 0) {
if (param_3 == 0) goto LAB_00102966;
__format = "Extracting PNGs from %s\n";
}
else {
__format = "Scanning: %s\n";
}
printf(__format,param_2);
LAB_00102966:
iVar2 = 0;
do {
iVar1 = getc(param_1);
while (iVar1 == 0x89) {
iVar1 = getc(param_1);
if (iVar1 == 0x50) {
iVar1 = getc(param_1);
if (iVar1 == 0x4e) {
iVar1 = getc(param_1);
if (iVar1 == 0x47) {
iVar1 = getc(param_1);
if (iVar1 == 0xd) {
iVar1 = getc(param_1);
if (iVar1 == 10) {
iVar1 = getc(param_1);
if (iVar1 == 0x1a) {
iVar1 = getc(param_1);
if (iVar1 == 10) {
iVar2 = iVar2 + 1;
pnginfile(param_1,param_2,iVar2,param_3);
iVar1 = 10;
}
}
}
}
}
}
}
}
} while (iVar1 != -1);
return;
}
| |
23,244 | mysql_stmt_free_result_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_stmt_free_result_start(my_bool *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_free_result,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_free_result(stmt);
return 0;
})
} | O0 | c | mysql_stmt_free_result_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x64bb8
movq -0x18(%rbp), %rdi
callq 0x50b80
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x64cc6
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x28(%rbp), %rdi
addq $0x38, %rdi
leaq 0xe2(%rip), %rsi # 0x64cd0
leaq -0x30(%rbp), %rdx
callq 0x661d0
movl %eax, -0x1c(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x1c(%rbp)
jle 0x64c26
movq -0x28(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x64cc6
cmpl $0x0, -0x1c(%rbp)
jge 0x64cb2
jmp 0x64c32
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x1d2af6(%rip), %rax # 0x237750
movq (%rax), %rsi
movl $0x5, %edx
callq 0x37150
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x97, %rdi
leaq 0x1d2ad4(%rip), %rax # 0x237760
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x37150
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x296(%rax)
movq -0x10(%rbp), %rax
movb $0x1, (%rax)
jmp 0x64cbf
movq -0x28(%rbp), %rax
movb 0x8(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| mysql_stmt_free_result_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
cmp qword ptr [rax+38h], 0
jnz short loc_64BB8
mov rdi, [rbp+var_18]
call mysql_stmt_free_result
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov [rbp+var_4], 0
jmp loc_64CC6
loc_64BB8:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_28]
add rdi, 38h ; '8'
lea rsi, mysql_stmt_free_result_start_internal
lea rdx, [rbp+var_30]
call my_context_spawn
mov [rbp+var_1C], eax
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 0
cmp [rbp+var_1C], 0
jle short loc_64C26
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_64CC6
loc_64C26:
cmp [rbp+var_1C], 0
jge loc_64CB2
jmp short $+2
loc_64C32:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov dword ptr [rax+90h], 7D8h
mov rax, [rbp+var_18]
mov rdi, [rax+38h]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov byte ptr [rax+29Ch], 0
mov rax, [rbp+var_18]
mov rdi, [rax+38h]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov byte ptr [rax+296h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax], 1
jmp short loc_64CBF
loc_64CB2:
mov rax, [rbp+var_28]
mov cl, [rax+8]
mov rax, [rbp+var_10]
mov [rax], cl
loc_64CBF:
mov [rbp+var_4], 0
loc_64CC6:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_stmt_free_result_start(_BYTE *a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-30h] BYREF
_BYTE *v4; // [rsp+8h] [rbp-28h]
int v5; // [rsp+14h] [rbp-1Ch]
long long v6; // [rsp+18h] [rbp-18h]
_BYTE *v7; // [rsp+20h] [rbp-10h]
v7 = a1;
v6 = a2;
if ( *(_QWORD *)(a2 + 56) )
{
v4 = *(_BYTE **)(*(_QWORD *)(*(_QWORD *)(v6 + 56) + 1152LL) + 40LL);
v3 = v6;
v4[20] = 1;
v5 = my_context_spawn(v4 + 56, mysql_stmt_free_result_start_internal, &v3);
v4[21] = 0;
v4[20] = 0;
if ( v5 <= 0 )
{
if ( v5 >= 0 )
{
*v7 = v4[8];
}
else
{
*(_DWORD *)(*(_QWORD *)(v6 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(v6 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(v6 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(v6 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(v6 + 56) + 662LL) = 0;
*v7 = 1;
}
return 0;
}
else
{
v4[21] = 1;
return *(unsigned int *)v4;
}
}
else
{
*v7 = mysql_stmt_free_result(v6);
return 0;
}
}
| mysql_stmt_free_result_start:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x38],0x0
JNZ 0x00164bb8
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00150b80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00164cc6
LAB_00164bb8:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x38
LEA RSI,[0x164cd0]
LEA RDX,[RBP + -0x30]
CALL 0x001661d0
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x1c],0x0
JLE 0x00164c26
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00164cc6
LAB_00164c26:
CMP dword ptr [RBP + -0x1c],0x0
JGE 0x00164cb2
JMP 0x00164c32
LAB_00164c32:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x297
LEA RAX,[0x337750]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00137150
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV byte ptr [RAX + 0x29c],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x97
LEA RAX,[0x337760]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00137150
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV byte ptr [RAX + 0x296],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x1
JMP 0x00164cbf
LAB_00164cb2:
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,byte ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
LAB_00164cbf:
MOV dword ptr [RBP + -0x4],0x0
LAB_00164cc6:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_stmt_free_result_start(int1 *param_1,long param_2)
{
int1 uVar1;
long local_38;
int4 *local_30;
int local_24;
long local_20;
int1 *local_18;
int4 local_c;
local_20 = param_2;
local_18 = param_1;
if (*(long *)(param_2 + 0x38) == 0) {
uVar1 = mysql_stmt_free_result(param_2);
*local_18 = uVar1;
local_c = 0;
}
else {
local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(local_30 + 5) = 1;
local_38 = param_2;
local_24 = my_context_spawn(local_30 + 0xe,mysql_stmt_free_result_start_internal,&local_38);
*(int1 *)((long)local_30 + 0x15) = 0;
*(int1 *)(local_30 + 5) = 0;
if (local_24 < 1) {
if (local_24 < 0) {
*(int4 *)(*(long *)(local_20 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(local_20 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(local_20 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_003377a0,
0x1ff);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x296) = 0;
*local_18 = 1;
}
else {
*local_18 = *(int1 *)(local_30 + 2);
}
local_c = 0;
}
else {
*(int1 *)((long)local_30 + 0x15) = 1;
local_c = *local_30;
}
}
return local_c;
}
| |
23,245 | httplib::detail::MultipartFormDataParser::start_with_case_ignore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*) const | llama.cpp/examples/server/httplib.h | bool start_with_case_ignore(const std::string &a, const char *b) const {
const auto b_len = strlen(b);
if (a.size() < b_len) { return false; }
for (size_t i = 0; i < b_len; i++) {
if (case_ignore::to_lower(a[i]) != case_ignore::to_lower(b[i])) {
return false;
}
}
return true;
} | O3 | c | httplib::detail::MultipartFormDataParser::start_with_case_ignore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*) const:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdx, %rdi
callq 0x257c0
cmpq %rax, 0x8(%r14)
jae 0x74866
xorl %ecx, %ecx
jmp 0x7489f
testq %rax, %rax
je 0x7489d
movq (%r14), %rdx
decq %rax
xorl %esi, %esi
leaq 0x105126(%rip), %rdi # 0x1799a0
movzbl (%rdx,%rsi), %ecx
movb (%rcx,%rdi), %cl
movzbl (%rbx,%rsi), %r8d
cmpb (%r8,%rdi), %cl
sete %cl
jne 0x7489f
leaq 0x1(%rsi), %r8
cmpq %rsi, %rax
movq %r8, %rsi
jne 0x7487a
jmp 0x7489f
movb $0x1, %cl
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZNK7httplib6detail23MultipartFormDataParser22start_with_case_ignoreERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc:
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov rdi, rdx
call _strlen
cmp [r14+8], rax
jnb short loc_74866
xor ecx, ecx
jmp short loc_7489F
loc_74866:
test rax, rax
jz short loc_7489D
mov rdx, [r14]
dec rax
xor esi, esi
lea rdi, _ZZN7httplib6detail11case_ignore8to_lowerEiE5table; httplib::detail::case_ignore::to_lower(int)::table
loc_7487A:
movzx ecx, byte ptr [rdx+rsi]
mov cl, [rcx+rdi]
movzx r8d, byte ptr [rbx+rsi]
cmp cl, [r8+rdi]
setz cl
jnz short loc_7489F
lea r8, [rsi+1]
cmp rax, rsi
mov rsi, r8
jnz short loc_7487A
jmp short loc_7489F
loc_7489D:
mov cl, 1
loc_7489F:
mov eax, ecx
add rsp, 8
pop rbx
pop r14
retn
| long long httplib::detail::MultipartFormDataParser::start_with_case_ignore(long long a1, _QWORD *a2, long long a3)
{
unsigned long long v5; // rax
long long v6; // rcx
unsigned long long v7; // rax
long long v8; // rsi
v5 = strlen(a3);
if ( a2[1] >= v5 )
{
if ( v5 )
{
v7 = v5 - 1;
v8 = 0LL;
do
{
v6 = *(unsigned __int8 *)(*a2 + v8);
LOBYTE(v6) = httplib::detail::case_ignore::to_lower(int)::table[v6] == httplib::detail::case_ignore::to_lower(int)::table[*(unsigned __int8 *)(a3 + v8)];
if ( !(_BYTE)v6 )
break;
}
while ( v7 != v8++ );
}
else
{
LOBYTE(v6) = 1;
}
}
else
{
LODWORD(v6) = 0;
}
return (unsigned int)v6;
}
| start_with_case_ignore:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV RDI,RDX
CALL 0x001257c0
CMP qword ptr [R14 + 0x8],RAX
JNC 0x00174866
XOR ECX,ECX
JMP 0x0017489f
LAB_00174866:
TEST RAX,RAX
JZ 0x0017489d
MOV RDX,qword ptr [R14]
DEC RAX
XOR ESI,ESI
LEA RDI,[0x2799a0]
LAB_0017487a:
MOVZX ECX,byte ptr [RDX + RSI*0x1]
MOV CL,byte ptr [RCX + RDI*0x1]
MOVZX R8D,byte ptr [RBX + RSI*0x1]
CMP CL,byte ptr [R8 + RDI*0x1]
SETZ CL
JNZ 0x0017489f
LEA R8,[RSI + 0x1]
CMP RAX,RSI
MOV RSI,R8
JNZ 0x0017487a
JMP 0x0017489f
LAB_0017489d:
MOV CL,0x1
LAB_0017489f:
MOV EAX,ECX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* httplib::detail::MultipartFormDataParser::start_with_case_ignore(std::__cxx11::string const&,
char const*) const */
ulong httplib::detail::MultipartFormDataParser::start_with_case_ignore
(string *param_1,char *param_2)
{
size_t sVar1;
int8 in_RCX;
ulong uVar2;
char *in_RDX;
long lVar3;
bool bVar4;
sVar1 = strlen(in_RDX);
if (*(ulong *)(param_2 + 8) < sVar1) {
uVar2 = 0;
}
else if (sVar1 == 0) {
uVar2 = CONCAT71((int7)((ulong)in_RCX >> 8),1);
}
else {
lVar3 = 0;
do {
uVar2 = (ulong)(case_ignore::to_lower(int)::table[*(byte *)(*(long *)param_2 + lVar3)] ==
case_ignore::to_lower(int)::table[(byte)in_RDX[lVar3]]);
if (case_ignore::to_lower(int)::table[*(byte *)(*(long *)param_2 + lVar3)] !=
case_ignore::to_lower(int)::table[(byte)in_RDX[lVar3]]) break;
bVar4 = sVar1 - 1 != lVar3;
lVar3 = lVar3 + 1;
} while (bVar4);
}
return uVar2 & 0xffffffff;
}
| |
23,246 | coro::io_scheduler::yield_for(std::chrono::duration<long, std::ratio<1l, 1000l>>) | AlayaLite/build_O3/_deps/libcoro-src/src/io_scheduler.cpp | auto io_scheduler::yield_for(std::chrono::milliseconds amount) -> coro::task<void>
{
if (amount <= 0ms)
{
co_await schedule();
}
else
{
// Yield/timeout tasks are considered live in the scheduler and must be accounted for. Note
// that if the user gives an invalid amount and schedule() is directly called it will account
// for the scheduled task there.
m_size.fetch_add(1, std::memory_order::release);
// Yielding does not requiring setting the timer position on the poll info since
// it doesn't have a corresponding 'event' that can trigger, it always waits for
// the timeout to occur before resuming.
detail::poll_info pi{};
add_timer_token(clock::now() + amount, pi);
co_await pi;
m_size.fetch_sub(1, std::memory_order::release);
}
co_return;
} | O3 | cpp | coro::io_scheduler::yield_for(std::chrono::duration<long, std::ratio<1l, 1000l>>):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x68, %edi
callq 0x3230
leaq 0x8ab(%rip), %rcx # 0x7e5c
movq %rcx, (%rax)
leaq 0x9ab(%rip), %rcx # 0x7f66
movq %rcx, 0x8(%rax)
movq %rbx, 0x58(%rax)
movq %r14, 0x50(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, (%r15)
movb $0x0, 0x60(%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
| _ZN4coro12io_scheduler9yield_forENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE:
push r15
push r14
push rbx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov edi, 68h ; 'h'; unsigned __int64
call __Znwm; operator new(ulong)
lea rcx, _ZN4coro12io_scheduler9yield_forENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE_resume; coro::io_scheduler::yield_for(std::chrono::duration<long,std::ratio<1l,1000l>>) [clone]
mov [rax], rcx
lea rcx, _ZN4coro12io_scheduler9yield_forENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE_destroy; coro::io_scheduler::yield_for(std::chrono::duration<long,std::ratio<1l,1000l>>) [clone]
mov [rax+8], rcx
mov [rax+58h], rbx
mov [rax+50h], r14
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov [r15], rax
mov byte ptr [rax+60h], 0
mov rax, r15
pop rbx
pop r14
pop r15
retn
| _QWORD * coro::io_scheduler::yield_for(_QWORD *a1, long long a2, long long a3)
{
long long v4; // rax
v4 = operator new(0x68uLL);
*(_QWORD *)v4 = coro::io_scheduler::yield_for;
*(_QWORD *)(v4 + 8) = coro::io_scheduler::yield_for;
*(_QWORD *)(v4 + 88) = a3;
*(_QWORD *)(v4 + 80) = a2;
*(_OWORD *)(v4 + 16) = 0LL;
*a1 = v4;
*(_BYTE *)(v4 + 96) = 0;
return a1;
}
| yield_for:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV EDI,0x68
CALL 0x00103230
LEA RCX,[0x107e5c]
MOV qword ptr [RAX],RCX
LEA RCX,[0x107f66]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX + 0x58],RBX
MOV qword ptr [RAX + 0x50],R14
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [R15],RAX
MOV byte ptr [RAX + 0x60],0x0
MOV RAX,R15
POP RBX
POP R14
POP R15
RET
|
/* coro::io_scheduler::yield_for(std::chrono::duration<long, std::ratio<1l, 1000l> >) */
int8 *
coro::io_scheduler::yield_for(int8 *param_1,int8 param_2,int8 param_3)
{
int8 *puVar1;
puVar1 = (int8 *)operator_new(0x68);
*puVar1 = yield_for;
puVar1[1] = yield_for;
puVar1[0xb] = param_3;
puVar1[10] = param_2;
puVar1[2] = 0;
puVar1[3] = 0;
*param_1 = puVar1;
*(int1 *)(puVar1 + 0xc) = 0;
return param_1;
}
| |
23,247 | js_string_repeat | bluesky950520[P]quickjs/quickjs.c | static JSValue js_string_repeat(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue str;
StringBuffer b_s, *b = &b_s;
JSString *p;
int64_t val;
int n, len;
str = JS_ToStringCheckObject(ctx, this_val);
if (JS_IsException(str))
goto fail;
if (JS_ToInt64Sat(ctx, &val, argv[0]))
goto fail;
if (val < 0 || val > 2147483647) {
JS_ThrowRangeError(ctx, "invalid repeat count");
goto fail;
}
n = val;
p = JS_VALUE_GET_STRING(str);
len = p->len;
if (len == 0 || n == 1)
return str;
if (val * len > JS_STRING_LEN_MAX) {
JS_ThrowRangeError(ctx, "invalid string length");
goto fail;
}
if (string_buffer_init2(ctx, b, n * len, p->is_wide_char))
goto fail;
if (len == 1) {
string_buffer_fill(b, string_get(p, 0), n);
} else {
while (n-- > 0) {
string_buffer_concat(b, p, 0, len);
}
}
JS_FreeValue(ctx, str);
return string_buffer_end(b);
fail:
JS_FreeValue(ctx, str);
return JS_EXCEPTION;
} | O1 | c | js_string_repeat:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movq %rdi, %r14
callq 0x425ff
movq %rax, %r15
movq %rdx, %rbx
movq %rax, 0x8(%rsp)
cmpl $0x6, %ebx
je 0x7c211
movq (%r12), %rdx
movq 0x8(%r12), %rcx
movq %rdx, 0x10(%rsp)
cmpl $-0x9, %ecx
jb 0x7c1e1
movq 0x10(%rsp), %rax
incl (%rax)
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x277bc
testl %eax, %eax
jne 0x7c211
movq 0x30(%rsp), %r13
testq $-0x80000000, %r13 # imm = 0x80000000
je 0x7c239
leaq 0x26007(%rip), %rsi # 0xa220e
movq %r14, %rdi
xorl %eax, %eax
callq 0x20add
movq 0x18(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1d8c6
movl $0x6, %ebx
xorl %eax, %eax
movq %rbx, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x1, %r13
je 0x7c26f
movq 0x8(%rsp), %r12
movq 0x4(%r12), %rdx
movl %edx, %ebp
andl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
je 0x7c26f
movl %edx, %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
imulq %r13, %rax
cmpq $0x40000000, %rax # imm = 0x40000000
jl 0x7c276
leaq 0x22701(%rip), %rsi # 0x9e96e
jmp 0x7c207
movq 0x8(%rsp), %rax
jmp 0x7c227
movl %ebp, %esi
imull %r13d, %esi
shrl $0x1f, %edx
movq %r14, 0x10(%rsp)
movl %esi, 0x24(%rsp)
xorl %eax, %eax
movl %eax, 0x20(%rsp)
movl %edx, 0x28(%rsp)
movl %eax, 0x2c(%rsp)
movq %r14, %rdi
callq 0x20b73
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x7c31a
cmpl $0x1, %ebp
jne 0x7c2bd
testb $-0x80, 0x7(%r12)
jne 0x7c2e4
movzbl 0x18(%r12), %esi
jmp 0x7c2ea
testq %r13, %r13
je 0x7c2f7
incl %r13d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x420b9
decl %r13d
cmpl $0x1, %r13d
jg 0x7c2ca
jmp 0x7c2f7
movzwl 0x18(%r12), %esi
leaq 0x10(%rsp), %rdi
movl %r13d, %edx
callq 0x7d9bb
movq 0x8(%rsp), %rsi
movq 0x18(%r14), %rdi
movq %rbx, %rdx
callq 0x1d8c6
leaq 0x10(%rsp), %rdi
callq 0x33444
movq %rdx, %rbx
jmp 0x7c227
movl $0x0, 0x24(%rsp)
movl $0xffffffff, 0x2c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7c211
| js_string_repeat:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12, r8
mov r14, rdi
call JS_ToStringCheckObject
mov r15, rax
mov rbx, rdx
mov [rsp+68h+var_60], rax
cmp ebx, 6
jz short loc_7C211
mov rdx, [r12]
mov rcx, [r12+8]
mov [rsp+68h+var_58], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_7C1E1
mov rax, [rsp+68h+var_58]
inc dword ptr [rax]
loc_7C1E1:
lea rsi, [rsp+68h+var_38]
mov rdi, r14
call JS_ToInt64SatFree
test eax, eax
jnz short loc_7C211
mov r13, [rsp+68h+var_38]
test r13, 0FFFFFFFF80000000h
jz short loc_7C239
lea rsi, aInvalidRepeatC; "invalid repeat count"
loc_7C207:
mov rdi, r14
xor eax, eax
call JS_ThrowRangeError
loc_7C211:
mov rdi, [r14+18h]
mov rsi, r15
mov rdx, rbx
call JS_FreeValueRT
mov ebx, 6
xor eax, eax
loc_7C227:
mov rdx, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7C239:
cmp r13, 1
jz short loc_7C26F
mov r12, [rsp+68h+var_60]
mov rdx, [r12+4]
mov ebp, edx
and ebp, 7FFFFFFFh
jz short loc_7C26F
mov eax, edx
and eax, 7FFFFFFFh
imul rax, r13
cmp rax, 40000000h
jl short loc_7C276
lea rsi, aInvalidStringL; "invalid string length"
jmp short loc_7C207
loc_7C26F:
mov rax, [rsp+68h+var_60]
jmp short loc_7C227
loc_7C276:
mov esi, ebp
imul esi, r13d
shr edx, 1Fh
mov [rsp+68h+var_58], r14
mov [rsp+68h+var_44], esi
xor eax, eax
mov [rsp+68h+var_48], eax
mov [rsp+68h+var_40], edx
mov [rsp+68h+var_3C], eax
mov rdi, r14
call js_alloc_string
mov [rsp+68h+var_50], rax
test rax, rax
jz short loc_7C31A
cmp ebp, 1
jnz short loc_7C2BD
test byte ptr [r12+7], 80h
jnz short loc_7C2E4
movzx esi, byte ptr [r12+18h]
jmp short loc_7C2EA
loc_7C2BD:
test r13, r13
jz short loc_7C2F7
inc r13d
lea r15, [rsp+68h+var_58]
loc_7C2CA:
mov rdi, r15
mov rsi, r12
xor edx, edx
mov ecx, ebp
call string_buffer_concat
dec r13d
cmp r13d, 1
jg short loc_7C2CA
jmp short loc_7C2F7
loc_7C2E4:
movzx esi, word ptr [r12+18h]
loc_7C2EA:
lea rdi, [rsp+68h+var_58]
mov edx, r13d
call string_buffer_fill
loc_7C2F7:
mov rsi, [rsp+68h+var_60]
mov rdi, [r14+18h]
mov rdx, rbx
call JS_FreeValueRT
lea rdi, [rsp+68h+var_58]
call string_buffer_end
mov rbx, rdx
jmp loc_7C227
loc_7C31A:
mov [rsp+68h+var_44], 0
mov [rsp+68h+var_3C], 0FFFFFFFFh
jmp loc_7C211
| _DWORD * js_string_repeat(
long long a1,
long long a2,
long long a3,
long long a4,
long long *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
unsigned long long v15; // r15
long long v16; // rdx
long long v17; // rbx
long long v18; // rdx
long long v19; // rcx
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
unsigned long long v26; // r13
const char *v27; // rsi
unsigned int v29; // ebp
long long v30; // rsi
int v31; // r13d
char v32; // [rsp+0h] [rbp-68h]
_DWORD *v33; // [rsp+10h] [rbp-58h] BYREF
int v35; // [rsp+20h] [rbp-48h]
unsigned int v36; // [rsp+24h] [rbp-44h]
unsigned int v37; // [rsp+28h] [rbp-40h]
int v38; // [rsp+2Ch] [rbp-3Ch]
unsigned long long v39[7]; // [rsp+30h] [rbp-38h] BYREF
v15 = JS_ToStringCheckObject(a1, a2, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v17 = v16;
if ( (_DWORD)v16 == 6 )
goto LABEL_8;
v18 = *a5;
v19 = a5[1];
v33 = (_DWORD *)*a5;
if ( (unsigned int)v19 >= 0xFFFFFFF7 )
++*v33;
if ( (unsigned int)JS_ToInt64SatFree(a1, v39, v18, v19) )
goto LABEL_8;
v26 = v39[0];
if ( (v39[0] & 0xFFFFFFFF80000000LL) != 0 )
{
v27 = "invalid repeat count";
LABEL_7:
JS_ThrowRangeError(a1, (long long)v27, v20, v21, v22, v23, a7, a8, a9, a10, v24, v25, a13, a14, v32);
LABEL_8:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v15, v17);
return 0LL;
}
if ( v39[0] == 1 )
return (_DWORD *)v15;
v20 = *(_QWORD *)(v15 + 4);
v29 = v20 & 0x7FFFFFFF;
if ( (v20 & 0x7FFFFFFF) == 0 )
return (_DWORD *)v15;
if ( (long long)(v39[0] * (v20 & 0x7FFFFFFF)) >= 0x40000000 )
{
v27 = "invalid string length";
goto LABEL_7;
}
v33 = (_DWORD *)a1;
v36 = LODWORD(v39[0]) * v29;
v35 = 0;
v37 = (unsigned int)v20 >> 31;
v38 = 0;
if ( !js_alloc_string(a1, LODWORD(v39[0]) * v29, (unsigned int)v20 >> 31) )
{
v36 = 0;
v38 = -1;
goto LABEL_8;
}
if ( v29 == 1 )
{
if ( *(char *)(v15 + 7) < 0 )
v30 = *(unsigned __int16 *)(v15 + 24);
else
v30 = *(unsigned __int8 *)(v15 + 24);
string_buffer_fill(&v33, v30, (unsigned int)v26);
}
else if ( v26 )
{
v31 = v26 + 1;
do
{
string_buffer_concat((long long)&v33, v15, 0, v29);
--v31;
}
while ( v31 > 1 );
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v15, v17);
return string_buffer_end((long long)&v33);
}
| |||
23,248 | js_string_repeat | bluesky950520[P]quickjs/quickjs.c | static JSValue js_string_repeat(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue str;
StringBuffer b_s, *b = &b_s;
JSString *p;
int64_t val;
int n, len;
str = JS_ToStringCheckObject(ctx, this_val);
if (JS_IsException(str))
goto fail;
if (JS_ToInt64Sat(ctx, &val, argv[0]))
goto fail;
if (val < 0 || val > 2147483647) {
JS_ThrowRangeError(ctx, "invalid repeat count");
goto fail;
}
n = val;
p = JS_VALUE_GET_STRING(str);
len = p->len;
if (len == 0 || n == 1)
return str;
if (val * len > JS_STRING_LEN_MAX) {
JS_ThrowRangeError(ctx, "invalid string length");
goto fail;
}
if (string_buffer_init2(ctx, b, n * len, p->is_wide_char))
goto fail;
if (len == 1) {
string_buffer_fill(b, string_get(p, 0), n);
} else {
while (n-- > 0) {
string_buffer_concat(b, p, 0, len);
}
}
JS_FreeValue(ctx, str);
return string_buffer_end(b);
fail:
JS_FreeValue(ctx, str);
return JS_EXCEPTION;
} | O2 | c | js_string_repeat:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r12
movq %rdi, %r15
callq 0x3a290
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
je 0x68546
movq (%r12), %rdx
movq 0x8(%r12), %rcx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x21416
testl %eax, %eax
jne 0x68546
movq (%rsp), %r12
cmpq $0x7fffffff, %r12 # imm = 0x7FFFFFFF
jbe 0x6856f
leaq 0x20c0c(%rip), %rsi # 0x89148
movq %r15, %rdi
xorl %eax, %eax
callq 0x1acb3
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1801e
pushq $0x6
popq %rbx
xorl %r14d, %r14d
movq %r14, %rax
movq %rbx, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x1, %r12
je 0x6855a
movq 0x4(%r14), %rcx
movl %ecx, %ebp
andl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
je 0x6855a
movl %ecx, %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
imulq %r12, %rax
cmpq $0x3fffffff, %rax # imm = 0x3FFFFFFF
jbe 0x6859f
leaq 0x1d321(%rip), %rsi # 0x858be
jmp 0x6853c
movl %ebp, %edx
imull %r12d, %edx
shrl $0x1f, %ecx
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x2ca47
testl %eax, %eax
jne 0x68546
cmpl $0x1, %ebp
jne 0x685cc
testb $-0x80, 0x7(%r14)
jne 0x685ea
movzbl 0x18(%r14), %esi
jmp 0x685ef
leaq 0x8(%rsp), %r13
testl %r12d, %r12d
jle 0x685fc
decl %r12d
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x39dad
jmp 0x685d1
movzwl 0x18(%r14), %esi
leaq 0x8(%rsp), %rdi
movl %r12d, %edx
callq 0x697c3
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1801e
leaq 0x8(%rsp), %rdi
callq 0x2cad4
movq %rax, %r14
movq %rdx, %rbx
jmp 0x6855a
| js_string_repeat:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, r8
mov r15, rdi
call JS_ToStringCheckObject
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jz short loc_68546
mov rdx, [r12]
mov rcx, [r12+8]
mov rsi, rsp
mov rdi, r15
call JS_ToInt64Sat
test eax, eax
jnz short loc_68546
mov r12, [rsp+58h+var_58]
cmp r12, 7FFFFFFFh
jbe short loc_6856F
lea rsi, aInvalidRepeatC; "invalid repeat count"
loc_6853C:
mov rdi, r15
xor eax, eax
call JS_ThrowRangeError
loc_68546:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
push 6
pop rbx
xor r14d, r14d
loc_6855A:
mov rax, r14
mov rdx, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6856F:
cmp r12, 1
jz short loc_6855A
mov rcx, [r14+4]
mov ebp, ecx
and ebp, 7FFFFFFFh
jz short loc_6855A
mov eax, ecx
and eax, 7FFFFFFFh
imul rax, r12
cmp rax, 3FFFFFFFh
jbe short loc_6859F
lea rsi, aInvalidStringL; "invalid string length"
jmp short loc_6853C
loc_6859F:
mov edx, ebp
imul edx, r12d
shr ecx, 1Fh
lea rsi, [rsp+58h+var_50]
mov rdi, r15
call string_buffer_init2
test eax, eax
jnz short loc_68546
cmp ebp, 1
jnz short loc_685CC
test byte ptr [r14+7], 80h
jnz short loc_685EA
movzx esi, byte ptr [r14+18h]
jmp short loc_685EF
loc_685CC:
lea r13, [rsp+58h+var_50]
loc_685D1:
test r12d, r12d
jle short loc_685FC
dec r12d
mov rdi, r13
mov rsi, r14
xor edx, edx
mov ecx, ebp
call string_buffer_concat
jmp short loc_685D1
loc_685EA:
movzx esi, word ptr [r14+18h]
loc_685EF:
lea rdi, [rsp+58h+var_50]
mov edx, r12d
call string_buffer_fill
loc_685FC:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
lea rdi, [rsp+58h+var_50]
call string_buffer_end
mov r14, rax
mov rbx, rdx
jmp loc_6855A
| long long js_string_repeat(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v15; // r14
long long v16; // rdx
long long v17; // rbx
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
int v24; // r12d
const char *v25; // rsi
unsigned int v27; // ebp
long long v28; // rsi
unsigned long long v29; // [rsp+0h] [rbp-58h] BYREF
long long v30[10]; // [rsp+8h] [rbp-50h] BYREF
v15 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v17 = v16;
if ( (_DWORD)v16 == 6 || (unsigned int)JS_ToInt64Sat(a1, (long long)&v29, *(_DWORD **)a5, *(_QWORD *)(a5 + 8)) )
goto LABEL_6;
v24 = v29;
if ( v29 > 0x7FFFFFFF )
{
v25 = "invalid repeat count";
LABEL_5:
JS_ThrowRangeError(a1, (long long)v25, v18, v19, v20, v21, a7, a8, a9, a10, v22, v23, a13, a14, v29);
LABEL_6:
JS_FreeValue(a1, v15, v17);
return 0LL;
}
if ( v29 != 1 )
{
v19 = *(_QWORD *)(v15 + 4);
v27 = v19 & 0x7FFFFFFF;
if ( (v19 & 0x7FFFFFFF) != 0 )
{
if ( v29 * (v19 & 0x7FFFFFFF) > 0x3FFFFFFF )
{
v25 = "invalid string length";
goto LABEL_5;
}
if ( (unsigned int)string_buffer_init2(a1, (long long)v30, (unsigned int)v29 * v27, (unsigned int)v19 >> 31) )
goto LABEL_6;
if ( v27 == 1 )
{
if ( *(char *)(v15 + 7) < 0 )
v28 = *(unsigned __int16 *)(v15 + 24);
else
v28 = *(unsigned __int8 *)(v15 + 24);
string_buffer_fill(v30, v28, (unsigned int)v24);
}
else
{
while ( v24 > 0 )
{
--v24;
string_buffer_concat((long long)v30, v15, 0, v27);
}
}
JS_FreeValue(a1, v15, v17);
return string_buffer_end(v30);
}
}
return v15;
}
| js_string_repeat:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,R8
MOV R15,RDI
CALL 0x0013a290
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JZ 0x00168546
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x8]
MOV RSI,RSP
MOV RDI,R15
CALL 0x00121416
TEST EAX,EAX
JNZ 0x00168546
MOV R12,qword ptr [RSP]
CMP R12,0x7fffffff
JBE 0x0016856f
LEA RSI,[0x189148]
LAB_0016853c:
MOV RDI,R15
XOR EAX,EAX
CALL 0x0011acb3
LAB_00168546:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011801e
PUSH 0x6
POP RBX
XOR R14D,R14D
LAB_0016855a:
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016856f:
CMP R12,0x1
JZ 0x0016855a
MOV RCX,qword ptr [R14 + 0x4]
MOV EBP,ECX
AND EBP,0x7fffffff
JZ 0x0016855a
MOV EAX,ECX
AND EAX,0x7fffffff
IMUL RAX,R12
CMP RAX,0x3fffffff
JBE 0x0016859f
LEA RSI,[0x1858be]
JMP 0x0016853c
LAB_0016859f:
MOV EDX,EBP
IMUL EDX,R12D
SHR ECX,0x1f
LEA RSI,[RSP + 0x8]
MOV RDI,R15
CALL 0x0012ca47
TEST EAX,EAX
JNZ 0x00168546
CMP EBP,0x1
JNZ 0x001685cc
TEST byte ptr [R14 + 0x7],0x80
JNZ 0x001685ea
MOVZX ESI,byte ptr [R14 + 0x18]
JMP 0x001685ef
LAB_001685cc:
LEA R13,[RSP + 0x8]
LAB_001685d1:
TEST R12D,R12D
JLE 0x001685fc
DEC R12D
MOV RDI,R13
MOV RSI,R14
XOR EDX,EDX
MOV ECX,EBP
CALL 0x00139dad
JMP 0x001685d1
LAB_001685ea:
MOVZX ESI,word ptr [R14 + 0x18]
LAB_001685ef:
LEA RDI,[RSP + 0x8]
MOV EDX,R12D
CALL 0x001697c3
LAB_001685fc:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011801e
LEA RDI,[RSP + 0x8]
CALL 0x0012cad4
MOV R14,RAX
MOV RBX,RDX
JMP 0x0016855a
|
int1 [16] js_string_repeat(int8 param_1)
{
ulong uVar1;
int iVar2;
long lVar3;
uint uVar4;
ushort uVar5;
char *pcVar6;
int8 *in_R8;
int1 auVar7 [16];
ulong local_58;
int1 local_50 [32];
auVar7 = JS_ToStringCheckObject();
lVar3 = auVar7._0_8_;
if ((auVar7._8_4_ != 6) && (iVar2 = JS_ToInt64Sat(param_1,&local_58,*in_R8,in_R8[1]), iVar2 == 0))
{
if (local_58 < 0x80000000) {
if (local_58 == 1) {
return auVar7;
}
uVar1 = *(ulong *)(lVar3 + 4);
uVar4 = (uint)uVar1 & 0x7fffffff;
if ((uVar1 & 0x7fffffff) == 0) {
return auVar7;
}
if (((uint)uVar1 & 0x7fffffff) * local_58 < 0x40000000) {
iVar2 = string_buffer_init2(param_1,local_50,uVar4 * (int)local_58,uVar1 >> 0x1f & 1);
if (iVar2 == 0) {
if (uVar4 == 1) {
if ((*(byte *)(lVar3 + 7) & 0x80) == 0) {
uVar5 = (ushort)*(byte *)(lVar3 + 0x18);
}
else {
uVar5 = *(ushort *)(lVar3 + 0x18);
}
string_buffer_fill(local_50,uVar5,local_58 & 0xffffffff);
}
else {
for (; 0 < (int)local_58; local_58 = (ulong)((int)local_58 - 1)) {
string_buffer_concat(local_50,lVar3,0,uVar4);
}
}
JS_FreeValue(param_1,lVar3,auVar7._8_8_);
auVar7 = string_buffer_end(local_50);
return auVar7;
}
goto LAB_00168546;
}
pcVar6 = "invalid string length";
}
else {
pcVar6 = "invalid repeat count";
}
JS_ThrowRangeError(param_1,pcVar6);
}
LAB_00168546:
JS_FreeValue(param_1,lVar3,auVar7._8_8_);
return ZEXT816(6) << 0x40;
}
| |
23,249 | 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 0x6d99f
movq %rsi, %r15
movq 0x8(%r14), %r12
movq (%r12), %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
je 0x6d989
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1cad0
testl %eax, %eax
je 0x6d97e
addq $0x30, %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
jne 0x6d95f
jmp 0x6d981
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
cmpq %rbx, %rax
je 0x6d9fd
addq $0x20, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1c460
movq %rax, %rbx
movq %r14, %rdi
callq 0x30fda
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0x5e46f(%rip), %rsi # 0xcbe30
leaq 0x20(%rsp), %rdi
callq 0x73b07
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x30d7e
xorl %ebp, %ebp
leaq 0x904f4(%rip), %rsi # 0xfdee0
leaq -0x401ed(%rip), %rdx # 0x2d806
movq %rbx, %rdi
callq 0x1c7b0
jmp 0x6da76
movl $0x20, %edi
callq 0x1c460
movq %rax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x1c490
leaq (%rax,%r15), %rdx
movq %rsp, %rdi
movq %r15, %rsi
callq 0x3fe82
leaq 0x5e5e1(%rip), %rsi # 0xcc013
leaq 0x5e5e0(%rip), %rcx # 0xcc019
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x763c5
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x2f640
xorl %ebp, %ebp
leaq 0x903f9(%rip), %rsi # 0xfde60
leaq -0x40268(%rip), %rdx # 0x2d806
movq %rbx, %rdi
callq 0x1c7b0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6da94
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1c110
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dadf
movq 0x10(%rsp), %rsi
jmp 0x6dad7
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dae9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x6dae9
jmp 0x6dae6
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dadf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1c110
testb %bpl, %bpl
jne 0x6dae9
jmp 0x6daf1
movq %rax, %r14
movq %rbx, %rdi
callq 0x1caa0
movq %r14, %rdi
callq 0x1c7d0
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_6D99F
mov r15, rsi
mov r12, [r14+8]
mov rbx, [r12]
mov rax, [r12+8]
cmp rbx, rax
jz short loc_6D989
loc_6D95F:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_6D97E
add rbx, 30h ; '0'
mov rax, [r12+8]
cmp rbx, rax
jnz short loc_6D95F
jmp short loc_6D981
loc_6D97E:
mov rax, rbx
loc_6D981:
mov rcx, [r14+8]
mov rbx, [rcx+8]
loc_6D989:
cmp rax, rbx
jz short loc_6D9FD
add rax, 20h ; ' '
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_6D99F:
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_6DA76
loc_6D9FD:
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_6DA76:
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6DA94
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6DA94:
mov rdi, [rsp+68h+var_68]
cmp rdi, r12
jz short loc_6DADF
mov rsi, [rsp+68h+var_58]
jmp short loc_6DAD7
mov r14, rax
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_6DAE9
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6DAE9
jmp short loc_6DAE6
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6DADF
mov rsi, [rsp+68h+var_38]
loc_6DAD7:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6DADF:
test bpl, bpl
jnz short loc_6DAE9
jmp short loc_6DAF1
loc_6DAE6:
mov r14, rax
loc_6DAE9:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6DAF1:
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*>(v11, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
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]>(
v11,
"key '",
v9,
"' 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 0x0016d99f
MOV R15,RSI
MOV R12,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JZ 0x0016d989
LAB_0016d95f:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011cad0
TEST EAX,EAX
JZ 0x0016d97e
ADD RBX,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JNZ 0x0016d95f
JMP 0x0016d981
LAB_0016d97e:
MOV RAX,RBX
LAB_0016d981:
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
LAB_0016d989:
CMP RAX,RBX
JZ 0x0016d9fd
ADD RAX,0x20
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0016d99f:
MOV EDI,0x20
CALL 0x0011c460
MOV RBX,RAX
MOV RDI,R14
CALL 0x00130fda
MOV RDX,RSP
MOV qword ptr [RDX],RAX
LAB_0016d9ba:
LEA RSI,[0x1cbe30]
LEA RDI,[RSP + 0x20]
CALL 0x00173b07
MOV BPL,0x1
LAB_0016d9ce:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x00130d7e
XOR EBP,EBP
LEA RSI,[0x1fdee0]
LEA RDX,[0x12d806]
MOV RDI,RBX
CALL 0x0011c7b0
LAB_0016d9fd:
MOV EDI,0x20
CALL 0x0011c460
MOV RBX,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x0011c490
LEA RDX,[RAX + R15*0x1]
LAB_0016da20:
MOV RDI,RSP
MOV RSI,R15
CALL 0x0013fe82
LAB_0016da2b:
LEA RSI,[0x1cc013]
LEA RCX,[0x1cc019]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x001763c5
MOV BPL,0x1
LAB_0016da49:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x0012f640
XOR EBP,EBP
LEA RSI,[0x1fde60]
LEA RDX,[0x12d806]
MOV RDI,RBX
CALL 0x0011c7b0
|
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 0016d9ba to 0016d9ca has its CatchHandler @ 0016dae6 */
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 0016d9ce to 0016d9fa has its CatchHandler @ 0016dac1 */
_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 0016da20 to 0016da2a has its CatchHandler @ 0016dabf */
std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5);
/* try { // try from 0016da2b to 0016da45 has its CatchHandler @ 0016daa4 */
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 0016da49 to 0016da75 has its CatchHandler @ 0016da76 */
_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;
}
| |
23,250 | maria_ftparser_alloc_param | eloqsql/storage/maria/ma_ft_parser.c | MYSQL_FTPARSER_PARAM* maria_ftparser_alloc_param(MARIA_HA *info)
{
if (!info->ftparser_param)
{
/*
. info->ftparser_param can not be zero after the initialization,
because it always includes built-in fulltext parser. And built-in
parser can be called even if the table has no fulltext indexes and
no varchar/text fields.
ftb_find_relevance... parser (ftb_find_relevance_parse,
ftb_find_relevance_add_word) calls ftb_check_phrase... parser
(ftb_check_phrase_internal, ftb_phrase_add_word). Thus MAX_PARAM_NR=2.
*/
info->ftparser_param= (MYSQL_FTPARSER_PARAM *)
my_malloc(PSI_INSTRUMENT_ME, MAX_PARAM_NR * sizeof(MYSQL_FTPARSER_PARAM) *
info->s->ftkeys, MYF(MY_WME | MY_ZEROFILL));
init_alloc_root(PSI_INSTRUMENT_ME, &info->ft_memroot,
FTPARSER_MEMROOT_ALLOC_SIZE, 0, MYF(0));
}
return info->ftparser_param;
} | O0 | c | maria_ftparser_alloc_param:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x368(%rax)
jne 0x78776
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x748(%rax), %eax
movl %eax, %esi
shlq $0x7, %rsi
xorl %edi, %edi
movl $0x30, %edx
callq 0xfb390
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x368(%rax)
movq -0x8(%rbp), %rsi
addq $0x328, %rsi # imm = 0x328
xorl %edi, %edi
movl $0x10000, %edx # imm = 0x10000
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0xf4cd0
movq -0x8(%rbp), %rax
movq 0x368(%rax), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| maria_ftparser_alloc_param:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+368h], 0
jnz short loc_78776
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+748h]
mov esi, eax
shl rsi, 7
xor edi, edi
mov edx, 30h ; '0'
call my_malloc
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax+368h], rcx
mov rsi, [rbp+var_8]
add rsi, 328h
xor edi, edi
mov edx, 10000h
xor eax, eax
mov r8d, eax
mov rcx, r8
call init_alloc_root
loc_78776:
mov rax, [rbp+var_8]
mov rax, [rax+368h]
add rsp, 10h
pop rbp
retn
| long long maria_ftparser_alloc_param(_QWORD *a1)
{
if ( !a1[109] )
{
a1[109] = my_malloc(0LL, (unsigned long long)*(unsigned int *)(*a1 + 1864LL) << 7, 48LL);
init_alloc_root(0LL, a1 + 101, 0x10000LL, 0LL);
}
return a1[109];
}
| maria_ftparser_alloc_param:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x368],0x0
JNZ 0x00178776
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x748]
MOV ESI,EAX
SHL RSI,0x7
XOR EDI,EDI
MOV EDX,0x30
CALL 0x001fb390
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x368],RCX
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x328
XOR EDI,EDI
MOV EDX,0x10000
XOR EAX,EAX
MOV R8D,EAX
MOV RCX,R8
CALL 0x001f4cd0
LAB_00178776:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x368]
ADD RSP,0x10
POP RBP
RET
|
long maria_ftparser_alloc_param(long *param_1)
{
long lVar1;
if (param_1[0x6d] == 0) {
lVar1 = my_malloc(0,(ulong)*(uint *)(*param_1 + 0x748) << 7,0x30);
param_1[0x6d] = lVar1;
init_alloc_root(0,param_1 + 0x65,0x10000,0);
}
return param_1[0x6d];
}
| |
23,251 | dump_trigger_old | eloqsql/client/mysqldump.c | static void dump_trigger_old(FILE *sql_file, MYSQL_RES *show_triggers_rs,
MYSQL_ROW *show_trigger_row,
const char *table_name)
{
char quoted_table_name_buf[NAME_LEN * 2 + 3];
char *quoted_table_name= quote_name(table_name, quoted_table_name_buf, 1);
char name_buff[NAME_LEN * 4 + 3];
const char *xml_msg= "\nWarning! mysqldump being run against old server "
"that does not\nsupport 'SHOW CREATE TRIGGER' "
"statement. Skipping..\n";
DBUG_ENTER("dump_trigger_old");
if (opt_xml)
{
print_xml_comment(sql_file, strlen(xml_msg), xml_msg);
check_io(sql_file);
DBUG_VOID_RETURN;
}
fprintf(sql_file,
"--\n"
"-- WARNING: old server version. "
"The following dump may be incomplete.\n"
"--\n");
if (opt_compact)
fprintf(sql_file, "/*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/;\n");
if (opt_drop_trigger)
fprintf(sql_file, "/*!50032 DROP TRIGGER IF EXISTS %s */;\n",
(*show_trigger_row)[0]);
fprintf(sql_file,
"DELIMITER ;;\n"
"/*!50003 SET SESSION SQL_MODE=\"%s\" */;;\n"
"/*!50003 CREATE */ ",
(*show_trigger_row)[6]);
if (mysql_num_fields(show_triggers_rs) > 7)
{
/*
mysqldump can be run against the server, that does not support
definer in triggers (there is no DEFINER column in SHOW TRIGGERS
output). So, we should check if we have this column before
accessing it.
*/
size_t user_name_len;
char user_name_str[USERNAME_LENGTH + 1];
char quoted_user_name_str[USERNAME_LENGTH * 2 + 3];
size_t host_name_len;
char host_name_str[HOSTNAME_LENGTH + 1];
char quoted_host_name_str[HOSTNAME_LENGTH * 2 + 3];
parse_user((*show_trigger_row)[7],
strlen((*show_trigger_row)[7]),
user_name_str, &user_name_len,
host_name_str, &host_name_len);
fprintf(sql_file,
"/*!50017 DEFINER=%s@%s */ ",
quote_name(user_name_str, quoted_user_name_str, FALSE),
quote_name(host_name_str, quoted_host_name_str, FALSE));
}
fprintf(sql_file,
"/*!50003 TRIGGER %s %s %s ON %s FOR EACH ROW%s%s */;;\n"
"DELIMITER ;\n",
quote_name((*show_trigger_row)[0], name_buff, 0), /* Trigger */
(*show_trigger_row)[4], /* Timing */
(*show_trigger_row)[1], /* Event */
quoted_table_name,
(strchr(" \t\n\r", *((*show_trigger_row)[3]))) ? "" : " ",
(*show_trigger_row)[3] /* Statement */);
if (opt_compact)
fprintf(sql_file, "/*!50003 SET SESSION SQL_MODE=@OLD_SQL_MODE */;\n");
DBUG_VOID_RETURN;
} | O0 | c | dump_trigger_old:
pushq %rbp
movq %rsp, %rbp
subq $0xff0, %rsp # imm = 0xFF0
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0xf58(%rbp)
movq %rsi, -0xf60(%rbp)
movq %rdx, -0xf68(%rbp)
movq %rcx, -0xf70(%rbp)
movq -0xf70(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movl $0x1, %edx
callq 0x3fd90
movq %rax, -0xf78(%rbp)
leaq 0x98509(%rip), %rax # 0xdd133
movq %rax, -0xf80(%rbp)
cmpb $0x0, 0x3bc9b0(%rip) # 0x4015e8
je 0x44c7b
movq -0xf58(%rbp), %rax
movq %rax, -0xf98(%rbp)
movq -0xf80(%rbp), %rdi
callq 0x38410
movq -0xf98(%rbp), %rdi
movq %rax, %rsi
movq -0xf80(%rbp), %rdx
callq 0x3de50
movq -0xf58(%rbp), %rdi
callq 0x38d60
jmp 0x44eca
movq -0xf58(%rbp), %rdi
leaq 0x9851e(%rip), %rsi # 0xdd1a7
movb $0x0, %al
callq 0x381d0
cmpb $0x0, 0x3bcb99(%rip) # 0x401830
je 0x44cae
movq -0xf58(%rbp), %rdi
leaq 0x9854d(%rip), %rsi # 0xdd1f4
movb $0x0, %al
callq 0x381d0
cmpb $0x0, 0x3bcb6d(%rip) # 0x401822
je 0x44cd9
movq -0xf58(%rbp), %rdi
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdx
leaq 0x980a6(%rip), %rsi # 0xdcd78
movb $0x0, %al
callq 0x381d0
movq -0xf58(%rbp), %rdi
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %rdx
leaq 0x98529(%rip), %rsi # 0xdd21e
movb $0x0, %al
callq 0x381d0
movq -0xf60(%rbp), %rdi
callq 0x53600
cmpl $0x7, %eax
jbe 0x44dc2
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rax
movq %rax, -0xfb0(%rbp)
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rdi
callq 0x38410
movq -0xfb0(%rbp), %rdi
movq %rax, %rsi
leaq -0x830(%rbp), %rdx
leaq -0xd40(%rbp), %r8
leaq -0xf88(%rbp), %rcx
leaq -0xf90(%rbp), %r9
callq 0x47690
movq -0xf58(%rbp), %rax
movq %rax, -0xfa8(%rbp)
leaq -0x830(%rbp), %rdi
leaq -0xc40(%rbp), %rsi
xorl %edx, %edx
callq 0x3fd90
movq %rax, -0xfa0(%rbp)
leaq -0xd40(%rbp), %rdi
leaq -0xf50(%rbp), %rsi
xorl %edx, %edx
callq 0x3fd90
movq -0xfa8(%rbp), %rdi
movq -0xfa0(%rbp), %rdx
movq %rax, %rcx
leaq 0x984ac(%rip), %rsi # 0xdd267
movb $0x0, %al
callq 0x381d0
movq -0xf58(%rbp), %rax
movq %rax, -0xfd8(%rbp)
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdi
leaq -0x620(%rbp), %rsi
xorl %edx, %edx
callq 0x3fd90
movq %rax, -0xfd0(%rbp)
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x20(%rax), %rax
movq %rax, -0xfc8(%rbp)
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0xfc0(%rbp)
movq -0xf78(%rbp), %rax
movq %rax, -0xfb8(%rbp)
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movsbl (%rax), %esi
leaq 0x98483(%rip), %rdi # 0xdd2c5
callq 0x38500
movq -0xfd8(%rbp), %rdi
movq -0xfd0(%rbp), %rdx
movq -0xfc8(%rbp), %rcx
movq -0xfc0(%rbp), %r8
movq -0xfb8(%rbp), %r9
movq %rax, %rsi
leaq 0x966aa(%rip), %r10 # 0xdb51e
leaq 0x97cd1(%rip), %rax # 0xdcb4c
cmpq $0x0, %rsi
cmovneq %rax, %r10
movq -0xf68(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
leaq 0x983ea(%rip), %rsi # 0xdd282
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0x381d0
cmpb $0x0, 0x3bc981(%rip) # 0x401830
je 0x44ec6
movq -0xf58(%rbp), %rdi
leaq 0x9840b(%rip), %rsi # 0xdd2ca
movb $0x0, %al
callq 0x381d0
jmp 0x44ec8
jmp 0x44eca
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x44ee5
addq $0xff0, %rsp # imm = 0xFF0
popq %rbp
retq
callq 0x382c0
nopw (%rax,%rax)
| dump_trigger_old:
push rbp
mov rbp, rsp
sub rsp, 0FF0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_F58], rdi
mov [rbp+var_F60], rsi
mov [rbp+var_F68], rdx
mov [rbp+var_F70], rcx
mov rdi, [rbp+var_F70]
lea rsi, [rbp+var_210]
mov edx, 1
call quote_name
mov [rbp+var_F78], rax
lea rax, aWarningMysqldu; "\nWarning! mysqldump being run against "...
mov [rbp+var_F80], rax
cmp cs:opt_xml, 0
jz short loc_44C7B
mov rax, [rbp+var_F58]
mov [rbp+var_F98], rax
mov rdi, [rbp+var_F80]
call _strlen
mov rdi, [rbp+var_F98]
mov rsi, rax
mov rdx, [rbp+var_F80]
call print_xml_comment
mov rdi, [rbp+var_F58]
call check_io
jmp loc_44ECA
loc_44C7B:
mov rdi, [rbp+var_F58]
lea rsi, aWarningOldServ; "--\n-- WARNING: old server version. The"...
mov al, 0
call _fprintf
cmp cs:opt_compact, 0
jz short loc_44CAE
mov rdi, [rbp+var_F58]
lea rsi, a50003SetOldSql; "/*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/"...
mov al, 0
call _fprintf
loc_44CAE:
cmp cs:opt_drop_trigger, 0
jz short loc_44CD9
mov rdi, [rbp+var_F58]
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rdx, [rax]
lea rsi, a50032DropTrigg; "/*!50032 DROP TRIGGER IF EXISTS %s */;"...
mov al, 0
call _fprintf
loc_44CD9:
mov rdi, [rbp+var_F58]
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rdx, [rax+30h]
lea rsi, aDelimiter50003_0; "DELIMITER ;;\n/*!50003 SET SESSION SQL_"...
mov al, 0
call _fprintf
mov rdi, [rbp+var_F60]
call mysql_num_fields
cmp eax, 7
jbe loc_44DC2
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rax, [rax+38h]
mov [rbp+var_FB0], rax
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rdi, [rax+38h]
call _strlen
mov rdi, [rbp+var_FB0]
mov rsi, rax
lea rdx, [rbp+var_830]
lea r8, [rbp+var_D40]
lea rcx, [rbp+var_F88]
lea r9, [rbp+var_F90]
call parse_user
mov rax, [rbp+var_F58]
mov [rbp+var_FA8], rax
lea rdi, [rbp+var_830]
lea rsi, [rbp+var_C40]
xor edx, edx
call quote_name
mov [rbp+var_FA0], rax
lea rdi, [rbp+var_D40]
lea rsi, [rbp+var_F50]
xor edx, edx
call quote_name
mov rdi, [rbp+var_FA8]
mov rdx, [rbp+var_FA0]
mov rcx, rax
lea rsi, a50017DefinerSS; "/*!50017 DEFINER=%s@%s */ "
mov al, 0
call _fprintf
loc_44DC2:
mov rax, [rbp+var_F58]
mov [rbp+var_FD8], rax
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rdi, [rax]
lea rsi, [rbp+var_620]
xor edx, edx
call quote_name
mov [rbp+var_FD0], rax
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rax, [rax+20h]
mov [rbp+var_FC8], rax
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rax, [rax+8]
mov [rbp+var_FC0], rax
mov rax, [rbp+var_F78]
mov [rbp+var_FB8], rax
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rax, [rax+18h]
movsx esi, byte ptr [rax]
lea rdi, asc_DD2C5; " \t\n\r"
call _strchr
mov rdi, [rbp+var_FD8]
mov rdx, [rbp+var_FD0]
mov rcx, [rbp+var_FC8]
mov r8, [rbp+var_FC0]
mov r9, [rbp+var_FB8]
mov rsi, rax
lea r10, aHostS+0Eh; " "
lea rax, asc_DCB4A+2; ""
cmp rsi, 0
cmovnz r10, rax
mov rax, [rbp+var_F68]
mov rax, [rax]
mov rax, [rax+18h]
lea rsi, a50003TriggerSS; "/*!50003 TRIGGER %s %s %s ON %s FOR EAC"...
mov [rsp+0FF0h+var_FF0], r10
mov [rsp+0FF0h+var_FE8], rax
mov al, 0
call _fprintf
cmp cs:opt_compact, 0
jz short loc_44EC6
mov rdi, [rbp+var_F58]
lea rsi, a50003SetSessio; "/*!50003 SET SESSION SQL_MODE=@OLD_SQL_"...
mov al, 0
call _fprintf
loc_44EC6:
jmp short $+2
loc_44EC8:
jmp short $+2
loc_44ECA:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_44EE5
add rsp, 0FF0h
pop rbp
retn
loc_44EE5:
call ___stack_chk_fail
| unsigned long long dump_trigger_old(long long a1, long long a2, char ***a3, char *a4)
{
long long v4; // rax
long long v5; // rax
char *v6; // rax
long long v7; // rax
const char *v8; // r10
long long v10; // [rsp+18h] [rbp-FD8h]
char *v11; // [rsp+20h] [rbp-FD0h]
const char *v12; // [rsp+28h] [rbp-FC8h]
const char *v13; // [rsp+30h] [rbp-FC0h]
const char *v14; // [rsp+38h] [rbp-FB8h]
char *v15; // [rsp+40h] [rbp-FB0h]
long long v16; // [rsp+48h] [rbp-FA8h]
char *v17; // [rsp+50h] [rbp-FA0h]
_BYTE v18[8]; // [rsp+60h] [rbp-F90h] BYREF
_BYTE v19[8]; // [rsp+68h] [rbp-F88h] BYREF
char *v20; // [rsp+70h] [rbp-F80h]
char *v21; // [rsp+78h] [rbp-F78h]
char *v22; // [rsp+80h] [rbp-F70h]
char ***v23; // [rsp+88h] [rbp-F68h]
long long v24; // [rsp+90h] [rbp-F60h]
long long v25; // [rsp+98h] [rbp-F58h]
char v26[528]; // [rsp+A0h] [rbp-F50h] BYREF
char v27[256]; // [rsp+2B0h] [rbp-D40h] BYREF
char v28[1040]; // [rsp+3B0h] [rbp-C40h] BYREF
char v29[528]; // [rsp+7C0h] [rbp-830h] BYREF
char v30[1040]; // [rsp+9D0h] [rbp-620h] BYREF
char v31[520]; // [rsp+DE0h] [rbp-210h] BYREF
unsigned long long v32; // [rsp+FE8h] [rbp-8h]
v32 = __readfsqword(0x28u);
v25 = a1;
v24 = a2;
v23 = a3;
v22 = a4;
v21 = quote_name(a4, v31, 1);
v20 = "\n"
"Warning! mysqldump being run against old server that does not\n"
"support 'SHOW CREATE TRIGGER' statement. Skipping..\n";
if ( opt_xml )
{
v4 = strlen(v20);
print_xml_comment(v25, v4, v20);
check_io(v25);
}
else
{
fprintf(v25, "--\n-- WARNING: old server version. The following dump may be incomplete.\n--\n");
if ( opt_compact )
fprintf(v25, "/*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/;\n");
if ( opt_drop_trigger )
fprintf(v25, "/*!50032 DROP TRIGGER IF EXISTS %s */;\n", **v23);
fprintf(v25, "DELIMITER ;;\n/*!50003 SET SESSION SQL_MODE=\"%s\" */;;\n/*!50003 CREATE */ ", (*v23)[6]);
if ( (unsigned int)mysql_num_fields(v24) > 7 )
{
v15 = (*v23)[7];
v5 = strlen(v15);
parse_user(v15, v5, v29, v19, v27, v18);
v16 = v25;
v17 = quote_name(v29, v28, 0);
v6 = quote_name(v27, v26, 0);
fprintf(v16, "/*!50017 DEFINER=%s@%s */ ", v17, v6);
}
v10 = v25;
v11 = quote_name(**v23, v30, 0);
v12 = (*v23)[4];
v13 = (*v23)[1];
v14 = v21;
v7 = strchr(" \t\n\r", (unsigned int)*(*v23)[3]);
v8 = " ";
if ( v7 )
v8 = "";
fprintf(
v10,
"/*!50003 TRIGGER %s %s %s ON %s FOR EACH ROW%s%s */;;\nDELIMITER ;\n",
v11,
v12,
v13,
v14,
v8,
(*v23)[3]);
if ( opt_compact )
fprintf(v25, "/*!50003 SET SESSION SQL_MODE=@OLD_SQL_MODE */;\n");
}
return __readfsqword(0x28u);
}
| dump_trigger_old:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xff0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0xf58],RDI
MOV qword ptr [RBP + -0xf60],RSI
MOV qword ptr [RBP + -0xf68],RDX
MOV qword ptr [RBP + -0xf70],RCX
MOV RDI,qword ptr [RBP + -0xf70]
LEA RSI,[RBP + -0x210]
MOV EDX,0x1
CALL 0x0013fd90
MOV qword ptr [RBP + -0xf78],RAX
LEA RAX,[0x1dd133]
MOV qword ptr [RBP + -0xf80],RAX
CMP byte ptr [0x005015e8],0x0
JZ 0x00144c7b
MOV RAX,qword ptr [RBP + -0xf58]
MOV qword ptr [RBP + -0xf98],RAX
MOV RDI,qword ptr [RBP + -0xf80]
CALL 0x00138410
MOV RDI,qword ptr [RBP + -0xf98]
MOV RSI,RAX
MOV RDX,qword ptr [RBP + -0xf80]
CALL 0x0013de50
MOV RDI,qword ptr [RBP + -0xf58]
CALL 0x00138d60
JMP 0x00144eca
LAB_00144c7b:
MOV RDI,qword ptr [RBP + -0xf58]
LEA RSI,[0x1dd1a7]
MOV AL,0x0
CALL 0x001381d0
CMP byte ptr [0x00501830],0x0
JZ 0x00144cae
MOV RDI,qword ptr [RBP + -0xf58]
LEA RSI,[0x1dd1f4]
MOV AL,0x0
CALL 0x001381d0
LAB_00144cae:
CMP byte ptr [0x00501822],0x0
JZ 0x00144cd9
MOV RDI,qword ptr [RBP + -0xf58]
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX]
LEA RSI,[0x1dcd78]
MOV AL,0x0
CALL 0x001381d0
LAB_00144cd9:
MOV RDI,qword ptr [RBP + -0xf58]
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x30]
LEA RSI,[0x1dd21e]
MOV AL,0x0
CALL 0x001381d0
MOV RDI,qword ptr [RBP + -0xf60]
CALL 0x00153600
CMP EAX,0x7
JBE 0x00144dc2
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0xfb0],RAX
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x00138410
MOV RDI,qword ptr [RBP + -0xfb0]
MOV RSI,RAX
LEA RDX,[RBP + -0x830]
LEA R8,[RBP + -0xd40]
LEA RCX,[RBP + -0xf88]
LEA R9,[RBP + -0xf90]
CALL 0x00147690
MOV RAX,qword ptr [RBP + -0xf58]
MOV qword ptr [RBP + -0xfa8],RAX
LEA RDI,[RBP + -0x830]
LEA RSI,[RBP + -0xc40]
XOR EDX,EDX
CALL 0x0013fd90
MOV qword ptr [RBP + -0xfa0],RAX
LEA RDI,[RBP + -0xd40]
LEA RSI,[RBP + -0xf50]
XOR EDX,EDX
CALL 0x0013fd90
MOV RDI,qword ptr [RBP + -0xfa8]
MOV RDX,qword ptr [RBP + -0xfa0]
MOV RCX,RAX
LEA RSI,[0x1dd267]
MOV AL,0x0
CALL 0x001381d0
LAB_00144dc2:
MOV RAX,qword ptr [RBP + -0xf58]
MOV qword ptr [RBP + -0xfd8],RAX
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX]
LEA RSI,[RBP + -0x620]
XOR EDX,EDX
CALL 0x0013fd90
MOV qword ptr [RBP + -0xfd0],RAX
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0xfc8],RAX
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0xfc0],RAX
MOV RAX,qword ptr [RBP + -0xf78]
MOV qword ptr [RBP + -0xfb8],RAX
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOVSX ESI,byte ptr [RAX]
LEA RDI,[0x1dd2c5]
CALL 0x00138500
MOV RDI,qword ptr [RBP + -0xfd8]
MOV RDX,qword ptr [RBP + -0xfd0]
MOV RCX,qword ptr [RBP + -0xfc8]
MOV R8,qword ptr [RBP + -0xfc0]
MOV R9,qword ptr [RBP + -0xfb8]
MOV RSI,RAX
LEA R10,[0x1db51e]
LEA RAX,[0x1dcb4c]
CMP RSI,0x0
CMOVNZ R10,RAX
MOV RAX,qword ptr [RBP + -0xf68]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
LEA RSI,[0x1dd282]
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
MOV AL,0x0
CALL 0x001381d0
CMP byte ptr [0x00501830],0x0
JZ 0x00144ec6
MOV RDI,qword ptr [RBP + -0xf58]
LEA RSI,[0x1dd2ca]
MOV AL,0x0
CALL 0x001381d0
LAB_00144ec6:
JMP 0x00144ec8
LAB_00144ec8:
JMP 0x00144eca
LAB_00144eca:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00144ee5
ADD RSP,0xff0
POP RBP
RET
LAB_00144ee5:
CALL 0x001382c0
|
void dump_trigger_old(FILE *param_1,int8 param_2,long *param_3,int8 param_4)
{
int8 uVar1;
FILE *pFVar2;
uint uVar3;
size_t sVar4;
int8 uVar5;
int8 uVar6;
int8 uVar7;
char *pcVar8;
char *pcVar9;
long in_FS_OFFSET;
int1 local_f98 [8];
int1 local_f90 [8];
char *local_f88;
int8 local_f80;
int8 local_f78;
long *local_f70;
int8 local_f68;
FILE *local_f60;
int1 local_f58 [528];
int1 local_d48 [256];
int1 local_c48 [1040];
int1 local_838 [528];
int1 local_628 [1040];
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_f78 = param_4;
local_f70 = param_3;
local_f68 = param_2;
local_f60 = param_1;
local_f80 = quote_name(param_4,local_218,1);
pFVar2 = local_f60;
local_f88 =
"\nWarning! mysqldump being run against old server that does not\nsupport \'SHOW CREATE TRIGGER\' statement. Skipping..\n"
;
if (opt_xml == '\0') {
fprintf(local_f60,
"--\n-- WARNING: old server version. The following dump may be incomplete.\n--\n");
if (opt_compact != '\0') {
fprintf(local_f60,"/*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/;\n");
}
if (opt_drop_trigger != '\0') {
fprintf(local_f60,"/*!50032 DROP TRIGGER IF EXISTS %s */;\n",*(int8 *)*local_f70);
}
fprintf(local_f60,"DELIMITER ;;\n/*!50003 SET SESSION SQL_MODE=\"%s\" */;;\n/*!50003 CREATE */ "
,*(int8 *)(*local_f70 + 0x30));
uVar3 = mysql_num_fields(local_f68);
if (7 < uVar3) {
uVar5 = *(int8 *)(*local_f70 + 0x38);
sVar4 = strlen(*(char **)(*local_f70 + 0x38));
parse_user(uVar5,sVar4,local_838,local_f90,local_d48,local_f98);
pFVar2 = local_f60;
uVar5 = quote_name(local_838,local_c48,0);
uVar6 = quote_name(local_d48,local_f58,0);
fprintf(pFVar2,"/*!50017 DEFINER=%s@%s */ ",uVar5,uVar6);
}
pFVar2 = local_f60;
uVar7 = quote_name(*(int8 *)*local_f70,local_628,0);
uVar1 = local_f80;
uVar5 = *(int8 *)(*local_f70 + 0x20);
uVar6 = *(int8 *)(*local_f70 + 8);
pcVar8 = strchr(" \t\n\r",(int)**(char **)(*local_f70 + 0x18));
pcVar9 = " ";
if (pcVar8 != (char *)0x0) {
pcVar9 = &DAT_001dcb4c;
}
fprintf(pFVar2,"/*!50003 TRIGGER %s %s %s ON %s FOR EACH ROW%s%s */;;\nDELIMITER ;\n",uVar7,
uVar5,uVar6,uVar1,pcVar9,*(int8 *)(*local_f70 + 0x18));
if (opt_compact != '\0') {
fprintf(local_f60,"/*!50003 SET SESSION SQL_MODE=@OLD_SQL_MODE */;\n");
}
}
else {
sVar4 = strlen(
"\nWarning! mysqldump being run against old server that does not\nsupport \'SHOW CREATE TRIGGER\' statement. Skipping..\n"
);
print_xml_comment(pFVar2,sVar4,local_f88);
check_io(local_f60);
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
23,252 | maria_enable_indexes | eloqsql/storage/maria/ma_open.c | int maria_enable_indexes(MARIA_HA *info)
{
int error= 0;
MARIA_SHARE *share= info->s;
DBUG_ENTER("maria_enable_indexes");
if ((share->state.state.data_file_length !=
(share->data_file_type == BLOCK_RECORD ? share->block_size : 0)) ||
(share->state.state.key_file_length != share->base.keystart))
{
DBUG_PRINT("error", ("data_file_length: %lu key_file_length: %lu",
(ulong) share->state.state.data_file_length,
(ulong) share->state.state.key_file_length));
_ma_set_fatal_error(info, HA_ERR_CRASHED);
error= HA_ERR_CRASHED;
}
else
maria_set_all_keys_active(share->state.key_map, share->base.keys);
DBUG_RETURN(error);
} | O3 | c | maria_enable_indexes:
movq (%rdi), %rax
movq 0x40(%rax), %rcx
cmpl $0x3, 0x7d0(%rax)
jne 0x55c7b
movl 0x7bc(%rax), %edx
jmp 0x55c7d
xorl %edx, %edx
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq %rdx, %rcx
jne 0x55cc1
movq 0x38(%rax), %rcx
cmpq 0x360(%rax), %rcx
jne 0x55cc1
movl 0x3e8(%rax), %ecx
movq $-0x1, %rdx
shlq %cl, %rdx
movq $-0x1, %rsi
cmpl $0x40, %ecx
notq %rdx
cmovaeq %rsi, %rdx
movq %rdx, 0x140(%rax)
xorl %ebx, %ebx
jmp 0x55cd0
movl $0x7e, %ebx
movl $0x7e, %esi
callq 0x36930
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| maria_enable_indexes:
mov rax, [rdi]
mov rcx, [rax+40h]
cmp dword ptr [rax+7D0h], 3
jnz short loc_55C7B
mov edx, [rax+7BCh]
jmp short loc_55C7D
loc_55C7B:
xor edx, edx
loc_55C7D:
push rbp
mov rbp, rsp
push rbx
push rax
cmp rcx, rdx
jnz short loc_55CC1
mov rcx, [rax+38h]
cmp rcx, [rax+360h]
jnz short loc_55CC1
mov ecx, [rax+3E8h]
mov rdx, 0FFFFFFFFFFFFFFFFh
shl rdx, cl
mov rsi, 0FFFFFFFFFFFFFFFFh
cmp ecx, 40h ; '@'
not rdx
cmovnb rdx, rsi
mov [rax+140h], rdx
xor ebx, ebx
jmp short loc_55CD0
loc_55CC1:
mov ebx, 7Eh ; '~'
mov esi, 7Eh ; '~'
call _ma_set_fatal_error
loc_55CD0:
mov eax, ebx
add rsp, 8
pop rbx
pop rbp
retn
| long long maria_enable_indexes(_DWORD *a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v6; // rax
long long v7; // rcx
long long v8; // rdx
unsigned int v9; // ecx
long long v10; // rdx
unsigned int v11; // ebx
v6 = *(_QWORD *)a1;
v7 = *(_QWORD *)(*(_QWORD *)a1 + 64LL);
if ( *(_DWORD *)(*(_QWORD *)a1 + 2000LL) == 3 )
v8 = *(unsigned int *)(v6 + 1980);
else
v8 = 0LL;
if ( v7 == v8 && (v7 = *(_QWORD *)(v6 + 56), v7 == *(_QWORD *)(v6 + 864)) )
{
v9 = *(_DWORD *)(v6 + 1000);
v10 = ~(-1LL << v9);
if ( v9 >= 0x40 )
v10 = -1LL;
*(_QWORD *)(v6 + 320) = v10;
return 0;
}
else
{
v11 = 126;
ma_set_fatal_error(a1, 126LL, v8, v7, a5, a6);
}
return v11;
}
| maria_enable_indexes:
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0x40]
CMP dword ptr [RAX + 0x7d0],0x3
JNZ 0x00155c7b
MOV EDX,dword ptr [RAX + 0x7bc]
JMP 0x00155c7d
LAB_00155c7b:
XOR EDX,EDX
LAB_00155c7d:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
CMP RCX,RDX
JNZ 0x00155cc1
MOV RCX,qword ptr [RAX + 0x38]
CMP RCX,qword ptr [RAX + 0x360]
JNZ 0x00155cc1
MOV ECX,dword ptr [RAX + 0x3e8]
MOV RDX,-0x1
SHL RDX,CL
MOV RSI,-0x1
CMP ECX,0x40
NOT RDX
CMOVNC RDX,RSI
MOV qword ptr [RAX + 0x140],RDX
XOR EBX,EBX
JMP 0x00155cd0
LAB_00155cc1:
MOV EBX,0x7e
MOV ESI,0x7e
CALL 0x00136930
LAB_00155cd0:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 maria_enable_indexes(long *param_1)
{
long lVar1;
ulong uVar2;
int8 uVar3;
lVar1 = *param_1;
if (*(int *)(lVar1 + 2000) == 3) {
uVar2 = (ulong)*(uint *)(lVar1 + 0x7bc);
}
else {
uVar2 = 0;
}
if ((*(ulong *)(lVar1 + 0x40) == uVar2) && (*(long *)(lVar1 + 0x38) == *(long *)(lVar1 + 0x360)))
{
uVar2 = ~(-1L << ((byte)*(uint *)(lVar1 + 1000) & 0x3f));
if (0x3f < *(uint *)(lVar1 + 1000)) {
uVar2 = 0xffffffffffffffff;
}
*(ulong *)(lVar1 + 0x140) = uVar2;
uVar3 = 0;
}
else {
uVar3 = 0x7e;
_ma_set_fatal_error(param_1,0x7e);
}
return uVar3;
}
| |
23,253 | translog_fixed_length_header | eloqsql/storage/maria/ma_loghandler.c | static int translog_fixed_length_header(uchar *page,
translog_size_t page_offset,
TRANSLOG_HEADER_BUFFER *buff)
{
struct st_log_record_type_descriptor *desc=
log_record_type_descriptor + buff->type;
uchar *src= page + page_offset + 3;
uchar *dst= buff->header;
uchar *start= src;
int lsns= desc->compressed_LSN;
uint length= desc->fixed_length;
DBUG_ENTER("translog_fixed_length_header");
buff->record_length= length;
if (desc->rclass == LOGRECTYPE_PSEUDOFIXEDLENGTH)
{
DBUG_ASSERT(lsns > 0);
src= translog_relative_LSN_decode(buff->lsn, src, dst, lsns);
lsns*= LSN_STORE_SIZE;
dst+= lsns;
length-= lsns;
buff->compressed_LSN_economy= (lsns - (int) (src - start));
}
else
buff->compressed_LSN_economy= 0;
memcpy(dst, src, length);
buff->non_header_data_start_offset= (uint16) (page_offset +
((src + length) -
(page + page_offset)));
buff->non_header_data_len= 0;
DBUG_RETURN(buff->record_length);
} | O0 | c | translog_fixed_length_header:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x420(%rax), %eax
movl %eax, %ecx
leaq 0x44d13a(%rip), %rax # 0x47eb90
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addq %rcx, %rax
addq $0x3, %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movswl 0x20(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rax
movzwl 0x4(%rax), %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x20(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x31b12
jmp 0x31ab2
jmp 0x31ab4
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x3c(%rbp), %ecx
callq 0x38750
movq %rax, -0x28(%rbp)
imull $0x7, -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movl -0x3c(%rbp), %ecx
movl -0x40(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rdx
subq %rdx, %rcx
subl %ecx, %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x430(%rax)
jmp 0x31b1f
movq -0x18(%rbp), %rax
movw $0x0, 0x430(%rax)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x40(%rbp), %eax
movl %eax, %edx
callq 0x2a0b0
movl -0xc(%rbp), %eax
movq -0x28(%rbp), %rcx
movl -0x40(%rbp), %edx
addq %rdx, %rcx
movq -0x8(%rbp), %rdx
movl -0xc(%rbp), %esi
addq %rsi, %rdx
subq %rdx, %rcx
addq %rcx, %rax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x432(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0x434(%rax)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
| translog_fixed_length_header:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov rax, [rbp+var_18]
mov eax, [rax+420h]
mov ecx, eax
lea rax, log_record_type_descriptor
imul rcx, 48h ; 'H'
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
add rax, rcx
add rax, 3
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
add rax, 18h
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
movsx eax, word ptr [rax+20h]
mov [rbp+var_3C], eax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+4]
mov [rbp+var_40], eax
mov ecx, [rbp+var_40]
mov rax, [rbp+var_18]
mov [rax+14h], ecx
mov rax, [rbp+var_20]
cmp dword ptr [rax], 2
jnz short loc_31B12
jmp short $+2
loc_31AB2:
jmp short $+2
loc_31AB4:
mov rax, [rbp+var_18]
mov rdi, [rax]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
mov ecx, [rbp+var_3C]
call translog_relative_LSN_decode
mov [rbp+var_28], rax
imul eax, [rbp+var_3C], 7
mov [rbp+var_3C], eax
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_30]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_30], rax
mov ecx, [rbp+var_3C]
mov eax, [rbp+var_40]
sub eax, ecx
mov [rbp+var_40], eax
mov eax, [rbp+var_3C]
mov rcx, [rbp+var_28]
mov rdx, [rbp+var_38]
sub rcx, rdx
sub eax, ecx
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+430h], cx
jmp short loc_31B1F
loc_31B12:
mov rax, [rbp+var_18]
mov word ptr [rax+430h], 0
loc_31B1F:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_28]
mov eax, [rbp+var_40]
mov edx, eax
call _memcpy
mov eax, [rbp+var_C]
mov rcx, [rbp+var_28]
mov edx, [rbp+var_40]
add rcx, rdx
mov rdx, [rbp+var_8]
mov esi, [rbp+var_C]
add rdx, rsi
sub rcx, rdx
add rax, rcx
mov cx, ax
mov rax, [rbp+var_18]
mov [rax+432h], cx
mov rax, [rbp+var_18]
mov word ptr [rax+434h], 0
mov rax, [rbp+var_18]
mov eax, [rax+14h]
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
add rsp, 50h
pop rbp
retn
| long long translog_fixed_length_header(long long a1, unsigned int a2, long long a3)
{
unsigned int v4; // [rsp+10h] [rbp-40h]
unsigned int v5; // [rsp+14h] [rbp-3Ch]
int v6; // [rsp+14h] [rbp-3Ch]
long long v7; // [rsp+20h] [rbp-30h]
long long v8; // [rsp+28h] [rbp-28h]
_DWORD *v9; // [rsp+30h] [rbp-20h]
v9 = &log_record_type_descriptor[18 * *(unsigned int *)(a3 + 1056)];
v8 = a2 + a1 + 3;
v7 = a3 + 24;
v5 = *((__int16 *)v9 + 16);
v4 = *((unsigned __int16 *)v9 + 2);
*(_DWORD *)(a3 + 20) = v4;
if ( *v9 == 2 )
{
v8 = translog_relative_LSN_decode(*(_QWORD *)a3, v8, v7, v5);
v6 = 7 * v5;
v7 += v6;
v4 -= v6;
*(_WORD *)(a3 + 1072) = v6 - (v8 - (a2 + a1 + 3));
}
else
{
*(_WORD *)(a3 + 1072) = 0;
}
memcpy(v7, v8, v4);
*(_WORD *)(a3 + 1074) = v4 + v8 - a1;
*(_WORD *)(a3 + 1076) = 0;
return *(unsigned int *)(a3 + 20);
}
| translog_fixed_length_header:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x420]
MOV ECX,EAX
LEA RAX,[0x57eb90]
IMUL RCX,RCX,0x48
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
ADD RAX,RCX
ADD RAX,0x3
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,word ptr [RAX + 0x20]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x40],EAX
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x14],ECX
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX],0x2
JNZ 0x00131b12
JMP 0x00131ab2
LAB_00131ab2:
JMP 0x00131ab4
LAB_00131ab4:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x3c]
CALL 0x00138750
MOV qword ptr [RBP + -0x28],RAX
IMUL EAX,dword ptr [RBP + -0x3c],0x7
MOV dword ptr [RBP + -0x3c],EAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV EAX,dword ptr [RBP + -0x40]
SUB EAX,ECX
MOV dword ptr [RBP + -0x40],EAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
SUB RCX,RDX
SUB EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x430],CX
JMP 0x00131b1f
LAB_00131b12:
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x430],0x0
LAB_00131b1f:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x40]
MOV EDX,EAX
CALL 0x0012a0b0
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x40]
ADD RCX,RDX
MOV RDX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
ADD RDX,RSI
SUB RCX,RDX
ADD RAX,RCX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x432],CX
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x434],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
ADD RSP,0x50
POP RBP
RET
|
int4 translog_fixed_length_header(long param_1,uint param_2,int8 *param_3)
{
int iVar1;
void *pvVar2;
long lVar3;
uint local_48;
int8 *local_38;
void *local_30;
lVar3 = (ulong)*(uint *)(param_3 + 0x84) * 0x48;
local_30 = (void *)(param_1 + (ulong)param_2 + 3);
local_38 = param_3 + 3;
iVar1 = (int)*(short *)(log_record_type_descriptor + lVar3 + 0x20);
local_48 = (uint)*(ushort *)(log_record_type_descriptor + lVar3 + 4);
*(uint *)((long)param_3 + 0x14) = local_48;
if (*(int *)(log_record_type_descriptor + lVar3) == 2) {
pvVar2 = (void *)translog_relative_LSN_decode(*param_3,local_30,local_38,iVar1);
local_38 = (int8 *)((long)local_38 + (long)(iVar1 * 7));
local_48 = local_48 + iVar1 * -7;
*(short *)(param_3 + 0x86) = (short)(iVar1 * 7) - ((short)pvVar2 - (short)local_30);
local_30 = pvVar2;
}
else {
*(int2 *)(param_3 + 0x86) = 0;
}
memcpy(local_38,local_30,(ulong)local_48);
*(short *)((long)param_3 + 0x432) = ((short)local_30 + (short)local_48) - (short)param_1;
*(int2 *)((long)param_3 + 0x434) = 0;
return *(int4 *)((long)param_3 + 0x14);
}
| |
23,254 | stbi__fopen(char const*, char const*) | SDL3Lite/dependencies/stb_image.h | static FILE *stbi__fopen(char const *filename, char const *mode)
{
FILE *f;
#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8)
wchar_t wMode[64];
wchar_t wFilename[1024];
if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename)/sizeof(*wFilename)))
return 0;
if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, mode, -1, wMode, sizeof(wMode)/sizeof(*wMode)))
return 0;
#if defined(_MSC_VER) && _MSC_VER >= 1400
if (0 != _wfopen_s(&f, wFilename, wMode))
f = 0;
#else
f = _wfopen(wFilename, wMode);
#endif
#elif defined(_MSC_VER) && _MSC_VER >= 1400
if (0 != fopen_s(&f, filename, mode))
f=0;
#else
f = fopen(filename, mode);
#endif
return f;
} | O0 | c | stbi__fopen(char const*, char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1a300
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ZL11stbi__fopenPKcS0_:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _fopen
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
add rsp, 20h
pop rbp
retn
| long long stbi__fopen(const char *a1, const char *a2)
{
return fopen(a1, a2);
}
| stbi__fopen:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0011a300
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x20
POP RBP
RET
|
/* stbi__fopen(char const*, char const*) */
FILE * stbi__fopen(char *param_1,char *param_2)
{
FILE *pFVar1;
pFVar1 = fopen(param_1,param_2);
return pFVar1;
}
| |
23,255 | 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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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::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>&)>, bool, bool) | hkr04[P]cpp-mcp/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | O0 | 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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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::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>&)>, bool, bool):
subq $0x158, %rsp # imm = 0x158
movq %rdx, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movb %r8b, %al
movq %rdi, %r8
movq %r8, 0x18(%rsp)
movq %rdi, 0x150(%rsp)
movq %rsi, 0x148(%rsp)
movq %rdx, 0x140(%rsp)
andb $0x1, %cl
movb %cl, 0x13f(%rsp)
andb $0x1, %al
movb %al, 0x13e(%rsp)
movb $0x0, 0x13d(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0x779f0
movq 0x148(%rsp), %rdi
callq 0xbc860
movq %rdx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
jmp 0x94b01
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xbc890
jmp 0x94b26
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movzbl 0x13e(%rsp), %r9d
movzbl 0x13f(%rsp), %r8d
andl $0x1, %r8d
andl $0x1, %r9d
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rcx
callq 0xbc780
jmp 0x94b5b
movq 0x10(%rsp), %rdx
leaq 0x70(%rsp), %rdi
movl $0x1, %esi
callq 0xbc940
jmp 0x94b71
leaq 0x70(%rsp), %rdi
callq 0xbd020
leaq 0x30(%rsp), %rdi
callq 0x94c50
movb $0x1, 0x13d(%rsp)
testb $0x1, 0x13d(%rsp)
jne 0x94be7
jmp 0x94bdd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x94bf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x94bd1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xbd020
leaq 0x30(%rsp), %rdi
callq 0x94c50
jmp 0x94bf4
movq 0x10(%rsp), %rdi
callq 0x13240
movq 0x18(%rsp), %rax
addq $0x158, %rsp # imm = 0x158
retq
movq 0x10(%rsp), %rdi
callq 0x13240
movq 0x58(%rsp), %rdi
callq 0xce40
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
sub rsp, 158h
mov [rsp+158h+var_150], rdx
mov [rsp+158h+var_148], rdi
mov al, r8b
mov r8, rdi
mov [rsp+158h+var_140], r8
mov [rsp+158h+var_8], rdi
mov [rsp+158h+var_10], rsi
mov [rsp+158h+var_18], rdx
and cl, 1
mov [rsp+158h+var_19], cl
and al, 1
mov [rsp+158h+var_1A], al
mov [rsp+158h+var_1B], 0
xor eax, eax
mov esi, eax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr))
mov rdi, [rsp+158h+var_10]
call _ZN8nlohmann16json_abi_v3_11_36detail13input_adapterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS1_36container_input_adapter_factory_impl31container_input_adapter_factoryIT_vE12adapter_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::input_adapter<std::string>(std::string const&)
mov [rsp+158h+var_138], rdx
mov [rsp+158h+var_130], rax
jmp short $+2
loc_94B01:
mov rsi, [rsp+158h+var_150]
mov rax, [rsp+158h+var_138]
mov rcx, [rsp+158h+var_130]
mov [rsp+158h+var_F8], rcx
mov [rsp+158h+var_F0], rax
lea rdi, [rsp+158h+var_128]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&)
jmp short $+2
loc_94B26:
mov rsi, [rsp+158h+var_F8]
mov rdx, [rsp+158h+var_F0]
movzx r9d, [rsp+158h+var_1A]
movzx r8d, [rsp+158h+var_19]
and r8d, 1
and r9d, 1
lea rdi, [rsp+158h+var_E8]
lea rcx, [rsp+158h+var_128]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,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>&)>,bool,bool)
jmp short $+2
loc_94B5B:
mov rdx, [rsp+158h+var_148]
lea rdi, [rsp+158h+var_E8]
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; 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,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>>>::parse(bool,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_94B71:
lea rdi, [rsp+158h+var_E8]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; 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,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>>>::~parser()
lea rdi, [rsp+158h+var_128]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; 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> &)>::~function()
mov [rsp+158h+var_1B], 1
test [rsp+158h+var_1B], 1
jnz short loc_94BE7
jmp short loc_94BDD
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_94BF4
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_94BD1
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_68]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; 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,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>>>::~parser()
loc_94BD1:
lea rdi, [rsp+arg_28]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; 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> &)>::~function()
jmp short loc_94BF4
loc_94BDD:
mov rdi, [rsp+158h+var_148]
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_94BE7:
mov rax, [rsp+158h+var_140]
add rsp, 158h
retn
loc_94BF4:
mov rdi, [rsp+arg_8]
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 rdi, [rsp+arg_50]
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string const&>(
long long a1,
long long a2,
long long a3,
char a4,
char a5)
{
long long v5; // rdx
int v6; // r8d
int v7; // r9d
int v9; // [rsp+8h] [rbp-150h]
_BYTE v10[48]; // [rsp+30h] [rbp-128h] BYREF
long long v11; // [rsp+60h] [rbp-F8h]
long long v12; // [rsp+68h] [rbp-F0h]
_BYTE v13[206]; // [rsp+70h] [rbp-E8h] BYREF
char v14; // [rsp+13Eh] [rbp-1Ah]
char v15; // [rsp+13Fh] [rbp-19h]
long long v16; // [rsp+140h] [rbp-18h]
long long v17; // [rsp+148h] [rbp-10h]
long long v18; // [rsp+150h] [rbp-8h]
v9 = a3;
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4 & 1;
v14 = a5 & 1;
v13[205] = 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(a1);
v11 = nlohmann::json_abi_v3_11_3::detail::input_adapter<std::string>(a2, 0LL);
v12 = v5;
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> &)>::function(
(unsigned int)v10,
v9,
v5,
v11,
v6,
v7);
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(unsigned int)v13,
v11,
v12,
(unsigned int)v10,
v15 & 1,
v14 & 1);
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>>>::parse(
v13,
1LL,
a1);
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>>>::~parser(v13);
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> &)>::~function(v10);
return a1;
}
| parse<std::__cxx11::string_const&>:
SUB RSP,0x158
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],RDI
MOV AL,R8B
MOV R8,RDI
MOV qword ptr [RSP + 0x18],R8
MOV qword ptr [RSP + 0x150],RDI
MOV qword ptr [RSP + 0x148],RSI
MOV qword ptr [RSP + 0x140],RDX
AND CL,0x1
MOV byte ptr [RSP + 0x13f],CL
AND AL,0x1
MOV byte ptr [RSP + 0x13e],AL
MOV byte ptr [RSP + 0x13d],0x0
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001779f0
MOV RDI,qword ptr [RSP + 0x148]
LAB_00194af0:
CALL 0x001bc860
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x28],RAX
JMP 0x00194b01
LAB_00194b01:
MOV RSI,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x60],RCX
MOV qword ptr [RSP + 0x68],RAX
LEA RDI,[RSP + 0x30]
CALL 0x001bc890
JMP 0x00194b26
LAB_00194b26:
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
MOVZX R9D,byte ptr [RSP + 0x13e]
MOVZX R8D,byte ptr [RSP + 0x13f]
LAB_00194b42:
AND R8D,0x1
AND R9D,0x1
LEA RDI,[RSP + 0x70]
LEA RCX,[RSP + 0x30]
CALL 0x001bc780
JMP 0x00194b5b
LAB_00194b5b:
MOV RDX,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x70]
MOV ESI,0x1
CALL 0x001bc940
LAB_00194b6f:
JMP 0x00194b71
LAB_00194b71:
LEA RDI,[RSP + 0x70]
CALL 0x001bd020
LEA RDI,[RSP + 0x30]
CALL 0x00194c50
MOV byte ptr [RSP + 0x13d],0x1
TEST byte ptr [RSP + 0x13d],0x1
JNZ 0x00194be7
JMP 0x00194bdd
LAB_00194bdd:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00113240
LAB_00194be7:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x158
RET
|
/* WARNING: Removing unreachable block (ram,0x00194b97) */
/* 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::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>::parse<std::__cxx11::string const&>(std::__cxx11::string const&,
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>&)>, bool, bool) */
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::
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>
::parse<std::__cxx11::string_const&>
(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,function *param_3,byte param_4,byte param_5)
{
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>&)>
local_128 [48];
int1 local_f8 [16];
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>>>
local_e8 [205];
int1 local_1b;
byte local_1a;
byte local_19;
function *local_18;
string *local_10;
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_8;
local_19 = param_4 & 1;
local_1a = param_5 & 1;
local_1b = 0;
local_18 = param_3;
local_10 = param_1;
local_8 = this;
basic_json((_func_decltype_nullptr *)this);
/* try { // try from 00194af0 to 00194b23 has its CatchHandler @ 00194b99 */
local_f8 = detail::input_adapter<std::__cxx11::string>(local_10);
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>&)>
::function(local_128,param_3);
/* try { // try from 00194b42 to 00194b58 has its CatchHandler @ 00194ba9 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_e8,local_f8._0_8_,local_f8._8_8_,local_128,local_19 & 1,local_1a & 1);
/* try { // try from 00194b5b to 00194b6e has its CatchHandler @ 00194bb9 */
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>>>
::parse(local_e8,true,(basic_json *)this);
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>>>
::~parser(local_e8);
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>&)>
::~function(local_128);
return this;
}
| |
23,256 | compute_jsstring_size | bluesky950520[P]quickjs/quickjs.c | static void compute_jsstring_size(JSString *str, JSMemoryUsage_helper *hp)
{
if (!str->atom_type) { /* atoms are handled separately */
double s_ref_count = str->header.ref_count;
hp->str_count += 1 / s_ref_count;
hp->str_size += ((sizeof(*str) + (str->len << str->is_wide_char) +
1 - str->is_wide_char) / s_ref_count);
}
} | O0 | c | compute_jsstring_size:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq 0x4(%rax), %rax
shrq $0x3e, %rax
cmpb $0x0, %al
jne 0x2c344
movq -0x8(%rsp), %rax
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, -0x18(%rsp)
movsd -0x18(%rsp), %xmm0
movsd 0xe1564(%rip), %xmm1 # 0x10d830
divsd %xmm0, %xmm1
movq -0x10(%rsp), %rax
movsd 0x8(%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rax)
movq -0x8(%rsp), %rax
movl 0x4(%rax), %ecx
movl %ecx, %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
shrl $0x1f, %ecx
movl %ecx, -0x1c(%rsp)
shll %cl, %eax
movl -0x1c(%rsp), %ecx
cltq
subq %rcx, %rax
addq $0x19, %rax
movq %rax, %xmm0
movaps 0xe161c(%rip), %xmm1 # 0x10d930
punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xe1620(%rip), %xmm1 # 0x10d940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
divsd -0x18(%rsp), %xmm0
movq -0x10(%rsp), %rax
addsd 0x10(%rax), %xmm0
movsd %xmm0, 0x10(%rax)
retq
nopw %cs:(%rax,%rax)
| compute_jsstring_size:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov rax, [rsp+var_8]
mov rax, [rax+4]
shr rax, 3Eh
cmp al, 0
jnz locret_2C344
mov rax, [rsp+var_8]
cvtsi2sd xmm0, dword ptr [rax]
movsd [rsp+var_18], xmm0
movsd xmm0, [rsp+var_18]
movsd xmm1, cs:qword_10D830
divsd xmm1, xmm0
mov rax, [rsp+var_10]
movsd xmm0, qword ptr [rax+8]
addsd xmm0, xmm1
movsd qword ptr [rax+8], xmm0
mov rax, [rsp+var_8]
mov ecx, [rax+4]
mov eax, ecx
and eax, 7FFFFFFFh
shr ecx, 1Fh
mov [rsp+var_1C], ecx
shl eax, cl
mov ecx, [rsp+var_1C]
cdqe
sub rax, rcx
add rax, 19h
movq xmm0, rax
movaps xmm1, cs:xmmword_10D930
punpckldq xmm0, xmm1
movapd xmm1, cs:xmmword_10D940
subpd xmm0, xmm1
movaps xmm1, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm1
divsd xmm0, [rsp+var_18]
mov rax, [rsp+var_10]
addsd xmm0, qword ptr [rax+10h]
movsd qword ptr [rax+10h], xmm0
locret_2C344:
retn
| long long compute_jsstring_size(long long a1, long long a2)
{
long long result; // rax
__m128d v3; // xmm1
double v4; // [rsp+4h] [rbp-18h]
result = *(_QWORD *)(a1 + 4) >> 62;
if ( !(_BYTE)result )
{
v4 = (double)*(int *)a1;
*(double *)(a2 + 8) = *(double *)(a2 + 8) + 1.0 / v4;
v3 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(
(__m128i)(((*(_DWORD *)(a1 + 4) & 0x7FFFFFFF) << (*(int *)(a1 + 4) < 0))
- (unsigned long long)(*(_DWORD *)(a1 + 4) >> 31)
+ 25),
(__m128i)xmmword_10D930),
(__m128d)xmmword_10D940);
result = a2;
*(double *)(a2 + 16) = (_mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]) / v4 + *(double *)(a2 + 16);
}
return result;
}
| compute_jsstring_size:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV RAX,qword ptr [RSP + -0x8]
MOV RAX,qword ptr [RAX + 0x4]
SHR RAX,0x3e
CMP AL,0x0
JNZ 0x0012c344
MOV RAX,qword ptr [RSP + -0x8]
CVTSI2SD XMM0,dword ptr [RAX]
MOVSD qword ptr [RSP + -0x18],XMM0
MOVSD XMM0,qword ptr [RSP + -0x18]
MOVSD XMM1,qword ptr [0x0020d830]
DIVSD XMM1,XMM0
MOV RAX,qword ptr [RSP + -0x10]
MOVSD XMM0,qword ptr [RAX + 0x8]
ADDSD XMM0,XMM1
MOVSD qword ptr [RAX + 0x8],XMM0
MOV RAX,qword ptr [RSP + -0x8]
MOV ECX,dword ptr [RAX + 0x4]
MOV EAX,ECX
AND EAX,0x7fffffff
SHR ECX,0x1f
MOV dword ptr [RSP + -0x1c],ECX
SHL EAX,CL
MOV ECX,dword ptr [RSP + -0x1c]
CDQE
SUB RAX,RCX
ADD RAX,0x19
MOVQ XMM0,RAX
MOVAPS XMM1,xmmword ptr [0x0020d930]
PUNPCKLDQ XMM0,XMM1
MOVAPD XMM1,xmmword ptr [0x0020d940]
SUBPD XMM0,XMM1
MOVAPS XMM1,XMM0
UNPCKHPD XMM0,XMM0
ADDSD XMM0,XMM1
DIVSD XMM0,qword ptr [RSP + -0x18]
MOV RAX,qword ptr [RSP + -0x10]
ADDSD XMM0,qword ptr [RAX + 0x10]
MOVSD qword ptr [RAX + 0x10],XMM0
LAB_0012c344:
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void compute_jsstring_size(int *param_1,long param_2)
{
int iVar1;
uint uVar2;
long lVar3;
int1 auVar4 [16];
if ((byte)((ulong)*(int8 *)(param_1 + 1) >> 0x3e) == 0) {
iVar1 = *param_1;
*(double *)(param_2 + 8) = *(double *)(param_2 + 8) + DAT_0020d830 / (double)iVar1;
uVar2 = param_1[1];
lVar3 = ((long)(int)((uVar2 & 0x7fffffff) << (byte)(uVar2 >> 0x1f)) - (ulong)(uVar2 >> 0x1f)) +
0x19;
auVar4._8_4_ = (int)((ulong)lVar3 >> 0x20);
auVar4._0_8_ = lVar3;
auVar4._12_4_ = _UNK_0020d934;
*(double *)(param_2 + 0x10) =
((auVar4._8_8_ - _UNK_0020d948) +
((double)CONCAT44(_DAT_0020d930,(int)lVar3) - _DAT_0020d940)) / (double)iVar1 +
*(double *)(param_2 + 0x10);
}
return;
}
| |
23,257 | compute_jsstring_size | bluesky950520[P]quickjs/quickjs.c | static void compute_jsstring_size(JSString *str, JSMemoryUsage_helper *hp)
{
if (!str->atom_type) { /* atoms are handled separately */
double s_ref_count = str->header.ref_count;
hp->str_count += 1 / s_ref_count;
hp->str_size += ((sizeof(*str) + (str->len << str->is_wide_char) +
1 - str->is_wide_char) / s_ref_count);
}
} | O2 | c | compute_jsstring_size:
movq 0x4(%rdi), %rax
shrq $0x3e, %rax
jne 0x1be73
cvtsi2sdl (%rdi), %xmm0
movsd 0x6999b(%rip), %xmm1 # 0x857b0
divsd %xmm0, %xmm1
addsd 0x8(%rsi), %xmm1
movsd %xmm1, 0x8(%rsi)
movl 0x4(%rdi), %eax
movl %eax, %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
movl %eax, %ecx
shrl $0x1f, %ecx
shll %cl, %edx
movslq %edx, %rcx
btl $0x1f, %eax
sbbq $0x0, %rcx
addq $0x19, %rcx
movq %rcx, %xmm1
punpckldq 0x6988f(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x69897(%rip), %xmm1 # 0x856f0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm0, %xmm2
addsd 0x10(%rsi), %xmm2
movsd %xmm2, 0x10(%rsi)
retq
| compute_jsstring_size:
mov rax, [rdi+4]
shr rax, 3Eh
jnz short locret_1BE73
cvtsi2sd xmm0, dword ptr [rdi]
movsd xmm1, cs:qword_857B0
divsd xmm1, xmm0
addsd xmm1, qword ptr [rsi+8]
movsd qword ptr [rsi+8], xmm1
mov eax, [rdi+4]
mov edx, eax
and edx, 7FFFFFFFh
mov ecx, eax
shr ecx, 1Fh
shl edx, cl
movsxd rcx, edx
bt eax, 1Fh
sbb rcx, 0
add rcx, 19h
movq xmm1, rcx
punpckldq xmm1, cs:xmmword_856E0
subpd xmm1, cs:xmmword_856F0
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
addsd xmm2, qword ptr [rsi+10h]
movsd qword ptr [rsi+10h], xmm2
locret_1BE73:
retn
| long long compute_jsstring_size(long long a1, long long a2)
{
long long result; // rax
double v3; // xmm0_8
__m128d v4; // xmm1
result = *(_QWORD *)(a1 + 4) >> 62;
if ( !result )
{
v3 = (double)*(int *)a1;
*(double *)(a2 + 8) = 1.0 / v3 + *(double *)(a2 + 8);
result = *(unsigned int *)(a1 + 4);
v4 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(
(__m128i)(((*(_DWORD *)(a1 + 4) & 0x7FFFFFFF) << (*(int *)(a1 + 4) < 0))
- (unsigned long long)((int)result < 0)
+ 25),
(__m128i)xmmword_856E0),
(__m128d)xmmword_856F0);
*(double *)(a2 + 16) = (_mm_unpackhi_pd(v4, v4).m128d_f64[0] + v4.m128d_f64[0]) / v3 + *(double *)(a2 + 16);
}
return result;
}
| compute_jsstring_size:
MOV RAX,qword ptr [RDI + 0x4]
SHR RAX,0x3e
JNZ 0x0011be73
CVTSI2SD XMM0,dword ptr [RDI]
MOVSD XMM1,qword ptr [0x001857b0]
DIVSD XMM1,XMM0
ADDSD XMM1,qword ptr [RSI + 0x8]
MOVSD qword ptr [RSI + 0x8],XMM1
MOV EAX,dword ptr [RDI + 0x4]
MOV EDX,EAX
AND EDX,0x7fffffff
MOV ECX,EAX
SHR ECX,0x1f
SHL EDX,CL
MOVSXD RCX,EDX
BT EAX,0x1f
SBB RCX,0x0
ADD RCX,0x19
MOVQ XMM1,RCX
PUNPCKLDQ XMM1,xmmword ptr [0x001856e0]
SUBPD XMM1,xmmword ptr [0x001856f0]
MOVAPD XMM2,XMM1
UNPCKHPD XMM2,XMM1
ADDSD XMM2,XMM1
DIVSD XMM2,XMM0
ADDSD XMM2,qword ptr [RSI + 0x10]
MOVSD qword ptr [RSI + 0x10],XMM2
LAB_0011be73:
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void compute_jsstring_size(int *param_1,long param_2)
{
int iVar1;
uint uVar2;
long lVar3;
int1 auVar4 [16];
if (*(ulong *)(param_1 + 1) >> 0x3e == 0) {
iVar1 = *param_1;
*(double *)(param_2 + 8) = DAT_001857b0 / (double)iVar1 + *(double *)(param_2 + 8);
uVar2 = param_1[1];
lVar3 = ((long)(int)((uVar2 & 0x7fffffff) << (byte)(uVar2 >> 0x1f)) - (ulong)((int)uVar2 < 0)) +
0x19;
auVar4._8_4_ = (int)((ulong)lVar3 >> 0x20);
auVar4._0_8_ = lVar3;
auVar4._12_4_ = _UNK_001856e4;
*(double *)(param_2 + 0x10) =
((auVar4._8_8_ - _UNK_001856f8) +
((double)CONCAT44(_DAT_001856e0,(int)lVar3) - _DAT_001856f0)) / (double)iVar1 +
*(double *)(param_2 + 0x10);
}
return;
}
| |
23,258 | 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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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::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>&)>, bool, bool) | llama.cpp/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | 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>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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::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>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x1, %esi
callq 0x84b96
movq %rbx, %rdi
movl $0x1, %esi
callq 0x84b96
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x84538
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x8448c
leaq 0x20(%rsp), %rdi
movl $0x1, %esi
movq %rbx, %rdx
callq 0x84596
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x84dde
movq -0x18(%r14), %rax
testq %rax, %rax
je 0xcf04d
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xcf064
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xcf0a8
jmp 0xcf0a8
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x84b68
jmp 0xcf08f
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xcf0b3
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xcf0b3
movq %rax, %rdi
callq 0x28493
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x84b96
movq %rbx, %rdi
callq 0x892b0
movq %r14, %rdi
callq 0x20af0
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov ebp, r8d
mov r14d, ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
mov byte ptr [rdi], 0
mov qword ptr [rdi+8], 0
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov r15, [r12]
mov r12, [r12+8]
mov rdi, rsp
mov rsi, r13
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F8]
mov rcx, rsp
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,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>&)>,bool,bool)
lea rdi, [rsp+118h+var_F8]; int
mov esi, 1
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; 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,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>>>::parse(bool,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>&)
lea r14, [rsp+118h+var_D0]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; 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>>>::~lexer()
mov rax, [r14-18h]
test rax, rax
jz short loc_CF04D
lea rdi, [rsp+118h+var_F8]
mov rsi, rdi
mov edx, 3
call rax
loc_CF04D:
mov rax, [rsp+118h+var_108]
test rax, rax
jz short loc_CF064
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_CF064:
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_CF0A8
jmp short loc_CF0A8
mov r14, rax
lea rdi, [rsp+118h+var_F8]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; 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,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>>>::~parser()
jmp short loc_CF08F
mov r14, rax
loc_CF08F:
mov rax, [rsp+118h+var_108]
test rax, rax
jz short loc_CF0B3
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_CF0B3
loc_CF0A8:
mov rdi, rax
call __clang_call_terminate
mov r14, rax
loc_CF0B3:
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string&>(
long long a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v8; // r15
long long v9; // r12
__int128 v11; // [rsp+0h] [rbp-118h] BYREF
void ( *v12)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-108h]
int v13[4]; // [rsp+20h] [rbp-F8h] BYREF
void ( *v14)(int *, int *, long long); // [rsp+30h] [rbp-E8h]
_QWORD v15[26]; // [rsp+48h] [rbp-D0h] BYREF
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
v8 = *a2;
v9 = a2[1];
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> &)>::function(
&v11,
a3);
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(long long)v13,
v8,
v8 + v9,
&v11,
a4,
a5);
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>>>::parse(
(long long)v13,
1,
(_BYTE *)a1);
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>>>::~lexer(v15);
if ( v14 )
v14(v13, v13, 3LL);
if ( v12 )
v12(&v11, &v11, 3LL);
return a1;
}
| parse<std::__cxx11::string&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV EBP,R8D
MOV R14D,ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
MOV byte ptr [RDI],0x0
MOV qword ptr [RDI + 0x8],0x0
MOV ESI,0x1
CALL 0x00184b96
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00184b96
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_001cefed:
MOV RDI,RSP
MOV RSI,R13
CALL 0x00184538
ADD R12,R15
LAB_001ceffb:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x0018448c
LAB_001cf016:
LEA RDI,[RSP + 0x20]
MOV ESI,0x1
MOV RDX,RBX
CALL 0x00184596
LEA R14,[RSP + 0x48]
MOV RDI,R14
CALL 0x00184dde
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x001cf04d
LAB_001cf03e:
LEA RDI,[RSP + 0x20]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001cf04d:
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001cf064
LAB_001cf057:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001cf064:
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* 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::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>::parse<std::__cxx11::string&>(std::__cxx11::string&, 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>&)>, bool, bool) */
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::
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>
::parse<std::__cxx11::string&>
(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,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
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>&)>
afStack_118 [16];
code *local_108;
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>>>
local_f8 [16];
code *local_e8;
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>>>
local_d0 [160];
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(this + 8) = 0;
assert_invariant(SUB81(this,0));
assert_invariant(SUB81(this,0));
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 001cefed to 001ceff7 has its CatchHandler @ 001cf0b0 */
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>&)>
::function(afStack_118,param_3);
/* try { // try from 001ceffb to 001cf015 has its CatchHandler @ 001cf08c */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5);
/* try { // try from 001cf016 to 001cf027 has its CatchHandler @ 001cf07d */
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>>>
::parse(local_f8,true,(basic_json *)this);
detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~lexer(local_d0);
if (local_e8 != (code *)0x0) {
/* try { // try from 001cf03e to 001cf04c has its CatchHandler @ 001cf07b */
(*local_e8)(local_f8,local_f8,3);
}
if (local_108 != (code *)0x0) {
/* try { // try from 001cf057 to 001cf063 has its CatchHandler @ 001cf079 */
(*local_108)(afStack_118,afStack_118,3);
}
return this;
}
| |
23,259 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::end_object() | msxemulator/build_O0/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::end_object():
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq 0xb0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
addq $0x8, %rdi
callq 0xdbce0
cmpq $0x0, (%rax)
je 0xdab98
movq 0x18(%rsp), %rdi
movq %rdi, %rax
addq $0x80, %rax
movq %rax, 0x8(%rsp)
addq $0x8, %rdi
callq 0xdb820
movq 0x18(%rsp), %rdi
subl $0x1, %eax
movl %eax, 0x14(%rsp)
addq $0x8, %rdi
callq 0xdbce0
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %esi
movq (%rax), %rcx
movl $0x1, %edx
callq 0xdb7c0
testb $0x1, %al
jne 0xdab80
movq 0x18(%rsp), %rsi
addq $0xa8, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x61810
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
movq (%rax), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x60520
leaq 0xa0(%rsp), %rdi
callq 0x605a0
jmp 0xdab96
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
movq (%rax), %rdi
callq 0xad4f0
jmp 0xdab98
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdcbd0
movq 0x18(%rsp), %rdi
addq $0x20, %rdi
callq 0xdb7a0
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdc130
testb $0x1, %al
jne 0xdacbf
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
cmpq $0x0, (%rax)
je 0xdacbf
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
movq (%rax), %rdi
callq 0xdcbf0
testb $0x1, %al
jne 0xdac01
jmp 0xdacbf
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
movq (%rax), %rsi
leaq 0x80(%rsp), %rdi
callq 0x62ab0
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
movq (%rax), %rsi
leaq 0x60(%rsp), %rdi
callq 0x62af0
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x62b30
testb $0x1, %al
jne 0xdac52
jmp 0xdacbd
leaq 0x80(%rsp), %rdi
callq 0xdcc30
movq %rax, %rdi
callq 0xd6400
testb $0x1, %al
jne 0xdac6d
jmp 0xdaca9
movq 0x18(%rsp), %rdi
addq $0x8, %rdi
callq 0xdbce0
movq (%rax), %rax
movq %rax, (%rsp)
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xdd2f0
movq (%rsp), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0xdcda0
jmp 0xdacbd
jmp 0xdacab
leaq 0x80(%rsp), %rdi
callq 0x632a0
jmp 0xdac1f
jmp 0xdacbf
movb $0x1, %al
andb $0x1, %al
addq $0xb8, %rsp
retq
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
sub rsp, 0B8h
mov qword ptr [rsp+0B8h+var_8], rdi; int
mov rdi, qword ptr [rsp+0B8h+var_8]
mov qword ptr [rsp+0B8h+var_A0], rdi; int
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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
jz loc_DAB98
mov rdi, qword ptr [rsp+0B8h+var_A0]
mov rax, rdi
add rax, 80h
mov [rsp+0B8h+var_B0], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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, qword ptr [rsp+0B8h+var_A0]
sub eax, 1
mov [rsp+0B8h+var_A4], eax
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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, [rsp+0B8h+var_B0]
mov esi, [rsp+0B8h+var_A4]
mov rcx, [rax]
mov edx, 1
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonISt3mapSt6vectorNSt7__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<std::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<std::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, 1
jnz short loc_DAB80
mov rsi, qword ptr [rsp+0B8h+var_A0]
add rsi, 0A8h
lea rdi, [rsp+0B8h+var_18]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<std::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<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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]
lea rsi, [rsp+0B8h+var_18]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::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<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rsp+0B8h+var_18]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::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 short loc_DAB96
loc_DAB80:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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 _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void)
loc_DAB96:
jmp short $+2
loc_DAB98:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::pop_back(void)
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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 loc_DACBF
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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
jz loc_DACBF
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE13is_structuredEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_structured(void)
test al, 1
jnz short loc_DAC01
jmp loc_DACBF
loc_DAC01:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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 rsi, [rax]
lea rdi, [rsp+0B8h+var_38]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::begin(void)
loc_DAC1F:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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 rsi, [rax]
lea rdi, [rsp+0B8h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::end(void)
lea rdi, [rsp+0B8h+var_38]; int
lea rsi, [rsp+0B8h+var_58]; void *
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, 1
jnz short loc_DAC52
jmp short loc_DACBD
loc_DAC52:
lea rdi, [rsp+0B8h+var_38]; int
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void)
mov rdi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12is_discardedEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_discarded(void)
test al, 1
jnz short loc_DAC6D
jmp short loc_DACA9
loc_DAC6D:
mov rdi, qword ptr [rsp+0B8h+var_A0]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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 [rsp+0B8h+var_B8], rax; void *
lea rdi, [rsp+0B8h+var_78]
lea rsi, [rsp+0B8h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERKSG_; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::iter_impl(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
mov rsi, [rsp+0B8h+var_B8]
lea rdi, [rsp+0B8h+var_98]; int
lea rdx, [rsp+0B8h+var_78]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
jmp short loc_DACBD
loc_DACA9:
jmp short $+2
loc_DACAB:
lea rdi, [rsp+0B8h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void)
jmp loc_DAC1F
loc_DACBD:
jmp short $+2
loc_DACBF:
mov al, 1
and al, 1
add rsp, 0B8h
retn
| end_object:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV RDI,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x18],RDI
ADD RDI,0x8
CALL 0x001dbce0
CMP qword ptr [RAX],0x0
JZ 0x001dab98
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,RDI
ADD RAX,0x80
MOV qword ptr [RSP + 0x8],RAX
ADD RDI,0x8
CALL 0x001db820
MOV RDI,qword ptr [RSP + 0x18]
SUB EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
ADD RDI,0x8
CALL 0x001dbce0
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RAX]
MOV EDX,0x1
CALL 0x001db7c0
TEST AL,0x1
JNZ 0x001dab80
MOV RSI,qword ptr [RSP + 0x18]
ADD RSI,0xa8
LEA RDI,[RSP + 0xa0]
CALL 0x00161810
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0xa0]
CALL 0x00160520
LEA RDI,[RSP + 0xa0]
CALL 0x001605a0
JMP 0x001dab96
LAB_001dab80:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
MOV RDI,qword ptr [RAX]
CALL 0x001ad4f0
LAB_001dab96:
JMP 0x001dab98
LAB_001dab98:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dcbd0
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x20
CALL 0x001db7a0
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dc130
TEST AL,0x1
JNZ 0x001dacbf
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
CMP qword ptr [RAX],0x0
JZ 0x001dacbf
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
MOV RDI,qword ptr [RAX]
CALL 0x001dcbf0
TEST AL,0x1
JNZ 0x001dac01
JMP 0x001dacbf
LAB_001dac01:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x80]
CALL 0x00162ab0
LAB_001dac1f:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x60]
CALL 0x00162af0
LEA RDI,[RSP + 0x80]
LEA RSI,[RSP + 0x60]
CALL 0x00162b30
TEST AL,0x1
JNZ 0x001dac52
JMP 0x001dacbd
LAB_001dac52:
LEA RDI,[RSP + 0x80]
CALL 0x001dcc30
MOV RDI,RAX
CALL 0x001d6400
TEST AL,0x1
JNZ 0x001dac6d
JMP 0x001daca9
LAB_001dac6d:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001dbce0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x80]
CALL 0x001dd2f0
MOV RSI,qword ptr [RSP]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x40]
CALL 0x001dcda0
JMP 0x001dacbd
LAB_001daca9:
JMP 0x001dacab
LAB_001dacab:
LEA RDI,[RSP + 0x80]
CALL 0x001632a0
JMP 0x001dac1f
LAB_001dacbd:
JMP 0x001dacbf
LAB_001dacbf:
MOV AL,0x1
AND AL,0x1
ADD RSP,0xb8
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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)
{
int8 uVar1;
int iVar2;
long *plVar3;
int8 *puVar4;
ulong uVar5;
basic_json<std::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_00;
int1 local_98 [32];
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_78 [32];
int1 local_58 [32];
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_38 [32];
basic_json<std::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 [16];
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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_8;
local_8 = this;
plVar3 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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 (*plVar3 != 0) {
iVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
uVar5 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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),iVar2 + -1,1,*puVar4);
if ((uVar5 & 1) == 0) {
basic_json<std::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_18,this + 0xa8);
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
basic_json<std::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<std::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>
*)*puVar4,local_18);
basic_json<std::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_18);
}
else {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
basic_json<std::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>
::set_parents();
}
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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>*>>
::pop_back((vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
uVar5 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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 (((uVar5 & 1) == 0) &&
(plVar3 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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)), *plVar3 != 0)) {
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
uVar5 = basic_json<std::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_structured((basic_json<std::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>
*)*puVar4);
if ((uVar5 & 1) != 0) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
basic_json<std::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>
::begin();
while( true ) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
basic_json<std::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>
::end();
uVar5 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(local_38,local_58);
if ((uVar5 & 1) == 0) break;
this_00 = (basic_json<std::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>
*)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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->(local_38);
uVar5 = basic_json<std::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_discarded(this_00);
if ((uVar5 & 1) != 0) {
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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<std::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<std::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));
uVar1 = *puVar4;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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>>
::iter_impl(local_78,(iter_impl *)local_38);
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(local_98,uVar1,local_78);
return 1;
}
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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++(local_38);
}
}
}
return 1;
}
| ||
23,260 | reset_events_statements_by_user() | eloqsql/storage/perfschema/pfs_events_statements.cc | void reset_events_statements_by_user()
{
global_user_container.apply(fct_reset_events_statements_by_user);
} | O3 | cpp | reset_events_statements_by_user():
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %r14d, %r14d
leaq 0x3982d1(%rip), %r15 # 0x3cc178
movq 0xa8(%r15,%r14,8), %rax
testq %rax, %rax
je 0x33eed
movq 0x50(%rax), %rcx
testq %rcx, %rcx
jle 0x33eed
movq 0x48(%rax), %rbx
imulq $0x9c0, %rcx, %r12 # imm = 0x9C0
addq %rbx, %r12
movl 0x7e0(%rbx), %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x33ee1
movq %rbx, %rdi
callq 0x40e48
addq $0x9c0, %rbx # imm = 0x9C0
cmpq %r12, %rbx
jb 0x33ecb
incq %r14
cmpq $0x80, %r14
jne 0x33ea7
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _Z31reset_events_statements_by_userv:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
xor r14d, r14d
lea r15, global_user_container
loc_33EA7:
mov rax, [r15+r14*8+0A8h]
test rax, rax
jz short loc_33EED
mov rcx, [rax+50h]
test rcx, rcx
jle short loc_33EED
mov rbx, [rax+48h]
imul r12, rcx, 9C0h
add r12, rbx
loc_33ECB:
mov eax, [rbx+7E0h]
and eax, 3
cmp eax, 2
jnz short loc_33EE1
mov rdi, rbx; this
call _ZN8PFS_user20aggregate_statementsEv; PFS_user::aggregate_statements(void)
loc_33EE1:
add rbx, 9C0h
cmp rbx, r12
jb short loc_33ECB
loc_33EED:
inc r14
cmp r14, 80h
jnz short loc_33EA7
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long reset_events_statements_by_user(void)
{
long long i; // r14
long long result; // rax
long long v2; // rcx
PFS_user *v3; // rbx
PFS_user *v4; // r12
for ( i = 0LL; i != 128; ++i )
{
result = global_user_container[i + 21];
if ( result )
{
v2 = *(_QWORD *)(result + 80);
if ( v2 > 0 )
{
v3 = *(PFS_user **)(result + 72);
v4 = (PFS_user *)((char *)v3 + 2496 * v2);
do
{
result = *((_DWORD *)v3 + 504) & 3;
if ( (_DWORD)result == 2 )
result = PFS_user::aggregate_statements(v3);
v3 = (PFS_user *)((char *)v3 + 2496);
}
while ( v3 < v4 );
}
}
}
return result;
}
| reset_events_statements_by_user:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
XOR R14D,R14D
LEA R15,[0x4cc178]
LAB_00133ea7:
MOV RAX,qword ptr [R15 + R14*0x8 + 0xa8]
TEST RAX,RAX
JZ 0x00133eed
MOV RCX,qword ptr [RAX + 0x50]
TEST RCX,RCX
JLE 0x00133eed
MOV RBX,qword ptr [RAX + 0x48]
IMUL R12,RCX,0x9c0
ADD R12,RBX
LAB_00133ecb:
MOV EAX,dword ptr [RBX + 0x7e0]
AND EAX,0x3
CMP EAX,0x2
JNZ 0x00133ee1
MOV RDI,RBX
CALL 0x00140e48
LAB_00133ee1:
ADD RBX,0x9c0
CMP RBX,R12
JC 0x00133ecb
LAB_00133eed:
INC R14
CMP R14,0x80
JNZ 0x00133ea7
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* reset_events_statements_by_user() */
void reset_events_statements_by_user(void)
{
long lVar1;
PFS_user *this;
PFS_user *pPVar2;
long lVar3;
lVar3 = 0;
do {
lVar1 = (&DAT_004cc220)[lVar3];
if ((lVar1 != 0) && (0 < *(long *)(lVar1 + 0x50))) {
this = *(PFS_user **)(lVar1 + 0x48);
pPVar2 = this + *(long *)(lVar1 + 0x50) * 0x9c0;
do {
if ((*(uint *)(this + 0x7e0) & 3) == 2) {
PFS_user::aggregate_statements(this);
}
this = this + 0x9c0;
} while (this < pPVar2);
}
lVar3 = lVar3 + 1;
} while (lVar3 != 0x80);
return;
}
| |
23,261 | my_strntol_mb2_or_mb4 | eloqsql/strings/ctype-ucs2.c | static long
my_strntol_mb2_or_mb4(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative= 0;
int overflow;
int cnv;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
register unsigned int cutlim;
register uint32 cutoff;
register uint32 res;
register const uchar *s= (const uchar*) nptr;
register const uchar *e= (const uchar*) nptr+l;
const uchar *save;
*err= 0;
do
{
if ((cnv= mb_wc(cs, &wc, s, e)) > 0)
{
switch (wc)
{
case ' ' : break;
case '\t': break;
case '-' : negative= !negative; break;
case '+' : break;
default : goto bs;
}
}
else /* No more characters or bad multibyte sequence */
{
if (endptr != NULL )
*endptr= (char*) s;
err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM;
return 0;
}
s+= cnv;
} while (1);
bs:
overflow= 0;
res= 0;
save= s;
cutoff= ((uint32)~0L) / (uint32) base;
cutlim= (uint) (((uint32)~0L) % (uint32) base);
do {
if ((cnv= mb_wc(cs, &wc, s, e)) > 0)
{
s+= cnv;
if (wc >= '0' && wc <= '9')
wc-= '0';
else if (wc >= 'A' && wc <= 'Z')
wc= wc - 'A' + 10;
else if (wc >= 'a' && wc <= 'z')
wc= wc - 'a' + 10;
else
break;
if ((int)wc >= base)
break;
if (res > cutoff || (res == cutoff && wc > cutlim))
overflow= 1;
else
{
res*= (uint32) base;
res+= wc;
}
}
else if (cnv == MY_CS_ILSEQ)
{
if (endptr !=NULL )
*endptr = (char*) s;
err[0]= EILSEQ;
return 0;
}
else
{
/* No more characters */
break;
}
} while(1);
if (endptr != NULL)
*endptr = (char *) s;
if (s == save)
{
err[0]= EDOM;
return 0L;
}
if (negative)
{
if (res > (uint32) INT_MIN32)
overflow= 1;
}
else if (res > INT_MAX32)
overflow= 1;
if (overflow)
{
err[0]= ERANGE;
return negative ? INT_MIN32 : INT_MAX32;
}
return (negative ? -((long) res) : (long) res);
} | O3 | c | my_strntol_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, -0x40(%rbp)
movl %ecx, -0x34(%rbp)
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %r12
addq %rsi, %r13
movq %r9, -0x50(%rbp)
movl $0x0, (%r9)
leaq -0x30(%rbp), %rsi
movq %r15, %rdx
movq %r13, %rcx
callq *%r12
testl %eax, %eax
jle 0x7bb42
movl $0x0, -0x38(%rbp)
leaq -0x30(%rbp), %rbx
movq -0x30(%rbp), %rcx
cmpq $0x2a, %rcx
jg 0x7bb12
cmpq $0x9, %rcx
je 0x7bb2a
cmpq $0x20, %rcx
je 0x7bb2a
jmp 0x7bb74
cmpq $0x2b, %rcx
je 0x7bb2a
cmpq $0x2d, %rcx
jne 0x7bb74
xorl %ecx, %ecx
cmpl $0x0, -0x38(%rbp)
sete %cl
movl %ecx, -0x38(%rbp)
movl %eax, %eax
addq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq *%r12
testl %eax, %eax
jg 0x7bafa
movq -0x40(%rbp), %rcx
testq %rcx, %rcx
je 0x7bb4e
movq %r15, (%rcx)
testl %eax, %eax
movl $0x54, %eax
movl $0x21, %ecx
cmovel %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, (%rax)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl -0x34(%rbp)
movl %edx, %ebx
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
movq %r15, %rdx
movq %r13, %rcx
callq *%r12
testl %eax, %eax
jle 0x7bc3a
movl %ebx, %ecx
movq %rcx, -0x60(%rbp)
xorl %ecx, %ecx
movq %r15, %rbx
xorl %r8d, %r8d
movq %rbx, %rsi
movl %eax, %ebx
addq %rsi, %rbx
movq -0x30(%rbp), %rsi
leaq -0x30(%rsi), %rax
cmpq $0x9, %rax
ja 0x7bbc5
movq %rax, -0x30(%rbp)
jmp 0x7bbea
leaq -0x41(%rsi), %rax
cmpq $0x19, %rax
ja 0x7bbd5
addq $-0x37, %rsi
jmp 0x7bbe3
leaq -0x61(%rsi), %rax
cmpq $0x19, %rax
ja 0x7bc4a
addq $-0x57, %rsi
movq %rsi, -0x30(%rbp)
movq %rsi, %rax
cmpl -0x34(%rbp), %eax
jge 0x7bc4a
movl $0x1, %esi
cmpl -0x44(%rbp), %ecx
ja 0x7bc0d
jne 0x7bc04
movl -0x44(%rbp), %edi
cmpq -0x60(%rbp), %rax
ja 0x7bc0f
imull -0x34(%rbp), %ecx
addl %eax, %ecx
movl %r8d, %esi
movl %ecx, %edi
movl %edi, -0x54(%rbp)
movl %esi, -0x58(%rbp)
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq *%r12
movl -0x54(%rbp), %edi
movl -0x58(%rbp), %esi
movl %edi, %ecx
movl %esi, %r8d
testl %eax, %eax
jg 0x7bba9
jmp 0x7bc41
xorl %edi, %edi
movq %r15, %rbx
xorl %esi, %esi
testl %eax, %eax
je 0x7bca9
movl %esi, %r8d
movl %edi, %ecx
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x7bc56
movq %rbx, (%rax)
cmpq %r15, %rbx
je 0x7bc9a
cmpl $0x80000001, %ecx # imm = 0x80000001
movl $0x1, %eax
movl %r8d, %esi
cmovael %eax, %esi
testl %ecx, %ecx
cmovsl %eax, %r8d
movl -0x38(%rbp), %edi
testl %edi, %edi
cmovnel %esi, %r8d
testl %r8d, %r8d
je 0x7bcc4
testl %edi, %edi
movq -0x50(%rbp), %rax
movl $0x22, (%rax)
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
movq $-0x80000000, %rax # imm = 0x80000000
jmp 0x7bcce
movq -0x50(%rbp), %rax
movl $0x21, (%rax)
jmp 0x7bb63
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x7bcb5
movq %rbx, (%rax)
movq -0x50(%rbp), %rax
movl $0x54, (%rax)
jmp 0x7bb63
movl %ecx, %ecx
movq %rcx, %rax
negq %rax
testl %edi, %edi
cmoveq %rcx, %rax
jmp 0x7bb65
| my_strntol_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_40], r8
mov [rbp+var_34], ecx
mov r13, rdx
mov r15, rsi
mov r14, rdi
mov rax, [rdi+0B8h]
mov r12, [rax+28h]
add r13, rsi
mov [rbp+var_50], r9
mov dword ptr [r9], 0
lea rsi, [rbp+var_30]
mov rdx, r15
mov rcx, r13
call r12
test eax, eax
jle short loc_7BB42
mov [rbp+var_38], 0
lea rbx, [rbp+var_30]
loc_7BAFA:
mov rcx, [rbp+var_30]
cmp rcx, 2Ah ; '*'
jg short loc_7BB12
cmp rcx, 9
jz short loc_7BB2A
cmp rcx, 20h ; ' '
jz short loc_7BB2A
jmp short loc_7BB74
loc_7BB12:
cmp rcx, 2Bh ; '+'
jz short loc_7BB2A
cmp rcx, 2Dh ; '-'
jnz short loc_7BB74
xor ecx, ecx
cmp [rbp+var_38], 0
setz cl
mov [rbp+var_38], ecx
loc_7BB2A:
mov eax, eax
add r15, rax
mov rdi, r14
mov rsi, rbx
mov rdx, r15
mov rcx, r13
call r12
test eax, eax
jg short loc_7BAFA
loc_7BB42:
mov rcx, [rbp+var_40]
test rcx, rcx
jz short loc_7BB4E
mov [rcx], r15
loc_7BB4E:
test eax, eax
mov eax, 54h ; 'T'
mov ecx, 21h ; '!'
cmovz ecx, eax
mov rax, [rbp+var_50]
mov [rax], ecx
loc_7BB63:
xor eax, eax
loc_7BB65:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7BB74:
mov eax, 0FFFFFFFFh
xor edx, edx
div [rbp+var_34]
mov ebx, edx
mov [rbp+var_44], eax
lea rsi, [rbp+var_30]
mov rdi, r14
mov rdx, r15
mov rcx, r13
call r12
test eax, eax
jle loc_7BC3A
mov ecx, ebx
mov [rbp+var_60], rcx
xor ecx, ecx
mov rbx, r15
xor r8d, r8d
loc_7BBA9:
mov rsi, rbx
mov ebx, eax
add rbx, rsi
mov rsi, [rbp+var_30]
lea rax, [rsi-30h]
cmp rax, 9
ja short loc_7BBC5
mov [rbp+var_30], rax
jmp short loc_7BBEA
loc_7BBC5:
lea rax, [rsi-41h]
cmp rax, 19h
ja short loc_7BBD5
add rsi, 0FFFFFFFFFFFFFFC9h
jmp short loc_7BBE3
loc_7BBD5:
lea rax, [rsi-61h]
cmp rax, 19h
ja short loc_7BC4A
add rsi, 0FFFFFFFFFFFFFFA9h
loc_7BBE3:
mov [rbp+var_30], rsi
mov rax, rsi
loc_7BBEA:
cmp eax, [rbp+var_34]
jge short loc_7BC4A
mov esi, 1
cmp ecx, [rbp+var_44]
ja short loc_7BC0D
jnz short loc_7BC04
mov edi, [rbp+var_44]
cmp rax, [rbp+var_60]
ja short loc_7BC0F
loc_7BC04:
imul ecx, [rbp+var_34]
add ecx, eax
mov esi, r8d
loc_7BC0D:
mov edi, ecx
loc_7BC0F:
mov [rbp+var_54], edi
mov [rbp+var_58], esi
mov rdi, r14
lea rsi, [rbp+var_30]
mov rdx, rbx
mov rcx, r13
call r12
mov edi, [rbp+var_54]
mov esi, [rbp+var_58]
mov ecx, edi
mov r8d, esi
test eax, eax
jg loc_7BBA9
jmp short loc_7BC41
loc_7BC3A:
xor edi, edi
mov rbx, r15
xor esi, esi
loc_7BC41:
test eax, eax
jz short loc_7BCA9
mov r8d, esi
mov ecx, edi
loc_7BC4A:
mov rax, [rbp+var_40]
test rax, rax
jz short loc_7BC56
mov [rax], rbx
loc_7BC56:
cmp rbx, r15
jz short loc_7BC9A
cmp ecx, 80000001h
mov eax, 1
mov esi, r8d
cmovnb esi, eax
test ecx, ecx
cmovs r8d, eax
mov edi, [rbp+var_38]
test edi, edi
cmovnz r8d, esi
test r8d, r8d
jz short loc_7BCC4
test edi, edi
mov rax, [rbp+var_50]
mov dword ptr [rax], 22h ; '"'
mov ecx, 7FFFFFFFh
mov rax, 0FFFFFFFF80000000h
jmp short loc_7BCCE
loc_7BC9A:
mov rax, [rbp+var_50]
mov dword ptr [rax], 21h ; '!'
jmp loc_7BB63
loc_7BCA9:
mov rax, [rbp+var_40]
test rax, rax
jz short loc_7BCB5
mov [rax], rbx
loc_7BCB5:
mov rax, [rbp+var_50]
mov dword ptr [rax], 54h ; 'T'
jmp loc_7BB63
loc_7BCC4:
mov ecx, ecx
mov rax, rcx
neg rax
test edi, edi
loc_7BCCE:
cmovz rax, rcx
jmp loc_7BB65
| long long my_strntol_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6)
{
long long v6; // r15
long long ( *v8)(long long, _QWORD *, long long, long long); // r12
long long v9; // r13
int v10; // eax
int v11; // ecx
long long result; // rax
int v13; // eax
long long v14; // rcx
long long v15; // rbx
long long v16; // r8
unsigned long long v17; // rax
long long v18; // rsi
unsigned int v19; // esi
unsigned int v20; // edi
int v21; // esi
bool v22; // zf
unsigned int v24; // [rsp+1Ch] [rbp-44h]
BOOL v26; // [rsp+28h] [rbp-38h]
_QWORD v28[6]; // [rsp+30h] [rbp-30h] BYREF
v6 = a2;
v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
v9 = a2 + a3;
*a6 = 0;
v10 = v8(a1, v28, a2, a2 + a3);
if ( v10 <= 0 )
{
LABEL_11:
if ( a5 )
*a5 = v6;
v11 = 33;
if ( !v10 )
v11 = 84;
*a6 = v11;
return 0LL;
}
v26 = 0;
while ( 1 )
{
if ( v28[0] > 42LL )
{
if ( v28[0] != 43LL )
{
if ( v28[0] != 45LL )
break;
v26 = !v26;
}
goto LABEL_10;
}
if ( v28[0] != 9LL && v28[0] != 32LL )
break;
LABEL_10:
v6 += (unsigned int)v10;
v10 = v8(a1, v28, v6, v9);
if ( v10 <= 0 )
goto LABEL_11;
}
v24 = 0xFFFFFFFF / a4;
v13 = v8(a1, v28, v6, v9);
if ( v13 > 0 )
{
LODWORD(v14) = 0;
v15 = v6;
v16 = 0LL;
while ( 1 )
{
v15 += (unsigned int)v13;
v17 = v28[0] - 48LL;
if ( (unsigned long long)(v28[0] - 48LL) > 9 )
{
if ( (unsigned long long)(v28[0] - 65LL) > 0x19 )
{
if ( (unsigned long long)(v28[0] - 97LL) > 0x19 )
goto LABEL_37;
v18 = v28[0] - 87LL;
}
else
{
v18 = v28[0] - 55LL;
}
v28[0] = v18;
v17 = v18;
}
else
{
v28[0] -= 48LL;
}
if ( (int)v17 >= (int)a4 )
goto LABEL_37;
v19 = 1;
if ( (unsigned int)v14 <= v24 )
{
if ( (_DWORD)v14 == v24 )
{
v20 = 0xFFFFFFFF / a4;
if ( v17 > 0xFFFFFFFF % a4 )
goto LABEL_32;
}
LODWORD(v14) = v17 + a4 * v14;
v19 = v16;
}
v20 = v14;
LABEL_32:
v13 = ((long long ( *)(long long, _QWORD *, long long, long long, long long))v8)(a1, v28, v15, v9, v16);
LODWORD(v14) = v20;
v16 = v19;
if ( v13 <= 0 )
goto LABEL_35;
}
}
v20 = 0;
v15 = v6;
v19 = 0;
LABEL_35:
if ( !v13 )
{
if ( a5 )
*a5 = v15;
*a6 = 84;
return 0LL;
}
LODWORD(v16) = v19;
LODWORD(v14) = v20;
LABEL_37:
if ( a5 )
*a5 = v15;
if ( v15 == v6 )
{
*a6 = 33;
return 0LL;
}
v21 = v16;
if ( (unsigned int)v14 >= 0x80000001 )
v21 = 1;
if ( (int)v14 < 0 )
LODWORD(v16) = 1;
if ( v26 )
LODWORD(v16) = v21;
if ( (_DWORD)v16 )
{
v22 = !v26;
*a6 = 34;
v14 = 0x7FFFFFFFLL;
result = 0xFFFFFFFF80000000LL;
}
else
{
v14 = (unsigned int)v14;
result = -(long long)(unsigned int)v14;
v22 = !v26;
}
if ( v22 )
return v14;
return result;
}
| my_strntol_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RBP + -0x40],R8
MOV dword ptr [RBP + -0x34],ECX
MOV R13,RDX
MOV R15,RSI
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0xb8]
MOV R12,qword ptr [RAX + 0x28]
ADD R13,RSI
MOV qword ptr [RBP + -0x50],R9
MOV dword ptr [R9],0x0
LEA RSI,[RBP + -0x30]
MOV RDX,R15
MOV RCX,R13
CALL R12
TEST EAX,EAX
JLE 0x0017bb42
MOV dword ptr [RBP + -0x38],0x0
LEA RBX,[RBP + -0x30]
LAB_0017bafa:
MOV RCX,qword ptr [RBP + -0x30]
CMP RCX,0x2a
JG 0x0017bb12
CMP RCX,0x9
JZ 0x0017bb2a
CMP RCX,0x20
JZ 0x0017bb2a
JMP 0x0017bb74
LAB_0017bb12:
CMP RCX,0x2b
JZ 0x0017bb2a
CMP RCX,0x2d
JNZ 0x0017bb74
XOR ECX,ECX
CMP dword ptr [RBP + -0x38],0x0
SETZ CL
MOV dword ptr [RBP + -0x38],ECX
LAB_0017bb2a:
MOV EAX,EAX
ADD R15,RAX
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R13
CALL R12
TEST EAX,EAX
JG 0x0017bafa
LAB_0017bb42:
MOV RCX,qword ptr [RBP + -0x40]
TEST RCX,RCX
JZ 0x0017bb4e
MOV qword ptr [RCX],R15
LAB_0017bb4e:
TEST EAX,EAX
MOV EAX,0x54
MOV ECX,0x21
CMOVZ ECX,EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX],ECX
LAB_0017bb63:
XOR EAX,EAX
LAB_0017bb65:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017bb74:
MOV EAX,0xffffffff
XOR EDX,EDX
DIV dword ptr [RBP + -0x34]
MOV EBX,EDX
MOV dword ptr [RBP + -0x44],EAX
LEA RSI,[RBP + -0x30]
MOV RDI,R14
MOV RDX,R15
MOV RCX,R13
CALL R12
TEST EAX,EAX
JLE 0x0017bc3a
MOV ECX,EBX
MOV qword ptr [RBP + -0x60],RCX
XOR ECX,ECX
MOV RBX,R15
XOR R8D,R8D
LAB_0017bba9:
MOV RSI,RBX
MOV EBX,EAX
ADD RBX,RSI
MOV RSI,qword ptr [RBP + -0x30]
LEA RAX,[RSI + -0x30]
CMP RAX,0x9
JA 0x0017bbc5
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0017bbea
LAB_0017bbc5:
LEA RAX,[RSI + -0x41]
CMP RAX,0x19
JA 0x0017bbd5
ADD RSI,-0x37
JMP 0x0017bbe3
LAB_0017bbd5:
LEA RAX,[RSI + -0x61]
CMP RAX,0x19
JA 0x0017bc4a
ADD RSI,-0x57
LAB_0017bbe3:
MOV qword ptr [RBP + -0x30],RSI
MOV RAX,RSI
LAB_0017bbea:
CMP EAX,dword ptr [RBP + -0x34]
JGE 0x0017bc4a
MOV ESI,0x1
CMP ECX,dword ptr [RBP + -0x44]
JA 0x0017bc0d
JNZ 0x0017bc04
MOV EDI,dword ptr [RBP + -0x44]
CMP RAX,qword ptr [RBP + -0x60]
JA 0x0017bc0f
LAB_0017bc04:
IMUL ECX,dword ptr [RBP + -0x34]
ADD ECX,EAX
MOV ESI,R8D
LAB_0017bc0d:
MOV EDI,ECX
LAB_0017bc0f:
MOV dword ptr [RBP + -0x54],EDI
MOV dword ptr [RBP + -0x58],ESI
MOV RDI,R14
LEA RSI,[RBP + -0x30]
MOV RDX,RBX
MOV RCX,R13
CALL R12
MOV EDI,dword ptr [RBP + -0x54]
MOV ESI,dword ptr [RBP + -0x58]
MOV ECX,EDI
MOV R8D,ESI
TEST EAX,EAX
JG 0x0017bba9
JMP 0x0017bc41
LAB_0017bc3a:
XOR EDI,EDI
MOV RBX,R15
XOR ESI,ESI
LAB_0017bc41:
TEST EAX,EAX
JZ 0x0017bca9
MOV R8D,ESI
MOV ECX,EDI
LAB_0017bc4a:
MOV RAX,qword ptr [RBP + -0x40]
TEST RAX,RAX
JZ 0x0017bc56
MOV qword ptr [RAX],RBX
LAB_0017bc56:
CMP RBX,R15
JZ 0x0017bc9a
CMP ECX,0x80000001
MOV EAX,0x1
MOV ESI,R8D
CMOVNC ESI,EAX
TEST ECX,ECX
CMOVS R8D,EAX
MOV EDI,dword ptr [RBP + -0x38]
TEST EDI,EDI
CMOVNZ R8D,ESI
TEST R8D,R8D
JZ 0x0017bcc4
TEST EDI,EDI
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX],0x22
MOV ECX,0x7fffffff
MOV RAX,-0x80000000
JMP 0x0017bcce
LAB_0017bc9a:
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX],0x21
JMP 0x0017bb63
LAB_0017bca9:
MOV RAX,qword ptr [RBP + -0x40]
TEST RAX,RAX
JZ 0x0017bcb5
MOV qword ptr [RAX],RBX
LAB_0017bcb5:
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX],0x54
JMP 0x0017bb63
LAB_0017bcc4:
MOV ECX,ECX
MOV RAX,RCX
NEG RAX
TEST EDI,EDI
LAB_0017bcce:
CMOVZ RAX,RCX
JMP 0x0017bb65
|
ulong my_strntol_mb2_or_mb4
(long param_1,long param_2,long param_3,uint param_4,long *param_5,
int4 *param_6)
{
code *pcVar1;
bool bVar2;
bool bVar3;
bool bVar4;
uint uVar5;
uint uVar6;
ulong uVar7;
int4 uVar8;
uint uVar9;
ulong uVar10;
long lVar11;
ulong local_38;
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
param_3 = param_3 + param_2;
*param_6 = 0;
uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3);
if (0 < (int)uVar5) {
bVar2 = false;
do {
if ((long)local_38 < 0x2b) {
if ((local_38 != 9) && (local_38 != 0x20)) {
LAB_0017bb74:
uVar5 = (uint)(0xffffffff / (ulong)param_4);
uVar6 = (*pcVar1)(param_1,&local_38,param_2,param_3);
lVar11 = param_2;
if ((int)uVar6 < 1) {
uVar9 = 0;
bVar3 = false;
goto LAB_0017bc41;
}
uVar9 = 0;
bVar3 = false;
goto LAB_0017bba9;
}
}
else if (local_38 != 0x2b) {
if (local_38 != 0x2d) goto LAB_0017bb74;
bVar2 = !bVar2;
}
param_2 = param_2 + (ulong)uVar5;
uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3);
} while (0 < (int)uVar5);
}
if (param_5 != (long *)0x0) {
*param_5 = param_2;
}
uVar8 = 0x21;
if (uVar5 == 0) {
uVar8 = 0x54;
}
*param_6 = uVar8;
return 0;
while( true ) {
if ((int)param_4 <= (int)uVar7) goto LAB_0017bc4a;
uVar6 = uVar9;
bVar4 = true;
if ((uVar9 <= uVar5) &&
((uVar9 != uVar5 || (uVar6 = uVar5, bVar4 = true, uVar7 <= 0xffffffffU % (ulong)param_4)))) {
uVar6 = uVar9 * param_4 + (int)uVar7;
bVar4 = bVar3;
}
bVar3 = bVar4;
uVar9 = uVar6;
local_38 = uVar7;
uVar6 = (*pcVar1)(param_1,&local_38,lVar11,param_3);
if ((int)uVar6 < 1) break;
LAB_0017bba9:
lVar11 = (ulong)uVar6 + lVar11;
uVar7 = local_38 - 0x30;
if (9 < uVar7) {
if (local_38 - 0x41 < 0x1a) {
uVar7 = local_38 - 0x37;
}
else {
if (0x19 < local_38 - 0x61) goto LAB_0017bc4a;
uVar7 = local_38 - 0x57;
}
}
}
LAB_0017bc41:
if (uVar6 == 0) {
if (param_5 != (long *)0x0) {
*param_5 = lVar11;
}
*param_6 = 0x54;
}
else {
LAB_0017bc4a:
if (param_5 != (long *)0x0) {
*param_5 = lVar11;
}
if (lVar11 != param_2) {
bVar4 = bVar3;
if (0x80000000 < uVar9) {
bVar4 = true;
}
if ((int)uVar9 < 0) {
bVar3 = true;
}
if (bVar2) {
bVar3 = bVar4;
}
if (bVar3) {
*param_6 = 0x22;
uVar10 = 0x7fffffff;
uVar7 = 0xffffffff80000000;
}
else {
uVar10 = (ulong)uVar9;
uVar7 = -uVar10;
}
if (!bVar2) {
return uVar10;
}
return uVar7;
}
*param_6 = 0x21;
}
return 0;
}
| |
23,262 | void corofx::trace<char const*, char const (&) [2], unsigned int, char const (&) [3], char const*, char const (&) [15]>(char const*&&, char const (&) [2], unsigned int&&, char const (&) [3], char const*&&, char const (&) [15]) | corofx/include/corofx/trace.hpp | auto trace(Args&&... args) -> void {
(std::cout << ... << args) << '\n';
} | O3 | cpp | void corofx::trace<char const*, char const (&) [2], unsigned int, char const (&) [3], char const*, char const (&) [15]>(char const*&&, char const (&) [2], unsigned int&&, char const (&) [3], char const*&&, char const (&) [15]):
endbr64
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, -0x40(%rbp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r14
testq %r14, %r14
je 0x1d3b
movq %r14, %rdi
callq 0x11b0
movq 0x22aa(%rip), %rdi # 0x3fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x1240
jmp 0x1d59
movq 0x2296(%rip), %rax # 0x3fd8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x1270
movq %r13, %rdi
callq 0x11b0
movq 0x2270(%rip), %r14 # 0x3fd8
movq %r14, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x1240
movl (%r12), %esi
movq %r14, %rdi
callq 0x11e0
movq %rax, %r12
movq %r15, %rdi
callq 0x11b0
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1240
movq -0x40(%rbp), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x1dbf
movq %r14, %rdi
callq 0x11b0
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1240
jmp 0x1dda
movq (%r12), %rax
movq -0x18(%rax), %rax
movq %r12, %rdi
addq %rax, %rdi
movl 0x20(%r12,%rax), %esi
orl $0x1, %esi
callq 0x1270
movq %rbx, %rdi
callq 0x11b0
movq %r12, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x1240
leaq -0x31(%rbp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %r12, %rdi
callq 0x1240
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x1e22
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1230
| _ZN6corofx5traceIJPKcRA2_S1_jRA3_S1_S2_RA15_S1_EEEvDpOT_:
endbr64
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, r9
mov [rbp+var_40], r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r14, [rdi]
test r14, r14
jz short loc_1D3B
mov rdi, r14
call _strlen
mov rdi, cs:_ZSt4cout_ptr
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_1D59
loc_1D3B:
mov rax, cs:_ZSt4cout_ptr
mov rcx, [rax]
mov rcx, [rcx-18h]
lea rdi, [rax+rcx]
mov esi, [rax+rcx+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_1D59:
mov rdi, r13
call _strlen
mov r14, cs:_ZSt4cout_ptr
mov rdi, r14
mov rsi, r13
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov esi, [r12]
mov rdi, r14
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
mov r12, rax
mov rdi, r15
call _strlen
mov rdi, r12
mov rsi, r15
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [rbp+var_40]
mov r14, [rax]
test r14, r14
jz short loc_1DBF
mov rdi, r14
call _strlen
mov rdi, r12
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_1DDA
loc_1DBF:
mov rax, [r12]
mov rax, [rax-18h]
mov rdi, r12
add rdi, rax
mov esi, [r12+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_1DDA:
mov rdi, rbx
call _strlen
mov rdi, r12
mov rsi, rbx
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rbp+var_31]
mov byte ptr [rsi], 0Ah
mov edx, 1
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_1E22
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1E22:
call ___stack_chk_fail
| unsigned long long corofx::trace<char const*,char const(&)[2],unsigned int,char const(&)[3],char const*,char const(&)[15]>(
_QWORD *a1,
long long a2,
unsigned int *a3,
long long a4,
_QWORD *a5,
long long a6)
{
long long v9; // r14
long long v10; // rax
long long v11; // rax
_QWORD *v12; // r12
long long v13; // rax
long long v14; // r14
long long v15; // rax
long long v16; // rax
char v19; // [rsp+Fh] [rbp-31h] BYREF
unsigned long long v20; // [rsp+10h] [rbp-30h]
v20 = __readfsqword(0x28u);
v9 = *a1;
if ( *a1 )
{
v10 = strlen(*a1);
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, v9, v10);
}
else
{
std::ios::clear(
(char *)&std::cout + *(_QWORD *)(std::cout - 24LL),
*(_DWORD *)((char *)&std::cout + *(_QWORD *)(std::cout - 24LL) + 32) | 1u);
}
v11 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, a2, v11);
v12 = (_QWORD *)std::ostream::_M_insert<unsigned long>(&std::cout, *a3);
v13 = strlen(a4);
std::__ostream_insert<char,std::char_traits<char>>(v12, a4, v13);
v14 = *a5;
if ( *a5 )
{
v15 = strlen(*a5);
std::__ostream_insert<char,std::char_traits<char>>(v12, v14, v15);
}
else
{
std::ios::clear(
(char *)v12 + *(_QWORD *)(*v12 - 24LL),
*(_DWORD *)((char *)v12 + *(_QWORD *)(*v12 - 24LL) + 32) | 1u);
}
v16 = strlen(a6);
std::__ostream_insert<char,std::char_traits<char>>(v12, a6, v16);
v19 = 10;
std::__ostream_insert<char,std::char_traits<char>>(v12, &v19, 1LL);
return __readfsqword(0x28u);
}
| trace<char_const*,char_const(&)[2],unsigned_int,char_const(&)[3],char_const*,char_const(&)[15]>:
ENDBR64
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,R9
MOV qword ptr [RBP + -0x40],R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R14,qword ptr [RDI]
TEST R14,R14
JZ 0x00101d3b
MOV RDI,R14
CALL 0x001011b0
MOV RDI,qword ptr [0x00103fd8]
MOV RSI,R14
MOV RDX,RAX
CALL 0x00101240
JMP 0x00101d59
LAB_00101d3b:
MOV RAX,qword ptr [0x00103fd8]
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
LEA RDI,[RAX + RCX*0x1]
MOV ESI,dword ptr [RAX + RCX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00101270
LAB_00101d59:
MOV RDI,R13
CALL 0x001011b0
MOV R14,qword ptr [0x00103fd8]
MOV RDI,R14
MOV RSI,R13
MOV RDX,RAX
CALL 0x00101240
MOV ESI,dword ptr [R12]
MOV RDI,R14
CALL 0x001011e0
MOV R12,RAX
MOV RDI,R15
CALL 0x001011b0
MOV RDI,R12
MOV RSI,R15
MOV RDX,RAX
CALL 0x00101240
MOV RAX,qword ptr [RBP + -0x40]
MOV R14,qword ptr [RAX]
TEST R14,R14
JZ 0x00101dbf
MOV RDI,R14
CALL 0x001011b0
MOV RDI,R12
MOV RSI,R14
MOV RDX,RAX
CALL 0x00101240
JMP 0x00101dda
LAB_00101dbf:
MOV RAX,qword ptr [R12]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,R12
ADD RDI,RAX
MOV ESI,dword ptr [R12 + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00101270
LAB_00101dda:
MOV RDI,RBX
CALL 0x001011b0
MOV RDI,R12
MOV RSI,RBX
MOV RDX,RAX
CALL 0x00101240
LEA RSI,[RBP + -0x31]
MOV byte ptr [RSI],0xa
MOV EDX,0x1
MOV RDI,R12
CALL 0x00101240
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00101e22
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00101e22:
CALL 0x00101230
|
/* void corofx::trace<char const*, char const (&) [2], unsigned int, char const (&) [3], char
const*, char const (&) [15]>(char const*&&, char const (&) [2], unsigned int&&, char const (&)
[3], char const*&&, char const (&) [15]) */
void corofx::
trace<char_const*,char_const(&)[2],unsigned_int,char_const(&)[3],char_const*,char_const(&)[15]>
(char **param_1,char *param_2,uint *param_3,char *param_4,char **param_5,
char *param_6)
{
char *pcVar1;
int *puVar2;
size_t sVar3;
ostream *poVar4;
long in_FS_OFFSET;
char local_39;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar1 = *param_1;
if (pcVar1 == (char *)0x0) {
std::ios::clear(PTR_cout_00103fd8 + *(long *)(*(long *)PTR_cout_00103fd8 + -0x18),
*(uint *)(PTR_cout_00103fd8 +
*(long *)(*(long *)PTR_cout_00103fd8 + -0x18) + 0x20) | 1);
}
else {
sVar3 = strlen(pcVar1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00103fd8,pcVar1,sVar3);
}
sVar3 = strlen(param_2);
puVar2 = PTR_cout_00103fd8;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00103fd8,param_2,sVar3);
poVar4 = std::ostream::_M_insert<unsigned_long>((ulong)puVar2);
sVar3 = strlen(param_4);
std::__ostream_insert<char,std::char_traits<char>>(poVar4,param_4,sVar3);
pcVar1 = *param_5;
if (pcVar1 == (char *)0x0) {
std::ios::clear(poVar4 + *(long *)(*(long *)poVar4 + -0x18),
*(uint *)(poVar4 + *(long *)(*(long *)poVar4 + -0x18) + 0x20) | 1);
}
else {
sVar3 = strlen(pcVar1);
std::__ostream_insert<char,std::char_traits<char>>(poVar4,pcVar1,sVar3);
}
sVar3 = strlen(param_6);
std::__ostream_insert<char,std::char_traits<char>>(poVar4,param_6,sVar3);
local_39 = '\n';
std::__ostream_insert<char,std::char_traits<char>>(poVar4,&local_39,1);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
23,263 | minja::Value::Value(char const*) | monkey531[P]llama/common/minja.hpp | Value(const char * v) : primitive_(std::string(v)) {} | O1 | cpp | minja::Value::Value(char const*):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1c998
leaq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2c07e
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x602d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x602fd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x602fd
movq %rax, %r14
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x6030b
callq 0x2fde4
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x60319
callq 0x2fde4
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x60327
callq 0x2fde4
movq %rbx, %rdi
callq 0x3fd22
movq %r14, %rdi
callq 0x18bb0
nop
| _ZN5minja5ValueC2EPKc:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+30h], xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
lea rdi, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_31]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rbx+40h]
lea rsi, [rsp+38h+var_30]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_602D2
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_602D2:
add rsp, 28h
pop rbx
pop r14
retn
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_602FD
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_602FD
mov r14, rax
loc_602FD:
mov rdi, [rbx+38h]
test rdi, rdi
jz short loc_6030B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6030B:
mov rdi, [rbx+28h]
test rdi, rdi
jz short loc_60319
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_60319:
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_60327
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_60327:
mov rdi, rbx
call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this()
mov rdi, r14
call __Unwind_Resume
| void minja::Value::Value(minja::Value *this, const char *a2)
{
long long *v2; // [rsp+8h] [rbp-30h] BYREF
long long v3; // [rsp+18h] [rbp-20h] BYREF
*((_OWORD *)this + 3) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 1) = 0LL;
*(_OWORD *)this = 0LL;
std::string::basic_string<std::allocator<char>>(&v2, (long long)a2);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_((_OWORD *)this + 4);
if ( v2 != &v3 )
operator delete(v2, v3 + 1);
}
| Value:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
LAB_0016029a:
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
CALL 0x0011c998
LEA RDI,[RBX + 0x40]
LAB_001602ad:
LEA RSI,[RSP + 0x8]
CALL 0x0012c07e
LAB_001602b7:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001602d2
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
LAB_001602d2:
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* minja::Value::Value(char const*) */
void __thiscall minja::Value::Value(Value *this,char *param_1)
{
allocator local_31;
long *local_30 [2];
long local_20 [2];
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
/* try { // try from 0016029a to 001602a8 has its CatchHandler @ 001602fa */
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31);
/* try { // try from 001602ad to 001602b6 has its CatchHandler @ 001602da */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(this + 0x40,local_30);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return;
}
| |
23,264 | testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal() | AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h | ~ThreadLocal() {
// Destroys the managed object for the current thread, if any.
DeleteThreadLocalValue(pthread_getspecific(key_));
// Releases resources associated with the key. This will *not*
// delete managed objects for other threads.
GTEST_CHECK_POSIX_SUCCESS_(pthread_key_delete(key_));
} | O0 | c | testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movl (%rax), %edi
callq 0x16b50
movq %rax, %rdi
callq 0x1111a0
movq 0x10(%rsp), %rax
movl (%rax), %edi
callq 0x16870
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
je 0xf2e56
leaq 0x2b77a(%rip), %rdx # 0x11e56a
leaq 0x18(%rsp), %rdi
movl $0x3, %esi
movl $0x712, %ecx # imm = 0x712
callq 0xc17d0
jmp 0xf2e06
leaq 0x18(%rsp), %rdi
callq 0x20a90
movq %rax, %rdi
leaq 0x2bf42(%rip), %rsi # 0x11ed5c
callq 0x166e0
movq %rax, 0x8(%rsp)
jmp 0xf2e26
movq 0x8(%rsp), %rdi
leaq 0x2b7cc(%rip), %rsi # 0x11e5fe
callq 0x166e0
movq %rax, (%rsp)
jmp 0xf2e3d
movq (%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x16cc0
jmp 0xf2e4c
leaq 0x18(%rsp), %rdi
callq 0xc1940
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x112010
addq $0x28, %rsp
retq
movq %rax, %rdi
callq 0x1eac0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN7testing8internal11ThreadLocalISt6vectorINS0_9TraceInfoESaIS3_EEED2Ev:
sub rsp, 28h
mov qword ptr [rsp+28h+var_8], rdi; int
mov rax, qword ptr [rsp+28h+var_8]
mov qword ptr [rsp+28h+var_18], rax; int
mov edi, [rax]
call _pthread_getspecific
mov rdi, rax
call DeleteThreadLocalValue
mov rax, qword ptr [rsp+28h+var_18]
mov edi, [rax]
call _pthread_key_delete
mov [rsp+28h+var_C], eax
cmp [rsp+28h+var_C], 0
jz short loc_F2E56
lea rdx, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/AlayaL"...
lea rdi, [rsp+28h+var_10]; int
mov esi, 3
mov ecx, 712h
call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int)
jmp short $+2
loc_F2E06:
lea rdi, [rsp+28h+var_10]; this
call _ZN7testing8internal8GTestLog9GetStreamEv; testing::internal::GTestLog::GetStream(void)
mov rdi, rax
lea rsi, aPthreadKeyDele_0; "pthread_key_delete(key_)"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+28h+var_20], rax
jmp short $+2
loc_F2E26:
mov rdi, [rsp+28h+var_20]
lea rsi, aFailedWithErro; "failed with error "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+28h+var_28], rax
jmp short $+2
loc_F2E3D:
mov rdi, [rsp+28h+var_28]
mov esi, [rsp+28h+var_C]
call __ZNSolsEi; std::ostream::operator<<(int)
jmp short $+2
loc_F2E4C:
lea rdi, [rsp+28h+var_10]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
loc_F2E56:
mov rdi, qword ptr [rsp+28h+var_18]
add rdi, 8
call _ZNSt10unique_ptrIN7testing8internal11ThreadLocalISt6vectorINS1_9TraceInfoESaIS4_EEE18ValueHolderFactoryESt14default_deleteIS8_EED2Ev; std::unique_ptr<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::ValueHolderFactory,std::default_delete<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::ValueHolderFactory>>::~unique_ptr()
add rsp, 28h
retn
mov rdi, rax
call __clang_call_terminate
| long long testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::~ThreadLocal(
unsigned int *a1)
{
long long v1; // rax
void *Stream; // rax
long long v4; // [rsp+0h] [rbp-28h]
long long v5; // [rsp+8h] [rbp-20h]
int v6; // [rsp+18h] [rbp-10h] BYREF
unsigned int v7; // [rsp+1Ch] [rbp-Ch]
int v8[2]; // [rsp+20h] [rbp-8h]
*(_QWORD *)v8 = a1;
v1 = pthread_getspecific(*a1);
DeleteThreadLocalValue(v1);
v7 = pthread_key_delete(*a1);
if ( v7 )
{
testing::internal::GTestLog::GTestLog(
(testing::internal::GTestLog *)&v6,
3,
(long long)"/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h",
1810);
Stream = testing::internal::GTestLog::GetStream((testing::internal::GTestLog *)&v6);
v5 = std::operator<<<std::char_traits<char>>(Stream, "pthread_key_delete(key_)");
v4 = std::operator<<<std::char_traits<char>>(v5, "failed with error ");
std::ostream::operator<<(v4, v7);
testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)&v6);
}
return std::unique_ptr<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::ValueHolderFactory,std::default_delete<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::ValueHolderFactory>>::~unique_ptr(a1 + 2);
}
| ~ThreadLocal:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV EDI,dword ptr [RAX]
CALL 0x00116b50
MOV RDI,RAX
CALL 0x002111a0
MOV RAX,qword ptr [RSP + 0x10]
MOV EDI,dword ptr [RAX]
CALL 0x00116870
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x1c],0x0
JZ 0x001f2e56
LAB_001f2de9:
LEA RDX,[0x21e56a]
LEA RDI,[RSP + 0x18]
MOV ESI,0x3
MOV ECX,0x712
CALL 0x001c17d0
JMP 0x001f2e06
LAB_001f2e06:
LEA RDI,[RSP + 0x18]
CALL 0x00120a90
MOV RDI,RAX
LEA RSI,[0x21ed5c]
CALL 0x001166e0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001f2e26
LAB_001f2e26:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[0x21e5fe]
CALL 0x001166e0
MOV qword ptr [RSP],RAX
JMP 0x001f2e3d
LAB_001f2e3d:
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x00116cc0
LAB_001f2e4a:
JMP 0x001f2e4c
LAB_001f2e4c:
LEA RDI,[RSP + 0x18]
CALL 0x001c1940
LAB_001f2e56:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x8
CALL 0x00212010
ADD RSP,0x28
RET
|
/* testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,
std::allocator<testing::internal::TraceInfo> > >::~ThreadLocal() */
void __thiscall
testing::internal::
ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>
::~ThreadLocal(ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>
*this)
{
void *pvVar1;
ostream *poVar2;
GTestLog local_10 [4];
int local_c;
ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>
*local_8;
local_8 = this;
pvVar1 = pthread_getspecific(*(pthread_key_t *)this);
DeleteThreadLocalValue(pvVar1);
local_c = pthread_key_delete(*(pthread_key_t *)this);
if (local_c != 0) {
/* try { // try from 001f2de9 to 001f2e49 has its CatchHandler @ 001f2e69 */
GTestLog::GTestLog(local_10,3,
"/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h"
,0x712);
poVar2 = (ostream *)GTestLog::GetStream();
poVar2 = std::operator<<(poVar2,"pthread_key_delete(key_)");
poVar2 = std::operator<<(poVar2,"failed with error ");
std::ostream::operator<<(poVar2,local_c);
GTestLog::~GTestLog(local_10);
}
std::
unique_ptr<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>::ValueHolderFactory,std::default_delete<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>::ValueHolderFactory>>
::~unique_ptr((unique_ptr<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>::ValueHolderFactory,std::default_delete<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>>::ValueHolderFactory>>
*)(this + 8));
return;
}
| |
23,265 | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("parse_error", id_), "parse error",
position_string(pos), ": ", exception::diagnostics(context), what_arg);
return {id_, pos.chars_read_total, w.c_str()};
} | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb93e(%rip), %rsi # 0x25b33
leaq 0xb942(%rip), %rdx # 0x25b3e
leaq 0x8(%rsp), %rdi
callq 0x11370
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl %ebp, %edx
callq 0x11500
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x110c0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq %r15, (%rsp)
leaq 0xb8fa(%rip), %rdx # 0x25b3f
leaq 0x83ca(%rip), %r8 # 0x22616
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rcx
leaq 0x28(%rsp), %r9
callq 0x11640
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a27f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x119b0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a29a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x119b0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a2b5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x119b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1a2cc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119b0
movq (%r14), %r14
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x119a0
movq 0x12ca0(%rip), %rax # 0x2cf88
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, 0x20(%rbx)
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a314
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x119b0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a3c1
movq 0x98(%rsp), %rsi
jmp 0x1a3b4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a365
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x119b0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a385
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x119b0
jmp 0x1a385
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a3a5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x119b0
jmp 0x1a3a5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1a3c1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119b0
jmp 0x1a3c1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x12010
nop
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea r12, [rsp+0D8h+var_C0]
mov [r12-10h], r12
lea rsi, aParseError; "parse_error"
lea rdx, aParseError+0Bh; ""
lea rdi, [rsp+0D8h+var_D0]
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 rdi, [rsp+0D8h+var_70]; int
lea rsi, [rsp+0D8h+var_D0]; int
mov edx, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0D8h+var_90]; int
mov rsi, r14; int
call __ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&)
lea r13, [rsp+0D8h+var_A0]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
mov [rsp+0D8h+var_D8], r15
lea rdx, aParseError_0; "parse error"
lea r8, aMissingParamIn+1Ah; ": "
lea rdi, [rsp+0D8h+var_50]
lea rsi, [rsp+0D8h+var_70]
lea rcx, [rsp+0D8h+var_90]
lea r9, [rsp+0D8h+var_B0]
call __ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&)
mov rdi, [rsp+0D8h+var_B0]; void *
cmp rdi, r13
jz short loc_1A27F
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1A27F:
lea rax, [rsp+0D8h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1A29A
mov rsi, [rsp+0D8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1A29A:
lea rax, [rsp+0D8h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1A2B5
mov rsi, [rsp+0D8h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1A2B5:
mov rdi, [rsp+0D8h+var_D0]; void *
cmp rdi, r12
jz short loc_1A2CC
mov rsi, [rsp+0D8h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1A2CC:
mov r14, [r14]
mov rdx, [rsp+0D8h+var_50]; char *
mov rdi, rbx; this
mov esi, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
mov rax, cs:_ZTVN8nlohmann16json_abi_v3_11_36detail11parse_errorE_ptr
add rax, 10h
mov [rbx], rax
mov [rbx+20h], r14
lea rax, [rsp+0D8h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1A314
mov rsi, [rsp+0D8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1A314:
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_90]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_1A3C1
mov rsi, [rsp+arg_90]
jmp short loc_1A3B4
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_1A365
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1A365:
lea rax, [rsp+arg_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1A385
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1A385
mov rbx, rax
loc_1A385:
lea rax, [rsp+arg_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1A3A5
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1A3A5
mov rbx, rax
loc_1A3A5:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_1A3C1
mov rsi, [rsp+arg_10]
loc_1A3B4:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1A3C1
mov rbx, rax
loc_1A3C1:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
long long *a3,
long long a4)
{
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
long long v13; // r14
int v15; // [rsp+0h] [rbp-D8h]
void *v16; // [rsp+0h] [rbp-D8h]
void *v17; // [rsp+8h] [rbp-D0h] BYREF
void *v18; // [rsp+10h] [rbp-C8h]
long long v19; // [rsp+18h] [rbp-C0h] BYREF
void *v20; // [rsp+20h] [rbp-B8h]
void *v21; // [rsp+28h] [rbp-B0h] BYREF
long long v22; // [rsp+30h] [rbp-A8h]
_QWORD v23[2]; // [rsp+38h] [rbp-A0h] BYREF
int v24[4]; // [rsp+48h] [rbp-90h] BYREF
long long v25; // [rsp+58h] [rbp-80h] BYREF
int v26[4]; // [rsp+68h] [rbp-70h] BYREF
long long v27; // [rsp+78h] [rbp-60h] BYREF
char *v28; // [rsp+88h] [rbp-50h] BYREF
long long v29; // [rsp+98h] [rbp-40h] BYREF
v17 = &v19;
std::string::_M_construct<char const*>(&v17, "parse_error", "");
nlohmann::json_abi_v3_11_3::detail::exception::name(
(int)v26,
(int)&v17,
a2,
v6,
v7,
v8,
v15,
(int)v17,
v18,
v19,
(long long)v20);
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](
(int)v24,
(int)a3,
v9,
v10,
v11,
v12,
v16,
(int)v17,
(long long)v18,
v19,
v20,
(int)v21,
v22);
v21 = v23;
v22 = 0LL;
LOBYTE(v23[0]) = 0;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(
(unsigned int)&v28,
(unsigned int)v26,
(unsigned int)"parse error",
(unsigned int)v24,
(unsigned int)": ",
(unsigned int)&v21,
a4);
if ( v21 != v23 )
operator delete(v21, v23[0] + 1LL);
if ( *(long long **)v24 != &v25 )
operator delete(*(void **)v24, v25 + 1);
if ( *(long long **)v26 != &v27 )
operator delete(*(void **)v26, v27 + 1);
if ( v17 != &v19 )
operator delete(v17, v19 + 1);
v13 = *a3;
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v28);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error + 2;
*((_QWORD *)this + 4) = v13;
if ( v28 != (char *)&v29 )
operator delete(v28, v29 + 1);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0011a1ee:
LEA RSI,[0x125b33]
LEA RDX,[0x125b3e]
LEA RDI,[RSP + 0x8]
CALL 0x00111370
LAB_0011a206:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x8]
MOV EDX,EBP
CALL 0x00111500
LAB_0011a217:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x001110c0
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
LAB_0011a23a:
MOV qword ptr [RSP],R15
LEA RDX,[0x125b3f]
LEA R8,[0x122616]
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x68]
LEA RCX,[RSP + 0x48]
LEA R9,[RSP + 0x28]
CALL 0x00111640
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0011a27f
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001119b0
LAB_0011a27f:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011a29a
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001119b0
LAB_0011a29a:
LEA RAX,[RSP + 0x78]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011a2b5
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001119b0
LAB_0011a2b5:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0011a2cc
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001119b0
LAB_0011a2cc:
MOV R14,qword ptr [R14]
MOV RDX,qword ptr [RSP + 0x88]
LAB_0011a2d7:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001119a0
LAB_0011a2e1:
MOV RAX,qword ptr [0x0012cf88]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x20],R14
LEA RAX,[RSP + 0x98]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011a314
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x001119b0
LAB_0011a314:
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,position_t *param_3,string *param_4)
{
int8 uVar1;
long *local_d0 [2];
long local_c0 [2];
int1 *local_b0;
int8 local_a8;
int1 local_a0;
int7 uStack_9f;
long *local_90 [2];
long local_80 [2];
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
/* try { // try from 0011a1ee to 0011a205 has its CatchHandler @ 0011a3be */
local_d0[0] = local_c0;
std::__cxx11::string::_M_construct<char_const*>(local_d0,"parse_error","");
/* try { // try from 0011a206 to 0011a216 has its CatchHandler @ 0011a3a2 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_70,(string *)local_d0,param_2);
/* try { // try from 0011a217 to 0011a223 has its CatchHandler @ 0011a382 */
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_
((parse_error *)local_90,param_3);
local_a8 = 0;
local_a0 = 0;
/* try { // try from 0011a23a to 0011a267 has its CatchHandler @ 0011a34b */
local_b0 = &local_a0;
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_50,(string *)local_70,"parse error",(string *)local_90,": ",
(string *)&local_b0,param_4);
if (local_b0 != &local_a0) {
operator_delete(local_b0,CONCAT71(uStack_9f,local_a0) + 1);
}
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
if (local_d0[0] != local_c0) {
operator_delete(local_d0[0],local_c0[0] + 1);
}
uVar1 = *(int8 *)param_3;
/* try { // try from 0011a2d7 to 0011a2e0 has its CatchHandler @ 0011a329 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,(char *)local_50[0]);
*(int **)param_1 = PTR_vtable_0012cf88 + 0x10;
*(int8 *)(param_1 + 0x20) = uVar1;
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
return param_1;
}
| |
23,266 | 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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>) | monkey531[P]llama/common/json.hpp | void push_back(initializer_list_t init)
{
if (is_object() && init.size() == 2 && (*init.begin())->is_string())
{
basic_json&& key = init.begin()->moved_or_copied();
push_back(typename object_t::value_type(
std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
}
else
{
push_back(basic_json(init));
}
} | O2 | 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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, (%rdi)
sete %al
cmpq $0x2, %rdx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x315a0
movq 0x10(%r14), %rax
testq %rax, %rax
cmoveq %r14, %rax
cmpb $0x3, (%rax)
jne 0x315a0
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x61880
movq %r15, %rdi
callq 0x72bfa
movq %rax, %r15
addq $0x18, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0x61880
leaq 0x20(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x7296c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x728a0
leaq 0x20(%rsp), %rdi
callq 0x42d36
movq %rsp, %rdi
callq 0x31464
leaq 0x10(%rsp), %rdi
jmp 0x315c7
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %r15, %rdi
movq %r14, %rsi
callq 0x31c14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x72992
leaq 0x20(%rsp), %rdi
callq 0x31464
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x42d36
movq %rsp, %rdi
callq 0x31464
jmp 0x315f2
jmp 0x315ef
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x31601
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x31464
movq %rbx, %rdi
callq 0x22d30
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rdi], 1
setz al
cmp rdx, 2
setz cl
and cl, al
cmp cl, 1
jnz short loc_315A0
mov rax, [r14+10h]
test rax, rax
cmovz rax, r14
cmp byte ptr [rax], 3
jnz short loc_315A0
lea r15, [rsp+68h+var_58]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(void)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_; 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>::get_ref_impl<std::string&,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 r15, rax
add r14, 18h
mov rdi, rsp
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(void)
lea r14, [rsp+68h+var_48]
mov rdx, rsp
mov rdi, r14
mov rsi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; 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>::push_back(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
lea rdi, [rsp+68h+var_48]; void *
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,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>>::~pair()
mov rdi, rsp
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()
lea rdi, [rsp+68h+var_58]
jmp short loc_315C7
loc_315A0:
lea r15, [rsp+68h+var_48]
push 1
pop rcx
push 2
pop r8
mov rdi, r15
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; 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(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rdi, rbx
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; 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>::push_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>&&)
lea rdi, [rsp+68h+var_48]
loc_315C7:
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()
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]; void *
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,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>>::~pair()
mov rdi, rsp
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 short loc_315F2
jmp short $+2
loc_315EF:
mov rbx, rax
loc_315F2:
lea rdi, [rsp+arg_8]
jmp short loc_31601
mov rbx, rax
lea rdi, [rsp+arg_18]
loc_31601:
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 rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
_BYTE *a1,
long long a2,
long long a3)
{
_BYTE *v3; // rax
long long v4; // r15
_BYTE *v5; // rdi
_BYTE v7[16]; // [rsp+0h] [rbp-68h] BYREF
_BYTE v8[16]; // [rsp+10h] [rbp-58h] BYREF
_BYTE v9[72]; // [rsp+20h] [rbp-48h] BYREF
if ( *a1 != 1 || a3 != 2 )
goto LABEL_6;
v3 = *(_BYTE **)(a2 + 16);
if ( !v3 )
v3 = (_BYTE *)a2;
if ( *v3 == 3 )
{
nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(
v8,
a2);
v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string&,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>>(v8);
nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(
v7,
a2 + 24);
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v9,
v4,
v7);
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>::push_back(
a1,
v9);
std::pair<std::string const,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>>::~pair(v9);
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)v7);
v5 = v8;
}
else
{
LABEL_6:
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(
v9,
a2,
a3,
1LL,
2LL);
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>::push_back(
a1,
v9);
v5 = v9;
}
return 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)v5);
}
| push_back:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RDI],0x1
SETZ AL
CMP RDX,0x2
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x001315a0
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
CMOVZ RAX,R14
CMP byte ptr [RAX],0x3
JNZ 0x001315a0
LEA R15,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R14
CALL 0x00161880
LAB_0013154f:
MOV RDI,R15
CALL 0x00172bfa
MOV R15,RAX
ADD R14,0x18
LAB_0013155e:
MOV RDI,RSP
MOV RSI,R14
CALL 0x00161880
LEA R14,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,R14
MOV RSI,R15
CALL 0x0017296c
LAB_0013157c:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001728a0
LAB_00131587:
LEA RDI,[RSP + 0x20]
CALL 0x00142d36
MOV RDI,RSP
CALL 0x00131464
LEA RDI,[RSP + 0x10]
JMP 0x001315c7
LAB_001315a0:
LEA R15,[RSP + 0x20]
PUSH 0x1
POP RCX
PUSH 0x2
POP R8
MOV RDI,R15
MOV RSI,R14
CALL 0x00131c14
LAB_001315b7:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00172992
LAB_001315c2:
LEA RDI,[RSP + 0x20]
LAB_001315c7:
CALL 0x00131464
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* 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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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> > >) */
void 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>
::push_back(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 param_3)
{
char *pcVar1;
string *psVar2;
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;
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>
abStack_68 [16];
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 [16];
pair<std::__cxx11::string_const,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_48 [48];
if (param_3 == 2 &&
*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) {
pcVar1 = *(char **)(param_2 + 0x10);
if (*(char **)(param_2 + 0x10) == (char *)0x0) {
pcVar1 = param_2;
}
if (*pcVar1 == '\x03') {
detail::
json_ref<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>>
::moved_or_copied();
/* try { // try from 0013154f to 00131556 has its CatchHandler @ 001315ef */
psVar2 = get_ref_impl<std::__cxx11::string&,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);
/* try { // try from 0013155e to 00131568 has its CatchHandler @ 001315ed */
detail::
json_ref<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>>
::moved_or_copied();
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_48,psVar2,abStack_68);
/* try { // try from 0013157c to 00131586 has its CatchHandler @ 001315d6 */
push_back(param_1,local_48);
std::
pair<std::__cxx11::string_const,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>>
::~pair(local_48);
~basic_json(abStack_68);
this = local_58;
goto LAB_001315c7;
}
}
basic_json(local_48,param_2,param_3,1,2);
/* try { // try from 001315b7 to 001315c1 has its CatchHandler @ 001315f9 */
push_back(param_1,local_48);
this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_48;
LAB_001315c7:
~basic_json(this);
return;
}
| |
23,267 | test_log::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_param(ctx, a);
ggml_set_name(a, "a");
ggml_tensor * out = ggml_log(ctx, a);
ggml_set_name(out, "out");
return out;
} | O3 | cpp | test_log::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x38(%rdi), %esi
leaq 0x40(%rdi), %rcx
movq %rbx, %rdi
movl $0x4, %edx
callq 0xd080
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b8ae
movq %rbx, %rdi
movq %r15, %rsi
callq 0xda90
leaq 0x118d2(%rip), %rsi # 0x44b87
movq %r15, %rdi
callq 0xdb10
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd130
movq %rax, %rbx
leaq 0x11e5c(%rip), %rsi # 0x4512e
movq %rax, %rdi
callq 0xdb10
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN8test_log11build_graphEP12ggml_context:
push r15
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov esi, [rdi+38h]
lea rcx, [rdi+40h]
mov rdi, rbx
mov edx, 4
call _ggml_new_tensor
mov r15, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
mov rdi, rbx
mov rsi, r15
call _ggml_set_param
lea rsi, aViewOfA+8; "a"
mov rdi, r15
call _ggml_set_name
mov rdi, rbx
mov rsi, r15
call _ggml_log
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
pop rbx
pop r14
pop r15
retn
| long long test_log::build_graph(long long a1, long long a2)
{
long long v2; // r15
long long v3; // rbx
v2 = ggml_new_tensor(a2, *(unsigned int *)(a1 + 56), 4LL);
test_case::add_sentinel(a1, a2);
ggml_set_param(a2, v2);
ggml_set_name(v2, "a");
v3 = ggml_log(a2, v2);
ggml_set_name(v3, "out");
return v3;
}
| build_graph:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV ESI,dword ptr [RDI + 0x38]
LEA RCX,[RDI + 0x40]
MOV RDI,RBX
MOV EDX,0x4
CALL 0x0010d080
MOV R15,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011b8ae
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010da90
LEA RSI,[0x144b87]
MOV RDI,R15
CALL 0x0010db10
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010d130
MOV RBX,RAX
LEA RSI,[0x14512e]
MOV RDI,RAX
CALL 0x0010db10
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* test_log::build_graph(ggml_context*) */
int8 __thiscall test_log::build_graph(test_log *this,ggml_context *param_1)
{
int8 uVar1;
uVar1 = ggml_new_tensor(param_1,*(int4 *)(this + 0x38),4,this + 0x40);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_param(param_1,uVar1);
ggml_set_name(uVar1,"a");
uVar1 = ggml_log(param_1,uVar1);
ggml_set_name(uVar1,"out");
return uVar1;
}
| |
23,268 | make_lock_and_pin | eloqsql/storage/maria/ma_pagecache.c | static my_bool make_lock_and_pin(PAGECACHE *pagecache,
PAGECACHE_BLOCK_LINK *block,
enum pagecache_page_lock lock,
enum pagecache_page_pin pin,
my_bool any)
{
DBUG_ENTER("make_lock_and_pin");
DBUG_PRINT("enter", ("block: %p (%u) lock: %s pin: %s any %d",
block, PCBLOCK_NUMBER(pagecache, block),
page_cache_page_lock_str[lock],
page_cache_page_pin_str[pin], (int)any));
PCBLOCK_INFO(block);
DBUG_ASSERT(block);
DBUG_ASSERT(!any ||
((lock == PAGECACHE_LOCK_LEFT_UNLOCKED) &&
(pin == PAGECACHE_UNPIN)));
DBUG_ASSERT(block->hash_link->block == block);
switch (lock) {
case PAGECACHE_LOCK_WRITE: /* free -> write */
/* Writelock and pin the buffer */
if (get_wrlock(pagecache, block))
{
/* Couldn't lock because block changed status => need retry */
goto retry;
}
/* The cache is locked so nothing afraid of */
add_pin(block);
info_add_lock(block, 1);
break;
case PAGECACHE_LOCK_WRITE_TO_READ: /* write -> read */
case PAGECACHE_LOCK_WRITE_UNLOCK: /* write -> free */
/* Removes write lock and puts read lock */
release_wrlock(block, lock == PAGECACHE_LOCK_WRITE_TO_READ);
/* fall through */
case PAGECACHE_LOCK_READ_UNLOCK: /* read -> free */
if (lock == PAGECACHE_LOCK_READ_UNLOCK)
release_rdlock(block);
/* fall through */
case PAGECACHE_LOCK_LEFT_READLOCKED: /* read -> read */
if (pin == PAGECACHE_UNPIN)
{
remove_pin(block, FALSE);
}
if (lock == PAGECACHE_LOCK_WRITE_TO_READ)
{
info_change_lock(block, 0);
}
else if (lock == PAGECACHE_LOCK_WRITE_UNLOCK ||
lock == PAGECACHE_LOCK_READ_UNLOCK)
{
info_remove_lock(block);
}
break;
case PAGECACHE_LOCK_READ: /* free -> read */
if (get_rdlock(pagecache, block))
{
/* Couldn't lock because block changed status => need retry */
goto retry;
}
if (pin == PAGECACHE_PIN)
{
/* The cache is locked so nothing afraid off */
add_pin(block);
}
info_add_lock(block, 0);
break;
case PAGECACHE_LOCK_LEFT_UNLOCKED: /* free -> free */
if (pin == PAGECACHE_UNPIN)
{
remove_pin(block, any);
}
/* fall through */
case PAGECACHE_LOCK_LEFT_WRITELOCKED: /* write -> write */
break; /* do nothing */
default:
DBUG_ASSERT(0); /* Never should happened */
}
PCBLOCK_INFO(block);
DBUG_RETURN(0);
retry:
DBUG_PRINT("INFO", ("Retry block %p", block));
PCBLOCK_INFO(block);
DBUG_ASSERT(block->hash_link->requests > 0);
block->hash_link->requests--;
DBUG_RETURN(1);
} | O3 | c | make_lock_and_pin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %eax, %eax
cmpl $0x7, %edx
ja 0x33014
movl %ecx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl %edx, %ecx
leaq 0xaf0e2(%rip), %rdx # 0xe1fc0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl %r14d, -0x30(%rbp)
movq 0x20(%rbx), %rax
movl 0x28(%rax), %r12d
movq 0x60(%rax), %r13
callq 0x29580
movq %rax, %r14
cmpl $0x0, 0x68(%rbx)
je 0x33001
movq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x29990
testl %eax, %eax
jne 0x33006
movq %r15, %rdi
movq %rbx, %rsi
movl %r12d, %edx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x35eec
testb %al, %al
je 0x32eff
jmp 0x32fc6
incl 0x70(%rbx)
movl 0x68(%rbx), %eax
cmpl $0x1, %eax
jne 0x32f6c
movl 0x70(%rbx), %eax
movl %eax, 0x6c(%rbx)
xorl %eax, %eax
movl %eax, 0x70(%rbx)
movl %eax, 0x68(%rbx)
cmpq $0x0, 0x58(%rbx)
je 0x32ff6
leaq 0x58(%rbx), %rdi
callq 0xa76e7
jmp 0x32ff6
decl %eax
movl %eax, 0x68(%rbx)
jmp 0x32ff6
movq 0x20(%rbx), %rax
movl 0x28(%rax), %r14d
movq 0x60(%rax), %r13
callq 0x29580
movq %rax, -0x30(%rbp)
movl 0x68(%rbx), %r12d
testl %r12d, %r12d
je 0x32fa5
movq 0x38(%rbx), %rdi
movq -0x30(%rbp), %rsi
callq 0x29990
testl %eax, %eax
je 0x32fab
cmpl $0x0, 0x6c(%rbx)
je 0x32fdc
movq %r15, %rdi
movq %rbx, %rsi
movl %r14d, %edx
movq %r13, %rcx
movl $0x1, %r8d
callq 0x35eec
testb %al, %al
je 0x32f8b
movq 0x20(%rbx), %rax
decl 0x68(%rax)
movb $0x1, %al
jmp 0x33014
cmpl $0x0, 0x68(%rbx)
je 0x32fed
decl 0x70(%rbx)
jmp 0x32ff6
incl %r12d
movl %r12d, 0x68(%rbx)
movq -0x30(%rbp), %rax
movq %rax, 0x38(%rbx)
jmp 0x3300f
decl 0x6c(%rbx)
je 0x32f53
cmpl $0x3, %r14d
jne 0x33012
decl 0x64(%rbx)
jmp 0x33012
incl 0x6c(%rbx)
jmp 0x33009
incl 0x70(%rbx)
cmpl $0x2, -0x30(%rbp)
jne 0x33012
incl 0x64(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| make_lock_and_pin:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
xor eax, eax
cmp edx, 7; switch 8 cases
ja def_32EE5; jumptable 0000000000032EE5 default case, case 2
mov r14d, ecx
mov rbx, rsi
mov r15, rdi
mov ecx, edx
lea rdx, jpt_32EE5
movsxd rcx, ds:(jpt_32EE5 - 0E1FC0h)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_32EE7:
mov dword ptr [rbp+var_30], r14d; jumptable 0000000000032EE5 case 3
mov rax, [rbx+20h]
mov r12d, [rax+28h]
mov r13, [rax+60h]
call _pthread_self
mov r14, rax
loc_32EFF:
cmp dword ptr [rbx+68h], 0
jz loc_33001
mov rdi, [rbx+38h]
mov rsi, r14
call _pthread_equal
test eax, eax
jnz loc_33006
mov rdi, r15
mov rsi, rbx
mov edx, r12d
mov rcx, r13
xor r8d, r8d
call pagecache_wait_lock
test al, al
jz short loc_32EFF
jmp loc_32FC6
loc_32F3A:
inc dword ptr [rbx+70h]; jumptable 0000000000032EE5 case 7
loc_32F3D:
mov eax, [rbx+68h]; jumptable 0000000000032EE5 case 6
cmp eax, 1
jnz short loc_32F6C
mov eax, [rbx+70h]
mov [rbx+6Ch], eax
xor eax, eax
mov [rbx+70h], eax
mov [rbx+68h], eax
loc_32F53:
cmp qword ptr [rbx+58h], 0
jz loc_32FF6; jumptable 0000000000032EE5 cases 0,1
lea rdi, [rbx+58h]
call wqueue_release_one_locktype_from_queue
jmp loc_32FF6; jumptable 0000000000032EE5 cases 0,1
loc_32F6C:
dec eax
mov [rbx+68h], eax
jmp loc_32FF6; jumptable 0000000000032EE5 cases 0,1
loc_32F76:
mov rax, [rbx+20h]; jumptable 0000000000032EE5 case 4
mov r14d, [rax+28h]
mov r13, [rax+60h]
call _pthread_self
mov [rbp+var_30], rax
loc_32F8B:
mov r12d, [rbx+68h]
test r12d, r12d
jz short loc_32FA5
mov rdi, [rbx+38h]
mov rsi, [rbp+var_30]
call _pthread_equal
test eax, eax
jz short loc_32FAB
loc_32FA5:
cmp dword ptr [rbx+6Ch], 0
jz short loc_32FDC
loc_32FAB:
mov rdi, r15
mov rsi, rbx
mov edx, r14d
mov rcx, r13
mov r8d, 1
call pagecache_wait_lock
test al, al
jz short loc_32F8B
loc_32FC6:
mov rax, [rbx+20h]
dec dword ptr [rax+68h]
mov al, 1
jmp short def_32EE5; jumptable 0000000000032EE5 default case, case 2
loc_32FD1:
cmp dword ptr [rbx+68h], 0; jumptable 0000000000032EE5 case 5
jz short loc_32FED
dec dword ptr [rbx+70h]
jmp short loc_32FF6; jumptable 0000000000032EE5 cases 0,1
loc_32FDC:
inc r12d
mov [rbx+68h], r12d
mov rax, [rbp+var_30]
mov [rbx+38h], rax
jmp short loc_3300F
loc_32FED:
dec dword ptr [rbx+6Ch]
jz loc_32F53
loc_32FF6:
cmp r14d, 3; jumptable 0000000000032EE5 cases 0,1
jnz short loc_33012
dec dword ptr [rbx+64h]
jmp short loc_33012
loc_33001:
inc dword ptr [rbx+6Ch]
jmp short loc_33009
loc_33006:
inc dword ptr [rbx+70h]
loc_33009:
cmp dword ptr [rbp+var_30], 2
jnz short loc_33012
loc_3300F:
inc dword ptr [rbx+64h]
loc_33012:
xor eax, eax
def_32EE5:
add rsp, 8; jumptable 0000000000032EE5 default case, case 2
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char make_lock_and_pin(long long a1, long long a2, int a3, int a4)
{
char result; // al
long long v6; // rax
unsigned int v7; // r12d
long long v8; // r13
long long v9; // r14
int v10; // eax
long long v11; // rax
unsigned int v12; // r14d
long long v13; // r13
int v14; // r12d
long long v17; // [rsp+0h] [rbp-30h]
result = 0;
switch ( a3 )
{
case 0:
case 1:
goto LABEL_23;
case 3:
v6 = *(_QWORD *)(a2 + 32);
v7 = *(_DWORD *)(v6 + 40);
v8 = *(_QWORD *)(v6 + 96);
v9 = pthread_self(a1);
while ( 2 )
{
if ( *(_DWORD *)(a2 + 104) )
{
if ( !(unsigned int)pthread_equal(*(_QWORD *)(a2 + 56), v9) )
{
if ( (unsigned __int8)pagecache_wait_lock(a1, a2, v7, v8, 0LL) )
goto LABEL_18;
continue;
}
++*(_DWORD *)(a2 + 112);
}
else
{
++*(_DWORD *)(a2 + 108);
}
break;
}
if ( a4 == 2 )
goto LABEL_28;
return 0;
case 4:
v11 = *(_QWORD *)(a2 + 32);
v12 = *(_DWORD *)(v11 + 40);
v13 = *(_QWORD *)(v11 + 96);
v17 = pthread_self(a1);
break;
case 5:
if ( *(_DWORD *)(a2 + 104) )
{
--*(_DWORD *)(a2 + 112);
goto LABEL_23;
}
if ( (*(_DWORD *)(a2 + 108))-- != 1 )
goto LABEL_23;
goto LABEL_10;
case 6:
goto LABEL_8;
case 7:
++*(_DWORD *)(a2 + 112);
LABEL_8:
v10 = *(_DWORD *)(a2 + 104);
if ( v10 == 1 )
{
*(_DWORD *)(a2 + 108) = *(_DWORD *)(a2 + 112);
*(_DWORD *)(a2 + 112) = 0;
*(_DWORD *)(a2 + 104) = 0;
LABEL_10:
if ( *(_QWORD *)(a2 + 88) )
wqueue_release_one_locktype_from_queue(a2 + 88);
}
else
{
*(_DWORD *)(a2 + 104) = v10 - 1;
}
LABEL_23:
if ( a4 == 3 )
--*(_DWORD *)(a2 + 100);
return 0;
default:
return result;
}
while ( 1 )
{
v14 = *(_DWORD *)(a2 + 104);
if ( (!v14 || (unsigned int)pthread_equal(*(_QWORD *)(a2 + 56), v17)) && !*(_DWORD *)(a2 + 108) )
break;
if ( (unsigned __int8)pagecache_wait_lock(a1, a2, v12, v13, 1LL) )
{
LABEL_18:
--*(_DWORD *)(*(_QWORD *)(a2 + 32) + 104LL);
return 1;
}
}
*(_DWORD *)(a2 + 104) = v14 + 1;
*(_QWORD *)(a2 + 56) = v17;
LABEL_28:
++*(_DWORD *)(a2 + 100);
return 0;
}
| make_lock_and_pin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
XOR EAX,EAX
CMP EDX,0x7
JA 0x00133014
MOV R14D,ECX
MOV RBX,RSI
MOV R15,RDI
MOV ECX,EDX
LEA RDX,[0x1e1fc0]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_3:
MOV dword ptr [RBP + -0x30],R14D
MOV RAX,qword ptr [RBX + 0x20]
MOV R12D,dword ptr [RAX + 0x28]
MOV R13,qword ptr [RAX + 0x60]
CALL 0x00129580
MOV R14,RAX
LAB_00132eff:
CMP dword ptr [RBX + 0x68],0x0
JZ 0x00133001
MOV RDI,qword ptr [RBX + 0x38]
MOV RSI,R14
CALL 0x00129990
TEST EAX,EAX
JNZ 0x00133006
MOV RDI,R15
MOV RSI,RBX
MOV EDX,R12D
MOV RCX,R13
XOR R8D,R8D
CALL 0x00135eec
TEST AL,AL
JZ 0x00132eff
JMP 0x00132fc6
caseD_7:
INC dword ptr [RBX + 0x70]
caseD_6:
MOV EAX,dword ptr [RBX + 0x68]
CMP EAX,0x1
JNZ 0x00132f6c
MOV EAX,dword ptr [RBX + 0x70]
MOV dword ptr [RBX + 0x6c],EAX
XOR EAX,EAX
MOV dword ptr [RBX + 0x70],EAX
MOV dword ptr [RBX + 0x68],EAX
LAB_00132f53:
CMP qword ptr [RBX + 0x58],0x0
JZ 0x00132ff6
LEA RDI,[RBX + 0x58]
CALL 0x001a76e7
JMP 0x00132ff6
LAB_00132f6c:
DEC EAX
MOV dword ptr [RBX + 0x68],EAX
JMP 0x00132ff6
caseD_4:
MOV RAX,qword ptr [RBX + 0x20]
MOV R14D,dword ptr [RAX + 0x28]
MOV R13,qword ptr [RAX + 0x60]
CALL 0x00129580
MOV qword ptr [RBP + -0x30],RAX
LAB_00132f8b:
MOV R12D,dword ptr [RBX + 0x68]
TEST R12D,R12D
JZ 0x00132fa5
MOV RDI,qword ptr [RBX + 0x38]
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x00129990
TEST EAX,EAX
JZ 0x00132fab
LAB_00132fa5:
CMP dword ptr [RBX + 0x6c],0x0
JZ 0x00132fdc
LAB_00132fab:
MOV RDI,R15
MOV RSI,RBX
MOV EDX,R14D
MOV RCX,R13
MOV R8D,0x1
CALL 0x00135eec
TEST AL,AL
JZ 0x00132f8b
LAB_00132fc6:
MOV RAX,qword ptr [RBX + 0x20]
DEC dword ptr [RAX + 0x68]
MOV AL,0x1
JMP 0x00133014
caseD_5:
CMP dword ptr [RBX + 0x68],0x0
JZ 0x00132fed
DEC dword ptr [RBX + 0x70]
JMP 0x00132ff6
LAB_00132fdc:
INC R12D
MOV dword ptr [RBX + 0x68],R12D
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBX + 0x38],RAX
JMP 0x0013300f
LAB_00132fed:
DEC dword ptr [RBX + 0x6c]
JZ 0x00132f53
caseD_0:
CMP R14D,0x3
JNZ 0x00133012
DEC dword ptr [RBX + 0x64]
JMP 0x00133012
LAB_00133001:
INC dword ptr [RBX + 0x6c]
JMP 0x00133009
LAB_00133006:
INC dword ptr [RBX + 0x70]
LAB_00133009:
CMP dword ptr [RBP + -0x30],0x2
JNZ 0x00133012
LAB_0013300f:
INC dword ptr [RBX + 0x64]
LAB_00133012:
XOR EAX,EAX
caseD_2:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 make_lock_and_pin(int8 param_1,long param_2,int4 param_3,int param_4)
{
int *piVar1;
int4 uVar2;
long lVar3;
char cVar4;
int iVar5;
int iVar6;
pthread_t pVar7;
int8 uVar8;
uVar8 = 0;
switch(param_3) {
case 0:
case 1:
goto switchD_00132ee5_caseD_0;
default:
goto switchD_00132ee5_caseD_2;
case 3:
uVar2 = *(int4 *)(*(long *)(param_2 + 0x20) + 0x28);
uVar8 = *(int8 *)(*(long *)(param_2 + 0x20) + 0x60);
pVar7 = pthread_self();
do {
if (*(int *)(param_2 + 0x68) == 0) {
*(int *)(param_2 + 0x6c) = *(int *)(param_2 + 0x6c) + 1;
LAB_00133009:
if (param_4 != 2) {
return 0;
}
LAB_0013300f:
*(int *)(param_2 + 100) = *(int *)(param_2 + 100) + 1;
return 0;
}
iVar5 = pthread_equal(*(pthread_t *)(param_2 + 0x38),pVar7);
if (iVar5 != 0) {
*(int *)(param_2 + 0x70) = *(int *)(param_2 + 0x70) + 1;
goto LAB_00133009;
}
cVar4 = pagecache_wait_lock(param_1,param_2,uVar2,uVar8,0);
} while (cVar4 == '\0');
break;
case 4:
uVar2 = *(int4 *)(*(long *)(param_2 + 0x20) + 0x28);
uVar8 = *(int8 *)(*(long *)(param_2 + 0x20) + 0x60);
pVar7 = pthread_self();
do {
iVar5 = *(int *)(param_2 + 0x68);
if (((iVar5 == 0) || (iVar6 = pthread_equal(*(pthread_t *)(param_2 + 0x38),pVar7), iVar6 != 0)
) && (*(int *)(param_2 + 0x6c) == 0)) {
*(int *)(param_2 + 0x68) = iVar5 + 1;
*(pthread_t *)(param_2 + 0x38) = pVar7;
goto LAB_0013300f;
}
cVar4 = pagecache_wait_lock(param_1,param_2,uVar2,uVar8,1);
} while (cVar4 == '\0');
break;
case 5:
if (*(int *)(param_2 + 0x68) != 0) {
*(int *)(param_2 + 0x70) = *(int *)(param_2 + 0x70) + -1;
goto switchD_00132ee5_caseD_0;
}
piVar1 = (int *)(param_2 + 0x6c);
*piVar1 = *piVar1 + -1;
if (*piVar1 != 0) goto switchD_00132ee5_caseD_0;
goto LAB_00132f53;
case 7:
*(int *)(param_2 + 0x70) = *(int *)(param_2 + 0x70) + 1;
case 6:
if (*(int *)(param_2 + 0x68) == 1) {
*(int4 *)(param_2 + 0x6c) = *(int4 *)(param_2 + 0x70);
*(int4 *)(param_2 + 0x70) = 0;
*(int4 *)(param_2 + 0x68) = 0;
LAB_00132f53:
if (*(long *)(param_2 + 0x58) != 0) {
wqueue_release_one_locktype_from_queue(param_2 + 0x58);
}
}
else {
*(int *)(param_2 + 0x68) = *(int *)(param_2 + 0x68) + -1;
}
switchD_00132ee5_caseD_0:
if (param_4 == 3) {
*(int *)(param_2 + 100) = *(int *)(param_2 + 100) + -1;
}
return 0;
}
lVar3 = *(long *)(param_2 + 0x20);
piVar1 = (int *)(lVar3 + 0x68);
*piVar1 = *piVar1 + -1;
uVar8 = CONCAT71((int7)((ulong)lVar3 >> 8),1);
switchD_00132ee5_caseD_2:
return uVar8;
}
| |
23,269 | common_init()::$_0::operator void (*)(ggml_log_level, char const*, void*)() const | monkey531[P]llama/common/common.cpp | void common_init() {
llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
if (LOG_DEFAULT_LLAMA <= common_log_verbosity_thold) {
common_log_add(common_log_main(), level, "%s", text);
}
}, NULL);
#ifdef NDEBUG
const char * build_type = "";
#else
const char * build_type = " (debug)";
#endif
LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
} | O0 | cpp | common_init()::$_0::operator void (*)(ggml_log_level, char const*, void*)() const:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
xorl %eax, %eax
leaq 0x1b1c50(%rip), %rcx # 0x2705f0
cmpl (%rcx), %eax
jg 0xbe9c3
callq 0x1821d0
movq %rax, %rdi
movl 0x1c(%rsp), %esi
movq 0x10(%rsp), %rcx
leaq 0x1311bb(%rip), %rdx # 0x1efb77
movb $0x0, %al
callq 0x1822c0
addq $0x28, %rsp
retq
nopl (%rax,%rax)
| _ZZ11common_initvENK3$_0clE14ggml_log_levelPKcPv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_C], esi
mov [rsp+28h+var_18], rdx
mov [rsp+28h+var_20], rcx
xor eax, eax
lea rcx, common_log_verbosity_thold
cmp eax, [rcx]
jg short loc_BE9C3
call _Z15common_log_mainv; common_log_main(void)
mov rdi, rax
mov esi, [rsp+28h+var_C]
mov rcx, [rsp+28h+var_18]
lea rdx, aSkippingToolWi+20h; "%s"
mov al, 0
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_BE9C3:
add rsp, 28h
retn
| long long common_init(void)::$_0::operator()(long long a1, int a2, int a3)
{
long long result; // rax
int v4; // eax
int v5; // r8d
int v6; // r9d
result = 0LL;
if ( common_log_verbosity_thold >= 0 )
{
v4 = common_log_main();
return common_log_add(v4, a2, (unsigned int)"%s", a3, v5, v6);
}
return result;
}
| operator():
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ESI
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x8],RCX
XOR EAX,EAX
LEA RCX,[0x3705f0]
CMP EAX,dword ptr [RCX]
JG 0x001be9c3
CALL 0x002821d0
MOV RDI,RAX
MOV ESI,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x10]
LEA RDX,[0x2efb77]
MOV AL,0x0
CALL 0x002822c0
LAB_001be9c3:
ADD RSP,0x28
RET
|
/* common_init()::$_0::TEMPNAMEPLACEHOLDERVALUE(ggml_log_level, char const*, void*) const */
void common_init()::$_0::operator()(int8 param_1,int4 param_2,int8 param_3)
{
int8 uVar1;
if (-1 < common_log_verbosity_thold) {
uVar1 = common_log_main();
common_log_add(uVar1,param_2,"%s",param_3);
}
return;
}
| |
23,270 | inline_mysql_file_read | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_read(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_read(file, buffer, count, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_read(file, buffer, count, flags);
return result;
} | O0 | c | inline_mysql_file_read:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1b3688(%rip), %rax # 0x217310
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x63d97
leaq 0x1b363e(%rip), %rax # 0x217310
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0x67d40
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x63d42
cmpq $0x0, -0x38(%rbp)
jne 0x63d27
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x63d32
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0x63d32
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x63d6f
cmpq $-0x1, -0x38(%rbp)
je 0x63d56
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x63d61
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0x63d61
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x1b359a(%rip), %rax # 0x217310
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x63db7
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0x67d40
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_file_read:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
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 loc_63D97
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_read
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_63D42
cmp [rbp+var_38], 0
jnz short loc_63D27
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_63D32
loc_63D27:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_63D32:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_63D6F
loc_63D42:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_63D56
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_63D61
loc_63D56:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_63D61:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_63D6F:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_63DB7
loc_63D97:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_read
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_63DB7:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_read(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6)
{
long long v7; // [rsp+0h] [rbp-A0h]
long long v8; // [rsp+8h] [rbp-98h]
_BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF
long long v10; // [rsp+60h] [rbp-40h]
long long v11; // [rsp+68h] [rbp-38h]
long long v12; // [rsp+70h] [rbp-30h]
long long v13; // [rsp+78h] [rbp-28h]
long long v14; // [rsp+80h] [rbp-20h]
unsigned int v15; // [rsp+88h] [rbp-18h]
unsigned int v16; // [rsp+8Ch] [rbp-14h]
long long v17; // [rsp+90h] [rbp-10h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v12 = a6;
v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 6LL);
if ( v10 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16);
v11 = my_read(v15, v14, v13, v12);
if ( (v12 & 6) != 0 )
{
if ( v11 )
v8 = 0LL;
else
v8 = v13;
((void ( *)(long long, long long))PSI_server[67])(v10, v8);
}
else
{
if ( v11 == -1 )
v7 = 0LL;
else
v7 = v11;
((void ( *)(long long, long long))PSI_server[67])(v10, v7);
}
return v11;
}
else
{
return my_read(v15, v14, v13, v12);
}
}
| inline_mysql_file_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
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 qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x317310]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
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 0x00163d97
LEA RAX,[0x317310]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x00167d40
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x00163d42
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00163d27
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x00163d32
LAB_00163d27:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x00163d32
LAB_00163d32:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x00163d6f
LAB_00163d42:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x00163d56
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x00163d61
LAB_00163d56:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x00163d61
LAB_00163d61:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_00163d6f:
LEA RAX,[0x317310]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00163db7
LAB_00163d97:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x00167d40
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_00163db7:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_read
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,ulong param_6)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
ulong local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_read(local_20,local_28,local_30,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_read(local_20,local_28,local_30,local_38);
if ((local_38 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
23,271 | js_iterator_proto_get_toStringTag | bluesky950520[P]quickjs/quickjs.c | static JSValue __JS_AtomToValue(JSContext *ctx, JSAtom atom, BOOL force_string)
{
char buf[ATOM_GET_STR_BUF_SIZE];
if (__JS_AtomIsTaggedInt(atom)) {
size_t len = u32toa(buf, __JS_AtomToUInt32(atom));
return js_new_string8_len(ctx, buf, len);
} else {
JSRuntime *rt = ctx->rt;
JSAtomStruct *p;
assert(atom < rt->atom_size);
p = rt->atom_array[atom];
if (p->atom_type == JS_ATOM_TYPE_STRING) {
goto ret_string;
} else if (force_string) {
if (p->len == 0 && p->is_wide_char != 0) {
/* no description string */
p = rt->atom_array[JS_ATOM_empty_string];
}
ret_string:
return js_dup(JS_MKPTR(JS_TAG_STRING, p));
} else {
return js_dup(JS_MKPTR(JS_TAG_SYMBOL, p));
}
}
} | O1 | c | js_iterator_proto_get_toStringTag:
movq 0x18(%rdi), %rax
movq 0x68(%rax), %rcx
movq 0x5c0(%rcx), %rax
movq 0x4(%rax), %rdx
movq %rdx, %rsi
shrq $0x3e, %rsi
cmpl $0x1, %esi
sete %sil
negl %edx
setno %dl
orb %sil, %dl
jne 0x77102
movq 0x178(%rcx), %rax
incl (%rax)
movq $-0x7, %rdx
retq
| js_iterator_proto_get_toStringTag:
mov rax, [rdi+18h]
mov rcx, [rax+68h]
mov rax, [rcx+5C0h]
mov rdx, [rax+4]
mov rsi, rdx
shr rsi, 3Eh
cmp esi, 1
setz sil
neg edx
setno dl
or dl, sil
jnz short loc_77102
mov rax, [rcx+178h]
loc_77102:
inc dword ptr [rax]
mov rdx, 0FFFFFFFFFFFFFFF9h
retn
| long long js_iterator_proto_get_toStringTag(long long a1)
{
long long v1; // rcx
long long result; // rax
v1 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL);
result = *(_QWORD *)(v1 + 1472);
if ( !((*(_QWORD *)(result + 4) >> 62 == 1) | !__OFSUB__(-(int)*(_QWORD *)(result + 4), 1)) )
result = *(_QWORD *)(v1 + 376);
++*(_DWORD *)result;
return result;
}
| js_iterator_proto_get_toStringTag:
MOV RAX,qword ptr [RDI + 0x18]
MOV RCX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RCX + 0x5c0]
MOV RDX,qword ptr [RAX + 0x4]
MOV RSI,RDX
SHR RSI,0x3e
CMP ESI,0x1
SETZ SIL
NEG EDX
SETNO DL
OR DL,SIL
JNZ 0x00177102
MOV RAX,qword ptr [RCX + 0x178]
LAB_00177102:
INC dword ptr [RAX]
MOV RDX,-0x7
RET
|
/* WARNING: Removing unreachable block (ram,0x001770fb) */
void js_iterator_proto_get_toStringTag(long param_1)
{
int *piVar1;
piVar1 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + 0x5c0);
*piVar1 = *piVar1 + 1;
return;
}
| |
23,272 | js_iterator_proto_get_toStringTag | bluesky950520[P]quickjs/quickjs.c | static JSValue __JS_AtomToValue(JSContext *ctx, JSAtom atom, BOOL force_string)
{
char buf[ATOM_GET_STR_BUF_SIZE];
if (__JS_AtomIsTaggedInt(atom)) {
size_t len = u32toa(buf, __JS_AtomToUInt32(atom));
return js_new_string8_len(ctx, buf, len);
} else {
JSRuntime *rt = ctx->rt;
JSAtomStruct *p;
assert(atom < rt->atom_size);
p = rt->atom_array[atom];
if (p->atom_type == JS_ATOM_TYPE_STRING) {
goto ret_string;
} else if (force_string) {
if (p->len == 0 && p->is_wide_char != 0) {
/* no description string */
p = rt->atom_array[JS_ATOM_empty_string];
}
ret_string:
return js_dup(JS_MKPTR(JS_TAG_STRING, p));
} else {
return js_dup(JS_MKPTR(JS_TAG_SYMBOL, p));
}
}
} | O2 | c | js_iterator_proto_get_toStringTag:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
testl %esi, %esi
js 0x1e514
movq 0x18(%rbx), %rax
movq 0x68(%rax), %rcx
movl %esi, %eax
movq (%rcx,%rax,8), %rax
movq 0x4(%rax), %rsi
movq %rsi, %rdi
shrq $0x3e, %rdi
cmpl $0x1, %edi
je 0x1e50d
testl %edx, %edx
je 0x1e53a
negl %esi
jno 0x1e50d
movq 0x178(%rcx), %rax
incl (%rax)
pushq $-0x7
popq %rdx
jmp 0x1e532
andl $0x7fffffff, %esi # imm = 0x7FFFFFFF
movq %rsp, %r14
movq %r14, %rdi
callq 0x1a032
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x1e098
addq $0x48, %rsp
popq %rbx
popq %r14
retq
incl (%rax)
pushq $-0x8
jmp 0x1e511
| __JS_AtomToValue:
push r14
push rbx
sub rsp, 48h
mov rbx, rdi
test esi, esi
js short loc_1E514
mov rax, [rbx+18h]
mov rcx, [rax+68h]
mov eax, esi
mov rax, [rcx+rax*8]
mov rsi, [rax+4]
mov rdi, rsi
shr rdi, 3Eh
cmp edi, 1
jz short loc_1E50D
test edx, edx
jz short loc_1E53A
neg esi
jno short loc_1E50D
mov rax, [rcx+178h]
loc_1E50D:
inc dword ptr [rax]
push 0FFFFFFFFFFFFFFF9h
loc_1E511:
pop rdx
jmp short loc_1E532
loc_1E514:
and esi, 7FFFFFFFh
mov r14, rsp
mov rdi, r14
call u32toa
mov rdi, rbx
mov rsi, r14
mov edx, eax
call js_new_string8_len
loc_1E532:
add rsp, 48h
pop rbx
pop r14
retn
loc_1E53A:
inc dword ptr [rax]
push 0FFFFFFFFFFFFFFF8h
jmp short loc_1E511
| long long _JS_AtomToValue(long long a1, int a2, int a3)
{
long long v3; // rcx
long long result; // rax
unsigned long long v5; // rsi
unsigned int v6; // eax
_BYTE v7[88]; // [rsp+0h] [rbp-58h] BYREF
if ( a2 < 0 )
{
v6 = u32toa(v7, a2 & 0x7FFFFFFF);
return js_new_string8_len(a1, (long long)v7, v6);
}
else
{
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL);
result = *(_QWORD *)(v3 + 8LL * (unsigned int)a2);
v5 = *(_QWORD *)(result + 4);
if ( v5 >> 62 == 1 )
{
LABEL_6:
++*(_DWORD *)result;
return result;
}
if ( a3 )
{
if ( __OFSUB__(-(int)v5, 1) )
result = *(_QWORD *)(v3 + 376);
goto LABEL_6;
}
++*(_DWORD *)result;
}
return result;
}
| __JS_AtomToValue:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
TEST ESI,ESI
JS 0x0011e514
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RAX + 0x68]
MOV EAX,ESI
MOV RAX,qword ptr [RCX + RAX*0x8]
MOV RSI,qword ptr [RAX + 0x4]
MOV RDI,RSI
SHR RDI,0x3e
CMP EDI,0x1
JZ 0x0011e50d
TEST EDX,EDX
JZ 0x0011e53a
NEG ESI
JNO 0x0011e50d
MOV RAX,qword ptr [RCX + 0x178]
LAB_0011e50d:
INC dword ptr [RAX]
PUSH -0x7
LAB_0011e511:
POP RDX
JMP 0x0011e532
LAB_0011e514:
AND ESI,0x7fffffff
MOV R14,RSP
MOV RDI,R14
CALL 0x0011a032
MOV RDI,RBX
MOV RSI,R14
MOV EDX,EAX
CALL 0x0011e098
LAB_0011e532:
ADD RSP,0x48
POP RBX
POP R14
RET
LAB_0011e53a:
INC dword ptr [RAX]
PUSH -0x8
JMP 0x0011e511
|
/* WARNING: Removing unreachable block (ram,0x0011e506) */
void __JS_AtomToValue(long param_1,uint param_2,int param_3)
{
int *piVar1;
int4 uVar2;
int1 auStack_58 [72];
if ((int)param_2 < 0) {
uVar2 = u32toa(auStack_58,param_2 & 0x7fffffff);
js_new_string8_len(param_1,auStack_58,uVar2);
}
else {
piVar1 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_2 * 8);
if (((uint)((ulong)*(int8 *)(piVar1 + 1) >> 0x3e) == 1) || (param_3 != 0)) {
*piVar1 = *piVar1 + 1;
}
else {
*piVar1 = *piVar1 + 1;
}
}
return;
}
| |
23,273 | google::protobuf::(anonymous namespace)::SourceLocationCommentPrinter::AddPostComment(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | void AddPostComment(std::string* output) {
if (have_source_loc_ && source_loc_.trailing_comments.size() > 0) {
*output += FormatComment(source_loc_.trailing_comments);
}
} | O3 | cpp | google::protobuf::(anonymous namespace)::SourceLocationCommentPrinter::AddPostComment(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*):
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpb $0x1, (%rdi)
jne 0xc469e
movq %rsi, %rbx
movq %rdi, %rsi
movq 0x40(%rdi), %rcx
testq %rcx, %rcx
je 0xc469e
movq 0x38(%rsi), %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xdd932
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x2e460
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc469e
callq 0x2d160
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc46bc
callq 0x2d160
movq %rbx, %rdi
callq 0x2e220
| _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinter14AddPostCommentEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r14
push rbx; char
sub rsp, 28h
cmp byte ptr [rdi], 1
jnz short loc_C469E
mov rbx, rsi
mov rsi, rdi
mov rcx, [rdi+40h]
test rcx, rcx
jz short loc_C469E
mov rdx, [rsi+38h]
lea r14, [rsp+38h+var_30]
mov rdi, r14; int
call _ZN6google8protobuf12_GLOBAL__N_128SourceLocationCommentPrinter13FormatCommentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::FormatComment(std::string const&)
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C469E
call __ZdlPv; operator delete(void *)
loc_C469E:
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C46BC
call __ZdlPv; operator delete(void *)
loc_C46BC:
mov rdi, rbx
call __Unwind_Resume
| void google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::AddPostComment(
long long a1,
long long a2)
{
long long v2; // [rsp+0h] [rbp-38h]
char *v3; // [rsp+8h] [rbp-30h] BYREF
long long v4; // [rsp+10h] [rbp-28h]
char v5; // [rsp+18h] [rbp-20h] BYREF
int v6; // [rsp+20h] [rbp-18h]
char v7; // [rsp+28h] [rbp-10h]
if ( *(_BYTE *)a1 == 1 && *(_QWORD *)(a1 + 64) )
{
google::protobuf::`anonymous namespace'::SourceLocationCommentPrinter::FormatComment(
(int)&v3,
v2,
v3,
v4,
v5,
v6,
v7);
std::string::_M_append(a2, v3, v4);
if ( v3 != &v5 )
operator delete(v3);
}
}
| AddPostComment:
PUSH R14
PUSH RBX
SUB RSP,0x28
CMP byte ptr [RDI],0x1
JNZ 0x001c469e
MOV RBX,RSI
MOV RSI,RDI
MOV RCX,qword ptr [RDI + 0x40]
TEST RCX,RCX
JZ 0x001c469e
MOV RDX,qword ptr [RSI + 0x38]
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001dd932
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_001c4683:
MOV RDI,RBX
CALL 0x0012e460
LAB_001c468b:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001c469e
CALL 0x0012d160
LAB_001c469e:
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* google::protobuf::(anonymous
namespace)::SourceLocationCommentPrinter::AddPostComment(std::__cxx11::string*) */
void __thiscall
google::protobuf::(anonymous_namespace)::SourceLocationCommentPrinter::AddPostComment
(SourceLocationCommentPrinter *this,string *param_1)
{
char *local_30;
ulong local_28;
char local_20 [16];
if ((*this == (SourceLocationCommentPrinter)0x1) && (*(long *)(this + 0x40) != 0)) {
FormatComment((string *)&local_30);
/* try { // try from 001c4683 to 001c468a has its CatchHandler @ 001c46a6 */
std::__cxx11::string::_M_append(param_1,local_30,local_28);
if (local_30 != local_20) {
operator_delete(local_30);
}
}
return;
}
| |
23,274 | string_from[abi:cxx11](llama_context const*, llama_batch const&) | monkey531[P]llama/common/common.cpp | std::string string_from(const struct llama_context * ctx, const struct llama_batch & batch) {
std::stringstream buf;
buf << "[ ";
bool first = true;
for (int i = 0; i < batch.n_tokens; ++i) {
if (!first) {
buf << ", ";
} else {
first = false;
}
auto detokenized = common_token_to_piece(ctx, batch.token[i]);
detokenized.erase(
std::remove_if(
detokenized.begin(),
detokenized.end(),
[](const unsigned char c) { return !std::isprint(c); }),
detokenized.end());
buf << "\n" << std::to_string(i)
<< ", token '" << detokenized << "'"
<< ", pos " << std::to_string(batch.pos[i])
<< ", n_seq_id " << std::to_string(batch.n_seq_id[i])
<< ", seq_id " << std::to_string(batch.seq_id[i][0])
<< ", logits " << std::to_string(batch.logits[i]);
}
buf << " ]";
return buf.str();
} | O0 | cpp | string_from[abi:cxx11](llama_context const*, llama_batch const&):
subq $0x348, %rsp # imm = 0x348
movq %rdi, 0x80(%rsp)
movq %rdi, %rax
movq %rax, 0x88(%rsp)
movq %rdi, 0x340(%rsp)
movq %rsi, 0x338(%rsp)
movq %rdx, 0x330(%rsp)
leaq 0x1a8(%rsp), %rdi
callq 0x5a550
leaq 0x1b8(%rsp), %rdi
leaq 0x1234c5(%rip), %rsi # 0x213c53
callq 0x5aa60
jmp 0xf0795
movb $0x1, 0x19b(%rsp)
movl $0x0, 0x194(%rsp)
movl 0x194(%rsp), %eax
movq 0x330(%rsp), %rcx
cmpl (%rcx), %eax
jge 0xf0c24
testb $0x1, 0x19b(%rsp)
jne 0xf07fa
leaq 0x1b8(%rsp), %rdi
leaq 0x123e32(%rip), %rsi # 0x21460a
callq 0x5aa60
jmp 0xf07df
jmp 0xf0802
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
jmp 0xf0c6e
movb $0x0, 0x19b(%rsp)
movq 0x338(%rsp), %rsi
movq 0x330(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x194(%rsp), %rcx
movl (%rax,%rcx,4), %edx
leaq 0x170(%rsp), %rdi
movl $0x1, %ecx
callq 0xf0680
jmp 0xf0835
leaq 0x170(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x5a890
movq 0x70(%rsp), %rdi
movq %rax, 0x158(%rsp)
callq 0x5a990
movq %rax, 0x150(%rsp)
movq 0x158(%rsp), %rdi
movq 0x150(%rsp), %rsi
callq 0xf0c90
movq %rax, 0x78(%rsp)
jmp 0xf087d
movq 0x78(%rsp), %rax
movq %rax, 0x160(%rsp)
leaq 0x168(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0xc2cb0
leaq 0x170(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x5a990
movq %rax, 0x138(%rsp)
leaq 0x140(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0xc2cb0
movq 0x60(%rsp), %rdi
movq 0x168(%rsp), %rsi
movq 0x140(%rsp), %rdx
callq 0x5a7d0
movq %rax, 0x68(%rsp)
jmp 0xf08ef
movq 0x68(%rsp), %rax
movq %rax, 0x130(%rsp)
leaq 0x1b8(%rsp), %rdi
leaq 0x119bfb(%rip), %rsi # 0x20a506
callq 0x5aa60
movq %rax, 0x58(%rsp)
jmp 0xf0917
movl 0x194(%rsp), %esi
leaq 0x110(%rsp), %rdi
callq 0xa6f50
jmp 0xf092d
movq 0x58(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x5a540
movq %rax, 0x50(%rsp)
jmp 0xf0946
movq 0x50(%rsp), %rdi
leaq 0x123307(%rip), %rsi # 0x213c59
callq 0x5aa60
movq %rax, 0x48(%rsp)
jmp 0xf095e
movq 0x48(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x5a540
movq %rax, 0x40(%rsp)
jmp 0xf0977
movq 0x40(%rsp), %rdi
leaq 0x121f48(%rip), %rsi # 0x2128cb
callq 0x5aa60
movq %rax, 0x38(%rsp)
jmp 0xf098f
movq 0x38(%rsp), %rdi
leaq 0x1232c8(%rip), %rsi # 0x213c63
callq 0x5aa60
movq %rax, 0x30(%rsp)
jmp 0xf09a7
movq 0x330(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x194(%rsp), %rcx
movl (%rax,%rcx,4), %esi
leaq 0xf0(%rsp), %rdi
callq 0xa6f50
jmp 0xf09cd
movq 0x30(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x5a540
movq %rax, 0x28(%rsp)
jmp 0xf09e6
movq 0x28(%rsp), %rdi
leaq 0x123278(%rip), %rsi # 0x213c6a
callq 0x5aa60
movq %rax, 0x20(%rsp)
jmp 0xf09fe
movq 0x330(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x194(%rsp), %rcx
movl (%rax,%rcx,4), %esi
leaq 0xd0(%rsp), %rdi
callq 0xa6f50
jmp 0xf0a24
movq 0x20(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x5a540
movq %rax, 0x18(%rsp)
jmp 0xf0a3d
movq 0x18(%rsp), %rdi
leaq 0x12322d(%rip), %rsi # 0x213c76
callq 0x5aa60
movq %rax, 0x10(%rsp)
jmp 0xf0a55
movq 0x330(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0x194(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
leaq 0xb0(%rsp), %rdi
callq 0xa6f50
jmp 0xf0a7e
movq 0x10(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x5a540
movq %rax, 0x8(%rsp)
jmp 0xf0a97
movq 0x8(%rsp), %rdi
leaq 0x1231dd(%rip), %rsi # 0x213c80
callq 0x5aa60
movq %rax, (%rsp)
jmp 0xf0aae
movq 0x330(%rsp), %rax
movq 0x30(%rax), %rax
movslq 0x194(%rsp), %rcx
movsbl (%rax,%rcx), %esi
leaq 0x90(%rsp), %rdi
callq 0xa6f50
jmp 0xf0ad5
movq (%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x5a540
jmp 0xf0ae8
leaq 0x90(%rsp), %rdi
callq 0x5b648
leaq 0xb0(%rsp), %rdi
callq 0x5b648
leaq 0xd0(%rsp), %rdi
callq 0x5b648
leaq 0xf0(%rsp), %rdi
callq 0x5b648
leaq 0x110(%rsp), %rdi
callq 0x5b648
leaq 0x170(%rsp), %rdi
callq 0x5b648
movl 0x194(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x194(%rsp)
jmp 0xf07a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
jmp 0xf0c15
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
jmp 0xf0c08
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
jmp 0xf0bfb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
jmp 0xf0bee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
jmp 0xf0be1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1a0(%rsp)
movl %eax, 0x19c(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x5b648
leaq 0xb0(%rsp), %rdi
callq 0x5b648
leaq 0xd0(%rsp), %rdi
callq 0x5b648
leaq 0xf0(%rsp), %rdi
callq 0x5b648
leaq 0x110(%rsp), %rdi
callq 0x5b648
leaq 0x170(%rsp), %rdi
callq 0x5b648
jmp 0xf0c6e
leaq 0x1b8(%rsp), %rdi
leaq 0x123023(%rip), %rsi # 0x213c56
callq 0x5aa60
jmp 0xf0c3a
movq 0x80(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
callq 0x5ace0
jmp 0xf0c51
leaq 0x1a8(%rsp), %rdi
callq 0x5a6a0
movq 0x88(%rsp), %rax
addq $0x348, %rsp # imm = 0x348
retq
leaq 0x1a8(%rsp), %rdi
callq 0x5a6a0
movq 0x1a0(%rsp), %rdi
callq 0x5ac00
nopl (%rax,%rax)
| _Z11string_fromB5cxx11PK13llama_contextRK11llama_batch:
sub rsp, 348h
mov [rsp+348h+var_2C8], rdi
mov rax, rdi
mov [rsp+348h+var_2C0], rax
mov [rsp+348h+var_8], rdi
mov [rsp+348h+var_10], rsi
mov [rsp+348h+var_18], rdx
lea rdi, [rsp+348h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea rdi, [rsp+348h+var_190]
lea rsi, asc_213C53; "[ "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_F0795:
mov [rsp+348h+var_1AD], 1
mov [rsp+348h+var_1B4], 0
loc_F07A8:
mov eax, [rsp+348h+var_1B4]
mov rcx, [rsp+348h+var_18]
cmp eax, [rcx]
jge loc_F0C24
test [rsp+348h+var_1AD], 1
jnz short loc_F07FA
lea rdi, [rsp+348h+var_190]
lea rsi, aZuD+6; ", "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_F07DF:
jmp short loc_F0802
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
jmp loc_F0C6E
loc_F07FA:
mov [rsp+348h+var_1AD], 0
loc_F0802:
mov rsi, [rsp+348h+var_10]
mov rax, [rsp+348h+var_18]
mov rax, [rax+8]
movsxd rcx, [rsp+348h+var_1B4]
mov edx, [rax+rcx*4]
lea rdi, [rsp+348h+var_1D8]
mov ecx, 1
call _Z21common_token_to_pieceB5cxx11PK13llama_contextib; common_token_to_piece(llama_context const*,int,bool)
jmp short $+2
loc_F0835:
lea rdi, [rsp+348h+var_1D8]
mov [rsp+348h+var_2D8], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void)
mov rdi, [rsp+348h+var_2D8]
mov [rsp+348h+var_1F0], rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void)
mov [rsp+348h+var_1F8], rax
mov rdi, [rsp+348h+var_1F0]
mov rsi, [rsp+348h+var_1F8]
call _ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZ11string_fromPK13llama_contextRK11llama_batchE3$_0ET_SH_SH_T0_; std::remove_if<__gnu_cxx::__normal_iterator<char *,std::string>,string_from(llama_context const*,llama_batch const&)::$_0>(__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,string_from(llama_context const*,llama_batch const&)::$_0)
mov [rsp+348h+var_2D0], rax
jmp short $+2
loc_F087D:
mov rax, [rsp+348h+var_2D0]
mov [rsp+348h+var_1E8], rax
lea rdi, [rsp+348h+var_1E0]
lea rsi, [rsp+348h+var_1E8]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcEERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE
lea rdi, [rsp+348h+var_1D8]
mov [rsp+348h+var_2E8], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void)
mov [rsp+348h+var_210], rax
lea rdi, [rsp+348h+var_208]
lea rsi, [rsp+348h+var_210]
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcEERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE
mov rdi, [rsp+348h+var_2E8]
mov rsi, [rsp+348h+var_1E0]
mov rdx, [rsp+348h+var_208]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_; std::string::erase(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>)
mov [rsp+348h+var_2E0], rax
jmp short $+2
loc_F08EF:
mov rax, [rsp+348h+var_2E0]
mov [rsp+348h+var_218], rax
lea rdi, [rsp+348h+var_190]
lea rsi, aInfillMode+1Bh; "\n"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_2F0], rax
jmp short $+2
loc_F0917:
mov esi, [rsp+348h+var_1B4]; int
lea rdi, [rsp+348h+var_238]; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
jmp short $+2
loc_F092D:
mov rdi, [rsp+348h+var_2F0]
lea rsi, [rsp+348h+var_238]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov [rsp+348h+var_2F8], rax
jmp short $+2
loc_F0946:
mov rdi, [rsp+348h+var_2F8]
lea rsi, aToken; ", token '"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_300], rax
jmp short $+2
loc_F095E:
mov rdi, [rsp+348h+var_300]
lea rsi, [rsp+348h+var_1D8]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov [rsp+348h+var_308], rax
jmp short $+2
loc_F0977:
mov rdi, [rsp+348h+var_308]
lea rsi, asc_2128C9+2; "'"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_310], rax
jmp short $+2
loc_F098F:
mov rdi, [rsp+348h+var_310]
lea rsi, aPos_0; ", pos "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_318], rax
jmp short $+2
loc_F09A7:
mov rax, [rsp+348h+var_18]
mov rax, [rax+18h]
movsxd rcx, [rsp+348h+var_1B4]
mov esi, [rax+rcx*4]; int
lea rdi, [rsp+348h+var_258]; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
jmp short $+2
loc_F09CD:
mov rdi, [rsp+348h+var_318]
lea rsi, [rsp+348h+var_258]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov [rsp+348h+var_320], rax
jmp short $+2
loc_F09E6:
mov rdi, [rsp+348h+var_320]
lea rsi, aNSeqId; ", n_seq_id "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_328], rax
jmp short $+2
loc_F09FE:
mov rax, [rsp+348h+var_18]
mov rax, [rax+20h]
movsxd rcx, [rsp+348h+var_1B4]
mov esi, [rax+rcx*4]; int
lea rdi, [rsp+348h+var_278]; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
jmp short $+2
loc_F0A24:
mov rdi, [rsp+348h+var_328]
lea rsi, [rsp+348h+var_278]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov [rsp+348h+var_330], rax
jmp short $+2
loc_F0A3D:
mov rdi, [rsp+348h+var_330]
lea rsi, aSeqId; ", seq_id "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_338], rax
jmp short $+2
loc_F0A55:
mov rax, [rsp+348h+var_18]
mov rax, [rax+28h]
movsxd rcx, [rsp+348h+var_1B4]
mov rax, [rax+rcx*8]
mov esi, [rax]; int
lea rdi, [rsp+348h+var_298]; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
jmp short $+2
loc_F0A7E:
mov rdi, [rsp+348h+var_338]
lea rsi, [rsp+348h+var_298]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov [rsp+348h+var_340], rax
jmp short $+2
loc_F0A97:
mov rdi, [rsp+348h+var_340]
lea rsi, aLogits; ", logits "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+348h+var_348], rax
jmp short $+2
loc_F0AAE:
mov rax, [rsp+348h+var_18]
mov rax, [rax+30h]
movsxd rcx, [rsp+348h+var_1B4]
movsx esi, byte ptr [rax+rcx]; int
lea rdi, [rsp+348h+var_2B8]; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
jmp short $+2
loc_F0AD5:
mov rdi, [rsp+348h+var_348]
lea rsi, [rsp+348h+var_2B8]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
jmp short $+2
loc_F0AE8:
lea rdi, [rsp+348h+var_2B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+348h+var_298]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+348h+var_278]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+348h+var_258]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+348h+var_238]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+348h+var_1D8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov eax, [rsp+348h+var_1B4]
add eax, 1
mov [rsp+348h+var_1B4], eax
jmp loc_F07A8
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
jmp loc_F0C15
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
jmp loc_F0C08
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
jmp short loc_F0BFB
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
jmp short loc_F0BEE
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
jmp short loc_F0BE1
mov rcx, rax
mov eax, edx
mov [rsp+arg_198], rcx
mov [rsp+arg_194], eax
lea rdi, [rsp+arg_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F0BE1:
lea rdi, [rsp+arg_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F0BEE:
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F0BFB:
lea rdi, [rsp+arg_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F0C08:
lea rdi, [rsp+arg_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F0C15:
lea rdi, [rsp+arg_168]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_F0C6E
loc_F0C24:
lea rdi, [rsp+348h+var_190]
lea rsi, asc_213C56; " ]"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_F0C3A:
mov rdi, [rsp+348h+var_2C8]
lea rsi, [rsp+348h+var_1A0]
call __ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(void)
jmp short $+2
loc_F0C51:
lea rdi, [rsp+348h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rax, [rsp+348h+var_2C0]
add rsp, 348h
retn
loc_F0C6E:
lea rdi, [rsp+arg_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rdi, [rsp+arg_198]
call __Unwind_Resume
| long long string_from[abi:cxx11](long long a1, long long a2, long long a3)
{
long long v4; // [rsp+0h] [rbp-348h]
long long v5; // [rsp+8h] [rbp-340h]
long long v6; // [rsp+10h] [rbp-338h]
long long v7; // [rsp+18h] [rbp-330h]
long long v8; // [rsp+20h] [rbp-328h]
long long v9; // [rsp+28h] [rbp-320h]
long long v10; // [rsp+30h] [rbp-318h]
long long v11; // [rsp+38h] [rbp-310h]
long long v12; // [rsp+40h] [rbp-308h]
long long v13; // [rsp+48h] [rbp-300h]
long long v14; // [rsp+50h] [rbp-2F8h]
long long v15; // [rsp+58h] [rbp-2F0h]
_BYTE v16[32]; // [rsp+90h] [rbp-2B8h] BYREF
_BYTE v17[32]; // [rsp+B0h] [rbp-298h] BYREF
_BYTE v18[32]; // [rsp+D0h] [rbp-278h] BYREF
_BYTE v19[32]; // [rsp+F0h] [rbp-258h] BYREF
_BYTE v20[32]; // [rsp+110h] [rbp-238h] BYREF
long long v21; // [rsp+130h] [rbp-218h]
long long v22; // [rsp+138h] [rbp-210h] BYREF
long long v23; // [rsp+140h] [rbp-208h] BYREF
long long v24; // [rsp+150h] [rbp-1F8h]
long long v25; // [rsp+158h] [rbp-1F0h]
long long v26; // [rsp+160h] [rbp-1E8h] BYREF
long long v27; // [rsp+168h] [rbp-1E0h] BYREF
_BYTE v28[36]; // [rsp+170h] [rbp-1D8h] BYREF
int i; // [rsp+194h] [rbp-1B4h]
char v30; // [rsp+19Bh] [rbp-1ADh]
_BYTE v31[16]; // [rsp+1A8h] [rbp-1A0h] BYREF
_BYTE v32[376]; // [rsp+1B8h] [rbp-190h] BYREF
long long v33; // [rsp+330h] [rbp-18h]
long long v34; // [rsp+338h] [rbp-10h]
long long v35; // [rsp+340h] [rbp-8h]
v35 = a1;
v34 = a2;
v33 = a3;
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v31);
std::operator<<<std::char_traits<char>>(v32, "[ ");
v30 = 1;
for ( i = 0; i < *(_DWORD *)v33; ++i )
{
if ( (v30 & 1) != 0 )
v30 = 0;
else
std::operator<<<std::char_traits<char>>(v32, ", ");
common_token_to_piece[abi:cxx11]((long long)v28, v34, *(_DWORD *)(*(_QWORD *)(v33 + 8) + 4LL * i), 1);
v25 = std::string::begin(v28);
v24 = std::string::end(v28);
v26 = std::remove_if<__gnu_cxx::__normal_iterator<char *,std::string>,string_from(llama_context const*,llama_batch const&)::$_0>(
v25,
v24);
__gnu_cxx::__normal_iterator<char const*,std::string>::__normal_iterator<char *>(&v27, (long long)&v26);
v22 = std::string::end(v28);
__gnu_cxx::__normal_iterator<char const*,std::string>::__normal_iterator<char *>(&v23, (long long)&v22);
v21 = std::string::erase(v28, v27, v23);
v15 = std::operator<<<std::char_traits<char>>(v32, "\n");
std::to_string((std::__cxx11 *)v20, i);
v14 = std::operator<<<char>(v15, v20);
v13 = std::operator<<<std::char_traits<char>>(v14, ", token '");
v12 = std::operator<<<char>(v13, v28);
v11 = std::operator<<<std::char_traits<char>>(v12, "'");
v10 = std::operator<<<std::char_traits<char>>(v11, ", pos ");
std::to_string((std::__cxx11 *)v19, *(_DWORD *)(*(_QWORD *)(v33 + 24) + 4LL * i));
v9 = std::operator<<<char>(v10, v19);
v8 = std::operator<<<std::char_traits<char>>(v9, ", n_seq_id ");
std::to_string((std::__cxx11 *)v18, *(_DWORD *)(*(_QWORD *)(v33 + 32) + 4LL * i));
v7 = std::operator<<<char>(v8, v18);
v6 = std::operator<<<std::char_traits<char>>(v7, ", seq_id ");
std::to_string((std::__cxx11 *)v17, **(_DWORD **)(*(_QWORD *)(v33 + 40) + 8LL * i));
v5 = std::operator<<<char>(v6, v17);
v4 = std::operator<<<std::char_traits<char>>(v5, ", logits ");
std::to_string((std::__cxx11 *)v16, *(char *)(*(_QWORD *)(v33 + 48) + i));
std::operator<<<char>(v4, v16);
std::string::~string(v16);
std::string::~string(v17);
std::string::~string(v18);
std::string::~string(v19);
std::string::~string(v20);
std::string::~string(v28);
}
std::operator<<<std::char_traits<char>>(v32, " ]");
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(a1, v31);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v31);
return a1;
}
| string_from[abi:cxx11]:
SUB RSP,0x348
MOV qword ptr [RSP + 0x80],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x88],RAX
MOV qword ptr [RSP + 0x340],RDI
MOV qword ptr [RSP + 0x338],RSI
MOV qword ptr [RSP + 0x330],RDX
LEA RDI,[RSP + 0x1a8]
CALL 0x0015a550
LEA RDI,[RSP + 0x1b8]
LAB_001f0787:
LEA RSI,[0x313c53]
CALL 0x0015aa60
JMP 0x001f0795
LAB_001f0795:
MOV byte ptr [RSP + 0x19b],0x1
MOV dword ptr [RSP + 0x194],0x0
LAB_001f07a8:
MOV EAX,dword ptr [RSP + 0x194]
MOV RCX,qword ptr [RSP + 0x330]
CMP EAX,dword ptr [RCX]
JGE 0x001f0c24
TEST byte ptr [RSP + 0x19b],0x1
JNZ 0x001f07fa
LEA RDI,[RSP + 0x1b8]
LEA RSI,[0x31460a]
CALL 0x0015aa60
JMP 0x001f07df
LAB_001f07df:
JMP 0x001f0802
LAB_001f07fa:
MOV byte ptr [RSP + 0x19b],0x0
LAB_001f0802:
MOV RSI,qword ptr [RSP + 0x338]
MOV RAX,qword ptr [RSP + 0x330]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RSP + 0x194]
MOV EDX,dword ptr [RAX + RCX*0x4]
LEA RDI,[RSP + 0x170]
MOV ECX,0x1
CALL 0x001f0680
JMP 0x001f0835
LAB_001f0835:
LEA RDI,[RSP + 0x170]
MOV qword ptr [RSP + 0x70],RDI
CALL 0x0015a890
MOV RDI,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x158],RAX
CALL 0x0015a990
MOV qword ptr [RSP + 0x150],RAX
MOV RDI,qword ptr [RSP + 0x158]
MOV RSI,qword ptr [RSP + 0x150]
LAB_001f0871:
CALL 0x001f0c90
MOV qword ptr [RSP + 0x78],RAX
JMP 0x001f087d
LAB_001f087d:
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x160],RAX
LEA RDI,[RSP + 0x168]
LEA RSI,[RSP + 0x160]
CALL 0x001c2cb0
LEA RDI,[RSP + 0x170]
MOV qword ptr [RSP + 0x60],RDI
CALL 0x0015a990
MOV qword ptr [RSP + 0x138],RAX
LEA RDI,[RSP + 0x140]
LEA RSI,[RSP + 0x138]
CALL 0x001c2cb0
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x168]
MOV RDX,qword ptr [RSP + 0x140]
CALL 0x0015a7d0
MOV qword ptr [RSP + 0x68],RAX
JMP 0x001f08ef
LAB_001f08ef:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x130],RAX
LEA RDI,[RSP + 0x1b8]
LEA RSI,[0x30a506]
CALL 0x0015aa60
MOV qword ptr [RSP + 0x58],RAX
JMP 0x001f0917
LAB_001f0917:
MOV ESI,dword ptr [RSP + 0x194]
LEA RDI,[RSP + 0x110]
CALL 0x001a6f50
JMP 0x001f092d
LAB_001f092d:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[RSP + 0x110]
CALL 0x0015a540
MOV qword ptr [RSP + 0x50],RAX
JMP 0x001f0946
LAB_001f0946:
MOV RDI,qword ptr [RSP + 0x50]
LEA RSI,[0x313c59]
CALL 0x0015aa60
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001f095e
LAB_001f095e:
MOV RDI,qword ptr [RSP + 0x48]
LEA RSI,[RSP + 0x170]
CALL 0x0015a540
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001f0977
LAB_001f0977:
MOV RDI,qword ptr [RSP + 0x40]
LEA RSI,[0x3128cb]
CALL 0x0015aa60
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001f098f
LAB_001f098f:
MOV RDI,qword ptr [RSP + 0x38]
LEA RSI,[0x313c63]
CALL 0x0015aa60
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001f09a7
LAB_001f09a7:
MOV RAX,qword ptr [RSP + 0x330]
MOV RAX,qword ptr [RAX + 0x18]
MOVSXD RCX,dword ptr [RSP + 0x194]
MOV ESI,dword ptr [RAX + RCX*0x4]
LEA RDI,[RSP + 0xf0]
CALL 0x001a6f50
JMP 0x001f09cd
LAB_001f09cd:
MOV RDI,qword ptr [RSP + 0x30]
LEA RSI,[RSP + 0xf0]
CALL 0x0015a540
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001f09e6
LAB_001f09e6:
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x313c6a]
CALL 0x0015aa60
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001f09fe
LAB_001f09fe:
MOV RAX,qword ptr [RSP + 0x330]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x194]
MOV ESI,dword ptr [RAX + RCX*0x4]
LEA RDI,[RSP + 0xd0]
CALL 0x001a6f50
JMP 0x001f0a24
LAB_001f0a24:
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0xd0]
CALL 0x0015a540
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001f0a3d
LAB_001f0a3d:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x313c76]
CALL 0x0015aa60
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001f0a55
LAB_001f0a55:
MOV RAX,qword ptr [RSP + 0x330]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x194]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ESI,dword ptr [RAX]
LEA RDI,[RSP + 0xb0]
CALL 0x001a6f50
JMP 0x001f0a7e
LAB_001f0a7e:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0xb0]
CALL 0x0015a540
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001f0a97
LAB_001f0a97:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[0x313c80]
CALL 0x0015aa60
MOV qword ptr [RSP],RAX
JMP 0x001f0aae
LAB_001f0aae:
MOV RAX,qword ptr [RSP + 0x330]
MOV RAX,qword ptr [RAX + 0x30]
MOVSXD RCX,dword ptr [RSP + 0x194]
MOVSX ESI,byte ptr [RAX + RCX*0x1]
LEA RDI,[RSP + 0x90]
CALL 0x001a6f50
JMP 0x001f0ad5
LAB_001f0ad5:
MOV RDI,qword ptr [RSP]
LEA RSI,[RSP + 0x90]
CALL 0x0015a540
JMP 0x001f0ae8
LAB_001f0ae8:
LEA RDI,[RSP + 0x90]
CALL 0x0015b648
LEA RDI,[RSP + 0xb0]
CALL 0x0015b648
LEA RDI,[RSP + 0xd0]
CALL 0x0015b648
LEA RDI,[RSP + 0xf0]
CALL 0x0015b648
LEA RDI,[RSP + 0x110]
CALL 0x0015b648
LEA RDI,[RSP + 0x170]
CALL 0x0015b648
MOV EAX,dword ptr [RSP + 0x194]
ADD EAX,0x1
MOV dword ptr [RSP + 0x194],EAX
JMP 0x001f07a8
LAB_001f0c24:
LEA RDI,[RSP + 0x1b8]
LAB_001f0c2c:
LEA RSI,[0x313c56]
CALL 0x0015aa60
JMP 0x001f0c3a
LAB_001f0c3a:
MOV RDI,qword ptr [RSP + 0x80]
LEA RSI,[RSP + 0x1a8]
CALL 0x0015ace0
LAB_001f0c4f:
JMP 0x001f0c51
LAB_001f0c51:
LEA RDI,[RSP + 0x1a8]
CALL 0x0015a6a0
MOV RAX,qword ptr [RSP + 0x88]
ADD RSP,0x348
RET
|
/* string_from[abi:cxx11](llama_context const*, llama_batch const&) */
llama_context * string_from_abi_cxx11_(llama_context *param_1,llama_batch *param_2)
{
ostream *poVar1;
int *in_RDX;
__cxx11 local_2b8 [32];
__cxx11 local_298 [32];
__cxx11 local_278 [32];
__cxx11 local_258 [32];
__cxx11 local_238 [32];
int8 local_218;
int8 local_210;
int8 local_208 [2];
int8 local_1f8;
int8 local_1f0;
int8 local_1e8;
int8 local_1e0;
llama_context local_1d8 [36];
int local_1b4;
byte local_1ad;
stringstream local_1a0 [16];
ostream local_190 [376];
int *local_18;
llama_batch *local_10;
llama_context *local_8;
local_18 = in_RDX;
local_10 = param_2;
local_8 = param_1;
std::__cxx11::stringstream::stringstream(local_1a0);
/* try { // try from 001f0787 to 001f0832 has its CatchHandler @ 001f07e1 */
std::operator<<(local_190,"[ ");
local_1ad = 1;
for (local_1b4 = 0; local_1b4 < *local_18; local_1b4 = local_1b4 + 1) {
if ((local_1ad & 1) == 0) {
std::operator<<(local_190,", ");
}
else {
local_1ad = 0;
}
common_token_to_piece_abi_cxx11_
(local_1d8,(int)local_10,
SUB41(*(int4 *)(*(long *)(local_18 + 2) + (long)local_1b4 * 4),0));
local_1f0 = std::__cxx11::string::begin();
local_1f8 = std::__cxx11::string::end();
/* try { // try from 001f0871 to 001f092a has its CatchHandler @ 001f0b4c */
local_1e8 = std::
remove_if<__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>,string_from(llama_context_const*,llama_batch_const&)::__0>
(local_1f0,local_1f8);
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::__normal_iterator<char*>
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_1e0,
(__normal_iterator *)&local_1e8);
local_210 = std::__cxx11::string::end();
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::__normal_iterator<char*>
((__normal_iterator<char_const*,std::__cxx11::string> *)local_208,
(__normal_iterator *)&local_210);
local_218 = std::__cxx11::string::erase(local_1d8,local_1e0,local_208[0]);
poVar1 = std::operator<<(local_190,"\n");
std::__cxx11::to_string(local_238,local_1b4);
/* try { // try from 001f092d to 001f09ca has its CatchHandler @ 001f0b65 */
poVar1 = std::operator<<(poVar1,(string *)local_238);
poVar1 = std::operator<<(poVar1,", token \'");
poVar1 = std::operator<<(poVar1,(string *)local_1d8);
poVar1 = std::operator<<(poVar1,"\'");
poVar1 = std::operator<<(poVar1,", pos ");
std::__cxx11::to_string(local_258,*(int *)(*(long *)(local_18 + 6) + (long)local_1b4 * 4));
/* try { // try from 001f09cd to 001f0a21 has its CatchHandler @ 001f0b7e */
poVar1 = std::operator<<(poVar1,(string *)local_258);
poVar1 = std::operator<<(poVar1,", n_seq_id ");
std::__cxx11::to_string(local_278,*(int *)(*(long *)(local_18 + 8) + (long)local_1b4 * 4));
/* try { // try from 001f0a24 to 001f0a7b has its CatchHandler @ 001f0b94 */
poVar1 = std::operator<<(poVar1,(string *)local_278);
poVar1 = std::operator<<(poVar1,", seq_id ");
std::__cxx11::to_string(local_298,**(int **)(*(long *)(local_18 + 10) + (long)local_1b4 * 8));
/* try { // try from 001f0a7e to 001f0ad2 has its CatchHandler @ 001f0baa */
poVar1 = std::operator<<(poVar1,(string *)local_298);
poVar1 = std::operator<<(poVar1,", logits ");
std::__cxx11::to_string(local_2b8,(int)*(char *)(*(long *)(local_18 + 0xc) + (long)local_1b4));
/* try { // try from 001f0ad5 to 001f0ae5 has its CatchHandler @ 001f0bc0 */
std::operator<<(poVar1,(string *)local_2b8);
std::__cxx11::string::~string((string *)local_2b8);
std::__cxx11::string::~string((string *)local_298);
std::__cxx11::string::~string((string *)local_278);
std::__cxx11::string::~string((string *)local_258);
std::__cxx11::string::~string((string *)local_238);
std::__cxx11::string::~string((string *)local_1d8);
}
/* try { // try from 001f0c2c to 001f0c4e has its CatchHandler @ 001f07e1 */
std::operator<<(local_190," ]");
std::__cxx11::stringstream::str();
std::__cxx11::stringstream::~stringstream(local_1a0);
return param_1;
}
| |
23,275 | string_from[abi:cxx11](llama_context const*, llama_batch const&) | monkey531[P]llama/common/common.cpp | std::string string_from(const struct llama_context * ctx, const struct llama_batch & batch) {
std::stringstream buf;
buf << "[ ";
bool first = true;
for (int i = 0; i < batch.n_tokens; ++i) {
if (!first) {
buf << ", ";
} else {
first = false;
}
auto detokenized = common_token_to_piece(ctx, batch.token[i]);
detokenized.erase(
std::remove_if(
detokenized.begin(),
detokenized.end(),
[](const unsigned char c) { return !std::isprint(c); }),
detokenized.end());
buf << "\n" << std::to_string(i)
<< ", token '" << detokenized << "'"
<< ", pos " << std::to_string(batch.pos[i])
<< ", n_seq_id " << std::to_string(batch.n_seq_id[i])
<< ", seq_id " << std::to_string(batch.seq_id[i][0])
<< ", logits " << std::to_string(batch.logits[i]);
}
buf << " ]";
return buf.str();
} | O2 | cpp | string_from[abi:cxx11](llama_context const*, llama_batch const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp # imm = 0x278
movq %rdx, %r15
movq %rsi, 0x40(%rsp)
movq %rdi, %rbp
leaq 0xf0(%rsp), %rdi
callq 0x23660
leaq 0x100(%rsp), %rdi
leaq 0x5e83e(%rip), %rsi # 0xb427b
callq 0x238b0
movb $0x1, %al
xorl %r12d, %r12d
leaq 0x10(%rsp), %r13
movq %rbp, 0x38(%rsp)
movq %r15, 0x30(%rsp)
movslq (%r15), %rcx
cmpq %rcx, %r12
jge 0x55d2b
testb $0x1, %al
jne 0x55a7a
leaq 0x100(%rsp), %rdi
leaq 0x5f1aa(%rip), %rsi # 0xb4c1f
callq 0x238b0
movq 0x8(%r15), %rax
movq %r12, 0x48(%rsp)
movl (%rax,%r12,4), %edx
movq %r13, %rdi
movq 0x40(%rsp), %rsi
pushq $0x1
popq %rcx
callq 0x559d3
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r14
leaq (%r12,%r14), %rbp
movq %r14, %r13
sarq $0x2, %r13
movq %r14, %r15
movq %r12, 0x8(%rsp)
testq %r13, %r13
jle 0x55b09
movq %r12, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b51
leaq 0x1(%r12), %rbx
movq %rbx, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b54
leaq 0x2(%r12), %rbx
movq %rbx, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b54
leaq 0x3(%r12), %rbx
movq %rbx, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b54
addq $0x4, %r12
decq %r13
addq $-0x4, %r15
jmp 0x55ab4
cmpq $0x1, %r15
leaq 0x10(%rsp), %r13
je 0x55b3e
cmpq $0x2, %r15
je 0x55b2f
cmpq $0x3, %r15
jne 0x55b8c
movq %r12, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b4c
incq %r12
movq %r12, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b4c
incq %r12
movq %r12, %rdi
callq 0x59eae
testb %al, %al
cmoveq %rbp, %r12
movq %r12, %rbx
jmp 0x55b59
movq %r12, %rbx
leaq 0x10(%rsp), %r13
cmpq %rbp, %rbx
je 0x55b8c
movq %rbx, %r12
incq %rbx
cmpq %rbp, %rbx
je 0x55b80
movq %rbx, %rdi
callq 0x59eae
testb %al, %al
jne 0x55b61
movb (%rbx), %al
movb %al, (%r12)
incq %r12
jmp 0x55b61
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %r14
jmp 0x55b94
movq %rbp, %r12
movq 0x8(%rsp), %rax
addq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x231b0
leaq 0xb0(%rsp), %r14
leaq 0x100(%rsp), %rdi
leaq 0x55a16(%rip), %rsi # 0xab5d2
callq 0x238b0
movq 0x38(%rsp), %rbp
movq 0x30(%rsp), %r15
movq 0x48(%rsp), %r12
movq %rax, %rbx
movq %r14, %rdi
movl %r12d, %esi
callq 0x3f6ed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x237d0
movq %rax, %rdi
leaq 0x5e68e(%rip), %rsi # 0xb4281
callq 0x238b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x237d0
movq %rax, %rdi
leaq 0x5d72d(%rip), %rsi # 0xb333a
callq 0x238b0
movq %rax, %rdi
leaq 0x5e66f(%rip), %rsi # 0xb428b
callq 0x238b0
movq %rax, %rbx
movq 0x18(%r15), %rax
movl (%rax,%r12,4), %esi
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x3f6ed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x237d0
movq %rax, %rdi
leaq 0x5e641(%rip), %rsi # 0xb4292
callq 0x238b0
movq %rax, %rbx
movq 0x20(%r15), %rax
movl (%rax,%r12,4), %esi
leaq 0x70(%rsp), %r14
movq %r14, %rdi
callq 0x3f6ed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x237d0
movq %rax, %rdi
leaq 0x5e61b(%rip), %rsi # 0xb429e
callq 0x238b0
movq %rax, %rbx
movq 0x28(%r15), %rax
movq (%rax,%r12,8), %rax
movl (%rax), %esi
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x3f6ed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x237d0
movq %rax, %rdi
leaq 0x5e5f1(%rip), %rsi # 0xb42a8
callq 0x238b0
movq %rax, %rbx
movq 0x30(%r15), %rax
movsbl (%rax,%r12), %esi
leaq 0xd0(%rsp), %r14
movq %r14, %rdi
callq 0x3f6ed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x237d0
movq %r14, %rdi
callq 0x242a8
leaq 0x50(%rsp), %rdi
callq 0x242a8
leaq 0x70(%rsp), %rdi
callq 0x242a8
leaq 0x90(%rsp), %rdi
callq 0x242a8
leaq 0xb0(%rsp), %rdi
callq 0x242a8
movq %r13, %rdi
callq 0x242a8
incq %r12
xorl %eax, %eax
jmp 0x55a56
leaq 0x5e54c(%rip), %rsi # 0xb427e
leaq 0x100(%rsp), %rdi
callq 0x238b0
leaq 0x108(%rsp), %rsi
movq %rbp, %rdi
callq 0x23e50
leaq 0xf0(%rsp), %rdi
callq 0x236b0
movq %rbp, %rax
addq $0x278, %rsp # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x55d8d
jmp 0x55d8d
jmp 0x55d8d
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x242a8
jmp 0x55da2
jmp 0x55d9f
jmp 0x55dbd
movq %rax, %rbx
jmp 0x55de9
jmp 0x55dae
jmp 0x55d9a
jmp 0x55dcf
jmp 0x55d9a
movq %rax, %rbx
jmp 0x55ddf
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x242a8
jmp 0x55db1
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x242a8
jmp 0x55dc0
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x242a8
jmp 0x55dd2
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x242a8
leaq 0x10(%rsp), %rdi
callq 0x242a8
leaq 0xf0(%rsp), %rdi
callq 0x236b0
movq %rbx, %rdi
callq 0x24030
| _Z11string_fromB5cxx11PK13llama_contextRK11llama_batch:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 278h
mov r15, rdx
mov [rsp+2A8h+var_268], rsi
mov rbp, rdi
lea rdi, [rsp+2A8h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea rdi, [rsp+2A8h+var_1A8]
lea rsi, asc_B427B; "[ "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov al, 1
xor r12d, r12d
lea r13, [rsp+2A8h+var_298]
mov [rsp+2A8h+var_270], rbp
mov [rsp+2A8h+var_278], r15
loc_55A56:
movsxd rcx, dword ptr [r15]
cmp r12, rcx
jge loc_55D2B
test al, 1
jnz short loc_55A7A
lea rdi, [rsp+2A8h+var_1A8]
lea rsi, aZuD+6; ", "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
loc_55A7A:
mov rax, [r15+8]
mov qword ptr [rsp+2A8h+var_260], r12
mov edx, [rax+r12*4]
mov rdi, r13; void *
mov rsi, [rsp+2A8h+var_268]
push 1
pop rcx
call _Z21common_token_to_pieceB5cxx11PK13llama_contextib; common_token_to_piece(llama_context const*,int,bool)
mov r12, [rsp+2A8h+var_298]
mov r14, [rsp+2A8h+var_290]
lea rbp, [r12+r14]
mov r13, r14
sar r13, 2
mov r15, r14
mov [rsp+2A8h+var_2A0], r12
loc_55AB4:
test r13, r13
jle short loc_55B09
mov rdi, r12
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz loc_55B51
lea rbx, [r12+1]
mov rdi, rbx
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz short loc_55B54
lea rbx, [r12+2]
mov rdi, rbx
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz short loc_55B54
lea rbx, [r12+3]
mov rdi, rbx
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz short loc_55B54
add r12, 4
dec r13
add r15, 0FFFFFFFFFFFFFFFCh
jmp short loc_55AB4
loc_55B09:
cmp r15, 1
lea r13, [rsp+2A8h+var_298]
jz short loc_55B3E
cmp r15, 2
jz short loc_55B2F
cmp r15, 3
jnz short loc_55B8C
mov rdi, r12
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz short loc_55B4C
inc r12
loc_55B2F:
mov rdi, r12
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz short loc_55B4C
inc r12
loc_55B3E:
mov rdi, r12
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
cmovz r12, rbp
loc_55B4C:
mov rbx, r12
jmp short loc_55B59
loc_55B51:
mov rbx, r12
loc_55B54:
lea r13, [rsp+2A8h+var_298]
loc_55B59:
cmp rbx, rbp
jz short loc_55B8C
mov r12, rbx
loc_55B61:
inc rbx
cmp rbx, rbp
jz short loc_55B80
mov rdi, rbx
call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>)
test al, al
jnz short loc_55B61
mov al, [rbx]
mov [r12], al
inc r12
jmp short loc_55B61
loc_55B80:
mov rax, [rsp+2A8h+var_298]
mov r14, [rsp+2A8h+var_290]
jmp short loc_55B94
loc_55B8C:
mov r12, rbp
mov rax, [rsp+2A8h+var_2A0]
loc_55B94:
add r14, rax
mov rdi, r13
mov rsi, r12
mov rdx, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_; std::string::erase(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>)
lea r14, [rsp+2A8h+var_1F8]
lea rdi, [rsp+2A8h+var_1A8]
lea rsi, aInfillMode+1Bh; "\n"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rbp, [rsp+2A8h+var_270]
mov r15, [rsp+2A8h+var_278]
mov r12, qword ptr [rsp+2A8h+var_260]
mov rbx, rax
mov rdi, r14; this
mov esi, r12d; int
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, rbx
mov rsi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, aToken; ", token '"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
mov rsi, r13
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, asc_B3338+2; "'"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
lea rsi, aPos_0; ", pos "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rbx, rax
mov rax, [r15+18h]
mov esi, [rax+r12*4]; int
lea r14, [rsp+2A8h+var_218]
mov rdi, r14; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, rbx
mov rsi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, aNSeqId; ", n_seq_id "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rbx, rax
mov rax, [r15+20h]
mov esi, [rax+r12*4]; int
lea r14, [rsp+2A8h+var_238]
mov rdi, r14; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, rbx
mov rsi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, aSeqId; ", seq_id "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rbx, rax
mov rax, [r15+28h]
mov rax, [rax+r12*8]
mov esi, [rax]; int
lea r14, [rsp+2A8h+var_258]
mov rdi, r14; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, rbx
mov rsi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, rax
lea rsi, aLogits; ", logits "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rbx, rax
mov rax, [r15+30h]
movsx esi, byte ptr [rax+r12]; int
lea r14, [rsp+2A8h+var_1D8]
mov rdi, r14; this
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, rbx
mov rsi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+2A8h+var_258]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+2A8h+var_238]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+2A8h+var_218]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+2A8h+var_1F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r13; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
inc r12
xor eax, eax
jmp loc_55A56
loc_55D2B:
lea rsi, asc_B427E; " ]"
lea rdi, [rsp+2A8h+var_1A8]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rsi, [rsp+2A8h+var_1A0]
mov rdi, rbp
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rdi, [rsp+2A8h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rax, rbp
add rsp, 278h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_55D8D
jmp short loc_55D8D
jmp short loc_55D8D
mov rbx, rax
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_55DA2
jmp short loc_55D9F
jmp short loc_55DBD
loc_55D8D:
mov rbx, rax
jmp short loc_55DE9
jmp short loc_55DAE
jmp short loc_55D9A
jmp short loc_55DCF
jmp short $+2
loc_55D9A:
mov rbx, rax
jmp short loc_55DDF
loc_55D9F:
mov rbx, rax
loc_55DA2:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_55DB1
loc_55DAE:
mov rbx, rax
loc_55DB1:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_55DC0
loc_55DBD:
mov rbx, rax
loc_55DC0:
lea rdi, [rsp+arg_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_55DD2
loc_55DCF:
mov rbx, rax
loc_55DD2:
lea rdi, [rsp+arg_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_55DDF:
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_55DE9:
lea rdi, [rsp+arg_E8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rdi, rbx
call __Unwind_Resume
| long long string_from[abi:cxx11](long long a1, long long a2, _QWORD *a3)
{
long long v4; // rbp
char v5; // al
long long v6; // r12
_BYTE *v7; // r12
long long v8; // r14
_BYTE *v9; // rbp
long long v10; // r13
long long v11; // r15
_BYTE *v12; // rbx
_BYTE *v13; // r12
_BYTE *v14; // rax
long long v15; // rax
long long v16; // r12
long long v17; // rbx
long long v18; // rax
long long v19; // rax
long long v20; // rax
long long v21; // rax
long long v22; // rbx
long long v23; // rax
long long v24; // rbx
long long v25; // rax
long long v26; // rbx
long long v27; // rax
long long v28; // rbx
_BYTE *v30; // [rsp+8h] [rbp-2A0h]
_BYTE *v31; // [rsp+10h] [rbp-298h] BYREF
long long v32; // [rsp+18h] [rbp-290h]
_QWORD *v33; // [rsp+30h] [rbp-278h]
long long v34; // [rsp+38h] [rbp-270h]
long long v35; // [rsp+40h] [rbp-268h]
int v36[2]; // [rsp+48h] [rbp-260h]
_BYTE v37[32]; // [rsp+50h] [rbp-258h] BYREF
_BYTE v38[32]; // [rsp+70h] [rbp-238h] BYREF
_BYTE v39[32]; // [rsp+90h] [rbp-218h] BYREF
_BYTE v40[32]; // [rsp+B0h] [rbp-1F8h] BYREF
_BYTE v41[32]; // [rsp+D0h] [rbp-1D8h] BYREF
_BYTE v42[16]; // [rsp+F0h] [rbp-1B8h] BYREF
char v43[8]; // [rsp+100h] [rbp-1A8h] BYREF
char v44[416]; // [rsp+108h] [rbp-1A0h] BYREF
v35 = a2;
v4 = a1;
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v42);
std::operator<<<std::char_traits<char>>(v43, "[ ");
v5 = 1;
v6 = 0LL;
v34 = a1;
v33 = a3;
while ( v6 < *(int *)a3 )
{
if ( (v5 & 1) == 0 )
std::operator<<<std::char_traits<char>>(v43, ", ");
*(_QWORD *)v36 = v6;
common_token_to_piece[abi:cxx11](&v31, v35);
v7 = v31;
v8 = v32;
v9 = &v31[v32];
v10 = v32 >> 2;
v11 = v32;
v30 = v31;
while ( 1 )
{
if ( v10 <= 0 )
{
switch ( v11 )
{
case 1LL:
LABEL_19:
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) )
v7 = v9;
break;
case 2LL:
goto LABEL_17;
case 3LL:
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) )
{
++v7;
LABEL_17:
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) )
{
++v7;
goto LABEL_19;
}
}
break;
default:
LABEL_29:
v13 = v9;
v14 = v30;
goto LABEL_30;
}
v12 = v7;
goto LABEL_23;
}
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) )
break;
v12 = v7 + 1;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7 + 1) )
goto LABEL_23;
v12 = v7 + 2;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7 + 2) )
goto LABEL_23;
v12 = v7 + 3;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7 + 3) )
goto LABEL_23;
v7 += 4;
--v10;
v11 -= 4LL;
}
v12 = v7;
LABEL_23:
if ( v12 == v9 )
goto LABEL_29;
v13 = v12;
while ( ++v12 != v9 )
{
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v12) )
*v13++ = *v12;
}
v14 = v31;
v8 = v32;
LABEL_30:
std::string::erase(&v31, v13, &v14[v8]);
v15 = std::operator<<<std::char_traits<char>>(v43, "\n");
v4 = v34;
a3 = v33;
v16 = *(_QWORD *)v36;
v17 = v15;
std::to_string((std::__cxx11 *)v40, v36[0]);
v18 = std::operator<<<char>(v17, v40);
v19 = std::operator<<<std::char_traits<char>>(v18, ", token '");
v20 = std::operator<<<char>(v19, &v31);
v21 = std::operator<<<std::char_traits<char>>(v20, "'");
v22 = std::operator<<<std::char_traits<char>>(v21, ", pos ");
std::to_string((std::__cxx11 *)v39, *(_DWORD *)(a3[3] + 4 * v16));
v23 = std::operator<<<char>(v22, v39);
v24 = std::operator<<<std::char_traits<char>>(v23, ", n_seq_id ");
std::to_string((std::__cxx11 *)v38, *(_DWORD *)(a3[4] + 4 * v16));
v25 = std::operator<<<char>(v24, v38);
v26 = std::operator<<<std::char_traits<char>>(v25, ", seq_id ");
std::to_string((std::__cxx11 *)v37, **(_DWORD **)(a3[5] + 8 * v16));
v27 = std::operator<<<char>(v26, v37);
v28 = std::operator<<<std::char_traits<char>>(v27, ", logits ");
std::to_string((std::__cxx11 *)v41, *(char *)(a3[6] + v16));
std::operator<<<char>(v28, v41);
std::string::~string(v41);
std::string::~string(v37);
std::string::~string(v38);
std::string::~string(v39);
std::string::~string(v40);
std::string::~string(&v31);
v6 = v16 + 1;
v5 = 0;
}
std::operator<<<std::char_traits<char>>(v43, " ]");
std::stringbuf::str(v4, v44);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v42);
return v4;
}
| string_from[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x278
MOV R15,RDX
MOV qword ptr [RSP + 0x40],RSI
MOV RBP,RDI
LEA RDI,[RSP + 0xf0]
CALL 0x00123660
LEA RDI,[RSP + 0x100]
LAB_00155a36:
LEA RSI,[0x1b427b]
CALL 0x001238b0
MOV AL,0x1
XOR R12D,R12D
LEA R13,[RSP + 0x10]
MOV qword ptr [RSP + 0x38],RBP
MOV qword ptr [RSP + 0x30],R15
LAB_00155a56:
MOVSXD RCX,dword ptr [R15]
CMP R12,RCX
JGE 0x00155d2b
TEST AL,0x1
JNZ 0x00155a7a
LAB_00155a66:
LEA RDI,[RSP + 0x100]
LEA RSI,[0x1b4c1f]
CALL 0x001238b0
LAB_00155a7a:
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RSP + 0x48],R12
MOV EDX,dword ptr [RAX + R12*0x4]
LAB_00155a87:
MOV RDI,R13
MOV RSI,qword ptr [RSP + 0x40]
PUSH 0x1
POP RCX
CALL 0x001559d3
MOV R12,qword ptr [RSP + 0x10]
MOV R14,qword ptr [RSP + 0x18]
LEA RBP,[R12 + R14*0x1]
MOV R13,R14
SAR R13,0x2
MOV R15,R14
MOV qword ptr [RSP + 0x8],R12
LAB_00155ab4:
TEST R13,R13
JLE 0x00155b09
MOV RDI,R12
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b51
LEA RBX,[R12 + 0x1]
MOV RDI,RBX
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b54
LEA RBX,[R12 + 0x2]
MOV RDI,RBX
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b54
LEA RBX,[R12 + 0x3]
MOV RDI,RBX
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b54
ADD R12,0x4
DEC R13
ADD R15,-0x4
JMP 0x00155ab4
LAB_00155b09:
CMP R15,0x1
LEA R13,[RSP + 0x10]
JZ 0x00155b3e
CMP R15,0x2
JZ 0x00155b2f
CMP R15,0x3
JNZ 0x00155b8c
MOV RDI,R12
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b4c
INC R12
LAB_00155b2f:
MOV RDI,R12
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b4c
INC R12
LAB_00155b3e:
MOV RDI,R12
CALL 0x00159eae
TEST AL,AL
CMOVZ R12,RBP
LAB_00155b4c:
MOV RBX,R12
JMP 0x00155b59
LAB_00155b51:
MOV RBX,R12
LAB_00155b54:
LEA R13,[RSP + 0x10]
LAB_00155b59:
CMP RBX,RBP
JZ 0x00155b8c
MOV R12,RBX
LAB_00155b61:
INC RBX
CMP RBX,RBP
JZ 0x00155b80
MOV RDI,RBX
CALL 0x00159eae
TEST AL,AL
JNZ 0x00155b61
MOV AL,byte ptr [RBX]
MOV byte ptr [R12],AL
INC R12
JMP 0x00155b61
LAB_00155b80:
MOV RAX,qword ptr [RSP + 0x10]
MOV R14,qword ptr [RSP + 0x18]
JMP 0x00155b94
LAB_00155b8c:
MOV R12,RBP
MOV RAX,qword ptr [RSP + 0x8]
LAB_00155b94:
ADD R14,RAX
LAB_00155b97:
MOV RDI,R13
MOV RSI,R12
MOV RDX,R14
CALL 0x001231b0
LEA R14,[RSP + 0xb0]
LAB_00155bad:
LEA RDI,[RSP + 0x100]
LEA RSI,[0x1ab5d2]
CALL 0x001238b0
MOV RBP,qword ptr [RSP + 0x38]
MOV R15,qword ptr [RSP + 0x30]
MOV R12,qword ptr [RSP + 0x48]
LAB_00155bd0:
MOV RBX,RAX
MOV RDI,R14
MOV ESI,R12D
CALL 0x0013f6ed
LAB_00155bde:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001237d0
MOV RDI,RAX
LEA RSI,[0x1b4281]
CALL 0x001238b0
MOV RDI,RAX
MOV RSI,R13
CALL 0x001237d0
MOV RDI,RAX
LEA RSI,[0x1b333a]
CALL 0x001238b0
MOV RDI,RAX
LEA RSI,[0x1b428b]
CALL 0x001238b0
MOV RBX,RAX
MOV RAX,qword ptr [R15 + 0x18]
MOV ESI,dword ptr [RAX + R12*0x4]
LAB_00155c2c:
LEA R14,[RSP + 0x90]
MOV RDI,R14
CALL 0x0013f6ed
LAB_00155c3c:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001237d0
MOV RDI,RAX
LEA RSI,[0x1b4292]
CALL 0x001238b0
MOV RBX,RAX
MOV RAX,qword ptr [R15 + 0x20]
MOV ESI,dword ptr [RAX + R12*0x4]
LAB_00155c61:
LEA R14,[RSP + 0x70]
MOV RDI,R14
CALL 0x0013f6ed
LAB_00155c6e:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001237d0
MOV RDI,RAX
LEA RSI,[0x1b429e]
CALL 0x001238b0
MOV RBX,RAX
MOV RAX,qword ptr [R15 + 0x28]
MOV RAX,qword ptr [RAX + R12*0x8]
MOV ESI,dword ptr [RAX]
LAB_00155c95:
LEA R14,[RSP + 0x50]
MOV RDI,R14
CALL 0x0013f6ed
LAB_00155ca2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001237d0
MOV RDI,RAX
LEA RSI,[0x1b42a8]
CALL 0x001238b0
MOV RBX,RAX
MOV RAX,qword ptr [R15 + 0x30]
MOVSX ESI,byte ptr [RAX + R12*0x1]
LAB_00155cc8:
LEA R14,[RSP + 0xd0]
MOV RDI,R14
CALL 0x0013f6ed
LAB_00155cd8:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001237d0
MOV RDI,R14
CALL 0x001242a8
LEA RDI,[RSP + 0x50]
CALL 0x001242a8
LEA RDI,[RSP + 0x70]
CALL 0x001242a8
LEA RDI,[RSP + 0x90]
CALL 0x001242a8
LEA RDI,[RSP + 0xb0]
CALL 0x001242a8
MOV RDI,R13
CALL 0x001242a8
INC R12
XOR EAX,EAX
JMP 0x00155a56
LAB_00155d2b:
LEA RSI,[0x1b427e]
LEA RDI,[RSP + 0x100]
CALL 0x001238b0
LEA RSI,[RSP + 0x108]
MOV RDI,RBP
CALL 0x00123e50
LAB_00155d4f:
LEA RDI,[RSP + 0xf0]
CALL 0x001236b0
MOV RAX,RBP
ADD RSP,0x278
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_from[abi:cxx11](llama_context const*, llama_batch const&) */
llama_context * string_from_abi_cxx11_(llama_context *param_1,llama_batch *param_2)
{
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var1;
bool bVar2;
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var3;
ostream *poVar4;
int *in_RDX;
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var5;
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var6;
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var7;
long lVar8;
long lVar9;
long lVar10;
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *local_298;
long local_290;
int *local_278;
llama_context *local_270;
llama_batch *local_268;
long local_260;
__cxx11 local_258 [32];
__cxx11 local_238 [32];
__cxx11 local_218 [32];
__cxx11 local_1f8 [32];
__cxx11 local_1d8 [32];
stringstream local_1b8 [16];
ostream local_1a8 [376];
local_268 = param_2;
std::__cxx11::stringstream::stringstream(local_1b8);
/* try { // try from 00155a36 to 00155a41 has its CatchHandler @ 00155d71 */
std::operator<<(local_1a8,"[ ");
bVar2 = true;
lVar8 = 0;
local_278 = in_RDX;
local_270 = param_1;
do {
if (*in_RDX <= lVar8) {
/* try { // try from 00155d2b to 00155d4e has its CatchHandler @ 00155d73 */
std::operator<<(local_1a8," ]");
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1b8);
return param_1;
}
if (!bVar2) {
/* try { // try from 00155a66 to 00155a79 has its CatchHandler @ 00155d75 */
std::operator<<(local_1a8,", ");
}
local_260 = lVar8;
/* try { // try from 00155a87 to 00155a96 has its CatchHandler @ 00155d8d */
common_token_to_piece_abi_cxx11_
((llama_context *)&local_298,(int)local_268,
SUB41(*(int4 *)(*(long *)(in_RDX + 2) + lVar8 * 4),0));
lVar8 = local_290;
p_Var3 = local_298;
p_Var1 = local_298 + local_290;
p_Var6 = local_298;
lVar10 = local_290;
for (lVar9 = local_290 >> 2; p_Var5 = p_Var6, p_Var7 = p_Var1, 0 < lVar9; lVar9 = lVar9 + -1) {
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6);
if (bVar2) goto LAB_00155b59;
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6 + 1);
p_Var5 = p_Var6 + 1;
if (bVar2) goto LAB_00155b59;
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6 + 2);
p_Var5 = p_Var6 + 2;
if (bVar2) goto LAB_00155b59;
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6 + 3);
p_Var5 = p_Var6 + 3;
if (bVar2) goto LAB_00155b59;
p_Var6 = p_Var6 + 4;
lVar10 = lVar10 + -4;
}
if (lVar10 == 1) {
LAB_00155b3e:
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6);
p_Var5 = p_Var6;
if (!bVar2) {
p_Var5 = p_Var1;
}
LAB_00155b59:
p_Var6 = p_Var5;
if (p_Var5 != p_Var1) {
while (p_Var5 = p_Var5 + 1, p_Var3 = local_298, p_Var7 = p_Var6, lVar8 = local_290,
p_Var5 != p_Var1) {
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var5);
if (!bVar2) {
*p_Var6 = *p_Var5;
p_Var6 = p_Var6 + 1;
}
}
}
}
else {
if (lVar10 == 2) {
LAB_00155b2f:
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6);
p_Var5 = p_Var6;
if (!bVar2) {
p_Var6 = p_Var6 + 1;
goto LAB_00155b3e;
}
goto LAB_00155b59;
}
if (lVar10 == 3) {
bVar2 = __gnu_cxx::__ops::
_Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>::
operator()(p_Var6);
if (!bVar2) {
p_Var6 = p_Var6 + 1;
goto LAB_00155b2f;
}
goto LAB_00155b59;
}
}
/* try { // try from 00155b97 to 00155ba4 has its CatchHandler @ 00155d9a */
std::__cxx11::string::erase((string *)&local_298,p_Var7,p_Var3 + lVar8);
/* try { // try from 00155bad to 00155bc0 has its CatchHandler @ 00155d98 */
poVar4 = std::operator<<(local_1a8,"\n");
lVar8 = local_260;
param_1 = local_270;
in_RDX = local_278;
/* try { // try from 00155bd0 to 00155bdd has its CatchHandler @ 00155d94 */
std::__cxx11::to_string(local_1f8,(int)local_260);
/* try { // try from 00155bde to 00155c20 has its CatchHandler @ 00155dcf */
poVar4 = std::operator<<(poVar4,(string *)local_1f8);
poVar4 = std::operator<<(poVar4,", token \'");
poVar4 = std::operator<<(poVar4,(string *)&local_298);
poVar4 = std::operator<<(poVar4,"\'");
poVar4 = std::operator<<(poVar4,", pos ");
/* try { // try from 00155c2c to 00155c3b has its CatchHandler @ 00155d96 */
std::__cxx11::to_string(local_218,*(int *)(*(long *)(in_RDX + 6) + lVar8 * 4));
/* try { // try from 00155c3c to 00155c55 has its CatchHandler @ 00155dbd */
poVar4 = std::operator<<(poVar4,(string *)local_218);
poVar4 = std::operator<<(poVar4,", n_seq_id ");
/* try { // try from 00155c61 to 00155c6d has its CatchHandler @ 00155d8b */
std::__cxx11::to_string(local_238,*(int *)(*(long *)(in_RDX + 8) + lVar8 * 4));
/* try { // try from 00155c6e to 00155c87 has its CatchHandler @ 00155dae */
poVar4 = std::operator<<(poVar4,(string *)local_238);
poVar4 = std::operator<<(poVar4,", seq_id ");
/* try { // try from 00155c95 to 00155ca1 has its CatchHandler @ 00155d92 */
std::__cxx11::to_string(local_258,**(int **)(*(long *)(in_RDX + 10) + lVar8 * 8));
/* try { // try from 00155ca2 to 00155cbb has its CatchHandler @ 00155d9f */
poVar4 = std::operator<<(poVar4,(string *)local_258);
poVar4 = std::operator<<(poVar4,", logits ");
/* try { // try from 00155cc8 to 00155cd7 has its CatchHandler @ 00155d89 */
std::__cxx11::to_string(local_1d8,(int)*(char *)(*(long *)(in_RDX + 0xc) + lVar8));
/* try { // try from 00155cd8 to 00155ce2 has its CatchHandler @ 00155d77 */
std::operator<<(poVar4,(string *)local_1d8);
std::__cxx11::string::~string((string *)local_1d8);
std::__cxx11::string::~string((string *)local_258);
std::__cxx11::string::~string((string *)local_238);
std::__cxx11::string::~string((string *)local_218);
std::__cxx11::string::~string((string *)local_1f8);
std::__cxx11::string::~string((string *)&local_298);
lVar8 = lVar8 + 1;
bVar2 = false;
} while( true );
}
| |
23,276 | bf_get_rnd_add | bluesky950520[P]quickjs/libbf.c | static int bf_get_rnd_add(int *pret, const bf_t *r, limb_t l,
slimb_t prec, int rnd_mode)
{
int add_one, inexact;
limb_t bit1, bit0;
if (rnd_mode == BF_RNDF) {
bit0 = 1; /* faithful rounding does not honor the INEXACT flag */
} else {
/* starting limb for bit 'prec + 1' */
bit0 = scan_bit_nz(r, l * LIMB_BITS - 1 - bf_max(0, prec + 1));
}
/* get the bit at 'prec' */
bit1 = get_bit(r->tab, l, l * LIMB_BITS - 1 - prec);
inexact = (bit1 | bit0) != 0;
add_one = 0;
switch(rnd_mode) {
case BF_RNDZ:
break;
case BF_RNDN:
if (bit1) {
if (bit0) {
add_one = 1;
} else {
/* round to even */
add_one =
get_bit(r->tab, l, l * LIMB_BITS - 1 - (prec - 1));
}
}
break;
case BF_RNDD:
case BF_RNDU:
if (r->sign == (rnd_mode == BF_RNDD))
add_one = inexact;
break;
case BF_RNDA:
add_one = inexact;
break;
case BF_RNDNA:
case BF_RNDF:
add_one = bit1;
break;
default:
abort();
}
if (inexact)
*pret |= BF_ST_INEXACT;
return add_one;
} | O0 | c | bf_get_rnd_add:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movl %r8d, 0x34(%rsp)
cmpl $0x6, 0x34(%rsp)
jne 0xfbd5f
movq $0x1, 0x18(%rsp)
jmp 0xfbda4
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
shlq $0x6, %rax
subq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rsi
addq $0x1, %rsi
xorl %eax, %eax
movl %eax, %edi
callq 0xed350
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdi
subq %rax, %rsi
callq 0xfbf10
movq %rax, 0x18(%rsp)
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x40(%rsp), %rsi
movq %rsi, %rax
shlq $0x6, %rax
movq 0x38(%rsp), %rdx
notq %rdx
addq %rax, %rdx
callq 0xecf90
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
orq %rcx, %rax
setne %al
movzbl %al, %eax
movl %eax, 0x2c(%rsp)
movl $0x0, 0x30(%rsp)
movl 0x34(%rsp), %eax
movq %rax, (%rsp)
subq $0x6, %rax
ja 0xfbe9f
movq (%rsp), %rax
leaq 0x1bdee(%rip), %rcx # 0x117bf8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0xfbea4
cmpq $0x0, 0x20(%rsp)
je 0xfbe64
cmpq $0x0, 0x18(%rsp)
je 0xfbe32
movl $0x1, 0x30(%rsp)
jmp 0xfbe62
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x40(%rsp), %rsi
movq 0x40(%rsp), %rdx
shlq $0x6, %rdx
subq $0x1, %rdx
movq 0x38(%rsp), %rax
subq $0x1, %rax
subq %rax, %rdx
callq 0xecf90
movl %eax, 0x30(%rsp)
jmp 0xfbe64
jmp 0xfbea4
movq 0x48(%rsp), %rax
movl 0x8(%rax), %eax
cmpl $0x2, 0x34(%rsp)
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xfbe88
movl 0x2c(%rsp), %eax
movl %eax, 0x30(%rsp)
jmp 0xfbea4
movl 0x2c(%rsp), %eax
movl %eax, 0x30(%rsp)
jmp 0xfbea4
movq 0x20(%rsp), %rax
movl %eax, 0x30(%rsp)
jmp 0xfbea4
callq 0xe090
cmpl $0x0, 0x2c(%rsp)
je 0xfbeb7
movq 0x50(%rsp), %rax
movl (%rax), %ecx
orl $0x10, %ecx
movl %ecx, (%rax)
movl 0x30(%rsp), %eax
addq $0x58, %rsp
retq
| bf_get_rnd_add:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov [rsp+58h+var_18], rdx
mov [rsp+58h+var_20], rcx
mov [rsp+58h+var_24], r8d
cmp [rsp+58h+var_24], 6
jnz short loc_FBD5F
mov [rsp+58h+var_40], 1
jmp short loc_FBDA4
loc_FBD5F:
mov rax, [rsp+58h+var_10]
mov [rsp+58h+var_48], rax
mov rax, [rsp+58h+var_18]
shl rax, 6
sub rax, 1
mov [rsp+58h+var_50], rax
mov rsi, [rsp+58h+var_20]
add rsi, 1
xor eax, eax
mov edi, eax
call bf_max
mov rsi, [rsp+58h+var_50]
mov rdi, [rsp+58h+var_48]
sub rsi, rax
call scan_bit_nz
mov [rsp+58h+var_40], rax
loc_FBDA4:
mov rax, [rsp+58h+var_10]
mov rdi, [rax+20h]
mov rsi, [rsp+58h+var_18]
mov rax, rsi
shl rax, 6
mov rdx, [rsp+58h+var_20]
not rdx
add rdx, rax
call get_bit
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_38]
mov rcx, [rsp+58h+var_40]
or rax, rcx
setnz al
movzx eax, al
mov [rsp+58h+var_2C], eax
mov [rsp+58h+var_28], 0
mov eax, [rsp+58h+var_24]
mov [rsp+58h+var_58], rax
sub rax, 6; switch 7 cases
ja def_FBE11; jumptable 00000000000FBE11 default case
mov rax, [rsp+58h+var_58]
lea rcx, jpt_FBE11
movsxd rax, ds:(jpt_FBE11 - 117BF8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_FBE13:
jmp loc_FBEA4; jumptable 00000000000FBE11 case 1
loc_FBE18:
cmp [rsp+58h+var_38], 0; jumptable 00000000000FBE11 case 0
jz short loc_FBE64
cmp [rsp+58h+var_40], 0
jz short loc_FBE32
mov [rsp+58h+var_28], 1
jmp short loc_FBE62
loc_FBE32:
mov rax, [rsp+58h+var_10]
mov rdi, [rax+20h]
mov rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_18]
shl rdx, 6
sub rdx, 1
mov rax, [rsp+58h+var_20]
sub rax, 1
sub rdx, rax
call get_bit
mov [rsp+58h+var_28], eax
loc_FBE62:
jmp short $+2
loc_FBE64:
jmp short loc_FBEA4
loc_FBE66:
mov rax, [rsp+58h+var_10]; jumptable 00000000000FBE11 cases 2,3
mov eax, [rax+8]
cmp [rsp+58h+var_24], 2
setz cl
and cl, 1
movzx ecx, cl
cmp eax, ecx
jnz short loc_FBE88
mov eax, [rsp+58h+var_2C]
mov [rsp+58h+var_28], eax
loc_FBE88:
jmp short loc_FBEA4
loc_FBE8A:
mov eax, [rsp+58h+var_2C]; jumptable 00000000000FBE11 case 5
mov [rsp+58h+var_28], eax
jmp short loc_FBEA4
loc_FBE94:
mov rax, [rsp+58h+var_38]; jumptable 00000000000FBE11 cases 4,6
mov [rsp+58h+var_28], eax
jmp short loc_FBEA4
def_FBE11:
call _abort; jumptable 00000000000FBE11 default case
loc_FBEA4:
cmp [rsp+58h+var_2C], 0
jz short loc_FBEB7
mov rax, [rsp+58h+var_8]
mov ecx, [rax]
or ecx, 10h
mov [rax], ecx
loc_FBEB7:
mov eax, [rsp+58h+var_28]
add rsp, 58h
retn
| long long bf_get_rnd_add(_DWORD *a1, long long a2, unsigned long long a3, long long a4, int a5)
{
long long v5; // rax
const char *v6; // rdi
__int128 v8; // [rsp+18h] [rbp-40h]
unsigned int bit; // [rsp+30h] [rbp-28h]
if ( a5 == 6 )
{
*(_QWORD *)&v8 = 1LL;
}
else
{
v5 = bf_max(0LL, a4 + 1);
*(_QWORD *)&v8 = scan_bit_nz(a2, (a3 << 6) - 1 - v5);
}
v6 = *(const char **)(a2 + 32);
*((_QWORD *)&v8 + 1) = get_bit((long long)v6, a3, (a3 << 6) + ~a4);
bit = 0;
switch ( a5 )
{
case 0:
if ( *((_QWORD *)&v8 + 1) )
{
if ( (_QWORD)v8 )
bit = 1;
else
bit = get_bit(*(_QWORD *)(a2 + 32), a3, (a3 << 6) - a4);
}
break;
case 1:
break;
case 2:
case 3:
if ( *(_DWORD *)(a2 + 8) == (a5 == 2) )
bit = v8 != 0;
break;
case 4:
case 6:
bit = DWORD2(v8);
break;
case 5:
bit = v8 != 0;
break;
default:
abort(v6);
}
if ( v8 != 0 )
*a1 |= 0x10u;
return bit;
}
| bf_get_rnd_add:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV dword ptr [RSP + 0x34],R8D
CMP dword ptr [RSP + 0x34],0x6
JNZ 0x001fbd5f
MOV qword ptr [RSP + 0x18],0x1
JMP 0x001fbda4
LAB_001fbd5f:
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x40]
SHL RAX,0x6
SUB RAX,0x1
MOV qword ptr [RSP + 0x8],RAX
MOV RSI,qword ptr [RSP + 0x38]
ADD RSI,0x1
XOR EAX,EAX
MOV EDI,EAX
CALL 0x001ed350
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RSP + 0x10]
SUB RSI,RAX
CALL 0x001fbf10
MOV qword ptr [RSP + 0x18],RAX
LAB_001fbda4:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RSP + 0x40]
MOV RAX,RSI
SHL RAX,0x6
MOV RDX,qword ptr [RSP + 0x38]
NOT RDX
ADD RDX,RAX
CALL 0x001ecf90
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x18]
OR RAX,RCX
SETNZ AL
MOVZX EAX,AL
MOV dword ptr [RSP + 0x2c],EAX
MOV dword ptr [RSP + 0x30],0x0
MOV EAX,dword ptr [RSP + 0x34]
MOV qword ptr [RSP],RAX
SUB RAX,0x6
JA 0x001fbe9f
MOV RAX,qword ptr [RSP]
LEA RCX,[0x217bf8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
JMP 0x001fbea4
caseD_0:
CMP qword ptr [RSP + 0x20],0x0
JZ 0x001fbe64
CMP qword ptr [RSP + 0x18],0x0
JZ 0x001fbe32
MOV dword ptr [RSP + 0x30],0x1
JMP 0x001fbe62
LAB_001fbe32:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x40]
SHL RDX,0x6
SUB RDX,0x1
MOV RAX,qword ptr [RSP + 0x38]
SUB RAX,0x1
SUB RDX,RAX
CALL 0x001ecf90
MOV dword ptr [RSP + 0x30],EAX
LAB_001fbe62:
JMP 0x001fbe64
LAB_001fbe64:
JMP 0x001fbea4
caseD_2:
MOV RAX,qword ptr [RSP + 0x48]
MOV EAX,dword ptr [RAX + 0x8]
CMP dword ptr [RSP + 0x34],0x2
SETZ CL
AND CL,0x1
MOVZX ECX,CL
CMP EAX,ECX
JNZ 0x001fbe88
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x30],EAX
LAB_001fbe88:
JMP 0x001fbea4
caseD_5:
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x30],EAX
JMP 0x001fbea4
caseD_4:
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RSP + 0x30],EAX
JMP 0x001fbea4
default:
CALL 0x0010e090
LAB_001fbea4:
CMP dword ptr [RSP + 0x2c],0x0
JZ 0x001fbeb7
MOV RAX,qword ptr [RSP + 0x50]
MOV ECX,dword ptr [RAX]
OR ECX,0x10
MOV dword ptr [RAX],ECX
LAB_001fbeb7:
MOV EAX,dword ptr [RSP + 0x30]
ADD RSP,0x58
RET
|
uint bf_get_rnd_add(uint *param_1,long param_2,long param_3,ulong param_4,int param_5)
{
uint uVar1;
long lVar2;
long local_40;
uint local_28;
if (param_5 == 6) {
local_40 = 1;
}
else {
lVar2 = bf_max(0,param_4 + 1);
local_40 = scan_bit_nz(param_2,(param_3 * 0x40 + -1) - lVar2);
}
lVar2 = get_bit(*(int8 *)(param_2 + 0x20),param_3,~param_4 + param_3 * 0x40);
uVar1 = (uint)(lVar2 != 0 || local_40 != 0);
local_28 = 0;
switch(param_5) {
case 0:
if (lVar2 != 0) {
if (local_40 == 0) {
local_28 = get_bit(*(int8 *)(param_2 + 0x20),param_3,
(param_3 * 0x40 + -1) - (param_4 - 1));
}
else {
local_28 = 1;
}
}
break;
case 1:
break;
case 2:
case 3:
if (*(uint *)(param_2 + 8) == (uint)(param_5 == 2)) {
local_28 = uVar1;
}
break;
case 4:
case 6:
local_28 = (uint)lVar2;
break;
case 5:
local_28 = uVar1;
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
if (uVar1 != 0) {
*param_1 = *param_1 | 0x10;
}
return local_28;
}
| |
23,277 | mi_enable_indexes | eloqsql/storage/myisam/mi_open.c | int mi_enable_indexes(MI_INFO *info)
{
int error= 0;
MYISAM_SHARE *share= info->s;
if (share->state.state.data_file_length ||
(share->state.state.key_file_length != share->base.keystart))
{
mi_print_error(info->s, HA_ERR_CRASHED);
error= HA_ERR_CRASHED;
}
else
mi_set_all_keys_active(share->state.key_map, share->base.keys);
return error;
} | O0 | c | mi_enable_indexes:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0xc17fe
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x108(%rcx), %rax
je 0xc181f
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xb5e50
movl $0x7e, -0xc(%rbp)
jmp 0xc1866
movq -0x18(%rbp), %rax
cmpl $0x40, 0x180(%rax)
jae 0xc184a
movq -0x18(%rbp), %rax
movl 0x180(%rax), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
subq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xc1857
movq $-0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xc1857
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xc0(%rax)
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| mi_enable_indexes:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], 0
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
cmp qword ptr [rax+40h], 0
jnz short loc_C17FE
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov rcx, [rbp+var_18]
cmp rax, [rcx+108h]
jz short loc_C181F
loc_C17FE:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
mov [rbp+var_C], 7Eh ; '~'
jmp short loc_C1866
loc_C181F:
mov rax, [rbp+var_18]
cmp dword ptr [rax+180h], 40h ; '@'
jnb short loc_C184A
mov rax, [rbp+var_18]
mov eax, [rax+180h]
mov ecx, eax
mov eax, 1
shl rax, cl
sub rax, 1
mov [rbp+var_20], rax
jmp short loc_C1857
loc_C184A:
mov rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_20], rax
jmp short $+2
loc_C1857:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_18]
mov [rax+0C0h], rcx
loc_C1866:
mov eax, [rbp+var_C]
add rsp, 20h
pop rbp
retn
| long long mi_enable_indexes(long long *a1)
{
long long v2; // [rsp+0h] [rbp-20h]
long long v3; // [rsp+8h] [rbp-18h]
unsigned int v4; // [rsp+14h] [rbp-Ch]
v4 = 0;
v3 = *a1;
if ( !*(_QWORD *)(*a1 + 64) && *(_QWORD *)(v3 + 56) == *(_QWORD *)(v3 + 264) )
{
if ( *(_DWORD *)(v3 + 384) >= 0x40u )
v2 = -1LL;
else
v2 = (1LL << *(_DWORD *)(v3 + 384)) - 1;
*(_QWORD *)(v3 + 192) = v2;
}
else
{
mi_report_error(126, *(_QWORD *)(*a1 + 616));
return 126;
}
return v4;
}
| mi_enable_indexes:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x40],0x0
JNZ 0x001c17fe
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX + 0x108]
JZ 0x001c181f
LAB_001c17fe:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001b5e50
MOV dword ptr [RBP + -0xc],0x7e
JMP 0x001c1866
LAB_001c181f:
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x180],0x40
JNC 0x001c184a
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x180]
MOV ECX,EAX
MOV EAX,0x1
SHL RAX,CL
SUB RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001c1857
LAB_001c184a:
MOV RAX,-0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001c1857
LAB_001c1857:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xc0],RCX
LAB_001c1866:
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x20
POP RBP
RET
|
int4 mi_enable_indexes(long *param_1)
{
long lVar1;
int8 local_28;
int4 local_14;
local_14 = 0;
lVar1 = *param_1;
if ((*(long *)(lVar1 + 0x40) == 0) && (*(long *)(lVar1 + 0x38) == *(long *)(lVar1 + 0x108))) {
if (*(uint *)(lVar1 + 0x180) < 0x40) {
local_28 = (1L << ((byte)*(int4 *)(lVar1 + 0x180) & 0x3f)) + -1;
}
else {
local_28 = -1;
}
*(long *)(lVar1 + 0xc0) = local_28;
}
else {
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
local_14 = 0x7e;
}
return local_14;
}
| |
23,278 | my_realpath | eloqsql/mysys/my_symlink.c | int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
} | O3 | c | my_realpath:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1010, %rsp # imm = 0x1010
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq -0x1030(%rbp), %rsi
movq %r14, %rdi
callq 0x294d0
testq %rax, %rax
je 0xa1d51
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd80b4
xorl %eax, %eax
jmp 0xa1da0
callq 0x297b0
movl (%rax), %r12d
callq 0xa29fe
movl %r12d, (%rax)
testb $0x10, %r15b
je 0xa1d7f
callq 0xa29fe
movl (%rax), %ecx
movl $0x1a, %edi
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x9f0b3
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa9ae4
callq 0xa29fe
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
leal -0x1(,%rcx,2), %eax
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0xa1dbf
addq $0x1010, %rsp # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| my_realpath:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 1010h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea rsi, [rbp+var_1030]
mov rdi, r14
call _realpath
test rax, rax
jz short loc_A1D51
mov edx, 1FFh
mov rdi, rbx
mov rsi, rax
call strmake
xor eax, eax
jmp short loc_A1DA0
loc_A1D51:
call ___errno_location
mov r12d, [rax]
call _my_thread_var
mov [rax], r12d
test r15b, 10h
jz short loc_A1D7F
call _my_thread_var
mov ecx, [rax]
mov edi, 1Ah
xor esi, esi
mov rdx, r14
xor eax, eax
call my_error
loc_A1D7F:
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_load_path
call _my_thread_var
xor ecx, ecx
cmp dword ptr [rax], 2
setz cl
lea eax, ds:0FFFFFFFFFFFFFFFFh[rcx*2]
loc_A1DA0:
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_A1DBF
add rsp, 1010h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_A1DBF:
call ___stack_chk_fail
| long long my_realpath(long long a1, const char *a2, char a3)
{
long long v4; // rax
int v6; // r12d
unsigned int *v7; // rax
char v8[4104]; // [rsp+0h] [rbp-1030h] BYREF
unsigned long long v9; // [rsp+1008h] [rbp-28h]
v9 = __readfsqword(0x28u);
v4 = realpath(a2, v8);
if ( v4 )
{
strmake(a1, v4, 511LL);
return 0LL;
}
else
{
v6 = *(_DWORD *)__errno_location(a2);
*(_DWORD *)my_thread_var(a2, v8) = v6;
if ( (a3 & 0x10) != 0 )
{
v7 = (unsigned int *)my_thread_var(a2, v8);
my_error(0x1Au, 0LL, a2, *v7);
}
my_load_path(a1, a2, 0LL);
return 2 * (unsigned int)(*(_DWORD *)my_thread_var(a1, a2) == 2) - 1;
}
}
| my_realpath:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1010
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA RSI,[RBP + -0x1030]
MOV RDI,R14
CALL 0x001294d0
TEST RAX,RAX
JZ 0x001a1d51
MOV EDX,0x1ff
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001d80b4
XOR EAX,EAX
JMP 0x001a1da0
LAB_001a1d51:
CALL 0x001297b0
MOV R12D,dword ptr [RAX]
CALL 0x001a29fe
MOV dword ptr [RAX],R12D
TEST R15B,0x10
JZ 0x001a1d7f
CALL 0x001a29fe
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR ESI,ESI
MOV RDX,R14
XOR EAX,EAX
CALL 0x0019f0b3
LAB_001a1d7f:
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x001a9ae4
CALL 0x001a29fe
XOR ECX,ECX
CMP dword ptr [RAX],0x2
SETZ CL
LEA EAX,[-0x1 + RCX*0x2]
LAB_001a1da0:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x001a1dbf
ADD RSP,0x1010
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001a1dbf:
CALL 0x00129270
|
int my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
char local_1038 [4104];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
pcVar2 = realpath(param_2,local_1038);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
iVar1 = (uint)(*piVar3 == 2) * 2 + -1;
}
else {
strmake(param_1,pcVar2,0x1ff);
iVar1 = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return iVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
23,279 | my_casedn_str_8bit | eloqsql/strings/ctype-simple.c | size_t my_casedn_str_8bit(CHARSET_INFO * cs,char *str)
{
register const uchar *map= cs->to_lower;
char *str_orig= str;
while ((*str= (char) map[(uchar) *str]) != 0)
str++;
return (size_t) (str - str_orig);
} | O0 | c | my_casedn_str_8bit:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %al
movq -0x10(%rbp), %rcx
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0x0, %eax
je 0xa53aa
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0xa5380
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw (%rax,%rax)
| my_casedn_str_8bit:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+48h]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
loc_A5380:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov al, [rax+rcx]
mov rcx, [rbp+var_10]
mov [rcx], al
movsx eax, al
cmp eax, 0
jz short loc_A53AA
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_A5380
loc_A53AA:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
sub rax, rcx
pop rbp
retn
| _BYTE * my_casedn_str_8bit(long long a1, _BYTE *a2)
{
char v2; // al
long long v4; // [rsp+8h] [rbp-18h]
_BYTE *v5; // [rsp+10h] [rbp-10h]
v5 = a2;
v4 = *(_QWORD *)(a1 + 72);
while ( 1 )
{
v2 = *(_BYTE *)(v4 + (unsigned __int8)*v5);
*v5 = v2;
if ( !v2 )
break;
++v5;
}
return (_BYTE *)(v5 - a2);
}
| my_casedn_str_8bit:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
LAB_001a5380:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV byte ptr [RCX],AL
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x001a53aa
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001a5380
LAB_001a53aa:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
SUB RAX,RCX
POP RBP
RET
|
long my_casedn_str_8bit(long param_1,byte *param_2)
{
byte bVar1;
long lVar2;
byte *local_18;
lVar2 = *(long *)(param_1 + 0x48);
local_18 = param_2;
while (bVar1 = *(byte *)(lVar2 + (ulong)*local_18), *local_18 = bVar1, bVar1 != 0) {
local_18 = local_18 + 1;
}
return (long)local_18 - (long)param_2;
}
| |
23,280 | reset_root_defaults | eloqsql/mysys/my_alloc.c | void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)))
{
DBUG_ENTER("reset_root_defaults");
DBUG_ASSERT(alloc_root_inited(mem_root));
mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) |
(mem_root->block_size & 1));
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
if (pre_alloc_size)
{
size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM));
if (!mem_root->pre_alloc || mem_root->pre_alloc->size != size)
{
USED_MEM *mem, **prev= &mem_root->free;
/*
Free unused blocks, so that consequent calls
to reset_root_defaults won't eat away memory.
*/
while (*prev)
{
mem= *prev;
if (mem->size == size)
{
/* We found a suitable block, no need to do anything else */
mem_root->pre_alloc= mem;
DBUG_VOID_RETURN;
}
if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size)
{
/* remove block from the list and free it */
*prev= mem->next;
my_free(mem);
}
else
prev= &mem->next;
}
/* Allocate new prealloc block and add it to the end of free list */
if ((mem= (USED_MEM *) my_malloc(mem_root->m_psi_key, size,
MYF(MALLOC_FLAG(mem_root->
block_size)))))
{
mem->size= size;
mem->left= pre_alloc_size;
mem->next= *prev;
*prev= mem_root->pre_alloc= mem;
TRASH_MEM(mem);
}
else
{
mem_root->pre_alloc= 0;
}
}
}
else
#endif
mem_root->pre_alloc= 0;
DBUG_VOID_RETURN;
} | O0 | c | reset_root_defaults:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0xf22f6
movq -0x10(%rbp), %rcx
subq $0x28, %rcx
andq $-0x2, %rcx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x1, %rax
orq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, -0x18(%rbp)
je 0xf244f
movq -0x18(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xf2351
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
cmpq -0x20(%rbp), %rax
je 0xf244d
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
je 0xf23c6
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x20(%rbp), %rax
jne 0xf238d
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0xf245f
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x18, %rax
movq -0x28(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0xf23bc
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rdi
callq 0xfc410
jmp 0xf23c4
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xf2359
movq -0x8(%rbp), %rax
movl 0x38(%rax), %edi
movq -0x20(%rbp), %rsi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdx
andq $0x1, %rdx
xorl %eax, %eax
movl $0x10000, %ecx # imm = 0x10000
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, %eax
movl %eax, %edx
callq 0xfc090
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0xf243f
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0xf2439
jmp 0xf243b
jmp 0xf243d
jmp 0xf244b
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0xf244d
jmp 0xf245b
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0xf245d
jmp 0xf245f
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| reset_root_defaults:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_F22F6:
mov rcx, [rbp+var_10]
sub rcx, 28h ; '('
and rcx, 0FFFFFFFFFFFFFFFEh
mov rax, [rbp+var_8]
mov rax, [rax+20h]
and rax, 1
or rcx, rax
mov rax, [rbp+var_8]
mov [rax+20h], rcx
cmp [rbp+var_18], 0
jz loc_F244F
mov rax, [rbp+var_18]
add rax, 18h
mov [rbp+var_20], rax
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_F2351
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rax, [rax+10h]
cmp rax, [rbp+var_20]
jz loc_F244D
loc_F2351:
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
loc_F2359:
mov rax, [rbp+var_30]
cmp qword ptr [rax], 0
jz short loc_F23C6
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax+10h]
cmp rax, [rbp+var_20]
jnz short loc_F238D
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
jmp loc_F245F
loc_F238D:
mov rax, [rbp+var_28]
mov rax, [rax+8]
add rax, 18h
mov rcx, [rbp+var_28]
cmp rax, [rcx+10h]
jnz short loc_F23BC
mov rax, [rbp+var_28]
mov rcx, [rax]
mov rax, [rbp+var_30]
mov [rax], rcx
mov rdi, [rbp+var_28]
call my_free
jmp short loc_F23C4
loc_F23BC:
mov rax, [rbp+var_28]
mov [rbp+var_30], rax
loc_F23C4:
jmp short loc_F2359
loc_F23C6:
mov rax, [rbp+var_8]
mov edi, [rax+38h]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_8]
mov rdx, [rax+20h]
and rdx, 1
xor eax, eax
mov ecx, 10000h
cmp rdx, 0
cmovnz eax, ecx
mov eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_F243F
mov rcx, [rbp+var_20]
mov rax, [rbp+var_28]
mov [rax+10h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_28]
mov [rax+8], rcx
mov rax, [rbp+var_30]
mov rcx, [rax]
mov rax, [rbp+var_28]
mov [rax], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
mov rax, [rbp+var_30]
mov [rax], rcx
jmp short $+2
loc_F2439:
jmp short $+2
loc_F243B:
jmp short $+2
loc_F243D:
jmp short loc_F244B
loc_F243F:
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_F244B:
jmp short $+2
loc_F244D:
jmp short loc_F245B
loc_F244F:
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_F245B:
jmp short $+2
loc_F245D:
jmp short $+2
loc_F245F:
add rsp, 30h
pop rbp
retn
| long long * reset_root_defaults(long long *a1, long long a2, long long a3)
{
long long *result; // rax
long long v4; // rdi
unsigned int v5; // eax
long long *v6; // [rsp+0h] [rbp-30h]
long long *v7; // [rsp+8h] [rbp-28h]
_QWORD *v8; // [rsp+8h] [rbp-28h]
long long *v9; // [rsp+10h] [rbp-20h]
a1[4] = a1[4] & 1 | (a2 - 40) & 0xFFFFFFFFFFFFFFFELL;
if ( a3 )
{
v9 = (long long *)(a3 + 24);
if ( !a1[2] || (result = *(long long **)(a1[2] + 16), result != v9) )
{
v6 = a1;
while ( *v6 )
{
v7 = (long long *)*v6;
if ( *(long long **)(*v6 + 16) == v9 )
{
result = a1;
a1[2] = (long long)v7;
return result;
}
if ( v7[1] + 24 == v7[2] )
{
*v6 = *v7;
my_free(v7);
}
else
{
v6 = (long long *)*v6;
}
}
v4 = *((unsigned int *)a1 + 14);
v5 = 0;
if ( (a1[4] & 1) != 0 )
v5 = 0x10000;
v8 = (_QWORD *)my_malloc(v4, v9, v5);
if ( v8 )
{
v8[2] = v9;
v8[1] = a3;
*v8 = *v6;
a1[2] = (long long)v8;
result = v6;
*v6 = (long long)v8;
}
else
{
result = a1;
a1[2] = 0LL;
}
}
}
else
{
result = a1;
a1[2] = 0LL;
}
return result;
}
| reset_root_defaults:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x001f22f6
LAB_001f22f6:
MOV RCX,qword ptr [RBP + -0x10]
SUB RCX,0x28
AND RCX,-0x2
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x1
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001f244f
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x001f2351
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001f244d
LAB_001f2351:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RAX
LAB_001f2359:
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX],0x0
JZ 0x001f23c6
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x001f238d
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001f245f
LAB_001f238d:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,0x18
MOV RCX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x001f23bc
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x001fc410
JMP 0x001f23c4
LAB_001f23bc:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x30],RAX
LAB_001f23c4:
JMP 0x001f2359
LAB_001f23c6:
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX + 0x38]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x20]
AND RDX,0x1
XOR EAX,EAX
MOV ECX,0x10000
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV EAX,EAX
MOV EDX,EAX
CALL 0x001fc090
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x001f243f
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
JMP 0x001f2439
LAB_001f2439:
JMP 0x001f243b
LAB_001f243b:
JMP 0x001f243d
LAB_001f243d:
JMP 0x001f244b
LAB_001f243f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_001f244b:
JMP 0x001f244d
LAB_001f244d:
JMP 0x001f245b
LAB_001f244f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_001f245b:
JMP 0x001f245d
LAB_001f245d:
JMP 0x001f245f
LAB_001f245f:
ADD RSP,0x30
POP RBP
RET
|
void reset_root_defaults(long *param_1,long param_2,long param_3)
{
int4 uVar1;
long lVar2;
long *plVar3;
long *local_38;
param_1[4] = param_2 - 0x28U & 0xfffffffffffffffe | param_1[4] & 1U;
if (param_3 == 0) {
param_1[2] = 0;
}
else {
lVar2 = param_3 + 0x18;
plVar3 = param_1;
if ((param_1[2] == 0) || (plVar3 = param_1, *(long *)(param_1[2] + 0x10) != lVar2)) {
while (local_38 = plVar3, *local_38 != 0) {
plVar3 = (long *)*local_38;
if (plVar3[2] == lVar2) {
param_1[2] = (long)plVar3;
return;
}
if (plVar3[1] + 0x18 == plVar3[2]) {
*local_38 = *plVar3;
my_free(plVar3);
plVar3 = local_38;
}
}
uVar1 = 0;
if ((param_1[4] & 1U) != 0) {
uVar1 = 0x10000;
}
plVar3 = (long *)my_malloc((int)param_1[7],lVar2,uVar1);
if (plVar3 == (long *)0x0) {
param_1[2] = 0;
}
else {
plVar3[2] = lVar2;
plVar3[1] = param_3;
*plVar3 = *local_38;
param_1[2] = (long)plVar3;
*local_38 = (long)plVar3;
}
}
}
return;
}
| |
23,281 | core_tensor_logic_init_3d_Test::TestBody() | magnetron/test/unittests/tensor/core_logic.cpp | TEST(core_tensor_logic, init_3d) {
context ctx {compute_device::cpu};
tensor t {ctx, dtype::e8m23, 10, 10, 10};
ASSERT_EQ(t.dtype(), dtype::e8m23);
ASSERT_EQ(t.rank(), 3);
ASSERT_EQ(t.shape()[0], 10);
ASSERT_EQ(t.shape()[1], 10);
ASSERT_EQ(t.shape()[2], 10);
ASSERT_EQ(t.shape()[3], 1);
ASSERT_EQ(t.shape()[4], 1);
ASSERT_EQ(t.shape()[5], 1);
ASSERT_EQ(t.strides()[0], 1);
ASSERT_EQ(t.strides()[1], 10);
ASSERT_EQ(t.strides()[2], 100);
ASSERT_EQ(t.strides()[3], 1000);
ASSERT_EQ(t.strides()[4], 1000);
ASSERT_EQ(t.strides()[5], 1000);
ASSERT_NE(t.data_ptr(), nullptr);
ASSERT_EQ(t.data_size(), 10*10*10 * sizeof(e8m23_t));
ASSERT_EQ(t.numel(), 10*10*10);
ASSERT_EQ(t.data_size(), t.numel() * sizeof(e8m23_t));
ASSERT_EQ(t.refcount(), 1);
// now check some internal data
mag_tensor_t* internal {&*t};
ASSERT_NE(internal->storage->alignment, 0);
ASSERT_NE(internal->storage->base, 0);
ASSERT_NE(internal->storage->size, 0);
ASSERT_NE(internal->storage->host, nullptr);
ASSERT_NE(internal->storage->broadcast, nullptr);
ASSERT_NE(internal->storage->transfer, nullptr);
ASSERT_EQ(internal->view_offs, 0);
ASSERT_EQ(internal->view_uplink, nullptr);
ASSERT_EQ(internal->op, MAG_OP_NOP);
ASSERT_EQ(internal->init_op, MAG_IOP_NOP);
for (std::size_t i {}; i < k_max_input_tensors; ++i) {
ASSERT_EQ(internal->op_inputs[i], nullptr);
}
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(internal->op_params[i]), MAG_OPP_NONE);
}
ASSERT_EQ(internal->init_op, MAG_IOP_NOP);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(internal->init_op_params[i]), MAG_OPP_NONE);
}
ASSERT_EQ(internal->flags, MAG_TFLAG_OWNER|MAG_TFLAG_REQUIRES_GRAD);
ASSERT_EQ(internal->grad, nullptr); // gradient is allocated lazily
ASSERT_EQ(internal->ud, nullptr);
} | O0 | cpp | core_tensor_logic_init_3d_Test::TestBody():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x9ed60
movq -0x10(%rbp), %rax
leaq 0xb1b1c(%rip), %rcx # 0x1350e0
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN30core_tensor_logic_init_3d_TestC2Ev:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_10], rdi
call _ZN7testing4TestC2Ev; testing::Test::Test(void)
mov rax, [rbp+var_10]
lea rcx, _ZTV30core_tensor_logic_init_3d_Test; `vtable for'core_tensor_logic_init_3d_Test
add rcx, 10h
mov [rax], rcx
add rsp, 10h
pop rbp
retn
| void core_tensor_logic_init_3d_Test::core_tensor_logic_init_3d_Test(core_tensor_logic_init_3d_Test *this)
{
testing::Test::Test(this);
*(_QWORD *)this = &`vtable for'core_tensor_logic_init_3d_Test + 2;
}
| core_tensor_logic_init_3d_Test:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
CALL 0x0019ed60
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x2350e0]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RSP,0x10
POP RBP
RET
|
/* core_tensor_logic_init_3d_Test::core_tensor_logic_init_3d_Test() */
void __thiscall
core_tensor_logic_init_3d_Test::core_tensor_logic_init_3d_Test(core_tensor_logic_init_3d_Test *this)
{
testing::Test::Test((Test *)this);
*(int ***)this = &PTR__core_tensor_logic_init_3d_Test_002350f0;
return;
}
| |
23,282 | LefDefParser::defiPin::print(_IO_FILE*) const | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinCap.cpp | void defiPin::print(FILE* f) const {
int xl, yl, xh,yh;
int i;
fprintf(f, "PINS '%s' on net '%s'\n", pinName(),
netName());
if (hasDirection())
fprintf(f, "+ DIRECTION '%s'\n", direction());
if (hasNetExpr())
fprintf(f, "+ NETEXPR '%s'\n", netExpr());
if (hasSupplySensitivity())
fprintf(f, "+ SUPPLYSENSITIVITY '%s'\n",
supplySensitivity());
if (hasGroundSensitivity())
fprintf(f, "+ GROUNDSENSITIVITY '%s'\n",
groundSensitivity());
if (hasUse())
fprintf(f, "+ USE '%s'\n", use());
if (hasLayer()) {
for (i = 0; i < numLayer(); i++) {
bounds(i, &xl, &yl, &xh, &yh);
fprintf(f, "+ LAYER '%s' %d %d %d %d\n",
layer(i), xl, yl, xh, yh);
}
}
for (i = 0; i < numPolygons(); i++) {
fprintf(f, "+ POLYGON %s", polygonName(i));
if (hasPolygonSpacing(i)) {
fprintf(f, " SPACING %d", polygonSpacing(i));
}
if (hasPolygonDesignRuleWidth(i)) {
fprintf(f, " DESIGNRULEWIDTH %d",
polygonDesignRuleWidth(i));
}
fprintf(f, "\n");
}
for (i = 0; i < numVias(); i++) {
fprintf(f, "+ VIA %s %d %d\n", viaName(i),
viaPtX(i), viaPtY(i));
}
if (hasPlacement())
fprintf(f, " PLACED %s%s%d %d\n",
isFixed() ? " FIXED" : "",
isCover() ? " COVER" : "",
placementX(),
placementY());
if (hasSpecial())
fprintf(f, "+ SPECIAL\n");
} | O0 | cpp | LefDefParser::defiPin::print(_IO_FILE*) const:
subq $0xd8, %rsp
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq 0xd0(%rsp), %rdi
movq %rdi, 0xa8(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x98(%rsp)
callq 0x2b930
movq 0xa8(%rsp), %rdi
movq %rax, 0xa0(%rsp)
callq 0x2b940
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rdx
movq %rax, %rcx
leaq 0x436f9(%rip), %rsi # 0x714f4
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2b9f0
cmpl $0x0, %eax
je 0x2de4a
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x90(%rsp)
callq 0x2bb30
movq 0x90(%rsp), %rdi
movq %rax, %rdx
leaq 0x436c8(%rip), %rsi # 0x7150b
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2d290
cmpl $0x0, %eax
je 0x2de92
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x88(%rsp)
callq 0x2d2b0
movq 0x88(%rsp), %rdi
movq %rax, %rdx
leaq 0x43692(%rip), %rsi # 0x7151d
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2d2d0
cmpl $0x0, %eax
je 0x2deda
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x80(%rsp)
callq 0x2d2f0
movq 0x80(%rsp), %rdi
movq %rax, %rdx
leaq 0x4365a(%rip), %rsi # 0x7152d
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2d310
cmpl $0x0, %eax
je 0x2df1c
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x78(%rsp)
callq 0x2d330
movq 0x78(%rsp), %rdi
movq %rax, %rdx
leaq 0x43632(%rip), %rsi # 0x71547
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2ba00
cmpl $0x0, %eax
je 0x2df5e
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x70(%rsp)
callq 0x2bb40
movq 0x70(%rsp), %rdi
movq %rax, %rdx
leaq 0x4360a(%rip), %rsi # 0x71561
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2ba10
cmpl $0x0, %eax
je 0x2e049
movl $0x0, 0xb4(%rsp)
movq 0xa8(%rsp), %rdi
movl 0xb4(%rsp), %eax
movl %eax, 0x6c(%rsp)
callq 0x2bb50
movl %eax, %ecx
movl 0x6c(%rsp), %eax
cmpl %ecx, %eax
jge 0x2e047
movq 0xa8(%rsp), %rdi
movl 0xb4(%rsp), %esi
leaq 0xc4(%rsp), %rdx
leaq 0xc0(%rsp), %rcx
leaq 0xbc(%rsp), %r8
leaq 0xb8(%rsp), %r9
callq 0x2bb80
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2bb60
movq 0x60(%rsp), %rdi
movq %rax, %rdx
movl 0xc4(%rsp), %ecx
movl 0xc0(%rsp), %r8d
movl 0xbc(%rsp), %r9d
movl 0xb8(%rsp), %eax
leaq 0x43546(%rip), %rsi # 0x7156d
movl %eax, (%rsp)
movb $0x0, %al
callq 0x7300
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x2df7f
jmp 0x2e049
movl $0x0, 0xb4(%rsp)
movq 0xa8(%rsp), %rdi
movl 0xb4(%rsp), %eax
movl %eax, 0x5c(%rsp)
callq 0x2d0d0
movl %eax, %ecx
movl 0x5c(%rsp), %eax
cmpl %ecx, %eax
jge 0x2e17b
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2d0f0
movq 0x50(%rsp), %rdi
movq %rax, %rdx
leaq 0x3fdc7(%rip), %rsi # 0x6de71
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
movl 0xb4(%rsp), %esi
callq 0x2d1b0
cmpl $0x0, %eax
je 0x2e100
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x48(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2d230
movq 0x48(%rsp), %rdi
movl %eax, %edx
leaq 0x3f924(%rip), %rsi # 0x6da1d
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
movl 0xb4(%rsp), %esi
callq 0x2d1f0
cmpl $0x0, %eax
je 0x2e14f
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2d270
movq 0x40(%rsp), %rdi
movl %eax, %edx
leaq 0x3fd14(%rip), %rsi # 0x6de5c
movb $0x0, %al
callq 0x7300
movq 0xc8(%rsp), %rdi
leaq 0x4315e(%rip), %rsi # 0x712bc
movb $0x0, %al
callq 0x7300
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x2e054
movl $0x0, 0xb4(%rsp)
movq 0xa8(%rsp), %rdi
movl 0xb4(%rsp), %eax
movl %eax, 0x3c(%rsp)
callq 0x2d620
movl %eax, %ecx
movl 0x3c(%rsp), %eax
cmpl %ecx, %eax
jge 0x2e233
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2d640
movq 0xa8(%rsp), %rdi
movq %rax, 0x30(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2d6c0
movq 0xa8(%rsp), %rdi
movl %eax, 0x38(%rsp)
movl 0xb4(%rsp), %esi
callq 0x2d6e0
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x38(%rsp), %ecx
movl %eax, %r8d
leaq 0x43371(%rip), %rsi # 0x71587
movb $0x0, %al
callq 0x7300
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x2e186
movq 0xa8(%rsp), %rdi
callq 0x2ba50
cmpl $0x0, %eax
je 0x2e2eb
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0x8(%rsp)
callq 0x2bad0
movq 0xa8(%rsp), %rdi
movl %eax, %edx
leaq 0x43049(%rip), %rax # 0x712bd
leaq 0x3fc59(%rip), %rcx # 0x6ded4
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, 0x10(%rsp)
callq 0x2bab0
movq 0xa8(%rsp), %rdi
movl %eax, %edx
leaq 0x43020(%rip), %rax # 0x712bd
leaq 0x3fc27(%rip), %rcx # 0x6decb
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, 0x18(%rsp)
callq 0x2baf0
movq 0xa8(%rsp), %rdi
movl %eax, 0x24(%rsp)
callq 0x2bb10
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movl 0x24(%rsp), %r8d
movl %eax, %r9d
leaq 0x432b3(%rip), %rsi # 0x71597
movb $0x0, %al
callq 0x7300
movq 0xa8(%rsp), %rdi
callq 0x2c8c0
cmpl $0x0, %eax
je 0x2e313
movq 0xc8(%rsp), %rdi
leaq 0x4329f(%rip), %rsi # 0x715ab
movb $0x0, %al
callq 0x7300
addq $0xd8, %rsp
retq
nopl (%rax,%rax)
| _ZNK12LefDefParser7defiPin5printEP8_IO_FILE:
sub rsp, 0D8h
mov [rsp+0D8h+var_8], rdi
mov [rsp+0D8h+var_10], rsi
mov rdi, [rsp+0D8h+var_8]; this
mov [rsp+0D8h+var_30], rdi
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_40], rax
call _ZNK12LefDefParser7defiPin7pinNameEv; LefDefParser::defiPin::pinName(void)
mov rdi, [rsp+0D8h+var_30]; this
mov [rsp+0D8h+var_38], rax
call _ZNK12LefDefParser7defiPin7netNameEv; LefDefParser::defiPin::netName(void)
mov rdi, [rsp+0D8h+var_40]
mov rdx, [rsp+0D8h+var_38]
mov rcx, rax
lea rsi, aPinsSOnNetS; "PINS '%s' on net '%s'\n"
mov al, 0
call _fprintf
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin12hasDirectionEv; LefDefParser::defiPin::hasDirection(void)
cmp eax, 0
jz short loc_2DE4A
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_48], rax
call _ZNK12LefDefParser7defiPin9directionEv; LefDefParser::defiPin::direction(void)
mov rdi, [rsp+0D8h+var_48]
mov rdx, rax
lea rsi, aDirectionS_0; "+ DIRECTION '%s'\n"
mov al, 0
call _fprintf
loc_2DE4A:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin10hasNetExprEv; LefDefParser::defiPin::hasNetExpr(void)
cmp eax, 0
jz short loc_2DE92
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_50], rax
call _ZNK12LefDefParser7defiPin7netExprEv; LefDefParser::defiPin::netExpr(void)
mov rdi, [rsp+0D8h+var_50]
mov rdx, rax
lea rsi, aNetexprS_0; "+ NETEXPR '%s'\n"
mov al, 0
call _fprintf
loc_2DE92:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin20hasSupplySensitivityEv; LefDefParser::defiPin::hasSupplySensitivity(void)
cmp eax, 0
jz short loc_2DEDA
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_58], rax
call _ZNK12LefDefParser7defiPin17supplySensitivityEv; LefDefParser::defiPin::supplySensitivity(void)
mov rdi, [rsp+0D8h+var_58]
mov rdx, rax
lea rsi, aSupplysensitiv_1; "+ SUPPLYSENSITIVITY '%s'\n"
mov al, 0
call _fprintf
loc_2DEDA:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin20hasGroundSensitivityEv; LefDefParser::defiPin::hasGroundSensitivity(void)
cmp eax, 0
jz short loc_2DF1C
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_60], rax
call _ZNK12LefDefParser7defiPin17groundSensitivityEv; LefDefParser::defiPin::groundSensitivity(void)
mov rdi, [rsp+0D8h+var_60]
mov rdx, rax
lea rsi, aGroundsensitiv_1; "+ GROUNDSENSITIVITY '%s'\n"
mov al, 0
call _fprintf
loc_2DF1C:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin6hasUseEv; LefDefParser::defiPin::hasUse(void)
cmp eax, 0
jz short loc_2DF5E
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_68], rax
call _ZNK12LefDefParser7defiPin3useEv; LefDefParser::defiPin::use(void)
mov rdi, [rsp+0D8h+var_68]
mov rdx, rax
lea rsi, aUseS_1; "+ USE '%s'\n"
mov al, 0
call _fprintf
loc_2DF5E:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin8hasLayerEv; LefDefParser::defiPin::hasLayer(void)
cmp eax, 0
jz loc_2E049
mov [rsp+0D8h+var_24], 0
loc_2DF7F:
mov rdi, [rsp+0D8h+var_30]; this
mov eax, [rsp+0D8h+var_24]
mov [rsp+0D8h+var_6C], eax
call _ZNK12LefDefParser7defiPin8numLayerEv; LefDefParser::defiPin::numLayer(void)
mov ecx, eax
mov eax, [rsp+0D8h+var_6C]
cmp eax, ecx
jge loc_2E047
mov rdi, [rsp+0D8h+var_30]; this
mov esi, [rsp+0D8h+var_24]; int
lea rdx, [rsp+0D8h+var_14]; int *
lea rcx, [rsp+0D8h+var_18]; int *
lea r8, [rsp+0D8h+var_1C]; int *
lea r9, [rsp+0D8h+var_20]; int *
call _ZNK12LefDefParser7defiPin6boundsEiPiS1_S1_S1_; LefDefParser::defiPin::bounds(int,int *,int *,int *,int *)
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_78], rax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin5layerEi; LefDefParser::defiPin::layer(int)
mov rdi, [rsp+0D8h+var_78]
mov rdx, rax
mov ecx, [rsp+0D8h+var_14]
mov r8d, [rsp+0D8h+var_18]
mov r9d, [rsp+0D8h+var_1C]
mov eax, [rsp+0D8h+var_20]
lea rsi, aLayerSDDDD; "+ LAYER '%s' %d %d %d %d\n"
mov [rsp+0D8h+var_D8], eax
mov al, 0
call _fprintf
mov eax, [rsp+0D8h+var_24]
add eax, 1
mov [rsp+0D8h+var_24], eax
jmp loc_2DF7F
loc_2E047:
jmp short $+2
loc_2E049:
mov [rsp+0D8h+var_24], 0
loc_2E054:
mov rdi, [rsp+0D8h+var_30]; this
mov eax, [rsp+0D8h+var_24]
mov [rsp+0D8h+var_7C], eax
call _ZNK12LefDefParser7defiPin11numPolygonsEv; LefDefParser::defiPin::numPolygons(void)
mov ecx, eax
mov eax, [rsp+0D8h+var_7C]
cmp eax, ecx
jge loc_2E17B
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_88], rax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin11polygonNameEi; LefDefParser::defiPin::polygonName(int)
mov rdi, [rsp+0D8h+var_88]
mov rdx, rax
lea rsi, aPolygonS+1; "+ POLYGON %s"
mov al, 0
call _fprintf
mov rdi, [rsp+0D8h+var_30]; this
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin17hasPolygonSpacingEi; LefDefParser::defiPin::hasPolygonSpacing(int)
cmp eax, 0
jz short loc_2E100
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_90], rax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin14polygonSpacingEi; LefDefParser::defiPin::polygonSpacing(int)
mov rdi, [rsp+0D8h+var_90]
mov edx, eax
lea rsi, aSpacingD; " SPACING %d"
mov al, 0
call _fprintf
loc_2E100:
mov rdi, [rsp+0D8h+var_30]; this
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin25hasPolygonDesignRuleWidthEi; LefDefParser::defiPin::hasPolygonDesignRuleWidth(int)
cmp eax, 0
jz short loc_2E14F
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_98], rax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin22polygonDesignRuleWidthEi; LefDefParser::defiPin::polygonDesignRuleWidth(int)
mov rdi, [rsp+0D8h+var_98]
mov edx, eax
lea rsi, aDesignrulewidt_0; " DESIGNRULEWIDTH %d"
mov al, 0
call _fprintf
loc_2E14F:
mov rdi, [rsp+0D8h+var_10]
lea rsi, aInfoFromFileS+14h; "\n"
mov al, 0
call _fprintf
mov eax, [rsp+0D8h+var_24]
add eax, 1
mov [rsp+0D8h+var_24], eax
jmp loc_2E054
loc_2E17B:
mov [rsp+0D8h+var_24], 0
loc_2E186:
mov rdi, [rsp+0D8h+var_30]; this
mov eax, [rsp+0D8h+var_24]
mov [rsp+0D8h+var_9C], eax
call _ZNK12LefDefParser7defiPin7numViasEv; LefDefParser::defiPin::numVias(void)
mov ecx, eax
mov eax, [rsp+0D8h+var_9C]
cmp eax, ecx
jge loc_2E233
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_B0], rax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin7viaNameEi; LefDefParser::defiPin::viaName(int)
mov rdi, [rsp+0D8h+var_30]; this
mov [rsp+0D8h+var_A8], rax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin6viaPtXEi; LefDefParser::defiPin::viaPtX(int)
mov rdi, [rsp+0D8h+var_30]; this
mov [rsp+0D8h+var_A0], eax
mov esi, [rsp+0D8h+var_24]; int
call _ZNK12LefDefParser7defiPin6viaPtYEi; LefDefParser::defiPin::viaPtY(int)
mov rdi, [rsp+0D8h+var_B0]
mov rdx, [rsp+0D8h+var_A8]
mov ecx, [rsp+0D8h+var_A0]
mov r8d, eax
lea rsi, aViaSDD_1; "+ VIA %s %d %d\n"
mov al, 0
call _fprintf
mov eax, [rsp+0D8h+var_24]
add eax, 1
mov [rsp+0D8h+var_24], eax
jmp loc_2E186
loc_2E233:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin12hasPlacementEv; LefDefParser::defiPin::hasPlacement(void)
cmp eax, 0
jz loc_2E2EB
mov rdi, [rsp+0D8h+var_30]; this
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_D0], rax
call _ZNK12LefDefParser7defiPin7isFixedEv; LefDefParser::defiPin::isFixed(void)
mov rdi, [rsp+0D8h+var_30]; this
mov edx, eax
lea rax, aInfoFromFileS+15h; ""
lea rcx, aFixed+2; " FIXED"
cmp edx, 0
cmovnz rax, rcx
mov [rsp+0D8h+var_C8], rax
call _ZNK12LefDefParser7defiPin7isCoverEv; LefDefParser::defiPin::isCover(void)
mov rdi, [rsp+0D8h+var_30]; this
mov edx, eax
lea rax, aInfoFromFileS+15h; ""
lea rcx, aCover+2; " COVER"
cmp edx, 0
cmovnz rax, rcx
mov [rsp+0D8h+var_C0], rax
call _ZNK12LefDefParser7defiPin10placementXEv; LefDefParser::defiPin::placementX(void)
mov rdi, [rsp+0D8h+var_30]; this
mov [rsp+0D8h+var_B4], eax
call _ZNK12LefDefParser7defiPin10placementYEv; LefDefParser::defiPin::placementY(void)
mov rdi, [rsp+0D8h+var_D0]
mov rdx, [rsp+0D8h+var_C8]
mov rcx, [rsp+0D8h+var_C0]
mov r8d, [rsp+0D8h+var_B4]
mov r9d, eax
lea rsi, aPlacedSSDD; " PLACED %s%s%d %d\n"
mov al, 0
call _fprintf
loc_2E2EB:
mov rdi, [rsp+0D8h+var_30]; this
call _ZNK12LefDefParser7defiPin10hasSpecialEv; LefDefParser::defiPin::hasSpecial(void)
cmp eax, 0
jz short loc_2E313
mov rdi, [rsp+0D8h+var_10]
lea rsi, aSpecial_1; "+ SPECIAL\n"
mov al, 0
call _fprintf
loc_2E313:
add rsp, 0D8h
retn
| long long LefDefParser::defiPin::print(LefDefParser::defiPin *a1, long long a2)
{
const char *v2; // rax
const char *v3; // rax
const char *v4; // rax
const char *v5; // rax
const char *v6; // rax
const char *v7; // rax
const char *v8; // rax
int v9; // eax
long long v10; // rdx
LefDefParser::defrData *v11; // r8
const char *v12; // rax
int v13; // eax
int v14; // eax
int v15; // eax
long long v16; // rdx
LefDefParser::defrData *v17; // r8
int v18; // eax
BOOL isFixed; // edx
char *v20; // rax
BOOL isCover; // edx
char *v22; // rax
int v23; // eax
long long result; // rax
long long v25; // [rsp+8h] [rbp-D0h]
const char *v26; // [rsp+10h] [rbp-C8h]
const char *v27; // [rsp+18h] [rbp-C0h]
int v28; // [rsp+24h] [rbp-B4h]
long long v29; // [rsp+28h] [rbp-B0h]
const char *v30; // [rsp+30h] [rbp-A8h]
int v31; // [rsp+38h] [rbp-A0h]
long long v32; // [rsp+40h] [rbp-98h]
long long v33; // [rsp+48h] [rbp-90h]
long long v34; // [rsp+50h] [rbp-88h]
long long v35; // [rsp+60h] [rbp-78h]
const char *v36; // [rsp+A0h] [rbp-38h]
int i; // [rsp+B4h] [rbp-24h]
int j; // [rsp+B4h] [rbp-24h]
int k; // [rsp+B4h] [rbp-24h]
int v40; // [rsp+B8h] [rbp-20h] BYREF
int v41; // [rsp+BCh] [rbp-1Ch] BYREF
int v42; // [rsp+C0h] [rbp-18h] BYREF
int v43; // [rsp+C4h] [rbp-14h] BYREF
long long v44; // [rsp+C8h] [rbp-10h]
LefDefParser::defiPin *v45; // [rsp+D0h] [rbp-8h]
v45 = a1;
v44 = a2;
v36 = (const char *)LefDefParser::defiPin::pinName(a1);
v2 = (const char *)LefDefParser::defiPin::netName(a1);
fprintf(a2, "PINS '%s' on net '%s'\n", v36, v2);
if ( (unsigned int)LefDefParser::defiPin::hasDirection(a1) )
{
v3 = (const char *)LefDefParser::defiPin::direction(a1);
fprintf(v44, "+ DIRECTION '%s'\n", v3);
}
if ( (unsigned int)LefDefParser::defiPin::hasNetExpr(a1) )
{
v4 = (const char *)LefDefParser::defiPin::netExpr(a1);
fprintf(v44, "+ NETEXPR '%s'\n", v4);
}
if ( (unsigned int)LefDefParser::defiPin::hasSupplySensitivity(a1) )
{
v5 = (const char *)LefDefParser::defiPin::supplySensitivity(a1);
fprintf(v44, "+ SUPPLYSENSITIVITY '%s'\n", v5);
}
if ( (unsigned int)LefDefParser::defiPin::hasGroundSensitivity(a1) )
{
v6 = (const char *)LefDefParser::defiPin::groundSensitivity(a1);
fprintf(v44, "+ GROUNDSENSITIVITY '%s'\n", v6);
}
if ( (unsigned int)LefDefParser::defiPin::hasUse(a1) )
{
v7 = (const char *)LefDefParser::defiPin::use(a1);
fprintf(v44, "+ USE '%s'\n", v7);
}
if ( LefDefParser::defiPin::hasLayer(a1) )
{
for ( i = 0; i < (int)LefDefParser::defiPin::numLayer(a1); ++i )
{
LefDefParser::defiPin::bounds(a1, i, &v43, &v42, &v41, &v40);
v35 = v44;
v8 = (const char *)LefDefParser::defiPin::layer(a1, i);
fprintf(v35, "+ LAYER '%s' %d %d %d %d\n", v8, v43, v42, v41, v40);
}
}
for ( j = 0; ; ++j )
{
v9 = LefDefParser::defiPin::numPolygons(a1);
if ( j >= v9 )
break;
v34 = v44;
v12 = (const char *)LefDefParser::defiPin::polygonName(a1, j, v10, (unsigned int)v9, v11);
fprintf(v34, "+ POLYGON %s", v12);
if ( LefDefParser::defiPin::hasPolygonSpacing(a1, j) )
{
v33 = v44;
v13 = LefDefParser::defiPin::polygonSpacing(a1, j);
fprintf(v33, " SPACING %d", v13);
}
if ( LefDefParser::defiPin::hasPolygonDesignRuleWidth(a1, j) )
{
v32 = v44;
v14 = LefDefParser::defiPin::polygonDesignRuleWidth(a1, j);
fprintf(v32, " DESIGNRULEWIDTH %d", v14);
}
fprintf(v44, "\n");
}
for ( k = 0; ; ++k )
{
v15 = LefDefParser::defiPin::numVias(a1);
if ( k >= v15 )
break;
v29 = v44;
v30 = (const char *)LefDefParser::defiPin::viaName(a1, k, v16, (unsigned int)v15, v17);
v31 = LefDefParser::defiPin::viaPtX(a1, k);
v18 = LefDefParser::defiPin::viaPtY(a1, k);
fprintf(v29, "+ VIA %s %d %d\n", v30, v31, v18);
}
if ( LefDefParser::defiPin::hasPlacement(a1) )
{
v25 = v44;
isFixed = LefDefParser::defiPin::isFixed(a1);
v20 = "";
if ( isFixed )
v20 = " FIXED";
v26 = v20;
isCover = LefDefParser::defiPin::isCover(a1);
v22 = "";
if ( isCover )
v22 = " COVER";
v27 = v22;
v28 = LefDefParser::defiPin::placementX(a1);
v23 = LefDefParser::defiPin::placementY(a1);
fprintf(v25, " PLACED %s%s%d %d\n", v26, v27, v28, v23);
}
result = LefDefParser::defiPin::hasSpecial(a1);
if ( (_DWORD)result )
return fprintf(v44, "+ SPECIAL\n");
return result;
}
| print:
SUB RSP,0xd8
MOV qword ptr [RSP + 0xd0],RDI
MOV qword ptr [RSP + 0xc8],RSI
MOV RDI,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0xa8],RDI
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x98],RAX
CALL 0x0012b930
MOV RDI,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0xa0],RAX
CALL 0x0012b940
MOV RDI,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
MOV RCX,RAX
LEA RSI,[0x1714f4]
MOV AL,0x0
CALL 0x00107300
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012b9f0
CMP EAX,0x0
JZ 0x0012de4a
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x90],RAX
CALL 0x0012bb30
MOV RDI,qword ptr [RSP + 0x90]
MOV RDX,RAX
LEA RSI,[0x17150b]
MOV AL,0x0
CALL 0x00107300
LAB_0012de4a:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012d290
CMP EAX,0x0
JZ 0x0012de92
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x88],RAX
CALL 0x0012d2b0
MOV RDI,qword ptr [RSP + 0x88]
MOV RDX,RAX
LEA RSI,[0x17151d]
MOV AL,0x0
CALL 0x00107300
LAB_0012de92:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012d2d0
CMP EAX,0x0
JZ 0x0012deda
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x80],RAX
CALL 0x0012d2f0
MOV RDI,qword ptr [RSP + 0x80]
MOV RDX,RAX
LEA RSI,[0x17152d]
MOV AL,0x0
CALL 0x00107300
LAB_0012deda:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012d310
CMP EAX,0x0
JZ 0x0012df1c
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x78],RAX
CALL 0x0012d330
MOV RDI,qword ptr [RSP + 0x78]
MOV RDX,RAX
LEA RSI,[0x171547]
MOV AL,0x0
CALL 0x00107300
LAB_0012df1c:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012ba00
CMP EAX,0x0
JZ 0x0012df5e
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x70],RAX
CALL 0x0012bb40
MOV RDI,qword ptr [RSP + 0x70]
MOV RDX,RAX
LEA RSI,[0x171561]
MOV AL,0x0
CALL 0x00107300
LAB_0012df5e:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012ba10
CMP EAX,0x0
JZ 0x0012e049
MOV dword ptr [RSP + 0xb4],0x0
LAB_0012df7f:
MOV RDI,qword ptr [RSP + 0xa8]
MOV EAX,dword ptr [RSP + 0xb4]
MOV dword ptr [RSP + 0x6c],EAX
CALL 0x0012bb50
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x6c]
CMP EAX,ECX
JGE 0x0012e047
MOV RDI,qword ptr [RSP + 0xa8]
MOV ESI,dword ptr [RSP + 0xb4]
LEA RDX,[RSP + 0xc4]
LEA RCX,[RSP + 0xc0]
LEA R8,[RSP + 0xbc]
LEA R9,[RSP + 0xb8]
CALL 0x0012bb80
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x60],RAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012bb60
MOV RDI,qword ptr [RSP + 0x60]
MOV RDX,RAX
MOV ECX,dword ptr [RSP + 0xc4]
MOV R8D,dword ptr [RSP + 0xc0]
MOV R9D,dword ptr [RSP + 0xbc]
MOV EAX,dword ptr [RSP + 0xb8]
LEA RSI,[0x17156d]
MOV dword ptr [RSP],EAX
MOV AL,0x0
CALL 0x00107300
MOV EAX,dword ptr [RSP + 0xb4]
ADD EAX,0x1
MOV dword ptr [RSP + 0xb4],EAX
JMP 0x0012df7f
LAB_0012e047:
JMP 0x0012e049
LAB_0012e049:
MOV dword ptr [RSP + 0xb4],0x0
LAB_0012e054:
MOV RDI,qword ptr [RSP + 0xa8]
MOV EAX,dword ptr [RSP + 0xb4]
MOV dword ptr [RSP + 0x5c],EAX
CALL 0x0012d0d0
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x5c]
CMP EAX,ECX
JGE 0x0012e17b
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x50],RAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d0f0
MOV RDI,qword ptr [RSP + 0x50]
MOV RDX,RAX
LEA RSI,[0x16de71]
MOV AL,0x0
CALL 0x00107300
MOV RDI,qword ptr [RSP + 0xa8]
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d1b0
CMP EAX,0x0
JZ 0x0012e100
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x48],RAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d230
MOV RDI,qword ptr [RSP + 0x48]
MOV EDX,EAX
LEA RSI,[0x16da1d]
MOV AL,0x0
CALL 0x00107300
LAB_0012e100:
MOV RDI,qword ptr [RSP + 0xa8]
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d1f0
CMP EAX,0x0
JZ 0x0012e14f
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x40],RAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d270
MOV RDI,qword ptr [RSP + 0x40]
MOV EDX,EAX
LEA RSI,[0x16de5c]
MOV AL,0x0
CALL 0x00107300
LAB_0012e14f:
MOV RDI,qword ptr [RSP + 0xc8]
LEA RSI,[0x1712bc]
MOV AL,0x0
CALL 0x00107300
MOV EAX,dword ptr [RSP + 0xb4]
ADD EAX,0x1
MOV dword ptr [RSP + 0xb4],EAX
JMP 0x0012e054
LAB_0012e17b:
MOV dword ptr [RSP + 0xb4],0x0
LAB_0012e186:
MOV RDI,qword ptr [RSP + 0xa8]
MOV EAX,dword ptr [RSP + 0xb4]
MOV dword ptr [RSP + 0x3c],EAX
CALL 0x0012d620
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x3c]
CMP EAX,ECX
JGE 0x0012e233
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x28],RAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d640
MOV RDI,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x30],RAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d6c0
MOV RDI,qword ptr [RSP + 0xa8]
MOV dword ptr [RSP + 0x38],EAX
MOV ESI,dword ptr [RSP + 0xb4]
CALL 0x0012d6e0
MOV RDI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
MOV ECX,dword ptr [RSP + 0x38]
MOV R8D,EAX
LEA RSI,[0x171587]
MOV AL,0x0
CALL 0x00107300
MOV EAX,dword ptr [RSP + 0xb4]
ADD EAX,0x1
MOV dword ptr [RSP + 0xb4],EAX
JMP 0x0012e186
LAB_0012e233:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012ba50
CMP EAX,0x0
JZ 0x0012e2eb
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0012bad0
MOV RDI,qword ptr [RSP + 0xa8]
MOV EDX,EAX
LEA RAX,[0x1712bd]
LEA RCX,[0x16ded4]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0012bab0
MOV RDI,qword ptr [RSP + 0xa8]
MOV EDX,EAX
LEA RAX,[0x1712bd]
LEA RCX,[0x16decb]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
CALL 0x0012baf0
MOV RDI,qword ptr [RSP + 0xa8]
MOV dword ptr [RSP + 0x24],EAX
CALL 0x0012bb10
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV R8D,dword ptr [RSP + 0x24]
MOV R9D,EAX
LEA RSI,[0x171597]
MOV AL,0x0
CALL 0x00107300
LAB_0012e2eb:
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x0012c8c0
CMP EAX,0x0
JZ 0x0012e313
MOV RDI,qword ptr [RSP + 0xc8]
LEA RSI,[0x1715ab]
MOV AL,0x0
CALL 0x00107300
LAB_0012e313:
ADD RSP,0xd8
RET
|
/* LefDefParser::defiPin::print(_IO_FILE*) const */
void __thiscall LefDefParser::defiPin::print(defiPin *this,_IO_FILE *param_1)
{
_IO_FILE *p_Var1;
int iVar2;
uint uVar3;
uint uVar4;
int8 uVar5;
int8 uVar6;
char *pcVar7;
char *pcVar8;
int local_24;
int local_20;
uint local_1c;
uint local_18;
uint local_14;
_IO_FILE *local_10;
defiPin *local_8;
local_10 = param_1;
local_8 = this;
uVar5 = pinName(this);
uVar6 = netName(this);
fprintf(param_1,"PINS \'%s\' on net \'%s\'\n",uVar5,uVar6);
iVar2 = hasDirection(this);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar5 = direction(this);
fprintf(p_Var1,"+ DIRECTION \'%s\'\n",uVar5);
}
iVar2 = hasNetExpr(this);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar5 = netExpr(this);
fprintf(p_Var1,"+ NETEXPR \'%s\'\n",uVar5);
}
iVar2 = hasSupplySensitivity(this);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar5 = supplySensitivity(this);
fprintf(p_Var1,"+ SUPPLYSENSITIVITY \'%s\'\n",uVar5);
}
iVar2 = hasGroundSensitivity(this);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar5 = groundSensitivity(this);
fprintf(p_Var1,"+ GROUNDSENSITIVITY \'%s\'\n",uVar5);
}
iVar2 = hasUse(this);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar5 = use(this);
fprintf(p_Var1,"+ USE \'%s\'\n",uVar5);
}
iVar2 = hasLayer(this);
if (iVar2 != 0) {
for (local_24 = 0; iVar2 = numLayer(this), local_24 < iVar2; local_24 = local_24 + 1) {
bounds(this,local_24,(int *)&local_14,(int *)&local_18,(int *)&local_1c,&local_20);
p_Var1 = local_10;
uVar5 = layer(this,local_24);
fprintf(p_Var1,"+ LAYER \'%s\' %d %d %d %d\n",uVar5,(ulong)local_14,(ulong)local_18,
(ulong)local_1c,local_20);
}
}
for (local_24 = 0; iVar2 = numPolygons(this), p_Var1 = local_10, local_24 < iVar2;
local_24 = local_24 + 1) {
uVar5 = polygonName(this,local_24);
fprintf(p_Var1,"+ POLYGON %s",uVar5);
iVar2 = hasPolygonSpacing(this,local_24);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar3 = polygonSpacing(this,local_24);
fprintf(p_Var1," SPACING %d",(ulong)uVar3);
}
iVar2 = hasPolygonDesignRuleWidth(this,local_24);
p_Var1 = local_10;
if (iVar2 != 0) {
uVar3 = polygonDesignRuleWidth(this,local_24);
fprintf(p_Var1," DESIGNRULEWIDTH %d",(ulong)uVar3);
}
fprintf(local_10,"\n");
}
for (local_24 = 0; iVar2 = numVias(this), p_Var1 = local_10, local_24 < iVar2;
local_24 = local_24 + 1) {
uVar5 = viaName(this,local_24);
uVar3 = viaPtX(this,local_24);
uVar4 = viaPtY(this,local_24);
fprintf(p_Var1,"+ VIA %s %d %d\n",uVar5,(ulong)uVar3,(ulong)uVar4);
}
iVar2 = hasPlacement(this);
p_Var1 = local_10;
if (iVar2 != 0) {
iVar2 = isFixed(this);
pcVar7 = "";
if (iVar2 != 0) {
pcVar7 = " FIXED";
}
iVar2 = isCover(this);
pcVar8 = "";
if (iVar2 != 0) {
pcVar8 = " COVER";
}
uVar3 = placementX(this);
uVar4 = placementY(this);
fprintf(p_Var1," PLACED %s%s%d %d\n",pcVar7,pcVar8,(ulong)uVar3,(ulong)uVar4);
}
iVar2 = hasSpecial(this);
if (iVar2 != 0) {
fprintf(local_10,"+ SPECIAL\n");
}
return;
}
| |
23,283 | testing::internal::(anonymous namespace)::UnitTestFilter::UnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/src/gtest.cc | explicit UnitTestFilter(const std::string& filter) {
// By design "" filter matches "" string.
std::vector<std::string> all_patterns;
SplitString(filter, ':', &all_patterns);
const auto exact_match_patterns_begin = std::partition(
all_patterns.begin(), all_patterns.end(), &IsGlobPattern);
glob_patterns_.reserve(static_cast<size_t>(
std::distance(all_patterns.begin(), exact_match_patterns_begin)));
std::move(all_patterns.begin(), exact_match_patterns_begin,
std::inserter(glob_patterns_, glob_patterns_.begin()));
std::move(
exact_match_patterns_begin, all_patterns.end(),
std::inserter(exact_match_patterns_, exact_match_patterns_.begin()));
} | O2 | cpp | testing::internal::(anonymous namespace)::UnitTestFilter::UnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x18(%rdi), %r14
leaq 0x48(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq $0x1, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
movl $0x3f800000, 0x38(%rdi) # imm = 0x3F800000
movups %xmm0, 0x40(%rdi)
movq %rsp, %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
pushq $0x3a
popq %rsi
movq %rax, %rdi
callq 0x13560
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xdd93(%rip), %rdx # 0x2542e
callq 0x2a69a
movq %rax, %r15
movq %rax, %rsi
subq (%rsp), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x2a606
movq (%rsp), %rdi
movq (%rbx), %rcx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2a788
leaq 0x28(%rbx), %rax
movq 0x8(%rsp), %rsi
movq (%rax), %rcx
movq %r15, %rdi
movq %r14, %rdx
callq 0x2a9ca
movq %rsp, %rdi
callq 0x265f6
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x176f3
movq %rax, %r15
movq %rsp, %rdi
callq 0x265f6
movq %r14, %rdi
callq 0x2aec0
movq %rbx, %rdi
callq 0x265f6
movq %r15, %rdi
callq 0x99d0
| _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 20h
mov rax, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
and qword ptr [rdi+10h], 0
lea r14, [rdi+18h]
lea rcx, [rdi+48h]
mov [rdi+18h], rcx
mov qword ptr [rdi+20h], 1
movups xmmword ptr [rdi+28h], xmm0
mov dword ptr [rdi+38h], 3F800000h
movups xmmword ptr [rdi+40h], xmm0
mov rdx, rsp
movaps xmmword ptr [rdx], xmm0
and qword ptr [rdx+10h], 0
push 3Ah ; ':'
pop rsi
mov rdi, rax
call _ZN7testing8internal11SplitStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcPSt6vectorIS6_SaIS6_EE; testing::internal::SplitString(std::string const&,char,std::vector<std::string> *)
mov rdi, [rsp+38h+var_38]
mov rsi, [rsp+38h+var_30]
lea rdx, _ZN7testing8internal12_GLOBAL__N_113IsGlobPatternERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::IsGlobPattern(std::string const&)
call _ZSt11__partitionIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEEPFbRKS7_EET_SH_SH_T0_St26bidirectional_iterator_tag; std::__partition<__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,bool (*)(std::string const&)>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,bool (*)(std::string const&),std::bidirectional_iterator_tag)
mov r15, rax
mov rsi, rax
sub rsi, [rsp+38h+var_38]
sar rsi, 5
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE7reserveEm; std::vector<std::string>::reserve(ulong)
mov rdi, [rsp+38h+var_38]
mov rcx, [rbx]
mov rsi, r15
mov rdx, rbx
call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt15insert_iteratorISt6vectorIS8_SaIS8_EEEEET0_T_SG_SF_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<std::string *,std::insert_iterator<std::vector<std::string>>>(std::string *,std::string *,std::insert_iterator<std::vector<std::string>>)
lea rax, [rbx+28h]
mov rsi, [rsp+38h+var_30]
mov rcx, [rax]
mov rdi, r15
mov rdx, r14
call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt15insert_iteratorISt13unordered_setIS8_St4hashIS8_ESt8equal_toIS8_ESaIS8_EEEEET0_T_SK_SJ_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<std::string *,std::insert_iterator<std::unordered_set<std::string>>>(std::string *,std::string *,std::insert_iterator<std::unordered_set<std::string>>)
mov rdi, rsp; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 20h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_176F3:
mov r15, rax
mov rdi, rsp; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov rdi, rbx; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r15
call __Unwind_Resume
| void testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(long long a1, long long a2)
{
long long v2; // r15
__int128 v3; // [rsp+0h] [rbp-38h] BYREF
long long v4; // [rsp+10h] [rbp-28h]
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
*(_QWORD *)(a1 + 24) = a1 + 72;
*(_QWORD *)(a1 + 32) = 1LL;
*(_OWORD *)(a1 + 40) = 0LL;
*(_DWORD *)(a1 + 56) = 1065353216;
*(_OWORD *)(a1 + 64) = 0LL;
v3 = 0LL;
v4 = 0LL;
testing::internal::SplitString(a2, 58, &v3);
v2 = std::__partition<__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,bool (*)(std::string const&)>(
v3,
*((_QWORD *)&v3 + 1),
testing::internal::`anonymous namespace'::IsGlobPattern);
std::vector<std::string>::reserve(a1, (v2 - (long long)v3) >> 5);
std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<std::string *,std::insert_iterator<std::vector<std::string>>>(
v3,
v2,
a1,
*(_QWORD *)a1);
std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<std::string *,std::insert_iterator<std::unordered_set<std::string>>>(
v2,
*((_QWORD *)&v3 + 1),
a1 + 24,
*(_QWORD *)(a1 + 40));
std::vector<std::string>::~vector(&v3);
}
| UnitTestFilter:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RAX,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
AND qword ptr [RDI + 0x10],0x0
LEA R14,[RDI + 0x18]
LEA RCX,[RDI + 0x48]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],0x1
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV dword ptr [RDI + 0x38],0x3f800000
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOV RDX,RSP
MOVAPS xmmword ptr [RDX],XMM0
AND qword ptr [RDX + 0x10],0x0
LAB_00117680:
PUSH 0x3a
POP RSI
MOV RDI,RAX
CALL 0x00113560
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
LAB_00117694:
LEA RDX,[0x12542e]
CALL 0x0012a69a
MOV R15,RAX
MOV RSI,RAX
SUB RSI,qword ptr [RSP]
SAR RSI,0x5
MOV RDI,RBX
CALL 0x0012a606
MOV RDI,qword ptr [RSP]
MOV RCX,qword ptr [RBX]
MOV RSI,R15
MOV RDX,RBX
CALL 0x0012a788
LEA RAX,[RBX + 0x28]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX]
MOV RDI,R15
MOV RDX,R14
CALL 0x0012a9ca
LAB_001176df:
MOV RDI,RSP
CALL 0x001265f6
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::(anonymous namespace)::UnitTestFilter::UnitTestFilter(std::__cxx11::string
const&) */
void __thiscall
testing::internal::(anonymous_namespace)::UnitTestFilter::UnitTestFilter
(UnitTestFilter *this,string *param_1)
{
__copy_move<true,false,std::random_access_iterator_tag> *p_Var1;
__copy_move<true,false,std::random_access_iterator_tag> *local_38;
int8 uStack_30;
int8 local_28;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(UnitTestFilter **)(this + 0x18) = this + 0x48;
*(int8 *)(this + 0x20) = 1;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int4 *)(this + 0x38) = 0x3f800000;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
local_38 = (__copy_move<true,false,std::random_access_iterator_tag> *)0x0;
uStack_30 = 0;
local_28 = 0;
/* try { // try from 00117680 to 0011768a has its CatchHandler @ 001176f1 */
SplitString(param_1,':',(vector *)&local_38);
/* try { // try from 00117694 to 001176de has its CatchHandler @ 001176f3 */
p_Var1 = (__copy_move<true,false,std::random_access_iterator_tag> *)
std::
__partition<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,bool(*)(std::__cxx11::string_const&)>
(local_38,uStack_30,IsGlobPattern);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::reserve
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this,
(long)p_Var1 - (long)local_38 >> 5);
std::__copy_move<true,false,std::random_access_iterator_tag>::
__copy_m<std::__cxx11::string*,std::insert_iterator<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
(local_38,p_Var1,this,*(int8 *)this);
std::__copy_move<true,false,std::random_access_iterator_tag>::
__copy_m<std::__cxx11::string*,std::insert_iterator<std::unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>>>>
(p_Var1,uStack_30,this + 0x18,*(int8 *)(this + 0x28));
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_38);
return;
}
| |
23,284 | SchemaConverter::check_errors() | monkey531[P]llama/common/json-schema-to-grammar.cpp | void check_errors() {
if (!_errors.empty()) {
throw std::runtime_error("JSON schema conversion failed:\n" + string_join(_errors, "\n"));
}
if (!_warnings.empty()) {
fprintf(stderr, "WARNING: JSON schema conversion was incomplete: %s\n", string_join(_warnings, "; ").c_str());
}
} | O3 | cpp | SchemaConverter::check_errors():
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r14
movq 0xc8(%rdi), %rax
cmpq 0xd0(%rdi), %rax
jne 0xbf581
movq 0xe0(%r14), %rax
cmpq 0xe8(%r14), %rax
jne 0xbf526
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x6ca63(%rip), %rax # 0x12bf90
movq (%rax), %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x35686(%rip), %rsi # 0xf4bc6
leaq 0x35681(%rip), %rdx # 0xf4bc8
leaq 0x8(%rsp), %rdi
callq 0x229de
addq $0xe0, %r14
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x730f5
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
movq %rbx, %rcx
callq 0x1c3a3
jmp 0xbf51b
movl $0x10, %edi
callq 0x1a430
movq %rax, %rbx
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2c853(%rip), %rsi # 0xebdf1
leaq 0x2c84d(%rip), %rdx # 0xebdf2
leaq 0x28(%rsp), %rdi
callq 0x229de
addq $0xc8, %r14
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %r14, %rsi
callq 0x730f5
leaq 0x355a3(%rip), %rsi # 0xf4b72
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x79a2d
movb $0x1, %bpl
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0x6c9f9(%rip), %rsi # 0x12bff0
movq 0x6c962(%rip), %rdx # 0x12bf60
movq %rbx, %rdi
callq 0x1aea0
movq %rax, %r14
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbf62c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xbf62c
movq %rax, %r14
movb $0x1, %bpl
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbf647
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xbf65e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
testb %bpl, %bpl
jne 0xbf684
jmp 0xbf6ad
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xbf684
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xbf684
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a650
jmp 0xbf6ad
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbf6ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xbf6ad
movq %rax, %r14
movq %r14, %rdi
callq 0x1af20
nop
| _ZN15SchemaConverter12check_errorsEv:
push rbp
push r15
push r14
push rbx
sub rsp, 68h
mov r14, rdi
mov rax, [rdi+0C8h]
cmp rax, [rdi+0D0h]
jnz short loc_BF581
mov rax, [r14+0E0h]
cmp rax, [r14+0E8h]
jnz short loc_BF526
loc_BF51B:
add rsp, 68h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_BF526:
mov rax, cs:stderr_ptr
mov r15, [rax]
lea rbx, [rsp+88h+var_70]
mov [rbx-10h], rbx
lea rsi, asc_F4BC6; "; "
lea rdx, asc_F4BC6+2; ""
lea rdi, [rsp+88h+var_80]
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)
add r14, 0E0h
lea rdi, [rsp+88h+var_40]
lea rdx, [rsp+88h+var_80]
mov rsi, r14
call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&)
lea rdi, [rsp+88h+var_40]
lea rdx, [rsp+88h+var_80]
mov rsi, r15
mov rcx, rbx
call _ZN15SchemaConverter12check_errorsEv_cold_1; SchemaConverter::check_errors(void) [clone]
jmp short loc_BF51B
loc_BF581:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+88h+var_50]
mov [r15-10h], r15
lea rsi, aErrorWhileHand_0+33h; "\n"
lea rdx, aErrorWhileHand_0+34h; ""
lea rdi, [rsp+88h+var_60]
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)
add r14, 0C8h
lea rdi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_60]
mov rsi, r14
call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&)
lea rsi, aJsonSchemaConv; "JSON schema conversion failed:\n"
lea rdi, [rsp+88h+var_40]
lea rdx, [rsp+88h+var_80]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+88h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
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 rax, [rsp+88h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BF62C
mov rsi, [rsp+88h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_BF62C
mov r14, rax
mov bpl, 1
loc_BF62C:
lea rax, [rsp+88h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BF647
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BF647:
mov rdi, [rsp+88h+var_60]; void *
cmp rdi, r15
jz short loc_BF65E
mov rsi, [rsp+88h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BF65E:
test bpl, bpl
jnz short loc_BF684
jmp short loc_BF6AD
mov r14, rax
mov rdi, [rsp+88h+var_60]; void *
cmp rdi, r15
jz short loc_BF684
mov rsi, [rsp+88h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_BF684
mov r14, rax
loc_BF684:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_BF6AD
mov r14, rax
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, rbx
jz short loc_BF6AD
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_BF6AD
mov r14, rax
loc_BF6AD:
mov rdi, r14
call __Unwind_Resume
| void SchemaConverter::check_errors(SchemaConverter *this)
{
long long v1; // r15
void *exception; // rbx
void *v3[2]; // [rsp+8h] [rbp-80h] BYREF
void *v4[2]; // [rsp+18h] [rbp-70h] BYREF
void *v5[2]; // [rsp+28h] [rbp-60h] BYREF
long long v6; // [rsp+38h] [rbp-50h] BYREF
const char *v7[2]; // [rsp+48h] [rbp-40h] BYREF
if ( *((_QWORD *)this + 25) != *((_QWORD *)this + 26) )
{
exception = __cxa_allocate_exception(0x10uLL);
v5[0] = &v6;
std::string::_M_construct<char const*>((long long)v5, "\n", (long long)"");
string_join((long long)v3, (long long *)this + 25, v5);
std::operator+<char>((long long)v7, (long long)"JSON schema conversion failed:\n", (long long)v3);
std::runtime_error::runtime_error(exception, v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( *((_QWORD *)this + 28) != *((_QWORD *)this + 29) )
{
v1 = stderr;
v3[0] = v4;
std::string::_M_construct<char const*>((long long)v3, "; ", (long long)"");
string_join((long long)v7, (long long *)this + 28, v3);
SchemaConverter::check_errors(v7, v1, v3, v4);
}
}
| check_errors:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0xc8]
CMP RAX,qword ptr [RDI + 0xd0]
JNZ 0x001bf581
MOV RAX,qword ptr [R14 + 0xe0]
CMP RAX,qword ptr [R14 + 0xe8]
JNZ 0x001bf526
LAB_001bf51b:
ADD RSP,0x68
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001bf526:
MOV RAX,qword ptr [0x0022bf90]
MOV R15,qword ptr [RAX]
LEA RBX,[RSP + 0x18]
MOV qword ptr [RBX + -0x10],RBX
LAB_001bf539:
LEA RSI,[0x1f4bc6]
LEA RDX,[0x1f4bc8]
LEA RDI,[RSP + 0x8]
CALL 0x001229de
LAB_001bf551:
ADD R14,0xe0
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RSI,R14
CALL 0x001730f5
LAB_001bf56a:
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RSI,R15
MOV RCX,RBX
CALL 0x0011c3a3
JMP 0x001bf51b
LAB_001bf581:
MOV EDI,0x10
CALL 0x0011a430
MOV RBX,RAX
LEA R15,[RSP + 0x38]
MOV qword ptr [R15 + -0x10],R15
LAB_001bf597:
LEA RSI,[0x1ebdf1]
LEA RDX,[0x1ebdf2]
LEA RDI,[RSP + 0x28]
CALL 0x001229de
LAB_001bf5af:
ADD R14,0xc8
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
MOV RSI,R14
CALL 0x001730f5
LAB_001bf5c8:
LEA RSI,[0x1f4b72]
LEA RDI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
CALL 0x00179a2d
MOV BPL,0x1
LAB_001bf5e1:
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,RBX
CALL 0x0011aea0
|
/* SchemaConverter::check_errors() */
void __thiscall SchemaConverter::check_errors(SchemaConverter *this)
{
runtime_error *this_00;
int1 *local_80 [2];
int1 local_70 [16];
int1 *local_60 [2];
int1 local_50 [16];
vector local_40 [32];
if (*(long *)(this + 200) == *(long *)(this + 0xd0)) {
if (*(long *)(this + 0xe0) != *(long *)(this + 0xe8)) {
local_80[0] = local_70;
/* try { // try from 001bf539 to 001bf550 has its CatchHandler @ 001bf6aa */
std::__cxx11::string::_M_construct<char_const*>(local_80,&DAT_001f4bc6,&DAT_001f4bc8);
/* try { // try from 001bf551 to 001bf569 has its CatchHandler @ 001bf68e */
string_join(local_40,(string *)(this + 0xe0));
check_errors();
}
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
local_60[0] = local_50;
/* try { // try from 001bf597 to 001bf5ae has its CatchHandler @ 001bf681 */
std::__cxx11::string::_M_construct<char_const*>(local_60,"\n","");
/* try { // try from 001bf5af to 001bf5c7 has its CatchHandler @ 001bf665 */
string_join((vector *)local_80,(string *)(this + 200));
/* try { // try from 001bf5c8 to 001bf5dd has its CatchHandler @ 001bf626 */
std::operator+((char *)local_40,(string *)"JSON schema conversion failed:\n");
/* try { // try from 001bf5e1 to 001bf605 has its CatchHandler @ 001bf606 */
std::runtime_error::runtime_error(this_00,(string *)local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
| |
23,285 | get_segment_footer | seiftnesse[P]memoryallocator/src/custom_alloc_util.c | uint32_t *get_segment_footer(segment_t *s) {
if (!s) return 0;
// Calculate the end of the segment's memory block
uintptr_t segment_end = (uintptr_t) (s) + (s->size * BLOCK_SIZE);
// Check for reasonable segment size
if (s->size <= 0 || s->size > MAX_REASONABLE_BLOCKS) {
HEAP_LOG("WARNING: Cannot get footer - segment %p has unreasonable size: %d\n", s, s->size);
return 0;
}
// Subtract the size of the guard value and return the pointer
uintptr_t footer_addr = segment_end - sizeof(uint32_t);
// Check that the footer is within the segment bounds
uintptr_t segment_start = (uintptr_t) (s);
if (footer_addr <= segment_start || footer_addr >= segment_end) {
HEAP_LOG("WARNING: Footer address %p is outside segment bounds [%p-%p]\n",
(void*)footer_addr, s, (void*)segment_end);
return 0;
}
HEAP_LOG("Footer guard address for segment %p: %p\n", s, (void*)footer_addr);
return (uint32_t *) (footer_addr);
} | O1 | c | get_segment_footer:
testq %rdi, %rdi
je 0x3c9f
movl 0x4(%rdi), %ecx
leal -0x4001(%rcx), %eax
cmpl $0xffffc000, %eax # imm = 0xFFFFC000
jae 0x3ca2
xorl %eax, %eax
retq
shlq $0xc, %rcx
leaq (%rcx,%rdi), %rax
addq $-0x4, %rax
addq %rdi, %rcx
xorl %edx, %edx
cmpq %rdi, %rax
cmovbeq %rdx, %rax
cmpq $0x4, %rcx
cmovbq %rdx, %rax
retq
| get_segment_footer:
test rdi, rdi
jz short loc_3C9F
mov ecx, [rdi+4]
lea eax, [rcx-4001h]
cmp eax, 0FFFFC000h
jnb short loc_3CA2
loc_3C9F:
xor eax, eax
retn
loc_3CA2:
shl rcx, 0Ch
lea rax, [rcx+rdi]
add rax, 0FFFFFFFFFFFFFFFCh
add rcx, rdi
xor edx, edx
cmp rax, rdi
cmovbe rax, rdx
cmp rcx, 4
cmovb rax, rdx
retn
| unsigned long long get_segment_footer(unsigned long long a1)
{
long long v1; // rcx
unsigned long long result; // rax
long long v3; // rcx
unsigned long long v4; // rcx
if ( !a1 )
return 0LL;
v1 = *(unsigned int *)(a1 + 4);
if ( (unsigned int)(v1 - 16385) < 0xFFFFC000 )
return 0LL;
v3 = v1 << 12;
result = v3 + a1 - 4;
v4 = a1 + v3;
if ( result <= a1 )
result = 0LL;
if ( v4 < 4 )
return 0LL;
return result;
}
| get_segment_footer:
TEST RDI,RDI
JZ 0x00103c9f
MOV ECX,dword ptr [RDI + 0x4]
LEA EAX,[RCX + -0x4001]
CMP EAX,0xffffc000
JNC 0x00103ca2
LAB_00103c9f:
XOR EAX,EAX
RET
LAB_00103ca2:
SHL RCX,0xc
LEA RAX,[RCX + RDI*0x1]
ADD RAX,-0x4
ADD RCX,RDI
XOR EDX,EDX
CMP RAX,RDI
CMOVBE RAX,RDX
CMP RCX,0x4
CMOVC RAX,RDX
RET
|
ulong get_segment_footer(ulong param_1)
{
ulong uVar1;
long lVar2;
if ((param_1 != 0) && (0xffffbfff < *(uint *)(param_1 + 4) - 0x4001)) {
lVar2 = (ulong)*(uint *)(param_1 + 4) * 0x1000;
uVar1 = (lVar2 + param_1) - 4;
if (uVar1 <= param_1) {
uVar1 = 0;
}
if (lVar2 + param_1 < 4) {
uVar1 = 0;
}
return uVar1;
}
return 0;
}
| |
23,286 | get_segment_footer | seiftnesse[P]memoryallocator/src/custom_alloc_util.c | uint32_t *get_segment_footer(segment_t *s) {
if (!s) return 0;
// Calculate the end of the segment's memory block
uintptr_t segment_end = (uintptr_t) (s) + (s->size * BLOCK_SIZE);
// Check for reasonable segment size
if (s->size <= 0 || s->size > MAX_REASONABLE_BLOCKS) {
HEAP_LOG("WARNING: Cannot get footer - segment %p has unreasonable size: %d\n", s, s->size);
return 0;
}
// Subtract the size of the guard value and return the pointer
uintptr_t footer_addr = segment_end - sizeof(uint32_t);
// Check that the footer is within the segment bounds
uintptr_t segment_start = (uintptr_t) (s);
if (footer_addr <= segment_start || footer_addr >= segment_end) {
HEAP_LOG("WARNING: Footer address %p is outside segment bounds [%p-%p]\n",
(void*)footer_addr, s, (void*)segment_end);
return 0;
}
HEAP_LOG("Footer guard address for segment %p: %p\n", s, (void*)footer_addr);
return (uint32_t *) (footer_addr);
} | O3 | c | get_segment_footer:
testq %rdi, %rdi
je 0x3c7c
movl 0x4(%rdi), %ecx
leal -0x4001(%rcx), %eax
cmpl $0xffffc000, %eax # imm = 0xFFFFC000
jae 0x3c7f
xorl %eax, %eax
retq
shlq $0xc, %rcx
leaq (%rcx,%rdi), %rax
addq $-0x4, %rax
addq %rdi, %rcx
xorl %edx, %edx
cmpq %rdi, %rax
cmovbeq %rdx, %rax
cmpq $0x4, %rcx
cmovbq %rdx, %rax
retq
| get_segment_footer:
test rdi, rdi
jz short loc_3C7C
mov ecx, [rdi+4]
lea eax, [rcx-4001h]
cmp eax, 0FFFFC000h
jnb short loc_3C7F
loc_3C7C:
xor eax, eax
retn
loc_3C7F:
shl rcx, 0Ch
lea rax, [rcx+rdi]
add rax, 0FFFFFFFFFFFFFFFCh
add rcx, rdi
xor edx, edx
cmp rax, rdi
cmovbe rax, rdx
cmp rcx, 4
cmovb rax, rdx
retn
| unsigned long long get_segment_footer(unsigned long long a1)
{
long long v1; // rcx
unsigned long long result; // rax
long long v3; // rcx
unsigned long long v4; // rcx
if ( !a1 )
return 0LL;
v1 = *(unsigned int *)(a1 + 4);
if ( (unsigned int)(v1 - 16385) < 0xFFFFC000 )
return 0LL;
v3 = v1 << 12;
result = v3 + a1 - 4;
v4 = a1 + v3;
if ( result <= a1 )
result = 0LL;
if ( v4 < 4 )
return 0LL;
return result;
}
| get_segment_footer:
TEST RDI,RDI
JZ 0x00103c7c
MOV ECX,dword ptr [RDI + 0x4]
LEA EAX,[RCX + -0x4001]
CMP EAX,0xffffc000
JNC 0x00103c7f
LAB_00103c7c:
XOR EAX,EAX
RET
LAB_00103c7f:
SHL RCX,0xc
LEA RAX,[RCX + RDI*0x1]
ADD RAX,-0x4
ADD RCX,RDI
XOR EDX,EDX
CMP RAX,RDI
CMOVBE RAX,RDX
CMP RCX,0x4
CMOVC RAX,RDX
RET
|
ulong get_segment_footer(ulong param_1)
{
ulong uVar1;
long lVar2;
if ((param_1 != 0) && (0xffffbfff < *(uint *)(param_1 + 4) - 0x4001)) {
lVar2 = (ulong)*(uint *)(param_1 + 4) * 0x1000;
uVar1 = (lVar2 + param_1) - 4;
if (uVar1 <= param_1) {
uVar1 = 0;
}
if (lVar2 + param_1 < 4) {
uVar1 = 0;
}
return uVar1;
}
return 0;
}
| |
23,287 | testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&, testing::internal::FilePath const&) | AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest-filepath.cc | FilePath FilePath::ConcatPaths(const FilePath& directory,
const FilePath& relative_path) {
if (directory.IsEmpty()) return relative_path;
const FilePath dir(directory.RemoveTrailingPathSeparator());
return FilePath(dir.string() + kPathSeparator + relative_path.string());
} | O3 | cpp | testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&, testing::internal::FilePath const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rdi, %rbx
cmpq $0x0, 0x8(%rsi)
je 0x563a4
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x564bc
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x18f38
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rsi
movl $0x1, %ecx
xorl %edx, %edx
movl $0x2f, %r8d
callq 0x44c52
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x252d6
leaq 0x38(%rsp), %r14
movq (%rax), %rcx
movq %rax, %rdx
addq $0x10, %rdx
cmpq %rdx, %rcx
je 0x563c2
movq %rcx, 0x28(%rsp)
movq (%rdx), %rsi
movq %rsi, 0x38(%rsp)
jmp 0x563cc
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x18f38
jmp 0x56468
movups (%rdx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rcx
movq 0x8(%rax), %rsi
movq %rdx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
cmpq %r14, %rcx
je 0x563f9
movq %rcx, (%rbx)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x56400
movups (%r14), %xmm0
movups %xmm0, (%rax)
movq %rsi, 0x8(%rbx)
movq %r14, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
movq %rbx, %rdi
callq 0x568d8
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x56436
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x11120
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5644d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11120
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x56468
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x11120
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x56479
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x56498
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x56498
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x564b3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x11120
movq %rbx, %rdi
callq 0x11760
nop
| _ZN7testing8internal8FilePath11ConcatPathsERKS1_S3_:
push r15
push r14
push r12
push rbx
sub rsp, 68h
mov r14, rdx
mov rbx, rdi
cmp qword ptr [rsi+8], 0
jz short loc_563A4
lea r15, [rsp+88h+var_40]
mov rdi, r15; this
call _ZNK7testing8internal8FilePath27RemoveTrailingPathSeparatorEv; testing::internal::FilePath::RemoveTrailingPathSeparator(void)
lea r12, [rsp+88h+var_70]
mov [r12-10h], r12
mov rsi, [r15]
mov rdx, [r15+8]
add rdx, rsi
lea rdi, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdi, [rsp+88h+var_80]
mov rsi, [rdi+8]
mov ecx, 1
xor edx, edx
mov r8d, 2Fh ; '/'
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc; std::string::_M_replace_aux(ulong,ulong,ulong,char)
mov rsi, [r14]
mov rdx, [r14+8]
lea rdi, [rsp+88h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r14, [rsp+88h+var_50]
mov rcx, [rax]
mov rdx, rax
add rdx, 10h
cmp rcx, rdx
jz short loc_563C2
mov [rsp+88h+var_60], rcx
mov rsi, [rdx]
mov [rsp+88h+var_50], rsi
jmp short loc_563CC
loc_563A4:
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
jmp loc_56468
loc_563C2:
movups xmm0, xmmword ptr [rdx]
movups xmmword ptr [r14], xmm0
mov rcx, r14
loc_563CC:
mov rsi, [rax+8]
mov [rax], rdx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rax, [rbx+10h]
mov [rbx], rax
cmp rcx, r14
jz short loc_563F9
mov [rbx], rcx
mov rax, [rsp+88h+var_50]
mov [rbx+10h], rax
jmp short loc_56400
loc_563F9:
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rax], xmm0
loc_56400:
mov [rbx+8], rsi
mov [rsp+88h+var_60], r14
mov [rsp+88h+var_58], 0
mov byte ptr [rsp+88h+var_50], 0
mov rdi, rbx; this
call _ZN7testing8internal8FilePath9NormalizeEv; testing::internal::FilePath::Normalize(void)
mov rdi, [rsp+88h+var_60]; void *
cmp rdi, r14
jz short loc_56436
mov rsi, [rsp+88h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_56436:
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r12
jz short loc_5644D
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5644D:
lea rax, [rsp+88h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_56468
mov rsi, [rsp+88h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_56468:
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_56479:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_56498
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_56498
mov rbx, rax
loc_56498:
lea rax, [rsp+arg_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_564B3
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_564B3:
mov rdi, rbx
call __Unwind_Resume
| testing::internal::FilePath * testing::internal::FilePath::ConcatPaths(
testing::internal::FilePath *this,
const testing::internal::FilePath *a2,
const testing::internal::FilePath *a3)
{
_QWORD *v4; // rax
__int128 *v5; // rcx
__int128 *v6; // rdx
long long v7; // rsi
void *v9[2]; // [rsp+8h] [rbp-80h] BYREF
_QWORD v10[2]; // [rsp+18h] [rbp-70h] BYREF
void *v11; // [rsp+28h] [rbp-60h]
long long v12; // [rsp+30h] [rbp-58h]
__int128 v13; // [rsp+38h] [rbp-50h] BYREF
void *v14[2]; // [rsp+48h] [rbp-40h] BYREF
long long v15; // [rsp+58h] [rbp-30h] BYREF
if ( *((_QWORD *)a2 + 1) )
{
testing::internal::FilePath::RemoveTrailingPathSeparator((testing::internal::FilePath *)v14);
v9[0] = v10;
std::string::_M_construct<char *>((long long)v9, (_BYTE *)v14[0], (long long)v14[0] + (unsigned long long)v14[1]);
std::string::_M_replace_aux(v9, (long long)v9[1], 0LL, 1uLL, 0x2Fu);
v4 = std::string::_M_append(v9, *(_BYTE **)a3, *((_QWORD *)a3 + 1));
v5 = (__int128 *)*v4;
v6 = (__int128 *)(v4 + 2);
if ( (_QWORD *)*v4 == v4 + 2 )
{
v13 = *v6;
v5 = &v13;
}
else
{
v11 = (void *)*v4;
*(_QWORD *)&v13 = *(_QWORD *)v6;
}
v7 = v4[1];
*v4 = v6;
v4[1] = 0LL;
*((_BYTE *)v4 + 16) = 0;
*(_QWORD *)this = (char *)this + 16;
if ( v5 == &v13 )
{
*((_OWORD *)this + 1) = v13;
}
else
{
*(_QWORD *)this = v5;
*((_QWORD *)this + 2) = v13;
}
*((_QWORD *)this + 1) = v7;
v11 = &v13;
v12 = 0LL;
LOBYTE(v13) = 0;
testing::internal::FilePath::Normalize(this);
if ( v11 != &v13 )
operator delete(v11, v13 + 1);
if ( v9[0] != v10 )
operator delete(v9[0], v10[0] + 1LL);
if ( v14[0] != &v15 )
operator delete(v14[0], v15 + 1);
}
else
{
*(_QWORD *)this = (char *)this + 16;
std::string::_M_construct<char *>((long long)this, *(_BYTE **)a3, *(_QWORD *)a3 + *((_QWORD *)a3 + 1));
}
return this;
}
| ConcatPaths:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV RBX,RDI
CMP qword ptr [RSI + 0x8],0x0
JZ 0x001563a4
LEA R15,[RSP + 0x48]
MOV RDI,R15
CALL 0x001564bc
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
ADD RDX,RSI
LAB_0015634b:
LEA RDI,[RSP + 0x8]
CALL 0x00118f38
LEA RDI,[RSP + 0x8]
MOV RSI,qword ptr [RDI + 0x8]
LAB_0015635e:
MOV ECX,0x1
XOR EDX,EDX
MOV R8D,0x2f
CALL 0x00144c52
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_00156377:
LEA RDI,[RSP + 0x8]
CALL 0x001252d6
LAB_00156381:
LEA R14,[RSP + 0x38]
MOV RCX,qword ptr [RAX]
MOV RDX,RAX
ADD RDX,0x10
CMP RCX,RDX
JZ 0x001563c2
MOV qword ptr [RSP + 0x28],RCX
MOV RSI,qword ptr [RDX]
MOV qword ptr [RSP + 0x38],RSI
JMP 0x001563cc
LAB_001563a4:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
MOV RDI,RBX
CALL 0x00118f38
JMP 0x00156468
LAB_001563c2:
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [R14],XMM0
MOV RCX,R14
LAB_001563cc:
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
CMP RCX,R14
JZ 0x001563f9
MOV qword ptr [RBX],RCX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RBX + 0x10],RAX
JMP 0x00156400
LAB_001563f9:
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RAX],XMM0
LAB_00156400:
MOV qword ptr [RBX + 0x8],RSI
MOV qword ptr [RSP + 0x28],R14
MOV qword ptr [RSP + 0x30],0x0
MOV byte ptr [RSP + 0x38],0x0
MOV RDI,RBX
CALL 0x001568d8
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R14
JZ 0x00156436
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00111120
LAB_00156436:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0015644d
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00111120
LAB_0015644d:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00156468
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x00111120
LAB_00156468:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R14
POP R15
RET
|
/* testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&,
testing::internal::FilePath const&) */
FilePath * __thiscall
testing::internal::FilePath::ConcatPaths(FilePath *this,FilePath *param_1,FilePath *param_2)
{
long lVar1;
long *plVar2;
ulong *puVar3;
ulong *puVar4;
long *local_80;
ulong local_78;
long local_70 [2];
ulong *local_60;
int8 local_58;
ulong local_50;
long lStack_48;
long *local_40;
long local_38;
long local_30 [2];
if (*(long *)(param_1 + 8) == 0) {
*(FilePath **)this = this + 0x10;
std::__cxx11::string::_M_construct<char*>
(this,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
}
else {
RemoveTrailingPathSeparator();
/* try { // try from 0015634b to 00156354 has its CatchHandler @ 00156495 */
local_80 = local_70;
std::__cxx11::string::_M_construct<char*>(&local_80,local_40,local_38 + (long)local_40);
/* try { // try from 0015635e to 0015636f has its CatchHandler @ 00156479 */
std::__cxx11::string::_M_replace_aux((string *)&local_80,local_78,0,1,'/');
/* try { // try from 00156377 to 00156380 has its CatchHandler @ 00156477 */
plVar2 = (long *)std::__cxx11::string::_M_append
((string *)&local_80,*(char **)param_2,*(ulong *)(param_2 + 8));
puVar4 = (ulong *)(plVar2 + 2);
if ((ulong *)*plVar2 == puVar4) {
local_50 = *puVar4;
lStack_48 = plVar2[3];
puVar3 = &local_50;
}
else {
local_50 = *puVar4;
puVar3 = (ulong *)*plVar2;
}
lVar1 = plVar2[1];
*plVar2 = (long)puVar4;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
*(FilePath **)this = this + 0x10;
if (puVar3 == &local_50) {
*(ulong *)(this + 0x10) = local_50;
*(long *)(this + 0x18) = lStack_48;
}
else {
*(ulong **)this = puVar3;
*(ulong *)(this + 0x10) = local_50;
}
*(long *)(this + 8) = lVar1;
local_58 = 0;
local_50 = local_50 & 0xffffffffffffff00;
local_60 = &local_50;
Normalize(this);
if (local_60 != &local_50) {
operator_delete(local_60,local_50 + 1);
}
if (local_80 != local_70) {
operator_delete(local_80,local_70[0] + 1);
}
if (local_40 != local_30) {
operator_delete(local_40,local_30[0] + 1);
}
}
return this;
}
| |
23,288 | my_strnxfrm_czech | eloqsql/strings/ctype-czech.c | static size_t
my_strnxfrm_czech(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p, * store;
int pass = 0;
size_t totlen = 0;
p = src; store = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
do
{
int add= (1 << pass) & flags; /* If this level is needed */
NEXT_CMP_VALUE(src, p, store, pass, value, (int)srclen);
if (add)
ADD_TO_RESULT(dest, len, totlen, value);
}
while (value);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, ' ', len - totlen);
totlen= len;
}
return totlen;
} | O0 | c | my_strnxfrm_czech:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x4c(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movl 0x10(%rbp), %eax
andl $0xf, %eax
cmpl $0x0, %eax
jne 0x3dd88
movl 0x10(%rbp), %eax
orl $0xf, %eax
movl %eax, 0x10(%rbp)
jmp 0x3dd8a
movl -0x4c(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
andl 0x10(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jl 0x3ddfd
movl $0x0, -0x34(%rbp)
cmpl $0x3, -0x4c(%rbp)
je 0x3ddf8
movl -0x4c(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x4c(%rbp)
cmpl $0x0, %eax
jne 0x3dddb
movq -0x48(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x3dde6
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0x1, -0x34(%rbp)
jmp 0x3e057
movslq -0x4c(%rbp), %rcx
leaq 0x18e868(%rip), %rax # 0x1cc670
movq (%rax,%rcx,8), %rax
movq -0x40(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jne 0x3de31
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x3dd9a
cmpl $0x2, -0x34(%rbp)
jne 0x3df3d
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rax, %rcx
movq -0x30(%rbp), %rax
movslq %eax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x99(%rbp)
jge 0x3de90
movslq -0x4c(%rbp), %rcx
leaq 0x18e7fb(%rip), %rax # 0x1cc670
movq (%rax,%rcx,8), %rax
movq -0x70(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x2, %eax
sete %al
movb %al, -0x99(%rbp)
movb -0x99(%rbp), %al
testb $0x1, %al
jne 0x3de9c
jmp 0x3deaa
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x3de4b
movq -0x70(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jl 0x3dec9
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpl $0x2, -0x4c(%rbp)
jg 0x3deee
movq -0x70(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jge 0x3deee
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jl 0x3df0a
jmp 0x3dd9a
cmpl $0x1, -0x4c(%rbp)
jle 0x3df15
jmp 0x3e057
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x1, %eax
subl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x3e057
cmpl $0xff, -0x34(%rbp)
jne 0x3e04b
movl $0x0, -0x74(%rbp)
cmpl $0x50, -0x74(%rbp)
jge 0x3e049
movslq -0x74(%rbp), %rcx
leaq 0x18e72a(%rip), %rax # 0x1cc690
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x0, -0x8c(%rbp)
movq -0x80(%rbp), %rax
movslq -0x8c(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x3dff6
movq -0x88(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jge 0x3dfd1
movq -0x88(%rbp), %rax
movsbl (%rax), %eax
movq -0x80(%rbp), %rcx
movslq -0x8c(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x3dfd3
jmp 0x3dff6
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x3df89
movq -0x80(%rbp), %rax
movslq -0x8c(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
jne 0x3e039
movslq -0x74(%rbp), %rcx
leaq 0x18e67e(%rip), %rax # 0x1cc690
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movslq -0x4c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x34(%rbp)
movq -0x88(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x3e049
jmp 0x3e03b
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x3df51
jmp 0x3e04b
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x5c(%rbp)
je 0x3e084
movq -0x58(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x3e082
movl -0x34(%rbp), %eax
movb %al, %dl
movq -0x10(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x58(%rbp)
movb %dl, (%rax,%rcx)
jmp 0x3e084
jmp 0x3e086
cmpl $0x0, -0x34(%rbp)
jne 0x3dd8a
movl 0x10(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x3e0c9
movq -0x18(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0x3e0c9
movq -0x10(%rbp), %rdi
addq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rdx
subq -0x58(%rbp), %rdx
movl $0x20, %esi
callq 0x241c0
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strnxfrm_czech:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov [rbp+var_4C], 0
mov [rbp+var_58], 0
mov rax, [rbp+var_28]
mov [rbp+var_40], rax
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
mov eax, [rbp+arg_0]
and eax, 0Fh
cmp eax, 0
jnz short loc_3DD88
mov eax, [rbp+arg_0]
or eax, 0Fh
mov [rbp+arg_0], eax
loc_3DD88:
jmp short $+2
loc_3DD8A:
mov ecx, [rbp+var_4C]
mov eax, 1
shl eax, cl
and eax, [rbp+arg_0]
mov [rbp+var_5C], eax
loc_3DD9A:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jl short loc_3DDFD
mov [rbp+var_34], 0
cmp [rbp+var_4C], 3
jz short loc_3DDF8
mov eax, [rbp+var_4C]
mov ecx, eax
add ecx, 1
mov [rbp+var_4C], ecx
cmp eax, 0
jnz short loc_3DDDB
mov rax, [rbp+var_48]
mov [rbp+var_98], rax
jmp short loc_3DDE6
loc_3DDDB:
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
loc_3DDE6:
mov rax, [rbp+var_98]
mov [rbp+var_40], rax
mov [rbp+var_34], 1
loc_3DDF8:
jmp loc_3E057
loc_3DDFD:
movsxd rcx, [rbp+var_4C]
lea rax, CZ_SORT_TABLE
mov rax, [rax+rcx*8]
mov rcx, [rbp+var_40]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_34], eax
cmp [rbp+var_34], 0
jnz short loc_3DE31
mov rax, [rbp+var_40]
add rax, 1
mov [rbp+var_40], rax
jmp loc_3DD9A
loc_3DE31:
cmp [rbp+var_34], 2
jnz loc_3DF3D
mov rax, [rbp+var_40]
add rax, 1
mov [rbp+var_40], rax
mov [rbp+var_70], rax
loc_3DE4B:
mov rcx, [rbp+var_70]
mov rax, [rbp+var_28]
sub rcx, rax
mov rax, [rbp+var_30]
movsxd rdx, eax
xor eax, eax
cmp rcx, rdx
mov [rbp+var_99], al
jge short loc_3DE90
movsxd rcx, [rbp+var_4C]
lea rax, CZ_SORT_TABLE
mov rax, [rax+rcx*8]
mov rcx, [rbp+var_70]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
cmp eax, 2
setz al
mov [rbp+var_99], al
loc_3DE90:
mov al, [rbp+var_99]
test al, 1
jnz short loc_3DE9C
jmp short loc_3DEAA
loc_3DE9C:
mov rax, [rbp+var_70]
add rax, 1
mov [rbp+var_70], rax
jmp short loc_3DE4B
loc_3DEAA:
mov rax, [rbp+var_70]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jl short loc_3DEC9
mov rax, [rbp+var_70]
mov [rbp+var_40], rax
loc_3DEC9:
cmp [rbp+var_4C], 2
jg short loc_3DEEE
mov rax, [rbp+var_70]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jge short loc_3DEEE
mov rax, [rbp+var_70]
mov [rbp+var_40], rax
loc_3DEEE:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jl short loc_3DF0A
jmp loc_3DD9A
loc_3DF0A:
cmp [rbp+var_4C], 1
jle short loc_3DF15
jmp loc_3E057
loc_3DF15:
mov rax, [rbp+var_40]
mov [rbp+var_68], rax
mov eax, 1
sub eax, [rbp+var_4C]
mov [rbp+var_4C], eax
mov rax, [rbp+var_48]
mov [rbp+var_40], rax
mov rax, [rbp+var_68]
mov [rbp+var_48], rax
jmp loc_3E057
loc_3DF3D:
cmp [rbp+var_34], 0FFh
jnz loc_3E04B
mov [rbp+var_74], 0
loc_3DF51:
cmp [rbp+var_74], 50h ; 'P'
jge loc_3E049
movsxd rcx, [rbp+var_74]
lea rax, doubles
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_80], rax
mov rax, [rbp+var_40]
mov [rbp+var_88], rax
mov [rbp+var_8C], 0
loc_3DF89:
mov rax, [rbp+var_80]
movsxd rcx, [rbp+var_8C]
cmp byte ptr [rax+rcx], 0
jz short loc_3DFF6
mov rax, [rbp+var_88]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jge short loc_3DFD1
mov rax, [rbp+var_88]
movsx eax, byte ptr [rax]
mov rcx, [rbp+var_80]
movsxd rdx, [rbp+var_8C]
movsx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_3DFD3
loc_3DFD1:
jmp short loc_3DFF6
loc_3DFD3:
mov eax, [rbp+var_8C]
add eax, 1
mov [rbp+var_8C], eax
mov rax, [rbp+var_88]
add rax, 1
mov [rbp+var_88], rax
jmp short loc_3DF89
loc_3DFF6:
mov rax, [rbp+var_80]
movsxd rcx, [rbp+var_8C]
cmp byte ptr [rax+rcx], 0
jnz short loc_3E039
movsxd rcx, [rbp+var_74]
lea rax, doubles
shl rcx, 4
add rax, rcx
mov rax, [rax+8]
movsxd rcx, [rbp+var_4C]
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_34], eax
mov rax, [rbp+var_88]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_40], rax
jmp short loc_3E049
loc_3E039:
jmp short $+2
loc_3E03B:
mov eax, [rbp+var_74]
add eax, 1
mov [rbp+var_74], eax
jmp loc_3DF51
loc_3E049:
jmp short $+2
loc_3E04B:
mov rax, [rbp+var_40]
add rax, 1
mov [rbp+var_40], rax
loc_3E057:
cmp [rbp+var_5C], 0
jz short loc_3E084
mov rax, [rbp+var_58]
cmp rax, [rbp+var_18]
jnb short loc_3E082
mov eax, [rbp+var_34]
mov dl, al
mov rax, [rbp+var_10]
mov rcx, [rbp+var_58]
mov rsi, rcx
add rsi, 1
mov [rbp+var_58], rsi
mov [rax+rcx], dl
loc_3E082:
jmp short $+2
loc_3E084:
jmp short $+2
loc_3E086:
cmp [rbp+var_34], 0
jnz loc_3DD8A
mov eax, [rbp+arg_0]
and eax, 80h
cmp eax, 0
jz short loc_3E0C9
mov rax, [rbp+var_18]
cmp rax, [rbp+var_58]
jbe short loc_3E0C9
mov rdi, [rbp+var_10]
add rdi, [rbp+var_58]
mov rdx, [rbp+var_18]
sub rdx, [rbp+var_58]
mov esi, 20h ; ' '
call _memset
mov rax, [rbp+var_18]
mov [rbp+var_58], rax
loc_3E0C9:
mov rax, [rbp+var_58]
add rsp, 0A0h
pop rbp
retn
| unsigned long long my_strnxfrm_czech(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
char *a5,
int a6,
int a7)
{
long long v8; // rcx
long long v9; // rcx
bool v11; // [rsp+7h] [rbp-99h]
char *v12; // [rsp+8h] [rbp-98h]
int k; // [rsp+14h] [rbp-8Ch]
char *v14; // [rsp+18h] [rbp-88h]
long long v15; // [rsp+20h] [rbp-80h]
int j; // [rsp+2Ch] [rbp-74h]
unsigned __int8 *i; // [rsp+30h] [rbp-70h]
char *v18; // [rsp+38h] [rbp-68h]
int v19; // [rsp+44h] [rbp-5Ch]
unsigned long long v20; // [rsp+48h] [rbp-58h]
int v21; // [rsp+54h] [rbp-4Ch]
char *v22; // [rsp+58h] [rbp-48h]
char *v23; // [rsp+60h] [rbp-40h]
int v24; // [rsp+6Ch] [rbp-34h]
v21 = 0;
v20 = 0LL;
v23 = a5;
v22 = a5;
if ( (a7 & 0xF) == 0 )
a7 |= 0xFu;
do
{
v19 = a7 & (1 << v21);
while ( 1 )
{
while ( 1 )
{
if ( v23 - a5 >= a6 )
{
v24 = 0;
if ( v21 != 3 )
{
if ( v21++ )
v12 = a5;
else
v12 = v22;
v23 = v12;
v24 = 1;
}
goto LABEL_40;
}
v8 = (unsigned __int8)*v23;
v24 = *((unsigned __int8 *)*(&CZ_SORT_TABLE + v21) + v8);
if ( *((_BYTE *)*(&CZ_SORT_TABLE + v21) + v8) )
break;
++v23;
}
if ( v24 != 2 )
break;
for ( i = (unsigned __int8 *)++v23; ; ++i )
{
v11 = 0;
if ( i - (unsigned __int8 *)a5 < a6 )
v11 = *((_BYTE *)*(&CZ_SORT_TABLE + v21) + *i) == 2;
if ( !v11 )
break;
}
if ( i - (unsigned __int8 *)a5 >= a6 )
v23 = (char *)i;
if ( v21 <= 2 && i - (unsigned __int8 *)a5 < a6 )
v23 = (char *)i;
if ( v23 - a5 < a6 )
{
if ( v21 <= 1 )
{
v18 = v23;
v21 = 1 - v21;
v23 = v22;
v22 = v18;
}
goto LABEL_40;
}
}
if ( v24 == 255 )
{
for ( j = 0; j < 80; ++j )
{
v15 = (long long)*(&doubles + 2 * j);
v14 = v23;
for ( k = 0; *(_BYTE *)(v15 + k) && v14 - a5 < a6 && *v14 == *(char *)(v15 + k); ++k )
++v14;
if ( !*(_BYTE *)(v15 + k) )
{
v24 = *((unsigned __int8 *)*(&doubles + 2 * j + 1) + v21);
v23 = v14 - 1;
break;
}
}
}
++v23;
LABEL_40:
if ( v19 && v20 < a3 )
{
v9 = v20++;
*(_BYTE *)(a2 + v9) = v24;
}
}
while ( v24 );
if ( (a7 & 0x80) != 0 && a3 > v20 )
{
memset(v20 + a2, 32LL, a3 - v20);
return a3;
}
return v20;
}
| my_strnxfrm_czech:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV dword ptr [RBP + -0x4c],0x0
MOV qword ptr [RBP + -0x58],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0xf
CMP EAX,0x0
JNZ 0x0013dd88
MOV EAX,dword ptr [RBP + 0x10]
OR EAX,0xf
MOV dword ptr [RBP + 0x10],EAX
LAB_0013dd88:
JMP 0x0013dd8a
LAB_0013dd8a:
MOV ECX,dword ptr [RBP + -0x4c]
MOV EAX,0x1
SHL EAX,CL
AND EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBP + -0x5c],EAX
LAB_0013dd9a:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JL 0x0013ddfd
MOV dword ptr [RBP + -0x34],0x0
CMP dword ptr [RBP + -0x4c],0x3
JZ 0x0013ddf8
MOV EAX,dword ptr [RBP + -0x4c]
MOV ECX,EAX
ADD ECX,0x1
MOV dword ptr [RBP + -0x4c],ECX
CMP EAX,0x0
JNZ 0x0013dddb
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0013dde6
LAB_0013dddb:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
LAB_0013dde6:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x34],0x1
LAB_0013ddf8:
JMP 0x0013e057
LAB_0013ddfd:
MOVSXD RCX,dword ptr [RBP + -0x4c]
LEA RAX,[0x2cc670]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV RCX,qword ptr [RBP + -0x40]
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x34],EAX
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x0013de31
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0013dd9a
LAB_0013de31:
CMP dword ptr [RBP + -0x34],0x2
JNZ 0x0013df3d
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x70],RAX
LAB_0013de4b:
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x28]
SUB RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RDX,EAX
XOR EAX,EAX
CMP RCX,RDX
MOV byte ptr [RBP + -0x99],AL
JGE 0x0013de90
MOVSXD RCX,dword ptr [RBP + -0x4c]
LEA RAX,[0x2cc670]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV RCX,qword ptr [RBP + -0x70]
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x2
SETZ AL
MOV byte ptr [RBP + -0x99],AL
LAB_0013de90:
MOV AL,byte ptr [RBP + -0x99]
TEST AL,0x1
JNZ 0x0013de9c
JMP 0x0013deaa
LAB_0013de9c:
MOV RAX,qword ptr [RBP + -0x70]
ADD RAX,0x1
MOV qword ptr [RBP + -0x70],RAX
JMP 0x0013de4b
LAB_0013deaa:
MOV RAX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JL 0x0013dec9
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x40],RAX
LAB_0013dec9:
CMP dword ptr [RBP + -0x4c],0x2
JG 0x0013deee
MOV RAX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JGE 0x0013deee
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x40],RAX
LAB_0013deee:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JL 0x0013df0a
JMP 0x0013dd9a
LAB_0013df0a:
CMP dword ptr [RBP + -0x4c],0x1
JLE 0x0013df15
JMP 0x0013e057
LAB_0013df15:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x68],RAX
MOV EAX,0x1
SUB EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4c],EAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0013e057
LAB_0013df3d:
CMP dword ptr [RBP + -0x34],0xff
JNZ 0x0013e04b
MOV dword ptr [RBP + -0x74],0x0
LAB_0013df51:
CMP dword ptr [RBP + -0x74],0x50
JGE 0x0013e049
MOVSXD RCX,dword ptr [RBP + -0x74]
LEA RAX,[0x2cc690]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x88],RAX
MOV dword ptr [RBP + -0x8c],0x0
LAB_0013df89:
MOV RAX,qword ptr [RBP + -0x80]
MOVSXD RCX,dword ptr [RBP + -0x8c]
CMP byte ptr [RAX + RCX*0x1],0x0
JZ 0x0013dff6
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JGE 0x0013dfd1
MOV RAX,qword ptr [RBP + -0x88]
MOVSX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x80]
MOVSXD RDX,dword ptr [RBP + -0x8c]
MOVSX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x0013dfd3
LAB_0013dfd1:
JMP 0x0013dff6
LAB_0013dfd3:
MOV EAX,dword ptr [RBP + -0x8c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x8c],EAX
MOV RAX,qword ptr [RBP + -0x88]
ADD RAX,0x1
MOV qword ptr [RBP + -0x88],RAX
JMP 0x0013df89
LAB_0013dff6:
MOV RAX,qword ptr [RBP + -0x80]
MOVSXD RCX,dword ptr [RBP + -0x8c]
CMP byte ptr [RAX + RCX*0x1],0x0
JNZ 0x0013e039
MOVSXD RCX,dword ptr [RBP + -0x74]
LEA RAX,[0x2cc690]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RBP + -0x4c]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x88]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0013e049
LAB_0013e039:
JMP 0x0013e03b
LAB_0013e03b:
MOV EAX,dword ptr [RBP + -0x74]
ADD EAX,0x1
MOV dword ptr [RBP + -0x74],EAX
JMP 0x0013df51
LAB_0013e049:
JMP 0x0013e04b
LAB_0013e04b:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
LAB_0013e057:
CMP dword ptr [RBP + -0x5c],0x0
JZ 0x0013e084
MOV RAX,qword ptr [RBP + -0x58]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0013e082
MOV EAX,dword ptr [RBP + -0x34]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x58]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RBP + -0x58],RSI
MOV byte ptr [RAX + RCX*0x1],DL
LAB_0013e082:
JMP 0x0013e084
LAB_0013e084:
JMP 0x0013e086
LAB_0013e086:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x0013dd8a
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x80
CMP EAX,0x0
JZ 0x0013e0c9
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x0013e0c9
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x18]
SUB RDX,qword ptr [RBP + -0x58]
MOV ESI,0x20
CALL 0x001241c0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x58],RAX
LAB_0013e0c9:
MOV RAX,qword ptr [RBP + -0x58]
ADD RSP,0xa0
POP RBP
RET
|
ulong my_strnxfrm_czech(int8 param_1,long param_2,ulong param_3,int8 param_4,
byte *param_5,int param_6,uint param_7)
{
char cVar1;
long lVar2;
byte *pbVar3;
byte bVar4;
bool bVar5;
byte *local_a0;
int local_94;
byte *local_90;
int local_7c;
byte *local_78;
ulong local_60;
int local_54;
byte *local_50;
byte *local_48;
local_54 = 0;
local_60 = 0;
local_50 = param_5;
local_48 = param_5;
if ((param_7 & 0xf) == 0) {
param_7 = param_7 | 0xf;
}
LAB_0013dd8a:
bVar4 = (byte)local_54;
do {
while( true ) {
if ((long)param_6 <= (long)local_48 - (long)param_5) {
cVar1 = '\0';
if (local_54 != 3) {
local_a0 = param_5;
if (local_54 == 0) {
local_a0 = local_50;
}
local_48 = local_a0;
cVar1 = '\x01';
local_54 = local_54 + 1;
}
goto LAB_0013e057;
}
cVar1 = (&CZ_SORT_TABLE)[local_54][*local_48];
if (cVar1 != '\0') break;
local_48 = local_48 + 1;
}
if (cVar1 != '\x02') {
if (cVar1 != -1) goto LAB_0013e04b;
local_7c = 0;
goto LAB_0013df51;
}
local_48 = local_48 + 1;
local_78 = local_48;
while( true ) {
bVar5 = false;
if ((long)local_78 - (long)param_5 < (long)param_6) {
bVar5 = (&CZ_SORT_TABLE)[local_54][*local_78] == '\x02';
}
if (!bVar5) break;
local_78 = local_78 + 1;
}
if ((long)param_6 <= (long)local_78 - (long)param_5) {
local_48 = local_78;
}
if ((local_54 < 3) && ((long)local_78 - (long)param_5 < (long)param_6)) {
local_48 = local_78;
}
pbVar3 = local_48;
} while ((long)param_6 <= (long)local_48 - (long)param_5);
if (local_54 < 2) {
local_48 = local_50;
local_50 = pbVar3;
local_54 = 1 - local_54;
}
goto LAB_0013e057;
LAB_0013df51:
if (0x4f < local_7c) goto LAB_0013e04b;
lVar2 = *(long *)(doubles + (long)local_7c * 0x10);
local_94 = 0;
for (local_90 = local_48;
((*(char *)(lVar2 + local_94) != '\0' && ((long)local_90 - (long)param_5 < (long)param_6)) &&
(*local_90 == *(byte *)(lVar2 + local_94))); local_90 = local_90 + 1) {
local_94 = local_94 + 1;
}
if (*(char *)(lVar2 + local_94) == '\0') {
cVar1 = *(char *)(*(long *)(doubles + (long)local_7c * 0x10 + 8) + (long)local_54);
local_48 = local_90 + -1;
goto LAB_0013e04b;
}
local_7c = local_7c + 1;
goto LAB_0013df51;
LAB_0013e04b:
local_48 = local_48 + 1;
LAB_0013e057:
if (((1 << (bVar4 & 0x1f) & param_7) != 0) && (local_60 < param_3)) {
*(char *)(param_2 + local_60) = cVar1;
local_60 = local_60 + 1;
}
if (cVar1 == '\0') {
if (((param_7 & 0x80) != 0) && (local_60 < param_3)) {
memset((void *)(param_2 + local_60),0x20,param_3 - local_60);
local_60 = param_3;
}
return local_60;
}
goto LAB_0013dd8a;
}
| |
23,289 | minja::LiteralExpr::~LiteralExpr() | monkey531[P]llama/common/minja.hpp | LiteralExpr(const Location & location, const Value& v)
: Expression(location), value(v) {} | O3 | cpp | minja::LiteralExpr::~LiteralExpr():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x9ca9a(%rip), %rax # 0x12e528
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x60(%rdi), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5c5ee
movq %r14, %rdi
callq 0x61a6a
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x91ab9
callq 0x7140a
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x91ac7
callq 0x7140a
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x91ad5
callq 0x7140a
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x91b0a
movq 0x9e493(%rip), %rax # 0x12ff78
cmpb $0x0, (%rax)
je 0x91af5
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x91aff
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x91b0a
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x9c897(%rip), %rax # 0x12e3a8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x91b2d
popq %rbx
popq %r14
jmp 0x7140a
popq %rbx
popq %r14
retq
nop
| _ZN5minja11LiteralExprD2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea rax, _ZTVN5minja11LiteralExprE; `vtable for'minja::LiteralExpr
add rax, 10h
mov [rdi], rax
lea r14, [rdi+60h]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rbx+58h]
test rdi, rdi
jz short loc_91AB9
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91AB9:
mov rdi, [rbx+48h]
test rdi, rdi
jz short loc_91AC7
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91AC7:
mov rdi, [rbx+38h]
test rdi, rdi
jz short loc_91AD5
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91AD5:
mov rdi, [rbx+28h]
test rdi, rdi
jz short loc_91B0A
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_91AF5
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_91AFF
loc_91AF5:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_91AFF:
cmp eax, 1
jnz short loc_91B0A
mov rax, [rdi]
call qword ptr [rax+18h]
loc_91B0A:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
add rsp, 8
test rdi, rdi
jz short loc_91B2D
pop rbx
pop r14
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91B2D:
pop rbx
pop r14
retn
| void minja::LiteralExpr::~LiteralExpr(minja::LiteralExpr *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
volatile signed __int32 *v4; // rdi
volatile signed __int32 *v5; // rdi
signed __int32 v6; // eax
volatile signed __int32 *v7; // rdi
*(_QWORD *)this = &`vtable for'minja::LiteralExpr + 2;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 96);
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((char *)this + 96);
v2 = (volatile signed __int32 *)*((_QWORD *)this + 11);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
v3 = (volatile signed __int32 *)*((_QWORD *)this + 9);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
v4 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v4 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4);
v5 = (volatile signed __int32 *)*((_QWORD *)this + 5);
if ( v5 )
{
if ( _libc_single_threaded )
{
v6 = *((_DWORD *)v5 + 3);
*((_DWORD *)v5 + 3) = v6 - 1;
}
else
{
v6 = _InterlockedExchangeAdd(v5 + 3, 0xFFFFFFFF);
}
if ( v6 == 1 )
(*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v5 + 24LL))(v5, 0LL);
}
*(_QWORD *)this = &`vtable for'minja::Expression + 2;
v7 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v7 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7);
}
| ~LiteralExpr:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x22e528]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
LEA R14,[RDI + 0x60]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015c5ee
MOV RDI,R14
CALL 0x00161a6a
MOV RDI,qword ptr [RBX + 0x58]
TEST RDI,RDI
JZ 0x00191ab9
CALL 0x0017140a
LAB_00191ab9:
MOV RDI,qword ptr [RBX + 0x48]
TEST RDI,RDI
JZ 0x00191ac7
CALL 0x0017140a
LAB_00191ac7:
MOV RDI,qword ptr [RBX + 0x38]
TEST RDI,RDI
JZ 0x00191ad5
CALL 0x0017140a
LAB_00191ad5:
MOV RDI,qword ptr [RBX + 0x28]
TEST RDI,RDI
JZ 0x00191b0a
MOV RAX,qword ptr [0x0022ff78]
CMP byte ptr [RAX],0x0
JZ 0x00191af5
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00191aff
LAB_00191af5:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00191aff:
CMP EAX,0x1
JNZ 0x00191b0a
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00191b0a:
LEA RAX,[0x22e3a8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
ADD RSP,0x8
TEST RDI,RDI
JZ 0x00191b2d
POP RBX
POP R14
JMP 0x0017140a
LAB_00191b2d:
POP RBX
POP R14
RET
|
/* minja::LiteralExpr::~LiteralExpr() */
void __thiscall minja::LiteralExpr::~LiteralExpr(LiteralExpr *this)
{
int *piVar1;
long *plVar2;
int iVar3;
*(int ***)this = &PTR_do_evaluate_0022e538;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)(this + 0x60),0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)(this + 0x60));
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x58) !=
(_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 + 0x58));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x48) !=
(_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 + 0x48));
}
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));
}
plVar2 = *(long **)(this + 0x28);
if (plVar2 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022ff78 == '\0') {
LOCK();
piVar1 = (int *)((long)plVar2 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plVar2 + 0xc);
*(int *)((long)plVar2 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*plVar2 + 0x18))();
}
}
*(int ***)this = &PTR___cxa_pure_virtual_0022e3b8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_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 + 0x10));
return;
}
return;
}
| |
23,290 | my_thread_global_end | eloqsql/mysys/my_thr_init.c | void my_thread_global_end(void)
{
struct timespec abstime;
my_bool all_threads_killed= 1;
set_timespec(abstime, my_thread_end_wait_time);
mysql_mutex_lock(&THR_LOCK_threads);
while (THR_thread_count > 0)
{
int error= mysql_cond_timedwait(&THR_COND_threads, &THR_LOCK_threads,
&abstime);
if (error == ETIMEDOUT || error == ETIME)
{
#ifdef HAVE_PTHREAD_KILL
/*
We shouldn't give an error here, because if we don't have
pthread_kill(), programs like mysqld can't ensure that all threads
are killed when we enter here.
*/
if (THR_thread_count)
fprintf(stderr,
"Error in my_thread_global_end(): %d threads didn't exit\n",
THR_thread_count);
#endif
all_threads_killed= 0;
break;
}
}
mysql_mutex_unlock(&THR_LOCK_threads);
my_thread_destroy_common_mutex();
/*
Only destroy the mutex & conditions if we don't have other threads around
that could use them.
*/
if (all_threads_killed)
{
my_thread_destroy_internal_mutex();
}
my_thread_global_init_done= 0;
} | O0 | c | my_thread_global_end:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb $0x1, -0x11(%rbp)
callq 0x2f6e0
movq %rax, -0x28(%rbp)
imulq $0x3e8, -0x28(%rbp), %rax # imm = 0x3E8
leaq 0x1a840c(%rip), %rcx # 0x1d0490
movl (%rcx), %ecx
imulq $0x3b9aca00, %rcx, %rcx # imm = 0x3B9ACA00
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl $0x3b9aca00, %ecx # imm = 0x3B9ACA00
xorl %edx, %edx
divq %rcx
movq %rax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl $0x3b9aca00, %ecx # imm = 0x3B9ACA00
xorl %edx, %edx
divq %rcx
movq %rdx, -0x8(%rbp)
leaq 0x3603f1(%rip), %rdi # 0x3884b0
leaq 0x535d3(%rip), %rsi # 0x7b699
movl $0xce, %edx
callq 0x28170
leaq 0x3601d9(%rip), %rax # 0x3882b0
cmpl $0x0, (%rax)
jbe 0x28144
leaq 0x36045d(%rip), %rdi # 0x388540
leaq 0x3603c6(%rip), %rsi # 0x3884b0
leaq -0x10(%rbp), %rdx
leaq 0x535a4(%rip), %rcx # 0x7b699
movl $0xd2, %r8d
callq 0x281e0
movl %eax, -0x2c(%rbp)
cmpl $0x6e, -0x2c(%rbp)
je 0x2810f
cmpl $0x3e, -0x2c(%rbp)
jne 0x28142
leaq 0x36019a(%rip), %rax # 0x3882b0
cmpl $0x0, (%rax)
je 0x2813c
movq 0x1a7eb6(%rip), %rax # 0x1cffd8
movq (%rax), %rdi
leaq 0x360184(%rip), %rax # 0x3882b0
movl (%rax), %edx
leaq 0x535a1(%rip), %rsi # 0x7b6d6
movb $0x0, %al
callq 0x25530
movb $0x0, -0x11(%rbp)
jmp 0x28144
jmp 0x280d0
leaq 0x360365(%rip), %rdi # 0x3884b0
callq 0x28260
callq 0x27b40
cmpb $0x0, -0x11(%rbp)
je 0x28160
callq 0x27bf0
movb $0x0, 0x360411(%rip) # 0x388578
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_thread_global_end:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_11], 1
call my_hrtime
mov [rbp+var_28], rax
imul rax, [rbp+var_28], 3E8h
lea rcx, my_thread_end_wait_time
mov ecx, [rcx]
imul rcx, 3B9ACA00h
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov ecx, 3B9ACA00h
xor edx, edx
div rcx
mov [rbp+var_10], rax
mov rax, [rbp+var_20]
mov ecx, 3B9ACA00h
xor edx, edx
div rcx
mov [rbp+var_8], rdx
lea rdi, THR_LOCK_threads
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0CEh
call inline_mysql_mutex_lock
loc_280D0:
lea rax, THR_thread_count
cmp dword ptr [rax], 0
jbe short loc_28144
lea rdi, THR_COND_threads
lea rsi, THR_LOCK_threads
lea rdx, [rbp+var_10]
lea rcx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov r8d, 0D2h
call inline_mysql_cond_timedwait
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 6Eh ; 'n'
jz short loc_2810F
cmp [rbp+var_2C], 3Eh ; '>'
jnz short loc_28142
loc_2810F:
lea rax, THR_thread_count
cmp dword ptr [rax], 0
jz short loc_2813C
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rax, THR_thread_count
mov edx, [rax]
lea rsi, aErrorInMyThrea; "Error in my_thread_global_end(): %d thr"...
mov al, 0
call _fprintf
loc_2813C:
mov [rbp+var_11], 0
jmp short loc_28144
loc_28142:
jmp short loc_280D0
loc_28144:
lea rdi, THR_LOCK_threads
call inline_mysql_mutex_unlock
call my_thread_destroy_common_mutex
cmp [rbp+var_11], 0
jz short loc_28160
call my_thread_destroy_internal_mutex
loc_28160:
mov cs:my_thread_global_init_done, 0
add rsp, 30h
pop rbp
retn
| long long my_thread_global_end()
{
long long result; // rax
int v1; // [rsp+4h] [rbp-2Ch]
unsigned long long v2; // [rsp+10h] [rbp-20h]
char v3; // [rsp+1Fh] [rbp-11h]
_QWORD v4[2]; // [rsp+20h] [rbp-10h] BYREF
v3 = 1;
v2 = 1000000000LL * my_thread_end_wait_time + 1000 * my_hrtime();
v4[0] = v2 / 0x3B9ACA00;
v4[1] = v2 % 0x3B9ACA00;
inline_mysql_mutex_lock(&THR_LOCK_threads, "/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c", 206LL);
while ( THR_thread_count )
{
v1 = inline_mysql_cond_timedwait(
&THR_COND_threads,
&THR_LOCK_threads,
v4,
"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",
210LL);
if ( v1 == 110 || v1 == 62 )
{
if ( THR_thread_count )
fprintf(stderr, "Error in my_thread_global_end(): %d threads didn't exit\n", THR_thread_count);
v3 = 0;
break;
}
}
inline_mysql_mutex_unlock(&THR_LOCK_threads);
result = my_thread_destroy_common_mutex();
if ( v3 )
result = my_thread_destroy_internal_mutex();
my_thread_global_init_done = 0;
return result;
}
| my_thread_global_end:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV byte ptr [RBP + -0x11],0x1
CALL 0x0012f6e0
MOV qword ptr [RBP + -0x28],RAX
IMUL RAX,qword ptr [RBP + -0x28],0x3e8
LEA RCX,[0x2d0490]
MOV ECX,dword ptr [RCX]
IMUL RCX,RCX,0x3b9aca00
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,0x3b9aca00
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,0x3b9aca00
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x8],RDX
LEA RDI,[0x4884b0]
LEA RSI,[0x17b699]
MOV EDX,0xce
CALL 0x00128170
LAB_001280d0:
LEA RAX,[0x4882b0]
CMP dword ptr [RAX],0x0
JBE 0x00128144
LEA RDI,[0x488540]
LEA RSI,[0x4884b0]
LEA RDX,[RBP + -0x10]
LEA RCX,[0x17b699]
MOV R8D,0xd2
CALL 0x001281e0
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x6e
JZ 0x0012810f
CMP dword ptr [RBP + -0x2c],0x3e
JNZ 0x00128142
LAB_0012810f:
LEA RAX,[0x4882b0]
CMP dword ptr [RAX],0x0
JZ 0x0012813c
MOV RAX,qword ptr [0x002cffd8]
MOV RDI,qword ptr [RAX]
LEA RAX,[0x4882b0]
MOV EDX,dword ptr [RAX]
LEA RSI,[0x17b6d6]
MOV AL,0x0
CALL 0x00125530
LAB_0012813c:
MOV byte ptr [RBP + -0x11],0x0
JMP 0x00128144
LAB_00128142:
JMP 0x001280d0
LAB_00128144:
LEA RDI,[0x4884b0]
CALL 0x00128260
CALL 0x00127b40
CMP byte ptr [RBP + -0x11],0x0
JZ 0x00128160
CALL 0x00127bf0
LAB_00128160:
MOV byte ptr [0x00488578],0x0
ADD RSP,0x30
POP RBP
RET
|
void my_thread_global_end(void)
{
bool bVar1;
int iVar2;
long lVar3;
ulong local_18;
ulong local_10;
bVar1 = true;
lVar3 = my_hrtime();
local_10 = lVar3 * 1000 + (ulong)my_thread_end_wait_time * 1000000000;
local_18 = local_10 / 1000000000;
local_10 = local_10 % 1000000000;
inline_mysql_mutex_lock
(THR_LOCK_threads,"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",0xce);
do {
if (THR_thread_count == 0) goto LAB_00128144;
iVar2 = inline_mysql_cond_timedwait
(THR_COND_threads,THR_LOCK_threads,&local_18,
"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",0xd2);
} while ((iVar2 != 0x6e) && (iVar2 != 0x3e));
if (THR_thread_count != 0) {
fprintf(*(FILE **)PTR_stderr_002cffd8,
"Error in my_thread_global_end(): %d threads didn\'t exit\n",(ulong)THR_thread_count);
}
bVar1 = false;
LAB_00128144:
inline_mysql_mutex_unlock(THR_LOCK_threads);
my_thread_destroy_common_mutex();
if (bVar1) {
my_thread_destroy_internal_mutex();
}
my_thread_global_init_done = 0;
return;
}
| |
23,291 | ggml_conv_1d | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | ggml_tensor * ggml_conv_1d(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
int s0,
int p0,
int d0) {
struct ggml_tensor * im2col = ggml_im2col(ctx, a, b, s0, 0, p0, 0, d0, 0, false); // [N, OL, IC * K]
struct ggml_tensor * result =
ggml_mul_mat(ctx,
ggml_reshape_2d(ctx, im2col, im2col->ne[0], (im2col->ne[2] * im2col->ne[1])), // [N, OL, IC * K] => [N*OL, IC * K]
ggml_reshape_2d(ctx, a, (a->ne[0] * a->ne[1]), a->ne[2])); // [OC,IC, K] => [OC, IC * K]
result = ggml_reshape_3d(ctx, result, im2col->ne[1], a->ne[2], im2col->ne[2]); // [N, OC, OL]
return result;
} | O2 | c | ggml_conv_1d:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %eax
movq %rsi, %r14
movq %rdi, %rbx
andl $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
andl $0x0, (%rsp)
movl %r9d, 0x8(%rsp)
xorl %r8d, %r8d
movl %eax, %r9d
callq 0x6d546
movq %rax, %r15
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rcx
imulq 0x20(%rax), %rcx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6bcdb
movq %rax, %r12
movq 0x18(%r14), %rdx
movq 0x20(%r14), %rcx
imulq 0x10(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6bcdb
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x6ae99
movq 0x20(%r14), %rcx
movq 0x18(%r15), %rdx
movq 0x20(%r15), %r8
movq %rbx, %rdi
movq %rax, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6be1f
| ggml_conv_1d:
push r15
push r14
push r12
push rbx
sub rsp, 28h
mov eax, r8d
mov r14, rsi
mov rbx, rdi
and [rsp+48h+var_30], 0
and [rsp+48h+var_38], 0
and [rsp+48h+var_48], 0
mov [rsp+48h+var_40], r9d
xor r8d, r8d
mov r9d, eax
call ggml_im2col
mov r15, rax
mov rdx, [rax+10h]
mov rcx, [rax+18h]
imul rcx, [rax+20h]
mov rdi, rbx
mov rsi, rax
call ggml_reshape_2d
mov r12, rax
mov rdx, [r14+18h]
mov rcx, [r14+20h]
imul rdx, [r14+10h]
mov rdi, rbx
mov rsi, r14
call ggml_reshape_2d
mov rdi, rbx
mov rsi, r12
mov rdx, rax
call ggml_mul_mat
mov rcx, [r14+20h]
mov rdx, [r15+18h]
mov r8, [r15+20h]
mov rdi, rbx
mov rsi, rax
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
jmp ggml_reshape_3d
| long long ggml_conv_1d(
long long a1,
_QWORD *a2,
int a3,
int a4,
int a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
_QWORD *v14; // r15
double v15; // xmm4_8
double v16; // xmm5_8
_QWORD *v17; // r12
double v18; // xmm4_8
double v19; // xmm5_8
long long v20; // rax
unsigned int *v21; // rax
double v22; // xmm4_8
double v23; // xmm5_8
v14 = (_QWORD *)ggml_im2col(a1, (_DWORD)a2, a3, a4, 0, a5, 0, a6, 0, 0);
v17 = (_QWORD *)ggml_reshape_2d(a1, v14, v14[2], v14[4] * v14[3], a7, a8, a9, a10, v15, v16, a13, a14);
v20 = ggml_reshape_2d(a1, a2, a2[2] * a2[3], a2[4], a7, a8, a9, a10, v18, v19, a13, a14);
v21 = ggml_mul_mat(a1, v17, v20);
return ggml_reshape_3d(a1, v21, v14[3], a2[4], v14[4], a7, a8, a9, a10, v22, v23, a13, a14);
}
| ggml_conv_1d:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EAX,R8D
MOV R14,RSI
MOV RBX,RDI
AND dword ptr [RSP + 0x18],0x0
AND dword ptr [RSP + 0x10],0x0
AND dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],R9D
XOR R8D,R8D
MOV R9D,EAX
CALL 0x0016d546
MOV R15,RAX
MOV RDX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x18]
IMUL RCX,qword ptr [RAX + 0x20]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0016bcdb
MOV R12,RAX
MOV RDX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [R14 + 0x20]
IMUL RDX,qword ptr [R14 + 0x10]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016bcdb
MOV RDI,RBX
MOV RSI,R12
MOV RDX,RAX
CALL 0x0016ae99
MOV RCX,qword ptr [R14 + 0x20]
MOV RDX,qword ptr [R15 + 0x18]
MOV R8,qword ptr [R15 + 0x20]
MOV RDI,RBX
MOV RSI,RAX
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
JMP 0x0016be1f
|
void ggml_conv_1d(int8 param_1,long param_2)
{
long lVar1;
int8 uVar2;
int8 uVar3;
lVar1 = ggml_im2col();
uVar2 = ggml_reshape_2d(param_1,lVar1,*(int8 *)(lVar1 + 0x10),
*(long *)(lVar1 + 0x18) * *(long *)(lVar1 + 0x20));
uVar3 = ggml_reshape_2d(param_1,param_2,*(long *)(param_2 + 0x18) * *(long *)(param_2 + 0x10),
*(int8 *)(param_2 + 0x20));
uVar2 = ggml_mul_mat(param_1,uVar2,uVar3);
ggml_reshape_3d(param_1,uVar2,*(int8 *)(lVar1 + 0x18),*(int8 *)(param_2 + 0x20),
*(int8 *)(lVar1 + 0x20));
return;
}
| |
23,292 | thai2sortable | eloqsql/strings/ctype-tis620.c | static size_t thai2sortable(uchar *tstr, size_t len)
{
uchar *p;
size_t tlen;
uchar l2bias;
tlen= len;
l2bias= 256 - 8;
for (p= tstr; tlen > 0; p++, tlen--)
{
uchar c= *p;
if (isthai(c))
{
const int *t_ctype0= t_ctype[c];
if (isconsnt(c))
l2bias -= 8;
if (isldvowel(c) && tlen != 1 && isconsnt(p[1]))
{
/* simply swap between leading-vowel and consonant */
*p= p[1];
p[1]= c;
tlen--;
p++;
continue;
}
/* if found level 2 char (L2_GARAN,L2_TONE*,L2_TYKHU) move to last */
if (t_ctype0[1] >= L2_GARAN)
{
/*
l2bias use to control position weight of l2char
example (*=l2char) XX*X must come before X*XX
*/
memmove((char*) p, (char*) (p+1), tlen-1);
tstr[len-1]= l2bias + t_ctype0[1]- L2_GARAN +1;
p--;
continue;
}
}
else
{
l2bias-= 8;
*p= to_lower_tis620[c];
}
}
return len;
} | O3 | c | thai2sortable:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, -0x38(%rbp)
movq %rsi, -0x30(%rbp)
testq %rsi, %rsi
je 0xb7bc4
movb $-0x8, %r13b
leaq 0x1aeb99(%rip), %r12 # 0x2666a0
leaq 0x2f8322(%rip), %r8 # 0x3afe30
movq -0x38(%rbp), %r15
movq -0x30(%rbp), %rbx
movb (%r15), %al
movzbl %al, %ecx
testb %cl, %cl
js 0xb7b38
addb $-0x8, %r13b
movb (%rcx,%r8), %al
movb %al, (%r15)
incq %r15
decq %rbx
jne 0xb7b16
jmp 0xb7bc4
leaq (%rcx,%rcx,4), %rcx
movl 0x10(%r12,%rcx,4), %edx
leal -0x8(%r13), %esi
testb $0x10, %dl
movzbl %r13b, %edi
movzbl %sil, %r13d
cmovel %edi, %r13d
cmpq $0x1, %rbx
je 0xb7b71
andl $0x20, %edx
je 0xb7b71
movzbl 0x1(%r15), %edx
leaq -0xcf(%rdx), %rsi
cmpq $-0x2e, %rsi
jae 0xb7bb2
leaq (%r12,%rcx,4), %rax
movl 0x4(%rax), %r14d
cmpl $0x9, %r14d
jl 0xb7b2b
leaq 0x1(%r15), %rsi
leaq -0x1(%rbx), %rdx
movq %r15, %rdi
callq 0x29120
leaq 0x2f829a(%rip), %r8 # 0x3afe30
addb %r13b, %r14b
addb $-0x8, %r14b
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movb %r14b, -0x1(%rcx,%rax)
decq %r15
jmp 0xb7b2b
movb %dl, (%r15)
movb %al, 0x1(%r15)
incq %r15
decq %rbx
jmp 0xb7b2b
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| thai2sortable:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_38], rdi
mov [rbp+var_30], rsi
test rsi, rsi
jz loc_B7BC4
mov r13b, 0F8h
lea r12, t_ctype
lea r8, to_lower_tis620
mov r15, [rbp+var_38]
mov rbx, [rbp+var_30]
loc_B7B16:
mov al, [r15]
movzx ecx, al
test cl, cl
js short loc_B7B38
add r13b, 0F8h
mov al, [rcx+r8]
mov [r15], al
loc_B7B2B:
inc r15
dec rbx
jnz short loc_B7B16
jmp loc_B7BC4
loc_B7B38:
lea rcx, [rcx+rcx*4]
mov edx, [r12+rcx*4+10h]
lea esi, [r13-8]
test dl, 10h
movzx edi, r13b
movzx r13d, sil
cmovz r13d, edi
cmp rbx, 1
jz short loc_B7B71
and edx, 20h
jz short loc_B7B71
movzx edx, byte ptr [r15+1]
lea rsi, [rdx-0CFh]
cmp rsi, 0FFFFFFFFFFFFFFD2h
jnb short loc_B7BB2
loc_B7B71:
lea rax, [r12+rcx*4]
mov r14d, [rax+4]
cmp r14d, 9
jl short loc_B7B2B
lea rsi, [r15+1]
lea rdx, [rbx-1]
mov rdi, r15
call _memmove
lea r8, to_lower_tis620
add r14b, r13b
add r14b, 0F8h
mov rax, [rbp+var_30]
mov rcx, [rbp+var_38]
mov [rcx+rax-1], r14b
dec r15
jmp loc_B7B2B
loc_B7BB2:
mov [r15], dl
mov [r15+1], al
inc r15
dec rbx
jmp loc_B7B2B
loc_B7BC4:
mov rax, [rbp+var_30]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long thai2sortable(unsigned __int8 *a1, long long a2)
{
char v2; // r13
unsigned __int8 *v3; // r15
long long v4; // rbx
unsigned __int8 v5; // al
long long v6; // rcx
long long v7; // rcx
int v8; // edx
char v9; // di
long long v10; // rdx
int v11; // r14d
if ( a2 )
{
v2 = -8;
v3 = a1;
v4 = a2;
do
{
v5 = *v3;
v6 = *v3;
if ( (v6 & 0x80u) != 0LL )
{
v7 = 5 * v6;
v8 = t_ctype[v7 + 4];
v9 = v2;
v2 -= 8;
if ( (v8 & 0x10) == 0 )
v2 = v9;
if ( v4 != 1 && (v8 & 0x20) != 0 && (v10 = v3[1], (unsigned long long)(v10 - 207) >= 0xFFFFFFFFFFFFFFD2LL) )
{
*v3 = v10;
*++v3 = v5;
--v4;
}
else
{
v11 = t_ctype[v7 + 1];
if ( v11 >= 9 )
{
memmove(v3, v3 + 1, v4 - 1);
a1[a2 - 1] = v2 + v11 - 8;
--v3;
}
}
}
else
{
v2 -= 8;
*v3 = to_lower_tis620[v6];
}
++v3;
--v4;
}
while ( v4 );
}
return a2;
}
| thai2sortable:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x38],RDI
MOV qword ptr [RBP + -0x30],RSI
TEST RSI,RSI
JZ 0x001b7bc4
MOV R13B,0xf8
LEA R12,[0x3666a0]
LEA R8,[0x4afe30]
MOV R15,qword ptr [RBP + -0x38]
MOV RBX,qword ptr [RBP + -0x30]
LAB_001b7b16:
MOV AL,byte ptr [R15]
MOVZX ECX,AL
TEST CL,CL
JS 0x001b7b38
ADD R13B,0xf8
MOV AL,byte ptr [RCX + R8*0x1]
MOV byte ptr [R15],AL
LAB_001b7b2b:
INC R15
DEC RBX
JNZ 0x001b7b16
JMP 0x001b7bc4
LAB_001b7b38:
LEA RCX,[RCX + RCX*0x4]
MOV EDX,dword ptr [R12 + RCX*0x4 + 0x10]
LEA ESI,[R13 + -0x8]
TEST DL,0x10
MOVZX EDI,R13B
MOVZX R13D,SIL
CMOVZ R13D,EDI
CMP RBX,0x1
JZ 0x001b7b71
AND EDX,0x20
JZ 0x001b7b71
MOVZX EDX,byte ptr [R15 + 0x1]
LEA RSI,[RDX + -0xcf]
CMP RSI,-0x2e
JNC 0x001b7bb2
LAB_001b7b71:
LEA RAX,[R12 + RCX*0x4]
MOV R14D,dword ptr [RAX + 0x4]
CMP R14D,0x9
JL 0x001b7b2b
LEA RSI,[R15 + 0x1]
LEA RDX,[RBX + -0x1]
MOV RDI,R15
CALL 0x00129120
LEA R8,[0x4afe30]
ADD R14B,R13B
ADD R14B,0xf8
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x38]
MOV byte ptr [RCX + RAX*0x1 + -0x1],R14B
DEC R15
JMP 0x001b7b2b
LAB_001b7bb2:
MOV byte ptr [R15],DL
MOV byte ptr [R15 + 0x1],AL
INC R15
DEC RBX
JMP 0x001b7b2b
LAB_001b7bc4:
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long thai2sortable(byte *param_1,long param_2)
{
byte bVar1;
int iVar2;
char cVar3;
ulong uVar4;
long lVar5;
char cVar6;
byte *__dest;
if (param_2 != 0) {
cVar6 = -8;
lVar5 = param_2;
__dest = param_1;
do {
bVar1 = *__dest;
uVar4 = (ulong)bVar1;
if ((char)bVar1 < '\0') {
cVar3 = cVar6 + -8;
if ((*(uint *)(t_ctype + uVar4 * 0x14 + 0x10) & 0x10) == 0) {
cVar3 = cVar6;
}
cVar6 = cVar3;
if (((lVar5 == 1) || ((*(uint *)(t_ctype + uVar4 * 0x14 + 0x10) & 0x20) == 0)) ||
((ulong)__dest[1] - 0xcf < 0xffffffffffffffd2)) {
iVar2 = *(int *)(t_ctype + uVar4 * 0x14 + 4);
if (8 < iVar2) {
memmove(__dest,__dest + 1,lVar5 - 1);
param_1[param_2 + -1] = ((char)iVar2 + cVar3) - 8;
__dest = __dest + -1;
}
}
else {
*__dest = __dest[1];
__dest[1] = bVar1;
__dest = __dest + 1;
lVar5 = lVar5 + -1;
}
}
else {
*__dest = to_lower_tis620[uVar4];
cVar6 = cVar6 + -8;
}
__dest = __dest + 1;
lVar5 = lVar5 + -1;
} while (lVar5 != 0);
}
return param_2;
}
| |
23,293 | minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!condition) throw std::runtime_error("IfExpr.condition is null");
if (!then_expr) throw std::runtime_error("IfExpr.then_expr is null");
if (condition->evaluate(context).to_bool()) {
return then_expr->evaluate(context);
}
if (else_expr) {
return else_expr->evaluate(context);
}
return nullptr;
} | O2 | cpp | minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r15
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x746ec
cmpq $0x0, 0x30(%r15)
je 0x74708
movq %rdx, %r14
movq %rdi, %rbx
movq %rsp, %r12
movq %r12, %rdi
callq 0x65f00
movq %r12, %rdi
callq 0x660d6
movl %eax, %ebp
movq %rsp, %rdi
callq 0x66190
testb %bpl, %bpl
je 0x746b7
movq 0x30(%r15), %rsi
jmp 0x746c0
movq 0x40(%r15), %rsi
testq %rsi, %rsi
je 0x746db
movq %rbx, %rdi
movq %r14, %rdx
callq 0x65f00
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rsi
andq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x6a7e8
jmp 0x746cb
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x43fa5(%rip), %rsi # 0xb86a3
movq %rax, %rdi
callq 0x23360
jmp 0x74722
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x43fa2(%rip), %rsi # 0xb86bc
movq %rax, %rdi
callq 0x23360
movq 0x8d8bf(%rip), %rsi # 0x101fe8
movq 0x8d818(%rip), %rdx # 0x101f48
movq %r14, %rdi
callq 0x24050
jmp 0x7473a
movq %rax, %rbx
movq %r14, %rdi
callq 0x236f0
jmp 0x74752
movq %rax, %rbx
movq %rsp, %rdi
callq 0x66190
movq %rbx, %rdi
callq 0x240e0
| _ZNK5minja6IfExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 50h
mov r15, rsi
mov rsi, [rsi+20h]
test rsi, rsi
jz short loc_746EC
cmp qword ptr [r15+30h], 0
jz short loc_74708
mov r14, rdx
mov rbx, rdi
mov r12, rsp
mov rdi, r12
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, r12; this
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
mov ebp, eax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_746B7
mov rsi, [r15+30h]
jmp short loc_746C0
loc_746B7:
mov rsi, [r15+40h]
test rsi, rsi
jz short loc_746DB
loc_746C0:
mov rdi, rbx
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
loc_746CB:
mov rax, rbx
add rsp, 50h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_746DB:
mov rsi, rsp
and qword ptr [rsi], 0
mov rdi, rbx
call _ZN5minja5ValueC2ERKDn; minja::Value::Value(decltype(nullptr) const&)
jmp short loc_746CB
loc_746EC:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aIfexprConditio; "IfExpr.condition is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_74722
loc_74708:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aIfexprThenExpr; "IfExpr.then_expr is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_74722:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short $+2
loc_7473A:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_74752
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_74752:
mov rdi, rbx
call __Unwind_Resume
| _OWORD * minja::IfExpr::do_evaluate(_OWORD *a1, _QWORD *a2)
{
void (***v3)(void); // rsi
char v4; // bp
void (***v5)(void); // rsi
std::runtime_error *exception; // r14
_QWORD v8[15]; // [rsp+0h] [rbp-78h] BYREF
v3 = (void (***)(void))a2[4];
if ( !v3 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "IfExpr.condition is null");
goto LABEL_11;
}
if ( !a2[6] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "IfExpr.then_expr is null");
LABEL_11:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v8, v3);
v4 = minja::Value::to_bool((minja::Value *)v8);
minja::Value::~Value((minja::Value *)v8);
if ( v4 )
{
v5 = (void (***)(void))a2[6];
}
else
{
v5 = (void (***)(void))a2[8];
if ( !v5 )
{
v8[0] = 0LL;
minja::Value::Value(a1);
return a1;
}
}
minja::Expression::evaluate((long long)a1, v5);
return a1;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x50
MOV R15,RSI
MOV RSI,qword ptr [RSI + 0x20]
TEST RSI,RSI
JZ 0x001746ec
CMP qword ptr [R15 + 0x30],0x0
JZ 0x00174708
MOV R14,RDX
MOV RBX,RDI
MOV R12,RSP
MOV RDI,R12
CALL 0x00165f00
LAB_0017469a:
MOV RDI,R12
CALL 0x001660d6
LAB_001746a2:
MOV EBP,EAX
MOV RDI,RSP
CALL 0x00166190
TEST BPL,BPL
JZ 0x001746b7
MOV RSI,qword ptr [R15 + 0x30]
JMP 0x001746c0
LAB_001746b7:
MOV RSI,qword ptr [R15 + 0x40]
TEST RSI,RSI
JZ 0x001746db
LAB_001746c0:
MOV RDI,RBX
MOV RDX,R14
CALL 0x00165f00
LAB_001746cb:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001746db:
MOV RSI,RSP
AND qword ptr [RSI],0x0
MOV RDI,RBX
CALL 0x0016a7e8
JMP 0x001746cb
LAB_001746ec:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_001746f7:
LEA RSI,[0x1b86a3]
MOV RDI,RAX
CALL 0x00123360
LAB_00174706:
JMP 0x00174722
LAB_00174708:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_00174713:
LEA RSI,[0x1b86bc]
MOV RDI,RAX
CALL 0x00123360
LAB_00174722:
MOV RSI,qword ptr [0x00201fe8]
MOV RDX,qword ptr [0x00201f48]
MOV RDI,R14
CALL 0x00124050
|
/* minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
IfExpr * __thiscall minja::IfExpr::do_evaluate(IfExpr *this,shared_ptr *param_1)
{
char cVar1;
runtime_error *this_00;
shared_ptr *psVar2;
_func_decltype_nullptr *local_78 [10];
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001746f7 to 00174705 has its CatchHandler @ 0017473a */
std::runtime_error::runtime_error(this_00,"IfExpr.condition is null");
}
else {
if (*(long *)(param_1 + 0x30) != 0) {
Expression::evaluate((Expression *)local_78,*(shared_ptr **)(param_1 + 0x20));
/* try { // try from 0017469a to 001746a1 has its CatchHandler @ 00174747 */
cVar1 = Value::to_bool((Value *)local_78);
Value::~Value((Value *)local_78);
if (cVar1 == '\0') {
psVar2 = *(shared_ptr **)(param_1 + 0x40);
if (psVar2 == (shared_ptr *)0x0) {
local_78[0] = (_func_decltype_nullptr *)0x0;
Value::Value((Value *)this,local_78);
return this;
}
}
else {
psVar2 = *(shared_ptr **)(param_1 + 0x30);
}
Expression::evaluate((Expression *)this,psVar2);
return this;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00174713 to 00174721 has its CatchHandler @ 00174738 */
std::runtime_error::runtime_error(this_00,"IfExpr.then_expr is null");
}
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00201fe8,PTR__runtime_error_00201f48);
}
| |
23,294 | inline_mysql_file_fclose | eloqsql/include/mysql/psi/mysql_file.h | static inline int
inline_mysql_file_fclose(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
MYSQL_FILE *file, myf flags)
{
int result= 0;
if (likely(file != NULL))
{
#ifdef HAVE_PSI_FILE_INTERFACE
if (psi_likely(file->m_psi))
{
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_stream_locker)(&state, file->m_psi,
PSI_FILE_STREAM_CLOSE);
if (likely(locker != NULL))
{
PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
result= my_fclose(file->m_file, flags);
PSI_FILE_CALL(end_file_close_wait)(locker, result);
my_free(file);
return result;
}
}
#endif
result= my_fclose(file->m_file, flags);
my_free(file);
}
return result;
} | O0 | c | inline_mysql_file_fclose:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
cmpq $0x0, -0x20(%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 0x3ef14
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3eef8
leaq 0x1a2d5f(%rip), %rax # 0x1e1bb8
movq (%rax), %rax
movq 0x150(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rsi
leaq -0x80(%rbp), %rdi
movl $0x5, %edx
callq *%rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%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 0x3eef6
leaq 0x1a2d17(%rip), %rax # 0x1e1bb8
movq (%rax), %rax
movq 0x220(%rax), %rax
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x43a60
movl %eax, -0x2c(%rbp)
leaq 0x1a2ce6(%rip), %rax # 0x1e1bb8
movq (%rax), %rax
movq 0x228(%rax), %rax
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq *%rax
movq -0x20(%rbp), %rdi
callq 0x371e0
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x3ef1a
jmp 0x3eef8
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x43a60
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x371e0
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_file_fclose:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], 0
cmp [rbp+var_20], 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 loc_3EF14
mov rax, [rbp+var_20]
cmp qword ptr [rax+8], 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_3EEF8
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+150h]
mov rcx, [rbp+var_20]
mov rsi, [rcx+8]
lea rdi, [rbp+var_80]
mov edx, 5
call rax
mov [rbp+var_38], rax
cmp [rbp+var_38], 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_3EEF6
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+220h]
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rax, [rbp+var_20]
mov rdi, [rax]
mov rsi, [rbp+var_28]
call my_fclose
mov [rbp+var_2C], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+228h]
mov rdi, [rbp+var_38]
mov esi, [rbp+var_2C]
call rax
mov rdi, [rbp+var_20]
call my_free
mov eax, [rbp+var_2C]
mov [rbp+var_4], eax
jmp short loc_3EF1A
loc_3EEF6:
jmp short $+2
loc_3EEF8:
mov rax, [rbp+var_20]
mov rdi, [rax]
mov rsi, [rbp+var_28]
call my_fclose
mov [rbp+var_2C], eax
mov rdi, [rbp+var_20]
call my_free
loc_3EF14:
mov eax, [rbp+var_2C]
mov [rbp+var_4], eax
loc_3EF1A:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
| long long inline_mysql_file_fclose(long long a1, unsigned int a2, _QWORD *a3, long long a4)
{
_BYTE v5[72]; // [rsp+0h] [rbp-80h] BYREF
long long v6; // [rsp+48h] [rbp-38h]
unsigned int v7; // [rsp+54h] [rbp-2Ch]
long long v8; // [rsp+58h] [rbp-28h]
_QWORD *v9; // [rsp+60h] [rbp-20h]
unsigned int v10; // [rsp+6Ch] [rbp-14h]
long long v11; // [rsp+70h] [rbp-10h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
v7 = 0;
if ( !a3 )
return v7;
if ( !v9[1] || (v6 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 42))(v5, v9[1], 5LL)) == 0 )
{
v7 = my_fclose(*v9, v8);
my_free((long long)v9);
return v7;
}
(*((void ( **)(long long, long long, _QWORD))PSI_server + 68))(v6, v11, v10);
v7 = my_fclose(*v9, v8);
(*((void ( **)(long long, _QWORD))PSI_server + 69))(v6, v7);
my_free((long long)v9);
return v7;
}
| inline_mysql_file_fclose:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
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 dword ptr [RBP + -0x2c],0x0
CMP qword ptr [RBP + -0x20],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 0x0013ef14
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x8],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0013eef8
LEA RAX,[0x2e1bb8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x150]
MOV RCX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RCX + 0x8]
LEA RDI,[RBP + -0x80]
MOV EDX,0x5
CALL RAX
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],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 0x0013eef6
LEA RAX,[0x2e1bb8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x220]
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00143a60
MOV dword ptr [RBP + -0x2c],EAX
LEA RAX,[0x2e1bb8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x228]
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,dword ptr [RBP + -0x2c]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001371e0
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013ef1a
LAB_0013eef6:
JMP 0x0013eef8
LAB_0013eef8:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00143a60
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001371e0
LAB_0013ef14:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
LAB_0013ef1a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_fclose
(int8 param_1,int4 param_2,int8 *param_3,int8 param_4)
{
int1 local_88 [72];
long local_40;
int4 local_34;
int8 local_30;
int8 *local_28;
int4 local_1c;
int8 local_18;
local_34 = 0;
if (param_3 != (int8 *)0x0) {
local_30 = param_4;
local_28 = param_3;
local_1c = param_2;
local_18 = param_1;
if (param_3[1] != 0) {
local_40 = (**(code **)(PSI_server + 0x150))(local_88,param_3[1],5);
if (local_40 != 0) {
(**(code **)(PSI_server + 0x220))(local_40,local_18,local_1c);
local_34 = my_fclose(*local_28,local_30);
(**(code **)(PSI_server + 0x228))(local_40,local_34);
my_free(local_28);
return local_34;
}
local_40 = 0;
}
local_34 = my_fclose(*local_28,local_30);
my_free(local_28);
}
return local_34;
}
| |
23,295 | OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::LocalPointHelper(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::Options const&, int, int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp | PatchTableBuilder::LocalPointHelper::LocalPointHelper(
TopologyRefiner const & refiner, Options const & options,
int fvarChannel, int numLocalPointsExpected) :
_refiner(refiner), _options(options), _fvarChannel(fvarChannel),
_numLocalPoints(0), _stencilTable(), _stencilTableVarying() {
_localPointOffset = (_fvarChannel < 0)
? _refiner.GetNumVerticesTotal()
: _refiner.GetNumFVarValuesTotal(_fvarChannel);
if (_options.createStencilTable) {
if (_options.doubleStencilTable) {
initializeStencilTable<double>(numLocalPointsExpected);
} else {
initializeStencilTable<float>(numLocalPointsExpected);
}
}
} | O3 | cpp | OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::LocalPointHelper(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::Options const&, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rdi, %rbx
movq %rsi, (%rdi)
movl (%rdx), %edx
movl %edx, 0x8(%rdi)
movl %ecx, 0xc(%rdi)
movl $0x0, 0x10(%rdi)
leaq 0x18(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
testl %ecx, %ecx
js 0x6f5f3
movq %rsi, %rdi
movl %ecx, %esi
callq 0x3a340
movb 0x8(%rbx), %dl
jmp 0x6f5f6
movl 0x14(%rsi), %eax
movl %eax, 0x14(%rbx)
testb $0x4, %dl
je 0x6f619
testb $0x10, %dl
jne 0x6f60f
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3a2d0
jmp 0x6f619
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3b890
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
addq $0x30, %rbx
movq %rbx, %rdi
callq 0x3b800
movq %r14, %rdi
callq 0x3b800
movq %r15, %rdi
callq 0x3bd30
nop
| _ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelperC2ERKNS1_15TopologyRefinerERKNS3_7OptionsEii:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::LocalPointHelper(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::Options const&, int, int)'
push r15
push r14
push rbx
push rax
mov ebp, r8d
mov rbx, rdi
mov [rdi], rsi
mov edx, [rdx]
mov [rdi+8], edx
mov [rdi+0Ch], ecx
mov dword ptr [rdi+10h], 0
lea r14, [rdi+18h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+18h], xmm0
movups xmmword ptr [rdi+28h], xmm0
movups xmmword ptr [rdi+38h], xmm0
movups xmmword ptr [rdi+48h], xmm0
test ecx, ecx
js short loc_6F5F3
mov rdi, rsi; this
mov esi, ecx; int
call __ZNK10OpenSubdiv6v3_6_03Far15TopologyRefiner21GetNumFVarValuesTotalEi; OpenSubdiv::v3_6_0::Far::TopologyRefiner::GetNumFVarValuesTotal(int)
mov dl, [rbx+8]
jmp short loc_6F5F6
loc_6F5F3:
mov eax, [rsi+14h]
loc_6F5F6:
mov [rbx+14h], eax
test dl, 4
jz short loc_6F619
test dl, 10h
jnz short loc_6F60F
mov rdi, rbx
mov esi, ebp
call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper22initializeStencilTableIfEEvi; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::initializeStencilTable<float>(int)
jmp short loc_6F619
loc_6F60F:
mov rdi, rbx
mov esi, ebp
call __ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper22initializeStencilTableIdEEvi; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::initializeStencilTable<double>(int)
loc_6F619:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
mov r15, rax
add rbx, 30h ; '0'
mov rdi, rbx
call __ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev; std::vector<std::vector<int>>::~vector()
mov rdi, r14
call __ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev; std::vector<std::vector<int>>::~vector()
mov rdi, r15
call __Unwind_Resume
| long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::LocalPointHelper(
long long a1,
unsigned int *a2,
int *a3,
int a4,
unsigned int a5)
{
int v6; // edx
long long result; // rax
*(_QWORD *)a1 = a2;
v6 = *a3;
*(_DWORD *)(a1 + 8) = v6;
*(_DWORD *)(a1 + 12) = a4;
*(_DWORD *)(a1 + 16) = 0;
*(_OWORD *)(a1 + 24) = 0LL;
*(_OWORD *)(a1 + 40) = 0LL;
*(_OWORD *)(a1 + 56) = 0LL;
*(_OWORD *)(a1 + 72) = 0LL;
if ( a4 < 0 )
{
result = a2[5];
}
else
{
result = OpenSubdiv::v3_6_0::Far::TopologyRefiner::GetNumFVarValuesTotal(
(OpenSubdiv::v3_6_0::Far::TopologyRefiner *)a2,
a4);
LOBYTE(v6) = *(_BYTE *)(a1 + 8);
}
*(_DWORD *)(a1 + 20) = result;
if ( (v6 & 4) != 0 )
{
if ( (v6 & 0x10) != 0 )
return OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::initializeStencilTable<double>(a1, a5);
else
return OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::initializeStencilTable<float>(a1, a5);
}
return result;
}
| LocalPointHelper:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,R8D
MOV RBX,RDI
MOV qword ptr [RDI],RSI
MOV EDX,dword ptr [RDX]
MOV dword ptr [RDI + 0x8],EDX
MOV dword ptr [RDI + 0xc],ECX
MOV dword ptr [RDI + 0x10],0x0
LEA R14,[RDI + 0x18]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOVUPS xmmword ptr [RDI + 0x38],XMM0
MOVUPS xmmword ptr [RDI + 0x48],XMM0
TEST ECX,ECX
JS 0x0016f5f3
LAB_0016f5e4:
MOV RDI,RSI
MOV ESI,ECX
CALL 0x0013a340
MOV DL,byte ptr [RBX + 0x8]
JMP 0x0016f5f6
LAB_0016f5f3:
MOV EAX,dword ptr [RSI + 0x14]
LAB_0016f5f6:
MOV dword ptr [RBX + 0x14],EAX
TEST DL,0x4
JZ 0x0016f619
TEST DL,0x10
JNZ 0x0016f60f
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013a2d0
JMP 0x0016f619
LAB_0016f60f:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013b890
LAB_0016f619:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::LocalPointHelper(OpenSubdiv::v3_6_0::Far::TopologyRefiner
const&, OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::Options const&, int, int)
*/
void __thiscall
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::LocalPointHelper
(LocalPointHelper *this,TopologyRefiner *param_1,Options *param_2,int param_3,int param_4)
{
int4 uVar1;
uint uVar2;
*(TopologyRefiner **)this = param_1;
uVar2 = *(uint *)param_2;
*(uint *)(this + 8) = uVar2;
*(int *)(this + 0xc) = param_3;
*(int4 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
if (param_3 < 0) {
uVar1 = *(int4 *)(param_1 + 0x14);
}
else {
/* try { // try from 0016f5e4 to 0016f618 has its CatchHandler @ 0016f624 */
uVar1 = TopologyRefiner::GetNumFVarValuesTotal(param_1,param_3);
uVar2 = (uint)(byte)this[8];
}
*(int4 *)(this + 0x14) = uVar1;
if ((uVar2 & 4) != 0) {
if ((uVar2 & 0x10) == 0) {
initializeStencilTable<float>(this,param_4);
}
else {
initializeStencilTable<double>(this,param_4);
}
}
return;
}
| |
23,296 | safe_lexcstrdup_root | eloqsql/mysys/my_alloc.c | LEX_CSTRING safe_lexcstrdup_root(MEM_ROOT *root, const LEX_CSTRING str)
{
LEX_CSTRING res;
if (str.length)
res.str= strmake_root(root, str.str, str.length);
else
res.str= (const char *)"";
res.length= str.length;
return res;
} | O0 | c | safe_lexcstrdup_root:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rsi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xf5922
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xf5840
movq %rax, -0x10(%rbp)
jmp 0xf592d
leaq 0x6a244(%rip), %rax # 0x15fb6d
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| safe_lexcstrdup_root:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_20], rsi
mov [rbp+var_18], rdx
mov [rbp+var_28], rdi
cmp [rbp+var_18], 0
jz short loc_F5922
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call strmake_root
mov [rbp+var_10], rax
jmp short loc_F592D
loc_F5922:
lea rax, asc_15FB69+4; ""
mov [rbp+var_10], rax
loc_F592D:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov rdx, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| char * safe_lexcstrdup_root(_QWORD **a1, long long a2, long long a3)
{
if ( a3 )
return strmake_root(a1, a2, a3);
else
return "";
}
| safe_lexcstrdup_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x20],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x28],RDI
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001f5922
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001f5840
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001f592d
LAB_001f5922:
LEA RAX,[0x25fb6d]
MOV qword ptr [RBP + -0x10],RAX
LAB_001f592d:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int1 [16] safe_lexcstrdup_root(int8 param_1,int8 param_2,long param_3)
{
int1 auVar1 [16];
int *local_18;
if (param_3 == 0) {
local_18 = &DAT_0025fb6d;
}
else {
local_18 = (int *)strmake_root(param_1,param_2,param_3);
}
auVar1._8_8_ = param_3;
auVar1._0_8_ = local_18;
return auVar1;
}
| |
23,297 | my_realpath | eloqsql/mysys/my_symlink.c | int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
} | O0 | c | my_realpath:
pushq %rbp
movq %rsp, %rbp
subq $0x1060, %rsp # imm = 0x1060
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x1020(%rbp)
movq %rsi, -0x1028(%rbp)
movq %rdx, -0x1030(%rbp)
movl $0x0, -0x1034(%rbp)
jmp 0x3ef59
movq -0x1028(%rbp), %rdi
leaq -0x1010(%rbp), %rsi
callq 0x240e0
movq %rax, -0x1040(%rbp)
cmpq $0x0, %rax
je 0x3ef96
movq -0x1020(%rbp), %rdi
movq -0x1040(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x854b0
jmp 0x3f036
cmpq $0x0, -0x1030(%rbp)
je 0x3efa6
jmp 0x3efa2
jmp 0x3efa4
jmp 0x3efa6
callq 0x24040
movl (%rax), %eax
movl %eax, -0x1044(%rbp)
callq 0x31370
movl -0x1044(%rbp), %ecx
movl %ecx, (%rax)
movq -0x1030(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0x3effd
movq -0x1028(%rbp), %rax
movq %rax, -0x1050(%rbp)
callq 0x31370
movq -0x1050(%rbp), %rdx
movl (%rax), %ecx
movl $0x1a, %edi
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0x3d7e0
movq -0x1020(%rbp), %rdi
movq -0x1028(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x40850
callq 0x31370
cmpl $0x2, (%rax)
jne 0x3f02a
movl $0x1, -0x1034(%rbp)
jmp 0x3f034
movl $0xffffffff, -0x1034(%rbp) # imm = 0xFFFFFFFF
jmp 0x3f036
jmp 0x3f038
movl -0x1034(%rbp), %eax
movl %eax, -0x1014(%rbp)
movl -0x1014(%rbp), %eax
movl %eax, -0x1054(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x3f071
movl -0x1054(%rbp), %eax
addq $0x1060, %rsp # imm = 0x1060
popq %rbp
retq
callq 0x242c0
nopw %cs:(%rax,%rax)
| my_realpath:
push rbp
mov rbp, rsp
sub rsp, 1060h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_1020], rdi
mov [rbp+var_1028], rsi
mov [rbp+var_1030], rdx
mov [rbp+var_1034], 0
jmp short $+2
loc_3EF59:
mov rdi, [rbp+var_1028]
lea rsi, [rbp+var_1010]
call _realpath
mov [rbp+var_1040], rax
cmp rax, 0
jz short loc_3EF96
mov rdi, [rbp+var_1020]
mov rsi, [rbp+var_1040]
mov edx, 1FFh
call strmake
jmp loc_3F036
loc_3EF96:
cmp [rbp+var_1030], 0
jz short loc_3EFA6
jmp short $+2
loc_3EFA2:
jmp short $+2
loc_3EFA4:
jmp short $+2
loc_3EFA6:
call ___errno_location
mov eax, [rax]
mov [rbp+var_1044], eax
call _my_thread_var
mov ecx, [rbp+var_1044]
mov [rax], ecx
mov rax, [rbp+var_1030]
and rax, 10h
cmp rax, 0
jz short loc_3EFFD
mov rax, [rbp+var_1028]
mov [rbp+var_1050], rax
call _my_thread_var
mov rdx, [rbp+var_1050]
mov ecx, [rax]
mov edi, 1Ah
xor eax, eax
mov esi, eax
mov al, 0
call my_error
loc_3EFFD:
mov rdi, [rbp+var_1020]
mov rsi, [rbp+var_1028]
xor eax, eax
mov edx, eax
call my_load_path
call _my_thread_var
cmp dword ptr [rax], 2
jnz short loc_3F02A
mov [rbp+var_1034], 1
jmp short loc_3F034
loc_3F02A:
mov [rbp+var_1034], 0FFFFFFFFh
loc_3F034:
jmp short $+2
loc_3F036:
jmp short $+2
loc_3F038:
mov eax, [rbp+var_1034]
mov [rbp+var_1014], eax
mov eax, [rbp+var_1014]
mov [rbp+var_1054], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_3F071
mov eax, [rbp+var_1054]
add rsp, 1060h
pop rbp
retn
loc_3F071:
call ___stack_chk_fail
| long long my_realpath(long long a1, long long a2, char a3)
{
unsigned int *v3; // rax
long long v5; // [rsp+1Ch] [rbp-1044h]
long long v6; // [rsp+20h] [rbp-1040h]
unsigned int v7; // [rsp+2Ch] [rbp-1034h]
_BYTE v9[4104]; // [rsp+50h] [rbp-1010h] BYREF
unsigned long long v10; // [rsp+1058h] [rbp-8h]
v10 = __readfsqword(0x28u);
v7 = 0;
v6 = realpath(a2, v9);
if ( v6 )
{
strmake(a1, v6, 511LL);
}
else
{
v5 = *(unsigned int *)__errno_location();
*(_DWORD *)my_thread_var() = v5;
if ( (a3 & 0x10) != 0 )
{
v3 = (unsigned int *)my_thread_var();
my_error(0x1Au, 0LL, a2, *v3);
}
my_load_path(a1, a2, 0LL);
if ( *(_DWORD *)my_thread_var() == 2 )
return 1;
else
return (unsigned int)-1;
}
return v7;
}
| my_realpath:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1060
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x1020],RDI
MOV qword ptr [RBP + -0x1028],RSI
MOV qword ptr [RBP + -0x1030],RDX
MOV dword ptr [RBP + -0x1034],0x0
JMP 0x0013ef59
LAB_0013ef59:
MOV RDI,qword ptr [RBP + -0x1028]
LEA RSI,[RBP + -0x1010]
CALL 0x001240e0
MOV qword ptr [RBP + -0x1040],RAX
CMP RAX,0x0
JZ 0x0013ef96
MOV RDI,qword ptr [RBP + -0x1020]
MOV RSI,qword ptr [RBP + -0x1040]
MOV EDX,0x1ff
CALL 0x001854b0
JMP 0x0013f036
LAB_0013ef96:
CMP qword ptr [RBP + -0x1030],0x0
JZ 0x0013efa6
JMP 0x0013efa2
LAB_0013efa2:
JMP 0x0013efa4
LAB_0013efa4:
JMP 0x0013efa6
LAB_0013efa6:
CALL 0x00124040
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1044],EAX
CALL 0x00131370
MOV ECX,dword ptr [RBP + -0x1044]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x1030]
AND RAX,0x10
CMP RAX,0x0
JZ 0x0013effd
MOV RAX,qword ptr [RBP + -0x1028]
MOV qword ptr [RBP + -0x1050],RAX
CALL 0x00131370
MOV RDX,qword ptr [RBP + -0x1050]
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR EAX,EAX
MOV ESI,EAX
MOV AL,0x0
CALL 0x0013d7e0
LAB_0013effd:
MOV RDI,qword ptr [RBP + -0x1020]
MOV RSI,qword ptr [RBP + -0x1028]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00140850
CALL 0x00131370
CMP dword ptr [RAX],0x2
JNZ 0x0013f02a
MOV dword ptr [RBP + -0x1034],0x1
JMP 0x0013f034
LAB_0013f02a:
MOV dword ptr [RBP + -0x1034],0xffffffff
LAB_0013f034:
JMP 0x0013f036
LAB_0013f036:
JMP 0x0013f038
LAB_0013f038:
MOV EAX,dword ptr [RBP + -0x1034]
MOV dword ptr [RBP + -0x1014],EAX
MOV EAX,dword ptr [RBP + -0x1014]
MOV dword ptr [RBP + -0x1054],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0013f071
MOV EAX,dword ptr [RBP + -0x1054]
ADD RSP,0x1060
POP RBP
RET
LAB_0013f071:
CALL 0x001242c0
|
int4 my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
int4 local_103c;
char local_1018 [4104];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_103c = 0;
pcVar2 = realpath(param_2,local_1018);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
if (*piVar3 == 2) {
local_103c = 1;
}
else {
local_103c = 0xffffffff;
}
}
else {
strmake(param_1,pcVar2,0x1ff);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_103c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
23,298 | translog_interpret_file_header | eloqsql/storage/maria/ma_loghandler.c | void translog_interpret_file_header(LOGHANDLER_FILE_INFO *desc,
uchar *page_buff)
{
uchar *ptr;
ptr= page_buff + sizeof(maria_trans_file_magic);
desc->timestamp= uint8korr(ptr);
ptr+= 8;
desc->maria_version= uint4korr(ptr);
ptr+= 4;
desc->mysql_version= uint4korr(ptr);
ptr+= 4;
desc->server_id= uint4korr(ptr);
ptr+= 4;
desc->page_size= uint2korr(ptr) + 1;
ptr+= 2;
desc->file_number= uint3korr(ptr);
ptr+= 3;
desc->max_lsn= lsn_korr(ptr);
} | O3 | c | translog_interpret_file_header:
pushq %rbp
movq %rsp, %rbp
movq 0xc(%rsi), %rax
movq %rax, 0x8(%rdi)
movl 0x14(%rsi), %eax
movq %rax, 0x10(%rdi)
movl 0x18(%rsi), %eax
movq %rax, 0x18(%rdi)
movl 0x1c(%rsi), %eax
movq %rax, 0x20(%rdi)
movzwl 0x20(%rsi), %eax
incq %rax
movq %rax, 0x28(%rdi)
movzwl 0x22(%rsi), %eax
movzbl 0x24(%rsi), %ecx
shll $0x10, %ecx
orq %rax, %rcx
movq %rcx, 0x30(%rdi)
movzwl 0x25(%rsi), %eax
shlq $0x20, %rax
movzbl 0x27(%rsi), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x28(%rsi), %eax
orq %rcx, %rax
movq %rax, (%rdi)
popq %rbp
retq
| translog_interpret_file_header:
push rbp
mov rbp, rsp
mov rax, [rsi+0Ch]
mov [rdi+8], rax
mov eax, [rsi+14h]
mov [rdi+10h], rax
mov eax, [rsi+18h]
mov [rdi+18h], rax
mov eax, [rsi+1Ch]
mov [rdi+20h], rax
movzx eax, word ptr [rsi+20h]
inc rax
mov [rdi+28h], rax
movzx eax, word ptr [rsi+22h]
movzx ecx, byte ptr [rsi+24h]
shl ecx, 10h
or rcx, rax
mov [rdi+30h], rcx
movzx eax, word ptr [rsi+25h]
shl rax, 20h
movzx ecx, byte ptr [rsi+27h]
shl rcx, 30h
or rcx, rax
mov eax, [rsi+28h]
or rax, rcx
mov [rdi], rax
pop rbp
retn
| unsigned long long translog_interpret_file_header(unsigned long long *a1, long long a2)
{
unsigned long long result; // rax
a1[1] = *(_QWORD *)(a2 + 12);
a1[2] = *(unsigned int *)(a2 + 20);
a1[3] = *(unsigned int *)(a2 + 24);
a1[4] = *(unsigned int *)(a2 + 28);
a1[5] = *(unsigned __int16 *)(a2 + 32) + 1LL;
a1[6] = *(unsigned __int16 *)(a2 + 34) | (unsigned long long)(*(unsigned __int8 *)(a2 + 36) << 16);
result = ((unsigned long long)*(unsigned __int16 *)(a2 + 37) << 32) | ((unsigned long long)*(unsigned __int8 *)(a2 + 39) << 48) | *(unsigned int *)(a2 + 40);
*a1 = result;
return result;
}
| translog_interpret_file_header:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RSI + 0xc]
MOV qword ptr [RDI + 0x8],RAX
MOV EAX,dword ptr [RSI + 0x14]
MOV qword ptr [RDI + 0x10],RAX
MOV EAX,dword ptr [RSI + 0x18]
MOV qword ptr [RDI + 0x18],RAX
MOV EAX,dword ptr [RSI + 0x1c]
MOV qword ptr [RDI + 0x20],RAX
MOVZX EAX,word ptr [RSI + 0x20]
INC RAX
MOV qword ptr [RDI + 0x28],RAX
MOVZX EAX,word ptr [RSI + 0x22]
MOVZX ECX,byte ptr [RSI + 0x24]
SHL ECX,0x10
OR RCX,RAX
MOV qword ptr [RDI + 0x30],RCX
MOVZX EAX,word ptr [RSI + 0x25]
SHL RAX,0x20
MOVZX ECX,byte ptr [RSI + 0x27]
SHL RCX,0x30
OR RCX,RAX
MOV EAX,dword ptr [RSI + 0x28]
OR RAX,RCX
MOV qword ptr [RDI],RAX
POP RBP
RET
|
void translog_interpret_file_header(ulong *param_1,long param_2)
{
param_1[1] = *(ulong *)(param_2 + 0xc);
param_1[2] = (ulong)*(uint *)(param_2 + 0x14);
param_1[3] = (ulong)*(uint *)(param_2 + 0x18);
param_1[4] = (ulong)*(uint *)(param_2 + 0x1c);
param_1[5] = (ulong)*(ushort *)(param_2 + 0x20) + 1;
param_1[6] = (ulong)*(uint3 *)(param_2 + 0x22);
*param_1 = (ulong)*(uint *)(param_2 + 0x28) |
(ulong)*(byte *)(param_2 + 0x27) << 0x30 | (ulong)*(ushort *)(param_2 + 0x25) << 0x20;
return;
}
| |
23,299 | stbi__compute_transparency(stbi__png*, unsigned char*, int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)
{
stbi__context *s = z->s;
stbi__uint32 i, pixel_count = s->img_x * s->img_y;
stbi_uc *p = z->out;
// compute color-based transparency, assuming we've
// already got 255 as the alpha value in the output
STBI_ASSERT(out_n == 2 || out_n == 4);
if (out_n == 2) {
for (i=0; i < pixel_count; ++i) {
p[1] = (p[0] == tc[0] ? 0 : 255);
p += 2;
}
} else {
for (i=0; i < pixel_count; ++i) {
if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2])
p[3] = 0;
p += 4;
}
}
return 1;
} | O1 | c | stbi__compute_transparency(stbi__png*, unsigned char*, int):
movq (%rdi), %r8
movq 0x18(%rdi), %rax
movl 0x4(%r8), %ecx
imull (%r8), %ecx
cmpl $0x2, %edx
jne 0x3484c
testl %ecx, %ecx
je 0x3487f
movl %ecx, %ecx
xorl %edx, %edx
movb (%rax,%rdx,2), %dil
cmpb (%rsi), %dil
setne %dil
negb %dil
movb %dil, 0x1(%rax,%rdx,2)
incq %rdx
cmpl %edx, %ecx
jne 0x34830
jmp 0x3487f
testl %ecx, %ecx
je 0x3487f
movl %ecx, %ecx
xorl %edx, %edx
movb (%rax,%rdx,4), %dil
cmpb (%rsi), %dil
jne 0x34878
movb 0x1(%rax,%rdx,4), %dil
cmpb 0x1(%rsi), %dil
jne 0x34878
movb 0x2(%rax,%rdx,4), %dil
cmpb 0x2(%rsi), %dil
jne 0x34878
movb $0x0, 0x3(%rax,%rdx,4)
incq %rdx
cmpl %edx, %ecx
jne 0x34854
retq
| _ZL26stbi__compute_transparencyP9stbi__pngPhi:
mov r8, [rdi]
mov rax, [rdi+18h]
mov ecx, [r8+4]
imul ecx, [r8]
cmp edx, 2
jnz short loc_3484C
test ecx, ecx
jz short locret_3487F
mov ecx, ecx
xor edx, edx
loc_34830:
mov dil, [rax+rdx*2]
cmp dil, [rsi]
setnz dil
neg dil
mov [rax+rdx*2+1], dil
inc rdx
cmp ecx, edx
jnz short loc_34830
jmp short locret_3487F
loc_3484C:
test ecx, ecx
jz short locret_3487F
mov ecx, ecx
xor edx, edx
loc_34854:
mov dil, [rax+rdx*4]
cmp dil, [rsi]
jnz short loc_34878
mov dil, [rax+rdx*4+1]
cmp dil, [rsi+1]
jnz short loc_34878
mov dil, [rax+rdx*4+2]
cmp dil, [rsi+2]
jnz short loc_34878
mov byte ptr [rax+rdx*4+3], 0
loc_34878:
inc rdx
cmp ecx, edx
jnz short loc_34854
locret_3487F:
retn
| long long stbi__compute_transparency(_QWORD *a1, _BYTE *a2, int a3)
{
long long result; // rax
int v4; // ecx
long long v5; // rdx
long long v6; // rdx
result = a1[3];
v4 = *(_DWORD *)*a1 * *(_DWORD *)(*a1 + 4LL);
if ( a3 == 2 )
{
if ( v4 )
{
v5 = 0LL;
do
{
*(_BYTE *)(result + 2 * v5 + 1) = -(*(_BYTE *)(result + 2 * v5) != *a2);
++v5;
}
while ( v4 != (_DWORD)v5 );
}
}
else if ( v4 )
{
v6 = 0LL;
do
{
if ( *(_BYTE *)(result + 4 * v6) == *a2
&& *(_BYTE *)(result + 4 * v6 + 1) == a2[1]
&& *(_BYTE *)(result + 4 * v6 + 2) == a2[2] )
{
*(_BYTE *)(result + 4 * v6 + 3) = 0;
}
++v6;
}
while ( v4 != (_DWORD)v6 );
}
return result;
}
| stbi__compute_transparency:
MOV R8,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x18]
MOV ECX,dword ptr [R8 + 0x4]
IMUL ECX,dword ptr [R8]
CMP EDX,0x2
JNZ 0x0013484c
TEST ECX,ECX
JZ 0x0013487f
MOV ECX,ECX
XOR EDX,EDX
LAB_00134830:
MOV DIL,byte ptr [RAX + RDX*0x2]
CMP DIL,byte ptr [RSI]
SETNZ DIL
NEG DIL
MOV byte ptr [RAX + RDX*0x2 + 0x1],DIL
INC RDX
CMP ECX,EDX
JNZ 0x00134830
JMP 0x0013487f
LAB_0013484c:
TEST ECX,ECX
JZ 0x0013487f
MOV ECX,ECX
XOR EDX,EDX
LAB_00134854:
MOV DIL,byte ptr [RAX + RDX*0x4]
CMP DIL,byte ptr [RSI]
JNZ 0x00134878
MOV DIL,byte ptr [RAX + RDX*0x4 + 0x1]
CMP DIL,byte ptr [RSI + 0x1]
JNZ 0x00134878
MOV DIL,byte ptr [RAX + RDX*0x4 + 0x2]
CMP DIL,byte ptr [RSI + 0x2]
JNZ 0x00134878
MOV byte ptr [RAX + RDX*0x4 + 0x3],0x0
LAB_00134878:
INC RDX
CMP ECX,EDX
JNZ 0x00134854
LAB_0013487f:
RET
|
/* stbi__compute_transparency(stbi__png*, unsigned char*, int) */
void stbi__compute_transparency(stbi__png *param_1,uchar *param_2,int param_3)
{
long lVar1;
int iVar2;
long lVar3;
lVar1 = *(long *)(param_1 + 0x18);
iVar2 = (*(int **)param_1)[1] * **(int **)param_1;
if (param_3 == 2) {
if (iVar2 != 0) {
lVar3 = 0;
do {
*(char *)(lVar1 + 1 + lVar3 * 2) = -(*(uchar *)(lVar1 + lVar3 * 2) != *param_2);
lVar3 = lVar3 + 1;
} while (iVar2 != (int)lVar3);
}
}
else if (iVar2 != 0) {
lVar3 = 0;
do {
if (((*(uchar *)(lVar1 + lVar3 * 4) == *param_2) &&
(*(uchar *)(lVar1 + 1 + lVar3 * 4) == param_2[1])) &&
(*(uchar *)(lVar1 + 2 + lVar3 * 4) == param_2[2])) {
*(int1 *)(lVar1 + 3 + lVar3 * 4) = 0;
}
lVar3 = lVar3 + 1;
} while (iVar2 != (int)lVar3);
}
return;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.