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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
20,900 | minja::FilterTemplateToken::~FilterTemplateToken() | monkey531[P]llama/common/minja.hpp | FilterTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && filter)
: TemplateToken(Type::Filter, location, pre, post), filter(std::move(filter)) {} | O3 | cpp | minja::FilterTemplateToken::~FilterTemplateToken():
pushq %rbx
movq %rdi, %rbx
leaq 0x8135f(%rip), %rax # 0xdae68
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x59b1e
callq 0x2f20e
leaq 0x806a3(%rip), %rax # 0xda1c8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x59b3a
callq 0x2f20e
movl $0x40, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x186a0
| _ZN5minja19FilterTemplateTokenD0Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_59B1E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_59B1E:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_59B3A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_59B3A:
mov esi, 40h ; '@'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void minja::FilterTemplateToken::~FilterTemplateToken(minja::FilterTemplateToken *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::FilterTemplateToken + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
operator delete(this, 0x40uLL);
}
| ~FilterTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1dae68]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x00159b1e
CALL 0x0012f20e
LAB_00159b1e:
LEA RAX,[0x1da1c8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x00159b3a
CALL 0x0012f20e
LAB_00159b3a:
MOV ESI,0x40
MOV RDI,RBX
POP RBX
JMP 0x001186a0
|
/* minja::FilterTemplateToken::~FilterTemplateToken() */
void __thiscall minja::FilterTemplateToken::~FilterTemplateToken(FilterTemplateToken *this)
{
*(int ***)this = &PTR__FilterTemplateToken_001dae78;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
*(int ***)this = &PTR__TemplateToken_001da1d8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
}
operator_delete(this,0x40);
return;
}
| |
20,901 | directory_file_name | eloqsql/mysys/my_lib.c | static char *directory_file_name (char * dst, const char *src)
{
/* Process as Unix format: just remove test the final slash. */
char *end;
DBUG_ASSERT(strlen(src) < (FN_REFLEN + 1));
if (src[0] == 0)
src= (char*) "."; /* Use empty as current */
end= strnmov(dst, src, FN_REFLEN + 1);
if (end[-1] != FN_LIBCHAR)
{
*end++= FN_LIBCHAR; /* Add last '/' */
*end='\0';
}
return end;
} | O0 | c | directory_file_name:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0x2e9e2
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2e9f9
leaq 0x4a634(%rip), %rax # 0x79029
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x201, %edx # imm = 0x201
callq 0x76630
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movsbl -0x1(%rax), %eax
cmpl $0x2f, %eax
je 0x2ea35
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movb $0x2f, (%rax)
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
| directory_file_name:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_2E9E2:
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_2E9F9
lea rax, asc_79028+1; "."
mov [rbp+var_10], rax
loc_2E9F9:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, 201h
call strnmov
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax-1]
cmp eax, 2Fh ; '/'
jz short loc_2EA35
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
mov byte ptr [rax], 2Fh ; '/'
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
loc_2EA35:
mov rax, [rbp+var_18]
add rsp, 20h
pop rbp
retn
| _BYTE * directory_file_name(long long a1, char *a2)
{
_BYTE *v2; // rax
_BYTE *v4; // [rsp+8h] [rbp-18h]
char *v5; // [rsp+10h] [rbp-10h]
v5 = a2;
if ( !*a2 )
v5 = ".";
v4 = (_BYTE *)strnmov(a1, v5, 513LL);
if ( *(v4 - 1) != 47 )
{
v2 = v4++;
*v2 = 47;
*v4 = 0;
}
return v4;
}
| directory_file_name:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x0012e9e2
LAB_0012e9e2:
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x0012e9f9
LEA RAX,[0x179029]
MOV qword ptr [RBP + -0x10],RAX
LAB_0012e9f9:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x201
CALL 0x00176630
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX + -0x1]
CMP EAX,0x2f
JZ 0x0012ea35
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOV byte ptr [RAX],0x2f
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
LAB_0012ea35:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x20
POP RBP
RET
|
int1 * directory_file_name(int8 param_1,char *param_2)
{
int1 *puVar1;
int1 *local_20;
char *local_18;
local_18 = param_2;
if (*param_2 == '\0') {
local_18 = ".";
}
puVar1 = (int1 *)strnmov(param_1,local_18,0x201);
local_20 = puVar1;
if (puVar1[-1] != '/') {
local_20 = puVar1 + 1;
*puVar1 = 0x2f;
*local_20 = 0;
}
return local_20;
}
| |
20,902 | remainingElementsCount_add | bluesky950520[P]quickjs/quickjs.c | static __exception int remainingElementsCount_add(JSContext *ctx,
JSValue resolve_element_env,
int addend)
{
JSValue val;
int remainingElementsCount;
val = JS_GetPropertyUint32(ctx, resolve_element_env, 0);
if (JS_IsException(val))
return -1;
if (JS_ToInt32Free(ctx, &remainingElementsCount, val))
return -1;
remainingElementsCount += addend;
if (JS_SetPropertyUint32(ctx, resolve_element_env, 0,
js_int32(remainingElementsCount)) < 0)
return -1;
return (remainingElementsCount == 0);
} | O0 | c | remainingElementsCount_add:
subq $0x68, %rsp
movq %rsi, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movq %rdi, 0x48(%rsp)
movl %ecx, 0x44(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
xorl %ecx, %ecx
callq 0x301a0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x9473c
movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF
jmp 0x947cb
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c(%rsp), %rsi
callq 0x37cd0
cmpl $0x0, %eax
je 0x94764
movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF
jmp 0x947cb
movl 0x44(%rsp), %eax
addl 0x2c(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0x48(%rsp), %rax
movq %rax, (%rsp)
movl 0x2c(%rsp), %edi
callq 0x32a00
movq (%rsp), %rdi
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x8(%rsp), %r8
movq 0x10(%rsp), %r9
xorl %ecx, %ecx
callq 0x32090
cmpl $0x0, %eax
jge 0x947ba
movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF
jmp 0x947cb
cmpl $0x0, 0x2c(%rsp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| remainingElementsCount_add:
sub rsp, 68h
mov [rsp+68h+var_18], rsi
mov [rsp+68h+var_10], rdx
mov [rsp+68h+var_20], rdi
mov [rsp+68h+var_24], ecx
mov rdi, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_18]
mov rdx, [rsp+68h+var_10]
xor ecx, ecx
call JS_GetPropertyUint32
mov [rsp+68h+var_50], rax
mov [rsp+68h+var_48], rdx
mov rax, [rsp+68h+var_50]
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_48]
mov [rsp+68h+var_30], rax
mov rdi, [rsp+68h+var_38]
mov rsi, [rsp+68h+var_30]
call JS_IsException_1
cmp eax, 0
jz short loc_9473C
mov [rsp+68h+var_4], 0FFFFFFFFh
jmp loc_947CB
loc_9473C:
mov rdi, [rsp+68h+var_20]
mov rdx, [rsp+68h+var_38]
mov rcx, [rsp+68h+var_30]
lea rsi, [rsp+68h+var_3C]
call JS_ToInt32Free
cmp eax, 0
jz short loc_94764
mov [rsp+68h+var_4], 0FFFFFFFFh
jmp short loc_947CB
loc_94764:
mov eax, [rsp+68h+var_24]
add eax, [rsp+68h+var_3C]
mov [rsp+68h+var_3C], eax
mov rax, [rsp+68h+var_20]
mov [rsp+68h+var_68], rax
mov edi, [rsp+68h+var_3C]
call js_int32
mov rdi, [rsp+68h+var_68]
mov [rsp+68h+var_60], rax
mov [rsp+68h+var_58], rdx
mov rsi, [rsp+68h+var_18]
mov rdx, [rsp+68h+var_10]
mov r8, [rsp+68h+var_60]
mov r9, [rsp+68h+var_58]
xor ecx, ecx
call JS_SetPropertyUint32
cmp eax, 0
jge short loc_947BA
mov [rsp+68h+var_4], 0FFFFFFFFh
jmp short loc_947CB
loc_947BA:
cmp [rsp+68h+var_3C], 0
setz al
and al, 1
movzx eax, al
mov [rsp+68h+var_4], eax
loc_947CB:
mov eax, [rsp+68h+var_4]
add rsp, 68h
retn
| long long remainingElementsCount_add(long long a1, long long a2, long long a3, int a4)
{
long long v4; // rdx
long long v5; // rdx
int v7; // [rsp+0h] [rbp-68h]
long long v8; // [rsp+8h] [rbp-60h]
int v9; // [rsp+2Ch] [rbp-3Ch] BYREF
long long PropertyUint32; // [rsp+30h] [rbp-38h]
long long v11; // [rsp+38h] [rbp-30h]
int v12; // [rsp+44h] [rbp-24h]
long long v13; // [rsp+48h] [rbp-20h]
long long v14; // [rsp+50h] [rbp-18h]
long long v15; // [rsp+58h] [rbp-10h]
v14 = a2;
v15 = a3;
v13 = a1;
v12 = a4;
PropertyUint32 = JS_GetPropertyUint32(a1, a2, a3, 0);
v11 = v4;
if ( JS_IsException_1(PropertyUint32, v4) )
{
return (unsigned int)-1;
}
else if ( (unsigned int)JS_ToInt32Free(v13, &v9, PropertyUint32, v11) )
{
return (unsigned int)-1;
}
else
{
v9 += v12;
v7 = v13;
v8 = js_int32(v9);
if ( (int)JS_SetPropertyUint32(v7, v14, v15, 0, v8, v5) >= 0 )
return v9 == 0;
else
return (unsigned int)-1;
}
}
| remainingElementsCount_add:
SUB RSP,0x68
MOV qword ptr [RSP + 0x50],RSI
MOV qword ptr [RSP + 0x58],RDX
MOV qword ptr [RSP + 0x48],RDI
MOV dword ptr [RSP + 0x44],ECX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
XOR ECX,ECX
CALL 0x001301a0
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x0019473c
MOV dword ptr [RSP + 0x64],0xffffffff
JMP 0x001947cb
LAB_0019473c:
MOV RDI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x38]
LEA RSI,[RSP + 0x2c]
CALL 0x00137cd0
CMP EAX,0x0
JZ 0x00194764
MOV dword ptr [RSP + 0x64],0xffffffff
JMP 0x001947cb
LAB_00194764:
MOV EAX,dword ptr [RSP + 0x44]
ADD EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x2c],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP],RAX
MOV EDI,dword ptr [RSP + 0x2c]
CALL 0x00132a00
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
MOV R8,qword ptr [RSP + 0x8]
MOV R9,qword ptr [RSP + 0x10]
XOR ECX,ECX
CALL 0x00132090
CMP EAX,0x0
JGE 0x001947ba
MOV dword ptr [RSP + 0x64],0xffffffff
JMP 0x001947cb
LAB_001947ba:
CMP dword ptr [RSP + 0x2c],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + 0x64],EAX
LAB_001947cb:
MOV EAX,dword ptr [RSP + 0x64]
ADD RSP,0x68
RET
|
uint remainingElementsCount_add
(int8 param_1,int8 param_2,int8 param_3,int param_4)
{
int8 uVar1;
int iVar2;
int1 auVar3 [16];
int local_3c;
int1 local_38 [16];
int local_24;
int8 local_20;
int8 local_18;
int8 local_10;
uint local_4;
local_24 = param_4;
local_20 = param_1;
local_18 = param_2;
local_10 = param_3;
local_38 = JS_GetPropertyUint32(param_1,param_2,param_3,0);
iVar2 = JS_IsException(local_38._0_8_,local_38._8_8_);
if (iVar2 == 0) {
iVar2 = JS_ToInt32Free(local_20,&local_3c,local_38._0_8_,local_38._8_8_);
uVar1 = local_20;
if (iVar2 == 0) {
local_3c = local_24 + local_3c;
auVar3 = js_int32(local_3c);
iVar2 = JS_SetPropertyUint32(uVar1,local_18,local_10,0,auVar3._0_8_,auVar3._8_8_);
if (iVar2 < 0) {
local_4 = 0xffffffff;
}
else {
local_4 = (uint)(local_3c == 0);
}
}
else {
local_4 = 0xffffffff;
}
}
else {
local_4 = 0xffffffff;
}
return local_4;
}
| |
20,903 | js_atomics_isLockFree | bluesky950520[P]quickjs/quickjs.c | static JSValue js_atomics_isLockFree(JSContext *ctx,
JSValue this_obj,
int argc, JSValue *argv)
{
int v, ret;
if (JS_ToInt32Sat(ctx, &v, argv[0]))
return JS_EXCEPTION;
ret = (v == 1 || v == 2 || v == 4 || v == 8);
return js_bool(ret);
} | O1 | c | js_atomics_isLockFree:
subq $0x18, %rsp
movq (%r8), %rdx
movq 0x8(%r8), %rcx
movq %rdx, 0x10(%rsp)
cmpl $-0x9, %ecx
jb 0x7f499
movq 0x10(%rsp), %rax
incl (%rax)
leaq 0xc(%rsp), %rsi
callq 0x276c3
testl %eax, %eax
je 0x7f4b0
movl $0x6, %edx
xorl %eax, %eax
jmp 0x7f4d7
movl $0x1, %edx
movl 0xc(%rsp), %ecx
cmpl $0x4, %ecx
ja 0x7f4cf
movl $0x16, %eax
btl %ecx, %eax
jae 0x7f4cf
movl $0x1, %eax
jmp 0x7f4d7
xorl %eax, %eax
cmpl $0x8, %ecx
sete %al
addq $0x18, %rsp
retq
| js_atomics_isLockFree:
sub rsp, 18h
mov rdx, [r8]
mov rcx, [r8+8]
mov [rsp+18h+var_8], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_7F499
mov rax, [rsp+18h+var_8]
inc dword ptr [rax]
loc_7F499:
lea rsi, [rsp+18h+var_C]
call JS_ToInt32SatFree
test eax, eax
jz short loc_7F4B0
mov edx, 6
xor eax, eax
jmp short loc_7F4D7
loc_7F4B0:
mov edx, 1
mov ecx, [rsp+18h+var_C]
cmp ecx, 4
ja short loc_7F4CF
mov eax, 16h
bt eax, ecx
jnb short loc_7F4CF
mov eax, 1
jmp short loc_7F4D7
loc_7F4CF:
xor eax, eax
cmp ecx, 8
setz al
loc_7F4D7:
add rsp, 18h
retn
| _BOOL8 js_atomics_isLockFree(long long a1, long long a2, long long a3, long long a4, long long *a5)
{
long long v5; // rdx
long long v6; // rcx
int v8; // eax
unsigned int v9; // [rsp+Ch] [rbp-Ch] BYREF
_DWORD *v10; // [rsp+10h] [rbp-8h]
v5 = *a5;
v6 = a5[1];
v10 = (_DWORD *)*a5;
if ( (unsigned int)v6 >= 0xFFFFFFF7 )
++*v10;
if ( (unsigned int)JS_ToInt32SatFree(a1, (int *)&v9, v5, v6) )
return 0LL;
if ( v9 <= 4 )
{
v8 = 22;
if ( _bittest(&v8, v9) )
return 1LL;
}
return v9 == 8;
}
| js_atomics_isLockFree:
SUB RSP,0x18
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
MOV qword ptr [RSP + 0x10],RDX
CMP ECX,-0x9
JC 0x0017f499
MOV RAX,qword ptr [RSP + 0x10]
INC dword ptr [RAX]
LAB_0017f499:
LEA RSI,[RSP + 0xc]
CALL 0x001276c3
TEST EAX,EAX
JZ 0x0017f4b0
MOV EDX,0x6
XOR EAX,EAX
JMP 0x0017f4d7
LAB_0017f4b0:
MOV EDX,0x1
MOV ECX,dword ptr [RSP + 0xc]
CMP ECX,0x4
JA 0x0017f4cf
MOV EAX,0x16
BT EAX,ECX
JNC 0x0017f4cf
MOV EAX,0x1
JMP 0x0017f4d7
LAB_0017f4cf:
XOR EAX,EAX
CMP ECX,0x8
SETZ AL
LAB_0017f4d7:
ADD RSP,0x18
RET
|
bool js_atomics_isLockFree(int8 param_1)
{
int iVar1;
int8 *in_R8;
bool bVar2;
uint local_c;
int *local_8;
local_8 = (int *)*in_R8;
if (0xfffffff6 < (uint)in_R8[1]) {
*local_8 = *local_8 + 1;
}
iVar1 = JS_ToInt32SatFree(param_1,&local_c);
if (iVar1 == 0) {
if ((local_c < 5) && ((0x16U >> (local_c & 0x1f) & 1) != 0)) {
bVar2 = true;
}
else {
bVar2 = local_c == 8;
}
}
else {
bVar2 = false;
}
return bVar2;
}
| |
20,904 | VkShaderModuleCreateInfo const* findChain<VkShaderModuleCreateInfo>(void const*, VkStructureType) | HansKristian-Work[P]pyroveil/layer-util/dispatch_helper.hpp | static inline const T *findChain(const void *pNext, VkStructureType sType)
{
while (pNext)
{
auto *s = static_cast<const VkBaseInStructure *>(pNext);
if (s->sType == sType)
return static_cast<const T *>(pNext);
pNext = s->pNext;
}
return nullptr;
} | O0 | cpp | VkShaderModuleCreateInfo const* findChain<VkShaderModuleCreateInfo>(void const*, VkStructureType):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x18671d
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x18670f
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x186725
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x1866eb
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
| _ZL9findChainI24VkShaderModuleCreateInfoEPKT_PKv15VkStructureType:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
loc_1866EB:
cmp [rbp+var_10], 0
jz short loc_18671D
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov eax, [rax]
cmp eax, [rbp+var_14]
jnz short loc_18670F
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp short loc_186725
loc_18670F:
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov [rbp+var_10], rax
jmp short loc_1866EB
loc_18671D:
mov [rbp+var_8], 0
loc_186725:
mov rax, [rbp+var_8]
pop rbp
retn
| long long findChain<VkShaderModuleCreateInfo>(long long a1, int a2)
{
while ( a1 )
{
if ( *(_DWORD *)a1 == a2 )
return a1;
a1 = *(_QWORD *)(a1 + 8);
}
return 0LL;
}
| |||
20,905 | VkShaderModuleCreateInfo const* findChain<VkShaderModuleCreateInfo>(void const*, VkStructureType) | HansKristian-Work[P]pyroveil/layer-util/dispatch_helper.hpp | static inline const T *findChain(const void *pNext, VkStructureType sType)
{
while (pNext)
{
auto *s = static_cast<const VkBaseInStructure *>(pNext);
if (s->sType == sType)
return static_cast<const T *>(pNext);
pNext = s->pNext;
}
return nullptr;
} | O2 | cpp | VkShaderModuleCreateInfo const* findChain<VkShaderModuleCreateInfo>(void const*, VkStructureType):
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
testq %rax, %rax
je 0xaab66
cmpl $0x10, (%rax)
je 0xaab66
movq 0x8(%rax), %rax
jmp 0xaab56
popq %rbp
retq
| _ZL9findChainI24VkShaderModuleCreateInfoEPKT_PKv15VkStructureType:
push rbp
mov rbp, rsp
mov rax, rdi
loc_AAB56:
test rax, rax
jz short loc_AAB66
cmp dword ptr [rax], 10h
jz short loc_AAB66
mov rax, [rax+8]
jmp short loc_AAB56
loc_AAB66:
pop rbp
retn
| long long findChain<VkShaderModuleCreateInfo>(long long a1)
{
long long result; // rax
for ( result = a1; result && *(_DWORD *)result != 16; result = *(_QWORD *)(result + 8) )
;
return result;
}
| findChain<VkShaderModuleCreateInfo>:
PUSH RBP
MOV RBP,RSP
MOV RAX,RDI
LAB_001aab56:
TEST RAX,RAX
JZ 0x001aab66
CMP dword ptr [RAX],0x10
JZ 0x001aab66
MOV RAX,qword ptr [RAX + 0x8]
JMP 0x001aab56
LAB_001aab66:
POP RBP
RET
|
/* VkShaderModuleCreateInfo const* findChain<VkShaderModuleCreateInfo>(void const*, VkStructureType)
*/
VkShaderModuleCreateInfo * findChain<VkShaderModuleCreateInfo>(VkShaderModuleCreateInfo *param_1)
{
for (; (param_1 != (VkShaderModuleCreateInfo *)0x0 && (*(int *)param_1 != 0x10));
param_1 = *(VkShaderModuleCreateInfo **)(param_1 + 8)) {
}
return param_1;
}
| |
20,906 | flux::parser::LiteralExpr::clone() const | kvthweatt[P]FluxLang/src/parser/ast.cpp | std::unique_ptr<Expr> LiteralExpr::clone() const {
return std::make_unique<LiteralExpr>(token, value);
} | O1 | cpp | flux::parser::LiteralExpr::clone() const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x28(%rsi), %r12
movl $0xb0, %edi
callq 0x6270
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x12574
addq $0x50, %r15
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x124d8
leaq 0x10(%rsp), %rsi
movzbl 0x20(%rsi), %eax
leaq 0x2dabd(%rip), %rcx # 0x3ac10
leaq 0xf(%rsp), %rdi
callq *(%rcx,%rax,8)
movq %rbx, (%r14)
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x8025
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1225e
jmp 0xd187
movq %rax, %r14
movl $0xb0, %esi
movq %rbx, %rdi
callq 0x6280
movq %r14, %rdi
callq 0x6440
| _ZNK4flux6parser11LiteralExpr5cloneEv:
push r15
push r14
push r12
push rbx
sub rsp, 38h
mov r15, rsi
mov r14, rdi
lea r12, [rsi+28h]
mov edi, 0B0h; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
lea rdi, [rsp+58h+var_48]
mov rsi, r12
call _ZNSt8__detail9__variant15_Copy_ctor_baseILb0EJldNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEEC2ERKS8_; std::__detail::__variant::_Copy_ctor_base<false,long,double,std::string,bool>::_Copy_ctor_base(std::__detail::__variant::_Copy_ctor_base<false,long,double,std::string,bool> const&)
add r15, 50h ; 'P'
lea rdx, [rsp+58h+var_48]
mov rdi, rbx
mov rsi, r15
call _ZN4flux6parser11LiteralExprC2ERKNS_5lexer5TokenESt7variantIJldNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEE; flux::parser::LiteralExpr::LiteralExpr(flux::lexer::Token const&,std::variant<long,double,std::string,bool>)
lea rsi, [rsp+58h+var_48]
movzx eax, byte ptr [rsi+20h]
lea rcx, _ZNSt8__detail9__variant12__gen_vtableIvOZNS0_16_Variant_storageILb0EJldNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEE8_M_resetEvEUlOT_E_JRSt7variantIJldS8_bEEEE9_S_vtableE; std::__detail::__variant::__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,long,double,std::string,bool>::_M_reset(void)::{lambda(void &&)#1} &&,std::variant<long,double,std::string,bool> &>::_S_vtable
lea rdi, [rsp+58h+var_49]
call ds:(_ZNSt8__detail9__variant12__gen_vtableIvOZNS0_16_Variant_storageILb0EJldNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEE8_M_resetEvEUlOT_E_JRSt7variantIJldS8_bEEEE9_S_vtableE - 3AC10h)[rcx+rax*8]; std::__detail::__variant::__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,long,double,std::string,bool>::_M_reset(void)::{lambda(void &&)#1} &&,std::variant<long,double,std::string,bool> &>::_S_vtable ...
mov [r14], rbx
mov rax, r14
add rsp, 38h
pop rbx
pop r12
pop r14
pop r15
retn
mov rdi, rax
call __clang_call_terminate
mov r14, rax
lea rdi, [rsp+arg_8]
call _ZNSt8__detail9__variant16_Variant_storageILb0EJldNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEED2Ev; std::__detail::__variant::_Variant_storage<false,long,double,std::string,bool>::~_Variant_storage()
jmp short loc_D187
mov r14, rax
loc_D187:
mov esi, 0B0h; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
| flux::parser::LiteralExpr * flux::parser::LiteralExpr::clone(flux::parser::LiteralExpr *this, long long a2)
{
long long v2; // rbx
char v4; // [rsp+Fh] [rbp-49h] BYREF
_BYTE v5[72]; // [rsp+10h] [rbp-48h] BYREF
v2 = operator new(0xB0uLL);
std::__detail::__variant::_Copy_ctor_base<false,long,double,std::string,bool>::_Copy_ctor_base(v5, a2 + 40);
flux::parser::LiteralExpr::LiteralExpr(v2, a2 + 80, v5);
((void ( *)(char *))std::__detail::__variant::__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,long,double,std::string,bool>::_M_reset(void)::{lambda(void &&)#1} &&,std::variant<long,double,std::string,bool> &>::_S_vtable[v5[32]])(&v4);
*(_QWORD *)this = v2;
return this;
}
| clone:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,RSI
MOV R14,RDI
LEA R12,[RSI + 0x28]
MOV EDI,0xb0
CALL 0x00106270
MOV RBX,RAX
LAB_0010d122:
LEA RDI,[RSP + 0x10]
MOV RSI,R12
CALL 0x00112574
ADD R15,0x50
LAB_0010d133:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV RSI,R15
CALL 0x001124d8
LEA RSI,[RSP + 0x10]
MOVZX EAX,byte ptr [RSI + 0x20]
LEA RCX,[0x13ac10]
LAB_0010d153:
LEA RDI,[RSP + 0xf]
CALL qword ptr [RCX + RAX*0x8]
LAB_0010d15b:
MOV qword ptr [R14],RBX
MOV RAX,R14
ADD RSP,0x38
POP RBX
POP R12
POP R14
POP R15
RET
|
/* flux::parser::LiteralExpr::clone() const */
void flux::parser::LiteralExpr::clone(void)
{
LiteralExpr *pLVar1;
long in_RSI;
int8 *in_RDI;
int1 local_49;
_Copy_ctor_base<false,long,double,std::__cxx11::string,bool> local_48 [32];
byte local_28;
pLVar1 = (LiteralExpr *)operator_new(0xb0);
/* try { // try from 0010d122 to 0010d12e has its CatchHandler @ 0010d184 */
std::__detail::__variant::_Copy_ctor_base<false,long,double,std::__cxx11::string,bool>::
_Copy_ctor_base(local_48,(_Copy_ctor_base *)(in_RSI + 0x28));
/* try { // try from 0010d133 to 0010d142 has its CatchHandler @ 0010d175 */
LiteralExpr(pLVar1,in_RSI + 0x50,local_48);
/* try { // try from 0010d153 to 0010d15a has its CatchHandler @ 0010d16d */
(**(code **)(std::__detail::__variant::
__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,long,double,std::__cxx11::string,bool>::_M_reset()::{lambda(auto:1&&)#1}&&,std::variant<long,double,std::__cxx11::string,bool>&>
::_S_vtable + (ulong)local_28 * 8))(&local_49);
*in_RDI = pLVar1;
return;
}
| |
20,907 | mi_read_rnd_static_record | eloqsql/storage/myisam/mi_statrec.c | int _mi_read_rnd_static_record(MI_INFO *info, uchar *buf,
register my_off_t filepos,
my_bool skip_deleted_blocks)
{
int locked,error,cache_read;
uint cache_length;
MYISAM_SHARE *share=info->s;
DBUG_ENTER("_mi_read_rnd_static_record");
cache_read=0;
cache_length=0;
if (info->opt_flag & WRITE_CACHE_USED &&
(info->rec_cache.pos_in_file <= filepos || skip_deleted_blocks) &&
flush_io_cache(&info->rec_cache))
DBUG_RETURN(my_errno);
if (info->opt_flag & READ_CACHE_USED)
{ /* Cache in use */
if (filepos == my_b_tell(&info->rec_cache) &&
(skip_deleted_blocks || !filepos))
{
cache_read=1; /* Read record using cache */
cache_length=(uint) (info->rec_cache.read_end - info->rec_cache.read_pos);
}
else
info->rec_cache.seek_not_done=1; /* Filepos is changed */
}
locked=0;
if (info->lock_type == F_UNLCK)
{
if (filepos >= info->state->data_file_length)
{ /* Test if new records */
if (_mi_readinfo(info,F_RDLCK,0))
DBUG_RETURN(my_errno);
locked=1;
}
else
{ /* We don't nead new info */
#ifndef UNSAFE_LOCKING
if ((! cache_read || share->base.reclength > cache_length) &&
share->tot_locks == 0)
{ /* record not in cache */
if (my_lock(share->kfile,F_RDLCK,0L,F_TO_EOF,
MYF(MY_SEEK_NOT_DONE) | info->lock_wait))
DBUG_RETURN(my_errno);
locked=1;
}
#else
info->tmp_lock_type=F_RDLCK;
#endif
}
}
if (filepos >= info->state->data_file_length)
{
DBUG_PRINT("test",("filepos: %ld (%ld) records: %ld del: %ld",
(long) filepos/share->base.reclength, (long) filepos,
(long) info->state->records, (long) info->state->del));
fast_mi_writeinfo(info);
DBUG_RETURN(my_errno=HA_ERR_END_OF_FILE);
}
info->lastpos= filepos;
info->nextpos= filepos+share->base.pack_reclength;
if (! cache_read) /* No cacheing */
{
if ((error=_mi_read_static_record(info,filepos,buf)))
{
if (error > 0)
error=my_errno=HA_ERR_RECORD_DELETED;
else
error=my_errno;
}
DBUG_RETURN(error);
}
/*
Read record with caching. If my_b_read() returns TRUE, less than the
requested bytes have been read. In this case rec_cache.error is
either -1 for a read error, or contains the number of bytes copied
into the buffer.
*/
error=my_b_read(&info->rec_cache,(uchar*) buf,share->base.reclength);
if (info->s->base.pack_reclength != info->s->base.reclength && !error)
{
char tmp[8]; /* Skill fill bytes */
error=my_b_read(&info->rec_cache,(uchar*) tmp,
info->s->base.pack_reclength - info->s->base.reclength);
}
if (locked)
(void) _mi_writeinfo(info,0); /* Unlock keyfile */
if (!error)
{
if (!buf[0])
{ /* Record is removed */
DBUG_RETURN(my_errno=HA_ERR_RECORD_DELETED);
}
/* Found and may be updated */
info->update|= HA_STATE_AKTIV | HA_STATE_KEY_CHANGED;
DBUG_RETURN(0);
}
/* error is TRUE. my_errno should be set if rec_cache.error == -1 */
if (info->rec_cache.error != -1 || my_errno == 0)
{
/*
If we could not get a full record, we either have a broken record,
or are at end of file.
*/
if (info->rec_cache.error == 0)
my_errno= HA_ERR_END_OF_FILE;
else
my_errno= HA_ERR_WRONG_IN_RECORD;
}
DBUG_RETURN(my_errno); /* Something wrong (EOF?) */
} | O0 | c | mi_read_rnd_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %cl, %al
movq %fs:0x28, %rcx
movq %rcx, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movb %al, -0x31(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x20(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x4ac06
movq -0x20(%rbp), %rax
movq 0x220(%rax), %rax
cmpq -0x30(%rbp), %rax
jbe 0x4abdb
movsbl -0x31(%rbp), %eax
cmpl $0x0, %eax
je 0x4ac06
movq -0x20(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
movl $0x1, %esi
callq 0x6e710
cmpl $0x0, %eax
je 0x4ac06
jmp 0x4abf7
callq 0x82360
movl (%rax), %eax
movl %eax, -0x14(%rbp)
jmp 0x4af22
movq -0x20(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x4ac81
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0x4af50
movq %rax, %rcx
movq -0x58(%rbp), %rax
cmpq %rcx, %rax
jne 0x4ac71
movsbl -0x31(%rbp), %eax
cmpl $0x0, %eax
jne 0x4ac4c
cmpq $0x0, -0x30(%rbp)
jne 0x4ac71
movl $0x1, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq 0x238(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x230(%rcx), %rcx
subq %rcx, %rax
movl %eax, -0x44(%rbp)
jmp 0x4ac7f
movq -0x20(%rbp), %rax
movl $0x1, 0x300(%rax)
jmp 0x4ac81
movl $0x0, -0x38(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x2, 0x1f4(%rax)
jne 0x4ad45
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpq 0x28(%rcx), %rax
jb 0x4acd7
movq -0x20(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x37010
cmpl $0x0, %eax
je 0x4acce
jmp 0x4acbf
callq 0x82360
movl (%rax), %eax
movl %eax, -0x14(%rbp)
jmp 0x4af22
movl $0x1, -0x38(%rbp)
jmp 0x4ad43
cmpl $0x0, -0x40(%rbp)
je 0x4acf0
movq -0x50(%rbp), %rax
movq 0x140(%rax), %rax
movl -0x44(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x4ad41
movq -0x50(%rbp), %rax
cmpl $0x0, 0x368(%rax)
jne 0x4ad41
movq -0x50(%rbp), %rax
movl 0x350(%rax), %edi
movq -0x20(%rbp), %rax
movq 0x330(%rax), %r8
orq $0x20, %r8
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x7f8c0
cmpl $0x0, %eax
je 0x4ad3a
jmp 0x4ad2b
callq 0x82360
movl (%rax), %eax
movl %eax, -0x14(%rbp)
jmp 0x4af22
movl $0x1, -0x38(%rbp)
jmp 0x4ad43
jmp 0x4ad45
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpq 0x28(%rcx), %rax
jb 0x4ad8f
jmp 0x4ad59
jmp 0x4ad5b
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x368(%rax)
jne 0x4ad76
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x37170
jmp 0x4ad78
callq 0x82360
movl $0x89, (%rax)
movl $0x89, -0x14(%rbp)
jmp 0x4af22
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x170(%rax)
movq -0x30(%rbp), %rcx
movq -0x50(%rbp), %rax
addq 0x148(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x178(%rax)
cmpl $0x0, -0x40(%rbp)
jne 0x4ae0a
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4aa20
movl %eax, -0x3c(%rbp)
cmpl $0x0, %eax
je 0x4adfd
cmpl $0x0, -0x3c(%rbp)
jle 0x4adf1
callq 0x82360
movl $0x86, (%rax)
movl $0x86, -0x3c(%rbp)
jmp 0x4adfb
callq 0x82360
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x4adfd
jmp 0x4adff
movl -0x3c(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x4af22
movq -0x20(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
movq -0x28(%rbp), %rsi
movq -0x50(%rbp), %rax
movq 0x140(%rax), %rdx
callq 0x4afb0
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x148(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x140(%rcx), %rax
je 0x4ae83
cmpl $0x0, -0x3c(%rbp)
jne 0x4ae83
movq -0x20(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
leaq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x148(%rax), %rdx
movq -0x20(%rbp), %rax
movq (%rax), %rax
subq 0x140(%rax), %rdx
callq 0x4afb0
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x38(%rbp)
je 0x4ae94
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x37170
cmpl $0x0, -0x3c(%rbp)
jne 0x4aed8
movq -0x28(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x4aeb9
jmp 0x4aea5
callq 0x82360
movl $0x86, (%rax)
movl $0x86, -0x14(%rbp)
jmp 0x4af22
movq -0x20(%rbp), %rax
movl 0x1d0(%rax), %ecx
orl $0x82, %ecx
movl %ecx, 0x1d0(%rax)
movl $0x0, -0x14(%rbp)
jmp 0x4af22
movq -0x20(%rbp), %rax
cmpl $-0x1, 0x304(%rax)
jne 0x4aeef
callq 0x82360
cmpl $0x0, (%rax)
jne 0x4af16
movq -0x20(%rbp), %rax
cmpl $0x0, 0x304(%rax)
jne 0x4af09
callq 0x82360
movl $0x89, (%rax)
jmp 0x4af14
callq 0x82360
movl $0x7f, (%rax)
jmp 0x4af16
jmp 0x4af18
callq 0x82360
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x4af43
movl -0x5c(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
callq 0x283b0
nopl (%rax,%rax)
| _mi_read_rnd_static_record:
push rbp
mov rbp, rsp
sub rsp, 60h
mov al, cl
mov rcx, fs:28h
mov [rbp+var_8], rcx
mov [rbp+var_20], rdi
mov [rbp+var_28], rsi
mov [rbp+var_30], rdx
mov [rbp+var_31], al
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_50], rax
mov [rbp+var_40], 0
mov [rbp+var_44], 0
mov rax, [rbp+var_20]
mov eax, [rax+1C8h]
and eax, 10h
cmp eax, 0
jz short loc_4AC06
mov rax, [rbp+var_20]
mov rax, [rax+220h]
cmp rax, [rbp+var_30]
jbe short loc_4ABDB
movsx eax, [rbp+var_31]
cmp eax, 0
jz short loc_4AC06
loc_4ABDB:
mov rdi, [rbp+var_20]
add rdi, 220h
mov esi, 1
call my_b_flush_io_cache
cmp eax, 0
jz short loc_4AC06
jmp short $+2
loc_4ABF7:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_14], eax
jmp loc_4AF22
loc_4AC06:
mov rax, [rbp+var_20]
mov eax, [rax+1C8h]
and eax, 2
cmp eax, 0
jz short loc_4AC81
mov rax, [rbp+var_30]
mov [rbp+var_58], rax
mov rdi, [rbp+var_20]
add rdi, 220h
call my_b_tell
mov rcx, rax
mov rax, [rbp+var_58]
cmp rax, rcx
jnz short loc_4AC71
movsx eax, [rbp+var_31]
cmp eax, 0
jnz short loc_4AC4C
cmp [rbp+var_30], 0
jnz short loc_4AC71
loc_4AC4C:
mov [rbp+var_40], 1
mov rax, [rbp+var_20]
mov rax, [rax+238h]
mov rcx, [rbp+var_20]
mov rcx, [rcx+230h]
sub rax, rcx
mov [rbp+var_44], eax
jmp short loc_4AC7F
loc_4AC71:
mov rax, [rbp+var_20]
mov dword ptr [rax+300h], 1
loc_4AC7F:
jmp short $+2
loc_4AC81:
mov [rbp+var_38], 0
mov rax, [rbp+var_20]
cmp dword ptr [rax+1F4h], 2
jnz loc_4AD45
mov rax, [rbp+var_30]
mov rcx, [rbp+var_20]
mov rcx, [rcx+8]
cmp rax, [rcx+28h]
jb short loc_4ACD7
mov rdi, [rbp+var_20]
xor edx, edx
mov esi, edx
call _mi_readinfo
cmp eax, 0
jz short loc_4ACCE
jmp short $+2
loc_4ACBF:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_14], eax
jmp loc_4AF22
loc_4ACCE:
mov [rbp+var_38], 1
jmp short loc_4AD43
loc_4ACD7:
cmp [rbp+var_40], 0
jz short loc_4ACF0
mov rax, [rbp+var_50]
mov rax, [rax+140h]
mov ecx, [rbp+var_44]
cmp rax, rcx
jbe short loc_4AD41
loc_4ACF0:
mov rax, [rbp+var_50]
cmp dword ptr [rax+368h], 0
jnz short loc_4AD41
mov rax, [rbp+var_50]
mov edi, [rax+350h]
mov rax, [rbp+var_20]
mov r8, [rax+330h]
or r8, 20h
xor esi, esi
xor eax, eax
mov ecx, eax
mov rdx, rcx
call my_lock
cmp eax, 0
jz short loc_4AD3A
jmp short $+2
loc_4AD2B:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_14], eax
jmp loc_4AF22
loc_4AD3A:
mov [rbp+var_38], 1
loc_4AD41:
jmp short $+2
loc_4AD43:
jmp short $+2
loc_4AD45:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_20]
mov rcx, [rcx+8]
cmp rax, [rcx+28h]
jb short loc_4AD8F
jmp short $+2
loc_4AD59:
jmp short $+2
loc_4AD5B:
mov rax, [rbp+var_20]
mov rax, [rax]
cmp dword ptr [rax+368h], 0
jnz short loc_4AD76
mov rdi, [rbp+var_20]
xor esi, esi
call _mi_writeinfo
loc_4AD76:
jmp short $+2
loc_4AD78:
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_14], 89h
jmp loc_4AF22
loc_4AD8F:
mov rcx, [rbp+var_30]
mov rax, [rbp+var_20]
mov [rax+170h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_50]
add rcx, [rax+148h]
mov rax, [rbp+var_20]
mov [rax+178h], rcx
cmp [rbp+var_40], 0
jnz short loc_4AE0A
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_28]
call _mi_read_static_record
mov [rbp+var_3C], eax
cmp eax, 0
jz short loc_4ADFD
cmp [rbp+var_3C], 0
jle short loc_4ADF1
call _my_thread_var
mov dword ptr [rax], 86h
mov [rbp+var_3C], 86h
jmp short loc_4ADFB
loc_4ADF1:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_3C], eax
loc_4ADFB:
jmp short $+2
loc_4ADFD:
jmp short $+2
loc_4ADFF:
mov eax, [rbp+var_3C]
mov [rbp+var_14], eax
jmp loc_4AF22
loc_4AE0A:
mov rdi, [rbp+var_20]
add rdi, 220h
mov rsi, [rbp+var_28]
mov rax, [rbp+var_50]
mov rdx, [rax+140h]
call my_b_read
mov [rbp+var_3C], eax
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+148h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
cmp rax, [rcx+140h]
jz short loc_4AE83
cmp [rbp+var_3C], 0
jnz short loc_4AE83
mov rdi, [rbp+var_20]
add rdi, 220h
lea rsi, [rbp+var_10]
mov rax, [rbp+var_20]
mov rax, [rax]
mov rdx, [rax+148h]
mov rax, [rbp+var_20]
mov rax, [rax]
sub rdx, [rax+140h]
call my_b_read
mov [rbp+var_3C], eax
loc_4AE83:
cmp [rbp+var_38], 0
jz short loc_4AE94
mov rdi, [rbp+var_20]
xor esi, esi
call _mi_writeinfo
loc_4AE94:
cmp [rbp+var_3C], 0
jnz short loc_4AED8
mov rax, [rbp+var_28]
cmp byte ptr [rax], 0
jnz short loc_4AEB9
jmp short $+2
loc_4AEA5:
call _my_thread_var
mov dword ptr [rax], 86h
mov [rbp+var_14], 86h
jmp short loc_4AF22
loc_4AEB9:
mov rax, [rbp+var_20]
mov ecx, [rax+1D0h]
or ecx, 82h
mov [rax+1D0h], ecx
mov [rbp+var_14], 0
jmp short loc_4AF22
loc_4AED8:
mov rax, [rbp+var_20]
cmp dword ptr [rax+304h], 0FFFFFFFFh
jnz short loc_4AEEF
call _my_thread_var
cmp dword ptr [rax], 0
jnz short loc_4AF16
loc_4AEEF:
mov rax, [rbp+var_20]
cmp dword ptr [rax+304h], 0
jnz short loc_4AF09
call _my_thread_var
mov dword ptr [rax], 89h
jmp short loc_4AF14
loc_4AF09:
call _my_thread_var
mov dword ptr [rax], 7Fh
loc_4AF14:
jmp short $+2
loc_4AF16:
jmp short $+2
loc_4AF18:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_14], eax
loc_4AF22:
mov eax, [rbp+var_14]
mov [rbp+var_5C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_4AF43
mov eax, [rbp+var_5C]
add rsp, 60h
pop rbp
retn
loc_4AF43:
call ___stack_chk_fail
| long long mi_read_rnd_static_record(long long a1, const char *a2, const char *a3, char a4)
{
long long v4; // rdi
const char *v5; // rsi
long long v7; // [rsp+10h] [rbp-50h]
unsigned int v8; // [rsp+1Ch] [rbp-44h]
int v9; // [rsp+20h] [rbp-40h]
int static_record; // [rsp+24h] [rbp-3Ch]
int v11; // [rsp+24h] [rbp-3Ch]
int v12; // [rsp+28h] [rbp-38h]
char *v15; // [rsp+38h] [rbp-28h]
long long v16; // [rsp+40h] [rbp-20h]
_BYTE v18[8]; // [rsp+50h] [rbp-10h] BYREF
unsigned long long v19; // [rsp+58h] [rbp-8h]
v19 = __readfsqword(0x28u);
v16 = a1;
v15 = (char *)a2;
v7 = *(_QWORD *)a1;
v9 = 0;
v8 = 0;
if ( (*(_DWORD *)(a1 + 456) & 0x10) != 0 && (*(_QWORD *)(a1 + 544) <= (unsigned long long)a3 || a4) )
{
a1 += 544LL;
a2 = (_BYTE *)(&dword_0 + 1);
if ( (unsigned int)my_b_flush_io_cache(v16 + 544, 1LL) )
return *(unsigned int *)my_thread_var(a1, a2);
}
if ( (*(_DWORD *)(v16 + 456) & 2) != 0 )
{
a1 = v16 + 544;
if ( a3 == (const char *)my_b_tell(v16 + 544) && (a4 || !a3) )
{
v9 = 1;
v8 = *(_QWORD *)(v16 + 568) - *(_QWORD *)(v16 + 560);
}
else
{
*(_DWORD *)(v16 + 768) = 1;
}
}
v12 = 0;
if ( *(_DWORD *)(v16 + 500) == 2 )
{
if ( (unsigned long long)a3 >= *(_QWORD *)(*(_QWORD *)(v16 + 8) + 40LL) )
{
a1 = v16;
a2 = 0LL;
if ( !(unsigned int)mi_readinfo((long long *)v16, 0LL, 0) )
{
v12 = 1;
goto LABEL_22;
}
return *(unsigned int *)my_thread_var(a1, a2);
}
if ( (!v9 || *(_QWORD *)(v7 + 320) > (unsigned long long)v8) && !*(_DWORD *)(v7 + 872) )
{
a1 = *(unsigned int *)(v7 + 848);
a2 = 0LL;
if ( (unsigned int)my_lock(a1, 0LL, 0LL, 0LL, *(_QWORD *)(v16 + 816) | 0x20LL) )
return *(unsigned int *)my_thread_var(a1, a2);
v12 = 1;
}
}
LABEL_22:
if ( (unsigned long long)a3 < *(_QWORD *)(*(_QWORD *)(v16 + 8) + 40LL) )
{
*(_QWORD *)(v16 + 368) = a3;
*(_QWORD *)(v16 + 376) = &a3[*(_QWORD *)(v7 + 328)];
if ( v9 )
{
v4 = v16 + 544;
v5 = v15;
v11 = my_b_read(v16 + 544, v15, *(_QWORD *)(v7 + 320));
if ( *(_QWORD *)(*(_QWORD *)v16 + 328LL) != *(_QWORD *)(*(_QWORD *)v16 + 320LL) && !v11 )
{
v4 = v16 + 544;
v5 = v18;
v11 = my_b_read(v16 + 544, v18, *(_QWORD *)(*(_QWORD *)v16 + 328LL) - *(_QWORD *)(*(_QWORD *)v16 + 320LL));
}
if ( v12 )
{
v4 = v16;
v5 = 0LL;
mi_writeinfo((_QWORD *)v16, 0LL);
}
if ( v11 )
{
if ( *(_DWORD *)(v16 + 772) != -1 || !*(_DWORD *)my_thread_var(v4, v5) )
{
if ( *(_DWORD *)(v16 + 772) )
*(_DWORD *)my_thread_var(v4, v5) = 127;
else
*(_DWORD *)my_thread_var(v4, v5) = 137;
}
return *(unsigned int *)my_thread_var(v4, v5);
}
else if ( *v15 )
{
*(_DWORD *)(v16 + 464) |= 0x82u;
return 0;
}
else
{
*(_DWORD *)my_thread_var(v4, v5) = 134;
return 134;
}
}
else
{
static_record = mi_read_static_record(v16, (unsigned long long)a3, v15);
if ( static_record )
{
if ( static_record <= 0 )
{
return *(unsigned int *)my_thread_var(v16, a3);
}
else
{
*(_DWORD *)my_thread_var(v16, a3) = 134;
return 134;
}
}
return (unsigned int)static_record;
}
}
else
{
if ( !*(_DWORD *)(*(_QWORD *)v16 + 872LL) )
{
a1 = v16;
a2 = 0LL;
mi_writeinfo((_QWORD *)v16, 0LL);
}
*(_DWORD *)my_thread_var(a1, a2) = 137;
return 137;
}
}
| _mi_read_rnd_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV AL,CL
MOV RCX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RCX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RSI
MOV qword ptr [RBP + -0x30],RDX
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
MOV dword ptr [RBP + -0x40],0x0
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x10
CMP EAX,0x0
JZ 0x0014ac06
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x220]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x0014abdb
MOVSX EAX,byte ptr [RBP + -0x31]
CMP EAX,0x0
JZ 0x0014ac06
LAB_0014abdb:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x220
MOV ESI,0x1
CALL 0x0016e710
CMP EAX,0x0
JZ 0x0014ac06
JMP 0x0014abf7
LAB_0014abf7:
CALL 0x00182360
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0014af22
LAB_0014ac06:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x2
CMP EAX,0x0
JZ 0x0014ac81
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x220
CALL 0x0014af50
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x58]
CMP RAX,RCX
JNZ 0x0014ac71
MOVSX EAX,byte ptr [RBP + -0x31]
CMP EAX,0x0
JNZ 0x0014ac4c
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x0014ac71
LAB_0014ac4c:
MOV dword ptr [RBP + -0x40],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x238]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x230]
SUB RAX,RCX
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0014ac7f
LAB_0014ac71:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x300],0x1
LAB_0014ac7f:
JMP 0x0014ac81
LAB_0014ac81:
MOV dword ptr [RBP + -0x38],0x0
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x1f4],0x2
JNZ 0x0014ad45
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x8]
CMP RAX,qword ptr [RCX + 0x28]
JC 0x0014acd7
MOV RDI,qword ptr [RBP + -0x20]
XOR EDX,EDX
MOV ESI,EDX
CALL 0x00137010
CMP EAX,0x0
JZ 0x0014acce
JMP 0x0014acbf
LAB_0014acbf:
CALL 0x00182360
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0014af22
LAB_0014acce:
MOV dword ptr [RBP + -0x38],0x1
JMP 0x0014ad43
LAB_0014acd7:
CMP dword ptr [RBP + -0x40],0x0
JZ 0x0014acf0
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x140]
MOV ECX,dword ptr [RBP + -0x44]
CMP RAX,RCX
JBE 0x0014ad41
LAB_0014acf0:
MOV RAX,qword ptr [RBP + -0x50]
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x0014ad41
MOV RAX,qword ptr [RBP + -0x50]
MOV EDI,dword ptr [RAX + 0x350]
MOV RAX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RAX + 0x330]
OR R8,0x20
XOR ESI,ESI
XOR EAX,EAX
MOV ECX,EAX
MOV RDX,RCX
CALL 0x0017f8c0
CMP EAX,0x0
JZ 0x0014ad3a
JMP 0x0014ad2b
LAB_0014ad2b:
CALL 0x00182360
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0014af22
LAB_0014ad3a:
MOV dword ptr [RBP + -0x38],0x1
LAB_0014ad41:
JMP 0x0014ad43
LAB_0014ad43:
JMP 0x0014ad45
LAB_0014ad45:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x8]
CMP RAX,qword ptr [RCX + 0x28]
JC 0x0014ad8f
JMP 0x0014ad59
LAB_0014ad59:
JMP 0x0014ad5b
LAB_0014ad5b:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x0014ad76
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x00137170
LAB_0014ad76:
JMP 0x0014ad78
LAB_0014ad78:
CALL 0x00182360
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x14],0x89
JMP 0x0014af22
LAB_0014ad8f:
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x170],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x50]
ADD RCX,qword ptr [RAX + 0x148]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x178],RCX
CMP dword ptr [RBP + -0x40],0x0
JNZ 0x0014ae0a
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x0014aa20
MOV dword ptr [RBP + -0x3c],EAX
CMP EAX,0x0
JZ 0x0014adfd
CMP dword ptr [RBP + -0x3c],0x0
JLE 0x0014adf1
CALL 0x00182360
MOV dword ptr [RAX],0x86
MOV dword ptr [RBP + -0x3c],0x86
JMP 0x0014adfb
LAB_0014adf1:
CALL 0x00182360
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x3c],EAX
LAB_0014adfb:
JMP 0x0014adfd
LAB_0014adfd:
JMP 0x0014adff
LAB_0014adff:
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0014af22
LAB_0014ae0a:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x220
MOV RSI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RAX + 0x140]
CALL 0x0014afb0
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x140]
JZ 0x0014ae83
CMP dword ptr [RBP + -0x3c],0x0
JNZ 0x0014ae83
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x220
LEA RSI,[RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x148]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
SUB RDX,qword ptr [RAX + 0x140]
CALL 0x0014afb0
MOV dword ptr [RBP + -0x3c],EAX
LAB_0014ae83:
CMP dword ptr [RBP + -0x38],0x0
JZ 0x0014ae94
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x00137170
LAB_0014ae94:
CMP dword ptr [RBP + -0x3c],0x0
JNZ 0x0014aed8
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX],0x0
JNZ 0x0014aeb9
JMP 0x0014aea5
LAB_0014aea5:
CALL 0x00182360
MOV dword ptr [RAX],0x86
MOV dword ptr [RBP + -0x14],0x86
JMP 0x0014af22
LAB_0014aeb9:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x1d0]
OR ECX,0x82
MOV dword ptr [RAX + 0x1d0],ECX
MOV dword ptr [RBP + -0x14],0x0
JMP 0x0014af22
LAB_0014aed8:
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x304],-0x1
JNZ 0x0014aeef
CALL 0x00182360
CMP dword ptr [RAX],0x0
JNZ 0x0014af16
LAB_0014aeef:
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x304],0x0
JNZ 0x0014af09
CALL 0x00182360
MOV dword ptr [RAX],0x89
JMP 0x0014af14
LAB_0014af09:
CALL 0x00182360
MOV dword ptr [RAX],0x7f
LAB_0014af14:
JMP 0x0014af16
LAB_0014af16:
JMP 0x0014af18
LAB_0014af18:
CALL 0x00182360
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
LAB_0014af22:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x5c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0014af43
MOV EAX,dword ptr [RBP + -0x5c]
ADD RSP,0x60
POP RBP
RET
LAB_0014af43:
CALL 0x001283b0
|
int _mi_read_rnd_static_record(long *param_1,char *param_2,ulong param_3,char param_4)
{
long lVar1;
bool bVar2;
bool bVar3;
int iVar4;
int *piVar5;
ulong uVar6;
int4 *puVar7;
long in_FS_OFFSET;
uint local_4c;
int local_44;
int local_1c;
int1 local_18 [8];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = *param_1;
bVar3 = false;
local_4c = 0;
if (((*(uint *)(param_1 + 0x39) & 0x10) == 0) ||
(((param_3 < (ulong)param_1[0x44] && (param_4 == '\0')) ||
(iVar4 = my_b_flush_io_cache(param_1 + 0x44,1), iVar4 == 0)))) {
if ((*(uint *)(param_1 + 0x39) & 2) != 0) {
uVar6 = my_b_tell(param_1 + 0x44);
if ((param_3 == uVar6) && ((param_4 != '\0' || (param_3 == 0)))) {
bVar3 = true;
local_4c = (int)param_1[0x47] - (int)param_1[0x46];
}
else {
*(int4 *)(param_1 + 0x60) = 1;
}
}
bVar2 = false;
if (*(int *)((long)param_1 + 500) == 2) {
if (param_3 < *(ulong *)(param_1[1] + 0x28)) {
if (((!bVar3) || ((ulong)local_4c < *(ulong *)(lVar1 + 0x140))) &&
(*(int *)(lVar1 + 0x368) == 0)) {
iVar4 = my_lock(*(int4 *)(lVar1 + 0x350),0,0,0,param_1[0x66] | 0x20);
if (iVar4 != 0) {
piVar5 = (int *)_my_thread_var();
local_1c = *piVar5;
goto LAB_0014af22;
}
bVar2 = true;
}
}
else {
iVar4 = _mi_readinfo(param_1,0);
if (iVar4 != 0) {
piVar5 = (int *)_my_thread_var();
local_1c = *piVar5;
goto LAB_0014af22;
}
bVar2 = true;
}
}
if (param_3 < *(ulong *)(param_1[1] + 0x28)) {
param_1[0x2e] = param_3;
param_1[0x2f] = param_3 + *(long *)(lVar1 + 0x148);
if (bVar3) {
local_44 = my_b_read(param_1 + 0x44,param_2,*(int8 *)(lVar1 + 0x140));
if ((*(long *)(*param_1 + 0x148) != *(long *)(*param_1 + 0x140)) && (local_44 == 0)) {
local_44 = my_b_read(param_1 + 0x44,local_18,
*(long *)(*param_1 + 0x148) - *(long *)(*param_1 + 0x140));
}
if (bVar2) {
_mi_writeinfo(param_1,0);
}
if (local_44 == 0) {
if (*param_2 == '\0') {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x86;
local_1c = 0x86;
}
else {
*(uint *)(param_1 + 0x3a) = *(uint *)(param_1 + 0x3a) | 0x82;
local_1c = 0;
}
}
else {
if ((*(int *)((long)param_1 + 0x304) != -1) ||
(piVar5 = (int *)_my_thread_var(), *piVar5 == 0)) {
if (*(int *)((long)param_1 + 0x304) == 0) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x89;
}
else {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x7f;
}
}
piVar5 = (int *)_my_thread_var();
local_1c = *piVar5;
}
}
else {
local_44 = _mi_read_static_record(param_1,param_3,param_2);
if (local_44 != 0) {
if (local_44 < 1) {
piVar5 = (int *)_my_thread_var();
local_44 = *piVar5;
}
else {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x86;
local_44 = 0x86;
}
}
local_1c = local_44;
}
}
else {
if (*(int *)(*param_1 + 0x368) == 0) {
_mi_writeinfo(param_1,0);
}
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x89;
local_1c = 0x89;
}
}
else {
piVar5 = (int *)_my_thread_var();
local_1c = *piVar5;
}
LAB_0014af22:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_1c;
}
| |
20,908 | MemoryManager::setShort(unsigned int, unsigned short, unsigned int*) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/MemoryManager.cpp | bool MemoryManager::setShort(uint32_t addr, uint16_t val, uint32_t *cycles) {
if (!this->isAddrExist(addr)) {
dbgprintf("Short write to invalid addr 0x%x!\n", addr);
return false;
}
this->setByte(addr, val & 0xFF, cycles);
this->setByte(addr + 1, (val >> 8) & 0xFF);
return true;
} | O0 | cpp | MemoryManager::setShort(unsigned int, unsigned short, unsigned int*):
subq $0x28, %rsp
movw %dx, %ax
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
movw %ax, 0x12(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movq %rdi, (%rsp)
movl 0x14(%rsp), %esi
callq 0x78a0
testb $0x1, %al
jne 0x7b09
movl 0x14(%rsp), %esi
leaq 0x46de(%rip), %rdi # 0xc1d9
movb $0x0, %al
callq 0x7090
movb $0x0, 0x27(%rsp)
jmp 0x7b4f
movq (%rsp), %rdi
movl 0x14(%rsp), %esi
movzwl 0x12(%rsp), %eax
andl $0xff, %eax
movq 0x8(%rsp), %rcx
movzbl %al, %edx
callq 0x78c0
movq (%rsp), %rdi
movl 0x14(%rsp), %esi
addl $0x1, %esi
movzwl 0x12(%rsp), %eax
sarl $0x8, %eax
andl $0xff, %eax
xorl %ecx, %ecx
movzbl %al, %edx
callq 0x78c0
movb $0x1, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopw (%rax,%rax)
| _ZN13MemoryManager8setShortEjtPj:
sub rsp, 28h
mov ax, dx
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_14], esi
mov [rsp+28h+var_16], ax
mov [rsp+28h+var_20], rcx
mov rdi, [rsp+28h+var_10]; this
mov [rsp+28h+var_28], rdi
mov esi, [rsp+28h+var_14]; unsigned int
call _ZN13MemoryManager11isAddrExistEj; MemoryManager::isAddrExist(uint)
test al, 1
jnz short loc_7B09
mov esi, [rsp+28h+var_14]
lea rdi, aShortWriteToIn; "Short write to invalid addr 0x%x!\n"
mov al, 0
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
mov [rsp+28h+var_1], 0
jmp short loc_7B4F
loc_7B09:
mov rdi, [rsp+28h+var_28]; this
mov esi, [rsp+28h+var_14]; unsigned int
movzx eax, [rsp+28h+var_16]
and eax, 0FFh
mov rcx, [rsp+28h+var_20]; unsigned int *
movzx edx, al; unsigned __int8
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
mov rdi, [rsp+28h+var_28]; this
mov esi, [rsp+28h+var_14]
add esi, 1; unsigned int
movzx eax, [rsp+28h+var_16]
sar eax, 8
and eax, 0FFh
xor ecx, ecx; unsigned int *
movzx edx, al; unsigned __int8
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
mov [rsp+28h+var_1], 1
loc_7B4F:
mov al, [rsp+28h+var_1]
and al, 1
add rsp, 28h
retn
| char MemoryManager::setShort(
Cache **this,
unsigned int a2,
__int16 a3,
unsigned int *a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
long long v12; // rdx
long long v13; // rcx
long long v14; // r8
long long v15; // r9
__m128 v16; // xmm4
__m128 v17; // xmm5
double v18; // xmm4_8
double v19; // xmm5_8
if ( MemoryManager::isAddrExist((MemoryManager *)this, a2) )
{
MemoryManager::setByte(this, a2, a3, a4, a5, a6, a7, a8, *(double *)v16.m128_u64, *(double *)v17.m128_u64, a11, a12);
MemoryManager::setByte(this, a2 + 1, HIBYTE(a3), 0LL, a5, a6, a7, a8, v18, v19, a11, a12);
return 1;
}
else
{
dbgprintf(
"Short write to invalid addr 0x%x!\n",
a2,
v12,
v13,
v14,
v15,
a5,
a6,
a7,
a8,
v16,
v17,
a11,
a12,
(char)this);
return 0;
}
}
| setShort:
SUB RSP,0x28
MOV AX,DX
MOV qword ptr [RSP + 0x18],RDI
MOV dword ptr [RSP + 0x14],ESI
MOV word ptr [RSP + 0x12],AX
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP],RDI
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001078a0
TEST AL,0x1
JNZ 0x00107b09
MOV ESI,dword ptr [RSP + 0x14]
LEA RDI,[0x10c1d9]
MOV AL,0x0
CALL 0x00107090
MOV byte ptr [RSP + 0x27],0x0
JMP 0x00107b4f
LAB_00107b09:
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RSP + 0x14]
MOVZX EAX,word ptr [RSP + 0x12]
AND EAX,0xff
MOV RCX,qword ptr [RSP + 0x8]
MOVZX EDX,AL
CALL 0x001078c0
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RSP + 0x14]
ADD ESI,0x1
MOVZX EAX,word ptr [RSP + 0x12]
SAR EAX,0x8
AND EAX,0xff
XOR ECX,ECX
MOVZX EDX,AL
CALL 0x001078c0
MOV byte ptr [RSP + 0x27],0x1
LAB_00107b4f:
MOV AL,byte ptr [RSP + 0x27]
AND AL,0x1
ADD RSP,0x28
RET
|
/* MemoryManager::setShort(unsigned int, unsigned short, unsigned int*) */
bool __thiscall
MemoryManager::setShort(MemoryManager *this,uint param_1,ushort param_2,uint *param_3)
{
ulong uVar1;
bool bVar2;
uVar1 = isAddrExist(this,param_1);
bVar2 = (uVar1 & 1) != 0;
if (bVar2) {
setByte(this,param_1,(uchar)param_2,param_3);
setByte(this,param_1 + 1,(uchar)(param_2 >> 8),(uint *)0x0);
}
else {
dbgprintf("Short write to invalid addr 0x%x!\n",(ulong)param_1);
}
return bVar2;
}
| |
20,909 | MemoryManager::setShort(unsigned int, unsigned short, unsigned int*) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/MemoryManager.cpp | bool MemoryManager::setShort(uint32_t addr, uint16_t val, uint32_t *cycles) {
if (!this->isAddrExist(addr)) {
dbgprintf("Short write to invalid addr 0x%x!\n", addr);
return false;
}
this->setByte(addr, val & 0xFF, cycles);
this->setByte(addr + 1, (val >> 8) & 0xFF);
return true;
} | O1 | cpp | MemoryManager::setShort(unsigned int, unsigned short, unsigned int*):
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
cmpl $-0x1, %esi
je 0x3f73
movq %rdi, %r14
movzwl %dx, %ebp
movzbl %bpl, %edx
movl %ebx, %esi
callq 0x3e74
leal 0x1(%rbx), %esi
shrl $0x8, %ebp
movq %r14, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3e74
cmpl $-0x1, %ebx
setne %al
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x225a(%rip), %rdi # 0x61d4
movl %ebx, %esi
xorl %eax, %eax
callq 0x32c0
jmp 0x3f68
nop
| _ZN13MemoryManager8setShortEjtPj:
push rbp
push r14
push rbx
mov ebx, esi
cmp esi, 0FFFFFFFFh
jz short loc_3F73
mov r14, rdi
movzx ebp, dx
movzx edx, bpl; unsigned __int8
mov esi, ebx; unsigned int
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
lea esi, [rbx+1]; unsigned int
shr ebp, 8
mov rdi, r14; this
mov edx, ebp; unsigned __int8
xor ecx, ecx; unsigned int *
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
loc_3F68:
cmp ebx, 0FFFFFFFFh
setnz al
pop rbx
pop r14
pop rbp
retn
loc_3F73:
lea rdi, aShortWriteToIn; "Short write to invalid addr 0x%x!\n"
mov esi, ebx
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
jmp short loc_3F68
| bool MemoryManager::setShort(
Cache **this,
unsigned int a2,
long long a3,
unsigned int *a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
unsigned int v14; // ebp
long long v15; // r8
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
char v20; // [rsp+0h] [rbp-18h]
if ( a2 == -1 )
{
dbgprintf(
"Short write to invalid addr 0x%x!\n",
0xFFFFFFFFLL,
a3,
(long long)a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v20);
}
else
{
v14 = (unsigned __int16)a3;
MemoryManager::setByte(this, a2, (unsigned __int8)a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
MemoryManager::setByte(this, a2 + 1, v14 >> 8, 0LL, v15, v16, a7, a8, a9, a10, v17, v18, a13, a14);
}
return a2 != -1;
}
| setShort:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBX,ESI
CMP ESI,-0x1
JZ 0x00103f73
MOV R14,RDI
MOVZX EBP,DX
MOVZX EDX,BPL
MOV ESI,EBX
CALL 0x00103e74
LEA ESI,[RBX + 0x1]
SHR EBP,0x8
MOV RDI,R14
MOV EDX,EBP
XOR ECX,ECX
CALL 0x00103e74
LAB_00103f68:
CMP EBX,-0x1
SETNZ AL
POP RBX
POP R14
POP RBP
RET
LAB_00103f73:
LEA RDI,[0x1061d4]
MOV ESI,EBX
XOR EAX,EAX
CALL 0x001032c0
JMP 0x00103f68
|
/* MemoryManager::setShort(unsigned int, unsigned short, unsigned int*) */
bool MemoryManager::setShort(uint param_1,ushort param_2,uint *param_3)
{
ulong uVar1;
int iVar2;
int6 in_register_00000032;
iVar2 = (int)CONCAT62(in_register_00000032,param_2);
uVar1 = CONCAT62(in_register_00000032,param_2) & 0xffffffff;
if (iVar2 == -1) {
dbgprintf("Short write to invalid addr 0x%x!\n",uVar1);
}
else {
setByte(param_1,(uchar)uVar1,(uint *)((ulong)param_3 & 0xff));
setByte(param_1,(char)param_2 + '\x01',(uint *)(((ulong)param_3 & 0xffff) >> 8));
}
return iVar2 != -1;
}
| |
20,910 | MemoryManager::setShort(unsigned int, unsigned short, unsigned int*) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/MemoryManager.cpp | bool MemoryManager::setShort(uint32_t addr, uint16_t val, uint32_t *cycles) {
if (!this->isAddrExist(addr)) {
dbgprintf("Short write to invalid addr 0x%x!\n", addr);
return false;
}
this->setByte(addr, val & 0xFF, cycles);
this->setByte(addr + 1, (val >> 8) & 0xFF);
return true;
} | O2 | cpp | MemoryManager::setShort(unsigned int, unsigned short, unsigned int*):
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
cmpl $-0x1, %esi
je 0x3cfc
movq %rdi, %r14
movzwl %dx, %ebp
movzbl %bpl, %edx
movl %ebx, %esi
callq 0x3bfa
leal 0x1(%rbx), %esi
shrl $0x8, %ebp
movq %r14, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3bfa
jmp 0x3d0d
leaq 0x14d1(%rip), %rdi # 0x51d4
pushq $-0x1
popq %rsi
xorl %eax, %eax
callq 0x3a0f
cmpl $-0x1, %ebx
setne %al
popq %rbx
popq %r14
popq %rbp
retq
| _ZN13MemoryManager8setShortEjtPj:
push rbp
push r14
push rbx
mov ebx, esi
cmp esi, 0FFFFFFFFh
jz short loc_3CFC
mov r14, rdi
movzx ebp, dx
movzx edx, bpl; unsigned __int8
mov esi, ebx; unsigned int
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
lea esi, [rbx+1]; unsigned int
shr ebp, 8
mov rdi, r14; this
mov edx, ebp; unsigned __int8
xor ecx, ecx; unsigned int *
call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *)
jmp short loc_3D0D
loc_3CFC:
lea rdi, aShortWriteToIn; "Short write to invalid addr 0x%x!\n"
push 0FFFFFFFFFFFFFFFFh
pop rsi
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
loc_3D0D:
cmp ebx, 0FFFFFFFFh
setnz al
pop rbx
pop r14
pop rbp
retn
| bool MemoryManager::setShort(
Cache **this,
unsigned int a2,
long long a3,
unsigned int *a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
unsigned int v14; // ebp
long long v15; // r8
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
char v20; // [rsp+0h] [rbp-18h]
if ( a2 == -1 )
{
dbgprintf(
"Short write to invalid addr 0x%x!\n",
-1LL,
a3,
(long long)a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v20);
}
else
{
v14 = (unsigned __int16)a3;
MemoryManager::setByte(this, a2, (unsigned __int8)a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
MemoryManager::setByte(this, a2 + 1, v14 >> 8, 0LL, v15, v16, a7, a8, a9, a10, v17, v18, a13, a14);
}
return a2 != -1;
}
| setShort:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBX,ESI
CMP ESI,-0x1
JZ 0x00103cfc
MOV R14,RDI
MOVZX EBP,DX
MOVZX EDX,BPL
MOV ESI,EBX
CALL 0x00103bfa
LEA ESI,[RBX + 0x1]
SHR EBP,0x8
MOV RDI,R14
MOV EDX,EBP
XOR ECX,ECX
CALL 0x00103bfa
JMP 0x00103d0d
LAB_00103cfc:
LEA RDI,[0x1051d4]
PUSH -0x1
POP RSI
XOR EAX,EAX
CALL 0x00103a0f
LAB_00103d0d:
CMP EBX,-0x1
SETNZ AL
POP RBX
POP R14
POP RBP
RET
|
/* MemoryManager::setShort(unsigned int, unsigned short, unsigned int*) */
bool __thiscall
MemoryManager::setShort(MemoryManager *this,uint param_1,ushort param_2,uint *param_3)
{
if (param_1 == 0xffffffff) {
dbgprintf("Short write to invalid addr 0x%x!\n",0xffffffffffffffff);
}
else {
setByte(this,param_1,(uchar)param_2,param_3);
setByte(this,param_1 + 1,(uchar)(param_2 >> 8),(uint *)0x0);
}
return param_1 != 0xffffffff;
}
| |
20,911 | translog_flush_set_new_goal_and_wait | eloqsql/storage/maria/ma_loghandler.c | void translog_flush_set_new_goal_and_wait(TRANSLOG_ADDRESS lsn)
{
int flush_no= log_descriptor.flush_no;
DBUG_ENTER("translog_flush_set_new_goal_and_wait");
DBUG_PRINT("enter", ("LSN: " LSN_FMT, LSN_IN_PARTS(lsn)));
mysql_mutex_assert_owner(&log_descriptor.log_flush_lock);
if (cmp_translog_addr(lsn, log_descriptor.next_pass_max_lsn) > 0)
{
log_descriptor.next_pass_max_lsn= lsn;
log_descriptor.max_lsn_requester= pthread_self();
mysql_cond_broadcast(&log_descriptor.new_goal_cond);
}
while (flush_no == log_descriptor.flush_no)
{
mysql_cond_wait(&log_descriptor.log_flush_cond,
&log_descriptor.log_flush_lock);
}
DBUG_VOID_RETURN;
} | O0 | c | translog_flush_set_new_goal_and_wait:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl 0xbf9152(%rip), %eax # 0xc892f4
movl %eax, -0xc(%rbp)
jmp 0x901a7
jmp 0x901a9
jmp 0x901ab
movq -0x8(%rbp), %rax
subq 0xbf9142(%rip), %rax # 0xc892f8
cmpq $0x0, %rax
jle 0x901e6
movq -0x8(%rbp), %rax
movq %rax, 0xbf9131(%rip) # 0xc892f8
callq 0x2a540
movq %rax, 0xbf912d(%rip) # 0xc89300
leaq 0x3f8246(%rip), %rdi # 0x488420
addq $0x800d88, %rdi # imm = 0x800D88
callq 0x90230
jmp 0x901e8
movl -0xc(%rbp), %eax
movl 0xbf9103(%rip), %ecx # 0xc892f4
cmpl %ecx, %eax
jne 0x90220
leaq 0x3f8224(%rip), %rsi # 0x488420
movq %rsi, %rdi
addq $0x800d50, %rdi # imm = 0x800D50
addq $0x800d08, %rsi # imm = 0x800D08
leaq 0xcd2af(%rip), %rdx # 0x15d4c3
movl $0x1eac, %ecx # imm = 0x1EAC
callq 0x8a310
jmp 0x901e8
jmp 0x90222
jmp 0x90224
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| translog_flush_set_new_goal_and_wait:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov eax, cs:dword_C892F4
mov [rbp+var_C], eax
jmp short $+2
loc_901A7:
jmp short $+2
loc_901A9:
jmp short $+2
loc_901AB:
mov rax, [rbp+var_8]
sub rax, cs:qword_C892F8
cmp rax, 0
jle short loc_901E6
mov rax, [rbp+var_8]
mov cs:qword_C892F8, rax
call _pthread_self
mov cs:qword_C89300, rax
lea rdi, log_descriptor
add rdi, 800D88h
call inline_mysql_cond_broadcast_0
loc_901E6:
jmp short $+2
loc_901E8:
mov eax, [rbp+var_C]
mov ecx, cs:dword_C892F4
cmp eax, ecx
jnz short loc_90220
lea rsi, log_descriptor
mov rdi, rsi
add rdi, 800D50h
add rsi, 800D08h
lea rdx, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1EACh
call inline_mysql_cond_wait_1
jmp short loc_901E8
loc_90220:
jmp short $+2
loc_90222:
jmp short $+2
loc_90224:
add rsp, 10h
pop rbp
retn
| long long translog_flush_set_new_goal_and_wait(long long a1)
{
long long result; // rax
unsigned int v2; // [rsp+4h] [rbp-Ch]
v2 = dword_C892F4;
if ( a1 - qword_C892F8 > 0 )
{
qword_C892F8 = a1;
qword_C89300 = pthread_self();
inline_mysql_cond_broadcast_0(&log_descriptor[1049009]);
}
while ( 1 )
{
result = v2;
if ( v2 != dword_C892F4 )
break;
inline_mysql_cond_wait_1(
(long long)&log_descriptor[1049002],
(long long)&log_descriptor[1048993],
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x1EACu);
}
return result;
}
| translog_flush_set_new_goal_and_wait:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV EAX,dword ptr [0x00d892f4]
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001901a7
LAB_001901a7:
JMP 0x001901a9
LAB_001901a9:
JMP 0x001901ab
LAB_001901ab:
MOV RAX,qword ptr [RBP + -0x8]
SUB RAX,qword ptr [0x00d892f8]
CMP RAX,0x0
JLE 0x001901e6
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [0x00d892f8],RAX
CALL 0x0012a540
MOV qword ptr [0x00d89300],RAX
LEA RDI,[0x588420]
ADD RDI,0x800d88
CALL 0x00190230
LAB_001901e6:
JMP 0x001901e8
LAB_001901e8:
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,dword ptr [0x00d892f4]
CMP EAX,ECX
JNZ 0x00190220
LEA RSI,[0x588420]
MOV RDI,RSI
ADD RDI,0x800d50
ADD RSI,0x800d08
LEA RDX,[0x25d4c3]
MOV ECX,0x1eac
CALL 0x0018a310
JMP 0x001901e8
LAB_00190220:
JMP 0x00190222
LAB_00190222:
JMP 0x00190224
LAB_00190224:
ADD RSP,0x10
POP RBP
RET
|
void translog_flush_set_new_goal_and_wait(long param_1)
{
int iVar1;
iVar1 = DAT_00d892f4;
if (0 < param_1 - DAT_00d892f8) {
DAT_00d892f8 = param_1;
DAT_00d89300 = pthread_self();
inline_mysql_cond_broadcast(&DAT_00d891a8);
}
while (iVar1 == DAT_00d892f4) {
inline_mysql_cond_wait
(&DAT_00d89170,&DAT_00d89128,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x1eac);
}
return;
}
| |
20,912 | bool nlohmann::json_abi_v3_11_3::operator!=<bool, 0>(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) | monkey531[P]llama/common/json.hpp | bool operator!=(const_reference lhs, ScalarType rhs) noexcept
{
return lhs != basic_json(rhs);
} | O3 | cpp | bool nlohmann::json_abi_v3_11_3::operator!=<bool, 0>(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):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
callq 0x44794
movq %r14, %rdi
movl $0x1, %esi
callq 0x426e2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x73e99
movl %eax, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x426e2
movq %r14, %rdi
callq 0x4f2d0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_3neIbTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
xorps xmm0, xmm0
mov r14, rsp
movaps xmmword ptr [r14], xmm0
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_3neERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator!=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> 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 ebx, eax
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 eax, ebx
add rsp, 18h
pop rbx
pop r14
retn
| long long ZN8nlohmann16json_abi_v3_11_3neIbTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_(
unsigned __int8 *a1,
unsigned __int8 a2)
{
long long result; // rax
_OWORD v3[2]; // [rsp+0h] [rbp-28h] BYREF
v3[0] = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)v3,
a2);
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 *)v3);
LOBYTE(result) = nlohmann::json_abi_v3_11_3::operator!=(a1, (unsigned __int8 *)v3, (__m128d)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 *)v3);
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((void ***)v3);
return (unsigned int)result;
}
| _ZN8nlohmann16json_abi_v3_11_3neIbTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
XORPS XMM0,XMM0
MOV R14,RSP
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
CALL 0x00144794
MOV RDI,R14
MOV ESI,0x1
CALL 0x001426e2
MOV RDI,RBX
MOV RSI,R14
CALL 0x00173e99
MOV EBX,EAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x001426e2
MOV RDI,R14
CALL 0x0014f2d0
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R14
RET
|
int4
_ZN8nlohmann16json_abi_v3_11_3neIbTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES3_
(basic_json *param_1)
{
int4 uVar1;
int8 local_28;
int8 uStack_20;
local_28 = 0;
uStack_20 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_28);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_28,0));
uVar1 = nlohmann::json_abi_v3_11_3::operator!=(param_1,(basic_json *)&local_28);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_28,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_28);
return uVar1;
}
| |
20,913 | test_bug28505 | eloqsql/libmariadb/unittest/libmariadb/misc.c | static int test_bug28505(MYSQL *mysql)
{
unsigned long long res;
int rc;
rc= mysql_query(mysql, "drop table if exists t1");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "create table t1(f1 int primary key)");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "insert into t1 values(1)");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "insert into t1 values(1) on duplicate key update f1=1");
check_mysql_rc(rc, mysql);
res= mysql_affected_rows(mysql);
FAIL_UNLESS(!res, "res != 0");
rc= mysql_query(mysql, "drop table t1");
check_mysql_rc(rc, mysql);
return OK;
} | O0 | c | test_bug28505:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x3a09b(%rip), %rsi # 0x52372
callq 0x24960
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x18331
movl -0x1c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282e0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282b0
movl -0x2c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl %eax, %ecx
leaq 0x38fa4(%rip), %rdi # 0x512b5
leaq 0x396a6(%rip), %r8 # 0x519be
movl $0x40, %r9d
movb $0x0, %al
callq 0x1bb30
movl $0x1, -0x4(%rbp)
jmp 0x18513
jmp 0x18333
movq -0x10(%rbp), %rdi
leaq 0x3a04c(%rip), %rsi # 0x5238a
callq 0x24960
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x18398
movl -0x1c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282e0
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282b0
movl -0x3c(%rbp), %esi
movq -0x38(%rbp), %rdx
movl %eax, %ecx
leaq 0x38f3d(%rip), %rdi # 0x512b5
leaq 0x3963f(%rip), %r8 # 0x519be
movl $0x42, %r9d
movb $0x0, %al
callq 0x1bb30
movl $0x1, -0x4(%rbp)
jmp 0x18513
jmp 0x1839a
movq -0x10(%rbp), %rdi
leaq 0x3a009(%rip), %rsi # 0x523ae
callq 0x24960
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x183ff
movl -0x1c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282e0
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282b0
movl -0x4c(%rbp), %esi
movq -0x48(%rbp), %rdx
movl %eax, %ecx
leaq 0x38ed6(%rip), %rdi # 0x512b5
leaq 0x395d8(%rip), %r8 # 0x519be
movl $0x44, %r9d
movb $0x0, %al
callq 0x1bb30
movl $0x1, -0x4(%rbp)
jmp 0x18513
jmp 0x18401
movq -0x10(%rbp), %rdi
leaq 0x39fbb(%rip), %rsi # 0x523c7
callq 0x24960
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x18466
movl -0x1c(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282e0
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282b0
movl -0x5c(%rbp), %esi
movq -0x58(%rbp), %rdx
movl %eax, %ecx
leaq 0x38e6f(%rip), %rdi # 0x512b5
leaq 0x39571(%rip), %r8 # 0x519be
movl $0x46, %r9d
movb $0x0, %al
callq 0x1bb30
movl $0x1, -0x4(%rbp)
jmp 0x18513
jmp 0x18468
movq -0x10(%rbp), %rdi
callq 0x281d0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x184a6
leaq 0x38ced(%rip), %rdi # 0x51170
leaq 0x39f73(%rip), %rsi # 0x523fd
leaq 0x3952d(%rip), %rdx # 0x519be
movl $0x48, %ecx
movb $0x0, %al
callq 0x1bb30
movl $0x1, -0x4(%rbp)
jmp 0x18513
jmp 0x184a8
movq -0x10(%rbp), %rdi
leaq 0x39f53(%rip), %rsi # 0x52406
callq 0x24960
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1850a
movl -0x1c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282e0
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
callq 0x282b0
movl -0x6c(%rbp), %esi
movq -0x68(%rbp), %rdx
movl %eax, %ecx
leaq 0x38dc8(%rip), %rdi # 0x512b5
leaq 0x394ca(%rip), %r8 # 0x519be
movl $0x4a, %r9d
movb $0x0, %al
callq 0x1bb30
movl $0x1, -0x4(%rbp)
jmp 0x18513
jmp 0x1850c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
| test_bug28505:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
lea rsi, aDropTableIfExi_3; "drop table if exists t1"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_18331
mov eax, [rbp+var_1C]
mov [rbp+var_2C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_28], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_2C]
mov rdx, [rbp+var_28]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 40h ; '@'
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_18513
loc_18331:
jmp short $+2
loc_18333:
mov rdi, [rbp+var_10]
lea rsi, aCreateTableT1F; "create table t1(f1 int primary key)"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_18398
mov eax, [rbp+var_1C]
mov [rbp+var_3C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_3C]
mov rdx, [rbp+var_38]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 42h ; 'B'
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_18513
loc_18398:
jmp short $+2
loc_1839A:
mov rdi, [rbp+var_10]
lea rsi, aInsertIntoT1Va_2; "insert into t1 values(1)"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_183FF
mov eax, [rbp+var_1C]
mov [rbp+var_4C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_48], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_4C]
mov rdx, [rbp+var_48]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 44h ; 'D'
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_18513
loc_183FF:
jmp short $+2
loc_18401:
mov rdi, [rbp+var_10]
lea rsi, aInsertIntoT1Va_3; "insert into t1 values(1) on duplicate k"...
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_18466
mov eax, [rbp+var_1C]
mov [rbp+var_5C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_58], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_5C]
mov rdx, [rbp+var_58]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 46h ; 'F'
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_18513
loc_18466:
jmp short $+2
loc_18468:
mov rdi, [rbp+var_10]
call mysql_affected_rows
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz short loc_184A6
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aRes0; "res != 0"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 48h ; 'H'
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_18513
loc_184A6:
jmp short $+2
loc_184A8:
mov rdi, [rbp+var_10]
lea rsi, aDropTableT1; "drop table t1"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1850A
mov eax, [rbp+var_1C]
mov [rbp+var_6C], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_68], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_6C]
mov rdx, [rbp+var_68]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 4Ah ; 'J'
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_18513
loc_1850A:
jmp short $+2
loc_1850C:
mov [rbp+var_4], 0
loc_18513:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
| long long test_bug28505(long long a1)
{
int v1; // eax
int v2; // eax
int v3; // eax
int v4; // eax
int v5; // r8d
int v6; // r9d
int v7; // eax
int v9; // [rsp+8h] [rbp-68h]
int v10; // [rsp+18h] [rbp-58h]
int v11; // [rsp+28h] [rbp-48h]
int v12; // [rsp+38h] [rbp-38h]
int v13; // [rsp+48h] [rbp-28h]
int v14; // [rsp+54h] [rbp-1Ch]
int v15; // [rsp+54h] [rbp-1Ch]
int v16; // [rsp+54h] [rbp-1Ch]
int v17; // [rsp+54h] [rbp-1Ch]
int v18; // [rsp+54h] [rbp-1Ch]
v14 = mysql_query(a1, "drop table if exists t1");
if ( v14 )
{
v13 = mysql_error(a1);
v1 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v14,
v13,
v1,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
64);
return 1;
}
else
{
v15 = mysql_query(a1, "create table t1(f1 int primary key)");
if ( v15 )
{
v12 = mysql_error(a1);
v2 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v15,
v12,
v2,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
66);
return 1;
}
else
{
v16 = mysql_query(a1, "insert into t1 values(1)");
if ( v16 )
{
v11 = mysql_error(a1);
v3 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v16,
v11,
v3,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
68);
return 1;
}
else
{
v17 = mysql_query(a1, "insert into t1 values(1) on duplicate key update f1=1");
if ( v17 )
{
v10 = mysql_error(a1);
v4 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v17,
v10,
v4,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
70);
return 1;
}
else if ( mysql_affected_rows(a1) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"res != 0",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
72,
v5,
v6);
return 1;
}
else
{
v18 = mysql_query(a1, "drop table t1");
if ( v18 )
{
v9 = mysql_error(a1);
v7 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v18,
v9,
v7,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
74);
return 1;
}
else
{
return 0;
}
}
}
}
}
}
| test_bug28505:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x152372]
CALL 0x00124960
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x00118331
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282e0
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282b0
MOV ESI,dword ptr [RBP + -0x2c]
MOV RDX,qword ptr [RBP + -0x28]
MOV ECX,EAX
LEA RDI,[0x1512b5]
LEA R8,[0x1519be]
MOV R9D,0x40
MOV AL,0x0
CALL 0x0011bb30
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00118513
LAB_00118331:
JMP 0x00118333
LAB_00118333:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x15238a]
CALL 0x00124960
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x00118398
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x3c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282e0
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282b0
MOV ESI,dword ptr [RBP + -0x3c]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,EAX
LEA RDI,[0x1512b5]
LEA R8,[0x1519be]
MOV R9D,0x42
MOV AL,0x0
CALL 0x0011bb30
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00118513
LAB_00118398:
JMP 0x0011839a
LAB_0011839a:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1523ae]
CALL 0x00124960
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x001183ff
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x4c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282e0
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282b0
MOV ESI,dword ptr [RBP + -0x4c]
MOV RDX,qword ptr [RBP + -0x48]
MOV ECX,EAX
LEA RDI,[0x1512b5]
LEA R8,[0x1519be]
MOV R9D,0x44
MOV AL,0x0
CALL 0x0011bb30
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00118513
LAB_001183ff:
JMP 0x00118401
LAB_00118401:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1523c7]
CALL 0x00124960
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x00118466
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x5c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282e0
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282b0
MOV ESI,dword ptr [RBP + -0x5c]
MOV RDX,qword ptr [RBP + -0x58]
MOV ECX,EAX
LEA RDI,[0x1512b5]
LEA R8,[0x1519be]
MOV R9D,0x46
MOV AL,0x0
CALL 0x0011bb30
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00118513
LAB_00118466:
JMP 0x00118468
LAB_00118468:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001281d0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001184a6
LEA RDI,[0x151170]
LEA RSI,[0x1523fd]
LEA RDX,[0x1519be]
MOV ECX,0x48
MOV AL,0x0
CALL 0x0011bb30
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00118513
LAB_001184a6:
JMP 0x001184a8
LAB_001184a8:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x152406]
CALL 0x00124960
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011850a
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x6c],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282e0
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001282b0
MOV ESI,dword ptr [RBP + -0x6c]
MOV RDX,qword ptr [RBP + -0x68]
MOV ECX,EAX
LEA RDI,[0x1512b5]
LEA R8,[0x1519be]
MOV R9D,0x4a
MOV AL,0x0
CALL 0x0011bb30
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00118513
LAB_0011850a:
JMP 0x0011850c
LAB_0011850c:
MOV dword ptr [RBP + -0x4],0x0
LAB_00118513:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int4 test_bug28505(int8 param_1)
{
int iVar1;
int4 uVar2;
int8 uVar3;
long lVar4;
int4 local_c;
iVar1 = mysql_query(param_1,"drop table if exists t1");
if (iVar1 == 0) {
iVar1 = mysql_query(param_1,"create table t1(f1 int primary key)");
if (iVar1 == 0) {
iVar1 = mysql_query(param_1,"insert into t1 values(1)");
if (iVar1 == 0) {
iVar1 = mysql_query(param_1,"insert into t1 values(1) on duplicate key update f1=1");
if (iVar1 == 0) {
lVar4 = mysql_affected_rows(param_1);
if (lVar4 == 0) {
iVar1 = mysql_query(param_1,"drop table t1");
if (iVar1 == 0) {
local_c = 0;
}
else {
uVar3 = mysql_error(param_1);
uVar2 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
0x4a);
local_c = 1;
}
}
else {
diag("Error: %s (%s: %d)","res != 0",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
0x48);
local_c = 1;
}
}
else {
uVar3 = mysql_error(param_1);
uVar2 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",0x46
);
local_c = 1;
}
}
else {
uVar3 = mysql_error(param_1);
uVar2 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",0x44);
local_c = 1;
}
}
else {
uVar3 = mysql_error(param_1);
uVar2 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",0x42);
local_c = 1;
}
}
else {
uVar3 = mysql_error(param_1);
uVar2 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",0x40);
local_c = 1;
}
return local_c;
}
| |
20,914 | bool google::protobuf::safe_parse_negative_int<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | bool safe_parse_negative_int(const std::string &text, IntType *value_p) {
int base = 10;
IntType value = 0;
const IntType vmin = std::numeric_limits<IntType>::min();
assert(vmin < 0);
assert(vmin <= 0 - base);
IntType vmin_over_base = vmin / base;
// 2003 c++ standard [expr.mul]
// "... the sign of the remainder is implementation-defined."
// Although (vmin/base)*base + vmin%base is always vmin.
// 2011 c++ standard tightens the spec but we cannot rely on it.
if (vmin % base > 0) {
vmin_over_base += 1;
}
const char* start = text.data();
const char* end = start + text.size();
// loop over digits
for (; start < end; ++start) {
unsigned char c = static_cast<unsigned char>(start[0]);
int digit = c - '0';
if (digit >= base || digit < 0) {
*value_p = value;
return false;
}
if (value < vmin_over_base) {
*value_p = vmin;
return false;
}
value *= base;
if (value < vmin + digit) {
*value_p = vmin;
return false;
}
value -= digit;
}
*value_p = value;
return true;
} | O0 | cpp | bool google::protobuf::safe_parse_negative_int<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int*):
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl $0xa, 0x2c(%rsp)
movl $0x0, 0x28(%rsp)
movl $0x80000000, 0x24(%rsp) # imm = 0x80000000
movl $0x80000000, %eax # imm = 0x80000000
cltd
idivl 0x2c(%rsp)
movl %eax, 0x20(%rsp)
movl $0x80000000, %eax # imm = 0x80000000
cltd
idivl 0x2c(%rsp)
cmpl $0x0, %edx
jle 0x3173e
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x174a0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rdi
callq 0x147d0
movq %rax, %rcx
movq (%rsp), %rax
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x31827
movq 0x18(%rsp), %rax
movb (%rax), %al
movb %al, 0xf(%rsp)
movzbl 0xf(%rsp), %eax
subl $0x30, %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0x317a7
cmpl $0x0, 0x8(%rsp)
jge 0x317b9
movl 0x28(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
movb $0x0, 0x47(%rsp)
jmp 0x31837
movl 0x28(%rsp), %eax
cmpl 0x20(%rsp), %eax
jge 0x317d5
movq 0x30(%rsp), %rax
movl $0x80000000, (%rax) # imm = 0x80000000
movb $0x0, 0x47(%rsp)
jmp 0x31837
movl 0x2c(%rsp), %eax
imull 0x28(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %eax
movl 0x8(%rsp), %ecx
addl $0x80000000, %ecx # imm = 0x80000000
cmpl %ecx, %eax
jge 0x31806
movq 0x30(%rsp), %rax
movl $0x80000000, (%rax) # imm = 0x80000000
movb $0x0, 0x47(%rsp)
jmp 0x31837
movl 0x8(%rsp), %ecx
movl 0x28(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x28(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x3176f
movl 0x28(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
movb $0x1, 0x47(%rsp)
movb 0x47(%rsp), %al
andb $0x1, %al
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN6google8protobuf23safe_parse_negative_intIiEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_1C], 0Ah
mov [rsp+48h+var_20], 0
mov [rsp+48h+var_24], 80000000h
mov eax, 80000000h
cdq
idiv [rsp+48h+var_1C]
mov [rsp+48h+var_28], eax
mov eax, 80000000h
cdq
idiv [rsp+48h+var_1C]
cmp edx, 0
jle short loc_3173E
mov eax, [rsp+48h+var_28]
add eax, 1
mov [rsp+48h+var_28], eax
loc_3173E:
mov rdi, [rsp+48h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void)
mov [rsp+48h+var_30], rax
mov rax, [rsp+48h+var_30]
mov [rsp+48h+var_48], rax
mov rdi, [rsp+48h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void)
mov rcx, rax
mov rax, [rsp+48h+var_48]
add rax, rcx
mov [rsp+48h+var_38], rax
loc_3176F:
mov rax, [rsp+48h+var_30]
cmp rax, [rsp+48h+var_38]
jnb loc_31827
mov rax, [rsp+48h+var_30]
mov al, [rax]
mov [rsp+48h+var_39], al
movzx eax, [rsp+48h+var_39]
sub eax, 30h ; '0'
mov [rsp+48h+var_40], eax
mov eax, [rsp+48h+var_40]
cmp eax, [rsp+48h+var_1C]
jge short loc_317A7
cmp [rsp+48h+var_40], 0
jge short loc_317B9
loc_317A7:
mov ecx, [rsp+48h+var_20]
mov rax, [rsp+48h+var_18]
mov [rax], ecx
mov [rsp+48h+var_1], 0
jmp short loc_31837
loc_317B9:
mov eax, [rsp+48h+var_20]
cmp eax, [rsp+48h+var_28]
jge short loc_317D5
mov rax, [rsp+48h+var_18]
mov dword ptr [rax], 80000000h
mov [rsp+48h+var_1], 0
jmp short loc_31837
loc_317D5:
mov eax, [rsp+48h+var_1C]
imul eax, [rsp+48h+var_20]
mov [rsp+48h+var_20], eax
mov eax, [rsp+48h+var_20]
mov ecx, [rsp+48h+var_40]
add ecx, 80000000h
cmp eax, ecx
jge short loc_31806
mov rax, [rsp+48h+var_18]
mov dword ptr [rax], 80000000h
mov [rsp+48h+var_1], 0
jmp short loc_31837
loc_31806:
mov ecx, [rsp+48h+var_40]
mov eax, [rsp+48h+var_20]
sub eax, ecx
mov [rsp+48h+var_20], eax
mov rax, [rsp+48h+var_30]
add rax, 1
mov [rsp+48h+var_30], rax
jmp loc_3176F
loc_31827:
mov ecx, [rsp+48h+var_20]
mov rax, [rsp+48h+var_18]
mov [rax], ecx
mov [rsp+48h+var_1], 1
loc_31837:
mov al, [rsp+48h+var_1]
and al, 1
add rsp, 48h
retn
| char google::protobuf::safe_parse_negative_int<int>(long long a1, int *a2)
{
unsigned int v3; // [rsp+8h] [rbp-40h]
unsigned __int8 *v4; // [rsp+10h] [rbp-38h]
unsigned __int8 *v5; // [rsp+18h] [rbp-30h]
int v6; // [rsp+28h] [rbp-20h]
int v7; // [rsp+28h] [rbp-20h]
v6 = 0;
v5 = (unsigned __int8 *)std::string::data(a1);
v4 = &v5[std::string::size(a1)];
while ( v5 < v4 )
{
v3 = *v5 - 48;
if ( v3 >= 0xA )
{
*a2 = v6;
return 0;
}
if ( v6 < -214748364 )
{
*a2 = 0x80000000;
return 0;
}
v7 = 10 * v6;
if ( v7 < (int)(v3 + 0x80000000) )
{
*a2 = 0x80000000;
return 0;
}
v6 = v7 - v3;
++v5;
}
*a2 = v6;
return 1;
}
| safe_parse_negative_int<int>:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV dword ptr [RSP + 0x2c],0xa
MOV dword ptr [RSP + 0x28],0x0
MOV dword ptr [RSP + 0x24],0x80000000
MOV EAX,0x80000000
CDQ
IDIV dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x20],EAX
MOV EAX,0x80000000
CDQ
IDIV dword ptr [RSP + 0x2c]
CMP EDX,0x0
JLE 0x0013173e
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
LAB_0013173e:
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x001174a0
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x001147d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
LAB_0013176f:
MOV RAX,qword ptr [RSP + 0x18]
CMP RAX,qword ptr [RSP + 0x10]
JNC 0x00131827
MOV RAX,qword ptr [RSP + 0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RSP + 0xf],AL
MOVZX EAX,byte ptr [RSP + 0xf]
SUB EAX,0x30
MOV dword ptr [RSP + 0x8],EAX
MOV EAX,dword ptr [RSP + 0x8]
CMP EAX,dword ptr [RSP + 0x2c]
JGE 0x001317a7
CMP dword ptr [RSP + 0x8],0x0
JGE 0x001317b9
LAB_001317a7:
MOV ECX,dword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],ECX
MOV byte ptr [RSP + 0x47],0x0
JMP 0x00131837
LAB_001317b9:
MOV EAX,dword ptr [RSP + 0x28]
CMP EAX,dword ptr [RSP + 0x20]
JGE 0x001317d5
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],0x80000000
MOV byte ptr [RSP + 0x47],0x0
JMP 0x00131837
LAB_001317d5:
MOV EAX,dword ptr [RSP + 0x2c]
IMUL EAX,dword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0x28],EAX
MOV EAX,dword ptr [RSP + 0x28]
MOV ECX,dword ptr [RSP + 0x8]
ADD ECX,0x80000000
CMP EAX,ECX
JGE 0x00131806
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],0x80000000
MOV byte ptr [RSP + 0x47],0x0
JMP 0x00131837
LAB_00131806:
MOV ECX,dword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x28]
SUB EAX,ECX
MOV dword ptr [RSP + 0x28],EAX
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x1
MOV qword ptr [RSP + 0x18],RAX
JMP 0x0013176f
LAB_00131827:
MOV ECX,dword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],ECX
MOV byte ptr [RSP + 0x47],0x1
LAB_00131837:
MOV AL,byte ptr [RSP + 0x47]
AND AL,0x1
ADD RSP,0x48
RET
|
/* WARNING: Removing unreachable block (ram,0x00131733) */
/* bool google::protobuf::safe_parse_negative_int<int>(std::__cxx11::string const&, int*) */
bool google::protobuf::safe_parse_negative_int<int>(string *param_1,int *param_2)
{
int iVar1;
long lVar2;
byte *pbVar3;
byte *local_30;
int local_20;
local_20 = 0;
local_30 = (byte *)std::__cxx11::string::data(param_1);
lVar2 = std::__cxx11::string::size(param_1);
pbVar3 = local_30 + lVar2;
while( true ) {
if (pbVar3 <= local_30) {
*param_2 = local_20;
return true;
}
iVar1 = *local_30 - 0x30;
if ((9 < iVar1) || (iVar1 < 0)) {
*param_2 = local_20;
return false;
}
if (local_20 < -0xccccccc) {
*param_2 = -0x80000000;
return false;
}
if (local_20 * 10 < (int)(*local_30 + 0x7fffffd0)) break;
local_20 = local_20 * 10 - iVar1;
local_30 = local_30 + 1;
}
*param_2 = -0x80000000;
return false;
}
| |
20,915 | mcp::sse_client::send_request(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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&) | hkr04[P]cpp-mcp/src/mcp_sse_client.cpp | response sse_client::send_request(const std::string& method, const json& params) {
request req = request::create(method, params);
json result = send_jsonrpc(req);
response res;
res.jsonrpc = "2.0";
res.id = req.id;
res.result = result;
return res;
} | O0 | cpp | mcp::sse_client::send_request(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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&):
subq $0xe8, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
movq %rcx, 0xc8(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xd0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
leaq 0x68(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x85f70
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x58(%rsp), %rdi
callq 0x7ff50
jmp 0x81df6
movq 0x8(%rsp), %rdi
movb $0x0, 0x4b(%rsp)
callq 0x868b0
jmp 0x81e07
movq 0x8(%rsp), %rdi
leaq 0x5130d(%rip), %rsi # 0xd3120
callq 0xbb40
jmp 0x81e1a
leaq 0x88(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x6f710
jmp 0x81e2e
movq 0x8(%rsp), %rdi
addq $0x20, %rdi
leaq 0x38(%rsp), %rsi
movq %rsi, (%rsp)
callq 0x863e0
movq (%rsp), %rdi
callq 0xfa40
leaq 0x28(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x6f710
jmp 0x81e5f
movq 0x8(%rsp), %rdi
addq $0x30, %rdi
leaq 0x28(%rsp), %rsi
callq 0x863e0
leaq 0x28(%rsp), %rdi
callq 0xfa40
movb $0x1, 0x4b(%rsp)
testb $0x1, 0x4b(%rsp)
jne 0x81ece
jmp 0x81ec4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x81ef9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x81eef
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
callq 0x86960
jmp 0x81eef
movq 0x8(%rsp), %rdi
callq 0x86960
leaq 0x58(%rsp), %rdi
callq 0xfa40
leaq 0x68(%rsp), %rdi
callq 0x86590
movq 0x10(%rsp), %rax
addq $0xe8, %rsp
retq
leaq 0x58(%rsp), %rdi
callq 0xfa40
leaq 0x68(%rsp), %rdi
callq 0x86590
movq 0x50(%rsp), %rdi
callq 0xbe10
nopl (%rax)
| _ZN3mcp10sse_client12send_requestERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEE:
sub rsp, 0E8h
mov [rsp+0E8h+var_E0], rdi
mov rax, rdi
mov [rsp+0E8h+var_D8], rax
mov [rsp+0E8h+var_8], rdi
mov [rsp+0E8h+var_10], rsi
mov [rsp+0E8h+var_18], rdx
mov [rsp+0E8h+var_20], rcx
mov rax, [rsp+0E8h+var_10]
mov [rsp+0E8h+var_D0], rax
mov rsi, [rsp+0E8h+var_18]
mov rdx, [rsp+0E8h+var_20]
lea rdi, [rsp+0E8h+var_80]
mov [rsp+0E8h+var_C8], rdi
call _ZN3mcp7request6createERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEE; mcp::request::create(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 rsi, [rsp+0E8h+var_D0]
mov rdx, [rsp+0E8h+var_C8]
lea rdi, [rsp+0E8h+var_90]
call _ZN3mcp10sse_client12send_jsonrpcB5cxx11ERKNS_7requestE; mcp::sse_client::send_jsonrpc(mcp::request const&)
jmp short $+2
loc_81DF6:
mov rdi, [rsp+0E8h+var_E0]; this
mov [rsp+0E8h+var_9D], 0
call _ZN3mcp8responseC2Ev; mcp::response::response(void)
jmp short $+2
loc_81E07:
mov rdi, [rsp+0E8h+var_E0]
lea rsi, a20; "2.0"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*)
jmp short $+2
loc_81E1A:
lea rsi, [rsp+0E8h+var_60]
lea rdi, [rsp+0E8h+var_B0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short $+2
loc_81E2E:
mov rdi, [rsp+0E8h+var_E0]
add rdi, 20h ; ' '
lea rsi, [rsp+0E8h+var_B0]
mov [rsp+0E8h+var_E8], rsi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
lea rdi, [rsp+0E8h+var_C0]
lea rsi, [rsp+0E8h+var_90]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short $+2
loc_81E5F:
mov rdi, [rsp+0E8h+var_E0]
add rdi, 30h ; '0'
lea rsi, [rsp+0E8h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
lea rdi, [rsp+0E8h+var_C0]
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 [rsp+0E8h+var_9D], 1
test [rsp+0E8h+var_9D], 1
jnz short loc_81ECE
jmp short loc_81EC4
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp short loc_81EF9
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp short loc_81EEF
mov rdi, [rsp+arg_0]; this
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
call _ZN3mcp8responseD2Ev; mcp::response::~response()
jmp short loc_81EEF
loc_81EC4:
mov rdi, [rsp+0E8h+var_E0]; this
call _ZN3mcp8responseD2Ev; mcp::response::~response()
loc_81ECE:
lea rdi, [rsp+0E8h+var_90]
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+0E8h+var_80]; this
call _ZN3mcp7requestD2Ev; mcp::request::~request()
mov rax, [rsp+0E8h+var_D8]
add rsp, 0E8h
retn
loc_81EEF:
lea rdi, [rsp+arg_50]
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_81EF9:
lea rdi, [rsp+arg_60]; this
call _ZN3mcp7requestD2Ev; mcp::request::~request()
mov rdi, [rsp+arg_48]
call __Unwind_Resume
| mcp::response * mcp::sse_client::send_request(
mcp::response *a1,
long long a2,
long long a3,
long long a4,
int a5,
int a6)
{
_BYTE v7[16]; // [rsp+28h] [rbp-C0h] BYREF
_BYTE v8[19]; // [rsp+38h] [rbp-B0h] BYREF
char v9; // [rsp+4Bh] [rbp-9Dh]
_BYTE v10[16]; // [rsp+58h] [rbp-90h] BYREF
_BYTE v11[32]; // [rsp+68h] [rbp-80h] BYREF
_BYTE v12[64]; // [rsp+88h] [rbp-60h] BYREF
long long v13; // [rsp+C8h] [rbp-20h]
long long v14; // [rsp+D0h] [rbp-18h]
long long v15; // [rsp+D8h] [rbp-10h]
mcp::response *v16; // [rsp+E0h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4;
mcp::request::create((unsigned int)v11, a3, a4, a4, a5, a6);
mcp::sse_client::send_jsonrpc[abi:cxx11]((long long)v10, a2, (mcp::request *)v11);
v9 = 0;
mcp::response::response(a1);
std::string::operator=(a1, "2.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(
(long long)v8,
(long long)v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=((char *)a1 + 32);
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)v8);
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,
(long long)v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=((char *)a1 + 48);
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);
v9 = 1;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v10);
mcp::request::~request((mcp::request *)v11);
return a1;
}
| send_request:
SUB RSP,0xe8
MOV qword ptr [RSP + 0x8],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0xe0],RDI
MOV qword ptr [RSP + 0xd8],RSI
MOV qword ptr [RSP + 0xd0],RDX
MOV qword ptr [RSP + 0xc8],RCX
MOV RAX,qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0x18],RAX
MOV RSI,qword ptr [RSP + 0xd0]
MOV RDX,qword ptr [RSP + 0xc8]
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00185f70
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
LAB_00181dea:
LEA RDI,[RSP + 0x58]
CALL 0x0017ff50
JMP 0x00181df6
LAB_00181df6:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x4b],0x0
LAB_00181e00:
CALL 0x001868b0
JMP 0x00181e07
LAB_00181e07:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[0x1d3120]
CALL 0x0010bb40
JMP 0x00181e1a
LAB_00181e1a:
LEA RSI,[RSP + 0x88]
LEA RDI,[RSP + 0x38]
CALL 0x0016f710
JMP 0x00181e2e
LAB_00181e2e:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x20
LEA RSI,[RSP + 0x38]
MOV qword ptr [RSP],RSI
CALL 0x001863e0
MOV RDI,qword ptr [RSP]
CALL 0x0010fa40
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x58]
CALL 0x0016f710
LAB_00181e5d:
JMP 0x00181e5f
LAB_00181e5f:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x30
LEA RSI,[RSP + 0x28]
CALL 0x001863e0
LEA RDI,[RSP + 0x28]
CALL 0x0010fa40
MOV byte ptr [RSP + 0x4b],0x1
TEST byte ptr [RSP + 0x4b],0x1
JNZ 0x00181ece
JMP 0x00181ec4
LAB_00181ec4:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00186960
LAB_00181ece:
LEA RDI,[RSP + 0x58]
CALL 0x0010fa40
LEA RDI,[RSP + 0x68]
CALL 0x00186590
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0xe8
RET
|
/* WARNING: Removing unreachable block (ram,0x00181e88) */
/* mcp::sse_client::send_request(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&) */
string * mcp::sse_client::send_request(string *param_1,basic_json *param_2)
{
basic_json *in_RCX;
string *in_RDX;
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_c0 [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_b0 [19];
int1 local_9d;
request local_90 [16];
request local_80 [32];
basic_json local_60 [80];
basic_json *local_10;
string *local_8;
local_10 = param_2;
local_8 = param_1;
request::create(local_80,in_RDX,in_RCX);
/* try { // try from 00181dea to 00181df3 has its CatchHandler @ 00181e8a */
send_jsonrpc_abi_cxx11_(local_90);
local_9d = 0;
/* try { // try from 00181e00 to 00181e04 has its CatchHandler @ 00181e9a */
response::response((response *)param_1);
/* try { // try from 00181e07 to 00181e5c has its CatchHandler @ 00181eaa */
std::__cxx11::string::operator=(param_1,"2.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>
::basic_json(local_b0,local_60);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((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 + 0x20));
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>
::~basic_json(local_b0);
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>
::basic_json(local_c0,(basic_json *)local_90);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((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 + 0x30),local_c0);
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>
::~basic_json(local_c0);
local_9d = 1;
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>
::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_90);
request::~request(local_80);
return param_1;
}
| |
20,916 | mcp::sse_client::send_request(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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&) | hkr04[P]cpp-mcp/src/mcp_sse_client.cpp | response sse_client::send_request(const std::string& method, const json& params) {
request req = request::create(method, params);
json result = send_jsonrpc(req);
response res;
res.jsonrpc = "2.0";
res.id = req.id;
res.result = result;
return res;
} | O2 | cpp | mcp::sse_client::send_request(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x1232c
movq %rsp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xf85e
movq %rbx, %rdi
callq 0x12746
leaq 0x29471(%rip), %rsi # 0x39b39
movq %rbx, %rdi
callq 0x8a70
leaq 0x50(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0xb622
movb 0x20(%rbx), %al
leaq 0x20(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x20(%rbx)
movb %al, (%rdi)
movq 0x28(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x28(%rbx)
movq %rax, 0x8(%rdi)
callq 0xa80c
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0xb622
movb 0x30(%rbx), %al
leaq 0x10(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x30(%rbx)
movb %al, (%rdi)
movq 0x38(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x38(%rbx)
movq %rax, 0x8(%rdi)
callq 0xa80c
movq %rsp, %rdi
callq 0xa80c
leaq 0x30(%rsp), %rdi
callq 0x1258c
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0x1076b
movq %rax, %r14
jmp 0x10773
movq %rax, %r14
movq %rbx, %rdi
callq 0x1278a
movq %rsp, %rdi
callq 0xa80c
leaq 0x30(%rsp), %rdi
callq 0x1258c
movq %r14, %rdi
callq 0x89c0
nop
| _ZN3mcp10sse_client12send_requestERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEE:
push r15
push r14
push rbx
sub rsp, 90h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+0A8h+var_78]
mov rdi, r15
mov rsi, rdx
mov rdx, rcx
call _ZN3mcp7request6createERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEE; mcp::request::create(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 rdi, rsp
mov rsi, r14
mov rdx, r15
call _ZN3mcp10sse_client12send_jsonrpcB5cxx11ERKNS_7requestE; mcp::sse_client::send_jsonrpc(mcp::request const&)
mov rdi, rbx; this
call _ZN3mcp8responseC2Ev; mcp::response::response(void)
lea rsi, a20; "2.0"
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*)
lea rsi, [rsp+0A8h+var_58]
lea rdi, [rsp+0A8h+var_88]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov al, [rbx+20h]
lea rdi, [rsp+0A8h+var_88]
mov cl, [rdi]
mov [rbx+20h], cl
mov [rdi], al
mov rax, [rbx+28h]
mov rcx, [rdi+8]
mov [rbx+28h], rcx
mov [rdi+8], rax
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()
lea rdi, [rsp+0A8h+var_98]
mov rsi, rsp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov al, [rbx+30h]
lea rdi, [rsp+0A8h+var_98]
mov cl, [rdi]
mov [rbx+30h], cl
mov [rdi], al
mov rax, [rbx+38h]
mov rcx, [rdi+8]
mov [rbx+38h], rcx
mov [rdi+8], rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rsp
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()
lea rdi, [rsp+0A8h+var_78]; this
call _ZN3mcp7requestD2Ev; mcp::request::~request()
mov rax, rbx
add rsp, 90h
pop rbx
pop r14
pop r15
retn
mov r14, rax
jmp short loc_1076B
mov r14, rax
jmp short loc_10773
mov r14, rax
mov rdi, rbx; this
call _ZN3mcp8responseD2Ev; mcp::response::~response()
loc_1076B:
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_10773:
lea rdi, [rsp+arg_28]; this
call _ZN3mcp7requestD2Ev; mcp::request::~request()
mov rdi, r14
call __Unwind_Resume
| mcp::response * mcp::sse_client::send_request(mcp::response *this, long long a2, long long a3, long long a4)
{
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
char v8; // al
long long v9; // rax
int v10; // edx
int v11; // ecx
int v12; // r8d
int v13; // r9d
char v14; // al
long long v15; // rax
unsigned __int8 v17[16]; // [rsp+0h] [rbp-A8h] BYREF
_BYTE v18[8]; // [rsp+10h] [rbp-98h] BYREF
long long v19; // [rsp+18h] [rbp-90h]
_BYTE v20[8]; // [rsp+20h] [rbp-88h] BYREF
long long v21; // [rsp+28h] [rbp-80h]
_BYTE v22[32]; // [rsp+30h] [rbp-78h] BYREF
unsigned __int8 v23[88]; // [rsp+50h] [rbp-58h] BYREF
mcp::request::create(v22, a3, a4);
mcp::sse_client::send_jsonrpc[abi:cxx11]((long long)v17, a2, (long long)v22);
mcp::response::response(this);
std::string::assign(this, "2.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(
(long long)v20,
v23,
v4,
v5,
v6,
v7);
v8 = *((_BYTE *)this + 32);
*((_BYTE *)this + 32) = v20[0];
v20[0] = v8;
v9 = *((_QWORD *)this + 5);
*((_QWORD *)this + 5) = v21;
v21 = 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>::data::~data(v20);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v18,
v17,
v10,
v11,
v12,
v13);
v14 = *((_BYTE *)this + 48);
*((_BYTE *)this + 48) = v18[0];
v18[0] = v14;
v15 = *((_QWORD *)this + 7);
*((_QWORD *)this + 7) = v19;
v19 = v15;
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(v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v17);
mcp::request::~request((mcp::request *)v22);
return this;
}
| send_request:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x30]
MOV RDI,R15
MOV RSI,RDX
MOV RDX,RCX
CALL 0x0011232c
LAB_001106ab:
MOV RDI,RSP
MOV RSI,R14
MOV RDX,R15
CALL 0x0010f85e
LAB_001106b9:
MOV RDI,RBX
CALL 0x00112746
LAB_001106c1:
LEA RSI,[0x139b39]
MOV RDI,RBX
CALL 0x00108a70
LEA RSI,[RSP + 0x50]
LEA RDI,[RSP + 0x20]
CALL 0x0010b622
MOV AL,byte ptr [RBX + 0x20]
LEA RDI,[RSP + 0x20]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x20],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x28]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x28],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0010a80c
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
CALL 0x0010b622
LAB_00110710:
MOV AL,byte ptr [RBX + 0x30]
LEA RDI,[RSP + 0x10]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x30],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x38]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x38],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0010a80c
MOV RDI,RSP
CALL 0x0010a80c
LEA RDI,[RSP + 0x30]
CALL 0x0011258c
MOV RAX,RBX
ADD RSP,0x90
POP RBX
POP R14
POP R15
RET
|
/* mcp::sse_client::send_request(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&) */
string * mcp::sse_client::send_request(string *param_1,basic_json *param_2)
{
string sVar1;
int8 uVar2;
basic_json *in_RCX;
string *in_RDX;
request arStack_a8 [16];
string local_98 [8];
int8 local_90;
string local_88 [8];
int8 local_80;
request local_78 [32];
basic_json local_58 [64];
request::create(local_78,in_RDX,in_RCX);
/* try { // try from 001106ab to 001106b8 has its CatchHandler @ 0011075b */
send_jsonrpc_abi_cxx11_(arStack_a8);
/* try { // try from 001106b9 to 001106c0 has its CatchHandler @ 00110756 */
response::response((response *)param_1);
/* try { // try from 001106c1 to 0011070f has its CatchHandler @ 00110760 */
std::__cxx11::string::assign((char *)param_1);
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>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_88,local_58);
sVar1 = param_1[0x20];
param_1[0x20] = local_88[0];
uVar2 = *(int8 *)(param_1 + 0x28);
*(int8 *)(param_1 + 0x28) = local_80;
local_88[0] = sVar1;
local_80 = uVar2;
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 *)local_88);
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>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_98,(basic_json *)arStack_a8);
sVar1 = param_1[0x30];
param_1[0x30] = local_98[0];
uVar2 = *(int8 *)(param_1 + 0x38);
*(int8 *)(param_1 + 0x38) = local_90;
local_98[0] = sVar1;
local_90 = uVar2;
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 *)local_98);
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 *)arStack_a8);
request::~request(local_78);
return param_1;
}
| |
20,917 | ma_update_status_with_lock | eloqsql/storage/maria/ma_state.c | void _ma_update_status_with_lock(MARIA_HA *info)
{
my_bool locked= 0;
if (info->state == &info->state_save)
{
locked= 1;
mysql_mutex_lock(&info->s->lock.mutex);
}
(*info->s->lock.update_status)(info->lock.status_param);
if (locked)
mysql_mutex_unlock(&info->s->lock.mutex);
} | O3 | c | ma_update_status_with_lock:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x28(%rdi), %rcx
cmpq %rcx, 0x20(%rdi)
je 0x38727
movq 0x6b8(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x8b0(%rax)
leaq 0x808(%rax), %rdi
cmpq $0x0, 0x848(%rax)
jne 0x38771
callq 0x29220
movq (%rbx), %rax
movq 0x6b8(%rbx), %rdi
callq *0x8b0(%rax)
movq (%rbx), %rbx
movq 0x848(%rbx), %rdi
addq $0x808, %rbx # imm = 0x808
testq %rdi, %rdi
jne 0x38784
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x291e0
leaq 0xa0f6d(%rip), %rsi # 0xd96e5
movl $0x168, %edx # imm = 0x168
callq 0x2eb8f
jmp 0x3873d
leaq 0x34d885(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x38763
| _ma_update_status_with_lock:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rax, [rdi]
lea rcx, [rdi+28h]
cmp [rdi+20h], rcx
jz short loc_38727
mov rdi, [rbx+6B8h]
add rsp, 8
pop rbx
pop rbp
jmp qword ptr [rax+8B0h]
loc_38727:
lea rdi, [rax+808h]
cmp qword ptr [rax+848h], 0
jnz short loc_38771
call _pthread_mutex_lock
loc_3873D:
mov rax, [rbx]
mov rdi, [rbx+6B8h]
call qword ptr [rax+8B0h]
mov rbx, [rbx]
mov rdi, [rbx+848h]
add rbx, 808h
test rdi, rdi
jnz short loc_38784
loc_38763:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutex_unlock
loc_38771:
lea rsi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 168h
call psi_mutex_lock
jmp short loc_3873D
loc_38784:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_38763
| long long ma_update_status_with_lock(_QWORD *a1)
{
long long v2; // rax
long long v4; // rdi
long long v5; // rbx
long long v6; // rdi
long long v7; // rbx
v2 = *a1;
if ( (_QWORD *)a1[4] != a1 + 5 )
return (*(long long ( **)(_QWORD))(v2 + 2224))(a1[215]);
v4 = v2 + 2056;
if ( *(_QWORD *)(v2 + 2120) )
psi_mutex_lock(v4, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x168u);
else
pthread_mutex_lock(v4);
(*(void ( **)(_QWORD))(*a1 + 2224LL))(a1[215]);
v5 = *a1;
v6 = *(_QWORD *)(v5 + 2120);
v7 = v5 + 2056;
if ( v6 )
((void ( *)(long long))PSI_server[44])(v6);
return pthread_mutex_unlock(v7);
}
| _ma_update_status_with_lock:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
LEA RCX,[RDI + 0x28]
CMP qword ptr [RDI + 0x20],RCX
JZ 0x00138727
MOV RDI,qword ptr [RBX + 0x6b8]
ADD RSP,0x8
POP RBX
POP RBP
JMP qword ptr [RAX + 0x8b0]
LAB_00138727:
LEA RDI,[RAX + 0x808]
CMP qword ptr [RAX + 0x848],0x0
JNZ 0x00138771
CALL 0x00129220
LAB_0013873d:
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RBX + 0x6b8]
CALL qword ptr [RAX + 0x8b0]
MOV RBX,qword ptr [RBX]
MOV RDI,qword ptr [RBX + 0x848]
ADD RBX,0x808
TEST RDI,RDI
JNZ 0x00138784
LAB_00138763:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001291e0
LAB_00138771:
LEA RSI,[0x1d96e5]
MOV EDX,0x168
CALL 0x0012eb8f
JMP 0x0013873d
LAB_00138784:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00138763
|
void _ma_update_status_with_lock(long *param_1)
{
long lVar1;
lVar1 = *param_1;
if ((long *)param_1[4] != param_1 + 5) {
/* WARNING: Could not recover jumptable at 0x00138721. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(lVar1 + 0x8b0))(param_1[0xd7]);
return;
}
if (*(long *)(lVar1 + 0x848) == 0) {
pthread_mutex_lock((pthread_mutex_t *)(lVar1 + 0x808));
}
else {
psi_mutex_lock((pthread_mutex_t *)(lVar1 + 0x808),
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c",0x168);
}
(**(code **)(*param_1 + 0x8b0))(param_1[0xd7]);
lVar1 = *param_1;
if (*(long *)(lVar1 + 0x848) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)(lVar1 + 0x808));
return;
}
| |
20,918 | ma_tls_write | eloqsql/libmariadb/libmariadb/secure/openssl.c | ssize_t ma_tls_write(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
{
int rc;
MARIADB_PVIO *pvio= ctls->pvio;
while ((rc= SSL_write((SSL *)ctls->ssl, (void *)buffer, (int)length)) <= 0)
{
int error= SSL_get_error((SSL *)ctls->ssl, rc);
if (error != SSL_ERROR_WANT_WRITE)
break;
if (pvio->methods->wait_io_or_timeout(pvio, TRUE, pvio->mysql->options.write_timeout) < 1)
break;
}
if (rc <= 0)
{
MYSQL *mysql= SSL_get_app_data(ctls->ssl);
ma_tls_set_error(mysql);
}
return rc;
} | O0 | c | ma_tls_write:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rax
movl %eax, %edx
callq 0x13810
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jg 0x37418
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x1c(%rbp), %esi
callq 0x13040
movl %eax, -0x2c(%rbp)
cmpl $0x3, -0x2c(%rbp)
je 0x373ea
jmp 0x37418
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x30(%rax), %rax
movq -0x28(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq 0x40(%rcx), %rcx
movl 0x398(%rcx), %edx
movl $0x1, %esi
callq *%rax
cmpl $0x1, %eax
jge 0x37416
jmp 0x37418
jmp 0x373b0
cmpl $0x0, -0x1c(%rbp)
jg 0x3743a
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
xorl %esi, %esi
callq 0x13150
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x37000
movslq -0x1c(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_tls_write:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_28], rax
loc_373B0:
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_18]
mov edx, eax
call _SSL_write
mov [rbp+var_1C], eax
cmp eax, 0
jg short loc_37418
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
mov esi, [rbp+var_1C]
call _SSL_get_error
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 3
jz short loc_373EA
jmp short loc_37418
loc_373EA:
mov rax, [rbp+var_28]
mov rax, [rax+48h]
mov rax, [rax+30h]
mov rdi, [rbp+var_28]
mov rcx, [rbp+var_28]
mov rcx, [rcx+40h]
mov edx, [rcx+398h]
mov esi, 1
call rax
cmp eax, 1
jge short loc_37416
jmp short loc_37418
loc_37416:
jmp short loc_373B0
loc_37418:
cmp [rbp+var_1C], 0
jg short loc_3743A
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
xor esi, esi
call _SSL_get_ex_data
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
call ma_tls_set_error
loc_3743A:
movsxd rax, [rbp+var_1C]
add rsp, 40h
pop rbp
retn
| long long ma_tls_write(long long a1, long long a2, unsigned int a3)
{
long long *v4; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+18h] [rbp-28h]
int v6; // [rsp+24h] [rbp-1Ch]
v5 = *(_QWORD *)(a1 + 8);
do
v6 = SSL_write(*(_QWORD *)(a1 + 16), a2, a3);
while ( v6 <= 0
&& (unsigned int)SSL_get_error(*(_QWORD *)(a1 + 16), (unsigned int)v6) == 3
&& (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v5 + 72) + 48LL))(
v5,
1LL,
*(unsigned int *)(*(_QWORD *)(v5 + 64) + 920LL)) >= 1 );
if ( v6 <= 0 )
{
v4 = (long long *)SSL_get_ex_data(*(_QWORD *)(a1 + 16), 0LL);
ma_tls_set_error(v4);
}
return v6;
}
| ma_tls_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_001373b0:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV EDX,EAX
CALL 0x00113810
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
JG 0x00137418
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
MOV ESI,dword ptr [RBP + -0x1c]
CALL 0x00113040
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x3
JZ 0x001373ea
JMP 0x00137418
LAB_001373ea:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RCX + 0x40]
MOV EDX,dword ptr [RCX + 0x398]
MOV ESI,0x1
CALL RAX
CMP EAX,0x1
JGE 0x00137416
JMP 0x00137418
LAB_00137416:
JMP 0x001373b0
LAB_00137418:
CMP dword ptr [RBP + -0x1c],0x0
JG 0x0013743a
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
XOR ESI,ESI
CALL 0x00113150
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00137000
LAB_0013743a:
MOVSXD RAX,dword ptr [RBP + -0x1c]
ADD RSP,0x40
POP RBP
RET
|
long ma_tls_write(long param_1,void *param_2,int param_3)
{
long lVar1;
int ret_code;
int iVar2;
void *pvVar3;
lVar1 = *(long *)(param_1 + 8);
do {
ret_code = SSL_write(*(SSL **)(param_1 + 0x10),param_2,param_3);
if ((0 < ret_code) || (iVar2 = SSL_get_error(*(SSL **)(param_1 + 0x10),ret_code), iVar2 != 3))
break;
iVar2 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30))
(lVar1,1,*(int4 *)(*(long *)(lVar1 + 0x40) + 0x398));
} while (0 < iVar2);
if (ret_code < 1) {
pvVar3 = SSL_get_ex_data(*(SSL **)(param_1 + 0x10),0);
ma_tls_set_error(pvVar3);
}
return (long)ret_code;
}
| |
20,919 | nlohmann::json_abi_v3_11_2::detail::type_error nlohmann::json_abi_v3_11_2::detail::type_error::create<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O1 | cpp | nlohmann::json_abi_v3_11_2::detail::type_error nlohmann::json_abi_v3_11_2::detail::type_error::create<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4ca87(%rip), %rsi # 0xc238e
leaq 0x4ca8a(%rip), %rdx # 0xc2398
leaq 0x28(%rsp), %rdi
callq 0x2fa9c
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x6ed2c
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0xa990
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa180
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa180
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa180
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x759b1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5e0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x759cc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5e0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x759e3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5e0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6ef28
leaq 0x80507(%rip), %rax # 0xf5f00
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x75a13
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5e0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x75aa1
movq 0x18(%rsp), %rsi
jmp 0x75a99
movq %rax, %rbx
jmp 0x75a8a
movq %rax, %rbx
jmp 0x75aa1
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x75a63
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5e0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0xbeea
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x75aa1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5e0
movq %rbx, %rdi
callq 0xaae0
| _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_26detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_2::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_759B1
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_759B1:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_759CC
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_759CC:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_759E3
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_759E3:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_26detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_2::detail::exception::exception(int,char const*)
lea rax, off_F5F00
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_75A13
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75A13:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_75AA1
mov rsi, [rsp+arg_10]
jmp short loc_75A99
mov rbx, rax
jmp short loc_75A8A
mov rbx, rax
jmp short loc_75AA1
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_75A63
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75A63:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ__cold_1
mov rbx, [r12]
loc_75A8A:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_75AA1
mov rsi, [rsp+arg_30]
loc_75A99:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75AA1:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_2::detail::exception * ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_2::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>(v7, "type_error", (long long)"");
nlohmann::json_abi_v3_11_2::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_2::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = off_F5F00;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| |||
20,920 | nlohmann::json_abi_v3_11_2::detail::type_error nlohmann::json_abi_v3_11_2::detail::type_error::create<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_2::detail::type_error nlohmann::json_abi_v3_11_2::detail::type_error::create<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x4c5d1(%rip), %rsi # 0x9e29e
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x19f24
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x4bc2a
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x4bca0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x4bbc0
leaq 0x8(%rsp), %rdi
callq 0xac60
leaq 0x48(%rsp), %rdi
callq 0xac60
leaq 0x28(%rsp), %rdi
callq 0xac60
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4bcc2
leaq 0x68(%rsp), %rdi
callq 0xac60
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x51d89
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xac60
jmp 0x51d75
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xac60
jmp 0x51d84
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xac60
jmp 0x51d93
movq %rax, %rbx
movq %rbx, %rdi
callq 0xaab0
| _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aTypeError; "type_error"
lea rdi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_26detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_2::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_26detail9exception11diagnosticsINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEEEESC_PKT_; nlohmann::json_abi_v3_11_2::detail::exception::diagnostics<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>> const*)
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_60]
lea rdx, [rsp+0A8h+var_A0]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_26detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_2::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_26detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_2::detail::type_error::type_error(int,char const*)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]
jmp short loc_51D89
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_51D75
mov rbx, rax
loc_51D75:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_51D84
mov rbx, rax
loc_51D84:
lea rdi, [rsp+arg_20]; void *
loc_51D89:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_51D93
mov rbx, rax
loc_51D93:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_2::detail::type_error * ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_2::detail::type_error *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
char *v8[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"type_error");
nlohmann::json_abi_v3_11_2::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_2::detail::exception::diagnostics<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(v5);
nlohmann::json_abi_v3_11_2::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_2::detail::type_error::type_error(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00151cc6:
LEA RSI,[0x19e29e]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x00119f24
LAB_00151cdc:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0014bc2a
LAB_00151ced:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x0014bca0
LAB_00151cfa:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0014bbc0
LEA RDI,[RSP + 0x8]
CALL 0x0010ac60
LEA RDI,[RSP + 0x48]
CALL 0x0010ac60
LEA RDI,[RSP + 0x28]
CALL 0x0010ac60
MOV RDX,qword ptr [RSP + 0x68]
LAB_00151d34:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0014bcc2
LAB_00151d3e:
LEA RDI,[RSP + 0x68]
CALL 0x0010ac60
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
type_error *
_ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(type_error *param_1,int param_2,string *param_3)
{
allocator local_a1;
string local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 00151cc6 to 00151cdb has its CatchHandler @ 00151d90 */
std::__cxx11::string::string<std::allocator<char>>(local_80,"type_error",&local_a1);
/* try { // try from 00151cdc to 00151cec has its CatchHandler @ 00151d81 */
nlohmann::json_abi_v3_11_2::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 00151ced to 00151cf9 has its CatchHandler @ 00151d72 */
nlohmann::json_abi_v3_11_2::detail::exception::
diagnostics<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
(local_a0);
/* try { // try from 00151cfa to 00151d10 has its CatchHandler @ 00151d63 */
nlohmann::json_abi_v3_11_2::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,local_a0,param_3);
std::__cxx11::string::~string(local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 00151d34 to 00151d3d has its CatchHandler @ 00151d59 */
nlohmann::json_abi_v3_11_2::detail::type_error::type_error(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
20,921 | nlohmann::json_abi_v3_11_2::detail::type_error nlohmann::json_abi_v3_11_2::detail::type_error::create<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_2::detail::type_error nlohmann::json_abi_v3_11_2::detail::type_error::create<nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4c9b9(%rip), %rsi # 0xc139e
leaq 0x4c9bc(%rip), %rdx # 0xc13a8
leaq 0x28(%rsp), %rdi
callq 0x2ecd4
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x6e0ce
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0xa980
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa180
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa180
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa180
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x74a8f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74aaa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x74ac1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6e2ca
leaq 0x7f429(%rip), %rax # 0xf3f00
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x74af1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x74b7f
movq 0x18(%rsp), %rsi
jmp 0x74b77
movq %rax, %rbx
jmp 0x74b68
movq %rax, %rbx
jmp 0x74b7f
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x74b41
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0xbe95
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x74b7f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq %rbx, %rdi
callq 0xaad0
| _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_26detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_2::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_74A8F
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_74A8F:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_74AAA
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_74AAA:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_74AC1
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_74AC1:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_26detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_2::detail::exception::exception(int,char const*)
lea rax, off_F3F00
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_74AF1
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_74AF1:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_74B7F
mov rsi, [rsp+arg_10]
jmp short loc_74B77
mov rbx, rax
jmp short loc_74B68
mov rbx, rax
jmp short loc_74B7F
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_74B41
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_74B41:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ__cold_1
mov rbx, [r12]
loc_74B68:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_74B7F
mov rsi, [rsp+arg_30]
loc_74B77:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_74B7F:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_2::detail::exception * ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_2::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)"");
nlohmann::json_abi_v3_11_2::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_2::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = off_F3F00;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| |||
20,922 | minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) | monkey531[P]llama/common/minja.hpp | static std::string error_location_suffix(const std::string & source, size_t pos) {
auto get_line = [&](size_t line) {
auto start = source.begin();
for (size_t i = 1; i < line; ++i) {
start = std::find(start, source.end(), '\n') + 1;
}
auto end = std::find(start, source.end(), '\n');
return std::string(start, end);
};
auto start = source.begin();
auto end = source.end();
auto it = start + pos;
auto line = std::count(start, it, '\n') + 1;
auto max_line = std::count(start, end, '\n') + 1;
auto col = pos - std::string(start, it).rfind('\n');
std::ostringstream out;
out << " at row " << line << ", column " << col << ":\n";
if (line > 1) out << get_line(line - 1) << "\n";
out << get_line(line) << "\n";
out << std::string(col - 1, ' ') << "^\n";
if (line < max_line) out << get_line(line + 1) << "\n";
return out.str();
} | O3 | cpp | minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movq %rdx, %r8
movq %rsi, %r14
movq %rdi, 0x38(%rsp)
movq (%rsi), %rsi
movq 0x8(%r14), %rax
testq %rdx, %rdx
je 0xd78c2
xorl %ecx, %ecx
xorl %r12d, %r12d
xorl %edx, %edx
cmpb $0xa, (%rsi,%rcx)
sete %dl
addq %rdx, %r12
incq %rcx
cmpq %rcx, %r8
jne 0xd78ac
jmp 0xd78c5
xorl %r12d, %r12d
leaq (%rsi,%r8), %rdx
testq %rax, %rax
movq %r8, 0x28(%rsp)
je 0xd78ef
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %edi, %edi
cmpb $0xa, (%rsi,%rcx)
sete %dil
addq %rdi, %r15
incq %rcx
cmpq %rcx, %rax
jne 0xd78d8
jmp 0xd78f2
xorl %r15d, %r15d
leaq 0x50(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x70e72
movq %rbx, %rdi
movl $0xa, %esi
movq $-0x1, %rdx
callq 0x1b150
movq %rax, %r13
movq (%rbx), %rdi
cmpq %rbp, %rdi
je 0xd7934
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x1ab90
leaq 0x18fb1(%rip), %rsi # 0xf08f9
movl $0x8, %edx
movq %rbx, %rdi
callq 0x1aa00
movq 0x28(%rsp), %rbx
leaq 0x1(%r12), %rsi
leaq 0x40(%rsp), %rdi
movq %rsi, 0x30(%rsp)
callq 0x1a850
movq %rax, %rbp
leaq 0x154e5(%rip), %rsi # 0xece5d
movl $0x9, %edx
movq %rax, %rdi
callq 0x1aa00
subq %r13, %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x1a5f0
leaq 0x1cd75(%rip), %rsi # 0xf470f
movl $0x2, %edx
movq %rax, %rdi
callq 0x1aa00
testq %r12, %r12
jle 0xd7a56
movq (%r14), %r13
cmpq $0x1, %r12
jne 0xd79be
movq %r13, %rsi
jmp 0xd79ea
leaq -0x1(%r12), %rbp
movq (%r14), %rsi
addq 0x8(%r14), %rsi
movb $0xa, 0x7(%rsp)
movq %r13, %rdi
leaq 0x7(%rsp), %rdx
callq 0x9960e
movq %rax, %r13
incq %r13
decq %rbp
jne 0xd79c3
movq (%r14), %rsi
addq 0x8(%r14), %rsi
leaq 0x7(%rsp), %rdx
movb $0xa, (%rdx)
movq %r13, %rdi
callq 0x9960e
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x70e72
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1aa00
leaq 0x13f69(%rip), %rsi # 0xeb99b
movl $0x1, %edx
movq %rax, %rdi
callq 0x1aa00
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd7a56
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
movq (%r14), %r13
cmpq $0x2, 0x30(%rsp)
jb 0xd7a9a
movq %rbx, 0x28(%rsp)
leaq 0x7(%rsp), %rbp
movq %r12, %rbx
movq (%r14), %rsi
addq 0x8(%r14), %rsi
movb $0xa, 0x7(%rsp)
movq %r13, %rdi
movq %rbp, %rdx
callq 0x9960e
movq %rax, %r13
incq %r13
decq %rbx
jne 0xd7a6e
movq (%r14), %rsi
movq 0x28(%rsp), %rbx
jmp 0xd7a9d
movq %r13, %rsi
addq 0x8(%r14), %rsi
leaq 0x7(%rsp), %rdx
movb $0xa, (%rdx)
movq %r13, %rdi
callq 0x9960e
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x70e72
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1aa00
leaq 0x13eb6(%rip), %rsi # 0xeb99b
movl $0x1, %edx
movq %rax, %rdi
callq 0x1aa00
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd7b09
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
decq %rbx
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
movq %rbx, %rsi
movl $0x20, %edx
callq 0x1aa30
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1aa00
leaq 0x18dc6(%rip), %rsi # 0xf0902
movl $0x2, %edx
movq %rax, %rdi
callq 0x1aa00
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd7b60
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
cmpq %r15, %r12
jge 0xd7c0c
movq (%r14), %r15
cmpq $-0x3, %r12
ja 0xd7ba3
leaq 0x7(%rsp), %r13
movq 0x30(%rsp), %rbx
movq (%r14), %rsi
addq 0x8(%r14), %rsi
movb $0xa, 0x7(%rsp)
movq %r15, %rdi
movq %r13, %rdx
callq 0x9960e
movq %rax, %r15
incq %r15
decq %rbx
jne 0xd7b7c
movq (%r14), %rsi
jmp 0xd7ba6
movq %r15, %rsi
addq 0x8(%r14), %rsi
leaq 0x7(%rsp), %rdx
movb $0xa, (%rdx)
movq %r15, %rdi
callq 0x9960e
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
movq %r15, %rsi
movq %rax, %rdx
callq 0x70e72
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1aa00
leaq 0x13db3(%rip), %rsi # 0xeb99b
movl $0x1, %edx
movq %rax, %rdi
callq 0x1aa00
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd7c0c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x48(%rsp), %rsi
movq 0x38(%rsp), %rdi
callq 0x1adc0
movq 0x54356(%rip), %rsi # 0x12bf78
leaq 0x40(%rsp), %rdi
callq 0x1a4a0
leaq 0xb0(%rsp), %rdi
callq 0x1a2a0
addq $0x1b8, %rsp # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd7c75
jmp 0xd7c75
jmp 0xd7c59
jmp 0xd7c75
jmp 0xd7c75
jmp 0xd7c59
jmp 0xd7c59
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd7c78
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
jmp 0xd7c78
movq %rax, %rbx
movq 0x542f9(%rip), %rsi # 0x12bf78
leaq 0x40(%rsp), %rdi
callq 0x1a4a0
leaq 0xb0(%rsp), %rdi
callq 0x1a2a0
movq %rbx, %rdi
callq 0x1afb0
| _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm_0:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1B8h
mov r8, rdx
mov r14, rsi
mov [rsp+1E8h+var_1B0], rdi
mov rsi, [rsi]
mov rax, [r14+8]
test rdx, rdx
jz short loc_D78C2
xor ecx, ecx
xor r12d, r12d
loc_D78AC:
xor edx, edx
cmp byte ptr [rsi+rcx], 0Ah
setz dl
add r12, rdx
inc rcx
cmp r8, rcx
jnz short loc_D78AC
jmp short loc_D78C5
loc_D78C2:
xor r12d, r12d
loc_D78C5:
lea rdx, [rsi+r8]
test rax, rax
mov [rsp+1E8h+var_1C0], r8
jz short loc_D78EF
xor ecx, ecx
xor r15d, r15d
loc_D78D8:
xor edi, edi
cmp byte ptr [rsi+rcx], 0Ah
setz dil
add r15, rdi
inc rcx
cmp rax, rcx
jnz short loc_D78D8
jmp short loc_D78F2
loc_D78EF:
xor r15d, r15d
loc_D78F2:
lea rbp, [rsp+1E8h+var_198]
mov [rbp-10h], rbp
lea rbx, [rsp+1E8h+var_1A8]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rdi, rbx
mov esi, 0Ah
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong)
mov r13, rax
mov rdi, [rbx]; void *
cmp rdi, rbp
jz short loc_D7934
mov rsi, [rsp+1E8h+var_198]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D7934:
lea rbx, [rsp+1E8h+var_1A8]
mov rdi, rbx
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
lea rsi, aAtRow; " at row "
mov edx, 8
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)
mov rbx, [rsp+1E8h+var_1C0]
lea rsi, [r12+1]
lea rdi, [rsp+1E8h+var_1A8]
mov [rsp+1E8h+var_1B8], rsi
call __ZNSo9_M_insertIlEERSoT_; std::ostream::_M_insert<long>(long)
mov rbp, rax
lea rsi, aColumn; ", column "
mov edx, 9
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
sub rbx, r13
mov rdi, rbp
mov rsi, rbx
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, aJsonSchemaConv+1Dh; ":\n"
mov edx, 2
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test r12, r12
jle loc_D7A56
mov r13, [r14]
cmp r12, 1
jnz short loc_D79BE
mov rsi, r13
jmp short loc_D79EA
loc_D79BE:
lea rbp, [r12-1]
loc_D79C3:
mov rsi, [r14]
add rsi, [r14+8]
mov [rsp+1E8h+var_1E1], 0Ah
mov rdi, r13
lea rdx, [rsp+1E8h+var_1E1]
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
mov r13, rax
inc r13
dec rbp
jnz short loc_D79C3
mov rsi, [r14]
loc_D79EA:
add rsi, [r14+8]
lea rdx, [rsp+1E8h+var_1E1]
mov byte ptr [rdx], 0Ah
mov rdi, r13
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
lea rbp, [rsp+1E8h+var_1D0]
mov [rbp-10h], rbp
lea rdi, [rsp+1E8h+var_1E0]
mov rsi, r13
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
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, aErrorWhileHand_0+33h; "\n"
mov edx, 1
mov rdi, 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 rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_D7A56
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D7A56:
mov r13, [r14]
cmp [rsp+1E8h+var_1B8], 2
jb short loc_D7A9A
mov [rsp+1E8h+var_1C0], rbx
lea rbp, [rsp+1E8h+var_1E1]
mov rbx, r12
loc_D7A6E:
mov rsi, [r14]
add rsi, [r14+8]
mov [rsp+1E8h+var_1E1], 0Ah
mov rdi, r13
mov rdx, rbp
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
mov r13, rax
inc r13
dec rbx
jnz short loc_D7A6E
mov rsi, [r14]
mov rbx, [rsp+1E8h+var_1C0]
jmp short loc_D7A9D
loc_D7A9A:
mov rsi, r13
loc_D7A9D:
add rsi, [r14+8]
lea rdx, [rsp+1E8h+var_1E1]
mov byte ptr [rdx], 0Ah
mov rdi, r13
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
lea rbp, [rsp+1E8h+var_1D0]
mov [rbp-10h], rbp
lea rdi, [rsp+1E8h+var_1E0]
mov rsi, r13
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
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, aErrorWhileHand_0+33h; "\n"
mov edx, 1
mov rdi, 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 rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_D7B09
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D7B09:
dec rbx
lea rdi, [rsp+1E8h+var_1E0]
mov [rdi], rbp
mov rsi, rbx
mov edx, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
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, asc_F0902; "^\n"
mov edx, 2
mov rdi, 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 rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_D7B60
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D7B60:
cmp r12, r15
jge loc_D7C0C
mov r15, [r14]
cmp r12, 0FFFFFFFFFFFFFFFDh
ja short loc_D7BA3
lea r13, [rsp+1E8h+var_1E1]
mov rbx, [rsp+1E8h+var_1B8]
loc_D7B7C:
mov rsi, [r14]
add rsi, [r14+8]
mov [rsp+1E8h+var_1E1], 0Ah
mov rdi, r15
mov rdx, r13
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
mov r15, rax
inc r15
dec rbx
jnz short loc_D7B7C
mov rsi, [r14]
jmp short loc_D7BA6
loc_D7BA3:
mov rsi, r15
loc_D7BA6:
add rsi, [r14+8]
lea rdx, [rsp+1E8h+var_1E1]
mov byte ptr [rdx], 0Ah
mov rdi, r15
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag)
lea rdi, [rsp+1E8h+var_1E0]
mov [rdi], rbp
mov rsi, r15
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
lea rdi, [rsp+1E8h+var_1A8]
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, aErrorWhileHand_0+33h; "\n"
mov edx, 1
mov rdi, 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 rdi, [rsp+1E8h+var_1E0]; void *
cmp rdi, rbp
jz short loc_D7C0C
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D7C0C:
lea rsi, [rsp+1E8h+var_1A0]
mov rdi, [rsp+1E8h+var_1B0]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1E8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+1E8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
add rsp, 1B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_D7C75
jmp short loc_D7C75
jmp short loc_D7C59
jmp short loc_D7C75
jmp short loc_D7C75
jmp short loc_D7C59
jmp short $+2
loc_D7C59:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, rbp
jz short loc_D7C78
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D7C78
loc_D7C75:
mov rbx, rax
loc_D7C78:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_38]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_A8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| void minja::error_location_suffix(long long a1, long long a2, long long a3)
{
_BYTE *v4; // rsi
long long v5; // rax
long long v6; // rcx
long long v7; // r12
long long v8; // rcx
long long v9; // r15
long long v10; // r13
long long v11; // rbp
long long v12; // rbx
long long v13; // rax
_BYTE *v14; // r13
_BYTE *v15; // rsi
long long v16; // rbp
long long v17; // rsi
long long v18; // rsi
_BYTE *v19; // rax
long long v20; // rax
_BYTE *v21; // r13
long long v22; // rbx
long long v23; // rsi
_BYTE *v24; // rsi
long long v25; // rsi
_BYTE *v26; // rax
long long v27; // rax
long long v28; // rax
_BYTE *v29; // r15
unsigned long long v30; // rbx
long long v31; // rsi
_BYTE *v32; // rsi
long long v33; // rsi
_BYTE *v34; // rax
long long v35; // rax
char v36; // [rsp+7h] [rbp-1E1h] BYREF
void *v37; // [rsp+8h] [rbp-1E0h] BYREF
long long v38; // [rsp+10h] [rbp-1D8h]
_QWORD v39[2]; // [rsp+18h] [rbp-1D0h] BYREF
long long v40; // [rsp+28h] [rbp-1C0h]
unsigned long long v41; // [rsp+30h] [rbp-1B8h]
long long v42; // [rsp+38h] [rbp-1B0h]
_QWORD *v43; // [rsp+40h] [rbp-1A8h] BYREF
_BYTE v44[8]; // [rsp+48h] [rbp-1A0h] BYREF
_QWORD v45[12]; // [rsp+50h] [rbp-198h] BYREF
_BYTE v46[312]; // [rsp+B0h] [rbp-138h] BYREF
v42 = a1;
v4 = *(_BYTE **)a2;
v5 = *(_QWORD *)(a2 + 8);
if ( a3 )
{
v6 = 0LL;
v7 = 0LL;
do
v7 += v4[v6++] == 10;
while ( a3 != v6 );
}
else
{
v7 = 0LL;
}
v40 = a3;
if ( v5 )
{
v8 = 0LL;
v9 = 0LL;
do
v9 += v4[v8++] == 10;
while ( v5 != v8 );
}
else
{
v9 = 0LL;
}
v43 = v45;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v43, v4, (long long)&v4[a3]);
v10 = std::string::rfind(&v43, 10LL, -1LL);
if ( v43 != v45 )
operator delete(v43, v45[0] + 1LL);
std::ostringstream::basic_ostringstream(&v43);
std::__ostream_insert<char,std::char_traits<char>>(&v43, " at row ", 8LL);
v41 = v7 + 1;
v11 = std::ostream::_M_insert<long>(&v43);
std::__ostream_insert<char,std::char_traits<char>>(v11, ", column ", 9LL);
v12 = v40 - v10;
v13 = std::ostream::_M_insert<unsigned long>(v11, v40 - v10);
std::__ostream_insert<char,std::char_traits<char>>(v13, ":\n", 2LL);
if ( v7 > 0 )
{
v14 = *(_BYTE **)a2;
if ( v7 == 1 )
{
v15 = *(_BYTE **)a2;
}
else
{
v16 = v7 - 1;
do
{
v17 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v36 = 10;
v14 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v14,
v17,
&v36)
+ 1;
--v16;
}
while ( v16 );
v15 = *(_BYTE **)a2;
}
v18 = (long long)&v15[*(_QWORD *)(a2 + 8)];
v36 = 10;
v19 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v14,
v18,
&v36);
v37 = v39;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v37, v14, (long long)v19);
v20 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38);
std::__ostream_insert<char,std::char_traits<char>>(v20, "\n", 1LL);
if ( v37 != v39 )
operator delete(v37, v39[0] + 1LL);
}
v21 = *(_BYTE **)a2;
if ( v41 < 2 )
{
v24 = *(_BYTE **)a2;
}
else
{
v40 = v12;
v22 = v7;
do
{
v23 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v36 = 10;
v21 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v21,
v23,
&v36)
+ 1;
--v22;
}
while ( v22 );
v24 = *(_BYTE **)a2;
v12 = v40;
}
v25 = (long long)&v24[*(_QWORD *)(a2 + 8)];
v36 = 10;
v26 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v21,
v25,
&v36);
v37 = v39;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v37, v21, (long long)v26);
v27 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38);
std::__ostream_insert<char,std::char_traits<char>>(v27, "\n", 1LL);
if ( v37 != v39 )
operator delete(v37, v39[0] + 1LL);
v37 = v39;
std::string::_M_construct(&v37, v12 - 1, 32LL);
v28 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38);
std::__ostream_insert<char,std::char_traits<char>>(v28, "^\n", 2LL);
if ( v37 != v39 )
operator delete(v37, v39[0] + 1LL);
if ( v7 < v9 )
{
v29 = *(_BYTE **)a2;
if ( (unsigned long long)v7 > 0xFFFFFFFFFFFFFFFDLL )
{
v32 = *(_BYTE **)a2;
}
else
{
v30 = v41;
do
{
v31 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2;
v36 = 10;
v29 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v29,
v31,
&v36)
+ 1;
--v30;
}
while ( v30 );
v32 = *(_BYTE **)a2;
}
v33 = (long long)&v32[*(_QWORD *)(a2 + 8)];
v36 = 10;
v34 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(
v29,
v33,
&v36);
v37 = v39;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v37, v29, (long long)v34);
v35 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38);
std::__ostream_insert<char,std::char_traits<char>>(v35, "\n", 1LL);
if ( v37 != v39 )
operator delete(v37, v39[0] + 1LL);
}
std::stringbuf::str(v42, v44);
std::ostringstream::~ostringstream(&v43, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v46);
}
| error_location_suffix:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1b8
MOV R8,RDX
MOV R14,RSI
MOV qword ptr [RSP + 0x38],RDI
MOV RSI,qword ptr [RSI]
MOV RAX,qword ptr [R14 + 0x8]
TEST RDX,RDX
JZ 0x001d78c2
XOR ECX,ECX
XOR R12D,R12D
LAB_001d78ac:
XOR EDX,EDX
CMP byte ptr [RSI + RCX*0x1],0xa
SETZ DL
ADD R12,RDX
INC RCX
CMP R8,RCX
JNZ 0x001d78ac
JMP 0x001d78c5
LAB_001d78c2:
XOR R12D,R12D
LAB_001d78c5:
LEA RDX,[RSI + R8*0x1]
TEST RAX,RAX
MOV qword ptr [RSP + 0x28],R8
JZ 0x001d78ef
XOR ECX,ECX
XOR R15D,R15D
LAB_001d78d8:
XOR EDI,EDI
CMP byte ptr [RSI + RCX*0x1],0xa
SETZ DIL
ADD R15,RDI
INC RCX
CMP RAX,RCX
JNZ 0x001d78d8
JMP 0x001d78f2
LAB_001d78ef:
XOR R15D,R15D
LAB_001d78f2:
LEA RBP,[RSP + 0x50]
MOV qword ptr [RBP + -0x10],RBP
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
CALL 0x00170e72
MOV RDI,RBX
MOV ESI,0xa
MOV RDX,-0x1
CALL 0x0011b150
MOV R13,RAX
MOV RDI,qword ptr [RBX]
CMP RDI,RBP
JZ 0x001d7934
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011a8e0
LAB_001d7934:
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
CALL 0x0011ab90
LAB_001d7941:
LEA RSI,[0x1f08f9]
MOV EDX,0x8
MOV RDI,RBX
CALL 0x0011aa00
MOV RBX,qword ptr [RSP + 0x28]
LEA RSI,[R12 + 0x1]
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP + 0x30],RSI
CALL 0x0011a850
MOV RBP,RAX
LEA RSI,[0x1ece5d]
MOV EDX,0x9
MOV RDI,RAX
CALL 0x0011aa00
SUB RBX,R13
MOV RDI,RBP
MOV RSI,RBX
CALL 0x0011a5f0
LEA RSI,[0x1f470f]
MOV EDX,0x2
MOV RDI,RAX
CALL 0x0011aa00
TEST R12,R12
JLE 0x001d7a56
MOV R13,qword ptr [R14]
CMP R12,0x1
JNZ 0x001d79be
MOV RSI,R13
JMP 0x001d79ea
LAB_001d79be:
LEA RBP,[R12 + -0x1]
LAB_001d79c3:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
MOV byte ptr [RSP + 0x7],0xa
MOV RDI,R13
LEA RDX,[RSP + 0x7]
CALL 0x0019960e
MOV R13,RAX
INC R13
DEC RBP
JNZ 0x001d79c3
MOV RSI,qword ptr [R14]
LAB_001d79ea:
ADD RSI,qword ptr [R14 + 0x8]
LEA RDX,[RSP + 0x7]
MOV byte ptr [RDX],0xa
MOV RDI,R13
CALL 0x0019960e
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP + -0x10],RBP
LAB_001d7a07:
LEA RDI,[RSP + 0x8]
MOV RSI,R13
MOV RDX,RAX
CALL 0x00170e72
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001d7a21:
LEA RDI,[RSP + 0x40]
CALL 0x0011aa00
LEA RSI,[0x1eb99b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0011aa00
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001d7a56
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_001d7a56:
MOV R13,qword ptr [R14]
CMP qword ptr [RSP + 0x30],0x2
JC 0x001d7a9a
MOV qword ptr [RSP + 0x28],RBX
LEA RBP,[RSP + 0x7]
MOV RBX,R12
LAB_001d7a6e:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
MOV byte ptr [RSP + 0x7],0xa
MOV RDI,R13
MOV RDX,RBP
CALL 0x0019960e
MOV R13,RAX
INC R13
DEC RBX
JNZ 0x001d7a6e
MOV RSI,qword ptr [R14]
MOV RBX,qword ptr [RSP + 0x28]
JMP 0x001d7a9d
LAB_001d7a9a:
MOV RSI,R13
LAB_001d7a9d:
ADD RSI,qword ptr [R14 + 0x8]
LEA RDX,[RSP + 0x7]
MOV byte ptr [RDX],0xa
MOV RDI,R13
CALL 0x0019960e
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP + -0x10],RBP
LAB_001d7aba:
LEA RDI,[RSP + 0x8]
MOV RSI,R13
MOV RDX,RAX
CALL 0x00170e72
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001d7ad4:
LEA RDI,[RSP + 0x40]
CALL 0x0011aa00
LEA RSI,[0x1eb99b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0011aa00
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001d7b09
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_001d7b09:
DEC RBX
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],RBP
LAB_001d7b14:
MOV RSI,RBX
MOV EDX,0x20
CALL 0x0011aa30
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001d7b2b:
LEA RDI,[RSP + 0x40]
CALL 0x0011aa00
LEA RSI,[0x1f0902]
MOV EDX,0x2
MOV RDI,RAX
CALL 0x0011aa00
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001d7b60
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_001d7b60:
CMP R12,R15
JGE 0x001d7c0c
MOV R15,qword ptr [R14]
CMP R12,-0x3
JA 0x001d7ba3
LEA R13,[RSP + 0x7]
MOV RBX,qword ptr [RSP + 0x30]
LAB_001d7b7c:
MOV RSI,qword ptr [R14]
ADD RSI,qword ptr [R14 + 0x8]
MOV byte ptr [RSP + 0x7],0xa
MOV RDI,R15
MOV RDX,R13
CALL 0x0019960e
MOV R15,RAX
INC R15
DEC RBX
JNZ 0x001d7b7c
MOV RSI,qword ptr [R14]
JMP 0x001d7ba6
LAB_001d7ba3:
MOV RSI,R15
LAB_001d7ba6:
ADD RSI,qword ptr [R14 + 0x8]
LEA RDX,[RSP + 0x7]
MOV byte ptr [RDX],0xa
MOV RDI,R15
CALL 0x0019960e
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],RBP
LAB_001d7bc2:
MOV RSI,R15
MOV RDX,RAX
CALL 0x00170e72
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001d7bd7:
LEA RDI,[RSP + 0x40]
CALL 0x0011aa00
LEA RSI,[0x1eb99b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0011aa00
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001d7c0c
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_001d7c0c:
LEA RSI,[RSP + 0x48]
LAB_001d7c11:
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0011adc0
LAB_001d7c1b:
MOV RSI,qword ptr [0x0022bf78]
LEA RDI,[RSP + 0x40]
CALL 0x0011a4a0
LEA RDI,[RSP + 0xb0]
CALL 0x0011a2a0
ADD RSP,0x1b8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::error_location_suffix(std::__cxx11::string const&, unsigned long) */
void __thiscall minja::error_location_suffix(minja *this,string *param_1,ulong param_2)
{
long lVar1;
ostream *poVar2;
int8 uVar3;
ulong uVar4;
long lVar5;
ulong uVar6;
long lVar7;
ulong uVar8;
long lVar9;
int1 local_1e1;
long *local_1e0;
long local_1d8;
long local_1d0 [2];
ulong local_1c0;
ulong local_1b8;
minja *local_1b0;
long *local_1a8 [2];
long local_198 [12];
ios_base local_138 [264];
lVar1 = *(long *)param_1;
if (param_2 == 0) {
uVar8 = 0;
}
else {
uVar4 = 0;
uVar8 = 0;
do {
uVar8 = uVar8 + (*(char *)(lVar1 + uVar4) == '\n');
uVar4 = uVar4 + 1;
} while (param_2 != uVar4);
}
if (*(long *)(param_1 + 8) == 0) {
lVar9 = 0;
}
else {
lVar5 = 0;
lVar9 = 0;
do {
lVar9 = lVar9 + (ulong)(*(char *)(lVar1 + lVar5) == '\n');
lVar5 = lVar5 + 1;
} while (*(long *)(param_1 + 8) != lVar5);
}
local_1c0 = param_2;
local_1b0 = this;
local_1a8[0] = local_198;
std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(local_1a8,lVar1,lVar1 + param_2);
lVar1 = std::__cxx11::string::rfind((char)local_1a8,10);
if (local_1a8[0] != local_198) {
operator_delete(local_1a8[0],local_198[0] + 1);
}
std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8);
/* try { // try from 001d7941 to 001d79a6 has its CatchHandler @ 001d7c75 */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8," at row ",8);
uVar4 = local_1c0;
local_1b8 = uVar8 + 1;
poVar2 = std::ostream::_M_insert<long>((long)local_1a8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,", column ",9);
uVar4 = uVar4 - lVar1;
poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,":\n",2);
if (0 < (long)uVar8) {
lVar1 = *(long *)param_1;
lVar5 = lVar1;
if (uVar8 != 1) {
lVar7 = uVar8 - 1;
do {
local_1e1 = 10;
lVar5 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar5,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1);
lVar5 = lVar5 + 1;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
lVar1 = *(long *)param_1;
}
local_1e1 = 10;
uVar3 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar5,lVar1 + *(long *)(param_1 + 8));
/* try { // try from 001d7a07 to 001d7a16 has its CatchHandler @ 001d7c4d */
local_1e0 = local_1d0;
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_1e0,lVar5,uVar3);
/* try { // try from 001d7a21 to 001d7a3e has its CatchHandler @ 001d7c55 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
}
lVar1 = *(long *)param_1;
lVar5 = lVar1;
if (1 < local_1b8) {
uVar6 = uVar8;
local_1c0 = uVar4;
do {
local_1e1 = 10;
lVar5 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar5,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1);
lVar5 = lVar5 + 1;
uVar6 = uVar6 - 1;
} while (uVar6 != 0);
lVar1 = *(long *)param_1;
uVar4 = local_1c0;
}
local_1e1 = 10;
uVar3 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar5,lVar1 + *(long *)(param_1 + 8));
/* try { // try from 001d7aba to 001d7ac9 has its CatchHandler @ 001d7c53 */
local_1e0 = local_1d0;
std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_1e0,lVar5,uVar3);
/* try { // try from 001d7ad4 to 001d7af1 has its CatchHandler @ 001d7c59 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
local_1e0 = local_1d0;
/* try { // try from 001d7b14 to 001d7b20 has its CatchHandler @ 001d7c51 */
std::__cxx11::string::_M_construct((ulong)&local_1e0,(char)uVar4 + -1);
/* try { // try from 001d7b2b to 001d7b48 has its CatchHandler @ 001d7c57 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"^\n",2);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
if ((long)uVar8 < lVar9) {
lVar1 = *(long *)param_1;
lVar9 = lVar1;
if (uVar8 < 0xfffffffffffffffe) {
uVar8 = local_1b8;
do {
local_1e1 = 10;
lVar9 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar9,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1);
lVar9 = lVar9 + 1;
uVar8 = uVar8 - 1;
} while (uVar8 != 0);
lVar1 = *(long *)param_1;
}
local_1e1 = 10;
uVar3 = std::
__find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>>
(lVar9,lVar1 + *(long *)(param_1 + 8));
local_1e0 = local_1d0;
/* try { // try from 001d7bc2 to 001d7bcc has its CatchHandler @ 001d7c4b */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_1e0,lVar9,uVar3);
/* try { // try from 001d7bd7 to 001d7bf4 has its CatchHandler @ 001d7c4f */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,(char *)local_1e0,local_1d8);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
}
/* try { // try from 001d7c11 to 001d7c1a has its CatchHandler @ 001d7c75 */
std::__cxx11::stringbuf::str();
std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8);
std::ios_base::~ios_base(local_138);
return;
}
| |
20,923 | pfs_start_socket_wait_v1 | eloqsql/storage/perfschema/pfs.cc | PSI_socket_locker*
pfs_start_socket_wait_v1(PSI_socket_locker_state *state,
PSI_socket *socket,
PSI_socket_operation op,
size_t count,
const char *src_file, uint src_line)
{
assert(static_cast<int> (op) >= 0);
assert(static_cast<uint> (op) < array_elements(socket_operation_map));
assert(state != NULL);
PFS_socket *pfs_socket= reinterpret_cast<PFS_socket*> (socket);
assert(pfs_socket != NULL);
assert(pfs_socket->m_class != NULL);
if (!pfs_socket->m_enabled || pfs_socket->m_idle)
return NULL;
uint flags= 0;
ulonglong timer_start= 0;
if (flag_thread_instrumentation)
{
/*
Do not use pfs_socket->m_thread_owner here,
as different threads may use concurrently the same socket,
for example during a KILL.
*/
PFS_thread *pfs_thread= my_thread_get_THR_PFS();
if (unlikely(pfs_thread == NULL))
return NULL;
if (!pfs_thread->m_enabled)
return NULL;
state->m_thread= reinterpret_cast<PSI_thread *> (pfs_thread);
flags= STATE_FLAG_THREAD;
if (pfs_socket->m_timed)
{
timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer);
state->m_timer_start= timer_start;
flags|= STATE_FLAG_TIMED;
}
if (flag_events_waits_current)
{
if (unlikely(pfs_thread->m_events_waits_current >=
& pfs_thread->m_events_waits_stack[WAIT_STACK_SIZE]))
{
locker_lost++;
return NULL;
}
PFS_events_waits *wait= pfs_thread->m_events_waits_current;
state->m_wait= wait;
flags|= STATE_FLAG_EVENT;
PFS_events_waits *parent_event= wait - 1;
wait->m_event_type= EVENT_TYPE_WAIT;
wait->m_nesting_event_id= parent_event->m_event_id;
wait->m_nesting_event_type= parent_event->m_event_type;
wait->m_thread_internal_id= pfs_thread->m_thread_internal_id;
wait->m_class= pfs_socket->m_class;
wait->m_timer_start= timer_start;
wait->m_timer_end= 0;
wait->m_object_instance_addr= pfs_socket->m_identity;
wait->m_weak_socket= pfs_socket;
wait->m_weak_version= pfs_socket->get_version();
wait->m_event_id= pfs_thread->m_event_id++;
wait->m_end_event_id= 0;
wait->m_operation= socket_operation_map[static_cast<int>(op)];
wait->m_source_file= src_file;
wait->m_source_line= src_line;
wait->m_number_of_bytes= count;
wait->m_wait_class= WAIT_CLASS_SOCKET;
pfs_thread->m_events_waits_current++;
}
}
else
{
if (pfs_socket->m_timed)
{
timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer);
state->m_timer_start= timer_start;
flags= STATE_FLAG_TIMED;
}
else
{
/*
Even if timing is disabled, end_socket_wait() still needs a locker to
capture the number of bytes sent or received by the socket operation.
For operations that do not have a byte count, then just increment the
event counter and return a NULL locker.
*/
switch (op)
{
case PSI_SOCKET_CONNECT:
case PSI_SOCKET_CREATE:
case PSI_SOCKET_BIND:
case PSI_SOCKET_SEEK:
case PSI_SOCKET_OPT:
case PSI_SOCKET_STAT:
case PSI_SOCKET_SHUTDOWN:
case PSI_SOCKET_CLOSE:
case PSI_SOCKET_SELECT:
pfs_socket->m_socket_stat.m_io_stat.m_misc.aggregate_counted();
return NULL;
default:
break;
}
}
}
state->m_flags= flags;
state->m_socket= socket;
state->m_operation= op;
return reinterpret_cast<PSI_socket_locker*> (state);
} | O0 | cpp | pfs_start_socket_wait_v1:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x4(%rax)
je 0x3009e
movq -0x40(%rbp), %rax
testb $0x1, 0xac(%rax)
je 0x300ab
movq $0x0, -0x8(%rbp)
jmp 0x303b4
movl $0x0, -0x44(%rbp)
movq $0x0, -0x50(%rbp)
leaq 0x3db97f(%rip), %rax # 0x40ba40
testb $0x1, (%rax)
je 0x30316
callq 0x2d4b0
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x300f2
movq $0x0, -0x8(%rbp)
jmp 0x303b4
movq -0x58(%rbp), %rax
testb $0x1, 0x7e0(%rax)
jne 0x3010c
movq $0x0, -0x8(%rbp)
jmp 0x303b4
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movl $0x2, -0x44(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x5(%rax)
je 0x30158
leaq 0x1e48bc(%rip), %rax # 0x2149ec
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x565e0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x44(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x44(%rbp)
leaq 0x3db7e1(%rip), %rax # 0x40b940
testb $0x1, (%rax)
je 0x30314
movq -0x58(%rbp), %rax
movq 0x7f0(%rax), %rax
movq -0x58(%rbp), %rcx
addq $0x878, %rcx # imm = 0x878
addq $0x420, %rcx # imm = 0x420
cmpq %rcx, %rax
setae %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x301ba
leaq 0x3dbbec(%rip), %rax # 0x40bd88
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0x3dbbde(%rip), %rax # 0x40bd88
movq %rcx, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x303b4
movq -0x58(%rbp), %rax
movq 0x7f0(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x44(%rbp), %eax
orl $0x4, %eax
movl %eax, -0x44(%rbp)
movq -0x60(%rbp), %rax
addq $-0xb0, %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movl $0x4, 0x18(%rax)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x68(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x58(%rbp), %rax
movq 0x850(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movq 0xb0(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x50(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x40(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0x40(%rbp), %rdi
callq 0x36290
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0x58(%rbp), %rax
movq 0x7f8(%rax), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x7f8(%rax)
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x10(%rax)
movslq -0x1c(%rbp), %rcx
leaq 0x1e3f12(%rip), %rax # 0x2141d0
movl (%rax,%rcx,4), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x30(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x34(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x28(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x60(%rbp), %rax
movl $0x6, 0x58(%rax)
movq -0x58(%rbp), %rax
movq 0x7f0(%rax), %rcx
addq $0xb0, %rcx
movq %rcx, 0x7f0(%rax)
jmp 0x3038d
movq -0x40(%rbp), %rax
testb $0x1, 0x5(%rax)
je 0x3034f
leaq 0x1e46c5(%rip), %rax # 0x2149ec
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x565e0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl $0x1, -0x44(%rbp)
jmp 0x3038b
movl -0x1c(%rbp), %eax
movl %eax, -0x6c(%rbp)
subl $0x4, %eax
jb 0x30369
jmp 0x3035c
movl -0x6c(%rbp), %eax
addl $-0xa, %eax
subl $0x4, %eax
ja 0x30387
jmp 0x30369
movq -0x40(%rbp), %rdi
addq $0xb8, %rdi
addq $0x50, %rdi
callq 0x362b0
movq $0x0, -0x8(%rbp)
jmp 0x303b4
jmp 0x30389
jmp 0x3038b
jmp 0x3038d
movl -0x44(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop
| pfs_start_socket_wait_v1:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_34], r9d
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
test byte ptr [rax+4], 1
jz short loc_3009E
mov rax, [rbp+var_40]
test byte ptr [rax+0ACh], 1
jz short loc_300AB
loc_3009E:
mov [rbp+var_8], 0
jmp loc_303B4
loc_300AB:
mov [rbp+var_44], 0
mov [rbp+var_50], 0
lea rax, flag_thread_instrumentation
test byte ptr [rax], 1
jz loc_30316
call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void)
mov [rbp+var_58], rax
cmp [rbp+var_58], 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_300F2
mov [rbp+var_8], 0
jmp loc_303B4
loc_300F2:
mov rax, [rbp+var_58]
test byte ptr [rax+7E0h], 1
jnz short loc_3010C
mov [rbp+var_8], 0
jmp loc_303B4
loc_3010C:
mov rcx, [rbp+var_58]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov [rbp+var_44], 2
mov rax, [rbp+var_40]
test byte ptr [rax+5], 1
jz short loc_30158
lea rax, wait_timer
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void))
mov [rbp+var_50], rax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov eax, [rbp+var_44]
or eax, 1
mov [rbp+var_44], eax
loc_30158:
lea rax, flag_events_waits_current
test byte ptr [rax], 1
jz loc_30314
mov rax, [rbp+var_58]
mov rax, [rax+7F0h]
mov rcx, [rbp+var_58]
add rcx, 878h
add rcx, 420h
cmp rax, rcx
setnb al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_301BA
lea rax, locker_lost
mov rcx, [rax]
add rcx, 1
lea rax, locker_lost
mov [rax], rcx
mov [rbp+var_8], 0
jmp loc_303B4
loc_301BA:
mov rax, [rbp+var_58]
mov rax, [rax+7F0h]
mov [rbp+var_60], rax
mov rcx, [rbp+var_60]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov eax, [rbp+var_44]
or eax, 4
mov [rbp+var_44], eax
mov rax, [rbp+var_60]
add rax, 0FFFFFFFFFFFFFF50h
mov [rbp+var_68], rax
mov rax, [rbp+var_60]
mov dword ptr [rax+18h], 4
mov rax, [rbp+var_68]
mov rcx, [rax+8]
mov rax, [rbp+var_60]
mov [rax+20h], rcx
mov rax, [rbp+var_68]
mov ecx, [rax+18h]
mov rax, [rbp+var_60]
mov [rax+28h], ecx
mov rax, [rbp+var_58]
mov rcx, [rax+850h]
mov rax, [rbp+var_60]
mov [rax], rcx
mov rax, [rbp+var_40]
mov rcx, [rax+0B0h]
mov rax, [rbp+var_60]
mov [rax+30h], rcx
mov rcx, [rbp+var_50]
mov rax, [rbp+var_60]
mov [rax+38h], rcx
mov rax, [rbp+var_60]
mov qword ptr [rax+40h], 0
mov rax, [rbp+var_40]
mov rcx, [rax+10h]
mov rax, [rbp+var_60]
mov [rax+88h], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_60]
mov [rax+70h], rcx
mov rdi, [rbp+var_40]; this
call _ZN10PFS_socket11get_versionEv; PFS_socket::get_version(void)
mov ecx, eax
mov rax, [rbp+var_60]
mov [rax+80h], ecx
mov rax, [rbp+var_58]
mov rcx, [rax+7F8h]
mov rdx, rcx
add rdx, 1
mov [rax+7F8h], rdx
mov rax, [rbp+var_60]
mov [rax+8], rcx
mov rax, [rbp+var_60]
mov qword ptr [rax+10h], 0
movsxd rcx, [rbp+var_1C]
lea rax, _ZL20socket_operation_map; socket_operation_map
mov ecx, [rax+rcx*4]
mov rax, [rbp+var_60]
mov [rax+90h], ecx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_60]
mov [rax+48h], rcx
mov ecx, [rbp+var_34]
mov rax, [rbp+var_60]
mov [rax+50h], ecx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_60]
mov [rax+98h], rcx
mov rax, [rbp+var_60]
mov dword ptr [rax+58h], 6
mov rax, [rbp+var_58]
mov rcx, [rax+7F0h]
add rcx, 0B0h
mov [rax+7F0h], rcx
loc_30314:
jmp short loc_3038D
loc_30316:
mov rax, [rbp+var_40]
test byte ptr [rax+5], 1
jz short loc_3034F
lea rax, wait_timer
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void))
mov [rbp+var_50], rax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov [rbp+var_44], 1
jmp short loc_3038B
loc_3034F:
mov eax, [rbp+var_1C]
mov [rbp+var_6C], eax
sub eax, 4
jb short loc_30369
jmp short $+2
loc_3035C:
mov eax, [rbp+var_6C]
add eax, 0FFFFFFF6h
sub eax, 4
ja short loc_30387
jmp short $+2
loc_30369:
mov rdi, [rbp+var_40]
add rdi, 0B8h
add rdi, 50h ; 'P'; this
call _ZN13PFS_byte_stat17aggregate_countedEv; PFS_byte_stat::aggregate_counted(void)
mov [rbp+var_8], 0
jmp short loc_303B4
loc_30387:
jmp short $+2
loc_30389:
jmp short $+2
loc_3038B:
jmp short $+2
loc_3038D:
mov ecx, [rbp+var_44]
mov rax, [rbp+var_10]
mov [rax], ecx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov [rax+30h], ecx
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_303B4:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
| long long pfs_start_socket_wait_v1(long long a1, long long a2, unsigned int a3, long long a4, long long a5, int a6)
{
long long v6; // rcx
long long v8; // [rsp+10h] [rbp-60h]
long long THR_PFS; // [rsp+18h] [rbp-58h]
long long timer_raw_value_and_function; // [rsp+20h] [rbp-50h]
int v11; // [rsp+2Ch] [rbp-44h]
if ( (*(_BYTE *)(a2 + 4) & 1) != 0 && (*(_BYTE *)(a2 + 172) & 1) == 0 )
{
v11 = 0;
timer_raw_value_and_function = 0LL;
if ( (flag_thread_instrumentation & 1) != 0 )
{
THR_PFS = my_thread_get_THR_PFS();
if ( !THR_PFS )
return 0LL;
if ( (*(_BYTE *)(THR_PFS + 2016) & 1) == 0 )
return 0LL;
*(_QWORD *)(a1 + 16) = THR_PFS;
v11 = 2;
if ( (*(_BYTE *)(a2 + 5) & 1) != 0 )
{
timer_raw_value_and_function = get_timer_raw_value_and_function((unsigned int)wait_timer, a1 + 40);
*(_QWORD *)(a1 + 32) = timer_raw_value_and_function;
v11 = 3;
}
if ( (flag_events_waits_current & 1) != 0 )
{
if ( *(_QWORD *)(THR_PFS + 2032) >= (unsigned long long)(THR_PFS + 3224) )
{
++locker_lost;
return 0LL;
}
v8 = *(_QWORD *)(THR_PFS + 2032);
*(_QWORD *)(a1 + 72) = v8;
v11 |= 4u;
*(_DWORD *)(v8 + 24) = 4;
*(_QWORD *)(v8 + 32) = *(_QWORD *)(v8 - 176 + 8);
*(_DWORD *)(v8 + 40) = *(_DWORD *)(v8 - 176 + 24);
*(_QWORD *)v8 = *(_QWORD *)(THR_PFS + 2128);
*(_QWORD *)(v8 + 48) = *(_QWORD *)(a2 + 176);
*(_QWORD *)(v8 + 56) = timer_raw_value_and_function;
*(_QWORD *)(v8 + 64) = 0LL;
*(_QWORD *)(v8 + 136) = *(_QWORD *)(a2 + 16);
*(_QWORD *)(v8 + 112) = a2;
*(_DWORD *)(v8 + 128) = PFS_socket::get_version((PFS_socket *)a2);
v6 = *(_QWORD *)(THR_PFS + 2040);
*(_QWORD *)(THR_PFS + 2040) = v6 + 1;
*(_QWORD *)(v8 + 8) = v6;
*(_QWORD *)(v8 + 16) = 0LL;
*(_DWORD *)(v8 + 144) = socket_operation_map[a3];
*(_QWORD *)(v8 + 72) = a5;
*(_DWORD *)(v8 + 80) = a6;
*(_QWORD *)(v8 + 152) = a4;
*(_DWORD *)(v8 + 88) = 6;
*(_QWORD *)(THR_PFS + 2032) += 176LL;
}
}
else if ( (*(_BYTE *)(a2 + 5) & 1) != 0 )
{
*(_QWORD *)(a1 + 32) = get_timer_raw_value_and_function((unsigned int)wait_timer, a1 + 40);
v11 = 1;
}
else if ( a3 < 4 || a3 - 10 <= 4 )
{
PFS_byte_stat::aggregate_counted((PFS_byte_stat *)(a2 + 264));
return 0LL;
}
*(_DWORD *)a1 = v11;
*(_QWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 48) = a3;
return a1;
}
return 0LL;
}
| pfs_start_socket_wait_v1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV dword ptr [RBP + -0x34],R9D
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x4],0x1
JZ 0x0013009e
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0xac],0x1
JZ 0x001300ab
LAB_0013009e:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001303b4
LAB_001300ab:
MOV dword ptr [RBP + -0x44],0x0
MOV qword ptr [RBP + -0x50],0x0
LEA RAX,[0x50ba40]
TEST byte ptr [RAX],0x1
JZ 0x00130316
CALL 0x0012d4b0
MOV qword ptr [RBP + -0x58],RAX
CMP qword ptr [RBP + -0x58],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001300f2
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001303b4
LAB_001300f2:
MOV RAX,qword ptr [RBP + -0x58]
TEST byte ptr [RAX + 0x7e0],0x1
JNZ 0x0013010c
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001303b4
LAB_0013010c:
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV dword ptr [RBP + -0x44],0x2
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x5],0x1
JZ 0x00130158
LEA RAX,[0x3149ec]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x001565e0
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV EAX,dword ptr [RBP + -0x44]
OR EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
LAB_00130158:
LEA RAX,[0x50b940]
TEST byte ptr [RAX],0x1
JZ 0x00130314
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x7f0]
MOV RCX,qword ptr [RBP + -0x58]
ADD RCX,0x878
ADD RCX,0x420
CMP RAX,RCX
SETNC AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001301ba
LEA RAX,[0x50bd88]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
LEA RAX,[0x50bd88]
MOV qword ptr [RAX],RCX
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001303b4
LAB_001301ba:
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x7f0]
MOV qword ptr [RBP + -0x60],RAX
MOV RCX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV EAX,dword ptr [RBP + -0x44]
OR EAX,0x4
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,-0xb0
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x18],0x4
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX + 0x850]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0xb0]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x88],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x70],RCX
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00136290
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x80],ECX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX + 0x7f8]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RAX + 0x7f8],RDX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x10],0x0
MOVSXD RCX,dword ptr [RBP + -0x1c]
LEA RAX,[0x3141d0]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x90],ECX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x48],RCX
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x50],ECX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x98],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x58],0x6
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX + 0x7f0]
ADD RCX,0xb0
MOV qword ptr [RAX + 0x7f0],RCX
LAB_00130314:
JMP 0x0013038d
LAB_00130316:
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x5],0x1
JZ 0x0013034f
LEA RAX,[0x3149ec]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x001565e0
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV dword ptr [RBP + -0x44],0x1
JMP 0x0013038b
LAB_0013034f:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x6c],EAX
SUB EAX,0x4
JC 0x00130369
JMP 0x0013035c
LAB_0013035c:
MOV EAX,dword ptr [RBP + -0x6c]
ADD EAX,-0xa
SUB EAX,0x4
JA 0x00130387
JMP 0x00130369
LAB_00130369:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0xb8
ADD RDI,0x50
CALL 0x001362b0
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001303b4
LAB_00130387:
JMP 0x00130389
LAB_00130389:
JMP 0x0013038b
LAB_0013038b:
JMP 0x0013038d
LAB_0013038d:
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x30],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_001303b4:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
uint * pfs_start_socket_wait_v1
(uint *param_1,PFS_socket *param_2,uint param_3,int8 param_4,
int8 param_5,int4 param_6)
{
int8 *puVar1;
long lVar2;
int4 uVar3;
long lVar4;
int8 uVar5;
int8 local_58;
uint local_4c;
if ((((byte)param_2[4] & 1) == 0) || (((byte)param_2[0xac] & 1) != 0)) {
return (uint *)0x0;
}
local_4c = 0;
local_58 = 0;
if ((flag_thread_instrumentation & 1) == 0) {
if (((byte)param_2[5] & 1) == 0) {
if ((param_3 < 4) || (param_3 - 10 < 5)) {
PFS_byte_stat::aggregate_counted((PFS_byte_stat *)(param_2 + 0x108));
return (uint *)0x0;
}
}
else {
uVar5 = get_timer_raw_value_and_function(wait_timer,param_1 + 10);
*(int8 *)(param_1 + 8) = uVar5;
local_4c = 1;
}
}
else {
lVar4 = my_thread_get_THR_PFS();
if (lVar4 == 0) {
return (uint *)0x0;
}
if ((*(byte *)(lVar4 + 0x7e0) & 1) == 0) {
return (uint *)0x0;
}
*(long *)(param_1 + 4) = lVar4;
local_4c = 2;
if (((byte)param_2[5] & 1) != 0) {
local_58 = get_timer_raw_value_and_function(wait_timer,param_1 + 10);
*(int8 *)(param_1 + 8) = local_58;
local_4c = 3;
}
if ((flag_events_waits_current & 1) != 0) {
if (lVar4 + 0xc98U <= *(ulong *)(lVar4 + 0x7f0)) {
locker_lost = locker_lost + 1;
return (uint *)0x0;
}
puVar1 = *(int8 **)(lVar4 + 0x7f0);
*(int8 **)(param_1 + 0x12) = puVar1;
local_4c = local_4c | 4;
*(int4 *)(puVar1 + 3) = 4;
puVar1[4] = puVar1[-0x15];
*(int4 *)(puVar1 + 5) = *(int4 *)(puVar1 + -0x13);
*puVar1 = *(int8 *)(lVar4 + 0x850);
puVar1[6] = *(int8 *)(param_2 + 0xb0);
puVar1[7] = local_58;
puVar1[8] = 0;
puVar1[0x11] = *(int8 *)(param_2 + 0x10);
puVar1[0xe] = param_2;
uVar3 = PFS_socket::get_version(param_2);
*(int4 *)(puVar1 + 0x10) = uVar3;
lVar2 = *(long *)(lVar4 + 0x7f8);
*(long *)(lVar4 + 0x7f8) = lVar2 + 1;
puVar1[1] = lVar2;
puVar1[2] = 0;
*(int4 *)(puVar1 + 0x12) =
*(int4 *)(socket_operation_map + (long)(int)param_3 * 4);
puVar1[9] = param_5;
*(int4 *)(puVar1 + 10) = param_6;
puVar1[0x13] = param_4;
*(int4 *)(puVar1 + 0xb) = 6;
*(long *)(lVar4 + 0x7f0) = *(long *)(lVar4 + 0x7f0) + 0xb0;
}
}
*param_1 = local_4c;
*(PFS_socket **)(param_1 + 2) = param_2;
param_1[0xc] = param_3;
return param_1;
}
| |
20,924 | vsort_sequential_float | davidesantangelo[P]vsort/vsort.c | static void vsort_sequential_float(float *arr, int size)
{
if (!arr || size <= 1)
return;
// Use insertion sort if nearly sorted (check only for modest sizes)
if (size < thresholds.parallel_threshold / 2 &&
vsort_is_nearly_sorted_float(arr, size))
{
vsort_log_info("Array (float, size %d) appears nearly sorted, using insertion sort.", size);
insertion_sort_float(arr, 0, size - 1);
return;
}
// Radix sort is not typically used for floats. Default to quicksort.
quicksort_float(arr, 0, size - 1);
} | O0 | c | vsort_sequential_float:
subq $0x48, %rsp
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x1b4c
cmpl $0x1, 0x14(%rsp)
jg 0x1b51
jmp 0x1c9c
movl 0x14(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x6589(%rip), %eax # 0x80e8
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x10(%rsp), %eax
cmpl %ecx, %eax
jge 0x1c89
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x36e0
testb $0x1, %al
jne 0x1b8c
jmp 0x1c89
movl 0x14(%rsp), %esi
leaq 0x3cfd(%rip), %rdi # 0x5894
movb $0x0, %al
callq 0x4390
movq 0x18(%rsp), %rcx
movl 0x14(%rsp), %eax
subl $0x1, %eax
movq %rcx, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
movl %eax, 0x38(%rsp)
movl 0x3c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
cmpl 0x38(%rsp), %eax
jg 0x1c87
movq 0x40(%rsp), %rax
movslq 0x34(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x30(%rsp)
movl 0x34(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x2c(%rsp)
movq 0x40(%rsp), %rax
movslq 0x2c(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movl 0x2c(%rsp), %ecx
xorl %eax, %eax
cmpl 0x3c(%rsp), %ecx
movb %al, 0xf(%rsp)
jl 0x1c2f
movq 0x20(%rsp), %rax
movss (%rax), %xmm0
ucomiss 0x30(%rsp), %xmm0
seta %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x1c39
jmp 0x1c67
movq 0x20(%rsp), %rax
movss (%rax), %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0x4(%rax)
movl 0x2c(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x2c(%rsp)
movq 0x20(%rsp), %rax
addq $-0x4, %rax
movq %rax, 0x20(%rsp)
jmp 0x1c0a
movss 0x30(%rsp), %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0x4(%rax)
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x1bc6
jmp 0x1c9c
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %edx
subl $0x1, %edx
xorl %esi, %esi
callq 0x3880
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
| vsort_sequential_float:
sub rsp, 48h
mov [rsp+48h+var_30], rdi
mov [rsp+48h+var_34], esi
cmp [rsp+48h+var_30], 0
jz short loc_1B4C
cmp [rsp+48h+var_34], 1
jg short loc_1B51
loc_1B4C:
jmp loc_1C9C
loc_1B51:
mov eax, [rsp+48h+var_34]
mov [rsp+48h+var_38], eax
mov eax, cs:dword_80E8
mov ecx, 2
cdq
idiv ecx
mov ecx, eax
mov eax, [rsp+48h+var_38]
cmp eax, ecx
jge loc_1C89
mov rdi, [rsp+48h+var_30]
mov esi, [rsp+48h+var_34]
call vsort_is_nearly_sorted_float
test al, 1
jnz short loc_1B8C
jmp loc_1C89
loc_1B8C:
mov esi, [rsp+48h+var_34]
lea rdi, aArrayFloatSize; "Array (float, size %d) appears nearly s"...
mov al, 0
call vsort_log_info
mov rcx, [rsp+48h+var_30]
mov eax, [rsp+48h+var_34]
sub eax, 1
mov [rsp+48h+var_8], rcx
mov [rsp+48h+var_C], 0
mov [rsp+48h+var_10], eax
mov eax, [rsp+48h+var_C]
add eax, 1
mov [rsp+48h+var_14], eax
loc_1BC6:
mov eax, [rsp+48h+var_14]
cmp eax, [rsp+48h+var_10]
jg loc_1C87
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_14]
movss xmm0, dword ptr [rax+rcx*4]
movss [rsp+48h+var_18], xmm0
mov eax, [rsp+48h+var_14]
sub eax, 1
mov [rsp+48h+var_1C], eax
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_1C]
shl rcx, 2
add rax, rcx
mov [rsp+48h+var_28], rax
loc_1C0A:
mov ecx, [rsp+48h+var_1C]
xor eax, eax
cmp ecx, [rsp+48h+var_C]
mov [rsp+48h+var_39], al
jl short loc_1C2F
mov rax, [rsp+48h+var_28]
movss xmm0, dword ptr [rax]
ucomiss xmm0, [rsp+48h+var_18]
setnbe al
mov [rsp+48h+var_39], al
loc_1C2F:
mov al, [rsp+48h+var_39]
test al, 1
jnz short loc_1C39
jmp short loc_1C67
loc_1C39:
mov rax, [rsp+48h+var_28]
movss xmm0, dword ptr [rax]
mov rax, [rsp+48h+var_28]
movss dword ptr [rax+4], xmm0
mov eax, [rsp+48h+var_1C]
add eax, 0FFFFFFFFh
mov [rsp+48h+var_1C], eax
mov rax, [rsp+48h+var_28]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rsp+48h+var_28], rax
jmp short loc_1C0A
loc_1C67:
movss xmm0, [rsp+48h+var_18]
mov rax, [rsp+48h+var_28]
movss dword ptr [rax+4], xmm0
mov eax, [rsp+48h+var_14]
add eax, 1
mov [rsp+48h+var_14], eax
jmp loc_1BC6
loc_1C87:
jmp short loc_1C9C
loc_1C89:
mov rdi, [rsp+48h+var_30]
mov edx, [rsp+48h+var_34]
sub edx, 1
xor esi, esi
call quicksort_float
loc_1C9C:
add rsp, 48h
retn
| void vsort_sequential_float(long long a1, int a2)
{
long long v2; // rdx
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
bool v7; // [rsp+Fh] [rbp-39h]
long long j; // [rsp+20h] [rbp-28h]
int v9; // [rsp+2Ch] [rbp-1Ch]
float v10; // [rsp+30h] [rbp-18h]
int i; // [rsp+34h] [rbp-14h]
if ( a1 && a2 > 1 )
{
v2 = (unsigned int)(dword_80E8 >> 31);
if ( a2 < dword_80E8 / 2
&& (LODWORD(v2) = dword_80E8 % 2, (vsort_is_nearly_sorted_float(a1, (unsigned int)a2, v2) & 1) != 0) )
{
vsort_log_info(
(unsigned int)"Array (float, size %d) appears nearly sorted, using insertion sort.",
a2,
v3,
v4,
v5,
v6);
for ( i = 1; i <= a2 - 1; ++i )
{
v10 = *(float *)(a1 + 4LL * i);
v9 = i - 1;
for ( j = 4LL * (i - 1) + a1; ; j -= 4LL )
{
v7 = 0;
if ( v9 >= 0 )
v7 = *(float *)j > v10;
if ( !v7 )
break;
*(_DWORD *)(j + 4) = *(_DWORD *)j;
--v9;
}
*(float *)(j + 4) = v10;
}
}
else
{
quicksort_float(a1, 0LL, (unsigned int)(a2 - 1));
}
}
}
| vsort_sequential_float:
SUB RSP,0x48
MOV qword ptr [RSP + 0x18],RDI
MOV dword ptr [RSP + 0x14],ESI
CMP qword ptr [RSP + 0x18],0x0
JZ 0x00101b4c
CMP dword ptr [RSP + 0x14],0x1
JG 0x00101b51
LAB_00101b4c:
JMP 0x00101c9c
LAB_00101b51:
MOV EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,dword ptr [0x001080e8]
MOV ECX,0x2
CDQ
IDIV ECX
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x10]
CMP EAX,ECX
JGE 0x00101c89
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001036e0
TEST AL,0x1
JNZ 0x00101b8c
JMP 0x00101c89
LAB_00101b8c:
MOV ESI,dword ptr [RSP + 0x14]
LEA RDI,[0x105894]
MOV AL,0x0
CALL 0x00104390
MOV RCX,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x1
MOV qword ptr [RSP + 0x40],RCX
MOV dword ptr [RSP + 0x3c],0x0
MOV dword ptr [RSP + 0x38],EAX
MOV EAX,dword ptr [RSP + 0x3c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x34],EAX
LAB_00101bc6:
MOV EAX,dword ptr [RSP + 0x34]
CMP EAX,dword ptr [RSP + 0x38]
JG 0x00101c87
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x34]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOVSS dword ptr [RSP + 0x30],XMM0
MOV EAX,dword ptr [RSP + 0x34]
SUB EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x2c]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
LAB_00101c0a:
MOV ECX,dword ptr [RSP + 0x2c]
XOR EAX,EAX
CMP ECX,dword ptr [RSP + 0x3c]
MOV byte ptr [RSP + 0xf],AL
JL 0x00101c2f
MOV RAX,qword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RAX]
UCOMISS XMM0,dword ptr [RSP + 0x30]
SETA AL
MOV byte ptr [RSP + 0xf],AL
LAB_00101c2f:
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x00101c39
JMP 0x00101c67
LAB_00101c39:
MOV RAX,qword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x20]
MOVSS dword ptr [RAX + 0x4],XMM0
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,-0x1
MOV dword ptr [RSP + 0x2c],EAX
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,-0x4
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00101c0a
LAB_00101c67:
MOVSS XMM0,dword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x20]
MOVSS dword ptr [RAX + 0x4],XMM0
MOV EAX,dword ptr [RSP + 0x34]
ADD EAX,0x1
MOV dword ptr [RSP + 0x34],EAX
JMP 0x00101bc6
LAB_00101c87:
JMP 0x00101c9c
LAB_00101c89:
MOV RDI,qword ptr [RSP + 0x18]
MOV EDX,dword ptr [RSP + 0x14]
SUB EDX,0x1
XOR ESI,ESI
CALL 0x00103880
LAB_00101c9c:
ADD RSP,0x48
RET
|
void vsort_sequential_float(long param_1,int param_2)
{
float fVar1;
bool bVar2;
ulong uVar3;
float *local_28;
int local_1c;
int local_14;
if ((param_1 != 0) && (1 < param_2)) {
if ((param_2 < DAT_001080e8 / 2) &&
(uVar3 = vsort_is_nearly_sorted_float(param_1,param_2,(long)DAT_001080e8 % 2 & 0xffffffff),
(uVar3 & 1) != 0)) {
vsort_log_info("Array (float, size %d) appears nearly sorted, using insertion sort.",param_2);
for (local_14 = 1; local_14 <= param_2 + -1; local_14 = local_14 + 1) {
fVar1 = *(float *)(param_1 + (long)local_14 * 4);
local_1c = local_14 + -1;
local_28 = (float *)(param_1 + (long)local_1c * 4);
while( true ) {
bVar2 = false;
if (-1 < local_1c) {
bVar2 = fVar1 < *local_28;
}
if (!bVar2) break;
local_28[1] = *local_28;
local_1c = local_1c + -1;
local_28 = local_28 + -1;
}
local_28[1] = fVar1;
}
}
else {
quicksort_float(param_1,0,param_2 + -1);
}
}
return;
}
| |
20,925 | pagecache_unlock | eloqsql/storage/maria/ma_pagecache.c | void pagecache_unlock(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
pgcache_page_no_t pageno,
enum pagecache_page_lock lock,
enum pagecache_page_pin pin,
LSN first_REDO_LSN_for_page,
LSN lsn, my_bool was_changed)
{
PAGECACHE_BLOCK_LINK *block;
int page_st;
DBUG_ENTER("pagecache_unlock");
DBUG_PRINT("enter", ("fd: %u page: %lu %s %s",
(uint) file->file, (ulong) pageno,
page_cache_page_lock_str[lock],
page_cache_page_pin_str[pin]));
/* we do not allow any lock/pin increasing here */
DBUG_ASSERT(pin != PAGECACHE_PIN);
DBUG_ASSERT(lock != PAGECACHE_LOCK_READ && lock != PAGECACHE_LOCK_WRITE);
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
/*
As soon as we keep lock cache can be used, and we have lock because want
to unlock.
*/
DBUG_ASSERT(pagecache->can_be_used);
inc_counter_for_resize_op(pagecache);
/* See NOTE for pagecache_unlock about registering requests */
block= find_block(pagecache, file, pageno, 0, 0, 0,
pin == PAGECACHE_PIN_LEFT_UNPINNED, FALSE, &page_st);
PCBLOCK_INFO(block);
DBUG_ASSERT(block != 0 && page_st == PAGE_READ);
if (first_REDO_LSN_for_page)
{
DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE_UNLOCK);
DBUG_ASSERT(pin == PAGECACHE_UNPIN);
pagecache_set_block_rec_lsn(block, first_REDO_LSN_for_page);
}
if (lsn != LSN_IMPOSSIBLE)
check_and_set_lsn(pagecache, lsn, block);
/* if we lock for write we must link the block to changed blocks */
DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0 ||
(lock == PAGECACHE_LOCK_WRITE_UNLOCK ||
lock == PAGECACHE_LOCK_WRITE_TO_READ ||
lock == PAGECACHE_LOCK_LEFT_WRITELOCKED));
/*
if was_changed then status should be PCBLOCK_DIRECT_W or marked
as dirty
*/
DBUG_ASSERT(!was_changed || (block->status & PCBLOCK_DIRECT_W) ||
(block->status & PCBLOCK_CHANGED));
if ((block->status & PCBLOCK_DIRECT_W) &&
(lock == PAGECACHE_LOCK_WRITE_UNLOCK ||
lock == PAGECACHE_LOCK_WRITE_TO_READ))
{
if (!(block->status & PCBLOCK_CHANGED) && was_changed)
link_to_changed_list(pagecache, block);
block->status&= ~PCBLOCK_DIRECT_W;
DBUG_PRINT("info", ("Drop PCBLOCK_DIRECT_W for block: %p", block));
}
if (make_lock_and_pin(pagecache, block, lock, pin, FALSE))
{
DBUG_ASSERT(0); /* should not happend */
}
remove_reader(block);
/*
Link the block into the LRU chain if it's the last submitted request
for the block and block will not be pinned.
See NOTE for pagecache_unlock about registering requests.
*/
if (pin != PAGECACHE_PIN_LEFT_PINNED)
unreg_request(pagecache, block, 1);
dec_counter_for_resize_op(pagecache);
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_VOID_RETURN;
} | O3 | c | pagecache_unlock:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movl %r8d, -0x30(%rbp)
movl %ecx, -0x34(%rbp)
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
movb 0x18(%rbp), %al
movb %al, -0x29(%rbp)
movq 0x10(%rbp), %rbx
addq $0xc8, %rdi
cmpq $0x0, 0x108(%r14)
movq %rdi, -0x40(%rbp)
jne 0x31381
callq 0x29220
incq 0x68(%r14)
xorl %eax, %eax
cmpl $0x1, -0x30(%rbp)
sete %al
subq $0x8, %rsp
leaq -0x44(%rbp), %r10
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r10
pushq $0x0
pushq %rax
callq 0x313d0
addq $0x20, %rsp
movq %rax, %r13
testq %r12, %r12
je 0x31237
movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF
cmpq %rax, 0x88(%r13)
jne 0x31237
movq %r12, 0x88(%r13)
testq %rbx, %rbx
je 0x3124a
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x31a1a
movl -0x34(%rbp), %edx
movl %edx, %eax
andl $-0x2, %eax
cmpl $0x6, %eax
jne 0x312e5
movzwl 0x74(%r13), %eax
movzwl %ax, %ecx
movl %ecx, %esi
andl $0x40, %esi
je 0x312e5
cmpb $0x0, -0x29(%rbp)
je 0x312db
andl $0x20, %ecx
jne 0x312db
movq %r13, %rax
addq $0x10, %rax
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rcx
testq %rsi, %rsi
je 0x31292
movq %rcx, 0x18(%rsi)
movq (%rax), %rsi
jmp 0x31294
xorl %esi, %esi
movq %rsi, (%rcx)
movq 0x128(%r14), %rcx
movq 0x20(%r13), %rdi
movl 0x28(%r14), %esi
decl %esi
andl 0x28(%rdi), %esi
leaq (%rcx,%rsi,8), %rcx
movq %rcx, 0x18(%r13)
movq (%rcx), %rsi
movq %rsi, 0x10(%r13)
testq %rsi, %rsi
je 0x312c3
movq %rax, 0x18(%rsi)
movq %r13, (%rcx)
orb $0x20, 0x74(%r13)
incq 0x58(%r14)
incq 0x168(%r14)
movzwl 0x74(%r13), %eax
andl $0xffbf, %eax # imm = 0xFFBF
movw %ax, 0x74(%r13)
movq %r14, %rdi
movq %r13, %rsi
movl -0x30(%rbp), %ecx
callq 0x31ad7
movq 0x20(%r13), %rax
decl 0x68(%rax)
jne 0x3131a
movq 0x28(%r13), %rbx
testq %rbx, %rbx
je 0x3131a
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
jne 0x313a9
movq %rbx, %rdi
callq 0x295c0
cmpl $0x0, -0x30(%rbp)
je 0x31330
movq %r14, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x31c47
decq 0x68(%r14)
jne 0x3135e
movq 0x110(%r14), %rax
testq %rax, %rax
je 0x3135e
movq 0x88(%rax), %rbx
movq 0x38(%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
jne 0x313be
movq %rbx, %rdi
callq 0x295c0
movq 0x108(%r14), %rdi
testq %rdi, %rdi
jne 0x31397
movq -0x40(%rbp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x291e0
leaq 0xa7f23(%rip), %rsi # 0xd92ab
movl $0xc97, %edx # imm = 0xC97
callq 0x2eb8f
jmp 0x311e1
leaq 0x354c72(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x3136a
leaq 0x354c60(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x31312
leaq 0x354c4b(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x31356
| pagecache_unlock:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, r9
mov [rbp+var_30], r8d
mov [rbp+var_34], ecx
mov r13, rdx
mov r15, rsi
mov r14, rdi
mov al, [rbp+arg_8]
mov [rbp+var_29], al
mov rbx, [rbp+arg_0]
add rdi, 0C8h
cmp qword ptr [r14+108h], 0
mov [rbp+var_40], rdi
jnz loc_31381
call _pthread_mutex_lock
loc_311E1:
inc qword ptr [r14+68h]
xor eax, eax
cmp [rbp+var_30], 1
setz al
sub rsp, 8
lea r10, [rbp+var_44]
mov rdi, r14
mov rsi, r15
mov rdx, r13
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
push r10
push 0
push rax
call find_block
add rsp, 20h
mov r13, rax
test r12, r12
jz short loc_31237
mov rax, 0FFFFFFFFFFFFFFh
cmp [r13+88h], rax
jnz short loc_31237
mov [r13+88h], r12
loc_31237:
test rbx, rbx
jz short loc_3124A
mov rdi, r14
mov rsi, rbx
mov rdx, r13
call check_and_set_lsn
loc_3124A:
mov edx, [rbp+var_34]
mov eax, edx
and eax, 0FFFFFFFEh
cmp eax, 6
jnz loc_312E5
movzx eax, word ptr [r13+74h]
movzx ecx, ax
mov esi, ecx
and esi, 40h
jz short loc_312E5
cmp [rbp+var_29], 0
jz short loc_312DB
and ecx, 20h
jnz short loc_312DB
mov rax, r13
add rax, 10h
mov rsi, [r13+10h]
mov rcx, [r13+18h]
test rsi, rsi
jz short loc_31292
mov [rsi+18h], rcx
mov rsi, [rax]
jmp short loc_31294
loc_31292:
xor esi, esi
loc_31294:
mov [rcx], rsi
mov rcx, [r14+128h]
mov rdi, [r13+20h]
mov esi, [r14+28h]
dec esi
and esi, [rdi+28h]
lea rcx, [rcx+rsi*8]
mov [r13+18h], rcx
mov rsi, [rcx]
mov [r13+10h], rsi
test rsi, rsi
jz short loc_312C3
mov [rsi+18h], rax
loc_312C3:
mov [rcx], r13
or byte ptr [r13+74h], 20h
inc qword ptr [r14+58h]
inc qword ptr [r14+168h]
movzx eax, word ptr [r13+74h]
loc_312DB:
and eax, 0FFBFh
mov [r13+74h], ax
loc_312E5:
mov rdi, r14
mov rsi, r13
mov ecx, [rbp+var_30]
call make_lock_and_pin
mov rax, [r13+20h]
dec dword ptr [rax+68h]
jnz short loc_3131A
mov rbx, [r13+28h]
test rbx, rbx
jz short loc_3131A
mov rdi, [rbx+30h]
test rdi, rdi
jnz loc_313A9
loc_31312:
mov rdi, rbx
call _pthread_cond_signal
loc_3131A:
cmp [rbp+var_30], 0
jz short loc_31330
mov rdi, r14
mov rsi, r13
mov edx, 1
call unreg_request
loc_31330:
dec qword ptr [r14+68h]
jnz short loc_3135E
mov rax, [r14+110h]
test rax, rax
jz short loc_3135E
mov rbx, [rax+88h]
mov rdi, [rbx+38h]
add rbx, 8
test rdi, rdi
jnz short loc_313BE
loc_31356:
mov rdi, rbx
call _pthread_cond_signal
loc_3135E:
mov rdi, [r14+108h]
test rdi, rdi
jnz short loc_31397
loc_3136A:
mov rdi, [rbp+var_40]
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_31381:
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0C97h
call psi_mutex_lock
jmp loc_311E1
loc_31397:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_3136A
loc_313A9:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp loc_31312
loc_313BE:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp short loc_31356
| long long pagecache_unlock(
long long a1,
int a2,
int a3,
unsigned int a4,
unsigned int a5,
long long a6,
long long a7,
char a8)
{
long long v11; // rdi
bool v12; // zf
long long block; // r13
long long v14; // rdx
__int16 v15; // ax
long long *v16; // rax
long long v17; // rsi
_QWORD *v18; // rcx
long long v19; // rsi
long long *v20; // rcx
long long v21; // rsi
long long v22; // rax
long long v23; // rbx
long long v24; // rax
long long v25; // rbx
long long v26; // rdi
long long v27; // rbx
char v29[4]; // [rsp+Ch] [rbp-44h] BYREF
long long v30; // [rsp+10h] [rbp-40h]
unsigned int v31; // [rsp+1Ch] [rbp-34h]
unsigned int v32; // [rsp+20h] [rbp-30h]
char v33; // [rsp+27h] [rbp-29h]
v32 = a5;
v31 = a4;
v33 = a8;
v11 = a1 + 200;
v12 = *(_QWORD *)(a1 + 264) == 0LL;
v30 = v11;
if ( v12 )
pthread_mutex_lock(v11);
else
psi_mutex_lock(v11, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xC97u);
++*(_QWORD *)(a1 + 104);
block = find_block(a1, a2, a3, 0, 0, 0, v32 == 1, 0, (long long)v29);
if ( a6 && *(_QWORD *)(block + 136) == 0xFFFFFFFFFFFFFFLL )
*(_QWORD *)(block + 136) = a6;
if ( a7 )
check_and_set_lsn(a1, a7, block);
v14 = v31;
if ( (v31 & 0xFFFFFFFE) == 6 )
{
v15 = *(_WORD *)(block + 116);
if ( (v15 & 0x40) != 0 )
{
if ( v33 && (*(_WORD *)(block + 116) & 0x20) == 0 )
{
v16 = (long long *)(block + 16);
v17 = *(_QWORD *)(block + 16);
v18 = *(_QWORD **)(block + 24);
if ( v17 )
{
*(_QWORD *)(v17 + 24) = v18;
v19 = *v16;
}
else
{
v19 = 0LL;
}
*v18 = v19;
v20 = (long long *)(*(_QWORD *)(a1 + 296)
+ 8LL * (*(_DWORD *)(*(_QWORD *)(block + 32) + 40LL) & (unsigned int)(*(_DWORD *)(a1 + 40) - 1)));
*(_QWORD *)(block + 24) = v20;
v21 = *v20;
*(_QWORD *)(block + 16) = *v20;
if ( v21 )
*(_QWORD *)(v21 + 24) = v16;
*v20 = block;
*(_BYTE *)(block + 116) |= 0x20u;
++*(_QWORD *)(a1 + 88);
++*(_QWORD *)(a1 + 360);
v15 = *(_WORD *)(block + 116);
}
*(_WORD *)(block + 116) = v15 & 0xFFBF;
}
}
make_lock_and_pin(a1, block, v14, v32);
v22 = *(_QWORD *)(block + 32);
v12 = (*(_DWORD *)(v22 + 104))-- == 1;
if ( v12 )
{
v23 = *(_QWORD *)(block + 40);
if ( v23 )
{
if ( *(_QWORD *)(v23 + 48) )
PSI_server[46]();
pthread_cond_signal(v23);
}
}
if ( v32 )
unreg_request(a1, block, 1LL);
v12 = (*(_QWORD *)(a1 + 104))-- == 1LL;
if ( v12 )
{
v24 = *(_QWORD *)(a1 + 272);
if ( v24 )
{
v25 = *(_QWORD *)(v24 + 136);
v26 = *(_QWORD *)(v25 + 56);
v27 = v25 + 8;
if ( v26 )
PSI_server[46]();
pthread_cond_signal(v27);
}
}
if ( *(_QWORD *)(a1 + 264) )
PSI_server[44]();
return pthread_mutex_unlock(v30);
}
| pagecache_unlock:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,R9
MOV dword ptr [RBP + -0x30],R8D
MOV dword ptr [RBP + -0x34],ECX
MOV R13,RDX
MOV R15,RSI
MOV R14,RDI
MOV AL,byte ptr [RBP + 0x18]
MOV byte ptr [RBP + -0x29],AL
MOV RBX,qword ptr [RBP + 0x10]
ADD RDI,0xc8
CMP qword ptr [R14 + 0x108],0x0
MOV qword ptr [RBP + -0x40],RDI
JNZ 0x00131381
CALL 0x00129220
LAB_001311e1:
INC qword ptr [R14 + 0x68]
XOR EAX,EAX
CMP dword ptr [RBP + -0x30],0x1
SETZ AL
SUB RSP,0x8
LEA R10,[RBP + -0x44]
MOV RDI,R14
MOV RSI,R15
MOV RDX,R13
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
PUSH R10
PUSH 0x0
PUSH RAX
CALL 0x001313d0
ADD RSP,0x20
MOV R13,RAX
TEST R12,R12
JZ 0x00131237
MOV RAX,0xffffffffffffff
CMP qword ptr [R13 + 0x88],RAX
JNZ 0x00131237
MOV qword ptr [R13 + 0x88],R12
LAB_00131237:
TEST RBX,RBX
JZ 0x0013124a
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R13
CALL 0x00131a1a
LAB_0013124a:
MOV EDX,dword ptr [RBP + -0x34]
MOV EAX,EDX
AND EAX,0xfffffffe
CMP EAX,0x6
JNZ 0x001312e5
MOVZX EAX,word ptr [R13 + 0x74]
MOVZX ECX,AX
MOV ESI,ECX
AND ESI,0x40
JZ 0x001312e5
CMP byte ptr [RBP + -0x29],0x0
JZ 0x001312db
AND ECX,0x20
JNZ 0x001312db
MOV RAX,R13
ADD RAX,0x10
MOV RSI,qword ptr [R13 + 0x10]
MOV RCX,qword ptr [R13 + 0x18]
TEST RSI,RSI
JZ 0x00131292
MOV qword ptr [RSI + 0x18],RCX
MOV RSI,qword ptr [RAX]
JMP 0x00131294
LAB_00131292:
XOR ESI,ESI
LAB_00131294:
MOV qword ptr [RCX],RSI
MOV RCX,qword ptr [R14 + 0x128]
MOV RDI,qword ptr [R13 + 0x20]
MOV ESI,dword ptr [R14 + 0x28]
DEC ESI
AND ESI,dword ptr [RDI + 0x28]
LEA RCX,[RCX + RSI*0x8]
MOV qword ptr [R13 + 0x18],RCX
MOV RSI,qword ptr [RCX]
MOV qword ptr [R13 + 0x10],RSI
TEST RSI,RSI
JZ 0x001312c3
MOV qword ptr [RSI + 0x18],RAX
LAB_001312c3:
MOV qword ptr [RCX],R13
OR byte ptr [R13 + 0x74],0x20
INC qword ptr [R14 + 0x58]
INC qword ptr [R14 + 0x168]
MOVZX EAX,word ptr [R13 + 0x74]
LAB_001312db:
AND EAX,0xffbf
MOV word ptr [R13 + 0x74],AX
LAB_001312e5:
MOV RDI,R14
MOV RSI,R13
MOV ECX,dword ptr [RBP + -0x30]
CALL 0x00131ad7
MOV RAX,qword ptr [R13 + 0x20]
DEC dword ptr [RAX + 0x68]
JNZ 0x0013131a
MOV RBX,qword ptr [R13 + 0x28]
TEST RBX,RBX
JZ 0x0013131a
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JNZ 0x001313a9
LAB_00131312:
MOV RDI,RBX
CALL 0x001295c0
LAB_0013131a:
CMP dword ptr [RBP + -0x30],0x0
JZ 0x00131330
MOV RDI,R14
MOV RSI,R13
MOV EDX,0x1
CALL 0x00131c47
LAB_00131330:
DEC qword ptr [R14 + 0x68]
JNZ 0x0013135e
MOV RAX,qword ptr [R14 + 0x110]
TEST RAX,RAX
JZ 0x0013135e
MOV RBX,qword ptr [RAX + 0x88]
MOV RDI,qword ptr [RBX + 0x38]
ADD RBX,0x8
TEST RDI,RDI
JNZ 0x001313be
LAB_00131356:
MOV RDI,RBX
CALL 0x001295c0
LAB_0013135e:
MOV RDI,qword ptr [R14 + 0x108]
TEST RDI,RDI
JNZ 0x00131397
LAB_0013136a:
MOV RDI,qword ptr [RBP + -0x40]
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001291e0
LAB_00131381:
LEA RSI,[0x1d92ab]
MOV EDX,0xc97
CALL 0x0012eb8f
JMP 0x001311e1
LAB_00131397:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0013136a
LAB_001313a9:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x00131312
LAB_001313be:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x00131356
|
void pagecache_unlock(long param_1,int8 param_2,int8 param_3,uint param_4,int param_5,
long param_6,long param_7,char param_8)
{
int *piVar1;
long *plVar2;
int8 *puVar3;
long lVar4;
pthread_cond_t *__cond;
ushort uVar5;
long lVar6;
int8 uVar7;
int1 local_4c [4];
pthread_mutex_t *local_48;
uint local_3c;
int local_38;
char local_31;
local_31 = param_8;
local_48 = (pthread_mutex_t *)(param_1 + 200);
local_3c = param_4;
local_38 = param_5;
if (*(long *)(param_1 + 0x108) == 0) {
pthread_mutex_lock(local_48);
}
else {
psi_mutex_lock(local_48,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0xc97);
}
*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
lVar6 = find_block(param_1,param_2,param_3,0,0,0,local_38 == 1,0,local_4c);
if ((param_6 != 0) && (*(long *)(lVar6 + 0x88) == 0xffffffffffffff)) {
*(long *)(lVar6 + 0x88) = param_6;
}
if (param_7 != 0) {
check_and_set_lsn(param_1,param_7,lVar6);
}
if (((local_3c & 0xfffffffe) == 6) && (uVar5 = *(ushort *)(lVar6 + 0x74), (uVar5 & 0x40) != 0)) {
if ((local_31 != '\0') && ((uVar5 & 0x20) == 0)) {
puVar3 = *(int8 **)(lVar6 + 0x18);
if (*(long *)(lVar6 + 0x10) == 0) {
uVar7 = 0;
}
else {
*(int8 **)(*(long *)(lVar6 + 0x10) + 0x18) = puVar3;
uVar7 = *(int8 *)(lVar6 + 0x10);
}
*puVar3 = uVar7;
plVar2 = (long *)(*(long *)(param_1 + 0x128) +
(ulong)(*(int *)(param_1 + 0x28) - 1U &
*(uint *)(*(long *)(lVar6 + 0x20) + 0x28)) * 8);
*(long **)(lVar6 + 0x18) = plVar2;
lVar4 = *plVar2;
*(long *)(lVar6 + 0x10) = lVar4;
if (lVar4 != 0) {
*(int8 **)(lVar4 + 0x18) = (int8 *)(lVar6 + 0x10);
}
*plVar2 = lVar6;
*(byte *)(lVar6 + 0x74) = *(byte *)(lVar6 + 0x74) | 0x20;
*(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + 1;
*(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + 1;
uVar5 = *(ushort *)(lVar6 + 0x74);
}
*(ushort *)(lVar6 + 0x74) = uVar5 & 0xffbf;
}
make_lock_and_pin(param_1,lVar6,local_3c,local_38);
piVar1 = (int *)(*(long *)(lVar6 + 0x20) + 0x68);
*piVar1 = *piVar1 + -1;
if ((*piVar1 == 0) &&
(__cond = *(pthread_cond_t **)(lVar6 + 0x28), __cond != (pthread_cond_t *)0x0)) {
if (__cond[1].__align != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal(__cond);
}
if (local_38 != 0) {
unreg_request(param_1,lVar6,1);
}
plVar2 = (long *)(param_1 + 0x68);
*plVar2 = *plVar2 + -1;
if ((*plVar2 == 0) && (*(long *)(param_1 + 0x110) != 0)) {
lVar6 = *(long *)(*(long *)(param_1 + 0x110) + 0x88);
if (*(long *)(lVar6 + 0x38) != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal((pthread_cond_t *)(lVar6 + 8));
}
if (*(long *)(param_1 + 0x108) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_48);
return;
}
| |
20,926 | get_logfile_by_number | eloqsql/storage/maria/ma_loghandler.c | static TRANSLOG_FILE *get_logfile_by_number(uint32 file_no)
{
TRANSLOG_FILE *file;
DBUG_ENTER("get_logfile_by_number");
mysql_rwlock_rdlock(&log_descriptor.open_files_lock);
if (log_descriptor.max_file - file_no >=
log_descriptor.open_files.elements)
{
DBUG_PRINT("info", ("File #%u is not opened", file_no));
mysql_rwlock_unlock(&log_descriptor.open_files_lock);
DBUG_RETURN(NULL);
}
DBUG_ASSERT(log_descriptor.max_file - log_descriptor.min_file + 1 ==
log_descriptor.open_files.elements);
DBUG_ASSERT(log_descriptor.max_file >= file_no);
DBUG_ASSERT(log_descriptor.min_file <= file_no);
file= *dynamic_element(&log_descriptor.open_files,
log_descriptor.max_file - file_no, TRANSLOG_FILE **);
mysql_rwlock_unlock(&log_descriptor.open_files_lock);
DBUG_PRINT("info", ("File %p File no: %u, File handler: %d",
file, file_no,
(file ? file->handler.file : -1)));
DBUG_ASSERT(!file || file->number == file_no);
DBUG_RETURN(file);
} | O0 | c | get_logfile_by_number:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0xc(%rbp)
leaq 0x44245e(%rip), %rdi # 0x478c70
addq $0x258, %rdi # imm = 0x258
leaq 0x11ae8d(%rip), %rsi # 0x1516ad
movl $0x41d, %edx # imm = 0x41D
callq 0x368b0
movl 0x442690(%rip), %eax # 0x478ec0
subl -0xc(%rbp), %eax
cmpl 0x442667(%rip), %eax # 0x478ea0
jb 0x3685c
jmp 0x3683d
jmp 0x3683f
leaq 0x44242a(%rip), %rdi # 0x478c70
addq $0x258, %rdi # imm = 0x258
callq 0x35740
movq $0x0, -0x8(%rbp)
jmp 0x368a5
jmp 0x3685e
jmp 0x36860
jmp 0x36862
jmp 0x36864
jmp 0x36866
jmp 0x36868
movq 0x442629(%rip), %rax # 0x478e98
movl 0x44264b(%rip), %ecx # 0x478ec0
subl -0xc(%rbp), %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
leaq 0x4423e7(%rip), %rdi # 0x478c70
addq $0x258, %rdi # imm = 0x258
callq 0x35740
jmp 0x36897
jmp 0x36899
jmp 0x3689b
jmp 0x3689d
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
| get_logfile_by_number:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_C], edi
lea rdi, log_descriptor
add rdi, 258h
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 41Dh
call inline_mysql_rwlock_rdlock
mov eax, cs:dword_478EC0
sub eax, [rbp+var_C]
cmp eax, cs:dword_478EA0
jb short loc_3685C
jmp short $+2
loc_3683D:
jmp short $+2
loc_3683F:
lea rdi, log_descriptor
add rdi, 258h
call inline_mysql_rwlock_unlock
mov [rbp+var_8], 0
jmp short loc_368A5
loc_3685C:
jmp short $+2
loc_3685E:
jmp short $+2
loc_36860:
jmp short $+2
loc_36862:
jmp short $+2
loc_36864:
jmp short $+2
loc_36866:
jmp short $+2
loc_36868:
mov rax, cs:qword_478E98
mov ecx, cs:dword_478EC0
sub ecx, [rbp+var_C]
mov ecx, ecx
mov rax, [rax+rcx*8]
mov [rbp+var_18], rax
lea rdi, log_descriptor
add rdi, 258h
call inline_mysql_rwlock_unlock
jmp short $+2
loc_36897:
jmp short $+2
loc_36899:
jmp short $+2
loc_3689B:
jmp short $+2
loc_3689D:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_368A5:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| long long get_logfile_by_number(int a1)
{
long long v2; // [rsp+8h] [rbp-18h]
inline_mysql_rwlock_rdlock(
&log_descriptor[75],
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
1053LL);
if ( dword_478EC0 - a1 < (unsigned int)dword_478EA0 )
{
v2 = *(_QWORD *)(qword_478E98 + 8LL * (unsigned int)(dword_478EC0 - a1));
inline_mysql_rwlock_unlock((long long)&log_descriptor[75]);
return v2;
}
else
{
inline_mysql_rwlock_unlock((long long)&log_descriptor[75]);
return 0LL;
}
}
| get_logfile_by_number:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0xc],EDI
LEA RDI,[0x578c70]
ADD RDI,0x258
LEA RSI,[0x2516ad]
MOV EDX,0x41d
CALL 0x001368b0
MOV EAX,dword ptr [0x00578ec0]
SUB EAX,dword ptr [RBP + -0xc]
CMP EAX,dword ptr [0x00578ea0]
JC 0x0013685c
JMP 0x0013683d
LAB_0013683d:
JMP 0x0013683f
LAB_0013683f:
LEA RDI,[0x578c70]
ADD RDI,0x258
CALL 0x00135740
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001368a5
LAB_0013685c:
JMP 0x0013685e
LAB_0013685e:
JMP 0x00136860
LAB_00136860:
JMP 0x00136862
LAB_00136862:
JMP 0x00136864
LAB_00136864:
JMP 0x00136866
LAB_00136866:
JMP 0x00136868
LAB_00136868:
MOV RAX,qword ptr [0x00578e98]
MOV ECX,dword ptr [0x00578ec0]
SUB ECX,dword ptr [RBP + -0xc]
MOV ECX,ECX
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[0x578c70]
ADD RDI,0x258
CALL 0x00135740
JMP 0x00136897
LAB_00136897:
JMP 0x00136899
LAB_00136899:
JMP 0x0013689b
LAB_0013689b:
JMP 0x0013689d
LAB_0013689d:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_001368a5:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int8 get_logfile_by_number(int param_1)
{
int8 local_10;
inline_mysql_rwlock_rdlock
(&DAT_00578ec8,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x41d);
if ((uint)(DAT_00578ec0 - param_1) < DAT_00578ea0) {
local_10 = *(int8 *)(DAT_00578e98 + (ulong)(uint)(DAT_00578ec0 - param_1) * 8);
inline_mysql_rwlock_unlock(&DAT_00578ec8);
}
else {
inline_mysql_rwlock_unlock(&DAT_00578ec8);
local_10 = 0;
}
return local_10;
}
| |
20,927 | common_set_adapter_lora(llama_context*, std::vector<common_adapter_lora_info, std::allocator<common_adapter_lora_info>>&) | monkey531[P]llama/common/common.cpp | void common_set_adapter_lora(struct llama_context * ctx, std::vector<common_adapter_lora_info> & lora) {
llama_clear_adapter_lora(ctx);
for (auto & la : lora) {
if (la.scale != 0.0f) {
llama_set_adapter_lora(ctx, la.ptr, la.scale);
}
}
} | O2 | cpp | common_set_adapter_lora(llama_context*, std::vector<common_adapter_lora_info, std::allocator<common_adapter_lora_info>>&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x24a00
movq (%r14), %r15
movq 0x8(%r14), %r14
cmpq %r14, %r15
je 0x5a866
movss 0x20(%r15), %xmm0
ucomiss 0x5c5a0(%rip), %xmm0 # 0xb6df0
jne 0x5a854
jnp 0x5a860
movq 0x28(%r15), %rsi
movq %rbx, %rdi
callq 0x249e0
addq $0x30, %r15
jmp 0x5a83e
popq %rbx
popq %r14
popq %r15
retq
| _Z23common_set_adapter_loraP13llama_contextRSt6vectorI24common_adapter_lora_infoSaIS2_EE:
push r15
push r14
push rbx
mov r14, rsi
mov rbx, rdi
call _llama_clear_adapter_lora
mov r15, [r14]
mov r14, [r14+8]
loc_5A83E:
cmp r15, r14
jz short loc_5A866
movss xmm0, dword ptr [r15+20h]
ucomiss xmm0, cs:dword_B6DF0
jnz short loc_5A854
jnp short loc_5A860
loc_5A854:
mov rsi, [r15+28h]
mov rdi, rbx
call _llama_set_adapter_lora
loc_5A860:
add r15, 30h ; '0'
jmp short loc_5A83E
loc_5A866:
pop rbx
pop r14
pop r15
retn
| long long common_set_adapter_lora(long long a1, long long *a2)
{
long long result; // rax
long long v3; // r15
long long v4; // r14
result = llama_clear_adapter_lora();
v3 = *a2;
v4 = a2[1];
while ( v3 != v4 )
{
if ( *(float *)(v3 + 32) != 0.0 )
result = llama_set_adapter_lora(a1, *(_QWORD *)(v3 + 40));
v3 += 48LL;
}
return result;
}
| common_set_adapter_lora:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
CALL 0x00124a00
MOV R15,qword ptr [R14]
MOV R14,qword ptr [R14 + 0x8]
LAB_0015a83e:
CMP R15,R14
JZ 0x0015a866
MOVSS XMM0,dword ptr [R15 + 0x20]
UCOMISS XMM0,dword ptr [0x001b6df0]
JNZ 0x0015a854
JNP 0x0015a860
LAB_0015a854:
MOV RSI,qword ptr [R15 + 0x28]
MOV RDI,RBX
CALL 0x001249e0
LAB_0015a860:
ADD R15,0x30
JMP 0x0015a83e
LAB_0015a866:
POP RBX
POP R14
POP R15
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* common_set_adapter_lora(llama_context*, std::vector<common_adapter_lora_info,
std::allocator<common_adapter_lora_info> >&) */
void common_set_adapter_lora(llama_context *param_1,vector *param_2)
{
long lVar1;
long lVar2;
llama_clear_adapter_lora();
lVar1 = *(long *)(param_2 + 8);
for (lVar2 = *(long *)param_2; lVar2 != lVar1; lVar2 = lVar2 + 0x30) {
if ((*(float *)(lVar2 + 0x20) != _DAT_001b6df0) ||
(NAN(*(float *)(lVar2 + 0x20)) || NAN(_DAT_001b6df0))) {
llama_set_adapter_lora(param_1,*(int8 *)(lVar2 + 0x28));
}
}
return;
}
| |
20,928 | my_vsnprintf_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_vsnprintf_utf32(char *dst, size_t n, const char* fmt, va_list ap)
{
char *start= dst, *end= dst + n;
DBUG_ASSERT((n % 4) == 0);
for (; *fmt ; fmt++)
{
if (fmt[0] != '%')
{
if (dst >= end) /* End of buffer */
break;
*dst++= '\0';
*dst++= '\0';
*dst++= '\0';
*dst++= *fmt; /* Copy ordinary char */
continue;
}
fmt++;
/* Skip if max size is used (to be compatible with printf) */
while ( (*fmt>='0' && *fmt<='9') || *fmt == '.' || *fmt == '-')
fmt++;
if (*fmt == 'l')
fmt++;
if (*fmt == 's') /* String parameter */
{
reg2 char *par= va_arg(ap, char *);
size_t plen;
size_t left_len= (size_t)(end - dst);
if (!par) par= (char*)"(null)";
plen= strlen(par);
if (left_len <= plen*4)
plen= left_len / 4 - 1;
for ( ; plen ; plen--, dst+= 4, par++)
{
dst[0]= '\0';
dst[1]= '\0';
dst[2]= '\0';
dst[3]= par[0];
}
continue;
}
else if (*fmt == 'd' || *fmt == 'u') /* Integer parameter */
{
register int iarg;
char nbuf[16];
char *pbuf= nbuf;
if ((size_t) (end - dst) < 64)
break;
iarg= va_arg(ap, int);
if (*fmt == 'd')
int10_to_str((long) iarg, nbuf, -10);
else
int10_to_str((long) (uint) iarg,nbuf,10);
for (; pbuf[0]; pbuf++)
{
*dst++= '\0';
*dst++= '\0';
*dst++= '\0';
*dst++= *pbuf;
}
continue;
}
/* We come here on '%%', unknown code or too long parameter */
if (dst == end)
break;
*dst++= '\0';
*dst++= '\0';
*dst++= '\0';
*dst++= '%'; /* % used as % or unknown code */
}
DBUG_ASSERT(dst < end);
*dst++= '\0';
*dst++= '\0';
*dst++= '\0';
*dst++= '\0'; /* End of errmessage */
return (size_t) (dst - start - 4);
} | O0 | c | my_vsnprintf_utf32:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x6892e
jmp 0x68930
movq -0x38(%rbp), %rax
cmpb $0x0, (%rax)
je 0x68cd8
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x25, %eax
je 0x689aa
movq -0x28(%rbp), %rax
cmpq -0x50(%rbp), %rax
jb 0x68958
jmp 0x68cd8
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rax
movb (%rax), %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
jmp 0x68cc7
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0x689d3
movq -0x38(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x39, %ecx
movb %al, -0x79(%rbp)
jle 0x689f4
movq -0x38(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x2e, %ecx
movb %al, -0x79(%rbp)
je 0x689f4
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
sete %al
movb %al, -0x79(%rbp)
movb -0x79(%rbp), %al
testb $0x1, %al
jne 0x689fd
jmp 0x68a0b
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x689b6
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
jne 0x68a23
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x73, %eax
jne 0x68b39
movq -0x40(%rbp), %rax
movq %rax, -0x88(%rbp)
movl (%rax), %eax
movl %eax, -0x80(%rbp)
cmpl $0x28, %eax
ja 0x68a67
movq -0x88(%rbp), %rcx
movl -0x80(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x90(%rbp)
jmp 0x68a84
movq -0x88(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x68ab3
leaq 0x1daf4(%rip), %rax # 0x865a3
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0x25150
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movq -0x60(%rbp), %rcx
shlq $0x2, %rcx
cmpq %rcx, %rax
ja 0x68ae1
movq -0x68(%rbp), %rax
shrq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x68ae3
cmpq $0x0, -0x60(%rbp)
je 0x68b34
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x1(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x2(%rax)
movq -0x58(%rbp), %rax
movb (%rax), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x60(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x28(%rbp)
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x68ae3
jmp 0x68cc7
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x64, %eax
je 0x68b55
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x75, %eax
jne 0x68c71
leaq -0x20(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
cmpq $0x40, %rax
jae 0x68b73
jmp 0x68cd8
movq -0x40(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl (%rax), %eax
movl %eax, -0x94(%rbp)
cmpl $0x28, %eax
ja 0x68bad
movq -0xa0(%rbp), %rcx
movl -0x94(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xa8(%rbp)
jmp 0x68bca
movq -0xa0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x64, %eax
jne 0x68bf6
movslq -0x6c(%rbp), %rdi
leaq -0x20(%rbp), %rsi
movl $0xfffffff6, %edx # imm = 0xFFFFFFF6
callq 0x7cc50
jmp 0x68c09
movl -0x6c(%rbp), %eax
movl %eax, %edi
leaq -0x20(%rbp), %rsi
movl $0xa, %edx
callq 0x7cc50
jmp 0x68c0b
movq -0x78(%rbp), %rax
cmpb $0x0, (%rax)
je 0x68c6f
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x78(%rbp), %rax
movb (%rax), %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x68c0b
jmp 0x68cc7
jmp 0x68c73
movq -0x28(%rbp), %rax
cmpq -0x50(%rbp), %rax
jne 0x68c7f
jmp 0x68cd8
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x25, (%rax)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x68930
jmp 0x68cda
jmp 0x68cdc
movq -0x28(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -0x28(%rbp)
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rcx
subq %rcx, %rax
addq $-0x4, %rax
movq %rax, -0xb0(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x68d58
movq -0xb0(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
callq 0x25390
nopl (%rax)
| my_vsnprintf_utf32:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_28], rdi
mov [rbp+var_30], rsi
mov [rbp+var_38], rdx
mov [rbp+var_40], rcx
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_50], rax
jmp short $+2
loc_6892E:
jmp short $+2
loc_68930:
mov rax, [rbp+var_38]
cmp byte ptr [rax], 0
jz loc_68CD8
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 25h ; '%'
jz short loc_689AA
mov rax, [rbp+var_28]
cmp rax, [rbp+var_50]
jb short loc_68958
jmp loc_68CD8
loc_68958:
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_38]
mov cl, [rax]
mov rax, [rbp+var_28]
mov rdx, rax
add rdx, 1
mov [rbp+var_28], rdx
mov [rax], cl
jmp loc_68CC7
loc_689AA:
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_38], rax
loc_689B6:
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 30h ; '0'
jl short loc_689D3
mov rax, [rbp+var_38]
movsx ecx, byte ptr [rax]
mov al, 1
cmp ecx, 39h ; '9'
mov [rbp+var_79], al
jle short loc_689F4
loc_689D3:
mov rax, [rbp+var_38]
movsx ecx, byte ptr [rax]
mov al, 1
cmp ecx, 2Eh ; '.'
mov [rbp+var_79], al
jz short loc_689F4
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 2Dh ; '-'
setz al
mov [rbp+var_79], al
loc_689F4:
mov al, [rbp+var_79]
test al, 1
jnz short loc_689FD
jmp short loc_68A0B
loc_689FD:
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_38], rax
jmp short loc_689B6
loc_68A0B:
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 6Ch ; 'l'
jnz short loc_68A23
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_38], rax
loc_68A23:
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 73h ; 's'
jnz loc_68B39
mov rax, [rbp+var_40]
mov [rbp+var_88], rax
mov eax, [rax]
mov [rbp+var_80], eax
cmp eax, 28h ; '('
ja short loc_68A67
mov rcx, [rbp+var_88]
mov edx, [rbp+var_80]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_90], rax
jmp short loc_68A84
loc_68A67:
mov rcx, [rbp+var_88]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_90], rax
loc_68A84:
mov rax, [rbp+var_90]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_50]
mov rcx, [rbp+var_28]
sub rax, rcx
mov [rbp+var_68], rax
cmp [rbp+var_58], 0
jnz short loc_68AB3
lea rax, aNull; "(null)"
mov [rbp+var_58], rax
loc_68AB3:
mov rdi, [rbp+var_58]
call _strlen
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
mov rcx, [rbp+var_60]
shl rcx, 2
cmp rax, rcx
ja short loc_68AE1
mov rax, [rbp+var_68]
shr rax, 2
sub rax, 1
mov [rbp+var_60], rax
loc_68AE1:
jmp short $+2
loc_68AE3:
cmp [rbp+var_60], 0
jz short loc_68B34
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+1], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+2], 0
mov rax, [rbp+var_58]
mov cl, [rax]
mov rax, [rbp+var_28]
mov [rax+3], cl
mov rax, [rbp+var_60]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_60], rax
mov rax, [rbp+var_28]
add rax, 4
mov [rbp+var_28], rax
mov rax, [rbp+var_58]
add rax, 1
mov [rbp+var_58], rax
jmp short loc_68AE3
loc_68B34:
jmp loc_68CC7
loc_68B39:
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 64h ; 'd'
jz short loc_68B55
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 75h ; 'u'
jnz loc_68C71
loc_68B55:
lea rax, [rbp+var_20]
mov [rbp+var_78], rax
mov rax, [rbp+var_50]
mov rcx, [rbp+var_28]
sub rax, rcx
cmp rax, 40h ; '@'
jnb short loc_68B73
jmp loc_68CD8
loc_68B73:
mov rax, [rbp+var_40]
mov [rbp+var_A0], rax
mov eax, [rax]
mov [rbp+var_94], eax
cmp eax, 28h ; '('
ja short loc_68BAD
mov rcx, [rbp+var_A0]
mov edx, [rbp+var_94]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_A8], rax
jmp short loc_68BCA
loc_68BAD:
mov rcx, [rbp+var_A0]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_A8], rax
loc_68BCA:
mov rax, [rbp+var_A8]
mov eax, [rax]
mov [rbp+var_6C], eax
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 64h ; 'd'
jnz short loc_68BF6
movsxd rdi, [rbp+var_6C]
lea rsi, [rbp+var_20]
mov edx, 0FFFFFFF6h
call int10_to_str
jmp short loc_68C09
loc_68BF6:
mov eax, [rbp+var_6C]
mov edi, eax
lea rsi, [rbp+var_20]
mov edx, 0Ah
call int10_to_str
loc_68C09:
jmp short $+2
loc_68C0B:
mov rax, [rbp+var_78]
cmp byte ptr [rax], 0
jz short loc_68C6F
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_78]
mov cl, [rax]
mov rax, [rbp+var_28]
mov rdx, rax
add rdx, 1
mov [rbp+var_28], rdx
mov [rax], cl
mov rax, [rbp+var_78]
add rax, 1
mov [rbp+var_78], rax
jmp short loc_68C0B
loc_68C6F:
jmp short loc_68CC7
loc_68C71:
jmp short $+2
loc_68C73:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_50]
jnz short loc_68C7F
jmp short loc_68CD8
loc_68C7F:
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov byte ptr [rax], 25h ; '%'
loc_68CC7:
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_38], rax
jmp loc_68930
loc_68CD8:
jmp short $+2
loc_68CDA:
jmp short $+2
loc_68CDC:
mov rax, [rbp+var_28]
mov rcx, rax
inc rcx
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
inc rcx
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
inc rcx
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, rax
inc rcx
mov [rbp+var_28], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_28]
mov rcx, [rbp+var_48]
sub rax, rcx
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_B0], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_68D58
mov rax, [rbp+var_B0]
add rsp, 0B0h
pop rbp
retn
loc_68D58:
call ___stack_chk_fail
| _BYTE * my_vsnprintf_utf32(_BYTE *a1, long long a2, _BYTE *a3, int *a4)
{
_BYTE *v4; // rax
const char **v5; // rax
unsigned int *v6; // rax
_BYTE *v7; // rax
_BYTE *v8; // rax
int v10; // [rsp+1Ch] [rbp-94h]
int v11; // [rsp+30h] [rbp-80h]
bool v12; // [rsp+37h] [rbp-79h]
_BYTE *v13; // [rsp+38h] [rbp-78h]
unsigned int v14; // [rsp+44h] [rbp-6Ch]
unsigned long long v15; // [rsp+48h] [rbp-68h]
long long v16; // [rsp+50h] [rbp-60h]
const char *v17; // [rsp+58h] [rbp-58h]
_BYTE *v18; // [rsp+60h] [rbp-50h]
_BYTE *v21; // [rsp+88h] [rbp-28h]
_BYTE v22[24]; // [rsp+90h] [rbp-20h] BYREF
unsigned long long v23; // [rsp+A8h] [rbp-8h]
v23 = __readfsqword(0x28u);
v21 = a1;
v18 = &a1[a2];
while ( *a3 )
{
if ( *a3 == 37 )
{
++a3;
while ( 1 )
{
if ( (char)*a3 < 48 || (v12 = 1, (char)*a3 > 57) )
{
v12 = 1;
if ( *a3 != 46 )
v12 = *a3 == 45;
}
if ( !v12 )
break;
++a3;
}
if ( *a3 == 108 )
++a3;
if ( *a3 == 115 )
{
v11 = *a4;
if ( (unsigned int)*a4 > 0x28 )
{
v5 = (const char **)*((_QWORD *)a4 + 1);
*((_QWORD *)a4 + 1) = v5 + 1;
}
else
{
v5 = (const char **)(*((_QWORD *)a4 + 2) + v11);
*a4 = v11 + 8;
}
v17 = *v5;
v15 = v18 - v21;
if ( !*v5 )
v17 = "(null)";
v16 = strlen(v17);
if ( v15 <= 4 * v16 )
v16 = (v15 >> 2) - 1;
while ( v16 )
{
*v21 = 0;
v21[1] = 0;
v21[2] = 0;
v21[3] = *v17;
--v16;
v21 += 4;
++v17;
}
}
else if ( *a3 == 100 || *a3 == 117 )
{
v13 = v22;
if ( (unsigned long long)(v18 - v21) < 0x40 )
break;
v10 = *a4;
if ( (unsigned int)*a4 > 0x28 )
{
v6 = (unsigned int *)*((_QWORD *)a4 + 1);
*((_QWORD *)a4 + 1) = v6 + 2;
}
else
{
v6 = (unsigned int *)(*((_QWORD *)a4 + 2) + v10);
*a4 = v10 + 8;
}
v14 = *v6;
if ( *a3 == 100 )
int10_to_str((int)v14, v22, 4294967286LL);
else
int10_to_str(v14, v22, 10LL);
while ( *v13 )
{
*v21 = 0;
v21[1] = 0;
v21[2] = 0;
v7 = v21 + 3;
v21 += 4;
*v7 = *v13++;
}
}
else
{
if ( v21 == v18 )
break;
*v21 = 0;
v21[1] = 0;
v21[2] = 0;
v8 = v21 + 3;
v21 += 4;
*v8 = 37;
}
}
else
{
if ( v21 >= v18 )
break;
*v21 = 0;
v21[1] = 0;
v21[2] = 0;
v4 = v21 + 3;
v21 += 4;
*v4 = *a3;
}
++a3;
}
*v21 = 0;
v21[1] = 0;
v21[2] = 0;
v21[3] = 0;
return (_BYTE *)(v21 - a1);
}
| my_vsnprintf_utf32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x28],RDI
MOV qword ptr [RBP + -0x30],RSI
MOV qword ptr [RBP + -0x38],RDX
MOV qword ptr [RBP + -0x40],RCX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0016892e
LAB_0016892e:
JMP 0x00168930
LAB_00168930:
MOV RAX,qword ptr [RBP + -0x38]
CMP byte ptr [RAX],0x0
JZ 0x00168cd8
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x25
JZ 0x001689aa
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x50]
JC 0x00168958
JMP 0x00168cd8
LAB_00168958:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x28],RDX
MOV byte ptr [RAX],CL
JMP 0x00168cc7
LAB_001689aa:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
LAB_001689b6:
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x30
JL 0x001689d3
MOV RAX,qword ptr [RBP + -0x38]
MOVSX ECX,byte ptr [RAX]
MOV AL,0x1
CMP ECX,0x39
MOV byte ptr [RBP + -0x79],AL
JLE 0x001689f4
LAB_001689d3:
MOV RAX,qword ptr [RBP + -0x38]
MOVSX ECX,byte ptr [RAX]
MOV AL,0x1
CMP ECX,0x2e
MOV byte ptr [RBP + -0x79],AL
JZ 0x001689f4
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2d
SETZ AL
MOV byte ptr [RBP + -0x79],AL
LAB_001689f4:
MOV AL,byte ptr [RBP + -0x79]
TEST AL,0x1
JNZ 0x001689fd
JMP 0x00168a0b
LAB_001689fd:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001689b6
LAB_00168a0b:
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x6c
JNZ 0x00168a23
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
LAB_00168a23:
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x73
JNZ 0x00168b39
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x88],RAX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x80],EAX
CMP EAX,0x28
JA 0x00168a67
MOV RCX,qword ptr [RBP + -0x88]
MOV EDX,dword ptr [RBP + -0x80]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x90],RAX
JMP 0x00168a84
LAB_00168a67:
MOV RCX,qword ptr [RBP + -0x88]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x90],RAX
LAB_00168a84:
MOV RAX,qword ptr [RBP + -0x90]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
CMP qword ptr [RBP + -0x58],0x0
JNZ 0x00168ab3
LEA RAX,[0x1865a3]
MOV qword ptr [RBP + -0x58],RAX
LAB_00168ab3:
MOV RDI,qword ptr [RBP + -0x58]
CALL 0x00125150
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x60]
SHL RCX,0x2
CMP RAX,RCX
JA 0x00168ae1
MOV RAX,qword ptr [RBP + -0x68]
SHR RAX,0x2
SUB RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
LAB_00168ae1:
JMP 0x00168ae3
LAB_00168ae3:
CMP qword ptr [RBP + -0x60],0x0
JZ 0x00168b34
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x2],0x0
MOV RAX,qword ptr [RBP + -0x58]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x4
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x1
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00168ae3
LAB_00168b34:
JMP 0x00168cc7
LAB_00168b39:
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x64
JZ 0x00168b55
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x75
JNZ 0x00168c71
LAB_00168b55:
LEA RAX,[RBP + -0x20]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
CMP RAX,0x40
JNC 0x00168b73
JMP 0x00168cd8
LAB_00168b73:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0xa0],RAX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x94],EAX
CMP EAX,0x28
JA 0x00168bad
MOV RCX,qword ptr [RBP + -0xa0]
MOV EDX,dword ptr [RBP + -0x94]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0xa8],RAX
JMP 0x00168bca
LAB_00168bad:
MOV RCX,qword ptr [RBP + -0xa0]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0xa8],RAX
LAB_00168bca:
MOV RAX,qword ptr [RBP + -0xa8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x6c],EAX
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x64
JNZ 0x00168bf6
MOVSXD RDI,dword ptr [RBP + -0x6c]
LEA RSI,[RBP + -0x20]
MOV EDX,0xfffffff6
CALL 0x0017cc50
JMP 0x00168c09
LAB_00168bf6:
MOV EAX,dword ptr [RBP + -0x6c]
MOV EDI,EAX
LEA RSI,[RBP + -0x20]
MOV EDX,0xa
CALL 0x0017cc50
LAB_00168c09:
JMP 0x00168c0b
LAB_00168c0b:
MOV RAX,qword ptr [RBP + -0x78]
CMP byte ptr [RAX],0x0
JZ 0x00168c6f
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x28],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0x78],RAX
JMP 0x00168c0b
LAB_00168c6f:
JMP 0x00168cc7
LAB_00168c71:
JMP 0x00168c73
LAB_00168c73:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x50]
JNZ 0x00168c7f
JMP 0x00168cd8
LAB_00168c7f:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x25
LAB_00168cc7:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00168930
LAB_00168cd8:
JMP 0x00168cda
LAB_00168cda:
JMP 0x00168cdc
LAB_00168cdc:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
INC RCX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
INC RCX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
INC RCX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
INC RCX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x48]
SUB RAX,RCX
ADD RAX,-0x4
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00168d58
MOV RAX,qword ptr [RBP + -0xb0]
ADD RSP,0xb0
POP RBP
RET
LAB_00168d58:
CALL 0x00125390
|
long my_vsnprintf_utf32(int1 *param_1,long param_2,char *param_3,uint *param_4)
{
uint uVar1;
int1 *puVar2;
char *pcVar3;
int1 *puVar4;
long in_FS_OFFSET;
bool bVar5;
int *local_b0;
long *local_98;
char *local_80;
size_t local_68;
char *local_60;
char *local_40;
int1 *local_30;
char local_28 [24];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
puVar2 = param_1 + param_2;
local_30 = param_1;
for (local_40 = param_3; *local_40 != '\0'; local_40 = local_40 + 1) {
if (*local_40 == '%') {
do {
pcVar3 = local_40;
local_40 = pcVar3 + 1;
if (((*local_40 < '0') || (bVar5 = true, '9' < *local_40)) &&
(bVar5 = true, *local_40 != '.')) {
bVar5 = *local_40 == '-';
}
} while (bVar5);
if (*local_40 == 'l') {
local_40 = pcVar3 + 2;
}
if (*local_40 == 's') {
uVar1 = *param_4;
if (uVar1 < 0x29) {
local_98 = (long *)((long)(int)uVar1 + *(long *)(param_4 + 4));
*param_4 = uVar1 + 8;
}
else {
local_98 = *(long **)(param_4 + 2);
*(long **)(param_4 + 2) = local_98 + 1;
}
local_60 = (char *)*local_98;
if (local_60 == (char *)0x0) {
local_60 = "(null)";
}
local_68 = strlen(local_60);
if ((ulong)((long)puVar2 - (long)local_30) <= local_68 << 2) {
local_68 = ((ulong)((long)puVar2 - (long)local_30) >> 2) - 1;
}
for (; local_68 != 0; local_68 = local_68 - 1) {
*local_30 = 0;
local_30[1] = 0;
local_30[2] = 0;
local_30[3] = *local_60;
local_30 = local_30 + 4;
local_60 = local_60 + 1;
}
}
else if ((*local_40 == 'd') || (*local_40 == 'u')) {
local_80 = local_28;
if ((ulong)((long)puVar2 - (long)local_30) < 0x40) break;
uVar1 = *param_4;
if (uVar1 < 0x29) {
local_b0 = (int *)((long)(int)uVar1 + *(long *)(param_4 + 4));
*param_4 = uVar1 + 8;
}
else {
local_b0 = *(int **)(param_4 + 2);
*(int **)(param_4 + 2) = local_b0 + 2;
}
if (*local_40 == 'd') {
int10_to_str((long)*local_b0,local_28,0xfffffff6);
}
else {
int10_to_str(*local_b0,local_28,10);
}
for (; *local_80 != '\0'; local_80 = local_80 + 1) {
*local_30 = 0;
local_30[1] = 0;
pcVar3 = local_30 + 3;
local_30[2] = 0;
local_30 = local_30 + 4;
*pcVar3 = *local_80;
}
}
else {
if (local_30 == puVar2) break;
*local_30 = 0;
local_30[1] = 0;
puVar4 = local_30 + 3;
local_30[2] = 0;
local_30 = local_30 + 4;
*puVar4 = 0x25;
}
}
else {
if (puVar2 <= local_30) break;
*local_30 = 0;
local_30[1] = 0;
pcVar3 = local_30 + 3;
local_30[2] = 0;
local_30 = local_30 + 4;
*pcVar3 = *local_40;
}
}
*local_30 = 0;
local_30[1] = 0;
local_30[2] = 0;
local_30[3] = 0;
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return (long)local_30 - (long)param_1;
}
| |
20,929 | StartTree::UPGMA_Matrix<double>::getMinimumEntry(StartTree::Position<double>&) | iqtree3/utils/bionj2.cpp | void getMinimumEntry(Position<T> &best) {
getRowMinima();
best.value = infiniteDistance;
for (size_t r=0; r<n; ++r) {
Position<T> & here = rowMinima[r];
if (here.value < best.value && here.row != here.column) {
best = here;
}
}
} | O0 | cpp | StartTree::UPGMA_Matrix<double>::getMinimumEntry(StartTree::Position<double>&):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq %rdi, (%rsp)
movq (%rdi), %rax
callq *0x40(%rax)
movq 0x18(%rsp), %rax
movsd 0x9b16(%rip), %xmm0 # 0x696c0
movsd %xmm0, 0x10(%rax)
movq $0x0, 0x10(%rsp)
movq (%rsp), %rcx
movq 0x10(%rsp), %rax
cmpq 0x8(%rcx), %rax
jae 0x5fc2c
movq (%rsp), %rdi
addq $0x60, %rdi
movq 0x10(%rsp), %rsi
callq 0x5d0a0
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movsd 0x10(%rax), %xmm1
movq 0x18(%rsp), %rax
movsd 0x10(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5fc1a
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
cmpq 0x8(%rcx), %rax
je 0x5fc1a
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdi
callq 0x5d1c0
jmp 0x5fc1c
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x5fbb8
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN9StartTree12UPGMA_MatrixIdE15getMinimumEntryERNS_8PositionIdEE:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rdi, [rsp+28h+var_8]
mov [rsp+28h+var_28], rdi
mov rax, [rdi]
call qword ptr [rax+40h]
mov rax, [rsp+28h+var_10]
movsd xmm0, cs:qword_696C0
movsd qword ptr [rax+10h], xmm0
mov [rsp+28h+var_18], 0
loc_5FBB8:
mov rcx, [rsp+28h+var_28]
mov rax, [rsp+28h+var_18]
cmp rax, [rcx+8]
jnb short loc_5FC2C
mov rdi, [rsp+28h+var_28]
add rdi, 60h ; '`'
mov rsi, [rsp+28h+var_18]
call _ZNSt6vectorIN9StartTree8PositionIdEESaIS2_EEixEm; std::vector<StartTree::Position<double>>::operator[](ulong)
mov [rsp+28h+var_20], rax
mov rax, [rsp+28h+var_20]
movsd xmm1, qword ptr [rax+10h]
mov rax, [rsp+28h+var_10]
movsd xmm0, qword ptr [rax+10h]
ucomisd xmm0, xmm1
jbe short loc_5FC1A
mov rax, [rsp+28h+var_20]
mov rax, [rax]
mov rcx, [rsp+28h+var_20]
cmp rax, [rcx+8]
jz short loc_5FC1A
mov rsi, [rsp+28h+var_20]
mov rdi, [rsp+28h+var_10]
call _ZN9StartTree8PositionIdEaSERKS1_; StartTree::Position<double>::operator=(StartTree::Position<double> const&)
loc_5FC1A:
jmp short $+2
loc_5FC1C:
mov rax, [rsp+28h+var_18]
add rax, 1
mov [rsp+28h+var_18], rax
jmp short loc_5FBB8
loc_5FC2C:
add rsp, 28h
retn
| unsigned long long StartTree::UPGMA_Matrix<double>::getMinimumEntry(_QWORD *a1, double *a2)
{
unsigned long long result; // rax
long long v3; // [rsp+8h] [rbp-20h]
unsigned long long i; // [rsp+10h] [rbp-18h]
(*(void ( **)(_QWORD *))(*a1 + 64LL))(a1);
a2[2] = 9.999999616903162e35;
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= a1[1] )
break;
v3 = std::vector<StartTree::Position<double>>::operator[](a1 + 12, i);
if ( a2[2] > *(double *)(v3 + 16) && *(_QWORD *)v3 != *(_QWORD *)(v3 + 8) )
StartTree::Position<double>::operator=(a2, (_QWORD *)v3);
}
return result;
}
| getMinimumEntry:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP],RDI
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RSP + 0x18]
MOVSD XMM0,qword ptr [0x001696c0]
MOVSD qword ptr [RAX + 0x10],XMM0
MOV qword ptr [RSP + 0x10],0x0
LAB_0015fbb8:
MOV RCX,qword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x10]
CMP RAX,qword ptr [RCX + 0x8]
JNC 0x0015fc2c
MOV RDI,qword ptr [RSP]
ADD RDI,0x60
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x0015d0a0
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVSD XMM1,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOVSD XMM0,qword ptr [RAX + 0x10]
UCOMISD XMM0,XMM1
JBE 0x0015fc1a
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RSP + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x0015fc1a
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0015d1c0
LAB_0015fc1a:
JMP 0x0015fc1c
LAB_0015fc1c:
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x1
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0015fbb8
LAB_0015fc2c:
ADD RSP,0x28
RET
|
/* StartTree::UPGMA_Matrix<double>::getMinimumEntry(StartTree::Position<double>&) */
void __thiscall
StartTree::UPGMA_Matrix<double>::getMinimumEntry(UPGMA_Matrix<double> *this,Position *param_1)
{
Position *pPVar1;
ulong local_18;
(**(code **)(*(long *)this + 0x40))();
*(int8 *)(param_1 + 0x10) = DAT_001696c0;
for (local_18 = 0; local_18 < *(ulong *)(this + 8); local_18 = local_18 + 1) {
pPVar1 = (Position *)
std::vector<StartTree::Position<double>,std::allocator<StartTree::Position<double>>>::
operator[]((vector<StartTree::Position<double>,std::allocator<StartTree::Position<double>>>
*)(this + 0x60),local_18);
if ((*(double *)(pPVar1 + 0x10) < *(double *)(param_1 + 0x10)) &&
(*(long *)pPVar1 != *(long *)(pPVar1 + 8))) {
Position<double>::operator=((Position<double> *)param_1,pPVar1);
}
}
return;
}
| |
20,930 | my_well_formed_char_length_ucs2 | eloqsql/strings/ctype-ucs2.c | static size_t
my_well_formed_char_length_ucs2(CHARSET_INFO *cs __attribute__((unused)),
const char *b, const char *e,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t length= e - b;
if (nchars * 2 <= length)
{
status->m_well_formed_error_pos= NULL;
status->m_source_end_pos= b + (nchars * 2);
return nchars;
}
if (length % 2)
{
status->m_well_formed_error_pos= status->m_source_end_pos= e - 1;
}
else
{
status->m_well_formed_error_pos= NULL;
status->m_source_end_pos= e;
}
return length / 2;
} | O3 | c | my_well_formed_char_length_ucs2:
pushq %rbp
movq %rsp, %rbp
movq %rcx, %rax
movq %rdx, %rcx
subq %rsi, %rcx
leaq (%rax,%rax), %rdi
cmpq %rcx, %rdi
jbe 0x47553
movl %ecx, %eax
andl $0x1, %eax
movq %rax, %rsi
negq %rsi
leaq -0x1(%rdx), %rdi
andq %rdi, %rsi
testq %rax, %rax
cmoveq %rdx, %rdi
movq %rsi, 0x8(%r8)
movq %rdi, (%r8)
shrq %rcx
movq %rcx, %rax
jmp 0x47561
movq $0x0, 0x8(%r8)
addq %rdi, %rsi
movq %rsi, (%r8)
popq %rbp
retq
| my_well_formed_char_length_ucs2:
push rbp
mov rbp, rsp
mov rax, rcx
mov rcx, rdx
sub rcx, rsi
lea rdi, [rax+rax]
cmp rdi, rcx
jbe short loc_47553
mov eax, ecx
and eax, 1
mov rsi, rax
neg rsi
lea rdi, [rdx-1]
and rsi, rdi
test rax, rax
cmovz rdi, rdx
mov [r8+8], rsi
mov [r8], rdi
shr rcx, 1
mov rax, rcx
jmp short loc_47561
loc_47553:
mov qword ptr [r8+8], 0
add rsi, rdi
mov [r8], rsi
loc_47561:
pop rbp
retn
| unsigned long long my_well_formed_char_length_ucs2(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
_QWORD *a5)
{
unsigned long long result; // rax
unsigned long long v6; // rcx
long long v7; // rdi
result = a4;
v6 = a3 - a2;
if ( 2 * result <= a3 - a2 )
{
a5[1] = 0LL;
*a5 = 2 * result + a2;
}
else
{
v7 = a3 - 1;
if ( (v6 & 1) == 0 )
v7 = a3;
a5[1] = (a3 - 1) & -(long long)(v6 & 1);
*a5 = v7;
return v6 >> 1;
}
return result;
}
| my_well_formed_char_length_ucs2:
PUSH RBP
MOV RBP,RSP
MOV RAX,RCX
MOV RCX,RDX
SUB RCX,RSI
LEA RDI,[RAX + RAX*0x1]
CMP RDI,RCX
JBE 0x00147553
MOV EAX,ECX
AND EAX,0x1
MOV RSI,RAX
NEG RSI
LEA RDI,[RDX + -0x1]
AND RSI,RDI
TEST RAX,RAX
CMOVZ RDI,RDX
MOV qword ptr [R8 + 0x8],RSI
MOV qword ptr [R8],RDI
SHR RCX,0x1
MOV RAX,RCX
JMP 0x00147561
LAB_00147553:
MOV qword ptr [R8 + 0x8],0x0
ADD RSI,RDI
MOV qword ptr [R8],RSI
LAB_00147561:
POP RBP
RET
|
ulong my_well_formed_char_length_ucs2
(int8 param_1,long param_2,ulong param_3,ulong param_4,ulong *param_5)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
uVar2 = param_3 - param_2;
if (uVar2 < param_4 * 2) {
uVar1 = (ulong)((uint)uVar2 & 1);
uVar3 = param_3 - 1;
if (uVar1 == 0) {
uVar3 = param_3;
}
param_5[1] = -uVar1 & param_3 - 1;
*param_5 = uVar3;
param_4 = uVar2 >> 1;
}
else {
param_5[1] = 0;
*param_5 = param_2 + param_4 * 2;
}
return param_4;
}
| |
20,931 | js_async_generator_function_call | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_function_call(JSContext *ctx, JSValue func_obj,
JSValue this_obj,
int argc, JSValue *argv,
int flags)
{
JSValue obj, func_ret;
JSAsyncGeneratorData *s;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
return JS_EXCEPTION;
s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_START;
init_list_head(&s->queue);
if (async_func_init(ctx, &s->func_state, func_obj, this_obj, argc, argv)) {
s->state = JS_ASYNC_GENERATOR_STATE_COMPLETED;
goto fail;
}
/* execute the function up to 'OP_initial_yield' (no yield nor
await are possible) */
func_ret = async_func_resume(ctx, &s->func_state);
if (JS_IsException(func_ret))
goto fail;
JS_FreeValue(ctx, func_ret);
obj = js_create_from_ctor(ctx, func_obj, JS_CLASS_ASYNC_GENERATOR);
if (JS_IsException(obj))
goto fail;
s->generator = JS_VALUE_GET_OBJ(obj);
JS_SetOpaqueInternal(obj, s);
return obj;
fail:
js_async_generator_free(ctx->rt, s);
return JS_EXCEPTION;
} | O0 | c | js_async_generator_function_call:
subq $0x98, %rsp
movl 0xa8(%rsp), %eax
movq 0xa0(%rsp), %rax
movq %rsi, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x70(%rsp)
movq %rdi, 0x60(%rsp)
movl %r9d, 0x5c(%rsp)
movq 0x60(%rsp), %rdi
movl $0x88, %esi
callq 0x20a70
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x52f5f
movl $0x0, 0x88(%rsp)
movq $0x6, 0x90(%rsp)
jmp 0x530e4
movq 0x30(%rsp), %rax
movl $0x0, 0x8(%rax)
movq 0x30(%rsp), %rdi
addq $0x78, %rdi
callq 0x210d0
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
addq $0x10, %rsi
movl 0x5c(%rsp), %r10d
movq 0xa0(%rsp), %rax
movq 0x78(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x70(%rsp), %r9
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x70cf0
cmpl $0x0, %eax
je 0x52fcf
movq 0x30(%rsp), %rax
movl $0x5, 0x8(%rax)
jmp 0x530ba
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
addq $0x10, %rsi
callq 0x71060
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x53019
jmp 0x530ba
movq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x229d0
movq 0x60(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movl $0x39, %ecx
callq 0x53b40
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x5307d
jmp 0x530ba
movq 0x48(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rdx
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x296e0
movq 0x48(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x530e4
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x30(%rsp), %rsi
callq 0x90a20
movl $0x0, 0x88(%rsp)
movq $0x6, 0x90(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rdx
addq $0x98, %rsp
retq
nopl (%rax)
| js_async_generator_function_call:
sub rsp, 98h
mov eax, [rsp+98h+arg_8]
mov rax, [rsp+98h+arg_0]
mov [rsp+98h+var_20], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_30], rcx
mov [rsp+98h+var_28], r8
mov [rsp+98h+var_38], rdi
mov [rsp+98h+var_3C], r9d
mov rdi, [rsp+98h+var_38]
mov esi, 88h
call js_mallocz
mov [rsp+98h+var_68], rax
cmp [rsp+98h+var_68], 0
jnz short loc_52F5F
mov dword ptr [rsp+98h+var_10], 0
mov [rsp+98h+var_8], 6
jmp loc_530E4
loc_52F5F:
mov rax, [rsp+98h+var_68]
mov dword ptr [rax+8], 0
mov rdi, [rsp+98h+var_68]
add rdi, 78h ; 'x'
call init_list_head_0
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_68]
add rsi, 10h
mov r10d, [rsp+98h+var_3C]
mov rax, [rsp+98h+arg_0]
mov rdx, [rsp+98h+var_20]
mov rcx, [rsp+98h+var_18]
mov r8, [rsp+98h+var_30]
mov r9, [rsp+98h+var_28]
mov [rsp+98h+var_98], r10d
mov [rsp+98h+var_90], rax
call async_func_init
cmp eax, 0
jz short loc_52FCF
mov rax, [rsp+98h+var_68]
mov dword ptr [rax+8], 5
jmp loc_530BA
loc_52FCF:
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_68]
add rsi, 10h
call async_func_resume
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], rdx
mov rax, [rsp+98h+var_78]
mov [rsp+98h+var_60], rax
mov rax, [rsp+98h+var_70]
mov [rsp+98h+var_58], rax
mov rdi, [rsp+98h+var_60]
mov rsi, [rsp+98h+var_58]
call JS_IsException_1
cmp eax, 0
jz short loc_53019
jmp loc_530BA
loc_53019:
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_60]
mov rdx, [rsp+98h+var_58]
call JS_FreeValue
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_20]
mov rdx, [rsp+98h+var_18]
mov ecx, 39h ; '9'
call js_create_from_ctor
mov [rsp+98h+var_88], rax
mov [rsp+98h+var_80], rdx
mov rax, [rsp+98h+var_88]
mov [rsp+98h+var_50], rax
mov rax, [rsp+98h+var_80]
mov [rsp+98h+var_48], rax
mov rdi, [rsp+98h+var_50]
mov rsi, [rsp+98h+var_48]
call JS_IsException_1
cmp eax, 0
jz short loc_5307D
jmp short loc_530BA
loc_5307D:
mov rcx, [rsp+98h+var_50]
mov rax, [rsp+98h+var_68]
mov [rax], rcx
mov rdx, [rsp+98h+var_68]
mov rdi, [rsp+98h+var_50]
mov rsi, [rsp+98h+var_48]
call JS_SetOpaqueInternal
mov rax, [rsp+98h+var_50]
mov [rsp+98h+var_10], rax
mov rax, [rsp+98h+var_48]
mov [rsp+98h+var_8], rax
jmp short loc_530E4
loc_530BA:
mov rax, [rsp+98h+var_38]
mov rdi, [rax+18h]
mov rsi, [rsp+98h+var_68]
call js_async_generator_free
mov dword ptr [rsp+98h+var_10], 0
mov [rsp+98h+var_8], 6
loc_530E4:
mov rax, [rsp+98h+var_10]
mov rdx, [rsp+98h+var_8]
add rsp, 98h
retn
| long long js_async_generator_function_call(
long long a1,
long long a2,
long long a3,
int a4,
int a5,
int a6,
long long a7)
{
long long v7; // rdx
long long v8; // rdx
long long v10; // [rsp+10h] [rbp-88h]
long long v11; // [rsp+20h] [rbp-78h]
long long v12; // [rsp+30h] [rbp-68h]
long long v13; // [rsp+40h] [rbp-58h]
long long v14; // [rsp+50h] [rbp-48h]
long long v19; // [rsp+88h] [rbp-10h]
v12 = js_mallocz(a1, 0x88uLL);
if ( v12 )
{
*(_DWORD *)(v12 + 8) = 0;
init_list_head_0((_QWORD *)(v12 + 120));
if ( (unsigned int)async_func_init(a1, (int)v12 + 16, a2, a3, a4, a5, a6, a7) )
{
*(_DWORD *)(v12 + 8) = 5;
}
else
{
v11 = async_func_resume(a1, v12 + 16);
v13 = v7;
if ( !JS_IsException_1(v11, v7) )
{
JS_FreeValue(a1, v11, v13);
v10 = js_create_from_ctor(a1, a2, a3, 57LL);
v14 = v8;
if ( !JS_IsException_1(v10, v8) )
{
*(_QWORD *)v12 = v10;
JS_SetOpaqueInternal(v10, v14, v12);
return v10;
}
}
}
js_async_generator_free(*(_QWORD *)(a1 + 24), v12);
LODWORD(v19) = 0;
return v19;
}
LODWORD(v19) = 0;
return v19;
}
| js_async_generator_function_call:
SUB RSP,0x98
MOV EAX,dword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x78],RSI
MOV qword ptr [RSP + 0x80],RDX
MOV qword ptr [RSP + 0x68],RCX
MOV qword ptr [RSP + 0x70],R8
MOV qword ptr [RSP + 0x60],RDI
MOV dword ptr [RSP + 0x5c],R9D
MOV RDI,qword ptr [RSP + 0x60]
MOV ESI,0x88
CALL 0x00120a70
MOV qword ptr [RSP + 0x30],RAX
CMP qword ptr [RSP + 0x30],0x0
JNZ 0x00152f5f
MOV dword ptr [RSP + 0x88],0x0
MOV qword ptr [RSP + 0x90],0x6
JMP 0x001530e4
LAB_00152f5f:
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX + 0x8],0x0
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x78
CALL 0x001210d0
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x30]
ADD RSI,0x10
MOV R10D,dword ptr [RSP + 0x5c]
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RSP + 0x80]
MOV R8,qword ptr [RSP + 0x68]
MOV R9,qword ptr [RSP + 0x70]
MOV dword ptr [RSP],R10D
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00170cf0
CMP EAX,0x0
JZ 0x00152fcf
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX + 0x8],0x5
JMP 0x001530ba
LAB_00152fcf:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x30]
ADD RSI,0x10
CALL 0x00171060
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x00153019
JMP 0x001530ba
LAB_00153019:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x001229d0
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
MOV ECX,0x39
CALL 0x00153b40
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x50],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x0015307d
JMP 0x001530ba
LAB_0015307d:
MOV RCX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX],RCX
MOV RDX,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x001296e0
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x90],RAX
JMP 0x001530e4
LAB_001530ba:
MOV RAX,qword ptr [RSP + 0x60]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00190a20
MOV dword ptr [RSP + 0x88],0x0
MOV qword ptr [RSP + 0x90],0x6
LAB_001530e4:
MOV RAX,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
ADD RSP,0x98
RET
|
int1 [16]
js_async_generator_function_call
(long param_1,int8 param_2,int8 param_3,int8 param_4,int8 param_5,
int4 param_6,int8 param_7)
{
int iVar1;
int8 *puVar2;
int8 uVar3;
int1 auVar4 [16];
int4 local_10;
int4 uStack_c;
int8 local_8;
puVar2 = (int8 *)js_mallocz(param_1,0x88);
if (puVar2 == (int8 *)0x0) {
local_10 = 0;
local_8 = 6;
}
else {
*(int4 *)(puVar2 + 1) = 0;
init_list_head(puVar2 + 0xf);
iVar1 = async_func_init(param_1,puVar2 + 2,param_2,param_3,param_4,param_5,param_6,param_7);
if (iVar1 == 0) {
auVar4 = async_func_resume(param_1,puVar2 + 2);
iVar1 = JS_IsException(auVar4._0_8_,auVar4._8_8_);
if (iVar1 == 0) {
JS_FreeValue(param_1,auVar4._0_8_,auVar4._8_8_);
auVar4 = js_create_from_ctor(param_1,param_2,param_3,0x39);
local_8 = auVar4._8_8_;
uVar3 = auVar4._0_8_;
iVar1 = JS_IsException(uVar3,local_8);
if (iVar1 == 0) {
*puVar2 = uVar3;
JS_SetOpaqueInternal(uVar3,local_8,puVar2);
local_10 = auVar4._0_4_;
uStack_c = auVar4._4_4_;
goto LAB_001530e4;
}
}
}
else {
*(int4 *)(puVar2 + 1) = 5;
}
js_async_generator_free(*(int8 *)(param_1 + 0x18),puVar2);
local_10 = 0;
local_8 = 6;
}
LAB_001530e4:
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
| |
20,932 | js_async_generator_function_call | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_function_call(JSContext *ctx, JSValue func_obj,
JSValue this_obj,
int argc, JSValue *argv,
int flags)
{
JSValue obj, func_ret;
JSAsyncGeneratorData *s;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
return JS_EXCEPTION;
s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_START;
init_list_head(&s->queue);
if (async_func_init(ctx, &s->func_state, func_obj, this_obj, argc, argv)) {
s->state = JS_ASYNC_GENERATOR_STATE_COMPLETED;
goto fail;
}
/* execute the function up to 'OP_initial_yield' (no yield nor
await are possible) */
func_ret = async_func_resume(ctx, &s->func_state);
if (JS_IsException(func_ret))
goto fail;
JS_FreeValue(ctx, func_ret);
obj = js_create_from_ctor(ctx, func_obj, JS_CLASS_ASYNC_GENERATOR);
if (JS_IsException(obj))
goto fail;
s->generator = JS_VALUE_GET_OBJ(obj);
JS_SetOpaqueInternal(obj, s);
return obj;
fail:
js_async_generator_free(ctx->rt, s);
return JS_EXCEPTION;
} | O1 | c | js_async_generator_function_call:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, %r15
movl $0x88, %esi
callq 0xed7d
pushq $0x6
popq %rbx
testq %rax, %rax
jne 0x107cb
xorl %eax, %eax
movq %rbx, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x60(%rsp), %rax
andl $0x0, 0x8(%r14)
leaq 0x78(%r14), %rcx
movq %rcx, 0x78(%r14)
movq %rcx, 0x80(%r14)
movq %r14, %rsi
addq $0x10, %rsi
movq %r15, %rdi
movq %rsi, 0x18(%rsp)
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %r13, %r8
movq %r12, %r9
pushq %rax
pushq %rbp
callq 0x10b57
popq %rcx
popq %rdx
testl %eax, %eax
je 0x1081d
movl $0x5, 0x8(%r14)
jmp 0x10860
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r12
movq %r15, %rdi
movq 0x18(%rsp), %rsi
callq 0x42542
cmpl $0x6, %edx
je 0x10860
movq 0x18(%r15), %rdi
movq %rax, %rsi
callq 0x1ccb2
pushq $0x39
popq %rcx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x36142
movq %rax, 0x20(%rsp)
cmpl $0x6, %edx
jne 0x10871
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0x52003
jmp 0x107b7
movq 0x20(%rsp), %rax
movq %rax, (%r14)
movq %r14, 0x30(%rax)
movq %rdx, %rbx
jmp 0x107b9
| js_async_generator_function_call:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebp, r9d
mov r12, r8
mov r13, rcx
mov [rsp+58h+var_48], rdx
mov [rsp+58h+var_50], rsi
mov r15, rdi
mov esi, 88h
call js_mallocz
push 6
pop rbx
test rax, rax
jnz short loc_107CB
loc_107B7:
xor eax, eax
loc_107B9:
mov rdx, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_107CB:
mov r14, rax
mov rax, [rsp+58h+arg_0]
and dword ptr [r14+8], 0
lea rcx, [r14+78h]
mov [r14+78h], rcx
mov [r14+80h], rcx
mov rsi, r14
add rsi, 10h
mov rdi, r15
mov [rsp+58h+var_40], rsi
mov rdx, [rsp+58h+var_50]
mov rcx, [rsp+58h+var_48]
mov r8, r13
mov r9, r12
push rax
push rbp
call async_func_init
pop rcx
pop rdx
test eax, eax
jz short loc_1081D
mov dword ptr [r14+8], 5
jmp short loc_10860
loc_1081D:
mov r13, [rsp+58h+var_50]
mov r12, [rsp+58h+var_48]
mov rdi, r15
mov rsi, [rsp+58h+var_40]
call async_func_resume
cmp edx, 6
jz short loc_10860
mov rdi, [r15+18h]
mov rsi, rax
call JS_FreeValueRT
push 39h ; '9'
pop rcx
mov rdi, r15
mov rsi, r13
mov rdx, r12
call js_create_from_ctor
mov [rsp+58h+var_38], rax
cmp edx, 6
jnz short loc_10871
loc_10860:
mov rdi, [r15+18h]
mov rsi, r14
call js_async_generator_free
jmp loc_107B7
loc_10871:
mov rax, [rsp+58h+var_38]
mov [r14], rax
mov [rax+30h], r14
mov rbx, rdx
jmp loc_107B9
| long long js_async_generator_function_call(
long long a1,
long long a2,
long long a3,
int a4,
int a5,
int a6,
long long a7)
{
long long v10; // rax
long long result; // rax
long long v12; // r14
int v13; // eax
long long v14; // rdx
long long v15; // rax
long long v16; // [rsp-8h] [rbp-60h]
long long v18; // [rsp+18h] [rbp-40h]
long long v19; // [rsp+20h] [rbp-38h]
v10 = js_mallocz(a1, 0x88uLL);
if ( v10 )
{
v12 = v10;
*(_DWORD *)(v10 + 8) = 0;
*(_QWORD *)(v10 + 120) = v10 + 120;
*(_QWORD *)(v10 + 128) = v10 + 120;
v18 = v10 + 16;
v13 = async_func_init(a1, (int)v10 + 16, a2, a3, a4, a5, a6, a7);
v14 = v16;
if ( v13 )
{
*(_DWORD *)(v12 + 8) = 5;
}
else
{
v15 = async_func_resume(a1, v18, v16);
if ( (_DWORD)v14 != 6 )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v15);
v19 = js_create_from_ctor(a1, a2, a3, 57LL);
if ( (_DWORD)v14 != 6 )
{
result = v19;
*(_QWORD *)v12 = v19;
*(_QWORD *)(v19 + 48) = v12;
return result;
}
}
}
js_async_generator_free(*(_QWORD *)(a1 + 24), v12, v14);
}
return 0LL;
}
| js_async_generator_function_call:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,R9D
MOV R12,R8
MOV R13,RCX
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x8],RSI
MOV R15,RDI
MOV ESI,0x88
CALL 0x0010ed7d
PUSH 0x6
POP RBX
TEST RAX,RAX
JNZ 0x001107cb
LAB_001107b7:
XOR EAX,EAX
LAB_001107b9:
MOV RDX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001107cb:
MOV R14,RAX
MOV RAX,qword ptr [RSP + 0x60]
AND dword ptr [R14 + 0x8],0x0
LEA RCX,[R14 + 0x78]
MOV qword ptr [R14 + 0x78],RCX
MOV qword ptr [R14 + 0x80],RCX
MOV RSI,R14
ADD RSI,0x10
MOV RDI,R15
MOV qword ptr [RSP + 0x18],RSI
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV R8,R13
MOV R9,R12
PUSH RAX
PUSH RBP
CALL 0x00110b57
POP RCX
POP RDX
TEST EAX,EAX
JZ 0x0011081d
MOV dword ptr [R14 + 0x8],0x5
JMP 0x00110860
LAB_0011081d:
MOV R13,qword ptr [RSP + 0x8]
MOV R12,qword ptr [RSP + 0x10]
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00142542
CMP EDX,0x6
JZ 0x00110860
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,RAX
CALL 0x0011ccb2
PUSH 0x39
POP RCX
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
CALL 0x00136142
MOV qword ptr [RSP + 0x20],RAX
CMP EDX,0x6
JNZ 0x00110871
LAB_00110860:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
CALL 0x00152003
JMP 0x001107b7
LAB_00110871:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [R14],RAX
MOV qword ptr [RAX + 0x30],R14
MOV RBX,RDX
JMP 0x001107b9
|
int1 [16]
js_async_generator_function_call
(long param_1,int8 param_2,int8 param_3,int8 param_4,int8 param_5,
int4 param_6,int8 param_7)
{
int iVar1;
long *plVar2;
int1 auVar3 [12];
int1 auVar4 [16];
plVar2 = (long *)js_mallocz(param_1,0x88);
if (plVar2 != (long *)0x0) {
*(int4 *)(plVar2 + 1) = 0;
plVar2[0xf] = (long)(plVar2 + 0xf);
plVar2[0x10] = (long)(plVar2 + 0xf);
iVar1 = async_func_init(param_1,plVar2 + 2,param_2,param_3,param_4,param_5);
if (iVar1 == 0) {
auVar3 = async_func_resume(param_1,plVar2 + 2,param_7,param_6);
if (auVar3._8_4_ != 6) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar3._0_8_);
auVar4 = js_create_from_ctor(param_1,param_2,param_3,0x39);
if (auVar4._8_4_ != 6) {
*plVar2 = auVar4._0_8_;
*(long **)(auVar4._0_8_ + 0x30) = plVar2;
return auVar4;
}
}
}
else {
*(int4 *)(plVar2 + 1) = 5;
}
js_async_generator_free(*(int8 *)(param_1 + 0x18),plVar2);
}
return ZEXT816(6) << 0x40;
}
| |
20,933 | js_async_generator_function_call | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_function_call(JSContext *ctx, JSValue func_obj,
JSValue this_obj,
int argc, JSValue *argv,
int flags)
{
JSValue obj, func_ret;
JSAsyncGeneratorData *s;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
return JS_EXCEPTION;
s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_START;
init_list_head(&s->queue);
if (async_func_init(ctx, &s->func_state, func_obj, this_obj, argc, argv)) {
s->state = JS_ASYNC_GENERATOR_STATE_COMPLETED;
goto fail;
}
/* execute the function up to 'OP_initial_yield' (no yield nor
await are possible) */
func_ret = async_func_resume(ctx, &s->func_state);
if (JS_IsException(func_ret))
goto fail;
JS_FreeValue(ctx, func_ret);
obj = js_create_from_ctor(ctx, func_obj, JS_CLASS_ASYNC_GENERATOR);
if (JS_IsException(obj))
goto fail;
s->generator = JS_VALUE_GET_OBJ(obj);
JS_SetOpaqueInternal(obj, s);
return obj;
fail:
js_async_generator_free(ctx->rt, s);
return JS_EXCEPTION;
} | O3 | c | js_async_generator_function_call:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %r15
movl $0x88, %esi
callq 0xedb6
pushq $0x6
popq %rdx
testq %rax, %rax
jne 0x10ab4
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x50(%rsp), %rax
andl $0x0, 0x8(%r14)
leaq 0x78(%r14), %rcx
movq %rcx, 0x78(%r14)
movq %rcx, 0x80(%r14)
movq %r14, %rsi
addq $0x10, %rsi
movq %r15, %rdi
movq %rsi, 0x10(%rsp)
movq %rbx, %rdx
movq 0x8(%rsp), %rcx
movq %r13, %r8
movq %r12, %r9
pushq %rax
pushq %rbp
callq 0x10ed6
popq %rcx
popq %rdx
testl %eax, %eax
je 0x10b04
movl $0x5, 0x8(%r14)
jmp 0x10b51
movq %rbx, %r12
movq 0x8(%rsp), %rbx
movq %r15, %rdi
movq 0x10(%rsp), %rsi
callq 0x44186
cmpl $0x6, %edx
je 0x10b51
cmpl $-0x9, %edx
jb 0x10b3b
movq 0x18(%r15), %rdi
movl (%rax), %ecx
leal -0x1(%rcx), %esi
movl %esi, (%rax)
cmpl $0x1, %ecx
jg 0x10b3b
movq %rax, %rsi
callq 0x20d90
pushq $0x39
popq %rcx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x373f3
cmpl $0x6, %edx
jne 0x10b67
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0x54a4d
xorl %eax, %eax
pushq $0x6
popq %rdx
jmp 0x10aa5
movq %rax, (%r14)
movq %r14, 0x30(%rax)
jmp 0x10aa5
| js_async_generator_function_call:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov ebp, r9d
mov r12, r8
mov r13, rcx
mov [rsp+48h+var_40], rdx
mov rbx, rsi
mov r15, rdi
mov esi, 88h
call js_mallocz
push 6
pop rdx
test rax, rax
jnz short loc_10AB4
xor eax, eax
loc_10AA5:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_10AB4:
mov r14, rax
mov rax, [rsp+48h+arg_0]
and dword ptr [r14+8], 0
lea rcx, [r14+78h]
mov [r14+78h], rcx
mov [r14+80h], rcx
mov rsi, r14
add rsi, 10h
mov rdi, r15
mov [rsp+48h+var_38], rsi
mov rdx, rbx
mov rcx, [rsp+48h+var_40]
mov r8, r13
mov r9, r12
push rax
push rbp
call async_func_init
pop rcx
pop rdx
test eax, eax
jz short loc_10B04
mov dword ptr [r14+8], 5
jmp short loc_10B51
loc_10B04:
mov r12, rbx
mov rbx, [rsp+48h+var_40]
mov rdi, r15
mov rsi, [rsp+48h+var_38]
call async_func_resume
cmp edx, 6
jz short loc_10B51
cmp edx, 0FFFFFFF7h
jb short loc_10B3B
mov rdi, [r15+18h]
mov ecx, [rax]
lea esi, [rcx-1]
mov [rax], esi
cmp ecx, 1
jg short loc_10B3B
mov rsi, rax
call js_free_value_rt
loc_10B3B:
push 39h ; '9'
pop rcx
mov rdi, r15
mov rsi, r12
mov rdx, rbx
call js_create_from_ctor
cmp edx, 6
jnz short loc_10B67
loc_10B51:
mov rdi, [r15+18h]
mov rsi, r14
call js_async_generator_free
xor eax, eax
push 6
pop rdx
jmp loc_10AA5
loc_10B67:
mov [r14], rax
mov [rax+30h], r14
jmp loc_10AA5
| long long js_async_generator_function_call(
long long a1,
long long a2,
long long a3,
int a4,
int a5,
int a6,
long long a7)
{
long long v11; // rax
long long result; // rax
long long v13; // r14
int v14; // eax
long long v15; // rdx
_DWORD *v16; // rax
long long v17; // rdi
int v18; // ecx
long long v19; // [rsp-8h] [rbp-50h]
long long v21; // [rsp+10h] [rbp-38h]
v11 = js_mallocz(a1, 0x88uLL);
if ( !v11 )
return 0LL;
v13 = v11;
*(_DWORD *)(v11 + 8) = 0;
*(_QWORD *)(v11 + 120) = v11 + 120;
*(_QWORD *)(v11 + 128) = v11 + 120;
v21 = v11 + 16;
v14 = async_func_init(a1, (int)v11 + 16, a2, a3, a4, a5, a6, a7);
v15 = v19;
if ( v14 )
{
*(_DWORD *)(v13 + 8) = 5;
LABEL_10:
js_async_generator_free(*(_QWORD *)(a1 + 24), v13, v15);
return 0LL;
}
v16 = (_DWORD *)async_func_resume(a1, v21, v19);
if ( (_DWORD)v15 == 6 )
goto LABEL_10;
if ( (unsigned int)v15 >= 0xFFFFFFF7 )
{
v17 = *(_QWORD *)(a1 + 24);
v18 = (*v16)--;
if ( v18 <= 1 )
js_free_value_rt(v17, v16);
}
result = js_create_from_ctor(a1, a2, a3, 57LL);
if ( (_DWORD)v15 == 6 )
goto LABEL_10;
*(_QWORD *)v13 = result;
*(_QWORD *)(result + 48) = v13;
return result;
}
| js_async_generator_function_call:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV EBP,R9D
MOV R12,R8
MOV R13,RCX
MOV qword ptr [RSP + 0x8],RDX
MOV RBX,RSI
MOV R15,RDI
MOV ESI,0x88
CALL 0x0010edb6
PUSH 0x6
POP RDX
TEST RAX,RAX
JNZ 0x00110ab4
XOR EAX,EAX
LAB_00110aa5:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00110ab4:
MOV R14,RAX
MOV RAX,qword ptr [RSP + 0x50]
AND dword ptr [R14 + 0x8],0x0
LEA RCX,[R14 + 0x78]
MOV qword ptr [R14 + 0x78],RCX
MOV qword ptr [R14 + 0x80],RCX
MOV RSI,R14
ADD RSI,0x10
MOV RDI,R15
MOV qword ptr [RSP + 0x10],RSI
MOV RDX,RBX
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,R13
MOV R9,R12
PUSH RAX
PUSH RBP
CALL 0x00110ed6
POP RCX
POP RDX
TEST EAX,EAX
JZ 0x00110b04
MOV dword ptr [R14 + 0x8],0x5
JMP 0x00110b51
LAB_00110b04:
MOV R12,RBX
MOV RBX,qword ptr [RSP + 0x8]
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x00144186
CMP EDX,0x6
JZ 0x00110b51
CMP EDX,-0x9
JC 0x00110b3b
MOV RDI,qword ptr [R15 + 0x18]
MOV ECX,dword ptr [RAX]
LEA ESI,[RCX + -0x1]
MOV dword ptr [RAX],ESI
CMP ECX,0x1
JG 0x00110b3b
MOV RSI,RAX
CALL 0x00120d90
LAB_00110b3b:
PUSH 0x39
POP RCX
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBX
CALL 0x001373f3
CMP EDX,0x6
JNZ 0x00110b67
LAB_00110b51:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
CALL 0x00154a4d
XOR EAX,EAX
PUSH 0x6
POP RDX
JMP 0x00110aa5
LAB_00110b67:
MOV qword ptr [R14],RAX
MOV qword ptr [RAX + 0x30],R14
JMP 0x00110aa5
|
long js_async_generator_function_call
(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int4 param_6,int8 param_7)
{
int8 uVar1;
int iVar2;
long *plVar3;
int *piVar4;
long lVar5;
int1 auVar6 [12];
plVar3 = (long *)js_mallocz(param_1,0x88);
if (plVar3 != (long *)0x0) {
*(int4 *)(plVar3 + 1) = 0;
plVar3[0xf] = (long)(plVar3 + 0xf);
plVar3[0x10] = (long)(plVar3 + 0xf);
iVar2 = async_func_init(param_1,plVar3 + 2,param_2,param_3,param_4,param_5);
if (iVar2 == 0) {
auVar6 = async_func_resume(param_1,plVar3 + 2,param_7,param_6);
piVar4 = auVar6._0_8_;
if (auVar6._8_4_ != 6) {
if (0xfffffff6 < auVar6._8_4_) {
uVar1 = *(int8 *)(param_1 + 0x18);
iVar2 = *piVar4;
*piVar4 = iVar2 + -1;
if (iVar2 < 2) {
js_free_value_rt(uVar1,piVar4);
}
}
auVar6 = js_create_from_ctor(param_1,param_2,param_3,0x39);
lVar5 = auVar6._0_8_;
if (auVar6._8_4_ != 6) {
*plVar3 = lVar5;
*(long **)(lVar5 + 0x30) = plVar3;
return lVar5;
}
}
}
else {
*(int4 *)(plVar3 + 1) = 5;
}
js_async_generator_free(*(int8 *)(param_1 + 0x18),plVar3);
}
return 0;
}
| |
20,934 | 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;
} | O3 | 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 0x9845f
cmpq $0x0, 0x30(%r15)
je 0x9847d
movq %rdx, %r14
movq %rdi, %rbx
movq %rsp, %r12
movq %r12, %rdi
callq 0x865fc
movq %r12, %rdi
callq 0x867fa
movl %eax, %ebp
leaq 0x40(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58f20
movq %r12, %rdi
callq 0x5e40e
movq -0x8(%r12), %rdi
testq %rdi, %rdi
je 0x9839e
callq 0x6de32
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x983ad
callq 0x6de32
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x983bc
callq 0x6de32
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x983f2
movq 0x93bbb(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x983dd
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x983e7
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x983f2
movq (%rdi), %rax
callq *0x18(%rax)
testb %bpl, %bpl
je 0x983fd
movq 0x30(%r15), %rsi
jmp 0x98406
movq 0x40(%r15), %rsi
testq %rsi, %rsi
je 0x98421
movq %rbx, %rdi
movq %r14, %rdx
callq 0x865fc
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rbx), %r14
movq $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb $0x0, 0x40(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x58f20
movq %r14, %rdi
movl $0x1, %esi
callq 0x58f20
jmp 0x98411
movl $0x10, %edi
callq 0x1a450
movq %rax, %r14
leaq 0x58667(%rip), %rsi # 0xf0ada
movq %rax, %rdi
callq 0x1a330
jmp 0x98499
movl $0x10, %edi
callq 0x1a450
movq %rax, %r14
leaq 0x58662(%rip), %rsi # 0xf0af3
movq %rax, %rdi
callq 0x1a330
movq 0x93b50(%rip), %rsi # 0x12bff0
movq 0x93ab9(%rip), %rdx # 0x12bf60
movq %r14, %rdi
callq 0x1af10
jmp 0x984b1
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a690
jmp 0x984c9
movq %rax, %rbx
movq %rsp, %rdi
callq 0x868ee
movq %rbx, %rdi
callq 0x1af90
nop
| _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 loc_9845F
cmp qword ptr [r15+30h], 0
jz loc_9847D
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
lea r12, [rsp+78h+var_38]
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r12-8]
test rdi, rdi
jz short loc_9839E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9839E:
mov rdi, [rsp+78h+var_50]
test rdi, rdi
jz short loc_983AD
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_983AD:
mov rdi, [rsp+78h+var_60]
test rdi, rdi
jz short loc_983BC
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_983BC:
mov rdi, [rsp+78h+var_70]
test rdi, rdi
jz short loc_983F2
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_983DD
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_983E7
loc_983DD:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_983E7:
cmp eax, 1
jnz short loc_983F2
mov rax, [rdi]
call qword ptr [rax+18h]
loc_983F2:
test bpl, bpl
jz short loc_983FD
mov rsi, [r15+30h]
jmp short loc_98406
loc_983FD:
mov rsi, [r15+40h]
test rsi, rsi
jz short loc_98421
loc_98406:
mov rdi, rbx
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
loc_98411:
mov rax, rbx
add rsp, 50h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_98421:
lea r14, [rbx+40h]
mov qword ptr [rbx+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+30h], xmm0
mov byte ptr [rbx+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp short loc_98411
loc_9845F:
mov edi, 10h; 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_98499
loc_9847D:
mov edi, 10h; 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_98499:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short $+2
loc_984B1:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_984C9
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_984C9:
mov rdi, rbx
call __Unwind_Resume
| long long minja::IfExpr::do_evaluate(long long a1, _QWORD *a2)
{
void (***v3)(void); // rsi
char v5; // bp
long long v6; // rdi
signed __int32 v7; // eax
void (***v8)(void); // rsi
std::runtime_error *exception; // r14
long long v11; // [rsp+0h] [rbp-78h] BYREF
long long v12; // [rsp+8h] [rbp-70h]
volatile signed __int32 *v13; // [rsp+18h] [rbp-60h]
volatile signed __int32 *v14; // [rsp+28h] [rbp-50h]
volatile signed __int32 *v15; // [rsp+38h] [rbp-40h]
char v16[56]; // [rsp+40h] [rbp-38h] 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_23;
}
if ( !a2[6] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "IfExpr.then_expr is null");
LABEL_23:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)&v11, v3);
v5 = minja::Value::to_bool((minja::Value *)&v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v16);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v16);
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
if ( v13 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13);
v6 = v12;
if ( v12 )
{
if ( _libc_single_threaded )
{
v7 = *(_DWORD *)(v12 + 12);
*(_DWORD *)(v12 + 12) = v7 - 1;
}
else
{
v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v12 + 12), 0xFFFFFFFF);
}
if ( v7 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL);
}
if ( v5 )
{
v8 = (void (***)(void))a2[6];
}
else
{
v8 = (void (***)(void))a2[8];
if ( !v8 )
{
*(_QWORD *)(a1 + 72) = 0LL;
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_BYTE *)(a1 + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64));
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 + 64));
return a1;
}
}
minja::Expression::evaluate(a1, v8);
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 0x0019845f
CMP qword ptr [R15 + 0x30],0x0
JZ 0x0019847d
MOV R14,RDX
MOV RBX,RDI
MOV R12,RSP
MOV RDI,R12
CALL 0x001865fc
LAB_0019836e:
MOV RDI,R12
CALL 0x001867fa
LAB_00198376:
MOV EBP,EAX
LEA R12,[RSP + 0x40]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00158f20
MOV RDI,R12
CALL 0x0015e40e
MOV RDI,qword ptr [R12 + -0x8]
TEST RDI,RDI
JZ 0x0019839e
CALL 0x0016de32
LAB_0019839e:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x001983ad
CALL 0x0016de32
LAB_001983ad:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x001983bc
CALL 0x0016de32
LAB_001983bc:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x001983f2
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x001983dd
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001983e7
LAB_001983dd:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001983e7:
CMP EAX,0x1
JNZ 0x001983f2
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001983f2:
TEST BPL,BPL
JZ 0x001983fd
MOV RSI,qword ptr [R15 + 0x30]
JMP 0x00198406
LAB_001983fd:
MOV RSI,qword ptr [R15 + 0x40]
TEST RSI,RSI
JZ 0x00198421
LAB_00198406:
MOV RDI,RBX
MOV RDX,R14
CALL 0x001865fc
LAB_00198411:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00198421:
LEA R14,[RBX + 0x40]
MOV qword ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV byte ptr [RBX + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158f20
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158f20
JMP 0x00198411
LAB_0019845f:
MOV EDI,0x10
CALL 0x0011a450
MOV R14,RAX
LAB_0019846c:
LEA RSI,[0x1f0ada]
MOV RDI,RAX
CALL 0x0011a330
LAB_0019847b:
JMP 0x00198499
LAB_0019847d:
MOV EDI,0x10
CALL 0x0011a450
MOV R14,RAX
LAB_0019848a:
LEA RSI,[0x1f0af3]
MOV RDI,RAX
CALL 0x0011a330
LAB_00198499:
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,R14
CALL 0x0011af10
|
/* minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
IfExpr * __thiscall minja::IfExpr::do_evaluate(IfExpr *this,shared_ptr *param_1)
{
int *piVar1;
char cVar2;
int iVar3;
runtime_error *this_00;
shared_ptr *psVar4;
bool bVar5;
Expression aEStack_78 [8];
long *local_70;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
data local_38 [16];
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019846c to 0019847a has its CatchHandler @ 001984b1 */
std::runtime_error::runtime_error(this_00,"IfExpr.condition is null");
}
else {
if (*(long *)(param_1 + 0x30) != 0) {
Expression::evaluate(aEStack_78,*(shared_ptr **)(param_1 + 0x20));
/* try { // try from 0019836e to 00198375 has its CatchHandler @ 001984be */
cVar2 = Value::to_bool((Value *)aEStack_78);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_38,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_38);
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
if (local_70 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_70 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_70 + 0xc);
*(int *)((long)local_70 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_70 + 0x18))();
}
}
if (cVar2 == '\0') {
psVar4 = *(shared_ptr **)(param_1 + 0x40);
if (psVar4 == (shared_ptr *)0x0) {
bVar5 = (bool)((char)this + '@');
*(int8 *)(this + 0x48) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
this[0x40] = (IfExpr)0x0;
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(bVar5);
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(bVar5);
return this;
}
}
else {
psVar4 = *(shared_ptr **)(param_1 + 0x30);
}
Expression::evaluate((Expression *)this,psVar4);
return this;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019848a to 00198498 has its CatchHandler @ 001984af */
std::runtime_error::runtime_error(this_00,"IfExpr.then_expr is null");
}
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
| |
20,935 | handler::rnd_pos_by_record(unsigned char*) | eloqsql/sql/handler.h | virtual int rnd_pos_by_record(uchar *record)
{
int error;
DBUG_ASSERT(table_flags() & HA_PRIMARY_KEY_REQUIRED_FOR_POSITION);
error = ha_rnd_init(false);
if (error != 0)
return error;
position(record);
error = ha_rnd_pos(record, ref);
ha_rnd_end();
return error;
} | O3 | c | handler::rnd_pos_by_record(unsigned char*):
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
xorl %esi, %esi
callq *0x4e0(%rax)
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
addl %ecx, %ecx
movl %ecx, 0x1b0(%rbx)
movq $0x0, 0x170(%rbx)
testl %eax, %eax
jne 0xc9d1
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x268(%rax)
movq 0x38(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x81b0
movl %eax, %r14d
movl $0x0, 0x1b0(%rbx)
movq $0x0, 0x170(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x4e8(%rax)
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
| _ZN7handler17rnd_pos_by_recordEPh:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov rax, [rdi]
xor esi, esi
call qword ptr [rax+4E0h]
xor ecx, ecx
test eax, eax
setz cl
add ecx, ecx
mov [rbx+1B0h], ecx
mov qword ptr [rbx+170h], 0
test eax, eax
jnz short loc_C9D1
mov rax, [rbx]
mov rdi, rbx
mov rsi, r14
call qword ptr [rax+268h]
mov rdx, [rbx+38h]; unsigned __int8 *
mov rdi, rbx; this
mov rsi, r14; unsigned __int8 *
call __ZN7handler10ha_rnd_posEPhS0_; handler::ha_rnd_pos(uchar *,uchar *)
mov r14d, eax
mov dword ptr [rbx+1B0h], 0
mov qword ptr [rbx+170h], 0
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+4E8h]
mov eax, r14d
loc_C9D1:
pop rbx
pop r14
pop rbp
retn
| long long handler::rnd_pos_by_record(handler *this, unsigned __int8 *a2)
{
long long result; // rax
unsigned int v3; // r14d
result = (*(long long ( **)(handler *, _QWORD))(*(_QWORD *)this + 1248LL))(this, 0LL);
*((_DWORD *)this + 108) = 2 * ((_DWORD)result == 0);
*((_QWORD *)this + 46) = 0LL;
if ( !(_DWORD)result )
{
(*(void ( **)(handler *, unsigned __int8 *))(*(_QWORD *)this + 616LL))(this, a2);
v3 = handler::ha_rnd_pos(this, a2, *((unsigned __int8 **)this + 7));
*((_DWORD *)this + 108) = 0;
*((_QWORD *)this + 46) = 0LL;
(*(void ( **)(handler *))(*(_QWORD *)this + 1256LL))(this);
return v3;
}
return result;
}
| rnd_pos_by_record:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
XOR ESI,ESI
CALL qword ptr [RAX + 0x4e0]
XOR ECX,ECX
TEST EAX,EAX
SETZ CL
ADD ECX,ECX
MOV dword ptr [RBX + 0x1b0],ECX
MOV qword ptr [RBX + 0x170],0x0
TEST EAX,EAX
JNZ 0x0010c9d1
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RAX + 0x268]
MOV RDX,qword ptr [RBX + 0x38]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001081b0
MOV R14D,EAX
MOV dword ptr [RBX + 0x1b0],0x0
MOV qword ptr [RBX + 0x170],0x0
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x4e8]
MOV EAX,R14D
LAB_0010c9d1:
POP RBX
POP R14
POP RBP
RET
|
/* handler::rnd_pos_by_record(unsigned char*) */
ulong __thiscall handler::rnd_pos_by_record(handler *this,uchar *param_1)
{
uint uVar1;
ulong uVar2;
uVar2 = (**(code **)(*(long *)this + 0x4e0))(this,0);
*(uint *)(this + 0x1b0) = (uint)((int)uVar2 == 0) * 2;
*(int8 *)(this + 0x170) = 0;
if ((int)uVar2 == 0) {
(**(code **)(*(long *)this + 0x268))(this,param_1);
uVar1 = ::handler::ha_rnd_pos((uchar *)this,param_1);
uVar2 = (ulong)uVar1;
*(int4 *)(this + 0x1b0) = 0;
*(int8 *)(this + 0x170) = 0;
(**(code **)(*(long *)this + 0x4e8))(this);
}
return uVar2;
}
| |
20,936 | mysql_set_character_set_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_set_character_set_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_set_character_set,
(parms->mysql, parms->csname),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_set_character_set_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x480(%rax), %rcx
movq 0x28(%rcx), %rbx
movq %rax, %rdi
callq 0x1a7d3
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_set_character_set_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov rsi, [rdi+8]
mov rcx, [rax+480h]
mov rbx, [rcx+28h]
mov rdi, rax
call mysql_set_character_set
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_set_character_set_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_set_character_set(*a1, a1[1]);
v1[2] = result;
*v1 = 0;
return result;
}
| mysql_set_character_set_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RCX + 0x28]
MOV RDI,RAX
CALL 0x0011a7d3
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_set_character_set_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_set_character_set(*param_1,param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
20,937 | ma_mmap_pwrite | eloqsql/storage/maria/ma_dynrec.c | size_t _ma_mmap_pwrite(MARIA_HA *info, const uchar *Buffer,
size_t Count, my_off_t offset, myf MyFlags)
{
DBUG_PRINT("info", ("maria_write with mmap %d\n", info->dfile.file));
if (info->s->lock_key_trees)
mysql_rwlock_rdlock(&info->s->mmap_lock);
/*
The following test may fail in the following cases:
- We failed to remap a memory area (fragmented memory?)
- This thread has done some writes, but not yet extended the
memory mapped area.
*/
if (info->s->mmaped_length >= offset + Count)
{
memcpy(info->s->file_map + offset, Buffer, Count);
if (info->s->lock_key_trees)
mysql_rwlock_unlock(&info->s->mmap_lock);
return 0;
}
else
{
info->s->nonmmaped_inserts++;
if (info->s->lock_key_trees)
mysql_rwlock_unlock(&info->s->mmap_lock);
return my_pwrite(info->dfile.file, Buffer, Count, offset, MyFlags);
}
} | O0 | c | ma_mmap_pwrite:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
jmp 0x4a9be
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x7e3(%rax)
je 0x4a9ed
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0xb78, %rdi # imm = 0xB78
leaq 0x108e63(%rip), %rsi # 0x153846
movl $0xbb, %edx
callq 0x4a6f0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0xa00(%rax), %rax
movq -0x28(%rbp), %rcx
addq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jb 0x4aa54
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x5f0(%rax), %rdi
addq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x290a0
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x7e3(%rax)
je 0x4aa4a
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0xb78, %rdi # imm = 0xB78
callq 0x4a760
movq $0x0, -0x8(%rbp)
jmp 0x4aab0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0xa08(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0xa08(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x7e3(%rax)
je 0x4aa8d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0xb78, %rdi # imm = 0xB78
callq 0x4a760
movq -0x10(%rbp), %rax
movl 0x480(%rax), %edi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0xf7f80
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_mmap_pwrite:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
jmp short $+2
loc_4A9BE:
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+7E3h], 0
jz short loc_4A9ED
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 0B78h
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0BBh
call inline_mysql_rwlock_rdlock_1
loc_4A9ED:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+0A00h]
mov rcx, [rbp+var_28]
add rcx, [rbp+var_20]
cmp rax, rcx
jb short loc_4AA54
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+5F0h]
add rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+7E3h], 0
jz short loc_4AA4A
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 0B78h
call inline_mysql_rwlock_unlock_2
loc_4AA4A:
mov [rbp+var_8], 0
jmp short loc_4AAB0
loc_4AA54:
mov rax, [rbp+var_10]
mov rax, [rax]
mov ecx, [rax+0A08h]
add ecx, 1
mov [rax+0A08h], ecx
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+7E3h], 0
jz short loc_4AA8D
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 0B78h
call inline_mysql_rwlock_unlock_2
loc_4AA8D:
mov rax, [rbp+var_10]
mov edi, [rax+480h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_30]
call my_pwrite
mov [rbp+var_8], rax
loc_4AAB0:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long ma_mmap_pwrite(unsigned int *a1, long long a2, long long a3, long long a4, long long a5)
{
if ( *(_BYTE *)(*(_QWORD *)a1 + 2019LL) )
inline_mysql_rwlock_rdlock_1(
*(_QWORD *)a1 + 2936LL,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_dynrec.c",
0xBBu);
if ( *(_QWORD *)(*(_QWORD *)a1 + 2560LL) < (unsigned long long)(a3 + a4) )
{
++*(_DWORD *)(*(_QWORD *)a1 + 2568LL);
if ( *(_BYTE *)(*(_QWORD *)a1 + 2019LL) )
inline_mysql_rwlock_unlock_2(*(_QWORD *)a1 + 2936LL);
return my_pwrite(a1[288], a2, a3, a4, a5);
}
else
{
memcpy(a4 + *(_QWORD *)(*(_QWORD *)a1 + 1520LL), a2, a3);
if ( *(_BYTE *)(*(_QWORD *)a1 + 2019LL) )
inline_mysql_rwlock_unlock_2(*(_QWORD *)a1 + 2936LL);
return 0LL;
}
}
| _ma_mmap_pwrite:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
JMP 0x0014a9be
LAB_0014a9be:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x7e3],0x0
JZ 0x0014a9ed
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0xb78
LEA RSI,[0x253846]
MOV EDX,0xbb
CALL 0x0014a6f0
LAB_0014a9ed:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xa00]
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,qword ptr [RBP + -0x20]
CMP RAX,RCX
JC 0x0014aa54
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x5f0]
ADD RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001290a0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x7e3],0x0
JZ 0x0014aa4a
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0xb78
CALL 0x0014a760
LAB_0014aa4a:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014aab0
LAB_0014aa54:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0xa08]
ADD ECX,0x1
MOV dword ptr [RAX + 0xa08],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x7e3],0x0
JZ 0x0014aa8d
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0xb78
CALL 0x0014a760
LAB_0014aa8d:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x480]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x001f7f80
MOV qword ptr [RBP + -0x8],RAX
LAB_0014aab0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int8
_ma_mmap_pwrite(long *param_1,void *param_2,size_t param_3,long param_4,int8 param_5)
{
int8 local_10;
if (*(char *)(*param_1 + 0x7e3) != '\0') {
inline_mysql_rwlock_rdlock
(*param_1 + 0xb78,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_dynrec.c"
,0xbb);
}
if (*(ulong *)(*param_1 + 0xa00) < param_4 + param_3) {
*(int *)(*param_1 + 0xa08) = *(int *)(*param_1 + 0xa08) + 1;
if (*(char *)(*param_1 + 0x7e3) != '\0') {
inline_mysql_rwlock_unlock(*param_1 + 0xb78);
}
local_10 = my_pwrite((int)param_1[0x90],param_2,param_3,param_4,param_5);
}
else {
memcpy((void *)(*(long *)(*param_1 + 0x5f0) + param_4),param_2,param_3);
if (*(char *)(*param_1 + 0x7e3) != '\0') {
inline_mysql_rwlock_unlock(*param_1 + 0xb78);
}
local_10 = 0;
}
return local_10;
}
| |
20,938 | js_bigint_asUintN | bluesky950520[P]quickjs/quickjs.c | static JSValue js_bigint_asUintN(JSContext *ctx,
JSValue this_val,
int argc, JSValue *argv, int asIntN)
{
uint64_t bits;
bf_t a_s, *a = &a_s, *r, mask_s, *mask = &mask_s;
JSValue res;
if (JS_ToIndex(ctx, &bits, argv[0]))
return JS_EXCEPTION;
res = JS_NewBigInt(ctx);
if (JS_IsException(res))
return JS_EXCEPTION;
a = JS_ToBigInt(ctx, &a_s, argv[1]);
if (!a) {
JS_FreeValue(ctx, res);
return JS_EXCEPTION;
}
/* XXX: optimize */
r = JS_GetBigInt(res);
bf_init(ctx->bf_ctx, mask);
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits, BF_PREC_INF, BF_RNDZ);
bf_add_si(mask, mask, -1, BF_PREC_INF, BF_RNDZ);
bf_logic_and(r, a, mask);
if (asIntN && bits != 0) {
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits - 1, BF_PREC_INF, BF_RNDZ);
if (bf_cmpu(r, mask) >= 0) {
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits, BF_PREC_INF, BF_RNDZ);
bf_sub(r, r, mask, BF_PREC_INF, BF_RNDZ);
}
}
bf_delete(mask);
JS_FreeBigInt(ctx, a, &a_s);
return JS_CompactBigInt(ctx, res);
} | O0 | c | js_bigint_asUintN:
subq $0xd8, %rsp
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rdi, 0xb0(%rsp)
movl %ecx, 0xac(%rsp)
movq %r8, 0xa0(%rsp)
movl %r9d, 0x9c(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x90(%rsp), %rsi
callq 0x3f430
cmpl $0x0, %eax
je 0xc3e2f
movl $0x0, 0xc8(%rsp)
movq $0x6, 0xd0(%rsp)
jmp 0xc4086
movq 0xb0(%rsp), %rdi
callq 0x400c0
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0xc3e8a
movl $0x0, 0xc8(%rsp)
movq $0x6, 0xd0(%rsp)
jmp 0xc4086
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rcx
leaq 0x68(%rsp), %rsi
callq 0x68d20
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0xc3eec
movq 0xb0(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x29f80
movl $0x0, 0xc8(%rsp)
movq $0x6, 0xd0(%rsp)
jmp 0xc4086
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x40140
movq %rax, 0x58(%rsp)
movq 0xb0(%rsp), %rax
movq 0x1d0(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0xec260
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xec390
movq 0x28(%rsp), %rdi
movq 0x90(%rsp), %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xeee00
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq $-0x1, %rdx
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0xef570
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0xf1060
cmpl $0x0, 0x9c(%rsp)
je 0xc403e
cmpq $0x0, 0x90(%rsp)
je 0xc403e
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xec390
movq 0x28(%rsp), %rdi
movq 0x90(%rsp), %rsi
subq $0x1, %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xeee00
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xed230
cmpl $0x0, %eax
jl 0xc403c
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xec390
movq 0x28(%rsp), %rdi
movq 0x90(%rsp), %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xeee00
movq 0x58(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x28(%rsp), %rdx
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0xef5f0
jmp 0xc403e
movq 0x28(%rsp), %rdi
callq 0x64c10
movq 0xb0(%rsp), %rdi
movq 0x60(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x68d90
movq 0xb0(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x77780
movq %rax, 0xc8(%rsp)
movq %rdx, 0xd0(%rsp)
movq 0xc8(%rsp), %rax
movq 0xd0(%rsp), %rdx
addq $0xd8, %rsp
retq
nop
| js_bigint_asUintN:
sub rsp, 0D8h
mov [rsp+0D8h+var_20], rsi
mov [rsp+0D8h+var_18], rdx
mov [rsp+0D8h+var_28], rdi
mov [rsp+0D8h+var_2C], ecx
mov [rsp+0D8h+var_38], r8
mov [rsp+0D8h+var_3C], r9d
lea rax, [rsp+0D8h+var_70]
mov [rsp+0D8h+var_78], rax
lea rax, [rsp+0D8h+var_A8]
mov [rsp+0D8h+var_B0], rax
mov rdi, [rsp+0D8h+var_28]
mov rax, [rsp+0D8h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+0D8h+var_48]
call JS_ToIndex
cmp eax, 0
jz short loc_C3E2F
mov dword ptr [rsp+0D8h+var_10], 0
mov [rsp+0D8h+var_8], 6
jmp loc_C4086
loc_C3E2F:
mov rdi, [rsp+0D8h+var_28]
call JS_NewBigInt
mov [rsp+0D8h+var_D0], rax
mov [rsp+0D8h+var_C8], rdx
mov rax, [rsp+0D8h+var_D0]
mov [rsp+0D8h+var_C0], rax
mov rax, [rsp+0D8h+var_C8]
mov [rsp+0D8h+var_B8], rax
mov rdi, [rsp+0D8h+var_C0]
mov rsi, [rsp+0D8h+var_B8]
call JS_IsException_1
cmp eax, 0
jz short loc_C3E8A
mov dword ptr [rsp+0D8h+var_10], 0
mov [rsp+0D8h+var_8], 6
jmp loc_C4086
loc_C3E8A:
mov rdi, [rsp+0D8h+var_28]
mov rax, [rsp+0D8h+var_38]
mov rdx, [rax+10h]
mov rcx, [rax+18h]
lea rsi, [rsp+0D8h+var_70]
call JS_ToBigInt
mov [rsp+0D8h+var_78], rax
cmp [rsp+0D8h+var_78], 0
jnz short loc_C3EEC
mov rdi, [rsp+0D8h+var_28]
mov rsi, [rsp+0D8h+var_C0]
mov rdx, [rsp+0D8h+var_B8]
call JS_FreeValue
mov dword ptr [rsp+0D8h+var_10], 0
mov [rsp+0D8h+var_8], 6
jmp loc_C4086
loc_C3EEC:
mov rdi, [rsp+0D8h+var_C0]
mov rsi, [rsp+0D8h+var_B8]
call JS_GetBigInt
mov [rsp+0D8h+var_80], rax
mov rax, [rsp+0D8h+var_28]
mov rdi, [rax+1D0h]
mov rsi, [rsp+0D8h+var_B0]
call bf_init
mov rdi, [rsp+0D8h+var_B0]
mov esi, 1
call bf_set_ui
mov rdi, [rsp+0D8h+var_B0]
mov rsi, [rsp+0D8h+var_48]
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0D8h+var_B0]
mov rsi, [rsp+0D8h+var_B0]
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_add_si
mov rdi, [rsp+0D8h+var_80]
mov rsi, [rsp+0D8h+var_78]
mov rdx, [rsp+0D8h+var_B0]
call bf_logic_and
cmp [rsp+0D8h+var_3C], 0
jz loc_C403E
cmp [rsp+0D8h+var_48], 0
jz loc_C403E
mov rdi, [rsp+0D8h+var_B0]
mov esi, 1
call bf_set_ui
mov rdi, [rsp+0D8h+var_B0]
mov rsi, [rsp+0D8h+var_48]
sub rsi, 1
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0D8h+var_80]
mov rsi, [rsp+0D8h+var_B0]
call bf_cmpu
cmp eax, 0
jl short loc_C403C
mov rdi, [rsp+0D8h+var_B0]
mov esi, 1
call bf_set_ui
mov rdi, [rsp+0D8h+var_B0]
mov rsi, [rsp+0D8h+var_48]
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0D8h+var_80]
mov rsi, [rsp+0D8h+var_80]
mov rdx, [rsp+0D8h+var_B0]
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_sub
loc_C403C:
jmp short $+2
loc_C403E:
mov rdi, [rsp+0D8h+var_B0]
call bf_delete
mov rdi, [rsp+0D8h+var_28]
mov rsi, [rsp+0D8h+var_78]
lea rdx, [rsp+0D8h+var_70]
call JS_FreeBigInt
mov rdi, [rsp+0D8h+var_28]
mov rsi, [rsp+0D8h+var_C0]
mov rdx, [rsp+0D8h+var_B8]
call JS_CompactBigInt
mov [rsp+0D8h+var_10], rax
mov [rsp+0D8h+var_8], rdx
loc_C4086:
mov rax, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_8]
add rsp, 0D8h
retn
| long long js_bigint_asUintN(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
long long v14; // rdx
long long v15; // rdx
_DWORD *v17; // [rsp+8h] [rbp-D0h]
long long v18; // [rsp+20h] [rbp-B8h]
long long v19[5]; // [rsp+30h] [rbp-A8h] BYREF
long long BigInt; // [rsp+58h] [rbp-80h]
long long *v21; // [rsp+60h] [rbp-78h]
long long v22[5]; // [rsp+68h] [rbp-70h] BYREF
unsigned long long v23; // [rsp+90h] [rbp-48h] BYREF
int v24; // [rsp+9Ch] [rbp-3Ch]
long long v25; // [rsp+A0h] [rbp-38h]
int v26; // [rsp+ACh] [rbp-2Ch]
long long v27; // [rsp+B0h] [rbp-28h]
long long v28; // [rsp+B8h] [rbp-20h]
long long v29; // [rsp+C0h] [rbp-18h]
long long v30; // [rsp+C8h] [rbp-10h]
long long v31; // [rsp+D0h] [rbp-8h]
v28 = a2;
v29 = a3;
v27 = a1;
v26 = a4;
v25 = a5;
v24 = a6;
v21 = v22;
if ( (unsigned int)JS_ToIndex(a1, &v23, *(_DWORD **)a5, *(_QWORD *)(a5 + 8), a7, a8, a9, a10, a11, a12, a13, a14) )
{
LODWORD(v30) = 0;
v31 = 6LL;
}
else
{
v17 = JS_NewBigInt(v27);
v18 = v14;
if ( JS_IsException_1((long long)v17, v14) )
{
LODWORD(v30) = 0;
v31 = 6LL;
}
else
{
v21 = (long long *)JS_ToBigInt(v27, (long long)v22, *(_DWORD **)(v25 + 16), *(_QWORD *)(v25 + 24));
if ( v21 )
{
BigInt = JS_GetBigInt((long long)v17);
bf_init(*(_QWORD *)(v27 + 464), v19);
bf_set_ui(v19, 1LL);
bf_mul_2exp(v19, v23, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_add_si(v19, v19, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_logic_and(BigInt, v21, v19);
if ( v24 )
{
if ( v23 )
{
bf_set_ui(v19, 1LL);
bf_mul_2exp(v19, v23 - 1, 0x3FFFFFFFFFFFFFFFLL, 1LL);
if ( (int)bf_cmpu(BigInt, v19) >= 0 )
{
bf_set_ui(v19, 1LL);
bf_mul_2exp(v19, v23, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_sub(BigInt, BigInt, v19, 0x3FFFFFFFFFFFFFFFLL, 1LL);
}
}
}
bf_delete(v19);
JS_FreeBigInt(v27, v21, v22);
v30 = JS_CompactBigInt(v27, (long long)v17, v18);
v31 = v15;
}
else
{
JS_FreeValue(v27, (long long)v17, v18);
LODWORD(v30) = 0;
v31 = 6LL;
}
}
}
return v30;
}
| js_bigint_asUintN:
SUB RSP,0xd8
MOV qword ptr [RSP + 0xb8],RSI
MOV qword ptr [RSP + 0xc0],RDX
MOV qword ptr [RSP + 0xb0],RDI
MOV dword ptr [RSP + 0xac],ECX
MOV qword ptr [RSP + 0xa0],R8
MOV dword ptr [RSP + 0x9c],R9D
LEA RAX,[RSP + 0x68]
MOV qword ptr [RSP + 0x60],RAX
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x90]
CALL 0x0013f430
CMP EAX,0x0
JZ 0x001c3e2f
MOV dword ptr [RSP + 0xc8],0x0
MOV qword ptr [RSP + 0xd0],0x6
JMP 0x001c4086
LAB_001c3e2f:
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x001400c0
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x001c3e8a
MOV dword ptr [RSP + 0xc8],0x0
MOV qword ptr [RSP + 0xd0],0x6
JMP 0x001c4086
LAB_001c3e8a:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x18]
LEA RSI,[RSP + 0x68]
CALL 0x00168d20
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x60],0x0
JNZ 0x001c3eec
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x00129f80
MOV dword ptr [RSP + 0xc8],0x0
MOV qword ptr [RSP + 0xd0],0x6
JMP 0x001c4086
LAB_001c3eec:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x00140140
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RDI,qword ptr [RAX + 0x1d0]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001ec260
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0x1
CALL 0x001ec390
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001eee00
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,-0x1
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x001ef570
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x001f1060
CMP dword ptr [RSP + 0x9c],0x0
JZ 0x001c403e
CMP qword ptr [RSP + 0x90],0x0
JZ 0x001c403e
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0x1
CALL 0x001ec390
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x90]
SUB RSI,0x1
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001eee00
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001ed230
CMP EAX,0x0
JL 0x001c403c
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0x1
CALL 0x001ec390
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001eee00
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x28]
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x001ef5f0
LAB_001c403c:
JMP 0x001c403e
LAB_001c403e:
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00164c10
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x60]
LEA RDX,[RSP + 0x68]
CALL 0x00168d90
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x00177780
MOV qword ptr [RSP + 0xc8],RAX
MOV qword ptr [RSP + 0xd0],RDX
LAB_001c4086:
MOV RAX,qword ptr [RSP + 0xc8]
MOV RDX,qword ptr [RSP + 0xd0]
ADD RSP,0xd8
RET
|
int1 [16]
js_bigint_asUintN(long param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5,int param_6)
{
int iVar1;
int1 auVar4 [16];
int1 local_a8 [40];
int8 local_80;
int1 *local_78;
int1 local_70 [40];
long local_48;
int local_3c;
int8 *local_38;
int4 local_2c;
long local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
int8 uVar2;
int8 uVar3;
local_78 = local_70;
local_3c = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar1 = JS_ToIndex(param_1,&local_48,*param_5,param_5[1]);
if (iVar1 == 0) {
auVar4 = JS_NewBigInt(local_28);
uVar3 = auVar4._8_8_;
uVar2 = auVar4._0_8_;
iVar1 = JS_IsException(uVar2,uVar3);
if (iVar1 == 0) {
local_78 = (int1 *)JS_ToBigInt(local_28,local_70,local_38[2],local_38[3]);
if (local_78 == (int1 *)0x0) {
JS_FreeValue(local_28,uVar2,uVar3);
local_10 = 0;
local_8 = 6;
}
else {
local_80 = JS_GetBigInt(uVar2,uVar3);
bf_init(*(int8 *)(local_28 + 0x1d0),local_a8);
bf_set_ui(local_a8,1);
bf_mul_2exp(local_a8,local_48,0x3fffffffffffffff,1);
bf_add_si(local_a8,local_a8,0xffffffffffffffff,0x3fffffffffffffff,1);
bf_logic_and(local_80,local_78,local_a8);
if ((local_3c != 0) && (local_48 != 0)) {
bf_set_ui(local_a8,1);
bf_mul_2exp(local_a8,local_48 + -1,0x3fffffffffffffff,1);
iVar1 = bf_cmpu(local_80,local_a8);
if (-1 < iVar1) {
bf_set_ui(local_a8,1);
bf_mul_2exp(local_a8,local_48,0x3fffffffffffffff,1);
bf_sub(local_80,local_80,local_a8,0x3fffffffffffffff,1);
}
}
bf_delete(local_a8);
JS_FreeBigInt(local_28,local_78,local_70);
auVar4 = JS_CompactBigInt(local_28,uVar2,uVar3);
local_8 = auVar4._8_8_;
local_10 = auVar4._0_4_;
uStack_c = auVar4._4_4_;
}
}
else {
local_10 = 0;
local_8 = 6;
}
}
else {
local_10 = 0;
local_8 = 6;
}
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
| |
20,939 | js_bigint_asUintN | bluesky950520[P]quickjs/quickjs.c | static JSValue js_bigint_asUintN(JSContext *ctx,
JSValue this_val,
int argc, JSValue *argv, int asIntN)
{
uint64_t bits;
bf_t a_s, *a = &a_s, *r, mask_s, *mask = &mask_s;
JSValue res;
if (JS_ToIndex(ctx, &bits, argv[0]))
return JS_EXCEPTION;
res = JS_NewBigInt(ctx);
if (JS_IsException(res))
return JS_EXCEPTION;
a = JS_ToBigInt(ctx, &a_s, argv[1]);
if (!a) {
JS_FreeValue(ctx, res);
return JS_EXCEPTION;
}
/* XXX: optimize */
r = JS_GetBigInt(res);
bf_init(ctx->bf_ctx, mask);
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits, BF_PREC_INF, BF_RNDZ);
bf_add_si(mask, mask, -1, BF_PREC_INF, BF_RNDZ);
bf_logic_and(r, a, mask);
if (asIntN && bits != 0) {
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits - 1, BF_PREC_INF, BF_RNDZ);
if (bf_cmpu(r, mask) >= 0) {
bf_set_ui(mask, 1);
bf_mul_2exp(mask, bits, BF_PREC_INF, BF_RNDZ);
bf_sub(r, r, mask, BF_PREC_INF, BF_RNDZ);
}
}
bf_delete(mask);
JS_FreeBigInt(ctx, a, &a_s);
return JS_CompactBigInt(ctx, res);
} | O1 | c | js_bigint_asUintN:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rdi, %r15
movq (%r8), %rdx
movq 0x8(%r8), %rcx
leaq 0x20(%rsp), %rsi
callq 0x2bacb
testl %eax, %eax
je 0x73a86
xorl %eax, %eax
xorl %ecx, %ecx
movl $0x6, %ebx
orq %rcx, %rax
movq %rbx, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x10169
movq %rdx, %rbx
cmpl $0x6, %ebx
je 0x73a68
movq %rax, %r14
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
movq %rdx, 0x50(%rsp)
cmpl $-0x9, %ecx
jb 0x73ab4
movq 0x50(%rsp), %rax
incl (%rax)
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x424b7
testq %rax, %rax
je 0x73c50
movq %r14, 0x10(%rsp)
leaq 0x8(%r14), %rcx
movq %rcx, 0x8(%rsp)
movq 0x1d0(%r15), %rdi
leaq 0x28(%rsp), %r12
movq %rax, %r13
movq %r12, %rsi
callq 0x88aac
movl $0x1, %esi
movq %r12, %rdi
callq 0x88b17
movq 0x20(%rsp), %r14
movq %r12, %rdi
movq %r14, %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0x8aaab
movq %r12, %rdi
movq %r12, %rsi
movq $-0x1, %rdx
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0x8afbc
movq 0x8(%rsp), %rdi
movq %r13, 0x18(%rsp)
movq %r13, %rsi
movq %r12, %rdx
callq 0x8c540
testl %ebp, %ebp
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x73beb
leaq 0x28(%rsp), %r12
movl $0x1, %esi
movq %r12, %rdi
callq 0x88b17
leaq -0x1(%r14), %rsi
movq %r12, %rdi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0x8aaab
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x89486
testl %eax, %eax
js 0x73beb
leaq 0x28(%rsp), %r12
movl $0x1, %esi
movq %r12, %rdi
callq 0x88b17
movq %r12, %rdi
movq %r14, %rsi
movabsq $0x3fffffffffffffff, %r14 # imm = 0x3FFFFFFFFFFFFFFF
movq %r14, %rdx
movl $0x1, %ecx
callq 0x8aaab
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x8b056
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x73c07
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0x73c07
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
leaq 0x50(%rsp), %rdx
movq %r15, %rdi
movq 0x18(%rsp), %rsi
callq 0x42473
cmpq $-0x9, %rbx
movq 0x10(%rsp), %rdx
jne 0x73c39
xorl %eax, %eax
cmpq 0x18(%rdx), %rax
jno 0x73c39
cmpl $0x0, 0x10(%rdx)
je 0x73c39
movl $0x0, 0x10(%rdx)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %rdx, %rcx
andq %rax, %rcx
movl %edx, %eax
jmp 0x73a71
movq 0x18(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x21922
jmp 0x73a68
| js_bigint_asUintN:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov ebp, r9d
mov r12, r8
mov r15, rdi
mov rdx, [r8]
mov rcx, [r8+8]
lea rsi, [rsp+0A8h+var_88]
call JS_ToIndex
test eax, eax
jz short loc_73A86
loc_73A68:
xor eax, eax
xor ecx, ecx
mov ebx, 6
loc_73A71:
or rax, rcx
mov rdx, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_73A86:
mov rdi, r15
call JS_NewBigInt
mov rbx, rdx
cmp ebx, 6
jz short loc_73A68
mov r14, rax
mov rdx, [r12+10h]
mov rcx, [r12+18h]
mov [rsp+0A8h+var_58], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_73AB4
mov rax, [rsp+0A8h+var_58]
inc dword ptr [rax]
loc_73AB4:
lea rsi, [rsp+0A8h+var_58]
mov rdi, r15
call JS_ToBigIntFree
test rax, rax
jz loc_73C50
mov [rsp+0A8h+var_98], r14
lea rcx, [r14+8]
mov [rsp+0A8h+var_A0], rcx
mov rdi, [r15+1D0h]
lea r12, [rsp+0A8h+var_80]
mov r13, rax
mov rsi, r12
call bf_init
mov esi, 1
mov rdi, r12
call bf_set_ui
mov r14, [rsp+0A8h+var_88]
mov rdi, r12
mov rsi, r14
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, r12
mov rsi, r12
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_add_si
mov rdi, [rsp+0A8h+var_A0]
mov [rsp+0A8h+var_90], r13
mov rsi, r13
mov rdx, r12
call bf_logic_and
test ebp, ebp
setz al
test r14, r14
setz cl
or cl, al
jnz loc_73BEB
lea r12, [rsp+0A8h+var_80]
mov esi, 1
mov rdi, r12
call bf_set_ui
lea rsi, [r14-1]
mov rdi, r12
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0A8h+var_A0]
mov rsi, r12
call bf_cmpu
test eax, eax
js short loc_73BEB
lea r12, [rsp+0A8h+var_80]
mov esi, 1
mov rdi, r12
call bf_set_ui
mov rdi, r12
mov rsi, r14
mov r14, 3FFFFFFFFFFFFFFFh
mov rdx, r14
mov ecx, 1
call bf_mul_2exp
mov rdi, [rsp+0A8h+var_A0]
mov rsi, rdi
mov rdx, r12
mov rcx, r14
mov r8d, 1
call bf_sub
loc_73BEB:
mov rax, [rsp+0A8h+var_80]
test rax, rax
jz short loc_73C07
mov rsi, [rsp+0A8h+var_60]
test rsi, rsi
jz short loc_73C07
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_73C07:
lea rdx, [rsp+0A8h+var_58]
mov rdi, r15
mov rsi, [rsp+0A8h+var_90]
call JS_FreeBigInt
cmp rbx, 0FFFFFFFFFFFFFFF7h
mov rdx, [rsp+0A8h+var_98]
jnz short loc_73C39
xor eax, eax
cmp rax, [rdx+18h]
jno short loc_73C39
cmp dword ptr [rdx+10h], 0
jz short loc_73C39
mov dword ptr [rdx+10h], 0
loc_73C39:
mov rax, 0FFFFFFFF00000000h
mov rcx, rdx
and rcx, rax
mov eax, edx
jmp loc_73A71
loc_73C50:
mov rdi, [r15+18h]
mov rsi, r14
mov rdx, rbx
call JS_FreeValueRT
jmp loc_73A68
| unsigned long long js_bigint_asUintN(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long *a13,
int a14)
{
long long v16; // rax
unsigned long long v17; // rcx
_DWORD *v19; // rax
double v20; // xmm4_8
double v21; // xmm5_8
long long v22; // rdx
long long v23; // rbx
_DWORD *v24; // r14
_DWORD *v25; // rdx
long long v26; // rcx
long long *v27; // rax
long long *v28; // r13
unsigned long long v29; // r14
long long v30; // r8
long long v31; // r9
long long v32; // rcx
_DWORD *v33; // [rsp+8h] [rbp-A0h]
unsigned long long v34; // [rsp+10h] [rbp-98h]
unsigned long long v35; // [rsp+20h] [rbp-88h] BYREF
_QWORD v36[4]; // [rsp+28h] [rbp-80h] BYREF
long long v37; // [rsp+48h] [rbp-60h]
long long v38[11]; // [rsp+50h] [rbp-58h] BYREF
if ( (unsigned int)JS_ToIndex(a1, &v35, *a13, a13[1], a2, a3, a4, a5, a6, a7, a8, a9) )
goto LABEL_2;
v19 = JS_NewBigInt(a1);
v23 = v22;
if ( (_DWORD)v22 == 6 )
goto LABEL_2;
v24 = v19;
v25 = (_DWORD *)a13[2];
v26 = a13[3];
v38[0] = (long long)v25;
if ( (unsigned int)v26 >= 0xFFFFFFF7 )
++*(_DWORD *)v38[0];
v27 = (long long *)JS_ToBigIntFree(a1, (long long)v38, v25, v26, a2, a3, a4, a5, v20, v21, a8, a9);
if ( !v27 )
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v24, v23);
LABEL_2:
v16 = 0LL;
v17 = 0LL;
return v17 | v16;
}
v34 = (unsigned long long)v24;
v33 = v24 + 2;
v28 = v27;
bf_init(*(_QWORD *)(a1 + 464), v36);
bf_set_ui(v36, 1LL);
v29 = v35;
bf_mul_2exp(v36, v35, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_add_si(v36, v36, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_logic_and(v33, v28, v36);
LOBYTE(v32) = a14 == 0 || v29 == 0;
if ( !(_BYTE)v32 )
{
bf_set_ui(v36, 1LL);
bf_mul_2exp(v36, v29 - 1, 0x3FFFFFFFFFFFFFFFLL, 1LL);
if ( (int)bf_cmpu(v33, v36) >= 0 )
{
bf_set_ui(v36, 1LL);
bf_mul_2exp(v36, v29, 0x3FFFFFFFFFFFFFFFLL, 1LL);
bf_sub(v33, v33, v36, 0x3FFFFFFFFFFFFFFFLL, 1LL);
}
}
if ( v36[0] && v37 )
(*(void ( **)(_QWORD, long long, _QWORD))(v36[0] + 8LL))(*(_QWORD *)v36[0], v37, 0LL);
JS_FreeBigInt(a1, v28, v38, v32, v30, v31);
if ( v23 == -9 && __OFSUB__(0LL, *(_QWORD *)(v34 + 24)) && *(_DWORD *)(v34 + 16) )
*(_DWORD *)(v34 + 16) = 0;
v17 = v34 & 0xFFFFFFFF00000000LL;
v16 = (unsigned int)v34;
return v17 | v16;
}
| js_bigint_asUintN:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV EBP,R9D
MOV R12,R8
MOV R15,RDI
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
LEA RSI,[RSP + 0x20]
CALL 0x0012bacb
TEST EAX,EAX
JZ 0x00173a86
LAB_00173a68:
XOR EAX,EAX
XOR ECX,ECX
MOV EBX,0x6
LAB_00173a71:
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00173a86:
MOV RDI,R15
CALL 0x00110169
MOV RBX,RDX
CMP EBX,0x6
JZ 0x00173a68
MOV R14,RAX
MOV RDX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x18]
MOV qword ptr [RSP + 0x50],RDX
CMP ECX,-0x9
JC 0x00173ab4
MOV RAX,qword ptr [RSP + 0x50]
INC dword ptr [RAX]
LAB_00173ab4:
LEA RSI,[RSP + 0x50]
MOV RDI,R15
CALL 0x001424b7
TEST RAX,RAX
JZ 0x00173c50
MOV qword ptr [RSP + 0x10],R14
LEA RCX,[R14 + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [R15 + 0x1d0]
LEA R12,[RSP + 0x28]
MOV R13,RAX
MOV RSI,R12
CALL 0x00188aac
MOV ESI,0x1
MOV RDI,R12
CALL 0x00188b17
MOV R14,qword ptr [RSP + 0x20]
MOV RDI,R12
MOV RSI,R14
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x0018aaab
MOV RDI,R12
MOV RSI,R12
MOV RDX,-0x1
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x0018afbc
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x18],R13
MOV RSI,R13
MOV RDX,R12
CALL 0x0018c540
TEST EBP,EBP
SETZ AL
TEST R14,R14
SETZ CL
OR CL,AL
JNZ 0x00173beb
LEA R12,[RSP + 0x28]
MOV ESI,0x1
MOV RDI,R12
CALL 0x00188b17
LEA RSI,[R14 + -0x1]
MOV RDI,R12
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x0018aaab
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x00189486
TEST EAX,EAX
JS 0x00173beb
LEA R12,[RSP + 0x28]
MOV ESI,0x1
MOV RDI,R12
CALL 0x00188b17
MOV RDI,R12
MOV RSI,R14
MOV R14,0x3fffffffffffffff
MOV RDX,R14
MOV ECX,0x1
CALL 0x0018aaab
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RDI
MOV RDX,R12
MOV RCX,R14
MOV R8D,0x1
CALL 0x0018b056
LAB_00173beb:
MOV RAX,qword ptr [RSP + 0x28]
TEST RAX,RAX
JZ 0x00173c07
MOV RSI,qword ptr [RSP + 0x48]
TEST RSI,RSI
JZ 0x00173c07
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_00173c07:
LEA RDX,[RSP + 0x50]
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00142473
CMP RBX,-0x9
MOV RDX,qword ptr [RSP + 0x10]
JNZ 0x00173c39
XOR EAX,EAX
CMP RAX,qword ptr [RDX + 0x18]
JNO 0x00173c39
CMP dword ptr [RDX + 0x10],0x0
JZ 0x00173c39
MOV dword ptr [RDX + 0x10],0x0
LAB_00173c39:
MOV RAX,-0x100000000
MOV RCX,RDX
AND RCX,RAX
MOV EAX,EDX
JMP 0x00173a71
LAB_00173c50:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x00121922
JMP 0x00173a68
|
/* WARNING: Removing unreachable block (ram,0x00173c2c) */
/* WARNING: Removing unreachable block (ram,0x00173c32) */
int1 [16] js_bigint_asUintN(long param_1)
{
long lVar1;
int iVar2;
ulong uVar3;
long lVar4;
ulong uVar5;
int8 uVar6;
int8 *in_R8;
int in_R9D;
int1 auVar7 [16];
long local_88;
int8 *local_80 [4];
long local_60;
int *local_58 [5];
iVar2 = JS_ToIndex(param_1,&local_88,*in_R8,in_R8[1]);
if (iVar2 == 0) {
auVar7 = JS_NewBigInt(param_1);
uVar6 = auVar7._8_8_;
uVar3 = auVar7._0_8_;
if (auVar7._8_4_ != 6) {
local_58[0] = (int *)in_R8[2];
if (0xfffffff6 < (uint)in_R8[3]) {
*local_58[0] = *local_58[0] + 1;
}
lVar4 = JS_ToBigIntFree(param_1,local_58);
if (lVar4 != 0) {
lVar1 = uVar3 + 8;
bf_init(*(int8 *)(param_1 + 0x1d0),local_80);
bf_set_ui(local_80,1);
bf_mul_2exp(local_80,local_88,0x3fffffffffffffff,1);
bf_add_si(local_80,local_80,0xffffffffffffffff,0x3fffffffffffffff,1);
bf_logic_and(lVar1,lVar4,local_80);
if (local_88 != 0 && in_R9D != 0) {
bf_set_ui(local_80,1);
bf_mul_2exp(local_80,local_88 + -1,0x3fffffffffffffff,1);
iVar2 = bf_cmpu(lVar1,local_80);
if (-1 < iVar2) {
bf_set_ui(local_80,1);
bf_mul_2exp(local_80,local_88,0x3fffffffffffffff,1);
bf_sub(lVar1,lVar1,local_80,0x3fffffffffffffff,1);
}
}
if ((local_80[0] != (int8 *)0x0) && (local_60 != 0)) {
(*(code *)local_80[0][1])(*local_80[0],local_60,0);
}
JS_FreeBigInt(param_1,lVar4,local_58);
uVar5 = uVar3 & 0xffffffff00000000;
uVar3 = uVar3 & 0xffffffff;
goto LAB_00173a71;
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar3,uVar6);
}
}
uVar3 = 0;
uVar5 = 0;
uVar6 = 6;
LAB_00173a71:
auVar7._0_8_ = uVar3 | uVar5;
auVar7._8_8_ = uVar6;
return auVar7;
}
| |
20,940 | stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int) | llama.cpp/examples/llava/../../common/stb_image.h | static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// need to generate two samples vertically for every one in input
int i;
STBI_NOTUSED(hs);
for (i=0; i < w; ++i)
out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2);
return out;
} | O3 | c | stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int):
movq %rdi, %rax
testl %ecx, %ecx
jle 0x2bc95
movl %ecx, %ecx
xorl %edi, %edi
movzbl (%rsi,%rdi), %r8d
leal (%r8,%r8,2), %r8d
movzbl (%rdx,%rdi), %r9d
addl %r9d, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, (%rax,%rdi)
incq %rdi
cmpq %rdi, %rcx
jne 0x2bc70
retq
| _ZL22stbi__resample_row_v_2PhS_S_ii:
mov rax, rdi
test ecx, ecx
jle short locret_2BC95
mov ecx, ecx
xor edi, edi
loc_2BC70:
movzx r8d, byte ptr [rsi+rdi]
lea r8d, [r8+r8*2]
movzx r9d, byte ptr [rdx+rdi]
add r8d, r9d
add r8d, 2
shr r8d, 2
mov [rax+rdi], r8b
inc rdi
cmp rcx, rdi
jnz short loc_2BC70
locret_2BC95:
retn
| unsigned __int8 * stbi__resample_row_v_2(
unsigned __int8 *a1,
unsigned __int8 *a2,
unsigned __int8 *a3,
int a4)
{
unsigned __int8 *result; // rax
long long i; // rdi
result = a1;
if ( a4 > 0 )
{
for ( i = 0LL; i != a4; ++i )
result[i] = (a3[i] + 3 * (unsigned int)a2[i] + 2) >> 2;
}
return result;
}
| stbi__resample_row_v_2:
MOV RAX,RDI
TEST ECX,ECX
JLE 0x0012bc95
MOV ECX,ECX
XOR EDI,EDI
LAB_0012bc70:
MOVZX R8D,byte ptr [RSI + RDI*0x1]
LEA R8D,[R8 + R8*0x2]
MOVZX R9D,byte ptr [RDX + RDI*0x1]
ADD R8D,R9D
ADD R8D,0x2
SHR R8D,0x2
MOV byte ptr [RAX + RDI*0x1],R8B
INC RDI
CMP RCX,RDI
JNZ 0x0012bc70
LAB_0012bc95:
RET
|
/* stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int) */
void stbi__resample_row_v_2(uchar *param_1,uchar *param_2,uchar *param_3,int param_4,int param_5)
{
ulong uVar1;
if (0 < param_4) {
uVar1 = 0;
do {
param_1[uVar1] =
(uchar)((uint)param_2[uVar1] + (uint)param_2[uVar1] * 2 + (uint)param_3[uVar1] + 2 >> 2);
uVar1 = uVar1 + 1;
} while ((uint)param_4 != uVar1);
}
return;
}
| |
20,941 | lf_hash_init | eloqsql/mysys/lf_hash.cc | void lf_hash_init(LF_HASH *hash, uint element_size, uint flags,
uint key_offset, uint key_length, my_hash_get_key get_key,
CHARSET_INFO *charset)
{
lf_alloc_init(&hash->alloc, sizeof(LF_SLIST)+element_size,
offsetof(LF_SLIST, key));
lf_dynarray_init(&hash->array, sizeof(LF_SLIST *));
hash->size= 1;
hash->count= 0;
hash->element_size= element_size;
hash->flags= flags;
hash->charset= charset ? charset : &my_charset_bin;
hash->key_offset= key_offset;
hash->key_length= key_length;
hash->get_key= get_key;
hash->initializer= default_initializer;
hash->hash_function= calc_hash;
DBUG_ASSERT(get_key ? !key_offset && !key_length : key_length);
} | O0 | cpp | lf_hash_init:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq %r9, -0x20(%rbp)
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movl -0xc(%rbp), %eax
addq $0x20, %rax
movl %eax, %esi
movl $0x8, %edx
callq 0x5dee0
movq -0x8(%rbp), %rdi
movl $0x8, %esi
callq 0x5e3e0
movq -0x8(%rbp), %rax
movl $0x1, 0xc0(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0xc4(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xb8(%rax)
movl -0x10(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xbc(%rax)
cmpq $0x0, 0x10(%rbp)
je 0x5eaa1
movq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x5eaae
leaq 0x1bb908(%rip), %rax # 0x21a3b0
movq %rax, -0x28(%rbp)
jmp 0x5eaae
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa8(%rax)
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xb0(%rax)
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xb4(%rax)
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x90(%rax)
movq -0x8(%rbp), %rax
leaq 0x2f(%rip), %rcx # 0x5eb20
movq %rcx, 0x98(%rax)
movq -0x8(%rbp), %rax
leaq 0x5d(%rip), %rcx # 0x5eb60
movq %rcx, 0xa0(%rax)
jmp 0x5eb0c
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| lf_hash_init:
push rbp
mov rbp, rsp
sub rsp, 30h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov [rbp+var_18], r8d
mov [rbp+var_20], r9
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
mov eax, [rbp+var_C]
add rax, 20h ; ' '
mov esi, eax
mov edx, 8
call lf_alloc_init
mov rdi, [rbp+var_8]
mov esi, 8
call lf_dynarray_init
mov rax, [rbp+var_8]
mov dword ptr [rax+0C0h], 1
mov rax, [rbp+var_8]
mov dword ptr [rax+0C4h], 0
mov ecx, [rbp+var_C]
mov rax, [rbp+var_8]
mov [rax+0B8h], ecx
mov ecx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+0BCh], ecx
cmp [rbp+arg_0], 0
jz short loc_5EAA1
mov rax, [rbp+arg_0]
mov [rbp+var_28], rax
jmp short loc_5EAAE
loc_5EAA1:
lea rax, my_charset_bin
mov [rbp+var_28], rax
jmp short $+2
loc_5EAAE:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+0A8h], rcx
mov ecx, [rbp+var_14]
mov rax, [rbp+var_8]
mov [rax+0B0h], ecx
mov ecx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+0B4h], ecx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_8]
mov [rax+90h], rcx
mov rax, [rbp+var_8]
lea rcx, _ZL19default_initializerP10st_lf_hashPvPKv; default_initializer(st_lf_hash *,void *,void const*)
mov [rax+98h], rcx
mov rax, [rbp+var_8]
lea rcx, _ZL9calc_hashPK15charset_info_stPKhm; calc_hash(charset_info_st const*,uchar const*,ulong)
mov [rax+0A0h], rcx
jmp short $+2
loc_5EB0C:
add rsp, 30h
pop rbp
retn
| long long lf_hash_init(long long a1, int a2, int a3, int a4, int a5, long long a6, void *a7)
{
long long result; // rax
void *v8; // [rsp+8h] [rbp-28h]
lf_alloc_init(a1 + 40, a2 + 32, 8);
lf_dynarray_init(a1, 8);
*(_DWORD *)(a1 + 192) = 1;
*(_DWORD *)(a1 + 196) = 0;
*(_DWORD *)(a1 + 184) = a2;
*(_DWORD *)(a1 + 188) = a3;
if ( a7 )
v8 = a7;
else
v8 = &my_charset_bin;
*(_QWORD *)(a1 + 168) = v8;
*(_DWORD *)(a1 + 176) = a4;
*(_DWORD *)(a1 + 180) = a5;
*(_QWORD *)(a1 + 144) = a6;
*(_QWORD *)(a1 + 152) = default_initializer;
result = a1;
*(_QWORD *)(a1 + 160) = calc_hash;
return result;
}
| lf_hash_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV dword ptr [RBP + -0x18],R8D
MOV qword ptr [RBP + -0x20],R9
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
MOV EAX,dword ptr [RBP + -0xc]
ADD RAX,0x20
MOV ESI,EAX
MOV EDX,0x8
CALL 0x0015dee0
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x8
CALL 0x0015e3e0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xc0],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xc4],0x0
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xb8],ECX
MOV ECX,dword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xbc],ECX
CMP qword ptr [RBP + 0x10],0x0
JZ 0x0015eaa1
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0015eaae
LAB_0015eaa1:
LEA RAX,[0x31a3b0]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0015eaae
LAB_0015eaae:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa8],RCX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xb0],ECX
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xb4],ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x90],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x15eb20]
MOV qword ptr [RAX + 0x98],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x15eb60]
MOV qword ptr [RAX + 0xa0],RCX
JMP 0x0015eb0c
LAB_0015eb0c:
ADD RSP,0x30
POP RBP
RET
|
void lf_hash_init(long param_1,int param_2,int4 param_3,int4 param_4,int4 param_5,
int8 param_6,int1 *param_7)
{
int1 *local_30;
lf_alloc_init(param_1 + 0x28,param_2 + 0x20,8);
lf_dynarray_init(param_1,8);
*(int4 *)(param_1 + 0xc0) = 1;
*(int4 *)(param_1 + 0xc4) = 0;
*(int *)(param_1 + 0xb8) = param_2;
*(int4 *)(param_1 + 0xbc) = param_3;
if (param_7 == (int1 *)0x0) {
local_30 = my_charset_bin;
}
else {
local_30 = param_7;
}
*(int1 **)(param_1 + 0xa8) = local_30;
*(int4 *)(param_1 + 0xb0) = param_4;
*(int4 *)(param_1 + 0xb4) = param_5;
*(int8 *)(param_1 + 0x90) = param_6;
*(code **)(param_1 + 0x98) = default_initializer;
*(code **)(param_1 + 0xa0) = calc_hash;
return;
}
| |
20,942 | coro::event::awaiter::await_suspend(std::__n4861::coroutine_handle<void>) | AlayaLite/build_O3/_deps/libcoro-src/src/event.cpp | auto event::awaiter::await_suspend(std::coroutine_handle<> awaiting_coroutine) noexcept -> bool
{
const void* const set_state = &m_event;
m_awaiting_coroutine = awaiting_coroutine;
// This value will update if other threads write to it via acquire.
void* old_value = m_event.m_state.load(std::memory_order::acquire);
do
{
// Resume immediately if already in the set state.
if (old_value == set_state)
{
return false;
}
m_next = static_cast<awaiter*>(old_value);
} while (!m_event.m_state.compare_exchange_weak(
old_value, this, std::memory_order::release, std::memory_order::acquire));
return true;
} | O3 | cpp | coro::event::awaiter::await_suspend(std::__n4861::coroutine_handle<void>):
movq (%rdi), %rdx
movq %rsi, 0x8(%rdi)
movq (%rdx), %rax
cmpq %rax, %rdx
je 0x5c81
movq %rax, 0x10(%rdi)
movq (%rdi), %rcx
lock
cmpxchgq %rdi, (%rcx)
sete %cl
je 0x5c83
cmpq %rax, %rdx
jne 0x5c69
jmp 0x5c83
xorl %ecx, %ecx
movl %ecx, %eax
retq
| _ZN4coro5event7awaiter13await_suspendENSt7__n486116coroutine_handleIvEE:
mov rdx, [rdi]
mov [rdi+8], rsi
mov rax, [rdx]
cmp rdx, rax
jz short loc_5C81
loc_5C69:
mov [rdi+10h], rax
mov rcx, [rdi]
lock cmpxchg [rcx], rdi
setz cl
jz short loc_5C83
cmp rdx, rax
jnz short loc_5C69
jmp short loc_5C83
loc_5C81:
xor ecx, ecx
loc_5C83:
mov eax, ecx
retn
| long long coro::event::awaiter::await_suspend(signed long long a1, long long a2)
{
signed long long *v2; // rdx
signed long long v3; // rax
signed long long v4; // rtt
signed long long *v5; // rcx
v2 = *(signed long long **)a1;
*(_QWORD *)(a1 + 8) = a2;
v3 = *v2;
if ( v2 == (signed long long *)*v2 )
{
LODWORD(v5) = 0;
}
else
{
do
{
*(_QWORD *)(a1 + 16) = v3;
v5 = *(signed long long **)a1;
v4 = v3;
v3 = _InterlockedCompareExchange64(*(volatile signed long long **)a1, a1, v3);
LOBYTE(v5) = v4 == v3;
}
while ( v4 != v3 && v2 != (signed long long *)v3 );
}
return (unsigned int)v5;
}
| await_suspend:
MOV RDX,qword ptr [RDI]
MOV qword ptr [RDI + 0x8],RSI
MOV RAX,qword ptr [RDX]
CMP RDX,RAX
JZ 0x00105c81
LAB_00105c69:
MOV qword ptr [RDI + 0x10],RAX
MOV RCX,qword ptr [RDI]
CMPXCHG.LOCK qword ptr [RCX],RDI
SETZ CL
JZ 0x00105c83
CMP RDX,RAX
JNZ 0x00105c69
JMP 0x00105c83
LAB_00105c81:
XOR ECX,ECX
LAB_00105c83:
MOV EAX,ECX
RET
|
/* coro::event::awaiter::await_suspend(std::__n4861::coroutine_handle<void>) */
ulong __thiscall coro::event::awaiter::await_suspend(awaiter *this,int8 param_2)
{
long *plVar1;
long *plVar2;
long *plVar3;
long *plVar4;
ulong uVar5;
bool bVar6;
plVar1 = *(long **)this;
*(int8 *)(this + 8) = param_2;
plVar3 = (long *)*plVar1;
if (plVar1 == (long *)*plVar1) {
uVar5 = 0;
}
else {
do {
*(long **)(this + 0x10) = plVar3;
plVar2 = *(long **)this;
LOCK();
plVar4 = (long *)*plVar2;
bVar6 = plVar3 == plVar4;
if (bVar6) {
*plVar2 = (long)this;
plVar4 = plVar3;
}
UNLOCK();
uVar5 = CONCAT71((int7)((ulong)plVar2 >> 8),bVar6);
} while ((!bVar6) && (plVar3 = plVar4, plVar1 != plVar4));
}
return uVar5 & 0xffffffff;
}
| |
20,943 | testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, int, char const*) | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest-filepath.cc | FilePath FilePath::MakeFileName(const FilePath& directory,
const FilePath& base_name, int number,
const char* extension) {
std::string file;
if (number == 0) {
file = base_name.string() + "." + extension;
} else {
file =
base_name.string() + "_" + StreamableToString(number) + "." + extension;
}
return ConcatPaths(directory, FilePath(file));
} | O1 | cpp | testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, int, char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r8, %r15
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, 0x44(%rsp)
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
testl %ecx, %ecx
je 0x18e5c
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xf66a
leaq 0x29946(%rip), %rsi # 0x42728
leaq 0x48(%rsp), %rdi
callq 0x9a70
leaq 0xa8(%rsp), %rdi
leaq 0x44(%rsp), %rsi
callq 0x35203
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x18e23
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x18e48
leaq 0xb8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x18e43
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x18ec4
movq 0xa8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x9170
jmp 0x18ed5
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xf66a
leaq 0x2ab0d(%rip), %rsi # 0x4398d
leaq 0x20(%rsp), %rdi
callq 0x9a70
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x9a70
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19050
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x19057
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9580
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x18ef9
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x18eff
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2aa6a(%rip), %rsi # 0x4398d
leaq 0x68(%rsp), %rdi
callq 0x9a70
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18f54
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x18f5b
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rsi
callq 0x9a70
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18fa5
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x18fad
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rsp, %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0x9670
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x18fec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x19003
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1901e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1903f
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x190ad
movq 0x58(%rsp), %rsi
jmp 0x190a5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rsp, %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0x9670
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x19096
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x190ad
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xf66a
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x1910d
xorl %esi, %esi
movq %rax, %rcx
movb (%rax,%rsi), %dil
cmpb $0x2f, %dil
jne 0x190fd
movb $0x2f, %dil
cmpq (%rsp), %rcx
je 0x190fd
cmpb $0x2f, -0x1(%rcx)
je 0x19103
movb %dil, (%rcx)
incq %rcx
incq %rsi
cmpq %rsi, %rdx
jne 0x190e4
jmp 0x19110
movq %rax, %rcx
movq %rsp, %rdx
movq %rcx, %rax
subq (%rdx), %rax
movq %rax, 0x8(%rdx)
movb $0x0, (%rcx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19262
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x19141
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x19166
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1917d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x19235
movq 0x30(%rsp), %rsi
jmp 0x19228
jmp 0x19232
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x191bc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x191bc
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x191dc
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x191dc
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19204
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x19204
jmp 0x19201
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x19235
movq 0x58(%rsp), %rsi
jmp 0x19228
jmp 0x19232
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x19235
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x19235
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x1925a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rdi
callq 0x99a0
| _ZN7testing8internal8FilePath12MakeFileNameERKS1_S3_iPKc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov r15, r8
mov r14, rsi
mov rbx, rdi
mov [rsp+0F8h+var_B4], ecx
lea rax, [rsp+0F8h+var_60]
mov [rax-10h], rax
mov qword ptr [rax-8], 0
mov byte ptr [rax], 0
test ecx, ecx
jz loc_18E5C
lea r12, [rsp+0F8h+var_A0]
mov [r12-10h], r12
mov rsi, [rdx]
mov rdx, [rdx+8]
add rdx, rsi
lea rdi, [rsp+0F8h+var_B0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aIsValid+8; "_"
lea rdi, [rsp+0F8h+var_B0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+0F8h+var_50]
lea rsi, [rsp+0F8h+var_B4]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
mov rcx, [rsp+0F8h+var_B0]
mov r8, [rsp+0F8h+var_A8]
mov rdx, [rsp+0F8h+var_48]
lea rax, [rdx+r8]
mov esi, 0Fh
cmp rcx, r12
jz short loc_18E23
mov rsi, [rsp+0F8h+var_A0]
loc_18E23:
cmp rax, rsi
jbe short loc_18E48
lea rdi, [rsp+0F8h+var_40]
mov esi, 0Fh
cmp [rdi-10h], rdi
jz short loc_18E43
mov rsi, [rsp+0F8h+var_40]
loc_18E43:
cmp rax, rsi
jbe short loc_18EC4
loc_18E48:
mov rsi, [rsp+0F8h+var_50]
lea rdi, [rsp+0F8h+var_B0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_18ED5
loc_18E5C:
lea r13, [rsp+0F8h+var_C8]
mov [r13-10h], r13
mov rsi, [rdx]
mov rdx, [rdx+8]
add rdx, rsi
lea rdi, [rsp+0F8h+var_D8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, asc_4398C+1; "."
lea rdi, [rsp+0F8h+var_D8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+0F8h+var_D8]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rbp, [rsp+0F8h+var_E8]
mov [rbp-10h], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz loc_19050
mov [rsp+0F8h+var_F8], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_E8], rdx
jmp loc_19057
loc_18EC4:
lea rdi, [rsp+0F8h+var_50]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_18ED5:
lea rdx, [rsp+0F8h+var_80]
mov [rdx-10h], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_18EF9
mov [rsp+0F8h+var_90], rsi
mov rdx, [rcx]
mov [rsp+0F8h+var_80], rdx
jmp short loc_18EFF
loc_18EF9:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_18EFF:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+0F8h+var_88], rsi
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
lea rsi, asc_4398C+1; "."
lea rdi, [rsp+0F8h+var_90]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rbp, [rsp+0F8h+var_C8]
mov [rbp-10h], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_18F54
mov [rsp+0F8h+var_D8], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_C8], rdx
jmp short loc_18F5B
loc_18F54:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_18F5B:
mov rdx, [rax+8]
lea rdi, [rsp+0F8h+var_D8]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r13, [rsp+0F8h+var_E8]
mov [r13-10h], r13
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_18FA5
mov [rsp+0F8h+var_F8], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_E8], rdx
jmp short loc_18FAD
loc_18FA5:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
loc_18FAD:
mov rdx, [rax+8]
mov r15, rsp
mov [r15+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rsp+0F8h+var_70]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r15]; void *
cmp rdi, r13
jz short loc_18FEC
mov rsi, [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_18FEC:
mov rdi, [rsp+0F8h+var_D8]; void *
cmp rdi, rbp
jz short loc_19003
mov rsi, [rsp+0F8h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19003:
lea rax, [rsp+0F8h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1901E
mov rsi, [rsp+0F8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1901E:
lea rax, [rsp+0F8h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1903F
mov rsi, [rsp+0F8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1903F:
mov rdi, [rsp+0F8h+var_B0]
cmp rdi, r12
jz short loc_190AD
mov rsi, [rsp+0F8h+var_A0]
jmp short loc_190A5
loc_19050:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_19057:
mov rdx, [rax+8]
mov r15, rsp
mov [r15+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rsp+0F8h+var_70]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r15]; void *
cmp rdi, rbp
jz short loc_19096
mov rsi, [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19096:
mov rdi, [rsp+0F8h+var_D8]; void *
cmp rdi, r13
jz short loc_190AD
mov rsi, [rsp+0F8h+var_C8]
loc_190A5:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_190AD:
lea r15, [rsp+0F8h+var_E8]
mov [r15-10h], r15
mov rsi, [rsp+0F8h+var_70]
mov rdx, [rsp+0F8h+var_68]
add rdx, rsi
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, [rsp+0F8h+var_F8]
mov rdx, [rsp+0F8h+var_F0]
test rdx, rdx
jz short loc_1910D
xor esi, esi
mov rcx, rax
loc_190E4:
mov dil, [rax+rsi]
cmp dil, 2Fh ; '/'
jnz short loc_190FD
mov dil, 2Fh ; '/'
cmp rcx, [rsp+0F8h+var_F8]
jz short loc_190FD
cmp byte ptr [rcx-1], 2Fh ; '/'
jz short loc_19103
loc_190FD:
mov [rcx], dil
inc rcx
loc_19103:
inc rsi
cmp rdx, rsi
jnz short loc_190E4
jmp short loc_19110
loc_1910D:
mov rcx, rax
loc_19110:
mov rdx, rsp; testing::internal::FilePath *
mov rax, rcx
sub rax, [rdx]
mov [rdx+8], rax
mov byte ptr [rcx], 0
mov rdi, rbx; this
mov rsi, r14; testing::internal::FilePath *
call _ZN7testing8internal8FilePath11ConcatPathsERKS1_S3_; testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&,testing::internal::FilePath const&)
mov rdi, [rsp+0F8h+var_F8]; void *
cmp rdi, r15
jz short loc_19141
mov rsi, [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19141:
mov rdi, [rsp+0F8h+var_70]; void *
lea rax, [rsp+0F8h+var_60]
cmp rdi, rax
jz short loc_19166
mov rsi, [rsp+0F8h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19166:
mov rax, rbx
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_1917D:
mov rbx, rax
mov rdi, [rsp+arg_18]
cmp rdi, r13
jz loc_19235
mov rsi, [rsp+arg_28]
jmp loc_19228
jmp loc_19232
mov rbx, rax
mov rdi, [rsp+arg_18]; void *
cmp rdi, rbp
jz short loc_191BC
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_191BC
mov rbx, rax
loc_191BC:
lea rax, [rsp+arg_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_191DC
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_191DC
mov rbx, rax
loc_191DC:
lea rax, [rsp+arg_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_19204
mov rsi, [rsp+arg_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_19204
jmp short $+2
loc_19201:
mov rbx, rax
loc_19204:
mov rdi, [rsp+arg_40]
cmp rdi, r12
jz short loc_19235
mov rsi, [rsp+arg_50]
jmp short loc_19228
jmp short loc_19232
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_19235
mov rsi, [rsp+arg_8]
loc_19228:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_19235
loc_19232:
mov rbx, rax
loc_19235:
mov rdi, [rsp+arg_80]; void *
lea rax, [rsp+arg_90]
cmp rdi, rax
jz short loc_1925A
mov rsi, [rsp+arg_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1925A:
mov rdi, rbx
call __Unwind_Resume
| testing::internal::FilePath * testing::internal::FilePath::MakeFileName(
testing::internal::FilePath *this,
const testing::internal::FilePath *a2,
const testing::internal::FilePath *a3,
int a4,
const char *a5)
{
char *v8; // rax
unsigned long long v9; // rsi
unsigned long long v10; // rsi
void **v11; // rax
long long v12; // rax
__int128 *v13; // rcx
__int128 *v14; // rcx
long long v15; // rax
__int128 *v16; // rcx
long long v17; // rax
__int128 *v18; // rcx
void *v19; // rdi
long long v20; // rsi
_BYTE *v21; // rax
signed long long v22; // rdx
long long v23; // rsi
char *v24; // rcx
char v25; // di
void *v27; // [rsp+0h] [rbp-F8h] BYREF
signed long long v28; // [rsp+8h] [rbp-F0h]
__int128 v29; // [rsp+10h] [rbp-E8h] BYREF
void *v30[2]; // [rsp+20h] [rbp-D8h] BYREF
__int128 v31; // [rsp+30h] [rbp-C8h] BYREF
int v32; // [rsp+44h] [rbp-B4h] BYREF
_QWORD v33[2]; // [rsp+48h] [rbp-B0h] BYREF
_QWORD v34[2]; // [rsp+58h] [rbp-A0h] BYREF
void *v35[2]; // [rsp+68h] [rbp-90h] BYREF
__int128 v36; // [rsp+78h] [rbp-80h] BYREF
void *v37; // [rsp+88h] [rbp-70h] BYREF
long long v38; // [rsp+90h] [rbp-68h]
_QWORD v39[2]; // [rsp+98h] [rbp-60h] BYREF
void *v40[2]; // [rsp+A8h] [rbp-50h] BYREF
_QWORD v41[8]; // [rsp+B8h] [rbp-40h] BYREF
v32 = a4;
v37 = v39;
v38 = 0LL;
LOBYTE(v39[0]) = 0;
if ( a4 )
{
v33[0] = v34;
std::string::_M_construct<char *>(v33, *(_BYTE **)a3, *(_QWORD *)a3 + *((_QWORD *)a3 + 1));
std::string::append(v33, "_");
testing::internal::StreamableToString<int>(v40, &v32);
v8 = (char *)v40[1] + v33[1];
v9 = 15LL;
if ( (_QWORD *)v33[0] != v34 )
v9 = v34[0];
if ( (unsigned long long)v8 <= v9 )
goto LABEL_8;
v10 = 15LL;
if ( v40[0] != v41 )
v10 = v41[0];
if ( (unsigned long long)v8 <= v10 )
v11 = (void **)std::string::replace(v40, 0LL, 0LL);
else
LABEL_8:
v11 = (void **)std::string::_M_append(v33, v40[0]);
v35[0] = &v36;
v14 = (__int128 *)(v11 + 2);
if ( *v11 == v11 + 2 )
{
v36 = *v14;
}
else
{
v35[0] = *v11;
*(_QWORD *)&v36 = *(_QWORD *)v14;
}
v35[1] = v11[1];
*v11 = v14;
v11[1] = 0LL;
*(_BYTE *)v14 = 0;
v15 = std::string::append(v35, ".");
v30[0] = &v31;
v16 = (__int128 *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v31 = *v16;
}
else
{
v30[0] = *(void **)v15;
*(_QWORD *)&v31 = *(_QWORD *)v16;
}
v30[1] = *(void **)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
v17 = std::string::append(v30, a5);
v27 = &v29;
v18 = (__int128 *)(v17 + 16);
if ( *(_QWORD *)v17 == v17 + 16 )
{
v29 = *v18;
}
else
{
v27 = *(void **)v17;
*(_QWORD *)&v29 = *(_QWORD *)v18;
}
v28 = *(_QWORD *)(v17 + 8);
*(_QWORD *)v17 = v18;
*(_QWORD *)(v17 + 8) = 0LL;
*(_BYTE *)(v17 + 16) = 0;
std::string::operator=(&v37, &v27);
if ( v27 != &v29 )
operator delete(v27, v29 + 1);
if ( v30[0] != &v31 )
operator delete(v30[0], v31 + 1);
if ( v35[0] != &v36 )
operator delete(v35[0], v36 + 1);
if ( v40[0] != v41 )
operator delete(v40[0], v41[0] + 1LL);
v19 = (void *)v33[0];
if ( (_QWORD *)v33[0] != v34 )
{
v20 = v34[0];
LABEL_36:
operator delete(v19, v20 + 1);
}
}
else
{
v30[0] = &v31;
std::string::_M_construct<char *>(v30, *(_BYTE **)a3, *(_QWORD *)a3 + *((_QWORD *)a3 + 1));
std::string::append(v30, ".");
v12 = std::string::append(v30, a5);
v27 = &v29;
v13 = (__int128 *)(v12 + 16);
if ( *(_QWORD *)v12 == v12 + 16 )
{
v29 = *v13;
}
else
{
v27 = *(void **)v12;
*(_QWORD *)&v29 = *(_QWORD *)v13;
}
v28 = *(_QWORD *)(v12 + 8);
*(_QWORD *)v12 = v13;
*(_QWORD *)(v12 + 8) = 0LL;
*(_BYTE *)(v12 + 16) = 0;
std::string::operator=(&v37, &v27);
if ( v27 != &v29 )
operator delete(v27, v29 + 1);
v19 = v30[0];
if ( v30[0] != &v31 )
{
v20 = v31;
goto LABEL_36;
}
}
v27 = &v29;
std::string::_M_construct<char *>(&v27, v37, (long long)v37 + v38);
v21 = v27;
v22 = v28;
if ( v28 )
{
v23 = 0LL;
v24 = (char *)v27;
do
{
v25 = v21[v23];
if ( v25 != 47 || (v25 = 47, v24 == v27) || *(v24 - 1) != 47 )
*v24++ = v25;
++v23;
}
while ( v22 != v23 );
}
else
{
v24 = (char *)v27;
}
v28 = v24 - (_BYTE *)v27;
*v24 = 0;
testing::internal::FilePath::ConcatPaths(this, a2, (const testing::internal::FilePath *)&v27);
if ( v27 != &v29 )
operator delete(v27, v29 + 1);
if ( v37 != v39 )
operator delete(v37, v39[0] + 1LL);
return this;
}
| MakeFileName:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV R15,R8
MOV R14,RSI
MOV RBX,RDI
MOV dword ptr [RSP + 0x44],ECX
LEA RAX,[RSP + 0x98]
MOV qword ptr [RAX + -0x10],RAX
MOV qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
TEST ECX,ECX
JZ 0x00118e5c
LEA R12,[RSP + 0x58]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x8]
ADD RDX,RSI
LAB_00118dd1:
LEA RDI,[RSP + 0x48]
CALL 0x0010f66a
LAB_00118ddb:
LEA RSI,[0x142728]
LEA RDI,[RSP + 0x48]
CALL 0x00109a70
LAB_00118dec:
LEA RDI,[RSP + 0xa8]
LEA RSI,[RSP + 0x44]
CALL 0x00135203
MOV RCX,qword ptr [RSP + 0x48]
MOV R8,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0xb0]
LEA RAX,[RDX + R8*0x1]
MOV ESI,0xf
CMP RCX,R12
JZ 0x00118e23
MOV RSI,qword ptr [RSP + 0x58]
LAB_00118e23:
CMP RAX,RSI
JBE 0x00118e48
LEA RDI,[RSP + 0xb8]
MOV ESI,0xf
CMP qword ptr [RDI + -0x10],RDI
JZ 0x00118e43
MOV RSI,qword ptr [RSP + 0xb8]
LAB_00118e43:
CMP RAX,RSI
JBE 0x00118ec4
LAB_00118e48:
MOV RSI,qword ptr [RSP + 0xa8]
LAB_00118e50:
LEA RDI,[RSP + 0x48]
CALL 0x00109170
JMP 0x00118ed5
LAB_00118e5c:
LEA R13,[RSP + 0x30]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x8]
ADD RDX,RSI
LAB_00118e6f:
LEA RDI,[RSP + 0x20]
CALL 0x0010f66a
LAB_00118e79:
LEA RSI,[0x14398d]
LEA RDI,[RSP + 0x20]
CALL 0x00109a70
LAB_00118e8a:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
CALL 0x00109a70
LEA RBP,[RSP + 0x10]
MOV qword ptr [RBP + -0x10],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00119050
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x00119057
LAB_00118ec4:
LEA RDI,[RSP + 0xa8]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00109580
LAB_00118ed5:
LEA RDX,[RSP + 0x78]
MOV qword ptr [RDX + -0x10],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x00118ef9
MOV qword ptr [RSP + 0x68],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x78],RDX
JMP 0x00118eff
LAB_00118ef9:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_00118eff:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x70],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
LAB_00118f1c:
LEA RSI,[0x14398d]
LEA RDI,[RSP + 0x68]
CALL 0x00109a70
LEA RBP,[RSP + 0x30]
MOV qword ptr [RBP + -0x10],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00118f54
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x00118f5b
LAB_00118f54:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_00118f5b:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x20]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00118f77:
MOV RSI,R15
CALL 0x00109a70
LEA R13,[RSP + 0x10]
MOV qword ptr [R13 + -0x10],R13
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00118fa5
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x00118fad
LAB_00118fa5:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
LAB_00118fad:
MOV RDX,qword ptr [RAX + 0x8]
MOV R15,RSP
MOV qword ptr [R15 + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RDI,[RSP + 0x88]
MOV RSI,R15
CALL 0x00109670
MOV RDI,qword ptr [R15]
CMP RDI,R13
JZ 0x00118fec
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_00118fec:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,RBP
JZ 0x00119003
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001094c0
LAB_00119003:
LEA RAX,[RSP + 0x78]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011901e
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001094c0
LAB_0011901e:
LEA RAX,[RSP + 0xb8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011903f
MOV RSI,qword ptr [RSP + 0xb8]
INC RSI
CALL 0x001094c0
LAB_0011903f:
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,R12
JZ 0x001190ad
MOV RSI,qword ptr [RSP + 0x58]
JMP 0x001190a5
LAB_00119050:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_00119057:
MOV RDX,qword ptr [RAX + 0x8]
MOV R15,RSP
MOV qword ptr [R15 + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RDI,[RSP + 0x88]
MOV RSI,R15
CALL 0x00109670
MOV RDI,qword ptr [R15]
CMP RDI,RBP
JZ 0x00119096
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_00119096:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R13
JZ 0x001190ad
MOV RSI,qword ptr [RSP + 0x30]
LAB_001190a5:
INC RSI
CALL 0x001094c0
LAB_001190ad:
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
ADD RDX,RSI
LAB_001190c9:
MOV RDI,RSP
CALL 0x0010f66a
MOV RAX,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
TEST RDX,RDX
JZ 0x0011910d
XOR ESI,ESI
MOV RCX,RAX
LAB_001190e4:
MOV DIL,byte ptr [RAX + RSI*0x1]
CMP DIL,0x2f
JNZ 0x001190fd
MOV DIL,0x2f
CMP RCX,qword ptr [RSP]
JZ 0x001190fd
CMP byte ptr [RCX + -0x1],0x2f
JZ 0x00119103
LAB_001190fd:
MOV byte ptr [RCX],DIL
INC RCX
LAB_00119103:
INC RSI
CMP RDX,RSI
JNZ 0x001190e4
JMP 0x00119110
LAB_0011910d:
MOV RCX,RAX
LAB_00119110:
MOV RDX,RSP
MOV RAX,RCX
SUB RAX,qword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOV byte ptr [RCX],0x0
LAB_00119120:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00119262
LAB_0011912b:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x00119141
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_00119141:
MOV RDI,qword ptr [RSP + 0x88]
LEA RAX,[RSP + 0x98]
CMP RDI,RAX
JZ 0x00119166
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x001094c0
LAB_00119166:
MOV RAX,RBX
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&,
testing::internal::FilePath const&, int, char const*) */
FilePath *
testing::internal::FilePath::MakeFileName
(FilePath *param_1,FilePath *param_2,int param_3,char *param_4)
{
int8 *puVar1;
long *plVar2;
long *plVar3;
int4 in_register_00000014;
ulong uVar4;
long lVar5;
char cVar6;
ulong *puVar7;
long *local_f8;
long local_f0;
long local_e8;
long lStack_e0;
ulong *local_d8;
long local_d0;
ulong local_c8;
long lStack_c0;
int local_b4;
ulong *local_b0;
long local_a8;
ulong local_a0 [2];
long *local_90;
int8 local_88;
long local_80;
int8 uStack_78;
int1 *local_70;
long local_68;
int1 local_60;
int7 uStack_5f;
ulong *local_50;
long local_48;
ulong local_40 [2];
plVar2 = (long *)CONCAT44(in_register_00000014,param_3);
local_b4 = (int)param_4;
local_70 = &local_60;
local_68 = 0;
local_60 = 0;
if (local_b4 == 0) {
/* try { // try from 00118e6f to 00118e78 has its CatchHandler @ 00119198 */
local_d8 = &local_c8;
std::__cxx11::string::_M_construct<char*>(&local_d8,*plVar2,plVar2[1] + *plVar2);
/* try { // try from 00118e79 to 00118e89 has its CatchHandler @ 0011917d */
std::__cxx11::string::append((char *)&local_d8);
/* try { // try from 00118e8a to 00118e96 has its CatchHandler @ 0011917b */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_d8);
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_e8 = *plVar3;
lStack_e0 = plVar2[3];
local_f8 = &local_e8;
}
else {
local_e8 = *plVar3;
local_f8 = (long *)*plVar2;
}
local_f0 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
std::__cxx11::string::operator=((string *)&local_70,(string *)&local_f8);
if (local_f8 != &local_e8) {
operator_delete(local_f8,local_e8 + 1);
}
local_a0[0] = local_c8;
puVar7 = local_d8;
if (local_d8 == &local_c8) goto LAB_001190ad;
}
else {
/* try { // try from 00118dd1 to 00118dda has its CatchHandler @ 00119215 */
local_b0 = local_a0;
std::__cxx11::string::_M_construct<char*>(&local_b0,*plVar2,plVar2[1] + *plVar2);
/* try { // try from 00118ddb to 00118deb has its CatchHandler @ 00119201 */
std::__cxx11::string::append((char *)&local_b0);
/* try { // try from 00118dec to 00118dfd has its CatchHandler @ 001191ff */
StreamableToString<int>((internal *)&local_50,&local_b4);
uVar4 = 0xf;
if (local_b0 != local_a0) {
uVar4 = local_a0[0];
}
if (uVar4 < (ulong)(local_48 + local_a8)) {
uVar4 = 0xf;
if (local_50 != local_40) {
uVar4 = local_40[0];
}
if (uVar4 < (ulong)(local_48 + local_a8)) goto LAB_00118e48;
/* try { // try from 00118ec4 to 00118ed4 has its CatchHandler @ 001191d9 */
puVar1 = (int8 *)
std::__cxx11::string::replace((ulong)&local_50,0,(char *)0x0,(ulong)local_b0);
}
else {
LAB_00118e48:
/* try { // try from 00118e50 to 00118e59 has its CatchHandler @ 001191d9 */
puVar1 = (int8 *)std::__cxx11::string::_M_append((char *)&local_b0,(ulong)local_50);
}
local_90 = &local_80;
plVar2 = puVar1 + 2;
if ((long *)*puVar1 == plVar2) {
local_80 = *plVar2;
uStack_78 = puVar1[3];
}
else {
local_80 = *plVar2;
local_90 = (long *)*puVar1;
}
local_88 = puVar1[1];
*puVar1 = plVar2;
puVar1[1] = 0;
*(int1 *)plVar2 = 0;
/* try { // try from 00118f1c to 00118f2c has its CatchHandler @ 001191b9 */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_90);
puVar7 = (ulong *)(plVar2 + 2);
if ((ulong *)*plVar2 == puVar7) {
local_c8 = *puVar7;
lStack_c0 = plVar2[3];
local_d8 = &local_c8;
}
else {
local_c8 = *puVar7;
local_d8 = (ulong *)*plVar2;
}
local_d0 = plVar2[1];
*plVar2 = (long)puVar7;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 00118f77 to 00118f7e has its CatchHandler @ 0011919d */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_d8);
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_e8 = *plVar3;
lStack_e0 = plVar2[3];
local_f8 = &local_e8;
}
else {
local_e8 = *plVar3;
local_f8 = (long *)*plVar2;
}
local_f0 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
std::__cxx11::string::operator=((string *)&local_70,(string *)&local_f8);
if (local_f8 != &local_e8) {
operator_delete(local_f8,local_e8 + 1);
}
if (local_d8 != &local_c8) {
operator_delete(local_d8,local_c8 + 1);
}
if (local_90 != &local_80) {
operator_delete(local_90,local_80 + 1);
}
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
puVar7 = local_b0;
if (local_b0 == local_a0) goto LAB_001190ad;
}
operator_delete(puVar7,local_a0[0] + 1);
LAB_001190ad:
local_f8 = &local_e8;
/* try { // try from 001190c9 to 001190d0 has its CatchHandler @ 00119232 */
std::__cxx11::string::_M_construct<char*>(&local_f8,local_70,local_70 + local_68);
plVar2 = local_f8;
if (local_f0 != 0) {
lVar5 = 0;
do {
cVar6 = *(char *)((long)local_f8 + lVar5);
if (((cVar6 != '/') || (cVar6 = '/', plVar2 == local_f8)) ||
(*(char *)((long)plVar2 + -1) != '/')) {
*(char *)plVar2 = cVar6;
plVar2 = (long *)((long)plVar2 + 1);
}
lVar5 = lVar5 + 1;
} while (local_f0 != lVar5);
}
local_f0 = (long)plVar2 - (long)local_f8;
*(char *)plVar2 = '\0';
/* try { // try from 00119120 to 0011912a has its CatchHandler @ 00119217 */
ConcatPaths(param_1,param_2,(FilePath *)&local_f8);
if (local_f8 != &local_e8) {
operator_delete(local_f8,local_e8 + 1);
}
if (local_70 != &local_60) {
operator_delete(local_70,CONCAT71(uStack_5f,local_60) + 1);
}
return param_1;
}
| |
20,944 | nglog::StrError[abi:cxx11](int) | ng-log[P]ng-log/src/logging.cc | string StrError(int err) {
char buf[100];
int rc = posix_strerror_r(err, buf, sizeof(buf));
if ((rc < 0) || (buf[0] == '\000')) {
std::snprintf(buf, sizeof(buf), "Error number %d", err);
}
return buf;
} | O1 | cpp | nglog::StrError[abi:cxx11](int):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq %rsp, %rsi
movl $0x64, %edx
movl %ebp, %edi
callq 0xdc99
testl %eax, %eax
js 0xb201
cmpb $0x0, (%rsp)
jne 0xb219
leaq 0x17644(%rip), %rdx # 0x2284c
movq %rsp, %rdi
movl $0x64, %esi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x78b0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %rsp, %r14
movq %r14, %rdi
callq 0x71f0
leaq (%rsp,%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9436
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
| _ZN5nglog8StrErrorB5cxx11Ei:
push rbp
push r14
push rbx
sub rsp, 70h
mov ebp, esi
mov rbx, rdi
mov rsi, rsp; int
mov edx, (offset qword_60+4); char *
mov edi, ebp; this
call _ZN5nglog16posix_strerror_rEiPcm; nglog::posix_strerror_r(int,char *,ulong)
test eax, eax
js short loc_B201
cmp [rsp+88h+var_88], 0
jnz short loc_B219
loc_B201:
lea rdx, aErrorNumberD; "Error number %d"
mov rdi, rsp
mov esi, 64h ; 'd'
mov ecx, ebp
xor eax, eax
call _snprintf
loc_B219:
lea rax, [rbx+10h]
mov [rbx], rax
mov r14, rsp
mov rdi, r14
call _strlen
lea rdx, [rsp+rax+88h+var_88]
mov rdi, rbx
mov rsi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rax, rbx
add rsp, 70h
pop rbx
pop r14
pop rbp
retn
| _QWORD * nglog::StrError[abi:cxx11](_QWORD *a1, unsigned int a2, long long a3, unsigned long long a4)
{
long long v4; // rax
_BYTE v6[136]; // [rsp+0h] [rbp-88h] BYREF
if ( (int)nglog::posix_strerror_r((nglog *)a2, (int)v6, (char *)&qword_60 + 4, a4) < 0 || !v6[0] )
snprintf(v6, 100LL, "Error number %d", a2);
*a1 = a1 + 2;
v4 = strlen(v6);
std::string::_M_construct<char const*>(a1, v6, (long long)&v6[v4]);
return a1;
}
| StrError[abi:cxx11]:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV EBP,ESI
MOV RBX,RDI
MOV RSI,RSP
MOV EDX,0x64
MOV EDI,EBP
CALL 0x0010dc99
TEST EAX,EAX
JS 0x0010b201
CMP byte ptr [RSP],0x0
JNZ 0x0010b219
LAB_0010b201:
LEA RDX,[0x12284c]
MOV RDI,RSP
MOV ESI,0x64
MOV ECX,EBP
XOR EAX,EAX
CALL 0x001078b0
LAB_0010b219:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV R14,RSP
MOV RDI,R14
CALL 0x001071f0
LEA RDX,[RSP + RAX*0x1]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00109436
MOV RAX,RBX
ADD RSP,0x70
POP RBX
POP R14
POP RBP
RET
|
/* nglog::StrError[abi:cxx11](int) */
nglog * __thiscall nglog::StrError_abi_cxx11_(nglog *this,int param_1)
{
int iVar1;
size_t sVar2;
char local_88 [112];
iVar1 = posix_strerror_r(param_1,local_88,100);
if ((iVar1 < 0) || (local_88[0] == '\0')) {
snprintf(local_88,100,"Error number %d",param_1);
}
*(nglog **)this = this + 0x10;
sVar2 = strlen(local_88);
std::__cxx11::string::_M_construct<char_const*>(this,local_88,local_88 + sVar2);
return this;
}
| |
20,945 | nglog::StrError[abi:cxx11](int) | ng-log[P]ng-log/src/logging.cc | string StrError(int err) {
char buf[100];
int rc = posix_strerror_r(err, buf, sizeof(buf));
if ((rc < 0) || (buf[0] == '\000')) {
std::snprintf(buf, sizeof(buf), "Error number %d", err);
}
return buf;
} | O3 | cpp | nglog::StrError[abi:cxx11](int):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq %rsp, %rsi
movl $0x64, %edx
movl %ebp, %edi
callq 0xdb08
testl %eax, %eax
js 0xb13b
cmpb $0x0, (%rsp)
jne 0xb153
leaq 0x176f2(%rip), %rdx # 0x22834
movq %rsp, %rdi
movl $0x64, %esi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x78b0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %rsp, %r14
movq %r14, %rdi
callq 0x71f0
leaq (%rsp,%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x92c4
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
| _ZN5nglog8StrErrorB5cxx11Ei:
push rbp
push r14
push rbx
sub rsp, 70h
mov ebp, esi
mov rbx, rdi
mov rsi, rsp; int
mov edx, (offset qword_60+4); char *
mov edi, ebp; this
call _ZN5nglog16posix_strerror_rEiPcm; nglog::posix_strerror_r(int,char *,ulong)
test eax, eax
js short loc_B13B
cmp [rsp+88h+var_88], 0
jnz short loc_B153
loc_B13B:
lea rdx, aErrorNumberD; "Error number %d"
mov rdi, rsp
mov esi, 64h ; 'd'
mov ecx, ebp
xor eax, eax
call _snprintf
loc_B153:
lea rax, [rbx+10h]
mov [rbx], rax
mov r14, rsp
mov rdi, r14
call _strlen
lea rdx, [rsp+rax+88h+var_88]
mov rdi, rbx
mov rsi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rax, rbx
add rsp, 70h
pop rbx
pop r14
pop rbp
retn
| _QWORD * nglog::StrError[abi:cxx11](_QWORD *a1, unsigned int a2, long long a3, unsigned long long a4)
{
long long v4; // rax
_BYTE v6[136]; // [rsp+0h] [rbp-88h] BYREF
if ( (int)nglog::posix_strerror_r((nglog *)a2, (int)v6, (char *)&qword_60 + 4, a4) < 0 || !v6[0] )
snprintf(v6, 100LL, "Error number %d", a2);
*a1 = a1 + 2;
v4 = strlen(v6);
std::string::_M_construct<char const*>((long long)a1, v6, (long long)&v6[v4]);
return a1;
}
| StrError[abi:cxx11]:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV EBP,ESI
MOV RBX,RDI
MOV RSI,RSP
MOV EDX,0x64
MOV EDI,EBP
CALL 0x0010db08
TEST EAX,EAX
JS 0x0010b13b
CMP byte ptr [RSP],0x0
JNZ 0x0010b153
LAB_0010b13b:
LEA RDX,[0x122834]
MOV RDI,RSP
MOV ESI,0x64
MOV ECX,EBP
XOR EAX,EAX
CALL 0x001078b0
LAB_0010b153:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV R14,RSP
MOV RDI,R14
CALL 0x001071f0
LEA RDX,[RSP + RAX*0x1]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001092c4
MOV RAX,RBX
ADD RSP,0x70
POP RBX
POP R14
POP RBP
RET
|
/* nglog::StrError[abi:cxx11](int) */
nglog * __thiscall nglog::StrError_abi_cxx11_(nglog *this,int param_1)
{
int iVar1;
size_t sVar2;
char local_88 [112];
iVar1 = posix_strerror_r(param_1,local_88,100);
if ((iVar1 < 0) || (local_88[0] == '\0')) {
snprintf(local_88,100,"Error number %d",param_1);
}
*(nglog **)this = this + 0x10;
sVar2 = strlen(local_88);
std::__cxx11::string::_M_construct<char_const*>(this,local_88,local_88 + sVar2);
return this;
}
| |
20,946 | 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>::basic_json(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&) | llama.cpp/common/json.hpp | basic_json(const basic_json& other)
: json_base_class_t(other)
{
m_data.m_type = other.m_data.m_type;
// check of passed value is valid
other.assert_invariant();
switch (m_data.m_type)
{
case value_t::object:
{
m_data.m_value = *other.m_data.m_value.object;
break;
}
case value_t::array:
{
m_data.m_value = *other.m_data.m_value.array;
break;
}
case value_t::string:
{
m_data.m_value = *other.m_data.m_value.string;
break;
}
case value_t::boolean:
{
m_data.m_value = other.m_data.m_value.boolean;
break;
}
case value_t::number_integer:
{
m_data.m_value = other.m_data.m_value.number_integer;
break;
}
case value_t::number_unsigned:
{
m_data.m_value = other.m_data.m_value.number_unsigned;
break;
}
case value_t::number_float:
{
m_data.m_value = other.m_data.m_value.number_float;
break;
}
case value_t::binary:
{
m_data.m_value = *other.m_data.m_value.binary;
break;
}
case value_t::null:
case value_t::discarded:
default:
break;
}
set_parents();
assert_invariant();
} | 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>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movb (%rsi), %al
movb %al, (%rdi)
movq %rsi, %rdi
movl $0x1, %esi
callq 0x858ca
movzbl (%rbx), %eax
decl %eax
cmpl $0x7, %eax
ja 0x89b8e
leaq 0x898a6(%rip), %rcx # 0x1133f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rax
jmp 0x89b8a
movq 0x8(%r14), %rdi
callq 0x8a392
jmp 0x89b8a
movq 0x8(%r14), %rdi
callq 0x8a3e2
jmp 0x89b8a
movzbl 0x8(%r14), %eax
jmp 0x89b8a
movq 0x8(%r14), %rdi
callq 0x89ffc
jmp 0x89b8a
movq 0x8(%r14), %rdi
callq 0x8a21e
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x858ca
jmp 0x89ba8
jmp 0x89ba8
jmp 0x89ba8
movq %rax, %r14
movq %rbx, %rdi
callq 0x89fe4
movq %r14, %rdi
callq 0x20ad0
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov al, [rsi]
mov [rdi], al
mov rdi, rsi
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)
movzx eax, byte ptr [rbx]
dec eax; switch 8 cases
cmp eax, 7
ja short def_89B51; jumptable 0000000000089B51 default case
lea rcx, jpt_89B51
movsxd rax, ds:(jpt_89B51 - 1133F0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_89B53:
mov rax, [r14+8]; jumptable 0000000000089B51 cases 5-7
jmp short loc_89B8A
loc_89B59:
mov rdi, [r14+8]; jumptable 0000000000089B51 case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRKS9_EEEPT_DpOT0_; 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>::create<std::string,std::string const&>(std::string const&)
jmp short loc_89B8A
loc_89B64:
mov rdi, [r14+8]; jumptable 0000000000089B51 case 8
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS0_27byte_container_with_subtypeISC_EEJRKSG_EEEPT_DpOT0_; 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>::create<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> const&>(nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> const&)
jmp short loc_89B8A
loc_89B6F:
movzx eax, byte ptr [r14+8]; jumptable 0000000000089B51 case 4
jmp short loc_89B8A
loc_89B76:
mov rdi, [r14+8]; jumptable 0000000000089B51 case 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS2_IS9_SD_St4lessIvESaISt4pairIKS9_SD_EEEEJRKSL_EEEPT_DpOT0_; 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>::create<nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>>,nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>> const&>(nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>> const&)
jmp short loc_89B8A
loc_89B81:
mov rdi, [r14+8]; jumptable 0000000000089B51 case 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJRKSG_EEEPT_DpOT0_; 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>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&>(std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
loc_89B8A:
mov [rbx+8], rax
def_89B51:
mov rdi, rbx; jumptable 0000000000089B51 default case
mov esi, 1
add rsp, 8
pop rbx
pop r14
jmp _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp short loc_89BA8
jmp short loc_89BA8
jmp short $+2
loc_89BA8:
mov r14, rax
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>::basic_json(
unsigned __int8 *a1,
unsigned __int8 *a2)
{
long long result; // rax
*(_OWORD *)a1 = 0LL;
*a1 = *a2;
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 *)a2);
result = (unsigned int)*a1 - 1;
switch ( *a1 )
{
case 1u:
result = 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>::create<nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>>,nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>> const&>(
*((_QWORD *)a2 + 1),
1LL);
goto LABEL_8;
case 2u:
result = 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>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> const&>(
*((_QWORD *)a2 + 1),
1LL);
goto LABEL_8;
case 3u:
result = 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>::create<std::string,std::string const&>(
*((_QWORD *)a2 + 1),
1LL);
goto LABEL_8;
case 4u:
result = a2[8];
goto LABEL_8;
case 5u:
case 6u:
case 7u:
result = *((_QWORD *)a2 + 1);
goto LABEL_8;
case 8u:
result = 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>::create<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>> const&>(
*((_QWORD *)a2 + 1),
1LL);
LABEL_8:
*((_QWORD *)a1 + 1) = result;
break;
default:
break;
}
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);
return result;
}
| basic_json:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV AL,byte ptr [RSI]
MOV byte ptr [RDI],AL
MOV RDI,RSI
MOV ESI,0x1
CALL 0x001858ca
MOVZX EAX,byte ptr [RBX]
DEC EAX
CMP EAX,0x7
JA 0x00189b8e
LEA RCX,[0x2133f0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_5:
MOV RAX,qword ptr [R14 + 0x8]
JMP 0x00189b8a
caseD_3:
MOV RDI,qword ptr [R14 + 0x8]
LAB_00189b5d:
CALL 0x0018a392
JMP 0x00189b8a
caseD_8:
MOV RDI,qword ptr [R14 + 0x8]
LAB_00189b68:
CALL 0x0018a3e2
JMP 0x00189b8a
caseD_4:
MOVZX EAX,byte ptr [R14 + 0x8]
JMP 0x00189b8a
caseD_1:
MOV RDI,qword ptr [R14 + 0x8]
LAB_00189b7a:
CALL 0x00189ffc
JMP 0x00189b8a
caseD_2:
MOV RDI,qword ptr [R14 + 0x8]
LAB_00189b85:
CALL 0x0018a21e
LAB_00189b8a:
MOV qword ptr [RBX + 0x8],RAX
default:
MOV RDI,RBX
MOV ESI,0x1
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001858ca
|
/* 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>::basic_json(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&) */
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>
::basic_json(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json *param_1)
{
string *psVar1;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*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>
)*param_1;
assert_invariant(SUB81(param_1,0));
switch(*this) {
case (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:
/* try { // try from 00189b7a to 00189b7e has its CatchHandler @ 00189ba4 */
psVar1 = (string *)
create<nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>>,nlohmann::json_abi_v3_11_3::ordered_map<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>,std::less<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>>>>const&>
(*(ordered_map **)(param_1 + 8));
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2:
/* try { // try from 00189b85 to 00189b89 has its CatchHandler @ 00189ba2 */
psVar1 = (string *)
create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>const&>
(*(vector **)(param_1 + 8));
break;
case (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>
)0x3:
/* try { // try from 00189b5d to 00189b61 has its CatchHandler @ 00189ba8 */
psVar1 = create<std::__cxx11::string,std::__cxx11::string_const&>(*(string **)(param_1 + 8));
break;
case (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>
)0x4:
psVar1 = (string *)(ulong)(byte)param_1[8];
break;
case (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>
)0x5:
case (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>
)0x6:
case (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>
)0x7:
psVar1 = *(string **)(param_1 + 8);
break;
case (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>
)0x8:
/* try { // try from 00189b68 to 00189b6c has its CatchHandler @ 00189ba6 */
psVar1 = (string *)
create<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>const&>
(*(byte_container_with_subtype **)(param_1 + 8));
break;
default:
goto switchD_00189b51_default;
}
*(string **)(this + 8) = psVar1;
switchD_00189b51_default:
assert_invariant(SUB81(this,0));
return;
}
| |
20,947 | ssz_add_uint32 | corpus-core[P]colibri-stateless/src/util/ssz_builder.c | void ssz_add_uint32(ssz_builder_t* buffer, uint32_t value) {
uint8_t tmp[4];
tmp[0] = value & 0xFF;
tmp[1] = (value >> 8) & 0xFF;
tmp[2] = (value >> 16) & 0xFF;
tmp[3] = (value >> 24) & 0xFF;
buffer_append(&buffer->fixed, bytes(tmp, 4));
} | O2 | c | ssz_add_uint32:
pushq %rax
leaq 0x4(%rsp), %rdx
movl %esi, (%rdx)
addq $0x8, %rdi
pushq $0x4
popq %rsi
callq 0x4b08b
popq %rax
retq
| ssz_add_uint32:
push rax
lea rdx, [rsp+8+var_4]
mov [rdx], esi
add rdi, 8
push 4
pop rsi
call buffer_append
pop rax
retn
| unsigned long long ssz_add_uint32(long long a1, unsigned int a2)
{
unsigned int v2; // eax
unsigned long long v4; // [rsp-4h] [rbp-8h] BYREF
v4 = __PAIR64__(a2, v2);
buffer_append((unsigned int *)(a1 + 8), 4u, (long long)&v4 + 4);
return v4;
}
| ssz_add_uint32:
PUSH RAX
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],ESI
ADD RDI,0x8
PUSH 0x4
POP RSI
CALL 0x0014b08b
POP RAX
RET
|
int8 ssz_add_uint32(long param_1,int4 param_2)
{
int4 in_EAX;
int8 uStack_8;
uStack_8 = CONCAT44(param_2,in_EAX);
buffer_append(param_1 + 8,4);
return uStack_8;
}
| |
20,948 | js_strndup | bluesky950520[P]quickjs/quickjs.c | char *js_strndup(JSContext *ctx, const char *s, size_t n)
{
char *ptr;
ptr = js_malloc(ctx, n + 1);
if (ptr) {
memcpy(ptr, s, n);
ptr[n] = '\0';
}
return ptr;
} | O0 | c | js_strndup:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
addq $0x1, %rsi
callq 0x209f0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x20d35
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0xe5a0
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x8(%rsp), %rax
addq $0x28, %rsp
retq
nop
| js_strndup:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_18]
add rsi, 1
call js_malloc
mov [rsp+28h+var_20], rax
cmp [rsp+28h+var_20], 0
jz short loc_20D35
mov rdi, [rsp+28h+var_20]
mov rsi, [rsp+28h+var_10]
mov rdx, [rsp+28h+var_18]
call _memcpy
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_18]
mov byte ptr [rax+rcx], 0
loc_20D35:
mov rax, [rsp+28h+var_20]
add rsp, 28h
retn
| long long js_strndup(long long a1, long long a2, long long a3)
{
long long v4; // [rsp+8h] [rbp-20h]
v4 = js_malloc(a1, a3 + 1);
if ( v4 )
{
memcpy(v4, a2, a3);
*(_BYTE *)(v4 + a3) = 0;
}
return v4;
}
| js_strndup:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x10]
ADD RSI,0x1
CALL 0x001209f0
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JZ 0x00120d35
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0010e5a0
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV byte ptr [RAX + RCX*0x1],0x0
LAB_00120d35:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x28
RET
|
void * js_strndup(int8 param_1,void *param_2,size_t param_3)
{
void *__dest;
__dest = (void *)js_malloc(param_1,param_3 + 1);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,param_3);
*(int1 *)((long)__dest + param_3) = 0;
}
return __dest;
}
| |
20,949 | js_strndup | bluesky950520[P]quickjs/quickjs.c | char *js_strndup(JSContext *ctx, const char *s, size_t n)
{
char *ptr;
ptr = js_malloc(ctx, n + 1);
if (ptr) {
memcpy(ptr, s, n);
ptr[n] = '\0';
}
return ptr;
} | O1 | c | js_strndup:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x1(%rdx), %rsi
callq 0xed5d
movq %rax, %r15
testq %rax, %rax
je 0xedd2
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xe5a0
movb $0x0, (%r15,%rbx)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
| js_strndup:
push r15
push r14
push rbx
mov rbx, rdx
mov r14, rsi
lea rsi, [rdx+1]
call js_malloc
mov r15, rax
test rax, rax
jz short loc_EDD2
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _memcpy
mov byte ptr [r15+rbx], 0
loc_EDD2:
mov rax, r15
pop rbx
pop r14
pop r15
retn
| long long js_strndup(long long a1, long long a2, long long a3)
{
long long v4; // rax
long long v5; // r15
v4 = js_malloc(a1, a3 + 1);
v5 = v4;
if ( v4 )
{
memcpy(v4, a2, a3);
*(_BYTE *)(v5 + a3) = 0;
}
return v5;
}
| js_strndup:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
LEA RSI,[RDX + 0x1]
CALL 0x0010ed5d
MOV R15,RAX
TEST RAX,RAX
JZ 0x0010edd2
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0010e5a0
MOV byte ptr [R15 + RBX*0x1],0x0
LAB_0010edd2:
MOV RAX,R15
POP RBX
POP R14
POP R15
RET
|
void * js_strndup(int8 param_1,void *param_2,size_t param_3)
{
void *__dest;
__dest = (void *)js_malloc(param_1,param_3 + 1);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,param_3);
*(int1 *)((long)__dest + param_3) = 0;
}
return __dest;
}
| |
20,950 | strxnmov | eloqsql/strings/strxnmov.c | char *strxnmov(char *dst, size_t len, const char *src, ...)
{
va_list pvar;
char *end_of_dst=dst+len;
va_start(pvar,src);
while (src != NullS)
{
do
{
if (dst == end_of_dst)
goto end;
}
while ((*dst++ = *src++));
dst--;
src = va_arg(pvar, char *);
}
end:
*dst=0;
va_end(pvar);
return dst;
} | O0 | c | strxnmov:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
testb %al, %al
je 0x7ff9b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rax
leaq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x18, (%rax)
cmpq $0x0, -0x18(%rbp)
je 0x800a7
jmp 0x7fff9
movq -0x8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x80008
jmp 0x800a9
jmp 0x8000a
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movb (%rax), %al
movq -0x8(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %al, (%rcx)
cmpb $0x0, %al
jne 0x7fff9
movq -0x8(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x8(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x100(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0xf4(%rbp)
cmpl $0x28, %eax
ja 0x80077
movq -0x100(%rbp), %rcx
movl -0xf4(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x108(%rbp)
jmp 0x80094
movq -0x100(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x7ffec
jmp 0x800a9
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| strxnmov:
push rbp
mov rbp, rsp
sub rsp, 90h
test al, al
jz short loc_7FF9B
movaps [rbp+var_C0], xmm0
movaps [rbp+var_B0], xmm1
movaps [rbp+var_A0], xmm2
movaps [rbp+var_90], xmm3
movaps [rbp+var_80], xmm4
movaps [rbp+var_70], xmm5
movaps [rbp+var_60], xmm6
movaps [rbp+var_50], xmm7
loc_7FF9B:
mov [rbp+var_C8], r9
mov [rbp+var_D0], r8
mov [rbp+var_D8], rcx
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
add rax, [rbp+var_10]
mov [rbp+var_38], rax
lea rax, [rbp+var_30]
lea rcx, [rbp+var_F0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 18h
loc_7FFEC:
cmp [rbp+var_18], 0
jz loc_800A7
jmp short $+2
loc_7FFF9:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_38]
jnz short loc_80008
jmp loc_800A9
loc_80008:
jmp short $+2
loc_8000A:
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
mov al, [rax]
mov rcx, [rbp+var_8]
mov rdx, rcx
add rdx, 1
mov [rbp+var_8], rdx
mov [rcx], al
cmp al, 0
jnz short loc_7FFF9
mov rax, [rbp+var_8]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_8], rax
lea rax, [rbp+var_30]
mov [rbp+var_100], rax
mov eax, [rbp+var_30]
mov [rbp+var_F4], eax
cmp eax, 28h ; '('
ja short loc_80077
mov rcx, [rbp+var_100]
mov edx, [rbp+var_F4]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_108], rax
jmp short loc_80094
loc_80077:
mov rcx, [rbp+var_100]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_108], rax
loc_80094:
mov rax, [rbp+var_108]
mov rax, [rax]
mov [rbp+var_18], rax
jmp loc_7FFEC
loc_800A7:
jmp short $+2
loc_800A9:
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
| _BYTE * strxnmov(
_BYTE *a1,
long long a2,
_BYTE *a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
_BYTE *v15; // rax
_BYTE *v16; // rcx
char *v17; // rax
char v19; // [rsp+18h] [rbp-F0h] BYREF
long long v20; // [rsp+30h] [rbp-D8h]
long long v21; // [rsp+38h] [rbp-D0h]
long long v22; // [rsp+40h] [rbp-C8h]
__m128 v23; // [rsp+48h] [rbp-C0h]
__m128 v24; // [rsp+58h] [rbp-B0h]
__m128 v25; // [rsp+68h] [rbp-A0h]
__m128 v26; // [rsp+78h] [rbp-90h]
__m128 v27; // [rsp+88h] [rbp-80h]
__m128 v28; // [rsp+98h] [rbp-70h]
__m128 v29; // [rsp+A8h] [rbp-60h]
__m128 v30; // [rsp+B8h] [rbp-50h]
_BYTE *v31; // [rsp+D0h] [rbp-38h]
int v32; // [rsp+D8h] [rbp-30h]
int v33; // [rsp+DCh] [rbp-2Ch]
char *v34; // [rsp+E0h] [rbp-28h]
char *v35; // [rsp+E8h] [rbp-20h]
_BYTE *v36; // [rsp+F0h] [rbp-18h]
long long v37; // [rsp+F8h] [rbp-10h]
_BYTE *v38; // [rsp+100h] [rbp-8h]
v23 = a7;
v24 = a8;
v25 = a9;
v26 = a10;
v27 = a11;
v28 = a12;
v29 = a13;
v30 = a14;
v22 = a6;
v21 = a5;
v20 = a4;
v38 = a1;
v37 = a2;
v36 = a3;
v31 = &a1[a2];
v35 = &v19;
v34 = &a15;
v33 = 48;
v32 = 24;
LABEL_2:
if ( v36 )
{
while ( v38 != v31 )
{
v15 = v36++;
LOBYTE(v15) = *v15;
v16 = v38++;
*v16 = (_BYTE)v15;
if ( !(_BYTE)v15 )
{
--v38;
if ( (unsigned int)v32 > 0x28 )
{
v17 = v34;
v34 += 8;
}
else
{
v17 = &v35[v32];
v32 += 8;
}
v36 = *(_BYTE **)v17;
goto LABEL_2;
}
}
}
*v38 = 0;
return v38;
}
| strxnmov:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
TEST AL,AL
JZ 0x0017ff9b
MOVAPS xmmword ptr [RBP + -0xc0],XMM0
MOVAPS xmmword ptr [RBP + -0xb0],XMM1
MOVAPS xmmword ptr [RBP + -0xa0],XMM2
MOVAPS xmmword ptr [RBP + -0x90],XMM3
MOVAPS xmmword ptr [RBP + -0x80],XMM4
MOVAPS xmmword ptr [RBP + -0x70],XMM5
MOVAPS xmmword ptr [RBP + -0x60],XMM6
MOVAPS xmmword ptr [RBP + -0x50],XMM7
LAB_0017ff9b:
MOV qword ptr [RBP + -0xc8],R9
MOV qword ptr [RBP + -0xd0],R8
MOV qword ptr [RBP + -0xd8],RCX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0xf0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x18
LAB_0017ffec:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001800a7
JMP 0x0017fff9
LAB_0017fff9:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x38]
JNZ 0x00180008
JMP 0x001800a9
LAB_00180008:
JMP 0x0018000a
LAB_0018000a:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOV AL,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RCX],AL
CMP AL,0x0
JNZ 0x0017fff9
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x8],RAX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x100],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0xf4],EAX
CMP EAX,0x28
JA 0x00180077
MOV RCX,qword ptr [RBP + -0x100]
MOV EDX,dword ptr [RBP + -0xf4]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x108],RAX
JMP 0x00180094
LAB_00180077:
MOV RCX,qword ptr [RBP + -0x100]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x108],RAX
LAB_00180094:
MOV RAX,qword ptr [RBP + -0x108]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0017ffec
LAB_001800a7:
JMP 0x001800a9
LAB_001800a9:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
char * strxnmov(char *param_1,long param_2,char *param_3)
{
char cVar1;
char *pcVar2;
int8 *local_110;
int8 local_f8 [24];
uint local_38;
int8 *local_30;
char *local_20;
char *local_10;
local_30 = (int8 *)&stack0x00000008;
local_38 = 0x18;
local_20 = param_3;
local_10 = param_1;
while (pcVar2 = local_10, local_20 != (char *)0x0) {
do {
local_10 = pcVar2;
if (local_10 == param_1 + param_2) goto LAB_001800a9;
cVar1 = *local_20;
*local_10 = cVar1;
local_20 = local_20 + 1;
pcVar2 = local_10 + 1;
} while (cVar1 != '\0');
if (local_38 < 0x29) {
local_110 = (int8 *)((long)local_f8 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_110 = local_30;
local_30 = local_30 + 1;
}
local_20 = (char *)*local_110;
}
LAB_001800a9:
*local_10 = '\0';
return local_10;
}
| |
20,951 | common_log::set_file(char const*) | monkey531[P]llama/common/log.cpp | void set_file(const char * path) {
pause();
if (file) {
fclose(file);
}
if (path) {
file = fopen(path, "w");
} else {
file = nullptr;
}
resume();
} | O2 | cpp | common_log::set_file(char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x991e2
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x99509
callq 0x24a10
testq %r14, %r14
je 0x9951f
leaq 0x15835(%rip), %rsi # 0xaed4a
movq %r14, %rdi
callq 0x24bf0
jmp 0x99521
xorl %eax, %eax
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x99258
| _ZN10common_log8set_fileEPKc:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _ZN10common_log5pauseEv; common_log::pause(void)
mov rdi, [rbx+60h]
test rdi, rdi
jz short loc_99509
call _fclose
loc_99509:
test r14, r14
jz short loc_9951F
lea rsi, aGrpAttnW+0Bh; "w"
mov rdi, r14
call _fopen
jmp short loc_99521
loc_9951F:
xor eax, eax
loc_99521:
mov [rbx+60h], rax
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN10common_log6resumeEv; common_log::resume(void)
| long long common_log::set_file(common_log *this, const char *a2)
{
long long v3; // rdi
long long v4; // rax
common_log::pause(this);
v3 = *((_QWORD *)this + 12);
if ( v3 )
fclose(v3);
if ( a2 )
v4 = fopen(a2, "w");
else
v4 = 0LL;
*((_QWORD *)this + 12) = v4;
return common_log::resume(this);
}
| set_file:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x001991e2
MOV RDI,qword ptr [RBX + 0x60]
TEST RDI,RDI
JZ 0x00199509
CALL 0x00124a10
LAB_00199509:
TEST R14,R14
JZ 0x0019951f
LEA RSI,[0x1aed4a]
MOV RDI,R14
CALL 0x00124bf0
JMP 0x00199521
LAB_0019951f:
XOR EAX,EAX
LAB_00199521:
MOV qword ptr [RBX + 0x60],RAX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00199258
|
/* common_log::set_file(char const*) */
void __thiscall common_log::set_file(common_log *this,char *param_1)
{
FILE *pFVar1;
pause(this);
if (*(FILE **)(this + 0x60) != (FILE *)0x0) {
fclose(*(FILE **)(this + 0x60));
}
if (param_1 == (char *)0x0) {
pFVar1 = (FILE *)0x0;
}
else {
pFVar1 = fopen(param_1,"w");
}
*(FILE **)(this + 0x60) = pFVar1;
resume(this);
return;
}
| |
20,952 | common_log::set_file(char const*) | monkey531[P]llama/common/log.cpp | void set_file(const char * path) {
pause();
if (file) {
fclose(file);
}
if (path) {
file = fopen(path, "w");
} else {
file = nullptr;
}
resume();
} | O3 | cpp | common_log::set_file(char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xcebc2
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xcefd3
callq 0x1b9e0
testq %r14, %r14
je 0xcefe9
leaq 0x1bd6b(%rip), %rsi # 0xead4a
movq %r14, %rdi
callq 0x1bbc0
jmp 0xcefeb
xorl %eax, %eax
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcec4a
| _ZN10common_log8set_fileEPKc:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _ZN10common_log5pauseEv; common_log::pause(void)
mov rdi, [rbx+60h]
test rdi, rdi
jz short loc_CEFD3
call _fclose
loc_CEFD3:
test r14, r14
jz short loc_CEFE9
lea rsi, aGrpAttnW+0Bh; "w"
mov rdi, r14
call _fopen
jmp short loc_CEFEB
loc_CEFE9:
xor eax, eax
loc_CEFEB:
mov [rbx+60h], rax
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN10common_log6resumeEv; common_log::resume(void)
| long long common_log::set_file(common_log *this, const char *a2)
{
long long v3; // rdi
long long v4; // rax
common_log::pause(this);
v3 = *((_QWORD *)this + 12);
if ( v3 )
fclose(v3);
if ( a2 )
v4 = fopen(a2, "w");
else
v4 = 0LL;
*((_QWORD *)this + 12) = v4;
return common_log::resume(this);
}
| set_file:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x001cebc2
MOV RDI,qword ptr [RBX + 0x60]
TEST RDI,RDI
JZ 0x001cefd3
CALL 0x0011b9e0
LAB_001cefd3:
TEST R14,R14
JZ 0x001cefe9
LEA RSI,[0x1ead4a]
MOV RDI,R14
CALL 0x0011bbc0
JMP 0x001cefeb
LAB_001cefe9:
XOR EAX,EAX
LAB_001cefeb:
MOV qword ptr [RBX + 0x60],RAX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001cec4a
|
/* common_log::set_file(char const*) */
void __thiscall common_log::set_file(common_log *this,char *param_1)
{
FILE *pFVar1;
pause(this);
if (*(FILE **)(this + 0x60) != (FILE *)0x0) {
fclose(*(FILE **)(this + 0x60));
}
if (param_1 == (char *)0x0) {
pFVar1 = (FILE *)0x0;
}
else {
pFVar1 = fopen(param_1,"w");
}
*(FILE **)(this + 0x60) = pFVar1;
resume(this);
return;
}
| |
20,953 | js_shr_slow | bluesky950520[P]quickjs/quickjs.c | static no_inline int js_shr_slow(JSContext *ctx, JSValue *sp)
{
JSValue op1, op2;
uint32_t v1, v2, r;
op1 = sp[-2];
op2 = sp[-1];
op1 = JS_ToNumericFree(ctx, op1);
if (JS_IsException(op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
op2 = JS_ToNumericFree(ctx, op2);
if (JS_IsException(op2)) {
JS_FreeValue(ctx, op1);
goto exception;
}
if ((JS_VALUE_GET_TAG(op1) == JS_TAG_BIG_INT ||
JS_VALUE_GET_TAG(op2) == JS_TAG_BIG_INT)) {
JS_ThrowTypeError(ctx, "BigInt operands are forbidden for >>>");
JS_FreeValue(ctx, op1);
JS_FreeValue(ctx, op2);
goto exception;
}
/* cannot give an exception */
JS_ToUint32Free(ctx, &v1, op1);
JS_ToUint32Free(ctx, &v2, op2);
r = v1 >> (v2 & 0x1f);
sp[-2] = js_uint32(r);
return 0;
exception:
sp[-2] = JS_UNDEFINED;
sp[-1] = JS_UNDEFINED;
return -1;
} | O2 | c | js_shr_slow:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq -0x20(%rsi), %rsi
movq -0x18(%rbx), %rdx
movq -0x10(%rbx), %rbp
movq -0x8(%rbx), %r13
callq 0x3df6e
movq %rdx, %r15
movl %r15d, %r12d
cmpq $0x6, %r12
jne 0x3ca59
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
jmp 0x3ca86
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x3df6e
movq %rax, %rbp
movq %rdx, %r13
movl %r13d, %eax
cmpq $0x6, %rax
jne 0x3cab0
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0x1bbce
andl $0x0, -0x20(%rbx)
pushq $0x3
popq %rax
movq %rax, -0x18(%rbx)
andl $0x0, -0x10(%rbx)
movq %rax, -0x8(%rbx)
pushq $-0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xfffffff7, %ecx # imm = 0xFFFFFFF7
cmpl %ecx, %r12d
je 0x3cb18
cmpl %ecx, %eax
je 0x3cb18
leaq 0x14(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rcx
callq 0x25190
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x25190
movl (%r12), %edx
movb (%r15), %cl
shrl %cl, %edx
xorl %eax, %eax
testl %edx, %edx
cvtsi2sd %rdx, %xmm0
movq %xmm0, %rcx
cmovnsq %rdx, %rcx
pushq $0x7
popq %rdx
cmovnsq %rax, %rdx
movq %rcx, -0x20(%rbx)
movq %rdx, -0x18(%rbx)
jmp 0x3caa1
leaq 0x4cd4e(%rip), %rsi # 0x8986d
movq %r14, %rdi
xorl %eax, %eax
callq 0x201fd
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0x1bbce
jmp 0x3ca4e
| js_shr_slow:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rsi
mov r14, rdi
mov rsi, [rsi-20h]
mov rdx, [rbx-18h]
mov rbp, [rbx-10h]
mov r13, [rbx-8]
call JS_ToNumericFree
mov r15, rdx
mov r12d, r15d
cmp r12, 6
jnz short loc_3CA59
loc_3CA4E:
mov rdi, r14
mov rsi, rbp
mov rdx, r13
jmp short loc_3CA86
loc_3CA59:
mov [rsp+48h+var_40], rax
mov rdi, r14
mov rsi, rbp
mov rdx, r13
call JS_ToNumericFree
mov rbp, rax
mov r13, rdx
mov eax, r13d
cmp rax, 6
jnz short loc_3CAB0
mov rdi, r14
mov rsi, [rsp+48h+var_40]
mov rdx, r15
loc_3CA86:
call JS_FreeValue
and dword ptr [rbx-20h], 0
push 3
pop rax
mov [rbx-18h], rax
and dword ptr [rbx-10h], 0
mov [rbx-8], rax
push 0FFFFFFFFFFFFFFFFh
pop rax
loc_3CAA1:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3CAB0:
mov ecx, 0FFFFFFF7h
cmp r12d, ecx
jz short loc_3CB18
cmp eax, ecx
jz short loc_3CB18
lea r12, [rsp+48h+var_34]
mov rdi, r14
mov rsi, r12
mov rdx, [rsp+48h+var_40]
mov rcx, r15
call JS_ToInt32Free
lea r15, [rsp+48h+var_38]
mov rdi, r14
mov rsi, r15
mov rdx, rbp
mov rcx, r13
call JS_ToInt32Free
mov edx, [r12]
mov cl, [r15]
shr edx, cl
xor eax, eax
test edx, edx
cvtsi2sd xmm0, rdx
movq rcx, xmm0
cmovns rcx, rdx
push 7
pop rdx
cmovns rdx, rax
mov [rbx-20h], rcx
mov [rbx-18h], rdx
jmp short loc_3CAA1
loc_3CB18:
lea rsi, aBigintOperands; "BigInt operands are forbidden for >>>"
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
mov rdi, r14
mov rsi, [rsp+48h+var_40]
mov rdx, r15
call JS_FreeValue
jmp loc_3CA4E
| long long js_shr_slow(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
unsigned long long v11; // rbp
long long v12; // r13
long long v13; // rax
long long v14; // rdx
long long v15; // r15
int v16; // r12d
long long v17; // rsi
long long v18; // rdx
long long v19; // rdx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long result; // rax
char v25; // [rsp+0h] [rbp-48h]
unsigned long long v26; // [rsp+8h] [rbp-40h]
int v27; // [rsp+10h] [rbp-38h] BYREF
_DWORD v28[13]; // [rsp+14h] [rbp-34h] BYREF
v11 = *(_QWORD *)(a2 - 16);
v12 = *(_QWORD *)(a2 - 8);
v13 = JS_ToNumericFree(a1, *(_QWORD *)(a2 - 32));
v15 = v14;
v16 = v14;
if ( (unsigned int)v14 == 6LL )
goto LABEL_2;
v26 = v13;
v11 = JS_ToNumericFree(a1, v11);
v12 = v19;
if ( (unsigned int)v19 == 6LL )
{
v17 = v26;
v18 = v15;
goto LABEL_5;
}
if ( v16 == -9 || (_DWORD)v19 == -9 )
{
JS_ThrowTypeError(
a1,
(long long)"BigInt operands are forbidden for >>>",
v19,
4294967287LL,
v20,
v21,
a3,
a4,
a5,
a6,
v22,
v23,
a9,
a10,
v25);
JS_FreeValue(a1, v26, v15);
LABEL_2:
v17 = v11;
v18 = v12;
LABEL_5:
JS_FreeValue(a1, v17, v18);
*(_DWORD *)(a2 - 32) = 0;
*(_QWORD *)(a2 - 24) = 3LL;
*(_DWORD *)(a2 - 16) = 0;
*(_QWORD *)(a2 - 8) = 3LL;
return -1LL;
}
JS_ToInt32Free(a1, v28, v26, v15);
JS_ToInt32Free(a1, &v27, v11, v12);
result = 0LL;
*(_QWORD *)(a2 - 32) = (unsigned int)(v28[0] >> v27);
*(_QWORD *)(a2 - 24) = 0LL;
return result;
}
| js_shr_slow:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RSI
MOV R14,RDI
MOV RSI,qword ptr [RSI + -0x20]
MOV RDX,qword ptr [RBX + -0x18]
MOV RBP,qword ptr [RBX + -0x10]
MOV R13,qword ptr [RBX + -0x8]
CALL 0x0013df6e
MOV R15,RDX
MOV R12D,R15D
CMP R12,0x6
JNZ 0x0013ca59
LAB_0013ca4e:
MOV RDI,R14
MOV RSI,RBP
MOV RDX,R13
JMP 0x0013ca86
LAB_0013ca59:
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,R14
MOV RSI,RBP
MOV RDX,R13
CALL 0x0013df6e
MOV RBP,RAX
MOV R13,RDX
MOV EAX,R13D
CMP RAX,0x6
JNZ 0x0013cab0
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,R15
LAB_0013ca86:
CALL 0x0011bbce
AND dword ptr [RBX + -0x20],0x0
PUSH 0x3
POP RAX
MOV qword ptr [RBX + -0x18],RAX
AND dword ptr [RBX + -0x10],0x0
MOV qword ptr [RBX + -0x8],RAX
PUSH -0x1
POP RAX
LAB_0013caa1:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013cab0:
MOV ECX,0xfffffff7
CMP R12D,ECX
JZ 0x0013cb18
CMP EAX,ECX
JZ 0x0013cb18
LEA R12,[RSP + 0x14]
MOV RDI,R14
MOV RSI,R12
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,R15
CALL 0x00125190
LEA R15,[RSP + 0x10]
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBP
MOV RCX,R13
CALL 0x00125190
MOV EDX,dword ptr [R12]
MOV CL,byte ptr [R15]
SHR EDX,CL
XOR EAX,EAX
TEST EDX,EDX
CVTSI2SD XMM0,RDX
MOVQ RCX,XMM0
CMOVNS RCX,RDX
PUSH 0x7
POP RDX
CMOVNS RDX,RAX
MOV qword ptr [RBX + -0x20],RCX
MOV qword ptr [RBX + -0x18],RDX
JMP 0x0013caa1
LAB_0013cb18:
LEA RSI,[0x18986d]
MOV RDI,R14
XOR EAX,EAX
CALL 0x001201fd
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,R15
CALL 0x0011bbce
JMP 0x0013ca4e
|
int8 js_shr_slow(int8 param_1,long param_2)
{
int8 uVar1;
int1 auVar2 [16];
double dVar3;
ulong uVar4;
int8 uVar5;
int1 auVar6 [16];
int1 auVar7 [16];
byte local_38 [4];
uint local_34;
uVar5 = *(int8 *)*(int1 (*) [16])(param_2 + -0x10);
uVar1 = *(int8 *)(param_2 + -8);
auVar2 = *(int1 (*) [16])(param_2 + -0x10);
auVar6 = JS_ToNumericFree(param_1,*(int8 *)(param_2 + -0x20),
*(int8 *)(param_2 + -0x18));
uVar4 = auVar6._8_8_;
if ((uVar4 & 0xffffffff) != 6) {
auVar7 = JS_ToNumericFree(param_1,uVar5,uVar1);
auVar2 = auVar6;
if ((auVar7._8_8_ & 0xffffffff) != 6) {
if ((auVar6._8_4_ != -9) && (auVar7._8_4_ != -9)) {
JS_ToInt32Free(param_1,&local_34,auVar6._0_8_,uVar4);
JS_ToInt32Free(param_1,local_38,auVar7._0_8_,auVar7._8_8_);
local_34 = local_34 >> (local_38[0] & 0x1f);
dVar3 = (double)local_34;
if (-1 < (int)local_34) {
dVar3 = (double)(ulong)local_34;
}
uVar5 = 7;
if (-1 < (int)local_34) {
uVar5 = 0;
}
*(double *)(param_2 + -0x20) = dVar3;
*(int8 *)(param_2 + -0x18) = uVar5;
return 0;
}
JS_ThrowTypeError(param_1,"BigInt operands are forbidden for >>>");
JS_FreeValue(param_1,auVar6._0_8_,uVar4);
auVar2 = auVar7;
}
}
JS_FreeValue(param_1,auVar2._0_8_,auVar2._8_8_);
*(int4 *)(param_2 + -0x20) = 0;
*(int8 *)(param_2 + -0x18) = 3;
*(int4 *)(param_2 + -0x10) = 0;
*(int8 *)(param_2 + -8) = 3;
return 0xffffffffffffffff;
}
| |
20,954 | js_string_define_own_property | bluesky950520[P]quickjs/quickjs.c | static int js_string_define_own_property(JSContext *ctx,
JSValue this_obj,
JSAtom prop, JSValue val,
JSValue getter,
JSValue setter, int flags)
{
uint32_t idx;
JSObject *p;
JSString *p1, *p2;
if (__JS_AtomIsTaggedInt(prop)) {
idx = __JS_AtomToUInt32(prop);
p = JS_VALUE_GET_OBJ(this_obj);
if (JS_VALUE_GET_TAG(p->u.object_data) != JS_TAG_STRING)
goto def;
p1 = JS_VALUE_GET_STRING(p->u.object_data);
if (idx >= p1->len)
goto def;
if (!check_define_prop_flags(JS_PROP_ENUMERABLE, flags))
goto fail;
/* check that the same value is configured */
if (flags & JS_PROP_HAS_VALUE) {
if (JS_VALUE_GET_TAG(val) != JS_TAG_STRING)
goto fail;
p2 = JS_VALUE_GET_STRING(val);
if (p2->len != 1)
goto fail;
if (string_get(p1, idx) != string_get(p2, 0)) {
fail:
return JS_ThrowTypeErrorOrFalse(ctx, flags, "property is not configurable");
}
}
return TRUE;
} else {
def:
return JS_DefineProperty(ctx, this_obj, prop, val, getter, setter,
flags | JS_PROP_NO_EXOTIC);
}
} | O1 | c | js_string_define_own_property:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r14
movq %rdi, %rbx
movl 0x90(%rsp), %ebp
movq %rsi, 0x30(%rsp)
movq %r8, 0x28(%rsp)
testl %ecx, %ecx
jns 0x46b21
movq 0x30(%rsp), %rax
cmpl $-0x7, 0x38(%rax)
jne 0x46b21
movl %ecx, %r15d
andl $0x7fffffff, %r15d # imm = 0x7FFFFFFF
movq 0x30(%rax), %r12
movq 0x4(%r12), %r13
movl %r13d, %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmpl %eax, %r15d
jae 0x46b21
movl $0x4, %edi
movl %ebp, %esi
callq 0x25558
testl %eax, %eax
je 0x46baa
btl $0xd, %ebp
jb 0x46b61
movl $0x1, %eax
jmp 0x46b52
leaq 0x80(%rsp), %rax
leaq 0x70(%rsp), %rdi
orl $0x20000, %ebp # imm = 0x20000
movups (%rax), %xmm0
movups %xmm0, 0x10(%rsp)
movups (%rdi), %xmm0
movups %xmm0, (%rsp)
movl %ebp, 0x20(%rsp)
movq %rbx, %rdi
movq %r14, %r9
callq 0x248a5
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xfffffff9, %eax # imm = 0xFFFFFFF9
cmpl %eax, %r14d
jne 0x46baa
movq 0x28(%rsp), %rax
movq 0x4(%rax), %rcx
movl %ecx, %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
cmpl $0x1, %edx
jne 0x46baa
testl %r13d, %r13d
js 0x46b8e
movzbl 0x18(%r12,%r15), %edx
jmp 0x46b94
movzwl 0x18(%r12,%r15,2), %edx
testl %ecx, %ecx
js 0x46b9e
movzbl 0x18(%rax), %eax
jmp 0x46ba2
movzwl 0x18(%rax), %eax
cmpl %eax, %edx
je 0x46b1a
leaq 0x569f8(%rip), %rdx # 0x9d5a9
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x255ce
| js_string_define_own_property:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, r9
mov rbx, rdi
mov ebp, [rsp+68h+arg_20]
mov [rsp+68h+var_38], rsi
mov [rsp+68h+var_40], r8
test ecx, ecx
jns short loc_46B21
mov rax, [rsp+68h+var_38]
cmp dword ptr [rax+38h], 0FFFFFFF9h
jnz short loc_46B21
mov r15d, ecx
and r15d, 7FFFFFFFh
mov r12, [rax+30h]
mov r13, [r12+4]
mov eax, r13d
and eax, 7FFFFFFFh
cmp r15d, eax
jnb short loc_46B21
mov edi, 4
mov esi, ebp
call check_define_prop_flags
test eax, eax
jz loc_46BAA
bt ebp, 0Dh
jb short loc_46B61
loc_46B1A:
mov eax, 1
jmp short loc_46B52
loc_46B21:
lea rax, [rsp+68h+arg_10]
lea rdi, [rsp+68h+arg_0]
or ebp, 20000h
movups xmm0, xmmword ptr [rax]
movups [rsp+68h+var_58], xmm0
movups xmm0, xmmword ptr [rdi]
movups [rsp+68h+var_68], xmm0
mov [rsp+68h+var_48], ebp
mov rdi, rbx
mov r9, r14
call JS_DefineProperty
loc_46B52:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_46B61:
mov eax, 0FFFFFFF9h
cmp r14d, eax
jnz short loc_46BAA
mov rax, [rsp+68h+var_40]
mov rcx, [rax+4]
mov edx, ecx
and edx, 7FFFFFFFh
cmp edx, 1
jnz short loc_46BAA
test r13d, r13d
js short loc_46B8E
movzx edx, byte ptr [r12+r15+18h]
jmp short loc_46B94
loc_46B8E:
movzx edx, word ptr [r12+r15*2+18h]
loc_46B94:
test ecx, ecx
js short loc_46B9E
movzx eax, byte ptr [rax+18h]
jmp short loc_46BA2
loc_46B9E:
movzx eax, word ptr [rax+18h]
loc_46BA2:
cmp edx, eax
jz loc_46B1A
loc_46BAA:
lea rdx, aPropertyIsNotC; "property is not configurable"
mov rdi, rbx
mov esi, ebp
xor eax, eax
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp JS_ThrowTypeErrorOrFalse
| long long js_string_define_own_property(
long long a1,
unsigned long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
double a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
__m128 a15,
_DWORD *a16,
long long a17,
int a18)
{
int v18; // r14d
long long v19; // r15
long long v20; // r12
long long v21; // r13
int v23; // edx
int v24; // eax
v18 = a6;
if ( (int)a4 >= 0 )
return JS_DefineProperty(
a1,
a2,
a3,
a4,
a5,
a6,
a15,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
a15.m128_u64[0],
a15.m128_i64[1],
a16,
a17,
a18 | 0x20000u);
if ( *(_DWORD *)(a2 + 56) != -7 )
return JS_DefineProperty(
a1,
a2,
a3,
a4,
a5,
a6,
a15,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
(_DWORD *)a15.m128_u64[0],
a15.m128_i64[1],
a16,
a17,
a18 | 0x20000u);
v19 = a4 & 0x7FFFFFFF;
v20 = *(_QWORD *)(a2 + 48);
v21 = *(_QWORD *)(v20 + 4);
if ( (unsigned int)v19 >= (*(_DWORD *)(v20 + 4) & 0x7FFFFFFFu) )
return JS_DefineProperty(
a1,
a2,
a3,
a4,
a5,
a6,
a15,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
(_DWORD *)a15.m128_u64[0],
a15.m128_i64[1],
a16,
a17,
a18 | 0x20000u);
if ( (unsigned int)check_define_prop_flags(4u, a18) )
{
if ( (a18 & 0x2000) == 0 )
return 1LL;
if ( v18 == -7 && (*(_DWORD *)(a5 + 4) & 0x7FFFFFFF) == 1 )
{
v23 = (int)v21 < 0 ? *(unsigned __int16 *)(v20 + 2 * v19 + 24) : *(unsigned __int8 *)(v20 + v19 + 24);
v24 = (int)*(_QWORD *)(a5 + 4) < 0 ? *(unsigned __int16 *)(a5 + 24) : *(unsigned __int8 *)(a5 + 24);
if ( v23 == v24 )
return 1LL;
}
}
return JS_ThrowTypeErrorOrFalse(a1, a18, (long long)"property is not configurable");
}
| js_string_define_own_property:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,R9
MOV RBX,RDI
MOV EBP,dword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RSP + 0x28],R8
TEST ECX,ECX
JNS 0x00146b21
MOV RAX,qword ptr [RSP + 0x30]
CMP dword ptr [RAX + 0x38],-0x7
JNZ 0x00146b21
MOV R15D,ECX
AND R15D,0x7fffffff
MOV R12,qword ptr [RAX + 0x30]
MOV R13,qword ptr [R12 + 0x4]
MOV EAX,R13D
AND EAX,0x7fffffff
CMP R15D,EAX
JNC 0x00146b21
MOV EDI,0x4
MOV ESI,EBP
CALL 0x00125558
TEST EAX,EAX
JZ 0x00146baa
BT EBP,0xd
JC 0x00146b61
LAB_00146b1a:
MOV EAX,0x1
JMP 0x00146b52
LAB_00146b21:
LEA RAX,[RSP + 0x80]
LEA RDI,[RSP + 0x70]
OR EBP,0x20000
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RDI]
MOVUPS xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x20],EBP
MOV RDI,RBX
MOV R9,R14
CALL 0x001248a5
LAB_00146b52:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00146b61:
MOV EAX,0xfffffff9
CMP R14D,EAX
JNZ 0x00146baa
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RAX + 0x4]
MOV EDX,ECX
AND EDX,0x7fffffff
CMP EDX,0x1
JNZ 0x00146baa
TEST R13D,R13D
JS 0x00146b8e
MOVZX EDX,byte ptr [R12 + R15*0x1 + 0x18]
JMP 0x00146b94
LAB_00146b8e:
MOVZX EDX,word ptr [R12 + R15*0x2 + 0x18]
LAB_00146b94:
TEST ECX,ECX
JS 0x00146b9e
MOVZX EAX,byte ptr [RAX + 0x18]
JMP 0x00146ba2
LAB_00146b9e:
MOVZX EAX,word ptr [RAX + 0x18]
LAB_00146ba2:
CMP EDX,EAX
JZ 0x00146b1a
LAB_00146baa:
LEA RDX,[0x19d5a9]
MOV RDI,RBX
MOV ESI,EBP
XOR EAX,EAX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001255ce
|
int8
js_string_define_own_property
(int8 param_1,long param_2,int8 param_3,uint param_4,long param_5,int param_6)
{
long lVar1;
ushort uVar2;
int iVar3;
int8 uVar4;
uint uVar5;
ushort uVar6;
uint uVar7;
uint in_stack_00000028;
if (((int)param_4 < 0) && (*(int *)(param_2 + 0x38) == -7)) {
param_4 = param_4 & 0x7fffffff;
lVar1 = *(long *)(param_2 + 0x30);
uVar7 = (uint)*(int8 *)(lVar1 + 4);
if (param_4 < (uVar7 & 0x7fffffff)) {
iVar3 = check_define_prop_flags(4,in_stack_00000028);
if (iVar3 != 0) {
if ((in_stack_00000028 >> 0xd & 1) == 0) {
return 1;
}
if ((param_6 == -7) &&
(uVar5 = (uint)*(int8 *)(param_5 + 4), (uVar5 & 0x7fffffff) == 1)) {
if ((int)uVar7 < 0) {
uVar6 = *(ushort *)(lVar1 + 0x18 + (ulong)param_4 * 2);
}
else {
uVar6 = (ushort)*(byte *)(lVar1 + 0x18 + (ulong)param_4);
}
if ((int)uVar5 < 0) {
uVar2 = *(ushort *)(param_5 + 0x18);
}
else {
uVar2 = (ushort)*(byte *)(param_5 + 0x18);
}
if (uVar6 == uVar2) {
return 1;
}
}
}
uVar4 = JS_ThrowTypeErrorOrFalse(param_1,in_stack_00000028,"property is not configurable");
return uVar4;
}
}
uVar4 = JS_DefineProperty(param_1);
return uVar4;
}
| |
20,955 | tdefl_write_image_to_png_file_in_memory_ex | 7CodeWizard[P]stablediffusion/thirdparty/miniz.h | void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w,
int h, int num_chans,
size_t *pLen_out,
mz_uint level, mz_bool flip) {
/* Using a local copy of this array here in case MINIZ_NO_ZLIB_APIS was
* defined. */
static const mz_uint s_tdefl_png_num_probes[11] = {
0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500};
tdefl_compressor *pComp =
(tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
tdefl_output_buffer out_buf;
int i, bpl = w * num_chans, y, z;
mz_uint32 c;
*pLen_out = 0;
if (!pComp)
return NULL;
MZ_CLEAR_OBJ(out_buf);
out_buf.m_expandable = MZ_TRUE;
out_buf.m_capacity = 57 + MZ_MAX(64, (1 + bpl) * h);
if (NULL == (out_buf.m_pBuf = (mz_uint8 *)MZ_MALLOC(out_buf.m_capacity))) {
MZ_FREE(pComp);
return NULL;
}
/* write dummy header */
for (z = 41; z; --z)
tdefl_output_buffer_putter(&z, 1, &out_buf);
/* compress image data */
tdefl_init(pComp, tdefl_output_buffer_putter, &out_buf,
s_tdefl_png_num_probes[MZ_MIN(10, level)] |
TDEFL_WRITE_ZLIB_HEADER);
for (y = 0; y < h; ++y) {
tdefl_compress_buffer(pComp, &z, 1, TDEFL_NO_FLUSH);
tdefl_compress_buffer(pComp,
(mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl,
bpl, TDEFL_NO_FLUSH);
}
if (tdefl_compress_buffer(pComp, NULL, 0, TDEFL_FINISH) !=
TDEFL_STATUS_DONE) {
MZ_FREE(pComp);
MZ_FREE(out_buf.m_pBuf);
return NULL;
}
/* write real header */
*pLen_out = out_buf.m_size - 41;
{
static const mz_uint8 chans[] = {0x00, 0x00, 0x04, 0x02, 0x06};
mz_uint8 pnghdr[41] = {0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00,
0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x49, 0x44, 0x41, 0x54};
pnghdr[18] = (mz_uint8)(w >> 8);
pnghdr[19] = (mz_uint8)w;
pnghdr[22] = (mz_uint8)(h >> 8);
pnghdr[23] = (mz_uint8)h;
pnghdr[25] = chans[num_chans];
pnghdr[33] = (mz_uint8)(*pLen_out >> 24);
pnghdr[34] = (mz_uint8)(*pLen_out >> 16);
pnghdr[35] = (mz_uint8)(*pLen_out >> 8);
pnghdr[36] = (mz_uint8)*pLen_out;
c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, pnghdr + 12, 17);
for (i = 0; i < 4; ++i, c <<= 8)
((mz_uint8 *)(pnghdr + 29))[i] = (mz_uint8)(c >> 24);
memcpy(out_buf.m_pBuf, pnghdr, 41);
}
/* write footer (IDAT CRC-32, followed by IEND chunk) */
if (!tdefl_output_buffer_putter(
"\0\0\0\0\0\0\0\0\x49\x45\x4e\x44\xae\x42\x60\x82", 16, &out_buf)) {
*pLen_out = 0;
MZ_FREE(pComp);
MZ_FREE(out_buf.m_pBuf);
return NULL;
}
c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, out_buf.m_pBuf + 41 - 4,
*pLen_out + 4);
for (i = 0; i < 4; ++i, c <<= 8)
(out_buf.m_pBuf + out_buf.m_size - 16)[i] = (mz_uint8)(c >> 24);
/* compute final size of file, grab compressed data buffer and return */
*pLen_out += 57;
MZ_FREE(pComp);
return out_buf.m_pBuf;
} | O1 | c | tdefl_write_image_to_png_file_in_memory_ex:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %r9d, %r13d
movq %r8, %r15
movl %ecx, %ebp
movl %edx, %ebx
movl %esi, %r12d
movq %rdi, 0x80(%rsp)
movl $0x4df78, %edi # imm = 0x4DF78
callq 0xa7c0
movq $0x0, (%r15)
testq %rax, %rax
je 0x8314a
movq %rax, %r14
movq %rbx, %rcx
movl %ebp, %ebx
movl %r12d, 0x1c(%rsp)
imull %r12d, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movl $0x1, 0x38(%rsp)
leal 0x1(%rbx), %eax
movq %rcx, 0x10(%rsp)
imull %ecx, %eax
cmpl $0x41, %eax
movl $0x40, %edi
cmovgel %eax, %edi
addl $0x39, %edi
movq %rdi, 0x28(%rsp)
callq 0xa7c0
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x8312c
movl %ebp, 0x18(%rsp)
movq %r15, 0x78(%rsp)
leaq 0xc(%rsp), %r15
movl $0x29, (%r15)
leaq 0x20(%rsp), %rbp
movq %r15, %rdi
movl $0x1, %esi
movq %rbp, %rdx
callq 0x82da1
decl 0xc(%rsp)
jne 0x82f22
cmpl $0xa, %r13d
movl $0xa, %eax
cmovbl %r13d, %eax
leaq 0x40fe4(%rip), %rdx # 0xc3f30
movl $0x1000, %ecx # imm = 0x1000
orl (%rdx,%rax,4), %ecx
leaq -0x1ba(%rip), %rsi # 0x82da1
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
callq 0x7ed3f
cmpl $0x0, 0x10(%rsp)
jle 0x82fe2
movslq %ebx, %rbp
movq 0x10(%rsp), %rax
leal -0x1(%rax), %r12d
xorl %r13d, %r13d
leaq 0x40(%rsp), %r15
movq $0x1, 0x40(%rsp)
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x7f044
cmpl $0x0, 0xc0(%rsp)
movl %r12d, %eax
cmovel %r13d, %eax
imull %ebx, %eax
movslq %eax, %rsi
addq 0x80(%rsp), %rsi
movq %rbp, 0x40(%rsp)
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x7f044
incl %r13d
addl $-0x1, %r12d
jb 0x82f83
leaq 0x40(%rsp), %rdx
movq $0x0, (%rdx)
movq %r14, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x4, %r9d
callq 0x7f044
cmpl $0x1, %eax
jne 0x83138
movq 0x20(%rsp), %rax
addq $-0x29, %rax
movq 0x78(%rsp), %r15
movq %rax, (%r15)
movaps 0x40f5c(%rip), %xmm0 # 0xc3f80
leaq 0x4c(%rsp), %rsi
movaps %xmm0, 0x4(%rsi)
movups 0x40f55(%rip), %xmm0 # 0xc3f89
movups %xmm0, 0xd(%rsi)
movaps 0x40f31(%rip), %xmm0 # 0xc3f70
movaps %xmm0, -0xc(%rsi)
movl 0x1c(%rsp), %ecx
movb %ch, 0x52(%rsp)
movb %cl, 0x7(%rsi)
movq 0x10(%rsp), %rcx
movb %ch, 0x56(%rsp)
movb %cl, 0xb(%rsi)
movslq 0x18(%rsp), %rcx
leaq 0x40ef6(%rip), %rdx # 0xc3f5c
movb (%rcx,%rdx), %cl
movb %cl, 0xd(%rsi)
movl %eax, %ecx
shrl $0x18, %ecx
movb %cl, 0x15(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x16(%rsi)
movb %ah, 0x63(%rsp)
movb %al, 0x18(%rsi)
movl $0x11, %edx
xorl %edi, %edi
callq 0x7eb10
movl $0x1d, %ecx
movl %eax, %edx
shrl $0x18, %edx
movb %dl, 0x40(%rsp,%rcx)
shll $0x8, %eax
incq %rcx
cmpq $0x21, %rcx
jne 0x83094
leaq 0x20(%rsp), %rdx
movq 0x10(%rdx), %rax
movups 0x59(%rsp), %xmm0
movups %xmm0, 0x19(%rax)
movaps 0x40(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x40ec6(%rip), %rdi # 0xc3f99
movl $0x10, %esi
callq 0x82da1
testl %eax, %eax
je 0x83131
movq 0x30(%rsp), %rsi
addq $0x25, %rsi
movq (%r15), %rdx
addq $0x4, %rdx
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x7eb10
movl %eax, %ecx
shrl $0x18, %ecx
movq 0x30(%rsp), %rdx
addq 0x20(%rsp), %rdx
movb %cl, -0x10(%rbx,%rdx)
incq %rbx
shll $0x8, %eax
cmpq $0x4, %rbx
jne 0x830fa
addq $0x39, (%r15)
movq %r14, %rdi
callq 0xa700
movq 0x30(%rsp), %rax
jmp 0x8314c
movq %r14, %rdi
jmp 0x83145
movq $0x0, (%r15)
movq %r14, %rdi
callq 0xa700
movq 0x30(%rsp), %rdi
callq 0xa700
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| tdefl_write_image_to_png_file_in_memory_ex:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r13d, r9d
mov r15, r8
mov ebp, ecx
mov ebx, edx
mov r12d, esi
mov [rsp+0B8h+var_38], rdi
mov edi, 4DF78h
call _malloc
mov qword ptr [r15], 0
test rax, rax
jz loc_8314A
mov r14, rax
mov rcx, rbx
mov ebx, ebp
mov [rsp+0B8h+var_9C], r12d
imul ebx, r12d
xorps xmm0, xmm0
movaps [rsp+0B8h+var_88], xmm0
movaps [rsp+0B8h+var_98], xmm0
mov dword ptr [rsp+0B8h+var_88+8], 1
lea eax, [rbx+1]
mov [rsp+0B8h+var_A8], rcx
imul eax, ecx
cmp eax, 41h ; 'A'
mov edi, 40h ; '@'
cmovge edi, eax
add edi, 39h ; '9'
mov qword ptr [rsp+0B8h+var_98+8], rdi
call _malloc
mov qword ptr [rsp+0B8h+var_88], rax
test rax, rax
jz loc_8312C
mov [rsp+0B8h+var_A0], ebp
mov [rsp+0B8h+var_40], r15
lea r15, [rsp+0B8h+var_AC]
mov dword ptr [r15], 29h ; ')'
lea rbp, [rsp+0B8h+var_98]
loc_82F22:
mov rdi, r15
mov esi, 1
mov rdx, rbp
call tdefl_output_buffer_putter
dec [rsp+0B8h+var_AC]
jnz short loc_82F22
cmp r13d, 0Ah
mov eax, 0Ah
cmovb eax, r13d
lea rdx, tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes
mov ecx, 1000h
or ecx, [rdx+rax*4]
lea rsi, tdefl_output_buffer_putter
lea rdx, [rsp+0B8h+var_98]
mov rdi, r14
call tdefl_init
cmp dword ptr [rsp+0B8h+var_A8], 0
jle short loc_82FE2
movsxd rbp, ebx
mov rax, [rsp+0B8h+var_A8]
lea r12d, [rax-1]
xor r13d, r13d
lea r15, [rsp+0B8h+var_78]
loc_82F83:
mov qword ptr [rsp+0B8h+var_78], 1
mov rdi, r14
lea rsi, [rsp+0B8h+var_AC]
mov rdx, r15
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call tdefl_compress
cmp [rsp+0B8h+arg_0], 0
mov eax, r12d
cmovz eax, r13d
imul eax, ebx
movsxd rsi, eax
add rsi, [rsp+0B8h+var_38]
mov qword ptr [rsp+0B8h+var_78], rbp
mov rdi, r14
mov rdx, r15
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call tdefl_compress
inc r13d
add r12d, 0FFFFFFFFh
jb short loc_82F83
loc_82FE2:
lea rdx, [rsp+0B8h+var_78]
mov qword ptr [rdx], 0
mov rdi, r14
xor esi, esi
xor ecx, ecx
xor r8d, r8d
mov r9d, 4
call tdefl_compress
cmp eax, 1
jnz loc_83138
mov rax, qword ptr [rsp+0B8h+var_98]
add rax, 0FFFFFFFFFFFFFFD7h
mov r15, [rsp+0B8h+var_40]
mov [r15], rax
movaps xmm0, cs:xmmword_C3F80
lea rsi, [rsp+0B8h+var_78+0Ch]
movaps xmmword ptr [rsi+4], xmm0
movups xmm0, cs:xmmword_C3F80+9
movups xmmword ptr [rsi+0Dh], xmm0
movaps xmm0, cs:xmmword_C3F70
movaps xmmword ptr [rsi-0Ch], xmm0
mov ecx, [rsp+0B8h+var_9C]
mov [rsp+0B8h+var_66], ch
mov [rsi+7], cl
mov rcx, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_62], ch
mov [rsi+0Bh], cl
movsxd rcx, [rsp+0B8h+var_A0]
lea rdx, tdefl_write_image_to_png_file_in_memory_ex_chans
mov cl, [rcx+rdx]
mov [rsi+0Dh], cl
mov ecx, eax
shr ecx, 18h
mov [rsi+15h], cl
mov ecx, eax
shr ecx, 10h
mov [rsi+16h], cl
mov [rsp+0B8h+var_55], ah
mov [rsi+18h], al
mov edx, 11h
xor edi, edi
call mz_crc32
mov ecx, 1Dh
loc_83094:
mov edx, eax
shr edx, 18h
mov byte ptr [rsp+rcx+0B8h+var_78], dl
shl eax, 8
inc rcx
cmp rcx, 21h ; '!'
jnz short loc_83094
lea rdx, [rsp+0B8h+var_98]
mov rax, [rdx+10h]
movups xmm0, xmmword ptr [rsp+59h]
movups xmmword ptr [rax+19h], xmm0
movaps xmm0, [rsp+0B8h+var_78]
movaps xmm1, xmmword ptr [rsp+50h]
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, unk_C3F99
mov esi, 10h
call tdefl_output_buffer_putter
test eax, eax
jz short loc_83131
mov rsi, qword ptr [rsp+0B8h+var_88]
add rsi, 25h ; '%'
mov rdx, [r15]
add rdx, 4
xor ebx, ebx
xor edi, edi
call mz_crc32
loc_830FA:
mov ecx, eax
shr ecx, 18h
mov rdx, qword ptr [rsp+0B8h+var_88]
add rdx, qword ptr [rsp+0B8h+var_98]
mov [rbx+rdx-10h], cl
inc rbx
shl eax, 8
cmp rbx, 4
jnz short loc_830FA
add qword ptr [r15], 39h ; '9'
mov rdi, r14
call _free
mov rax, qword ptr [rsp+0B8h+var_88]
jmp short loc_8314C
loc_8312C:
mov rdi, r14
jmp short loc_83145
loc_83131:
mov qword ptr [r15], 0
loc_83138:
mov rdi, r14
call _free
mov rdi, qword ptr [rsp+0B8h+var_88]
loc_83145:
call _free
loc_8314A:
xor eax, eax
loc_8314C:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long tdefl_write_image_to_png_file_in_memory_ex(
long long a1,
int a2,
unsigned int a3,
int a4,
_QWORD *a5,
unsigned int a6,
int a7)
{
long long v10; // rbx
long long v11; // rax
long long v12; // r14
long long v13; // rcx
int v14; // ebx
int v15; // edi
long long v16; // rax
int v17; // r12d
int v18; // r13d
int v19; // eax
int v21; // eax
_QWORD *v22; // r15
int v23; // eax
long long i; // rcx
__int128 *v25; // rax
__int128 v26; // xmm0
long long v27; // rbx
int v28; // eax
long long v30; // rdi
int v31; // [rsp+Ch] [rbp-ACh] BYREF
long long v32; // [rsp+10h] [rbp-A8h]
int v33; // [rsp+18h] [rbp-A0h]
int v34; // [rsp+1Ch] [rbp-9Ch]
__int128 v35; // [rsp+20h] [rbp-98h] BYREF
__int128 v36; // [rsp+30h] [rbp-88h]
__int128 v37; // [rsp+40h] [rbp-78h] BYREF
_BYTE v38[25]; // [rsp+50h] [rbp-68h]
_QWORD *v39; // [rsp+78h] [rbp-40h]
long long v40; // [rsp+80h] [rbp-38h]
v10 = a3;
v40 = a1;
v11 = malloc(319352LL);
*a5 = 0LL;
if ( !v11 )
return 0LL;
v12 = v11;
v13 = v10;
v34 = a2;
v14 = a2 * a4;
v36 = 0LL;
v35 = 0LL;
DWORD2(v36) = 1;
v32 = v13;
v15 = 64;
if ( (int)v13 * (a2 * a4 + 1) >= 65 )
v15 = v13 * (a2 * a4 + 1);
*((_QWORD *)&v35 + 1) = (unsigned int)(v15 + 57);
*(_QWORD *)&v36 = malloc(*((_QWORD *)&v35 + 1));
if ( !(_QWORD)v36 )
{
v30 = v12;
LABEL_24:
free(v30);
return 0LL;
}
v33 = a4;
v39 = a5;
v31 = 41;
do
{
tdefl_output_buffer_putter((long long)&v31, 1, (long long)&v35);
--v31;
}
while ( v31 );
v16 = 10LL;
if ( a6 < 0xA )
v16 = a6;
tdefl_init(
v12,
(long long)tdefl_output_buffer_putter,
(long long)&v35,
tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes[v16] | 0x1000);
if ( (int)v32 > 0 )
{
v17 = v32 - 1;
v18 = 0;
do
{
*(_QWORD *)&v37 = 1LL;
tdefl_compress(v12, (long long)&v31, (long long *)&v37, 0LL, 0LL, 0);
v19 = v17;
if ( !a7 )
v19 = v18;
*(_QWORD *)&v37 = v14;
tdefl_compress(v12, v40 + v14 * v19, (long long *)&v37, 0LL, 0LL, 0);
++v18;
}
while ( v17-- != 0 );
}
*(_QWORD *)&v37 = 0LL;
if ( (unsigned int)tdefl_compress(v12, 0LL, (long long *)&v37, 0LL, 0LL, 4u) != 1 )
{
LABEL_23:
free(v12);
v30 = v36;
goto LABEL_24;
}
v21 = v35 - 41;
v22 = v39;
*v39 = v35 - 41;
*(_OWORD *)v38 = xmmword_C3F80;
*(_OWORD *)&v38[9] = *(__int128 *)((char *)&xmmword_C3F80 + 9);
v37 = xmmword_C3F70;
v38[2] = BYTE1(v34);
v38[3] = v34;
v38[6] = BYTE1(v32);
v38[7] = v32;
v38[9] = tdefl_write_image_to_png_file_in_memory_ex_chans[v33];
v38[17] = HIBYTE(v21);
v38[18] = BYTE2(v21);
v38[19] = BYTE1(v21);
v38[20] = v21;
v23 = mz_crc32(0, (_BYTE *)&v37 + 12, 0x11uLL);
for ( i = 29LL; i != 33; ++i )
{
v38[i - 16] = HIBYTE(v23);
v23 <<= 8;
}
v25 = (__int128 *)v36;
*(_OWORD *)(v36 + 25) = *(_OWORD *)&v38[9];
v26 = v37;
v25[1] = *(_OWORD *)v38;
*v25 = v26;
if ( !(unsigned int)tdefl_output_buffer_putter((long long)&unk_C3F99, 16, (long long)&v35) )
{
*v22 = 0LL;
goto LABEL_23;
}
v27 = 0LL;
v28 = mz_crc32(0, (_BYTE *)(v36 + 37), *v22 + 4LL);
do
{
*(_BYTE *)(v27 + v35 + v36 - 16) = HIBYTE(v28);
++v27;
v28 <<= 8;
}
while ( v27 != 4 );
*v22 += 57LL;
free(v12);
return v36;
}
| |||
20,956 | tdefl_write_image_to_png_file_in_memory_ex | 7CodeWizard[P]stablediffusion/thirdparty/miniz.h | void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w,
int h, int num_chans,
size_t *pLen_out,
mz_uint level, mz_bool flip) {
/* Using a local copy of this array here in case MINIZ_NO_ZLIB_APIS was
* defined. */
static const mz_uint s_tdefl_png_num_probes[11] = {
0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500};
tdefl_compressor *pComp =
(tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
tdefl_output_buffer out_buf;
int i, bpl = w * num_chans, y, z;
mz_uint32 c;
*pLen_out = 0;
if (!pComp)
return NULL;
MZ_CLEAR_OBJ(out_buf);
out_buf.m_expandable = MZ_TRUE;
out_buf.m_capacity = 57 + MZ_MAX(64, (1 + bpl) * h);
if (NULL == (out_buf.m_pBuf = (mz_uint8 *)MZ_MALLOC(out_buf.m_capacity))) {
MZ_FREE(pComp);
return NULL;
}
/* write dummy header */
for (z = 41; z; --z)
tdefl_output_buffer_putter(&z, 1, &out_buf);
/* compress image data */
tdefl_init(pComp, tdefl_output_buffer_putter, &out_buf,
s_tdefl_png_num_probes[MZ_MIN(10, level)] |
TDEFL_WRITE_ZLIB_HEADER);
for (y = 0; y < h; ++y) {
tdefl_compress_buffer(pComp, &z, 1, TDEFL_NO_FLUSH);
tdefl_compress_buffer(pComp,
(mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl,
bpl, TDEFL_NO_FLUSH);
}
if (tdefl_compress_buffer(pComp, NULL, 0, TDEFL_FINISH) !=
TDEFL_STATUS_DONE) {
MZ_FREE(pComp);
MZ_FREE(out_buf.m_pBuf);
return NULL;
}
/* write real header */
*pLen_out = out_buf.m_size - 41;
{
static const mz_uint8 chans[] = {0x00, 0x00, 0x04, 0x02, 0x06};
mz_uint8 pnghdr[41] = {0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00,
0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x49, 0x44, 0x41, 0x54};
pnghdr[18] = (mz_uint8)(w >> 8);
pnghdr[19] = (mz_uint8)w;
pnghdr[22] = (mz_uint8)(h >> 8);
pnghdr[23] = (mz_uint8)h;
pnghdr[25] = chans[num_chans];
pnghdr[33] = (mz_uint8)(*pLen_out >> 24);
pnghdr[34] = (mz_uint8)(*pLen_out >> 16);
pnghdr[35] = (mz_uint8)(*pLen_out >> 8);
pnghdr[36] = (mz_uint8)*pLen_out;
c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, pnghdr + 12, 17);
for (i = 0; i < 4; ++i, c <<= 8)
((mz_uint8 *)(pnghdr + 29))[i] = (mz_uint8)(c >> 24);
memcpy(out_buf.m_pBuf, pnghdr, 41);
}
/* write footer (IDAT CRC-32, followed by IEND chunk) */
if (!tdefl_output_buffer_putter(
"\0\0\0\0\0\0\0\0\x49\x45\x4e\x44\xae\x42\x60\x82", 16, &out_buf)) {
*pLen_out = 0;
MZ_FREE(pComp);
MZ_FREE(out_buf.m_pBuf);
return NULL;
}
c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, out_buf.m_pBuf + 41 - 4,
*pLen_out + 4);
for (i = 0; i < 4; ++i, c <<= 8)
(out_buf.m_pBuf + out_buf.m_size - 16)[i] = (mz_uint8)(c >> 24);
/* compute final size of file, grab compressed data buffer and return */
*pLen_out += 57;
MZ_FREE(pComp);
return out_buf.m_pBuf;
} | O2 | c | tdefl_write_image_to_png_file_in_memory_ex:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r9d, %r13d
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, 0x58(%rsp)
movl $0x4df78, %edi # imm = 0x4DF78
callq 0xa7e0
andq $0x0, (%rbx)
testq %rax, %rax
je 0x5d654
movq %rax, %r12
movl %ebp, %eax
movl %r15d, 0x1c(%rsp)
imull %r15d, %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movl $0x1, 0x38(%rsp)
movq %rax, 0x48(%rsp)
incl %eax
movq %r14, 0x40(%rsp)
imull %r14d, %eax
cmpl $0x41, %eax
pushq $0x40
popq %rdi
cmovgel %eax, %edi
addl $0x39, %edi
movq %rdi, 0x28(%rsp)
callq 0xa7e0
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x5d5b3
movl %ebp, 0x18(%rsp)
movq %r12, 0x10(%rsp)
movq %rbx, 0x50(%rsp)
pushq $0x29
popq %r14
leaq 0xc(%rsp), %r15
pushq $0x1
popq %rbp
leaq 0x20(%rsp), %rbx
movl %r14d, 0xc(%rsp)
subl $0x1, %r14d
jb 0x5d45e
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x5d2bf
jmp 0x5d444
cmpl $0xa, %r13d
pushq $0xa
popq %rax
cmovbl %r13d, %eax
leaq 0x429f0(%rip), %rdx # 0x9fe60
movl $0x1000, %ecx # imm = 0x1000
orl (%rdx,%rax,4), %ecx
leaq -0x1c0(%rip), %rsi # 0x5d2bf
leaq 0x20(%rsp), %rdx
movq 0x10(%rsp), %rdi
callq 0x59946
xorl %ebx, %ebx
movq 0x40(%rsp), %rax
testl %eax, %eax
movl $0x0, %r14d
cmovgl %eax, %r14d
movslq 0x48(%rsp), %r13
leal -0x1(%rax), %r15d
pushq $0x1
popq %rbp
movq 0x10(%rsp), %r12
cmpl %ebx, %r14d
je 0x5d4f8
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x5d1c2
cmpl $0x0, 0xd0(%rsp)
movl %r15d, %eax
cmovel %ebx, %eax
imull 0x48(%rsp), %eax
movslq %eax, %rsi
addq 0x58(%rsp), %rsi
movq %r12, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x5d1c2
incl %ebx
decl %r15d
jmp 0x5d4b2
pushq $0x4
popq %rcx
movq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5d1c2
cmpl $0x1, %eax
jne 0x5d642
movq 0x20(%rsp), %rax
addq $-0x29, %rax
movq 0x50(%rsp), %r14
movq %rax, (%r14)
movaps 0x42983(%rip), %xmm0 # 0x9feb0
leaq 0x6c(%rsp), %rsi
movaps %xmm0, 0x4(%rsi)
movups 0x4297c(%rip), %xmm0 # 0x9feb9
movups %xmm0, 0xd(%rsi)
movaps 0x42958(%rip), %xmm0 # 0x9fea0
movaps %xmm0, -0xc(%rsi)
movl 0x1c(%rsp), %ecx
movb %ch, 0x72(%rsp)
movb %cl, 0x7(%rsi)
movq 0x40(%rsp), %rcx
movb %ch, 0x76(%rsp)
movb %cl, 0xb(%rsi)
movslq 0x18(%rsp), %rcx
leaq 0x4291d(%rip), %rdx # 0x9fe8c
movb (%rcx,%rdx), %cl
movb %cl, 0xd(%rsi)
movl %eax, %ecx
shrl $0x18, %ecx
movb %cl, 0x15(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x16(%rsi)
movb %ah, 0x83(%rsp)
movb %al, 0x18(%rsi)
pushq $0x11
popq %rdx
xorl %edi, %edi
callq 0x5973b
pushq $0x1d
popq %rcx
cmpq $0x21, %rcx
je 0x5d5bb
movl %eax, %edx
shrl $0x18, %edx
movb %dl, 0x60(%rsp,%rcx)
shll $0x8, %eax
incq %rcx
jmp 0x5d59c
movq %r12, %rdi
jmp 0x5d64f
leaq 0x20(%rsp), %rdx
movq 0x10(%rdx), %rax
movups 0x79(%rsp), %xmm0
movups %xmm0, 0x19(%rax)
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x428e4(%rip), %rdi # 0x9fec9
pushq $0x10
popq %rsi
callq 0x5d2bf
testl %eax, %eax
je 0x5d63e
movq 0x30(%rsp), %rsi
addq $0x25, %rsi
movq (%r14), %rdx
addq $0x4, %rdx
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x5973b
cmpq $0x4, %rbx
je 0x5d62b
movl %eax, %ecx
movq 0x30(%rsp), %rdx
addq 0x20(%rsp), %rdx
shrl $0x18, %ecx
movb %cl, -0x10(%rbx,%rdx)
incq %rbx
shll $0x8, %eax
jmp 0x5d60a
addq $0x39, (%r14)
movq %r15, %rdi
callq 0xa710
movq 0x30(%rsp), %rax
jmp 0x5d656
andq $0x0, (%r14)
movq %r15, %rdi
callq 0xa710
movq 0x30(%rsp), %rdi
callq 0xa710
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| tdefl_write_image_to_png_file_in_memory_ex:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r13d, r9d
mov rbx, r8
mov ebp, ecx
mov r14d, edx
mov r15d, esi
mov [rsp+0C8h+var_70], rdi
mov edi, 4DF78h
call _malloc
and qword ptr [rbx], 0
test rax, rax
jz loc_5D654
mov r12, rax
mov eax, ebp
mov [rsp+0C8h+var_AC], r15d
imul eax, r15d
xorps xmm0, xmm0
movaps [rsp+0C8h+var_98], xmm0
movaps [rsp+0C8h+var_A8], xmm0
mov dword ptr [rsp+0C8h+var_98+8], 1
mov [rsp+0C8h+var_80], rax
inc eax
mov [rsp+0C8h+var_88], r14
imul eax, r14d
cmp eax, 41h ; 'A'
push 40h ; '@'
pop rdi
cmovge edi, eax
add edi, 39h ; '9'
mov qword ptr [rsp+0C8h+var_A8+8], rdi
call _malloc
mov qword ptr [rsp+0C8h+var_98], rax
test rax, rax
jz loc_5D5B3
mov [rsp+0C8h+var_B0], ebp
mov [rsp+0C8h+var_B8], r12
mov [rsp+0C8h+var_78], rbx
push 29h ; ')'
pop r14
lea r15, [rsp+0C8h+var_BC]
push 1
pop rbp
lea rbx, [rsp+0C8h+var_A8]
loc_5D444:
mov [rsp+0C8h+var_BC], r14d
sub r14d, 1
jb short loc_5D45E
mov rdi, r15
mov esi, ebp
mov rdx, rbx
call tdefl_output_buffer_putter
jmp short loc_5D444
loc_5D45E:
cmp r13d, 0Ah
push 0Ah
pop rax
cmovb eax, r13d
lea rdx, tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes
mov ecx, 1000h
or ecx, [rdx+rax*4]
lea rsi, tdefl_output_buffer_putter
lea rdx, [rsp+0C8h+var_A8]
mov rdi, [rsp+0C8h+var_B8]
call tdefl_init
xor ebx, ebx
mov rax, [rsp+0C8h+var_88]
test eax, eax
mov r14d, 0
cmovg r14d, eax
movsxd r13, dword ptr [rsp+0C8h+var_80]
lea r15d, [rax-1]
push 1
pop rbp
mov r12, [rsp+0C8h+var_B8]
loc_5D4B2:
cmp r14d, ebx
jz short loc_5D4F8
mov rdi, r12
lea rsi, [rsp+0C8h+var_BC]
mov rdx, rbp
xor ecx, ecx
call tdefl_compress_buffer
cmp [rsp+0C8h+arg_0], 0
mov eax, r15d
cmovz eax, ebx
imul eax, dword ptr [rsp+0C8h+var_80]
movsxd rsi, eax
add rsi, [rsp+0C8h+var_70]
mov rdi, r12
mov rdx, r13
xor ecx, ecx
call tdefl_compress_buffer
inc ebx
dec r15d
jmp short loc_5D4B2
loc_5D4F8:
push 4
pop rcx
mov r15, [rsp+0C8h+var_B8]
mov rdi, r15
xor esi, esi
xor edx, edx
call tdefl_compress_buffer
cmp eax, 1
jnz loc_5D642
mov rax, qword ptr [rsp+0C8h+var_A8]
add rax, 0FFFFFFFFFFFFFFD7h
mov r14, [rsp+0C8h+var_78]
mov [r14], rax
movaps xmm0, cs:xmmword_9FEB0
lea rsi, [rsp+0C8h+var_68+0Ch]
movaps xmmword ptr [rsi+4], xmm0
movups xmm0, cs:xmmword_9FEB0+9
movups xmmword ptr [rsi+0Dh], xmm0
movaps xmm0, cs:xmmword_9FEA0
movaps xmmword ptr [rsi-0Ch], xmm0
mov ecx, [rsp+0C8h+var_AC]
mov [rsp+0C8h+var_56], ch
mov [rsi+7], cl
mov rcx, [rsp+0C8h+var_88]
mov [rsp+0C8h+var_52], ch
mov [rsi+0Bh], cl
movsxd rcx, [rsp+0C8h+var_B0]
lea rdx, tdefl_write_image_to_png_file_in_memory_ex_chans
mov cl, [rcx+rdx]
mov [rsi+0Dh], cl
mov ecx, eax
shr ecx, 18h
mov [rsi+15h], cl
mov ecx, eax
shr ecx, 10h
mov [rsi+16h], cl
mov [rsp+0C8h+var_45], ah
mov [rsi+18h], al
push 11h
pop rdx
xor edi, edi
call mz_crc32
push 1Dh
pop rcx
loc_5D59C:
cmp rcx, 21h ; '!'
jz short loc_5D5BB
mov edx, eax
shr edx, 18h
mov byte ptr [rsp+rcx+0C8h+var_68], dl
shl eax, 8
inc rcx
jmp short loc_5D59C
loc_5D5B3:
mov rdi, r12
jmp loc_5D64F
loc_5D5BB:
lea rdx, [rsp+0C8h+var_A8]
mov rax, [rdx+10h]
movups xmm0, xmmword ptr [rsp+79h]
movups xmmword ptr [rax+19h], xmm0
movaps xmm0, [rsp+0C8h+var_68]
movaps xmm1, xmmword ptr [rsp+70h]
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, unk_9FEC9
push 10h
pop rsi
call tdefl_output_buffer_putter
test eax, eax
jz short loc_5D63E
mov rsi, qword ptr [rsp+0C8h+var_98]
add rsi, 25h ; '%'
mov rdx, [r14]
add rdx, 4
xor ebx, ebx
xor edi, edi
call mz_crc32
loc_5D60A:
cmp rbx, 4
jz short loc_5D62B
mov ecx, eax
mov rdx, qword ptr [rsp+0C8h+var_98]
add rdx, qword ptr [rsp+0C8h+var_A8]
shr ecx, 18h
mov [rbx+rdx-10h], cl
inc rbx
shl eax, 8
jmp short loc_5D60A
loc_5D62B:
add qword ptr [r14], 39h ; '9'
mov rdi, r15
call _free
mov rax, qword ptr [rsp+0C8h+var_98]
jmp short loc_5D656
loc_5D63E:
and qword ptr [r14], 0
loc_5D642:
mov rdi, r15
call _free
mov rdi, qword ptr [rsp+0C8h+var_98]
loc_5D64F:
call _free
loc_5D654:
xor eax, eax
loc_5D656:
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long tdefl_write_image_to_png_file_in_memory_ex(
long long a1,
int a2,
unsigned int a3,
int a4,
_QWORD *a5,
unsigned int a6,
int a7)
{
long long v10; // r14
long long v11; // rax
long long v12; // r12
int v13; // edi
int v14; // r14d
long long v16; // rax
int v17; // ebx
int v18; // r14d
long long v19; // r13
int v20; // r15d
long long v21; // r12
int v22; // eax
long long v23; // r15
int v24; // eax
_QWORD *v25; // r14
int v26; // eax
long long i; // rcx
long long v28; // rdi
__int128 *v29; // rax
__int128 v30; // xmm0
long long v31; // rbx
int v32; // eax
int v34; // [rsp+Ch] [rbp-BCh] BYREF
long long v35; // [rsp+10h] [rbp-B8h]
int v36; // [rsp+18h] [rbp-B0h]
int v37; // [rsp+1Ch] [rbp-ACh]
__int128 v38; // [rsp+20h] [rbp-A8h] BYREF
__int128 v39; // [rsp+30h] [rbp-98h]
long long v40; // [rsp+40h] [rbp-88h]
long long v41; // [rsp+48h] [rbp-80h]
_QWORD *v42; // [rsp+50h] [rbp-78h]
long long v43; // [rsp+58h] [rbp-70h]
__int128 v44; // [rsp+60h] [rbp-68h] BYREF
_BYTE v45[25]; // [rsp+70h] [rbp-58h]
v10 = a3;
v43 = a1;
v11 = malloc(319352LL);
*a5 = 0LL;
if ( !v11 )
return 0LL;
v12 = v11;
v37 = a2;
v39 = 0LL;
v38 = 0LL;
DWORD2(v39) = 1;
v41 = (unsigned int)(a2 * a4);
v40 = v10;
v13 = 64;
if ( (int)v10 * ((int)v41 + 1) >= 65 )
v13 = v10 * (v41 + 1);
*((_QWORD *)&v38 + 1) = (unsigned int)(v13 + 57);
*(_QWORD *)&v39 = malloc(*((_QWORD *)&v38 + 1));
if ( !(_QWORD)v39 )
{
v28 = v12;
LABEL_29:
free(v28);
return 0LL;
}
v36 = a4;
v35 = v12;
v42 = a5;
v14 = 41;
while ( 1 )
{
v34 = v14;
if ( v14-- == 0 )
break;
tdefl_output_buffer_putter((long long)&v34, 1, (unsigned long long *)&v38);
}
v16 = 10LL;
if ( a6 < 0xA )
v16 = a6;
tdefl_init(
v35,
(long long)tdefl_output_buffer_putter,
(long long)&v38,
tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes[v16] | 0x1000);
v17 = 0;
v18 = 0;
if ( (int)v40 > 0 )
v18 = v40;
v19 = (int)v41;
v20 = v40 - 1;
v21 = v35;
while ( v18 != v17 )
{
tdefl_compress_buffer(v21, (long long)&v34, 1LL, 0);
v22 = v20;
if ( !a7 )
v22 = v17;
tdefl_compress_buffer(v21, v43 + (int)v41 * v22, v19, 0);
++v17;
--v20;
}
v23 = v35;
if ( (unsigned int)tdefl_compress_buffer(v35, 0LL, 0LL, 4u) != 1 )
{
LABEL_28:
free(v23);
v28 = v39;
goto LABEL_29;
}
v24 = v38 - 41;
v25 = v42;
*v42 = v38 - 41;
*(_OWORD *)v45 = xmmword_9FEB0;
*(_OWORD *)&v45[9] = *(__int128 *)((char *)&xmmword_9FEB0 + 9);
v44 = xmmword_9FEA0;
v45[2] = BYTE1(v37);
v45[3] = v37;
v45[6] = BYTE1(v40);
v45[7] = v40;
v45[9] = tdefl_write_image_to_png_file_in_memory_ex_chans[v36];
v45[17] = HIBYTE(v24);
v45[18] = BYTE2(v24);
v45[19] = BYTE1(v24);
v45[20] = v24;
v26 = mz_crc32(0, (_BYTE *)&v44 + 12, 0x11uLL);
for ( i = 29LL; i != 33; ++i )
{
v45[i - 16] = HIBYTE(v26);
v26 <<= 8;
}
v29 = (__int128 *)v39;
*(_OWORD *)(v39 + 25) = *(_OWORD *)&v45[9];
v30 = v44;
v29[1] = *(_OWORD *)v45;
*v29 = v30;
if ( !(unsigned int)tdefl_output_buffer_putter((long long)&unk_9FEC9, 16, (unsigned long long *)&v38) )
{
*v25 = 0LL;
goto LABEL_28;
}
v31 = 0LL;
v32 = mz_crc32(0, (_BYTE *)(v39 + 37), *v25 + 4LL);
while ( v31 != 4 )
{
*(_BYTE *)(v31 + v38 + v39 - 16) = HIBYTE(v32);
++v31;
v32 <<= 8;
}
*v25 += 57LL;
free(v23);
return v39;
}
| tdefl_write_image_to_png_file_in_memory_ex:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R13D,R9D
MOV RBX,R8
MOV EBP,ECX
MOV R14D,EDX
MOV R15D,ESI
MOV qword ptr [RSP + 0x58],RDI
MOV EDI,0x4df78
CALL 0x0010a7e0
AND qword ptr [RBX],0x0
TEST RAX,RAX
JZ 0x0015d654
MOV R12,RAX
MOV EAX,EBP
MOV dword ptr [RSP + 0x1c],R15D
IMUL EAX,R15D
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV dword ptr [RSP + 0x38],0x1
MOV qword ptr [RSP + 0x48],RAX
INC EAX
MOV qword ptr [RSP + 0x40],R14
IMUL EAX,R14D
CMP EAX,0x41
PUSH 0x40
POP RDI
CMOVGE EDI,EAX
ADD EDI,0x39
MOV qword ptr [RSP + 0x28],RDI
CALL 0x0010a7e0
MOV qword ptr [RSP + 0x30],RAX
TEST RAX,RAX
JZ 0x0015d5b3
MOV dword ptr [RSP + 0x18],EBP
MOV qword ptr [RSP + 0x10],R12
MOV qword ptr [RSP + 0x50],RBX
PUSH 0x29
POP R14
LEA R15,[RSP + 0xc]
PUSH 0x1
POP RBP
LEA RBX,[RSP + 0x20]
LAB_0015d444:
MOV dword ptr [RSP + 0xc],R14D
SUB R14D,0x1
JC 0x0015d45e
MOV RDI,R15
MOV ESI,EBP
MOV RDX,RBX
CALL 0x0015d2bf
JMP 0x0015d444
LAB_0015d45e:
CMP R13D,0xa
PUSH 0xa
POP RAX
CMOVC EAX,R13D
LEA RDX,[0x19fe60]
MOV ECX,0x1000
OR ECX,dword ptr [RDX + RAX*0x4]
LEA RSI,[0x15d2bf]
LEA RDX,[RSP + 0x20]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00159946
XOR EBX,EBX
MOV RAX,qword ptr [RSP + 0x40]
TEST EAX,EAX
MOV R14D,0x0
CMOVG R14D,EAX
MOVSXD R13,dword ptr [RSP + 0x48]
LEA R15D,[RAX + -0x1]
PUSH 0x1
POP RBP
MOV R12,qword ptr [RSP + 0x10]
LAB_0015d4b2:
CMP R14D,EBX
JZ 0x0015d4f8
MOV RDI,R12
LEA RSI,[RSP + 0xc]
MOV RDX,RBP
XOR ECX,ECX
CALL 0x0015d1c2
CMP dword ptr [RSP + 0xd0],0x0
MOV EAX,R15D
CMOVZ EAX,EBX
IMUL EAX,dword ptr [RSP + 0x48]
MOVSXD RSI,EAX
ADD RSI,qword ptr [RSP + 0x58]
MOV RDI,R12
MOV RDX,R13
XOR ECX,ECX
CALL 0x0015d1c2
INC EBX
DEC R15D
JMP 0x0015d4b2
LAB_0015d4f8:
PUSH 0x4
POP RCX
MOV R15,qword ptr [RSP + 0x10]
MOV RDI,R15
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0015d1c2
CMP EAX,0x1
JNZ 0x0015d642
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,-0x29
MOV R14,qword ptr [RSP + 0x50]
MOV qword ptr [R14],RAX
MOVAPS XMM0,xmmword ptr [0x0019feb0]
LEA RSI,[RSP + 0x6c]
MOVAPS xmmword ptr [RSI + 0x4],XMM0
MOVUPS XMM0,xmmword ptr [0x0019feb9]
MOVUPS xmmword ptr [RSI + 0xd],XMM0
MOVAPS XMM0,xmmword ptr [0x0019fea0]
MOVAPS xmmword ptr [RSI + -0xc],XMM0
MOV ECX,dword ptr [RSP + 0x1c]
MOV byte ptr [RSP + 0x72],CH
MOV byte ptr [RSI + 0x7],CL
MOV RCX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x76],CH
MOV byte ptr [RSI + 0xb],CL
MOVSXD RCX,dword ptr [RSP + 0x18]
LEA RDX,[0x19fe8c]
MOV CL,byte ptr [RCX + RDX*0x1]
MOV byte ptr [RSI + 0xd],CL
MOV ECX,EAX
SHR ECX,0x18
MOV byte ptr [RSI + 0x15],CL
MOV ECX,EAX
SHR ECX,0x10
MOV byte ptr [RSI + 0x16],CL
MOV byte ptr [RSP + 0x83],AH
MOV byte ptr [RSI + 0x18],AL
PUSH 0x11
POP RDX
XOR EDI,EDI
CALL 0x0015973b
PUSH 0x1d
POP RCX
LAB_0015d59c:
CMP RCX,0x21
JZ 0x0015d5bb
MOV EDX,EAX
SHR EDX,0x18
MOV byte ptr [RSP + RCX*0x1 + 0x60],DL
SHL EAX,0x8
INC RCX
JMP 0x0015d59c
LAB_0015d5b3:
MOV RDI,R12
JMP 0x0015d64f
LAB_0015d5bb:
LEA RDX,[RSP + 0x20]
MOV RAX,qword ptr [RDX + 0x10]
MOVUPS XMM0,xmmword ptr [RSP + 0x79]
MOVUPS xmmword ptr [RAX + 0x19],XMM0
MOVAPS XMM0,xmmword ptr [RSP + 0x60]
MOVAPS XMM1,xmmword ptr [RSP + 0x70]
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
LEA RDI,[0x19fec9]
PUSH 0x10
POP RSI
CALL 0x0015d2bf
TEST EAX,EAX
JZ 0x0015d63e
MOV RSI,qword ptr [RSP + 0x30]
ADD RSI,0x25
MOV RDX,qword ptr [R14]
ADD RDX,0x4
XOR EBX,EBX
XOR EDI,EDI
CALL 0x0015973b
LAB_0015d60a:
CMP RBX,0x4
JZ 0x0015d62b
MOV ECX,EAX
MOV RDX,qword ptr [RSP + 0x30]
ADD RDX,qword ptr [RSP + 0x20]
SHR ECX,0x18
MOV byte ptr [RBX + RDX*0x1 + -0x10],CL
INC RBX
SHL EAX,0x8
JMP 0x0015d60a
LAB_0015d62b:
ADD qword ptr [R14],0x39
MOV RDI,R15
CALL 0x0010a710
MOV RAX,qword ptr [RSP + 0x30]
JMP 0x0015d656
LAB_0015d63e:
AND qword ptr [R14],0x0
LAB_0015d642:
MOV RDI,R15
CALL 0x0010a710
MOV RDI,qword ptr [RSP + 0x30]
LAB_0015d64f:
CALL 0x0010a710
LAB_0015d654:
XOR EAX,EAX
LAB_0015d656:
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int4 *
tdefl_write_image_to_png_file_in_memory_ex
(long param_1,int param_2,uint param_3,int param_4,long *param_5,uint param_6,int param_7)
{
int4 *__ptr;
long *plVar1;
int iVar2;
int iVar3;
int4 *puVar4;
ulong uVar5;
int iVar6;
long lVar7;
int iVar8;
int local_bc;
int4 *local_b8;
int local_b0;
int local_ac;
long local_a8;
ulong uStack_a0;
int4 *local_98;
int8 uStack_90;
ulong local_88;
ulong local_80;
long *local_78;
long local_70;
int4 local_68;
int4 uStack_64;
int4 uStack_60;
int4 uStack_5c;
int4 local_58;
int4 uStack_54;
int1 uStack_50;
int1 uStack_4f;
int2 uStack_4e;
int4 uStack_4c;
int1 uStack_48;
int8 local_47;
local_70 = param_1;
puVar4 = (int4 *)malloc(0x4df78);
*param_5 = 0;
if (puVar4 != (int4 *)0x0) {
local_80 = (ulong)(uint)(param_4 * param_2);
local_98 = (int4 *)0x0;
local_a8 = 0;
uStack_90 = 1;
iVar2 = (param_4 * param_2 + 1U) * param_3;
iVar8 = 0x40;
if (0x40 < iVar2) {
iVar8 = iVar2;
}
uStack_a0 = (ulong)(iVar8 + 0x39);
local_ac = param_2;
local_88 = (ulong)param_3;
local_98 = (int4 *)malloc(uStack_a0);
if (local_98 != (int4 *)0x0) {
local_b8 = puVar4;
local_b0 = param_4;
local_78 = param_5;
local_bc = 0x29;
while (iVar8 = local_bc + -1, local_bc != 0) {
tdefl_output_buffer_putter(&local_bc,1,&local_a8);
local_bc = iVar8;
}
uVar5 = 10;
if (param_6 < 10) {
uVar5 = (ulong)param_6;
}
tdefl_init(local_b8,tdefl_output_buffer_putter,&local_a8,
*(uint *)(tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes +
uVar5 * 4) | 0x1000);
puVar4 = local_b8;
iVar6 = 0;
iVar8 = (int)local_88;
iVar2 = 0;
if (0 < iVar8) {
iVar2 = iVar8;
}
lVar7 = (long)(int)local_80;
for (; __ptr = local_b8, iVar8 = iVar8 + -1, iVar2 != iVar6; iVar6 = iVar6 + 1) {
tdefl_compress_buffer(puVar4,&local_bc,1,0);
iVar3 = iVar8;
if (param_7 == 0) {
iVar3 = iVar6;
}
tdefl_compress_buffer(puVar4,iVar3 * (int)local_80 + local_70,lVar7,0);
}
iVar8 = tdefl_compress_buffer(local_b8,0,0,4);
plVar1 = local_78;
if (iVar8 == 1) {
lVar7 = local_a8 + -0x29;
*local_78 = lVar7;
uStack_50 = UNK_0019feb8;
uStack_4e = (int2)((uint7)_DAT_0019feb9 >> 8);
uStack_4c = (int4)((uint7)_DAT_0019feb9 >> 0x18);
uStack_48 = UNK_0019fec0;
local_68 = _DAT_0019fea0;
uStack_64 = _UNK_0019fea4;
uStack_60 = _UNK_0019fea8;
uStack_5c = _UNK_0019feac;
uStack_54 = (int4)((ulong)_DAT_0019feb0 >> 0x20);
local_58 = CONCAT13((char)local_ac,
CONCAT12((char)((uint)local_ac >> 8),(short)_DAT_0019feb0));
_local_58 = CONCAT17((char)local_88,CONCAT16((char)(local_88 >> 8),_local_58));
uStack_4f = *(int1 *)
((long)&tdefl_write_image_to_png_file_in_memory_ex_chans + (long)local_b0);
local_47._4_4_ = (int4)((ulong)_UNK_0019fec1 >> 0x20);
local_47 = CONCAT44(local_47._4_4_,
CONCAT13((char)lVar7,
CONCAT12((char)((ulong)lVar7 >> 8),
CONCAT11((char)((ulong)lVar7 >> 0x10),
(char)((ulong)lVar7 >> 0x18)))));
uVar5 = mz_crc32(0,&uStack_5c,0x11);
for (lVar7 = 0x1d; lVar7 != 0x21; lVar7 = lVar7 + 1) {
*(char *)((long)&local_68 + lVar7) = (char)(uVar5 >> 0x18);
uVar5 = (ulong)(uint)((int)uVar5 << 8);
}
*(ulong *)((long)local_98 + 0x19) =
CONCAT17(uStack_48,CONCAT43(uStack_4c,CONCAT21(uStack_4e,uStack_4f)));
*(int8 *)((long)local_98 + 0x21) = local_47;
local_98[4] = local_58;
local_98[5] = uStack_54;
local_98[6] = CONCAT22(uStack_4e,CONCAT11(uStack_4f,uStack_50));
local_98[7] = uStack_4c;
*local_98 = local_68;
local_98[1] = uStack_64;
local_98[2] = uStack_60;
local_98[3] = uStack_5c;
iVar8 = tdefl_output_buffer_putter(&DAT_0019fec9,0x10);
if (iVar8 != 0) {
uVar5 = mz_crc32(0,(long)local_98 + 0x25,*plVar1 + 4);
for (lVar7 = 0; lVar7 != 4; lVar7 = lVar7 + 1) {
*(char *)((long)local_98 + lVar7 + -0x10 + local_a8) = (char)(uVar5 >> 0x18);
uVar5 = (ulong)(uint)((int)uVar5 << 8);
}
*plVar1 = *plVar1 + 0x39;
free(__ptr);
return local_98;
}
*plVar1 = 0;
}
free(__ptr);
puVar4 = local_98;
}
free(puVar4);
}
return (int4 *)0x0;
}
| |
20,957 | tdefl_write_image_to_png_file_in_memory_ex | 7CodeWizard[P]stablediffusion/thirdparty/miniz.h | void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w,
int h, int num_chans,
size_t *pLen_out,
mz_uint level, mz_bool flip) {
/* Using a local copy of this array here in case MINIZ_NO_ZLIB_APIS was
* defined. */
static const mz_uint s_tdefl_png_num_probes[11] = {
0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500};
tdefl_compressor *pComp =
(tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
tdefl_output_buffer out_buf;
int i, bpl = w * num_chans, y, z;
mz_uint32 c;
*pLen_out = 0;
if (!pComp)
return NULL;
MZ_CLEAR_OBJ(out_buf);
out_buf.m_expandable = MZ_TRUE;
out_buf.m_capacity = 57 + MZ_MAX(64, (1 + bpl) * h);
if (NULL == (out_buf.m_pBuf = (mz_uint8 *)MZ_MALLOC(out_buf.m_capacity))) {
MZ_FREE(pComp);
return NULL;
}
/* write dummy header */
for (z = 41; z; --z)
tdefl_output_buffer_putter(&z, 1, &out_buf);
/* compress image data */
tdefl_init(pComp, tdefl_output_buffer_putter, &out_buf,
s_tdefl_png_num_probes[MZ_MIN(10, level)] |
TDEFL_WRITE_ZLIB_HEADER);
for (y = 0; y < h; ++y) {
tdefl_compress_buffer(pComp, &z, 1, TDEFL_NO_FLUSH);
tdefl_compress_buffer(pComp,
(mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl,
bpl, TDEFL_NO_FLUSH);
}
if (tdefl_compress_buffer(pComp, NULL, 0, TDEFL_FINISH) !=
TDEFL_STATUS_DONE) {
MZ_FREE(pComp);
MZ_FREE(out_buf.m_pBuf);
return NULL;
}
/* write real header */
*pLen_out = out_buf.m_size - 41;
{
static const mz_uint8 chans[] = {0x00, 0x00, 0x04, 0x02, 0x06};
mz_uint8 pnghdr[41] = {0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00,
0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x49, 0x44, 0x41, 0x54};
pnghdr[18] = (mz_uint8)(w >> 8);
pnghdr[19] = (mz_uint8)w;
pnghdr[22] = (mz_uint8)(h >> 8);
pnghdr[23] = (mz_uint8)h;
pnghdr[25] = chans[num_chans];
pnghdr[33] = (mz_uint8)(*pLen_out >> 24);
pnghdr[34] = (mz_uint8)(*pLen_out >> 16);
pnghdr[35] = (mz_uint8)(*pLen_out >> 8);
pnghdr[36] = (mz_uint8)*pLen_out;
c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, pnghdr + 12, 17);
for (i = 0; i < 4; ++i, c <<= 8)
((mz_uint8 *)(pnghdr + 29))[i] = (mz_uint8)(c >> 24);
memcpy(out_buf.m_pBuf, pnghdr, 41);
}
/* write footer (IDAT CRC-32, followed by IEND chunk) */
if (!tdefl_output_buffer_putter(
"\0\0\0\0\0\0\0\0\x49\x45\x4e\x44\xae\x42\x60\x82", 16, &out_buf)) {
*pLen_out = 0;
MZ_FREE(pComp);
MZ_FREE(out_buf.m_pBuf);
return NULL;
}
c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, out_buf.m_pBuf + 41 - 4,
*pLen_out + 4);
for (i = 0; i < 4; ++i, c <<= 8)
(out_buf.m_pBuf + out_buf.m_size - 16)[i] = (mz_uint8)(c >> 24);
/* compute final size of file, grab compressed data buffer and return */
*pLen_out += 57;
MZ_FREE(pComp);
return out_buf.m_pBuf;
} | O3 | c | tdefl_write_image_to_png_file_in_memory_ex:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %r9d, %r13d
movq %r8, %r15
movl %ecx, %ebp
movl %edx, %ebx
movl %esi, %r12d
movq %rdi, 0x80(%rsp)
movl $0x4df78, %edi # imm = 0x4DF78
callq 0xa7b0
movq $0x0, (%r15)
testq %rax, %rax
je 0x821ac
movq %rax, %r14
movq %rbx, %rcx
movl %ebp, %ebx
movl %r12d, 0x1c(%rsp)
imull %r12d, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movl $0x1, 0x38(%rsp)
leal 0x1(%rbx), %eax
movq %rcx, 0x10(%rsp)
imull %ecx, %eax
cmpl $0x41, %eax
movl $0x40, %edi
cmovgel %eax, %edi
addl $0x39, %edi
movq %rdi, 0x28(%rsp)
callq 0xa7b0
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x8218e
movl %ebp, 0x18(%rsp)
movq %r15, 0x78(%rsp)
leaq 0xc(%rsp), %r15
movl $0x29, (%r15)
movl $0x28, %r12d
leaq 0x20(%rsp), %rbp
movq %r15, %rdi
movl $0x1, %esi
movq %rbp, %rdx
callq 0x81df2
movl %r12d, 0xc(%rsp)
addl $-0x1, %r12d
jb 0x81f7f
cmpl $0xa, %r13d
movl $0xa, %eax
cmovbl %r13d, %eax
leaq 0x40f92(%rip), %rdx # 0xc2f40
movl $0x1000, %ecx # imm = 0x1000
orl (%rdx,%rax,4), %ecx
leaq -0x1cb(%rip), %rsi # 0x81df2
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
callq 0x7dcc6
cmpl $0x0, 0x10(%rsp)
jle 0x82044
movslq %ebx, %rbp
movq 0x10(%rsp), %rax
leal -0x1(%rax), %r12d
xorl %r13d, %r13d
leaq 0x40(%rsp), %r15
movq $0x1, 0x40(%rsp)
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x7dfca
cmpl $0x0, 0xc0(%rsp)
movl %r12d, %eax
cmovel %r13d, %eax
imull %ebx, %eax
movslq %eax, %rsi
addq 0x80(%rsp), %rsi
movq %rbp, 0x40(%rsp)
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x7dfca
incl %r13d
addl $-0x1, %r12d
jb 0x81fe5
leaq 0x40(%rsp), %rdx
movq $0x0, (%rdx)
movq %r14, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x4, %r9d
callq 0x7dfca
cmpl $0x1, %eax
jne 0x8219a
movq 0x20(%rsp), %rax
addq $-0x29, %rax
movq 0x78(%rsp), %r15
movq %rax, (%r15)
movaps 0x40f0a(%rip), %xmm0 # 0xc2f90
leaq 0x4c(%rsp), %rsi
movaps %xmm0, 0x4(%rsi)
movups 0x40f03(%rip), %xmm0 # 0xc2f99
movups %xmm0, 0xd(%rsi)
movaps 0x40edf(%rip), %xmm0 # 0xc2f80
movaps %xmm0, -0xc(%rsi)
movl 0x1c(%rsp), %ecx
movb %ch, 0x52(%rsp)
movb %cl, 0x7(%rsi)
movq 0x10(%rsp), %rcx
movb %ch, 0x56(%rsp)
movb %cl, 0xb(%rsi)
movslq 0x18(%rsp), %rcx
leaq 0x40ea4(%rip), %rdx # 0xc2f6c
movb (%rcx,%rdx), %cl
movb %cl, 0xd(%rsi)
movl %eax, %ecx
shrl $0x18, %ecx
movb %cl, 0x15(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x16(%rsi)
movb %ah, 0x63(%rsp)
movb %al, 0x18(%rsi)
movl $0x11, %edx
xorl %edi, %edi
callq 0x7da98
movl $0x1d, %ecx
movl %eax, %edx
shrl $0x18, %edx
movb %dl, 0x40(%rsp,%rcx)
shll $0x8, %eax
incq %rcx
cmpq $0x21, %rcx
jne 0x820f6
leaq 0x20(%rsp), %rdx
movq 0x10(%rdx), %rax
movups 0x59(%rsp), %xmm0
movups %xmm0, 0x19(%rax)
movaps 0x40(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x40e74(%rip), %rdi # 0xc2fa9
movl $0x10, %esi
callq 0x81df2
testl %eax, %eax
je 0x82193
movq 0x30(%rsp), %rsi
addq $0x25, %rsi
movq (%r15), %rdx
addq $0x4, %rdx
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x7da98
movl %eax, %ecx
shrl $0x18, %ecx
movq 0x30(%rsp), %rdx
addq 0x20(%rsp), %rdx
movb %cl, -0x10(%rbx,%rdx)
incq %rbx
shll $0x8, %eax
cmpq $0x4, %rbx
jne 0x8215c
addq $0x39, (%r15)
movq %r14, %rdi
callq 0xa6f0
movq 0x30(%rsp), %rax
jmp 0x821ae
movq %r14, %rdi
jmp 0x821a7
movq $0x0, (%r15)
movq %r14, %rdi
callq 0xa6f0
movq 0x30(%rsp), %rdi
callq 0xa6f0
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| tdefl_write_image_to_png_file_in_memory_ex:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r13d, r9d
mov r15, r8
mov ebp, ecx
mov ebx, edx
mov r12d, esi
mov [rsp+0B8h+var_38], rdi
mov edi, 4DF78h
call _malloc
mov qword ptr [r15], 0
test rax, rax
jz loc_821AC
mov r14, rax
mov rcx, rbx
mov ebx, ebp
mov [rsp+0B8h+var_9C], r12d
imul ebx, r12d
xorps xmm0, xmm0
movaps [rsp+0B8h+var_88], xmm0
movaps [rsp+0B8h+var_98], xmm0
mov dword ptr [rsp+0B8h+var_88+8], 1
lea eax, [rbx+1]
mov [rsp+0B8h+var_A8], rcx
imul eax, ecx
cmp eax, 41h ; 'A'
mov edi, 40h ; '@'
cmovge edi, eax
add edi, 39h ; '9'
mov qword ptr [rsp+0B8h+var_98+8], rdi
call _malloc
mov qword ptr [rsp+0B8h+var_88], rax
test rax, rax
jz loc_8218E
mov [rsp+0B8h+var_A0], ebp
mov [rsp+0B8h+var_40], r15
lea r15, [rsp+0B8h+var_AC]
mov dword ptr [r15], 29h ; ')'
mov r12d, 28h ; '('
lea rbp, [rsp+0B8h+var_98]
loc_81F7F:
mov rdi, r15
mov esi, 1
mov rdx, rbp
call tdefl_output_buffer_putter
mov [rsp+0B8h+var_AC], r12d
add r12d, 0FFFFFFFFh
jb short loc_81F7F
cmp r13d, 0Ah
mov eax, 0Ah
cmovb eax, r13d
lea rdx, tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes
mov ecx, 1000h
or ecx, [rdx+rax*4]
lea rsi, tdefl_output_buffer_putter
lea rdx, [rsp+0B8h+var_98]
mov rdi, r14
call tdefl_init
cmp dword ptr [rsp+0B8h+var_A8], 0
jle short loc_82044
movsxd rbp, ebx
mov rax, [rsp+0B8h+var_A8]
lea r12d, [rax-1]
xor r13d, r13d
lea r15, [rsp+0B8h+var_78]
loc_81FE5:
mov qword ptr [rsp+0B8h+var_78], 1
mov rdi, r14
lea rsi, [rsp+0B8h+var_AC]
mov rdx, r15
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call tdefl_compress
cmp [rsp+0B8h+arg_0], 0
mov eax, r12d
cmovz eax, r13d
imul eax, ebx
movsxd rsi, eax
add rsi, [rsp+0B8h+var_38]
mov qword ptr [rsp+0B8h+var_78], rbp
mov rdi, r14
mov rdx, r15
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call tdefl_compress
inc r13d
add r12d, 0FFFFFFFFh
jb short loc_81FE5
loc_82044:
lea rdx, [rsp+0B8h+var_78]
mov qword ptr [rdx], 0
mov rdi, r14
xor esi, esi
xor ecx, ecx
xor r8d, r8d
mov r9d, 4
call tdefl_compress
cmp eax, 1
jnz loc_8219A
mov rax, qword ptr [rsp+0B8h+var_98]
add rax, 0FFFFFFFFFFFFFFD7h
mov r15, [rsp+0B8h+var_40]
mov [r15], rax
movaps xmm0, cs:xmmword_C2F90
lea rsi, [rsp+0B8h+var_78+0Ch]
movaps xmmword ptr [rsi+4], xmm0
movups xmm0, cs:xmmword_C2F90+9
movups xmmword ptr [rsi+0Dh], xmm0
movaps xmm0, cs:xmmword_C2F80
movaps xmmword ptr [rsi-0Ch], xmm0
mov ecx, [rsp+0B8h+var_9C]
mov [rsp+0B8h+var_66], ch
mov [rsi+7], cl
mov rcx, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_62], ch
mov [rsi+0Bh], cl
movsxd rcx, [rsp+0B8h+var_A0]
lea rdx, tdefl_write_image_to_png_file_in_memory_ex_chans
mov cl, [rcx+rdx]
mov [rsi+0Dh], cl
mov ecx, eax
shr ecx, 18h
mov [rsi+15h], cl
mov ecx, eax
shr ecx, 10h
mov [rsi+16h], cl
mov [rsp+0B8h+var_55], ah
mov [rsi+18h], al
mov edx, 11h
xor edi, edi
call mz_crc32
mov ecx, 1Dh
loc_820F6:
mov edx, eax
shr edx, 18h
mov byte ptr [rsp+rcx+0B8h+var_78], dl
shl eax, 8
inc rcx
cmp rcx, 21h ; '!'
jnz short loc_820F6
lea rdx, [rsp+0B8h+var_98]
mov rax, [rdx+10h]
movups xmm0, xmmword ptr [rsp+59h]
movups xmmword ptr [rax+19h], xmm0
movaps xmm0, [rsp+0B8h+var_78]
movaps xmm1, xmmword ptr [rsp+50h]
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, unk_C2FA9
mov esi, 10h
call tdefl_output_buffer_putter
test eax, eax
jz short loc_82193
mov rsi, qword ptr [rsp+0B8h+var_88]
add rsi, 25h ; '%'
mov rdx, [r15]
add rdx, 4
xor ebx, ebx
xor edi, edi
call mz_crc32
loc_8215C:
mov ecx, eax
shr ecx, 18h
mov rdx, qword ptr [rsp+0B8h+var_88]
add rdx, qword ptr [rsp+0B8h+var_98]
mov [rbx+rdx-10h], cl
inc rbx
shl eax, 8
cmp rbx, 4
jnz short loc_8215C
add qword ptr [r15], 39h ; '9'
mov rdi, r14
call _free
mov rax, qword ptr [rsp+0B8h+var_88]
jmp short loc_821AE
loc_8218E:
mov rdi, r14
jmp short loc_821A7
loc_82193:
mov qword ptr [r15], 0
loc_8219A:
mov rdi, r14
call _free
mov rdi, qword ptr [rsp+0B8h+var_88]
loc_821A7:
call _free
loc_821AC:
xor eax, eax
loc_821AE:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long tdefl_write_image_to_png_file_in_memory_ex(
long long a1,
int a2,
unsigned int a3,
int a4,
_QWORD *a5,
unsigned int a6,
int a7)
{
long long v10; // rbx
long long v11; // rax
long long v12; // r14
long long v13; // rcx
int v14; // ebx
int v15; // edi
int v16; // r12d
bool v17; // cf
long long v18; // rax
int v19; // r12d
int v20; // r13d
int v21; // eax
int v22; // eax
_QWORD *v23; // r15
int v24; // eax
long long i; // rcx
__int128 *v26; // rax
__int128 v27; // xmm0
long long v28; // rbx
int v29; // eax
long long v31; // rdi
int v32; // [rsp+Ch] [rbp-ACh] BYREF
long long v33; // [rsp+10h] [rbp-A8h]
int v34; // [rsp+18h] [rbp-A0h]
int v35; // [rsp+1Ch] [rbp-9Ch]
__int128 v36; // [rsp+20h] [rbp-98h] BYREF
__int128 v37; // [rsp+30h] [rbp-88h]
__int128 v38; // [rsp+40h] [rbp-78h] BYREF
_BYTE v39[25]; // [rsp+50h] [rbp-68h]
_QWORD *v40; // [rsp+78h] [rbp-40h]
long long v41; // [rsp+80h] [rbp-38h]
v10 = a3;
v41 = a1;
v11 = malloc(319352LL);
*a5 = 0LL;
if ( !v11 )
return 0LL;
v12 = v11;
v13 = v10;
v35 = a2;
v14 = a2 * a4;
v37 = 0LL;
v36 = 0LL;
DWORD2(v37) = 1;
v33 = v13;
v15 = 64;
if ( (int)v13 * (a2 * a4 + 1) >= 65 )
v15 = v13 * (a2 * a4 + 1);
*((_QWORD *)&v36 + 1) = (unsigned int)(v15 + 57);
*(_QWORD *)&v37 = malloc(*((_QWORD *)&v36 + 1));
if ( !(_QWORD)v37 )
{
v31 = v12;
LABEL_24:
free(v31);
return 0LL;
}
v34 = a4;
v40 = a5;
v32 = 41;
v16 = 40;
do
{
tdefl_output_buffer_putter((long long)&v32, 1, (unsigned long long *)&v36);
v32 = v16;
v17 = v16-- != 0;
}
while ( v17 );
v18 = 10LL;
if ( a6 < 0xA )
v18 = a6;
tdefl_init(
v12,
(long long)tdefl_output_buffer_putter,
(long long)&v36,
tdefl_write_image_to_png_file_in_memory_ex_s_tdefl_png_num_probes[v18] | 0x1000);
if ( (int)v33 > 0 )
{
v19 = v33 - 1;
v20 = 0;
do
{
*(_QWORD *)&v38 = 1LL;
tdefl_compress(v12, (long long)&v32, (long long *)&v38, 0LL, 0LL, 0);
v21 = v19;
if ( !a7 )
v21 = v20;
*(_QWORD *)&v38 = v14;
tdefl_compress(v12, v41 + v14 * v21, (long long *)&v38, 0LL, 0LL, 0);
++v20;
v17 = v19-- != 0;
}
while ( v17 );
}
*(_QWORD *)&v38 = 0LL;
if ( (unsigned int)tdefl_compress(v12, 0LL, (long long *)&v38, 0LL, 0LL, 4u) != 1 )
{
LABEL_23:
free(v12);
v31 = v37;
goto LABEL_24;
}
v22 = v36 - 41;
v23 = v40;
*v40 = v36 - 41;
*(_OWORD *)v39 = xmmword_C2F90;
*(_OWORD *)&v39[9] = *(__int128 *)((char *)&xmmword_C2F90 + 9);
v38 = xmmword_C2F80;
v39[2] = BYTE1(v35);
v39[3] = v35;
v39[6] = BYTE1(v33);
v39[7] = v33;
v39[9] = tdefl_write_image_to_png_file_in_memory_ex_chans[v34];
v39[17] = HIBYTE(v22);
v39[18] = BYTE2(v22);
v39[19] = BYTE1(v22);
v39[20] = v22;
v24 = mz_crc32(0, (_BYTE *)&v38 + 12, 0x11uLL);
for ( i = 29LL; i != 33; ++i )
{
v39[i - 16] = HIBYTE(v24);
v24 <<= 8;
}
v26 = (__int128 *)v37;
*(_OWORD *)(v37 + 25) = *(_OWORD *)&v39[9];
v27 = v38;
v26[1] = *(_OWORD *)v39;
*v26 = v27;
if ( !(unsigned int)tdefl_output_buffer_putter((long long)&unk_C2FA9, 16, (unsigned long long *)&v36) )
{
*v23 = 0LL;
goto LABEL_23;
}
v28 = 0LL;
v29 = mz_crc32(0, (_BYTE *)(v37 + 37), *v23 + 4LL);
do
{
*(_BYTE *)(v28 + v36 + v37 - 16) = HIBYTE(v29);
++v28;
v29 <<= 8;
}
while ( v28 != 4 );
*v23 += 57LL;
free(v12);
return v37;
}
| |||
20,958 | test_dup::build_graph(ggml_context*) | llama.cpp/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * src = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_param(ctx, src);
ggml_set_name(src, "src");
if (_use_permute) {
src = ggml_permute(ctx, src, permute[0], permute[1], permute[2], permute[3]);
ggml_set_name(src, "src_permuted");
}
ggml_tensor * out = ggml_dup(ctx, src);
ggml_set_name(out, "out");
return out;
} | O3 | cpp | test_dup::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movl 0x38(%rdi), %esi
leaq 0x40(%rdi), %rcx
movq %rbx, %rdi
movl $0x4, %edx
callq 0x1cbe0
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2cc20
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ccb0
leaq 0x32169(%rip), %rsi # 0x68f90
movq %r14, %rdi
callq 0x1c690
cmpb $0x1, 0x80(%r15)
jne 0x36e66
movl 0x60(%r15), %edx
movl 0x68(%r15), %ecx
movl 0x70(%r15), %r8d
movl 0x78(%r15), %r9d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c260
movq %rax, %r14
leaq 0x321ef(%rip), %rsi # 0x6904d
movq %rax, %rdi
callq 0x1c690
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1caa0
movq %rax, %rbx
leaq 0x32d70(%rip), %rsi # 0x69beb
movq %rax, %rdi
callq 0x1c690
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
| _ZN8test_dup11build_graphEP12ggml_context:
push r15
push r14
push rbx
mov rbx, rsi
mov r15, rdi
mov esi, [rdi+38h]
lea rcx, [rdi+40h]
mov rdi, rbx
mov edx, 4
call _ggml_new_tensor
mov r14, rax
mov rdi, r15
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
mov rdi, rbx
mov rsi, r14
call _ggml_set_param
lea rsi, aSrc; "src"
mov rdi, r14
call _ggml_set_name
cmp byte ptr [r15+80h], 1
jnz short loc_36E66
mov edx, [r15+60h]
mov ecx, [r15+68h]
mov r8d, [r15+70h]
mov r9d, [r15+78h]
mov rdi, rbx
mov rsi, r14
call _ggml_permute
mov r14, rax
lea rsi, aSrcPermuted; "src_permuted"
mov rdi, rax
call _ggml_set_name
loc_36E66:
mov rdi, rbx
mov rsi, r14
call _ggml_dup
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_dup::build_graph(long long a1, long long a2)
{
long long v2; // r14
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, "src");
if ( *(_BYTE *)(a1 + 128) == 1 )
{
v2 = ggml_permute(
a2,
v2,
*(unsigned int *)(a1 + 96),
*(unsigned int *)(a1 + 104),
*(unsigned int *)(a1 + 112),
*(unsigned int *)(a1 + 120));
ggml_set_name(v2, "src_permuted");
}
v3 = ggml_dup(a2, v2);
ggml_set_name(v3, "out");
return v3;
}
| build_graph:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R15,RDI
MOV ESI,dword ptr [RDI + 0x38]
LEA RCX,[RDI + 0x40]
MOV RDI,RBX
MOV EDX,0x4
CALL 0x0011cbe0
MOV R14,RAX
MOV RDI,R15
MOV RSI,RBX
CALL 0x0012cc20
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011ccb0
LEA RSI,[0x168f90]
MOV RDI,R14
CALL 0x0011c690
CMP byte ptr [R15 + 0x80],0x1
JNZ 0x00136e66
MOV EDX,dword ptr [R15 + 0x60]
MOV ECX,dword ptr [R15 + 0x68]
MOV R8D,dword ptr [R15 + 0x70]
MOV R9D,dword ptr [R15 + 0x78]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011c260
MOV R14,RAX
LEA RSI,[0x16904d]
MOV RDI,RAX
CALL 0x0011c690
LAB_00136e66:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011caa0
MOV RBX,RAX
LEA RSI,[0x169beb]
MOV RDI,RAX
CALL 0x0011c690
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* test_dup::build_graph(ggml_context*) */
int8 __thiscall test_dup::build_graph(test_dup *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,&DAT_00168f90);
if (this[0x80] == (test_dup)0x1) {
uVar1 = ggml_permute(param_1,uVar1,*(int4 *)(this + 0x60),*(int4 *)(this + 0x68),
*(int4 *)(this + 0x70),*(int4 *)(this + 0x78));
ggml_set_name(uVar1,"src_permuted");
}
uVar1 = ggml_dup(param_1,uVar1);
ggml_set_name(uVar1,"out");
return uVar1;
}
| |
20,959 | ImPlot::PushColormap(int) | zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp | void PushColormap(ImPlotColormap colormap) {
ImPlotContext& gp = *GImPlot;
IM_ASSERT_USER_ERROR(colormap >= 0 && colormap < gp.ColormapData.Count, "The colormap index is invalid!");
gp.ColormapModifiers.push_back(gp.Style.Colormap);
gp.Style.Colormap = colormap;
} | O1 | cpp | ImPlot::PushColormap(int):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x2733ce(%rip), %r15 # 0x336ca0
testl %edi, %edi
js 0xc38df
cmpl %ebx, 0x3c8(%r15)
jg 0xc38eb
leaq 0x1d1d1a(%rip), %rdi # 0x295600
callq 0x2161f4
movl 0x3d0(%r15), %ebp
movl 0x3d4(%r15), %eax
cmpl %eax, %ebp
jne 0xc3966
incl %ebp
testl %eax, %eax
je 0xc3910
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0xc3915
movl $0x8, %ecx
cmpl %ebp, %ecx
cmovgl %ecx, %ebp
cmpl %ebp, %eax
jge 0xc3966
movslq %ebp, %rdi
shlq $0x2, %rdi
callq 0x2130dc
movq %rax, %r14
movq 0x3d8(%r15), %rsi
testq %rsi, %rsi
je 0xc3958
movslq 0x3d0(%r15), %rdx
shlq $0x2, %rdx
movq %r14, %rdi
callq 0xf810
movq 0x3d8(%r15), %rdi
callq 0x21318e
movq %r14, 0x3d8(%r15)
movl %ebp, 0x3d4(%r15)
movq 0x3d8(%r15), %rax
movslq 0x3d0(%r15), %rcx
movl 0x300(%r15), %edx
movl %edx, (%rax,%rcx,4)
incl 0x3d0(%r15)
movl %ebx, 0x300(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ZN6ImPlot12PushColormapEi:
push rbp
push r15
push r14
push rbx
push rax
mov ebx, edi
mov r15, cs:GImPlot
test edi, edi
js short loc_C38DF
cmp [r15+3C8h], ebx
jg short loc_C38EB
loc_C38DF:
lea rdi, aTheColormapInd; "The colormap index is invalid!"
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_C38EB:
mov ebp, [r15+3D0h]
mov eax, [r15+3D4h]
cmp ebp, eax
jnz short loc_C3966
inc ebp
test eax, eax
jz short loc_C3910
mov ecx, eax
shr ecx, 1Fh
add ecx, eax
sar ecx, 1
add ecx, eax
jmp short loc_C3915
loc_C3910:
mov ecx, 8
loc_C3915:
cmp ecx, ebp
cmovg ebp, ecx
cmp eax, ebp
jge short loc_C3966
movsxd rdi, ebp
shl rdi, 2; this
call _ZN5ImGui8MemAllocEm; ImGui::MemAlloc(ulong)
mov r14, rax
mov rsi, [r15+3D8h]; void *
test rsi, rsi
jz short loc_C3958
movsxd rdx, dword ptr [r15+3D0h]
shl rdx, 2
mov rdi, r14
call _memcpy
mov rdi, [r15+3D8h]; this
call _ZN5ImGui7MemFreeEPv; ImGui::MemFree(void *)
loc_C3958:
mov [r15+3D8h], r14
mov [r15+3D4h], ebp
loc_C3966:
mov rax, [r15+3D8h]
movsxd rcx, dword ptr [r15+3D0h]
mov edx, [r15+300h]
mov [rax+rcx*4], edx
inc dword ptr [r15+3D0h]
mov [r15+300h], ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ImPlot::PushColormap(ImPlot *this, const char *a2)
{
ImGui *v2; // r15
int v3; // ebp
int v4; // eax
int v5; // ebp
int v6; // ecx
long long v7; // rax
long long v8; // r14
void *v9; // rsi
long long result; // rax
v2 = GImPlot;
if ( (int)this < 0 || *((_DWORD *)GImPlot + 242) <= (int)this )
ImGui::ErrorLog((ImGui *)"The colormap index is invalid!", a2);
v3 = *((_DWORD *)v2 + 244);
v4 = *((_DWORD *)v2 + 245);
if ( v3 == v4 )
{
v5 = v3 + 1;
if ( v4 )
v6 = v4 + v4 / 2;
else
v6 = 8;
if ( v6 > v5 )
v5 = v6;
if ( v4 < v5 )
{
v7 = ImGui::MemAlloc((ImGui *)(4LL * v5), (unsigned long long)a2);
v8 = v7;
v9 = (void *)*((_QWORD *)v2 + 123);
if ( v9 )
{
memcpy(v7, v9, 4LL * *((int *)v2 + 244));
ImGui::MemFree(*((ImGui **)v2 + 123), v9);
}
*((_QWORD *)v2 + 123) = v8;
*((_DWORD *)v2 + 245) = v5;
}
}
result = *((_QWORD *)v2 + 123);
*(_DWORD *)(result + 4LL * (int)(*((_DWORD *)v2 + 244))++) = *((_DWORD *)v2 + 192);
*((_DWORD *)v2 + 192) = (_DWORD)this;
return result;
}
| PushColormap:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,EDI
MOV R15,qword ptr [0x00436ca0]
TEST EDI,EDI
JS 0x001c38df
CMP dword ptr [R15 + 0x3c8],EBX
JG 0x001c38eb
LAB_001c38df:
LEA RDI,[0x395600]
CALL 0x003161f4
LAB_001c38eb:
MOV EBP,dword ptr [R15 + 0x3d0]
MOV EAX,dword ptr [R15 + 0x3d4]
CMP EBP,EAX
JNZ 0x001c3966
INC EBP
TEST EAX,EAX
JZ 0x001c3910
MOV ECX,EAX
SHR ECX,0x1f
ADD ECX,EAX
SAR ECX,0x1
ADD ECX,EAX
JMP 0x001c3915
LAB_001c3910:
MOV ECX,0x8
LAB_001c3915:
CMP ECX,EBP
CMOVG EBP,ECX
CMP EAX,EBP
JGE 0x001c3966
MOVSXD RDI,EBP
SHL RDI,0x2
CALL 0x003130dc
MOV R14,RAX
MOV RSI,qword ptr [R15 + 0x3d8]
TEST RSI,RSI
JZ 0x001c3958
MOVSXD RDX,dword ptr [R15 + 0x3d0]
SHL RDX,0x2
MOV RDI,R14
CALL 0x0010f810
MOV RDI,qword ptr [R15 + 0x3d8]
CALL 0x0031318e
LAB_001c3958:
MOV qword ptr [R15 + 0x3d8],R14
MOV dword ptr [R15 + 0x3d4],EBP
LAB_001c3966:
MOV RAX,qword ptr [R15 + 0x3d8]
MOVSXD RCX,dword ptr [R15 + 0x3d0]
MOV EDX,dword ptr [R15 + 0x300]
MOV dword ptr [RAX + RCX*0x4],EDX
INC dword ptr [R15 + 0x3d0]
MOV dword ptr [R15 + 0x300],EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* ImPlot::PushColormap(int) */
void ImPlot::PushColormap(int param_1)
{
int iVar1;
long lVar2;
void *__dest;
int iVar3;
int iVar4;
lVar2 = GImPlot;
if ((param_1 < 0) || (*(int *)(GImPlot + 0x3c8) <= param_1)) {
ImGui::ErrorLog("The colormap index is invalid!");
}
iVar1 = *(int *)(lVar2 + 0x3d4);
if (*(int *)(lVar2 + 0x3d0) == iVar1) {
iVar4 = *(int *)(lVar2 + 0x3d0) + 1;
if (iVar1 == 0) {
iVar3 = 8;
}
else {
iVar3 = iVar1 / 2 + iVar1;
}
if (iVar4 < iVar3) {
iVar4 = iVar3;
}
if (iVar1 < iVar4) {
__dest = (void *)ImGui::MemAlloc((long)iVar4 << 2);
if (*(void **)(lVar2 + 0x3d8) != (void *)0x0) {
memcpy(__dest,*(void **)(lVar2 + 0x3d8),(long)*(int *)(lVar2 + 0x3d0) << 2);
ImGui::MemFree(*(void **)(lVar2 + 0x3d8));
}
*(void **)(lVar2 + 0x3d8) = __dest;
*(int *)(lVar2 + 0x3d4) = iVar4;
}
}
*(int4 *)(*(long *)(lVar2 + 0x3d8) + (long)*(int *)(lVar2 + 0x3d0) * 4) =
*(int4 *)(lVar2 + 0x300);
*(int *)(lVar2 + 0x3d0) = *(int *)(lVar2 + 0x3d0) + 1;
*(int *)(lVar2 + 0x300) = param_1;
return;
}
| |
20,960 | minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type) | monkey531[P]llama/common/minja.hpp | static std::string typeToString(Type t) {
switch (t) {
case Type::Text: return "text";
case Type::Expression: return "expression";
case Type::If: return "if";
case Type::Else: return "else";
case Type::Elif: return "elif";
case Type::EndIf: return "endif";
case Type::For: return "for";
case Type::EndFor: return "endfor";
case Type::Set: return "set";
case Type::EndSet: return "endset";
case Type::Comment: return "comment";
case Type::Macro: return "macro";
case Type::EndMacro: return "endmacro";
case Type::Filter: return "filter";
case Type::EndFilter: return "endfilter";
case Type::Generation: return "generation";
case Type::EndGeneration: return "endgeneration";
case Type::Break: return "break";
case Type::Continue: return "continue";
}
return "Unknown";
} | O3 | cpp | minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type):
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
cmpl $0x12, %esi
ja 0x9a355
movl %esi, %eax
leaq 0x56611(%rip), %rcx # 0xf080c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5739a(%rip), %rsi # 0xf15a5
leaq 0x57397(%rip), %rdx # 0xf15a9
jmp 0x9a363
leaq 0x57711(%rip), %rsi # 0xf192f
leaq 0x57713(%rip), %rdx # 0xf1938
jmp 0x9a363
leaq 0x576d1(%rip), %rsi # 0xf1902
leaq 0x576d2(%rip), %rdx # 0xf190a
jmp 0x9a363
leaq 0x57694(%rip), %rsi # 0xf18d8
leaq 0x57693(%rip), %rdx # 0xf18de
jmp 0x9a363
leaq 0x5758b(%rip), %rsi # 0xf17e2
leaq 0x57588(%rip), %rdx # 0xf17e6
jmp 0x9a363
leaq 0x586fa(%rip), %rsi # 0xf2964
leaq 0x586fa(%rip), %rdx # 0xf296b
jmp 0x9a363
leaq 0x575f0(%rip), %rsi # 0xf186d
leaq 0x575f6(%rip), %rdx # 0xf187a
jmp 0x9a363
leaq 0x4f4a9(%rip), %rsi # 0xe9739
leaq 0x4f4a4(%rip), %rdx # 0xe973b
jmp 0x9a363
leaq 0x5768f(%rip), %rsi # 0xf1932
leaq 0x5768e(%rip), %rdx # 0xf1938
jmp 0x9a363
leaq 0x57552(%rip), %rsi # 0xf1808
leaq 0x5754f(%rip), %rdx # 0xf180c
jmp 0x9a363
leaq 0x5759d(%rip), %rsi # 0xf1866
leaq 0x5759c(%rip), %rdx # 0xf186c
jmp 0x9a363
leaq 0x576fd(%rip), %rsi # 0xf19d9
leaq 0x57700(%rip), %rdx # 0xf19e3
jmp 0x9a363
leaq 0x5764d(%rip), %rsi # 0xf1939
leaq 0x5764b(%rip), %rdx # 0xf193e
jmp 0x9a363
leaq 0x57511(%rip), %rsi # 0xf180d
leaq 0x5750f(%rip), %rdx # 0xf1812
jmp 0x9a363
leaq 0x575f9(%rip), %rsi # 0xf1905
leaq 0x575f7(%rip), %rdx # 0xf190a
jmp 0x9a363
leaq 0x5754d(%rip), %rsi # 0xf1869
leaq 0x57549(%rip), %rdx # 0xf186c
jmp 0x9a363
leaq 0x57613(%rip), %rsi # 0xf193f
leaq 0x57614(%rip), %rdx # 0xf1947
jmp 0x9a363
leaq 0x5c6d5(%rip), %rsi # 0xf6a11
leaq 0x5c6d1(%rip), %rdx # 0xf6a14
jmp 0x9a363
leaq 0x57524(%rip), %rsi # 0xf1870
leaq 0x57527(%rip), %rdx # 0xf187a
jmp 0x9a363
leaq 0x58610(%rip), %rsi # 0xf296c
leaq 0x58610(%rip), %rdx # 0xf2973
movq %rbx, %rdi
callq 0x225b4
movq %rbx, %rax
popq %rbx
retq
| _ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE:
push rbx
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
cmp esi, 12h; switch 19 cases
ja def_9A202; jumptable 000000000009A202 default case
mov eax, esi
lea rcx, jpt_9A202
movsxd rax, ds:(jpt_9A202 - 0F080Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_9A204:
lea rsi, aText; jumptable 000000000009A202 case 0
lea rdx, aText+4; ""
jmp loc_9A363
loc_9A217:
lea rsi, aEndfilter; jumptable 000000000009A202 case 16
lea rdx, aEndfilter+9; ""
jmp loc_9A363
loc_9A22A:
lea rsi, aEndmacro; jumptable 000000000009A202 case 14
lea rdx, aEndmacro+8; ""
jmp loc_9A363
loc_9A23D:
lea rsi, aEndset; jumptable 000000000009A202 case 11
lea rdx, aEndset+6; ""
jmp loc_9A363
loc_9A250:
lea rsi, aElif; jumptable 000000000009A202 case 4
lea rdx, aElif+4; ""
jmp loc_9A363
loc_9A263:
lea rsi, aComment; jumptable 000000000009A202 case 12
lea rdx, aComment+7; ""
jmp loc_9A363
loc_9A276:
lea rsi, aEndgeneration; jumptable 000000000009A202 case 9
lea rdx, aEndgeneration+0Dh; ""
jmp loc_9A363
loc_9A289:
lea rsi, aIf+1; jumptable 000000000009A202 case 2
lea rdx, aIf+3; ""
jmp loc_9A363
loc_9A29C:
lea rsi, aEndfilter+3; jumptable 000000000009A202 case 15
lea rdx, aEndfilter+9; ""
jmp loc_9A363
loc_9A2AF:
lea rsi, aElse; jumptable 000000000009A202 case 3
lea rdx, aElse+4; ""
jmp loc_9A363
loc_9A2C2:
lea rsi, aEndfor; jumptable 000000000009A202 case 7
lea rdx, aEndfor+6; ""
jmp loc_9A363
loc_9A2D5:
lea rsi, aExpectedLeftSi_0+24h; jumptable 000000000009A202 case 1
lea rdx, aExpectedLeftSi_0+2Eh; ""
jmp short loc_9A363
loc_9A2E5:
lea rsi, aBreak; jumptable 000000000009A202 case 17
lea rdx, aBreak+5; ""
jmp short loc_9A363
loc_9A2F5:
lea rsi, aEndif; jumptable 000000000009A202 case 5
lea rdx, aEndif+5; ""
jmp short loc_9A363
loc_9A305:
lea rsi, aEndmacro+3; jumptable 000000000009A202 case 13
lea rdx, aEndmacro+8; ""
jmp short loc_9A363
loc_9A315:
lea rsi, aEndfor+3; jumptable 000000000009A202 case 6
lea rdx, aEndfor+6; ""
jmp short loc_9A363
loc_9A325:
lea rsi, aContinue; jumptable 000000000009A202 case 18
lea rdx, aContinue+8; ""
jmp short loc_9A363
loc_9A335:
lea rsi, aAtLeastOneOfMi+2Fh; jumptable 000000000009A202 case 10
lea rdx, aAtLeastOneOfMi+32h; ""
jmp short loc_9A363
loc_9A345:
lea rsi, aEndgeneration+3; jumptable 000000000009A202 case 8
lea rdx, aEndgeneration+0Dh; ""
jmp short loc_9A363
def_9A202:
lea rsi, aUnknown; jumptable 000000000009A202 default case
lea rdx, aUnknown+7; ""
loc_9A363:
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rax, rbx
pop rbx
retn
| _QWORD * minja::TemplateToken::typeToString[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
char *v3; // rdx
*a1 = a1 + 2;
switch ( a2 )
{
case 0:
v2 = "text";
v3 = (char *)"";
break;
case 1:
v2 = (char *)"expression";
v3 = (char *)"";
break;
case 2:
v2 = "if";
v3 = "";
break;
case 3:
v2 = "else";
v3 = "";
break;
case 4:
v2 = "elif";
v3 = "";
break;
case 5:
v2 = "endif";
v3 = "";
break;
case 6:
v2 = "for";
v3 = "";
break;
case 7:
v2 = "endfor";
v3 = "";
break;
case 8:
v2 = "generation";
v3 = "";
break;
case 9:
v2 = "endgeneration";
v3 = "";
break;
case 10:
v2 = (char *)"set";
v3 = (char *)"";
break;
case 11:
v2 = "endset";
v3 = "";
break;
case 12:
v2 = "comment";
v3 = "";
break;
case 13:
v2 = "macro";
v3 = "";
break;
case 14:
v2 = "endmacro";
v3 = "";
break;
case 15:
v2 = "filter";
v3 = "";
break;
case 16:
v2 = "endfilter";
v3 = "";
break;
case 17:
v2 = "break";
v3 = "";
break;
case 18:
v2 = "continue";
v3 = "";
break;
default:
v2 = "Unknown";
v3 = "";
break;
}
std::string::_M_construct<char const*>((long long)a1, v2, (long long)v3);
return a1;
}
| typeToString[abi:cxx11]:
PUSH RBX
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
CMP ESI,0x12
JA 0x0019a355
MOV EAX,ESI
LEA RCX,[0x1f080c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RSI,[0x1f15a5]
LEA RDX,[0x1f15a9]
JMP 0x0019a363
caseD_10:
LEA RSI,[0x1f192f]
LEA RDX,[0x1f1938]
JMP 0x0019a363
caseD_e:
LEA RSI,[0x1f1902]
LEA RDX,[0x1f190a]
JMP 0x0019a363
caseD_b:
LEA RSI,[0x1f18d8]
LEA RDX,[0x1f18de]
JMP 0x0019a363
caseD_4:
LEA RSI,[0x1f17e2]
LEA RDX,[0x1f17e6]
JMP 0x0019a363
caseD_c:
LEA RSI,[0x1f2964]
LEA RDX,[0x1f296b]
JMP 0x0019a363
caseD_9:
LEA RSI,[0x1f186d]
LEA RDX,[0x1f187a]
JMP 0x0019a363
caseD_2:
LEA RSI,[0x1e9739]
LEA RDX,[0x1e973b]
JMP 0x0019a363
caseD_f:
LEA RSI,[0x1f1932]
LEA RDX,[0x1f1938]
JMP 0x0019a363
caseD_3:
LEA RSI,[0x1f1808]
LEA RDX,[0x1f180c]
JMP 0x0019a363
caseD_7:
LEA RSI,[0x1f1866]
LEA RDX,[0x1f186c]
JMP 0x0019a363
caseD_1:
LEA RSI,[0x1f19d9]
LEA RDX,[0x1f19e3]
JMP 0x0019a363
caseD_11:
LEA RSI,[0x1f1939]
LEA RDX,[0x1f193e]
JMP 0x0019a363
caseD_5:
LEA RSI,[0x1f180d]
LEA RDX,[0x1f1812]
JMP 0x0019a363
caseD_d:
LEA RSI,[0x1f1905]
LEA RDX,[0x1f190a]
JMP 0x0019a363
caseD_6:
LEA RSI,[0x1f1869]
LEA RDX,[0x1f186c]
JMP 0x0019a363
caseD_12:
LEA RSI,[0x1f193f]
LEA RDX,[0x1f1947]
JMP 0x0019a363
caseD_a:
LEA RSI,[0x1f6a11]
LEA RDX,[0x1f6a14]
JMP 0x0019a363
caseD_8:
LEA RSI,[0x1f1870]
LEA RDX,[0x1f187a]
JMP 0x0019a363
default:
LEA RSI,[0x1f296c]
LEA RDX,[0x1f2973]
LAB_0019a363:
MOV RDI,RBX
CALL 0x001225b4
MOV RAX,RBX
POP RBX
RET
|
/* minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type) */
TemplateToken * __thiscall
minja::TemplateToken::typeToString_abi_cxx11_(TemplateToken *this,int4 param_2)
{
char *pcVar1;
char *pcVar2;
*(TemplateToken **)this = this + 0x10;
switch(param_2) {
case 0:
pcVar2 = "text";
pcVar1 = "";
break;
case 1:
pcVar2 = "expression";
pcVar1 = "";
break;
case 2:
pcVar2 = "if";
pcVar1 = "";
break;
case 3:
pcVar2 = "else";
pcVar1 = "";
break;
case 4:
pcVar2 = "elif";
pcVar1 = "";
break;
case 5:
pcVar2 = "endif";
pcVar1 = "";
break;
case 6:
pcVar2 = "for";
pcVar1 = "";
break;
case 7:
pcVar2 = "endfor";
pcVar1 = "";
break;
case 8:
pcVar2 = "generation";
pcVar1 = "";
break;
case 9:
pcVar2 = "endgeneration";
pcVar1 = "";
break;
case 10:
pcVar2 = "set";
pcVar1 = "";
break;
case 0xb:
pcVar2 = "endset";
pcVar1 = "";
break;
case 0xc:
pcVar2 = "comment";
pcVar1 = "";
break;
case 0xd:
pcVar2 = "macro";
pcVar1 = "";
break;
case 0xe:
pcVar2 = "endmacro";
pcVar1 = "";
break;
case 0xf:
pcVar2 = "filter";
pcVar1 = "";
break;
case 0x10:
pcVar2 = "endfilter";
pcVar1 = "";
break;
case 0x11:
pcVar2 = "break";
pcVar1 = "";
break;
case 0x12:
pcVar2 = "continue";
pcVar1 = "";
break;
default:
pcVar2 = "Unknown";
pcVar1 = "";
}
std::__cxx11::string::_M_construct<char_const*>(this,pcVar2,pcVar1);
return this;
}
| |
20,961 | expand_tilde | eloqsql/mysys/mf_pack.c | static char * expand_tilde(char **path)
{
if (path[0][0] == FN_LIBCHAR)
return home_dir; /* ~/ expanded to home */
#ifdef HAVE_GETPWNAM
{
char *str,save;
struct passwd *user_entry;
if (!(str=strchr(*path,FN_LIBCHAR)))
str=strend(*path);
save= *str; *str= '\0';
user_entry=getpwnam(*path);
*str=save;
endpwent();
if (user_entry)
{
*path=str;
return user_entry->pw_dir;
}
}
#endif
return (char *) 0;
} | O0 | c | expand_tilde:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xea93e
leaq 0xb99306(%rip), %rax # 0xc83c38
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xea9bf
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x2a410
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0xea969
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x14f160
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2a570
movq %rax, -0x28(%rbp)
movb -0x19(%rbp), %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
callq 0x2a860
cmpq $0x0, -0x28(%rbp)
je 0xea9b7
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xea9bf
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| expand_tilde:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_EA93E
lea rax, home_dir
mov rax, [rax]
mov [rbp+var_8], rax
jmp loc_EA9BF
loc_EA93E:
mov rax, [rbp+var_10]
mov rdi, [rax]
mov esi, 2Fh ; '/'
call _strchr
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_EA969
mov rax, [rbp+var_10]
mov rdi, [rax]
call strend
mov [rbp+var_18], rax
loc_EA969:
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_19], al
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov rdi, [rax]
call _getpwnam
mov [rbp+var_28], rax
mov cl, [rbp+var_19]
mov rax, [rbp+var_18]
mov [rax], cl
call _endpwent
cmp [rbp+var_28], 0
jz short loc_EA9B7
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_28]
mov rax, [rax+20h]
mov [rbp+var_8], rax
jmp short loc_EA9BF
loc_EA9B7:
mov [rbp+var_8], 0
loc_EA9BF:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long expand_tilde(char **a1)
{
long long v2; // [rsp+8h] [rbp-28h]
char v3; // [rsp+17h] [rbp-19h]
char *v4; // [rsp+18h] [rbp-18h]
if ( **a1 == 47 )
return home_dir;
v4 = (char *)strchr(*a1, 47LL);
if ( !v4 )
v4 = (char *)strend(*a1);
v3 = *v4;
*v4 = 0;
v2 = getpwnam(*a1);
*v4 = v3;
endpwent();
if ( !v2 )
return 0LL;
*a1 = v4;
return *(_QWORD *)(v2 + 32);
}
| expand_tilde:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001ea93e
LEA RAX,[0xd83c38]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001ea9bf
LAB_001ea93e:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV ESI,0x2f
CALL 0x0012a410
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x001ea969
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0024f160
MOV qword ptr [RBP + -0x18],RAX
LAB_001ea969:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0012a570
MOV qword ptr [RBP + -0x28],RAX
MOV CL,byte ptr [RBP + -0x19]
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
CALL 0x0012a860
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001ea9b7
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001ea9bf
LAB_001ea9b7:
MOV qword ptr [RBP + -0x8],0x0
LAB_001ea9bf:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
char * expand_tilde(int8 *param_1)
{
char cVar1;
passwd *ppVar2;
char *local_20;
char *local_10;
if (*(char *)*param_1 == '/') {
local_10 = home_dir;
}
else {
local_20 = strchr((char *)*param_1,0x2f);
if (local_20 == (char *)0x0) {
local_20 = (char *)strend(*param_1);
}
cVar1 = *local_20;
*local_20 = '\0';
ppVar2 = getpwnam((char *)*param_1);
*local_20 = cVar1;
endpwent();
if (ppVar2 == (passwd *)0x0) {
local_10 = (char *)0x0;
}
else {
*param_1 = local_20;
local_10 = ppVar2->pw_dir;
}
}
return local_10;
}
| |
20,962 | ft_boolean_check_syntax_string | eloqsql/storage/myisam/ft_parser.c | my_bool ft_boolean_check_syntax_string(const uchar *str, size_t length,
CHARSET_INFO *cs)
{
uint i, j;
if (cs->mbminlen != 1)
{
DBUG_ASSERT(0);
return 1;
}
if (!str ||
(length + 1 != sizeof(DEFAULT_FTB_SYNTAX)) ||
(str[0] != ' ' && str[1] != ' '))
return 1;
for (i=0; i<sizeof(DEFAULT_FTB_SYNTAX); i++)
{
/* limiting to 7-bit ascii only */
if ((unsigned char)(str[i]) > 127 || my_isalnum(cs, str[i]))
return 1;
for (j=0; j<i; j++)
if (str[i] == str[j] && (i != 11 || j != 10))
return 1;
}
return 0;
} | O0 | c | ft_boolean_check_syntax_string:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x1, 0x98(%rax)
je 0xa1cda
jmp 0xa1ccf
jmp 0xa1cd1
movb $0x1, -0x1(%rbp)
jmp 0xa1db7
cmpq $0x0, -0x10(%rbp)
je 0xa1d08
movq -0x18(%rbp), %rax
addq $0x1, %rax
cmpq $0xf, %rax
jne 0xa1d08
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
je 0xa1d11
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x20, %eax
je 0xa1d11
movb $0x1, -0x1(%rbp)
jmp 0xa1db7
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpq $0xf, %rax
jae 0xa1db3
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x7f, %eax
jg 0xa1d55
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x10(%rbp), %rcx
movl -0x24(%rbp), %edx
movzbl (%rcx,%rdx), %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x7, %eax
cmpl $0x0, %eax
je 0xa1d5b
movb $0x1, -0x1(%rbp)
jmp 0xa1db7
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0xa1da3
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movl -0x28(%rbp), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0xa1d96
cmpl $0xb, -0x24(%rbp)
jne 0xa1d90
cmpl $0xa, -0x28(%rbp)
je 0xa1d96
movb $0x1, -0x1(%rbp)
jmp 0xa1db7
jmp 0xa1d98
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xa1d62
jmp 0xa1da5
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa1d18
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax)
| ft_boolean_check_syntax_string:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_20]
cmp dword ptr [rax+98h], 1
jz short loc_A1CDA
jmp short $+2
loc_A1CCF:
jmp short $+2
loc_A1CD1:
mov [rbp+var_1], 1
jmp loc_A1DB7
loc_A1CDA:
cmp [rbp+var_10], 0
jz short loc_A1D08
mov rax, [rbp+var_18]
add rax, 1
cmp rax, 0Fh
jnz short loc_A1D08
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jz short loc_A1D11
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
cmp eax, 20h ; ' '
jz short loc_A1D11
loc_A1D08:
mov [rbp+var_1], 1
jmp loc_A1DB7
loc_A1D11:
mov [rbp+var_24], 0
loc_A1D18:
mov eax, [rbp+var_24]
cmp rax, 0Fh
jnb loc_A1DB3
mov rax, [rbp+var_10]
mov ecx, [rbp+var_24]
movzx eax, byte ptr [rax+rcx]
cmp eax, 7Fh
jg short loc_A1D55
mov rax, [rbp+var_20]
mov rax, [rax+40h]
mov rcx, [rbp+var_10]
mov edx, [rbp+var_24]
movzx ecx, byte ptr [rcx+rdx]
movzx eax, byte ptr [rax+rcx+1]
and eax, 7
cmp eax, 0
jz short loc_A1D5B
loc_A1D55:
mov [rbp+var_1], 1
jmp short loc_A1DB7
loc_A1D5B:
mov [rbp+var_28], 0
loc_A1D62:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_24]
jnb short loc_A1DA3
mov rax, [rbp+var_10]
mov ecx, [rbp+var_24]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_10]
mov edx, [rbp+var_28]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jnz short loc_A1D96
cmp [rbp+var_24], 0Bh
jnz short loc_A1D90
cmp [rbp+var_28], 0Ah
jz short loc_A1D96
loc_A1D90:
mov [rbp+var_1], 1
jmp short loc_A1DB7
loc_A1D96:
jmp short $+2
loc_A1D98:
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
jmp short loc_A1D62
loc_A1DA3:
jmp short $+2
loc_A1DA5:
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp loc_A1D18
loc_A1DB3:
mov [rbp+var_1], 0
loc_A1DB7:
mov al, [rbp+var_1]
pop rbp
retn
| char ft_boolean_check_syntax_string(_BYTE *a1, long long a2, long long a3)
{
unsigned int j; // [rsp+0h] [rbp-28h]
unsigned int i; // [rsp+4h] [rbp-24h]
if ( *(_DWORD *)(a3 + 152) != 1 )
return 1;
if ( !a1 || a2 != 14 || *a1 != 32 && a1[1] != 32 )
return 1;
for ( i = 0; i < 0xFuLL; ++i )
{
if ( (unsigned __int8)a1[i] > 0x7Fu || (*(_BYTE *)(*(_QWORD *)(a3 + 64) + (unsigned __int8)a1[i] + 1LL) & 7) != 0 )
return 1;
for ( j = 0; j < i; ++j )
{
if ( a1[i] == a1[j] && (i != 11 || j != 10) )
return 1;
}
}
return 0;
}
| ft_boolean_check_syntax_string:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x98],0x1
JZ 0x001a1cda
JMP 0x001a1ccf
LAB_001a1ccf:
JMP 0x001a1cd1
LAB_001a1cd1:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001a1db7
LAB_001a1cda:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001a1d08
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
CMP RAX,0xf
JNZ 0x001a1d08
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x20
JZ 0x001a1d11
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x20
JZ 0x001a1d11
LAB_001a1d08:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001a1db7
LAB_001a1d11:
MOV dword ptr [RBP + -0x24],0x0
LAB_001a1d18:
MOV EAX,dword ptr [RBP + -0x24]
CMP RAX,0xf
JNC 0x001a1db3
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x24]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x7f
JG 0x001a1d55
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x24]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x7
CMP EAX,0x0
JZ 0x001a1d5b
LAB_001a1d55:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001a1db7
LAB_001a1d5b:
MOV dword ptr [RBP + -0x28],0x0
LAB_001a1d62:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x001a1da3
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x24]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JNZ 0x001a1d96
CMP dword ptr [RBP + -0x24],0xb
JNZ 0x001a1d90
CMP dword ptr [RBP + -0x28],0xa
JZ 0x001a1d96
LAB_001a1d90:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001a1db7
LAB_001a1d96:
JMP 0x001a1d98
LAB_001a1d98:
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001a1d62
LAB_001a1da3:
JMP 0x001a1da5
LAB_001a1da5:
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x001a1d18
LAB_001a1db3:
MOV byte ptr [RBP + -0x1],0x0
LAB_001a1db7:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int1 ft_boolean_check_syntax_string(char *param_1,long param_2,long param_3)
{
uint local_30;
uint local_2c;
int1 local_9;
if (*(int *)(param_3 + 0x98) == 1) {
if (((param_1 == (char *)0x0) || (param_2 != 0xe)) || ((*param_1 != ' ' && (param_1[1] != ' ')))
) {
local_9 = 1;
}
else {
for (local_2c = 0; local_2c < 0xf; local_2c = local_2c + 1) {
if ((0x7f < (byte)param_1[local_2c]) ||
((*(byte *)(*(long *)(param_3 + 0x40) + 1 + (ulong)(byte)param_1[local_2c]) & 7) != 0)) {
return 1;
}
for (local_30 = 0; local_30 < local_2c; local_30 = local_30 + 1) {
if ((param_1[local_2c] == param_1[local_30]) && ((local_2c != 0xb || (local_30 != 10)))) {
return 1;
}
}
}
local_9 = 0;
}
}
else {
local_9 = 1;
}
return local_9;
}
| |
20,963 | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>) | monkey531[P]llama/common/json.hpp | iterator erase(iterator first, iterator last)
{
if (first == last)
{
return first;
}
const auto elements_affected = std::distance(first, last);
const auto offset = std::distance(Container::begin(), first);
// This is the start situation. We need to delete elements_affected
// elements (3 in this example: e, f, g), and need to return an
// iterator past the last deleted element (h in this example).
// Note that offset is the distance from the start of the vector
// to first. We will need this later.
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// first last
// Since we cannot move const Keys, we re-construct them in place.
// We start at first and re-construct (viz. copy) the elements from
// the back of the vector. Example for first iteration:
// ,--------.
// v | destroy e and re-construct with h
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// it it + elements_affected
for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
{
it->~value_type(); // destroy but keep allocation
new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
}
// [ a, b, c, d, h, i, j, h, i, j ]
// ^ ^
// first last
// remove the unneeded elements at the end of the vector
Container::resize(this->size() - static_cast<size_type>(elements_affected));
// [ a, b, c, d, h, i, j ]
// ^ ^
// first last
// first is now pointing past the last deleted element, but we cannot
// use this iterator, because it may have been invalidated by the
// resize call. Instead, we can return begin() + offset.
return Container::begin() + offset;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>):
subq $0x98, %rsp
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movq %rdi, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xd7d90
testb $0x1, %al
jne 0x13d131
jmp 0x13d146
movq 0x88(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x13d298
movq 0x88(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x13d2e0
movq 0x8(%rsp), %rdi
movq %rax, 0x70(%rsp)
callq 0xb7a20
movq %rax, 0x50(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x13d2e0
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rsi
movq 0x30(%rsp), %rdi
callq 0x13d2b0
movq 0x8(%rsp), %rdi
movq %rax, 0x38(%rsp)
callq 0xb7a90
movq %rax, 0x28(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xb7a50
testb $0x1, %al
jne 0x13d1f3
jmp 0x13d256
leaq 0x40(%rsp), %rdi
callq 0xb7ac0
movq %rax, %rdi
callq 0xbb710
leaq 0x40(%rsp), %rdi
callq 0xb9da0
movq %rax, (%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rsi
movq 0x18(%rsp), %rdi
callq 0x13d2b0
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
callq 0xb9da0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x13d320
leaq 0x40(%rsp), %rdi
callq 0xb7e10
jmp 0x13d1b1
movq 0x8(%rsp), %rdi
callq 0xb9d50
movq 0x8(%rsp), %rdi
movq %rax, %rsi
subq 0x70(%rsp), %rsi
callq 0x13d360
movq 0x8(%rsp), %rdi
callq 0xb7a20
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x13d400
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
addq $0x98, %rsp
retq
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_:
sub rsp, 98h
mov [rsp+98h+var_10], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_20], rdi
mov rax, [rsp+98h+var_20]
mov [rsp+98h+var_90], rax
lea rdi, [rsp+98h+var_10]
lea rsi, [rsp+98h+var_18]
call _ZN9__gnu_cxxeqIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator==<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&)
test al, 1
jnz short loc_13D131
jmp short loc_13D146
loc_13D131:
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_8], rax
jmp loc_13D298
loc_13D146:
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_30], rax
mov rax, [rsp+98h+var_18]
mov [rsp+98h+var_38], rax
mov rdi, [rsp+98h+var_30]
mov rsi, [rsp+98h+var_38]
call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEENSt15iterator_traitsIT_E15difference_typeESR_SR_; std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>)
mov rdi, [rsp+98h+var_90]
mov [rsp+98h+var_28], rax
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void)
mov [rsp+98h+var_48], rax
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_50], rax
mov rdi, [rsp+98h+var_48]
mov rsi, [rsp+98h+var_50]
call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEENSt15iterator_traitsIT_E15difference_typeESR_SR_; std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>)
mov [rsp+98h+var_40], rax
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_58], rax
loc_13D1B1:
mov rax, [rsp+98h+var_58]
mov [rsp+98h+var_68], rax
mov rsi, [rsp+98h+var_28]
mov rdi, [rsp+98h+var_68]
call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>::difference_type)
mov rdi, [rsp+98h+var_90]
mov [rsp+98h+var_60], rax
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::end(void)
mov [rsp+98h+var_70], rax
lea rdi, [rsp+98h+var_60]
lea rsi, [rsp+98h+var_70]
call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&)
test al, 1
jnz short loc_13D1F3
jmp short loc_13D256
loc_13D1F3:
lea rdi, [rsp+98h+var_58]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void)
mov rdi, rax
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::~pair()
lea rdi, [rsp+98h+var_58]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void)
mov [rsp+98h+var_98], rax
mov rax, [rsp+98h+var_58]
mov [rsp+98h+var_80], rax
mov rsi, [rsp+98h+var_28]
mov rdi, [rsp+98h+var_80]
call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>::difference_type)
mov [rsp+98h+var_78], rax
lea rdi, [rsp+98h+var_78]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void)
mov rdi, [rsp+98h+var_98]
mov rsi, rax
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&)
lea rdi, [rsp+98h+var_58]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void)
jmp loc_13D1B1
loc_13D256:
mov rdi, [rsp+98h+var_90]
call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE4sizeEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::size(void)
mov rdi, [rsp+98h+var_90]
mov rsi, rax
sub rsi, [rsp+98h+var_28]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong)
mov rdi, [rsp+98h+var_90]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void)
mov [rsp+98h+var_88], rax
mov rsi, [rsp+98h+var_40]
lea rdi, [rsp+98h+var_88]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEplEl; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator+(long)
mov [rsp+98h+var_8], rax
loc_13D298:
mov rax, [rsp+98h+var_8]
add rsp, 98h
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase(
_QWORD *a1,
long long a2,
long long a3)
{
long long v3; // rax
long long v4; // rax
long long v5; // rax
long long v7; // [rsp+0h] [rbp-98h]
_QWORD v8[2]; // [rsp+10h] [rbp-88h] BYREF
long long v9; // [rsp+20h] [rbp-78h] BYREF
_QWORD v10[2]; // [rsp+28h] [rbp-70h] BYREF
long long v11; // [rsp+38h] [rbp-60h] BYREF
_QWORD v12[2]; // [rsp+40h] [rbp-58h] BYREF
long long v13; // [rsp+50h] [rbp-48h]
long long v14; // [rsp+58h] [rbp-40h]
long long v15; // [rsp+60h] [rbp-38h]
long long v16; // [rsp+68h] [rbp-30h]
long long v17; // [rsp+70h] [rbp-28h]
_QWORD *v18; // [rsp+78h] [rbp-20h]
long long v19; // [rsp+80h] [rbp-18h] BYREF
long long v20; // [rsp+88h] [rbp-10h] BYREF
v20 = a2;
v19 = a3;
v18 = a1;
if ( __gnu_cxx::operator==<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>(
(long long)&v20,
(long long)&v19) )
{
return v20;
}
v16 = v20;
v15 = v19;
v17 = std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(
v20,
v19);
v13 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin((long long)a1);
v12[1] = v20;
v14 = std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(
v13,
v20);
v12[0] = v20;
while ( 1 )
{
v10[1] = v12[0];
v11 = std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(
v12[0],
v17);
v10[0] = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end((long long)a1);
if ( !__gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>(
(long long)&v11,
(long long)v10) )
break;
v3 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)v12);
std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::~pair(v3);
v7 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)v12);
v8[1] = v12[0];
v9 = std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(
v12[0],
v17);
v4 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)&v9);
std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::pair(
v7,
v4);
__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(v12);
}
v5 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::size(a1);
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize(
a1,
v5 - v17);
v8[0] = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin((long long)a1);
return __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator+(
v8,
v14);
}
| |||
20,964 | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>) | monkey531[P]llama/common/json.hpp | iterator erase(iterator first, iterator last)
{
if (first == last)
{
return first;
}
const auto elements_affected = std::distance(first, last);
const auto offset = std::distance(Container::begin(), first);
// This is the start situation. We need to delete elements_affected
// elements (3 in this example: e, f, g), and need to return an
// iterator past the last deleted element (h in this example).
// Note that offset is the distance from the start of the vector
// to first. We will need this later.
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// first last
// Since we cannot move const Keys, we re-construct them in place.
// We start at first and re-construct (viz. copy) the elements from
// the back of the vector. Example for first iteration:
// ,--------.
// v | destroy e and re-construct with h
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// it it + elements_affected
for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
{
it->~value_type(); // destroy but keep allocation
new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
}
// [ a, b, c, d, h, i, j, h, i, j ]
// ^ ^
// first last
// remove the unneeded elements at the end of the vector
Container::resize(this->size() - static_cast<size_type>(elements_affected));
// [ a, b, c, d, h, i, j ]
// ^ ^
// first last
// first is now pointing past the last deleted element, but we cannot
// use this iterator, because it may have been invalidated by the
// resize call. Instead, we can return begin() + offset.
return Container::begin() + offset;
} | O1 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpq %rdx, %rsi
je 0x7774e
movq %rdx, %r15
movq %rdi, %r14
subq %rbx, %r15
movq %r15, %rbp
sarq $0x5, %rbp
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rbp
movq (%rdi), %rax
movq %rax, (%rsp)
movq %rbx, %r12
leaq (%r12,%r15), %r13
movq 0x8(%r14), %rsi
cmpq %rsi, %r13
je 0x77727
movq %r12, %rdi
callq 0x72a84
movq %r12, %rdi
movq %r13, %rsi
callq 0x77760
addq $0x60, %r12
jmp 0x77701
subq (%r14), %rsi
subq (%rsp), %rbx
sarq $0x5, %rsi
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
subq %rbp, %rsi
movq %r14, %rdi
callq 0x777ec
addq (%r14), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp rsi, rdx
jz short loc_7774E
mov r15, rdx
mov r14, rdi
sub r15, rbx
mov rbp, r15
sar rbp, 5
mov rax, 0AAAAAAAAAAAAAAABh
imul rbp, rax
mov rax, [rdi]
mov [rsp+38h+var_38], rax
mov r12, rbx
loc_77701:
lea r13, [r12+r15]
mov rsi, [r14+8]
cmp r13, rsi
jz short loc_77727
mov rdi, r12
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::~pair()
mov rdi, r12
mov rsi, r13
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&)
add r12, 60h ; '`'
jmp short loc_77701
loc_77727:
sub rsi, [r14]
sub rbx, [rsp+38h+var_38]
sar rsi, 5
mov rax, 0AAAAAAAAAAAAAAABh
imul rsi, rax
sub rsi, rbp
mov rdi, r14
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong)
add rbx, [r14]
loc_7774E:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase(
long long *a1,
long long a2,
long long a3)
{
long long v3; // rbx
long long v4; // r15
unsigned long long v5; // rbp
long long i; // r12
long long v7; // rsi
long long v9; // [rsp+0h] [rbp-38h]
v3 = a2;
if ( a2 != a3 )
{
v4 = a3 - a2;
v5 = 0xAAAAAAAAAAAAAAABLL * ((a3 - a2) >> 5);
v9 = *a1;
for ( i = a2; ; i += 96LL )
{
v7 = a1[1];
if ( i + v4 == v7 )
break;
std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::~pair(i);
std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::pair(
i,
i + v4);
}
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize(
a1,
0xAAAAAAAAAAAAAAABLL * ((v7 - *a1) >> 5) - v5);
return *a1 + v3 - v9;
}
return v3;
}
| erase:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP RSI,RDX
JZ 0x0017774e
MOV R15,RDX
MOV R14,RDI
SUB R15,RBX
MOV RBP,R15
SAR RBP,0x5
MOV RAX,-0x5555555555555555
IMUL RBP,RAX
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP],RAX
MOV R12,RBX
LAB_00177701:
LEA R13,[R12 + R15*0x1]
MOV RSI,qword ptr [R14 + 0x8]
CMP R13,RSI
JZ 0x00177727
MOV RDI,R12
CALL 0x00172a84
MOV RDI,R12
MOV RSI,R13
CALL 0x00177760
ADD R12,0x60
JMP 0x00177701
LAB_00177727:
SUB RSI,qword ptr [R14]
SUB RBX,qword ptr [RSP]
SAR RSI,0x5
MOV RAX,-0x5555555555555555
IMUL RSI,RAX
SUB RSI,RBP
MOV RDI,R14
CALL 0x001777ec
ADD RBX,qword ptr [R14]
LAB_0017774e:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, minja::Value,
std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> >
>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>*,
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> > > >,
__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>*,
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> > > >) */
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
* __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*this,pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*param_2,
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*param_3)
{
long lVar1;
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*this_00;
if (param_2 != param_3) {
lVar1 = *(long *)this;
this_00 = param_2;
while( true ) {
if ((pair *)(this_00 + ((long)param_3 - (long)param_2)) == *(pair **)(this + 8)) break;
std::
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
::~pair(this_00);
std::
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
::pair(this_00,(pair *)(this_00 + ((long)param_3 - (long)param_2)));
this_00 = this_00 + 0x60;
}
std::
vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::resize((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*)this,((long)*(pair **)(this + 8) - *(long *)this >> 5) * -0x5555555555555555 +
((long)param_3 - (long)param_2 >> 5) * 0x5555555555555555);
param_2 = param_2 + (*(long *)this - lVar1);
}
return param_2;
}
| |
20,965 | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>) | monkey531[P]llama/common/json.hpp | iterator erase(iterator first, iterator last)
{
if (first == last)
{
return first;
}
const auto elements_affected = std::distance(first, last);
const auto offset = std::distance(Container::begin(), first);
// This is the start situation. We need to delete elements_affected
// elements (3 in this example: e, f, g), and need to return an
// iterator past the last deleted element (h in this example).
// Note that offset is the distance from the start of the vector
// to first. We will need this later.
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// first last
// Since we cannot move const Keys, we re-construct them in place.
// We start at first and re-construct (viz. copy) the elements from
// the back of the vector. Example for first iteration:
// ,--------.
// v | destroy e and re-construct with h
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// it it + elements_affected
for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
{
it->~value_type(); // destroy but keep allocation
new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
}
// [ a, b, c, d, h, i, j, h, i, j ]
// ^ ^
// first last
// remove the unneeded elements at the end of the vector
Container::resize(this->size() - static_cast<size_type>(elements_affected));
// [ a, b, c, d, h, i, j ]
// ^ ^
// first last
// first is now pointing past the last deleted element, but we cannot
// use this iterator, because it may have been invalidated by the
// resize call. Instead, we can return begin() + offset.
return Container::begin() + offset;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpq %rdx, %rsi
je 0x68659
movq %rdi, %r14
subq %rbx, %rdx
pushq $0x60
popq %rcx
movq %rdx, %rax
cqto
idivq %rcx
movq %rax, %r15
movq (%rdi), %rax
movq %rax, (%rsp)
imulq $0x60, %r15, %r13
addq %rbx, %r13
movq %r13, %r12
negq %r12
movq %rbx, %rbp
cmpq 0x8(%r14), %r13
je 0x68633
movq %rbp, %rdi
callq 0x3d882
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6866c
addq $0x60, %rbp
addq $0x60, %r13
addq $-0x60, %r12
jmp 0x6860c
subq (%rsp), %rbx
addq (%r14), %r12
negq %r12
movq %r12, %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
subq %r15, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x68696
addq (%r14), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp rsi, rdx
jz short loc_68659
mov r14, rdi
sub rdx, rbx
push 60h ; '`'
pop rcx
mov rax, rdx
cqo
idiv rcx
mov r15, rax
mov rax, [rdi]
mov [rsp+38h+var_38], rax
imul r13, r15, 60h ; '`'
add r13, rbx
mov r12, r13
neg r12
mov rbp, rbx
loc_6860C:
cmp r13, [r14+8]
jz short loc_68633
mov rdi, rbp
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::~pair()
mov rdi, rbp
mov rsi, r13
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&)
add rbp, 60h ; '`'
add r13, 60h ; '`'
add r12, 0FFFFFFFFFFFFFFA0h
jmp short loc_6860C
loc_68633:
sub rbx, [rsp+38h+var_38]
add r12, [r14]
neg r12
mov rax, r12
cqo
push 60h ; '`'
pop rcx
idiv rcx
sub rax, r15
mov rdi, r14
mov rsi, rax
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong)
add rbx, [r14]
loc_68659:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase(
long long *a1,
long long a2,
long long a3)
{
long long v3; // rbx
long long v4; // r15
long long v5; // r13
long long v6; // r12
long long v7; // rbp
long long v9; // [rsp+0h] [rbp-38h]
v3 = a2;
if ( a2 != a3 )
{
v4 = (a3 - a2) / 96;
v9 = *a1;
v5 = a2 + 96 * v4;
v6 = -v5;
v7 = a2;
while ( v5 != a1[1] )
{
std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::~pair(v7);
std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::pair(
v7,
v5);
v7 += 96LL;
v5 += 96LL;
v6 -= 96LL;
}
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize(
a1,
-(*a1 + v6) / 96 - v4,
-(*a1 + v6) % 96);
return *a1 + a2 - v9;
}
return v3;
}
| erase:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP RSI,RDX
JZ 0x00168659
MOV R14,RDI
SUB RDX,RBX
PUSH 0x60
POP RCX
MOV RAX,RDX
CQO
IDIV RCX
MOV R15,RAX
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP],RAX
IMUL R13,R15,0x60
ADD R13,RBX
MOV R12,R13
NEG R12
MOV RBP,RBX
LAB_0016860c:
CMP R13,qword ptr [R14 + 0x8]
JZ 0x00168633
MOV RDI,RBP
CALL 0x0013d882
MOV RDI,RBP
MOV RSI,R13
CALL 0x0016866c
ADD RBP,0x60
ADD R13,0x60
ADD R12,-0x60
JMP 0x0016860c
LAB_00168633:
SUB RBX,qword ptr [RSP]
ADD R12,qword ptr [R14]
NEG R12
MOV RAX,R12
CQO
PUSH 0x60
POP RCX
IDIV RCX
SUB RAX,R15
MOV RDI,R14
MOV RSI,RAX
CALL 0x00168696
ADD RBX,qword ptr [R14]
LAB_00168659:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, minja::Value,
std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> >
>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>*,
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> > > >,
__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>*,
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value>,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> > > >) */
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
* __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*this,pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*param_2,
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*param_3)
{
long lVar1;
long lVar2;
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*this_00;
long lVar3;
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
*ppVar4;
if (param_2 != param_3) {
lVar2 = ((long)param_3 - (long)param_2) / 0x60;
lVar1 = *(long *)this;
ppVar4 = param_2 + lVar2 * 0x60;
lVar3 = -(long)ppVar4;
this_00 = param_2;
for (; ppVar4 != *(pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
**)(this + 8); ppVar4 = ppVar4 + 0x60) {
std::
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
::~pair(this_00);
std::
pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>
::pair(this_00,ppVar4);
this_00 = this_00 + 0x60;
lVar3 = lVar3 + -0x60;
}
std::
vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::resize((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*)this,-(lVar3 + *(long *)this) / 0x60 - lVar2);
param_2 = param_2 + (*(long *)this - lVar1);
}
return param_2;
}
| |
20,966 | SetWindowMonitor | csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/platforms/rcore_desktop_glfw.c | void SetWindowMonitor(int monitor)
{
int monitorCount = 0;
GLFWmonitor **monitors = glfwGetMonitors(&monitorCount);
if ((monitor >= 0) && (monitor < monitorCount))
{
if (CORE.Window.fullscreen)
{
TRACELOG(LOG_INFO, "GLFW: Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor]));
const GLFWvidmode *mode = glfwGetVideoMode(monitors[monitor]);
glfwSetWindowMonitor(platform.handle, monitors[monitor], 0, 0, mode->width, mode->height, mode->refreshRate);
}
else
{
TRACELOG(LOG_INFO, "GLFW: Selected monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor]));
// Here the render width has to be used again in case high dpi flag is enabled
const int screenWidth = CORE.Window.render.width;
const int screenHeight = CORE.Window.render.height;
int monitorWorkareaX = 0;
int monitorWorkareaY = 0;
int monitorWorkareaWidth = 0;
int monitorWorkareaHeight = 0;
glfwGetMonitorWorkarea(monitors[monitor], &monitorWorkareaX, &monitorWorkareaY, &monitorWorkareaWidth, &monitorWorkareaHeight);
// If the screen size is larger than the monitor workarea, anchor it on the top left corner, otherwise, center it
if ((screenWidth >= monitorWorkareaWidth) || (screenHeight >= monitorWorkareaHeight)) glfwSetWindowPos(platform.handle, monitorWorkareaX, monitorWorkareaY);
else
{
const int x = monitorWorkareaX + (monitorWorkareaWidth/2) - (screenWidth/2);
const int y = monitorWorkareaY + (monitorWorkareaHeight/2) - (screenHeight/2);
glfwSetWindowPos(platform.handle, x, y);
}
}
}
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
} | O3 | c | SetWindowMonitor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edi, %ebp
leaq 0x20(%rsp), %rdi
movl $0x0, (%rdi)
callq 0xbf116
testl %ebp, %ebp
js 0x700c9
cmpl %ebp, 0x20(%rsp)
jle 0x700c9
movq %rax, %rbx
movb 0xcbb5d(%rip), %r14b # 0x13bbcd
movl %ebp, %r15d
movq (%rax,%r15,8), %rdi
callq 0xbf34f
cmpb $0x1, %r14b
jne 0x700e1
leaq 0x6f9fc(%rip), %rsi # 0xdfa85
movl $0x3, %edi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xb9e53
movq (%rbx,%r15,8), %rdi
callq 0xbf4ff
movq 0xcc5fe(%rip), %rdi # 0x13c6a8
movq (%rbx,%r15,8), %rsi
movl (%rax), %r8d
movl 0x4(%rax), %r9d
movl 0x14(%rax), %eax
movl %eax, (%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xc1994
jmp 0x70194
leaq 0x6f832(%rip), %rsi # 0xdf902
movl $0x4, %edi
xorl %eax, %eax
callq 0xb9e53
jmp 0x70194
leaq 0x6f9c8(%rip), %rsi # 0xdfab0
xorl %r13d, %r13d
movl $0x3, %edi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xb9e53
movl 0xcbb01(%rip), %r12d # 0x13bc04
movl 0xcbaff(%rip), %ebp # 0x13bc08
leaq 0x18(%rsp), %rsi
movl %r13d, (%rsi)
leaq 0x14(%rsp), %rdx
movl %r13d, (%rdx)
leaq 0x24(%rsp), %r14
movl %r13d, (%r14)
leaq 0x1c(%rsp), %r8
movl %r13d, (%r8)
movq (%rbx,%r15,8), %rdi
movq %r14, %rcx
callq 0xbf20c
movl (%r14), %ecx
cmpl %ecx, %r12d
jge 0x70180
movl 0x1c(%rsp), %eax
cmpl %eax, %ebp
jge 0x70180
movl %ecx, %esi
shrl $0x1f, %esi
addl %ecx, %esi
sarl %esi
movl %r12d, %ecx
shrl $0x1f, %ecx
addl %r12d, %ecx
sarl %ecx
subl %ecx, %esi
addl 0x18(%rsp), %esi
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
movl %ebp, %eax
shrl $0x1f, %eax
addl %ebp, %eax
sarl %eax
subl %eax, %edx
addl 0x14(%rsp), %edx
movq 0xcc52a(%rip), %rdi # 0x13c6a8
jmp 0x7018f
movq 0xcc521(%rip), %rdi # 0x13c6a8
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %edx
callq 0xc0f69
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| SetWindowMonitor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebp, edi
lea rdi, [rsp+58h+var_38]
mov dword ptr [rdi], 0
call glfwGetMonitors
test ebp, ebp
js short loc_700C9
cmp [rsp+58h+var_38], ebp
jle short loc_700C9
mov rbx, rax
mov r14b, cs:byte_13BBCD
mov r15d, ebp
mov rdi, [rax+r15*8]
call glfwGetMonitorName
cmp r14b, 1
jnz short loc_700E1
lea rsi, aGlfwSelectedFu; "GLFW: Selected fullscreen monitor: [%i]"...
mov edi, 3
mov edx, ebp
mov rcx, rax
xor eax, eax
call TraceLog
mov rdi, [rbx+r15*8]
call glfwGetVideoMode
mov rdi, cs:platform_0
mov rsi, [rbx+r15*8]
mov r8d, [rax]
mov r9d, [rax+4]
mov eax, [rax+14h]
mov [rsp+58h+var_58], eax
xor edx, edx
xor ecx, ecx
call glfwSetWindowMonitor
jmp loc_70194
loc_700C9:
lea rsi, aGlfwFailedToFi_0; "GLFW: Failed to find selected monitor"
mov edi, 4
xor eax, eax
call TraceLog
jmp loc_70194
loc_700E1:
lea rsi, aGlfwSelectedMo; "GLFW: Selected monitor: [%i] %s"
xor r13d, r13d
mov edi, 3
mov edx, ebp
mov rcx, rax
xor eax, eax
call TraceLog
mov r12d, dword ptr cs:qword_13BC04
mov ebp, dword ptr cs:qword_13BC04+4
lea rsi, [rsp+58h+var_40]
mov [rsi], r13d
lea rdx, [rsp+58h+var_44]
mov [rdx], r13d
lea r14, [rsp+58h+var_34]
mov [r14], r13d
lea r8, [rsp+58h+var_3C]
mov [r8], r13d
mov rdi, [rbx+r15*8]
mov rcx, r14
call glfwGetMonitorWorkarea
mov ecx, [r14]
cmp r12d, ecx
jge short loc_70180
mov eax, [rsp+58h+var_3C]
cmp ebp, eax
jge short loc_70180
mov esi, ecx
shr esi, 1Fh
add esi, ecx
sar esi, 1
mov ecx, r12d
shr ecx, 1Fh
add ecx, r12d
sar ecx, 1
sub esi, ecx
add esi, [rsp+58h+var_40]
mov edx, eax
shr edx, 1Fh
add edx, eax
sar edx, 1
mov eax, ebp
shr eax, 1Fh
add eax, ebp
sar eax, 1
sub edx, eax
add edx, [rsp+58h+var_44]
mov rdi, cs:platform_0
jmp short loc_7018F
loc_70180:
mov rdi, cs:platform_0
mov esi, [rsp+58h+var_40]
mov edx, [rsp+58h+var_44]
loc_7018F:
call glfwSetWindowPos
loc_70194:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long SetWindowMonitor(unsigned int a1)
{
long long Monitors; // rax
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
long long v6; // rbx
char v7; // r14
int MonitorName; // eax
int v9; // r8d
int v10; // r9d
_DWORD *VideoMode; // rax
int v13; // r12d
int v14; // ebp
long long v15; // rsi
long long v16; // rdx
long long v17; // rdi
unsigned int v18; // [rsp+14h] [rbp-44h] BYREF
unsigned int v19; // [rsp+18h] [rbp-40h] BYREF
int v20; // [rsp+1Ch] [rbp-3Ch] BYREF
signed int v21; // [rsp+20h] [rbp-38h] BYREF
_DWORD v22[13]; // [rsp+24h] [rbp-34h] BYREF
v21 = 0;
Monitors = glfwGetMonitors(&v21);
if ( (a1 & 0x80000000) != 0 || v21 <= (int)a1 )
return TraceLog(4, (unsigned int)"GLFW: Failed to find selected monitor", v2, v3, v4, v5);
v6 = Monitors;
v7 = byte_13BBCD;
MonitorName = glfwGetMonitorName(*(_QWORD *)(Monitors + 8LL * a1));
if ( v7 == 1 )
{
TraceLog(3, (unsigned int)"GLFW: Selected fullscreen monitor: [%i] %s", a1, MonitorName, v9, v10);
VideoMode = (_DWORD *)glfwGetVideoMode(*(_QWORD *)(v6 + 8LL * a1));
return glfwSetWindowMonitor(platform_0, *(_QWORD *)(v6 + 8LL * a1), 0, 0, *VideoMode, VideoMode[1], VideoMode[5]);
}
else
{
TraceLog(3, (unsigned int)"GLFW: Selected monitor: [%i] %s", a1, MonitorName, v9, v10);
v13 = qword_13BC04;
v14 = HIDWORD(qword_13BC04);
v19 = 0;
v18 = 0;
v22[0] = 0;
v20 = 0;
glfwGetMonitorWorkarea(*(_QWORD *)(v6 + 8LL * a1), &v19, &v18, v22, &v20);
if ( v13 >= v22[0] || v14 >= v20 )
{
v17 = platform_0;
v15 = v19;
v16 = v18;
}
else
{
v15 = v19 + v22[0] / 2 - v13 / 2;
v16 = v18 + v20 / 2 - v14 / 2;
v17 = platform_0;
}
return glfwSetWindowPos(v17, v15, v16);
}
}
| SetWindowMonitor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,EDI
LEA RDI,[RSP + 0x20]
MOV dword ptr [RDI],0x0
CALL 0x001bf116
TEST EBP,EBP
JS 0x001700c9
CMP dword ptr [RSP + 0x20],EBP
JLE 0x001700c9
MOV RBX,RAX
MOV R14B,byte ptr [0x0023bbcd]
MOV R15D,EBP
MOV RDI,qword ptr [RAX + R15*0x8]
CALL 0x001bf34f
CMP R14B,0x1
JNZ 0x001700e1
LEA RSI,[0x1dfa85]
MOV EDI,0x3
MOV EDX,EBP
MOV RCX,RAX
XOR EAX,EAX
CALL 0x001b9e53
MOV RDI,qword ptr [RBX + R15*0x8]
CALL 0x001bf4ff
MOV RDI,qword ptr [0x0023c6a8]
MOV RSI,qword ptr [RBX + R15*0x8]
MOV R8D,dword ptr [RAX]
MOV R9D,dword ptr [RAX + 0x4]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RSP],EAX
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001c1994
JMP 0x00170194
LAB_001700c9:
LEA RSI,[0x1df902]
MOV EDI,0x4
XOR EAX,EAX
CALL 0x001b9e53
JMP 0x00170194
LAB_001700e1:
LEA RSI,[0x1dfab0]
XOR R13D,R13D
MOV EDI,0x3
MOV EDX,EBP
MOV RCX,RAX
XOR EAX,EAX
CALL 0x001b9e53
MOV R12D,dword ptr [0x0023bc04]
MOV EBP,dword ptr [0x0023bc08]
LEA RSI,[RSP + 0x18]
MOV dword ptr [RSI],R13D
LEA RDX,[RSP + 0x14]
MOV dword ptr [RDX],R13D
LEA R14,[RSP + 0x24]
MOV dword ptr [R14],R13D
LEA R8,[RSP + 0x1c]
MOV dword ptr [R8],R13D
MOV RDI,qword ptr [RBX + R15*0x8]
MOV RCX,R14
CALL 0x001bf20c
MOV ECX,dword ptr [R14]
CMP R12D,ECX
JGE 0x00170180
MOV EAX,dword ptr [RSP + 0x1c]
CMP EBP,EAX
JGE 0x00170180
MOV ESI,ECX
SHR ESI,0x1f
ADD ESI,ECX
SAR ESI,0x1
MOV ECX,R12D
SHR ECX,0x1f
ADD ECX,R12D
SAR ECX,0x1
SUB ESI,ECX
ADD ESI,dword ptr [RSP + 0x18]
MOV EDX,EAX
SHR EDX,0x1f
ADD EDX,EAX
SAR EDX,0x1
MOV EAX,EBP
SHR EAX,0x1f
ADD EAX,EBP
SAR EAX,0x1
SUB EDX,EAX
ADD EDX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [0x0023c6a8]
JMP 0x0017018f
LAB_00170180:
MOV RDI,qword ptr [0x0023c6a8]
MOV ESI,dword ptr [RSP + 0x18]
MOV EDX,dword ptr [RSP + 0x14]
LAB_0017018f:
CALL 0x001c0f69
LAB_00170194:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void SetWindowMonitor(uint param_1)
{
int iVar1;
int iVar2;
char cVar3;
int iVar4;
int iVar5;
long lVar6;
int8 uVar7;
int4 *puVar8;
ulong uVar9;
int local_44;
int local_40;
int local_3c;
int local_38;
int local_34;
local_38 = 0;
lVar6 = glfwGetMonitors();
cVar3 = DAT_0023bbcd;
if (((int)param_1 < 0) || (local_38 <= (int)param_1)) {
TraceLog(4,"GLFW: Failed to find selected monitor");
}
else {
uVar9 = (ulong)param_1;
uVar7 = glfwGetMonitorName(*(int8 *)(lVar6 + uVar9 * 8));
if (cVar3 == '\x01') {
TraceLog(3,"GLFW: Selected fullscreen monitor: [%i] %s",param_1,uVar7);
puVar8 = (int4 *)glfwGetVideoMode(*(int8 *)(lVar6 + uVar9 * 8));
glfwSetWindowMonitor
(platform_0,*(int8 *)(lVar6 + uVar9 * 8),0,0,*puVar8,puVar8[1],puVar8[5]);
}
else {
TraceLog(3,"GLFW: Selected monitor: [%i] %s",param_1,uVar7);
iVar5 = DAT_0023bc08;
iVar4 = DAT_0023bc04;
local_40 = 0;
local_44 = 0;
local_34 = 0;
local_3c = 0;
glfwGetMonitorWorkarea(*(int8 *)(lVar6 + uVar9 * 8),&local_40,&local_44,&local_34);
iVar1 = local_44;
iVar2 = local_40;
if ((iVar4 < local_34) && (iVar5 < local_3c)) {
iVar1 = (local_3c / 2 - iVar5 / 2) + local_44;
iVar2 = (local_34 / 2 - iVar4 / 2) + local_40;
}
glfwSetWindowPos(platform_0,iVar2,iVar1);
}
}
return;
}
| |
20,967 | mysys_namespace::crc32c::Choose_Extend() | eloqsql/mysys/crc32/crc32c.cc | static inline Function Choose_Extend()
{
#if defined HAVE_POWER8 && defined HAS_ALTIVEC
if (arch_ppc_probe())
return ExtendPPCImpl;
#elif defined(HAVE_ARMV8_CRC)
if (crc32c_aarch64_available())
return ExtendARMImpl;
#elif HAVE_SSE42
# if defined HAVE_PCLMUL && SIZEOF_SIZE_T == 8
switch (cpuid_ecx() & cpuid_ecx_SSE42_AND_PCLMUL) {
case cpuid_ecx_SSE42_AND_PCLMUL:
return crc32c_3way;
case cpuid_ecx_SSE42:
return crc32c_sse42;
}
# else
if (cpuid_ecx() & cpuid_ecx_SSE42)
return crc32c_sse42;
# endif
#endif
return crc32c_slow;
} | O0 | cpp | mysys_namespace::crc32c::Choose_Extend():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
callq 0xc2440
andl $0x100002, %eax # imm = 0x100002
movl %eax, -0xc(%rbp)
subl $0x100000, %eax # imm = 0x100000
je 0xc24c7
jmp 0xc24ae
movl -0xc(%rbp), %eax
subl $0x100002, %eax # imm = 0x100002
jne 0xc24d4
jmp 0xc24ba
leaq 0xf6f(%rip), %rax # 0xc3430
movq %rax, -0x8(%rbp)
jmp 0xc24df
leaq 0x72(%rip), %rax # 0xc2540
movq %rax, -0x8(%rbp)
jmp 0xc24df
leaq 0x225(%rip), %rax # 0xc2700
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN15mysys_namespace6crc32cL13Choose_ExtendEv:
push rbp
mov rbp, rsp
sub rsp, 10h
call _ZN15mysys_namespace6crc32cL9cpuid_ecxEv; mysys_namespace::crc32c::cpuid_ecx(void)
and eax, 100002h
mov [rbp+var_C], eax
sub eax, offset loc_100000
jz short loc_C24C7
jmp short $+2
loc_C24AE:
mov eax, [rbp+var_C]
sub eax, 100002h
jnz short loc_C24D4
jmp short $+2
loc_C24BA:
lea rax, crc32c_3way
mov [rbp+var_8], rax
jmp short loc_C24DF
loc_C24C7:
lea rax, _ZN15mysys_namespace6crc32cL12crc32c_sse42EjPKcm; mysys_namespace::crc32c::crc32c_sse42(uint,char const*,ulong)
mov [rbp+var_8], rax
jmp short loc_C24DF
loc_C24D4:
lea rax, _ZN15mysys_namespace6crc32cL11crc32c_slowEjPKcm; mysys_namespace::crc32c::crc32c_slow(uint,char const*,ulong)
mov [rbp+var_8], rax
loc_C24DF:
mov rax, [rbp+var_8]
add rsp, 10h
pop rbp
retn
| long long ( * mysys_namespace::crc32c::Choose_Extend(mysys_namespace::crc32c *this))()
{
int v2; // [rsp+4h] [rbp-Ch]
v2 = mysys_namespace::crc32c::cpuid_ecx(this) & 0x100002;
if ( v2 == (_DWORD)&loc_100000 )
return (long long ( *)())mysys_namespace::crc32c::crc32c_sse42;
if ( v2 == 1048578 )
return crc32c_3way;
return (long long ( *)())mysys_namespace::crc32c::crc32c_slow;
}
| Choose_Extend:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
CALL 0x001c2440
AND EAX,0x100002
MOV dword ptr [RBP + -0xc],EAX
SUB EAX,0x100000
JZ 0x001c24c7
JMP 0x001c24ae
LAB_001c24ae:
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x100002
JNZ 0x001c24d4
JMP 0x001c24ba
LAB_001c24ba:
LEA RAX,[0x1c3430]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001c24df
LAB_001c24c7:
LEA RAX,[0x1c2540]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001c24df
LAB_001c24d4:
LEA RAX,[0x1c2700]
MOV qword ptr [RBP + -0x8],RAX
LAB_001c24df:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x10
POP RBP
RET
|
/* mysys_namespace::crc32c::Choose_Extend() */
code * mysys_namespace::crc32c::Choose_Extend(void)
{
uint uVar1;
code *local_10;
uVar1 = cpuid_ecx();
if ((uVar1 & 0x100002) == 0x100000) {
local_10 = crc32c_sse42;
}
else if ((uVar1 & 0x100002) == 0x100002) {
local_10 = crc32c_3way;
}
else {
local_10 = crc32c_slow;
}
return local_10;
}
| |
20,968 | ma_dynstr_append_quoted | eloqsql/libmariadb/libmariadb/ma_string.c | my_bool ma_dynstr_append_quoted(DYNAMIC_STRING *str,
const char *append, size_t len,
char quote)
{
size_t additional= str->alloc_increment;
size_t lim= additional;
uint i;
if (ma_dynstr_realloc(str, len + additional + 2))
return TRUE;
str->str[str->length++]= quote;
for (i= 0; i < len; i++)
{
register char c= append[i];
if (c == quote || c == '\\')
{
if (!lim)
{
if (ma_dynstr_realloc(str, additional))
return TRUE;
lim= additional;
}
lim--;
str->str[str->length++]= '\\';
}
str->str[str->length++]= c;
}
str->str[str->length++]= quote;
return FALSE;
} | O0 | c | ma_dynstr_append_quoted:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movb %al, -0x21(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq -0x30(%rbp), %rsi
addq $0x2, %rsi
callq 0x31af0
cmpb $0x0, %al
je 0x31cff
movb $0x1, -0x1(%rbp)
jmp 0x31dfa
movb -0x21(%rbp), %dl
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rsi
movq 0x8(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x8(%rsi)
movb %dl, (%rax,%rcx)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpq -0x20(%rbp), %rax
jae 0x31dd6
movq -0x18(%rbp), %rax
movl -0x3c(%rbp), %ecx
movb (%rax,%rcx), %al
movb %al, -0x3d(%rbp)
movsbl -0x3d(%rbp), %eax
movsbl -0x21(%rbp), %ecx
cmpl %ecx, %eax
je 0x31d55
movsbl -0x3d(%rbp), %eax
cmpl $0x5c, %eax
jne 0x31da8
cmpq $0x0, -0x38(%rbp)
jne 0x31d7e
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x31af0
cmpb $0x0, %al
je 0x31d76
movb $0x1, -0x1(%rbp)
jmp 0x31dfa
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
movb $0x5c, (%rax,%rcx)
movb -0x3d(%rbp), %dl
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rsi
movq 0x8(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x8(%rsi)
movb %dl, (%rax,%rcx)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x31d26
movb -0x21(%rbp), %dl
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rsi
movq 0x8(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x8(%rsi)
movb %dl, (%rax,%rcx)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_dynstr_append_quoted:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, cl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_21], al
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
add rsi, [rbp+var_30]
add rsi, 2
call ma_dynstr_realloc
cmp al, 0
jz short loc_31CFF
mov [rbp+var_1], 1
jmp loc_31DFA
loc_31CFF:
mov dl, [rbp+var_21]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rbp+var_10]
mov rcx, [rsi+8]
mov rdi, rcx
add rdi, 1
mov [rsi+8], rdi
mov [rax+rcx], dl
mov [rbp+var_3C], 0
loc_31D26:
mov eax, [rbp+var_3C]
cmp rax, [rbp+var_20]
jnb loc_31DD6
mov rax, [rbp+var_18]
mov ecx, [rbp+var_3C]
mov al, [rax+rcx]
mov [rbp+var_3D], al
movsx eax, [rbp+var_3D]
movsx ecx, [rbp+var_21]
cmp eax, ecx
jz short loc_31D55
movsx eax, [rbp+var_3D]
cmp eax, 5Ch ; '\'
jnz short loc_31DA8
loc_31D55:
cmp [rbp+var_38], 0
jnz short loc_31D7E
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_30]
call ma_dynstr_realloc
cmp al, 0
jz short loc_31D76
mov [rbp+var_1], 1
jmp loc_31DFA
loc_31D76:
mov rax, [rbp+var_30]
mov [rbp+var_38], rax
loc_31D7E:
mov rax, [rbp+var_38]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdx, [rbp+var_10]
mov rcx, [rdx+8]
mov rsi, rcx
add rsi, 1
mov [rdx+8], rsi
mov byte ptr [rax+rcx], 5Ch ; '\'
loc_31DA8:
mov dl, [rbp+var_3D]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rbp+var_10]
mov rcx, [rsi+8]
mov rdi, rcx
add rdi, 1
mov [rsi+8], rdi
mov [rax+rcx], dl
mov eax, [rbp+var_3C]
add eax, 1
mov [rbp+var_3C], eax
jmp loc_31D26
loc_31DD6:
mov dl, [rbp+var_21]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rbp+var_10]
mov rcx, [rsi+8]
mov rdi, rcx
add rdi, 1
mov [rsi+8], rdi
mov [rax+rcx], dl
mov [rbp+var_1], 0
loc_31DFA:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| char ma_dynstr_append_quoted(long long *a1, long long a2, unsigned long long a3, char a4)
{
long long v4; // rax
long long v5; // rcx
long long v6; // rax
long long v7; // rcx
long long v8; // rax
long long v9; // rcx
long long v10; // rax
long long v11; // rcx
char v13; // [rsp+3h] [rbp-3Dh]
unsigned int i; // [rsp+4h] [rbp-3Ch]
long long v15; // [rsp+8h] [rbp-38h]
long long v16; // [rsp+10h] [rbp-30h]
v16 = a1[3];
v15 = v16;
if ( ma_dynstr_realloc(a1, v16 + a3 + 2) )
return 1;
v4 = *a1;
v5 = a1[1];
a1[1] = v5 + 1;
*(_BYTE *)(v4 + v5) = a4;
for ( i = 0; i < a3; ++i )
{
v13 = *(_BYTE *)(a2 + i);
if ( v13 == a4 || v13 == 92 )
{
if ( !v15 )
{
if ( ma_dynstr_realloc(a1, v16) )
return 1;
v15 = v16;
}
--v15;
v6 = *a1;
v7 = a1[1];
a1[1] = v7 + 1;
*(_BYTE *)(v6 + v7) = 92;
}
v8 = *a1;
v9 = a1[1];
a1[1] = v9 + 1;
*(_BYTE *)(v8 + v9) = v13;
}
v10 = *a1;
v11 = a1[1];
a1[1] = v11 + 1;
*(_BYTE *)(v10 + v11) = a4;
return 0;
}
| ma_dynstr_append_quoted:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,CL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RBP + -0x21],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
ADD RSI,qword ptr [RBP + -0x30]
ADD RSI,0x2
CALL 0x00131af0
CMP AL,0x0
JZ 0x00131cff
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00131dfa
LAB_00131cff:
MOV DL,byte ptr [RBP + -0x21]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDI,RCX
ADD RDI,0x1
MOV qword ptr [RSI + 0x8],RDI
MOV byte ptr [RAX + RCX*0x1],DL
MOV dword ptr [RBP + -0x3c],0x0
LAB_00131d26:
MOV EAX,dword ptr [RBP + -0x3c]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00131dd6
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x3c]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x3d],AL
MOVSX EAX,byte ptr [RBP + -0x3d]
MOVSX ECX,byte ptr [RBP + -0x21]
CMP EAX,ECX
JZ 0x00131d55
MOVSX EAX,byte ptr [RBP + -0x3d]
CMP EAX,0x5c
JNZ 0x00131da8
LAB_00131d55:
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00131d7e
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x00131af0
CMP AL,0x0
JZ 0x00131d76
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00131dfa
LAB_00131d76:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
LAB_00131d7e:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RDX + 0x8]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RDX + 0x8],RSI
MOV byte ptr [RAX + RCX*0x1],0x5c
LAB_00131da8:
MOV DL,byte ptr [RBP + -0x3d]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDI,RCX
ADD RDI,0x1
MOV qword ptr [RSI + 0x8],RDI
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00131d26
LAB_00131dd6:
MOV DL,byte ptr [RBP + -0x21]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDI,RCX
ADD RDI,0x1
MOV qword ptr [RSI + 0x8],RDI
MOV byte ptr [RAX + RCX*0x1],DL
MOV byte ptr [RBP + -0x1],0x0
LAB_00131dfa:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1 ma_dynstr_append_quoted(long *param_1,long param_2,ulong param_3,char param_4)
{
long lVar1;
long lVar2;
char cVar3;
char cVar4;
uint local_44;
long local_40;
int1 local_9;
lVar1 = param_1[3];
cVar3 = ma_dynstr_realloc(param_1,param_3 + lVar1 + 2);
if (cVar3 == '\0') {
lVar2 = param_1[1];
param_1[1] = lVar2 + 1;
*(char *)(*param_1 + lVar2) = param_4;
local_40 = lVar1;
for (local_44 = 0; local_44 < param_3; local_44 = local_44 + 1) {
cVar3 = *(char *)(param_2 + (ulong)local_44);
if ((cVar3 == param_4) || (cVar3 == '\\')) {
if ((local_40 == 0) &&
(cVar4 = ma_dynstr_realloc(param_1,lVar1), local_40 = lVar1, cVar4 != '\0')) {
return 1;
}
local_40 = local_40 + -1;
lVar2 = param_1[1];
param_1[1] = lVar2 + 1;
*(int1 *)(*param_1 + lVar2) = 0x5c;
}
lVar2 = param_1[1];
param_1[1] = lVar2 + 1;
*(char *)(*param_1 + lVar2) = cVar3;
}
lVar1 = param_1[1];
param_1[1] = lVar1 + 1;
*(char *)(*param_1 + lVar1) = param_4;
local_9 = 0;
}
else {
local_9 = 1;
}
return local_9;
}
| |
20,969 | my_hash_sort_ucs2_nopad_bin | eloqsql/strings/ctype-ucs2.c | static void
my_hash_sort_ucs2_nopad_bin(CHARSET_INFO *cs __attribute__((unused)),
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
const uchar *end= key + len;
register ulong m1= *nr1, m2= *nr2;
for ( ; key < end ; key++)
{
MY_HASH_ADD(m1, m2, (uint)*key);
}
*nr1= m1;
*nr2= m2;
} | O0 | c | my_hash_sort_ucs2_nopad_bin:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x6054e
jmp 0x60506
movq -0x38(%rbp), %rax
andq $0x3f, %rax
addq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x38(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x40(%rbp)
jmp 0x60540
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x604fa
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_hash_sort_ucs2_nopad_bin:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_40], rax
loc_604FA:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_30]
jnb short loc_6054E
jmp short $+2
loc_60506:
mov rax, [rbp+var_38]
and rax, 3Fh
add rax, [rbp+var_40]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_38]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_38]
mov [rbp+var_38], rax
mov rax, [rbp+var_40]
add rax, 3
mov [rbp+var_40], rax
jmp short $+2
loc_60540:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_604FA
loc_6054E:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_28]
mov [rax], rcx
pop rbp
retn
| _QWORD * my_hash_sort_ucs2_nopad_bin(long long a1, unsigned __int8 *a2, long long a3, long long *a4, _QWORD *a5)
{
_QWORD *result; // rax
long long v6; // [rsp+0h] [rbp-40h]
long long v7; // [rsp+8h] [rbp-38h]
unsigned __int8 *v8; // [rsp+30h] [rbp-10h]
v8 = a2;
v7 = *a4;
v6 = *a5;
while ( v8 < &a2[a3] )
{
v7 ^= (v7 << 8) + *v8 * (v6 + (v7 & 0x3F));
v6 += 3LL;
++v8;
}
*a4 = v7;
result = a5;
*a5 = v6;
return result;
}
| my_hash_sort_ucs2_nopad_bin:
PUSH RBP
MOV RBP,RSP
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 + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
LAB_001604fa:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0016054e
JMP 0x00160506
LAB_00160506:
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x38]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00160540
LAB_00160540:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001604fa
LAB_0016054e:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void my_hash_sort_ucs2_nopad_bin
(int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
long local_48;
ulong local_40;
byte *local_18;
local_40 = *param_4;
local_48 = *param_5;
for (local_18 = param_2; local_18 < param_2 + param_3; local_18 = local_18 + 1) {
local_40 = ((local_40 & 0x3f) + local_48) * (ulong)*local_18 + local_40 * 0x100 ^ local_40;
local_48 = local_48 + 3;
}
*param_4 = local_40;
*param_5 = local_48;
return;
}
| |
20,970 | my_dirend | eloqsql/mysys/my_lib.c | void my_dirend(MY_DIR *dir)
{
MY_DIR_HANDLE *dirh= (MY_DIR_HANDLE*) dir;
DBUG_ENTER("my_dirend");
if (dirh)
{
delete_dynamic(&dirh->array);
free_root(&dirh->root, MYF(0));
my_free(dirh);
}
DBUG_VOID_RETURN;
} | O3 | c | my_dirend:
testq %rdi, %rdi
je 0xbed34
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10, %rdi
callq 0xac8e4
leaq 0x38(%rbx), %rdi
xorl %esi, %esi
callq 0xb9ab7
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xbf54e
retq
| my_dirend:
test rdi, rdi
jz short locret_BED34
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
add rdi, 10h
call delete_dynamic
lea rdi, [rbx+38h]
xor esi, esi
call free_root
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp my_free
locret_BED34:
retn
| long long my_dirend(long long a1)
{
long long result; // rax
if ( a1 )
{
delete_dynamic((long long *)(a1 + 16));
free_root((_QWORD *)(a1 + 56), 0);
return my_free(a1);
}
return result;
}
| my_dirend:
TEST RDI,RDI
JZ 0x001bed34
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
ADD RDI,0x10
CALL 0x001ac8e4
LEA RDI,[RBX + 0x38]
XOR ESI,ESI
CALL 0x001b9ab7
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001bf54e
LAB_001bed34:
RET
|
void my_dirend(long param_1)
{
if (param_1 != 0) {
delete_dynamic(param_1 + 0x10);
free_root(param_1 + 0x38,0);
my_free(param_1);
return;
}
return;
}
| |
20,971 | ggml_graph_compute_thread_ready | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static inline bool ggml_graph_compute_thread_ready(struct ggml_compute_state * state) {
struct ggml_threadpool * threadpool = state->threadpool;
if (state->pending || threadpool->stop || threadpool->pause) { return true; }
// check for new graph/work
int new_graph = atomic_load_explicit(&threadpool->n_graph, memory_order_relaxed);
if (new_graph != state->last_graph) {
state->pending = ggml_graph_compute_thread_active(state);
state->last_graph = new_graph;
}
return state->pending;
} | O0 | c | ggml_graph_compute_thread_ready:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x210(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
testb $0x1, 0x20c(%rax)
jne 0x13612
movq -0x18(%rbp), %rax
testb $0x1, 0xc8(%rax)
jne 0x13612
movq -0x18(%rbp), %rax
testb $0x1, 0xc9(%rax)
je 0x13618
movb $0x1, -0x1(%rbp)
jmp 0x1366b
movq -0x18(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x208(%rcx), %eax
je 0x1365c
movq -0x10(%rbp), %rdi
callq 0x13680
movb %al, %cl
movq -0x10(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x20c(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x208(%rax)
movq -0x10(%rbp), %rax
movb 0x20c(%rax), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ggml_graph_compute_thread_ready:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax+210h]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
test byte ptr [rax+20Ch], 1
jnz short loc_13612
mov rax, [rbp+var_18]
test byte ptr [rax+0C8h], 1
jnz short loc_13612
mov rax, [rbp+var_18]
test byte ptr [rax+0C9h], 1
jz short loc_13618
loc_13612:
mov [rbp+var_1], 1
jmp short loc_1366B
loc_13618:
mov rax, [rbp+var_18]
mov eax, [rax+68h]
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
cmp eax, [rcx+208h]
jz short loc_1365C
mov rdi, [rbp+var_10]
call ggml_graph_compute_thread_active
mov cl, al
mov rax, [rbp+var_10]
and cl, 1
mov [rax+20Ch], cl
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov [rax+208h], ecx
loc_1365C:
mov rax, [rbp+var_10]
mov al, [rax+20Ch]
and al, 1
mov [rbp+var_1], al
loc_1366B:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
| char ggml_graph_compute_thread_ready(long long a1)
{
int v2; // [rsp+4h] [rbp-1Ch]
long long v3; // [rsp+8h] [rbp-18h]
v3 = *(_QWORD *)(a1 + 528);
if ( (*(_BYTE *)(a1 + 524) & 1) != 0 || (*(_BYTE *)(v3 + 200) & 1) != 0 || (*(_BYTE *)(v3 + 201) & 1) != 0 )
return 1;
v2 = *(_DWORD *)(v3 + 104);
if ( v2 != *(_DWORD *)(a1 + 520) )
{
*(_BYTE *)(a1 + 524) = ggml_graph_compute_thread_active(a1) & 1;
*(_DWORD *)(a1 + 520) = v2;
}
return *(_BYTE *)(a1 + 524) & 1;
}
| ggml_graph_compute_thread_ready:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x210]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
TEST byte ptr [RAX + 0x20c],0x1
JNZ 0x00113612
MOV RAX,qword ptr [RBP + -0x18]
TEST byte ptr [RAX + 0xc8],0x1
JNZ 0x00113612
MOV RAX,qword ptr [RBP + -0x18]
TEST byte ptr [RAX + 0xc9],0x1
JZ 0x00113618
LAB_00113612:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0011366b
LAB_00113618:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x68]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x208]
JZ 0x0011365c
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00113680
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
AND CL,0x1
MOV byte ptr [RAX + 0x20c],CL
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x208],ECX
LAB_0011365c:
MOV RAX,qword ptr [RBP + -0x10]
MOV AL,byte ptr [RAX + 0x20c]
AND AL,0x1
MOV byte ptr [RBP + -0x1],AL
LAB_0011366b:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
byte ggml_graph_compute_thread_ready(long param_1)
{
int iVar1;
long lVar2;
byte bVar3;
int1 local_9;
lVar2 = *(long *)(param_1 + 0x210);
if ((((*(byte *)(param_1 + 0x20c) & 1) == 0) && ((*(byte *)(lVar2 + 200) & 1) == 0)) &&
((*(byte *)(lVar2 + 0xc9) & 1) == 0)) {
iVar1 = *(int *)(lVar2 + 0x68);
if (iVar1 != *(int *)(param_1 + 0x208)) {
bVar3 = ggml_graph_compute_thread_active(param_1);
*(byte *)(param_1 + 0x20c) = bVar3 & 1;
*(int *)(param_1 + 0x208) = iVar1;
}
local_9 = *(byte *)(param_1 + 0x20c) & 1;
}
else {
local_9 = 1;
}
return local_9;
}
| |
20,972 | SDL::RingBuffer<unsigned long, 100ul>::Enqueue(unsigned long const&) | SDL3Lite/source/include/SDL3Lite/RingBuffer.hpp | void Enqueue(const T& element)
{
_head = NextPosition(_head);
_content[_head] = element;
if (IsFull())
{
_tail = NextPosition(_tail);
}
else
{
_length++;
}
} | O0 | cpp | SDL::RingBuffer<unsigned long, 100ul>::Enqueue(unsigned long const&):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movl 0x320(%rdi), %esi
callq 0x1cc40
movq -0x18(%rbp), %rdi
movl %eax, 0x320(%rdi)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movslq 0x320(%rdi), %rax
movq %rcx, (%rdi,%rax,8)
callq 0x1c9a0
testb $0x1, %al
jne 0x1ca8a
jmp 0x1caa7
movq -0x18(%rbp), %rdi
movl 0x324(%rdi), %esi
callq 0x1cc40
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x324(%rax)
jmp 0x1caba
movq -0x18(%rbp), %rax
movl 0x328(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x328(%rax)
addq $0x20, %rsp
popq %rbp
retq
| _ZN3SDL10RingBufferImLm100EE7EnqueueERKm:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_18], rdi
mov esi, [rdi+320h]
call _ZN3SDL10RingBufferImLm100EE12NextPositionEi; SDL::RingBuffer<ulong,100ul>::NextPosition(int)
mov rdi, [rbp+var_18]
mov [rdi+320h], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
movsxd rax, dword ptr [rdi+320h]
mov [rdi+rax*8], rcx
call _ZN3SDL10RingBufferImLm100EE6IsFullEv; SDL::RingBuffer<ulong,100ul>::IsFull(void)
test al, 1
jnz short loc_1CA8A
jmp short loc_1CAA7
loc_1CA8A:
mov rdi, [rbp+var_18]
mov esi, [rdi+324h]
call _ZN3SDL10RingBufferImLm100EE12NextPositionEi; SDL::RingBuffer<ulong,100ul>::NextPosition(int)
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+324h], ecx
jmp short loc_1CABA
loc_1CAA7:
mov rax, [rbp+var_18]
mov ecx, [rax+328h]
add ecx, 1
mov [rax+328h], ecx
loc_1CABA:
add rsp, 20h
pop rbp
retn
| _DWORD * SDL::RingBuffer<unsigned long,100ul>::Enqueue(_DWORD *a1, _QWORD *a2)
{
int Position; // ecx
_DWORD *result; // rax
a1[200] = SDL::RingBuffer<unsigned long,100ul>::NextPosition(a1, (unsigned int)a1[200]);
*(_QWORD *)&a1[2 * a1[200]] = *a2;
if ( SDL::RingBuffer<unsigned long,100ul>::IsFull((long long)a1) )
{
Position = SDL::RingBuffer<unsigned long,100ul>::NextPosition(a1, (unsigned int)a1[201]);
result = a1;
a1[201] = Position;
}
else
{
result = a1;
++a1[202];
}
return result;
}
| Enqueue:
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 qword ptr [RBP + -0x18],RDI
MOV ESI,dword ptr [RDI + 0x320]
CALL 0x0011cc40
MOV RDI,qword ptr [RBP + -0x18]
MOV dword ptr [RDI + 0x320],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOVSXD RAX,dword ptr [RDI + 0x320]
MOV qword ptr [RDI + RAX*0x8],RCX
CALL 0x0011c9a0
TEST AL,0x1
JNZ 0x0011ca8a
JMP 0x0011caa7
LAB_0011ca8a:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RDI + 0x324]
CALL 0x0011cc40
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x324],ECX
JMP 0x0011caba
LAB_0011caa7:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0x328]
ADD ECX,0x1
MOV dword ptr [RAX + 0x328],ECX
LAB_0011caba:
ADD RSP,0x20
POP RBP
RET
|
/* SDL::RingBuffer<unsigned long, 100ul>::Enqueue(unsigned long const&) */
void __thiscall
SDL::RingBuffer<unsigned_long,100ul>::Enqueue(RingBuffer<unsigned_long,100ul> *this,ulong *param_1)
{
int4 uVar1;
ulong uVar2;
uVar1 = NextPosition(this,*(int *)(this + 800));
*(int4 *)(this + 800) = uVar1;
*(ulong *)(this + (long)*(int *)(this + 800) * 8) = *param_1;
uVar2 = IsFull(this);
if ((uVar2 & 1) == 0) {
*(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;
}
else {
uVar1 = NextPosition(this,*(int *)(this + 0x324));
*(int4 *)(this + 0x324) = uVar1;
}
return;
}
| |
20,973 | ac_vm_new | alca/libalca/vm.c | ac_vm *ac_vm_new(ac_compiler *compiler)
{
ac_vm *vm = ac_alloc(sizeof(ac_vm));
vm->cpl = compiler;
vm->sp = 0;
vm->ip = 0;
vm->code_size = ac_arena_size(compiler->code_arena);
vm->code = ac_arena_data(compiler->code_arena);
vm->data = compiler->data_arena;
// load all module objects into context
ac_context_load_modules(vm->cpl->ctx);
// construct sequence table
vm->sequence_table = ac_alloc(compiler->nsequences * sizeof(vm_sequence));
for (int i = 0; i < compiler->nsequences; i++)
{
ac_sequence_entry *entry = &compiler->sequence_table[i];
vm->sequence_table[i].monitored_rules = hashmap_new(
sizeof(vm_monrule),
0,
0,
0,
monrule_hash,
monrule_cmp,
NULL,
NULL);
vm->sequence_table[i].max_span = entry->max_span;
vm->sequence_table[i].rule_count = entry->rule_count;
vm->sequence_table[i].rule_indices = entry->rule_indices;
for (uint32_t j = 0; j < entry->rule_count; j++)
{
hashmap_set(vm->sequence_table[i].monitored_rules, &(vm_monrule){entry->rule_indices[j], 0});
}
}
// create mapping of module ordinals to event type names
vm->modules = hashmap_new(
sizeof(modinfo),
0,
0,
0,
modinfo_hash,
modinfo_cmp,
NULL,
NULL);
for (int i = 0; i < compiler->nmodules; i++)
{
char *modname = ac_arena_get_string(compiler->data_arena, compiler->module_table[i].name_offset);
hashmap_set(vm->modules, &(modinfo){compiler->module_table[i].ordinal, modname});
}
return vm;
} | O0 | c | ac_vm_new:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl $0x20a0, %edi # imm = 0x20A0
callq 0x7890
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2098(%rax)
movq -0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x7d90
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x2018(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x7bc0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2020(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2028(%rax)
movq -0x10(%rbp), %rax
movq 0x2098(%rax), %rax
movq (%rax), %rdi
callq 0x72d0
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %eax
shlq $0x5, %rax
movl %eax, %edi
callq 0x7890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2030(%rax)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jae 0x14be6
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl $0x18, %edi
xorl %eax, %eax
movl %eax, %ecx
movq 0x7247e(%rip), %r8 # 0x86f48
movq 0x724df(%rip), %r9 # 0x86fb0
movq %rcx, %rsi
movq %rcx, %rdx
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x7060
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq 0x2030(%rax), %rax
movslq -0x14(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movq 0x2030(%rax), %rax
movslq -0x14(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x10(%rbp), %rax
movq 0x2030(%rax), %rax
movslq -0x14(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x2030(%rax), %rax
movslq -0x14(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jae 0x14bd6
movq -0x10(%rbp), %rax
movq 0x2030(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, -0x68(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x7550
movq -0x68(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x24(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x40(%rbp)
leaq -0x40(%rbp), %rsi
callq 0x73d0
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x14b73
jmp 0x14bd8
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x14a93
movl $0x10, %edi
xorl %eax, %eax
movl %eax, %ecx
movq 0x7235a(%rip), %r8 # 0x86f50
movq 0x723cb(%rip), %r9 # 0x86fc8
movq %rcx, %rsi
movq %rcx, %rdx
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x7060
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2038(%rax)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x28(%rcx), %eax
jae 0x14ca0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x44(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0xc(%rax), %esi
callq 0x77a0
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x2038(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x44(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rsi
callq 0x73d0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x14c2e
movq -0x10(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
| ac_vm_new:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov edi, 20A0h
call _ac_alloc
mov [rbp+var_10], rax
mov rcx, [rbp+var_8]
mov rax, [rbp+var_10]
mov [rax+2098h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
mov rdi, [rax+18h]
call _ac_arena_size
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax+2018h], ecx
mov rax, [rbp+var_8]
mov rdi, [rax+18h]
call _ac_arena_data
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2020h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov [rax+2028h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+2098h]
mov rdi, [rax]
call _ac_context_load_modules
mov rax, [rbp+var_8]
mov eax, [rax+2Ch]
shl rax, 5
mov edi, eax
call _ac_alloc
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2030h], rcx
mov [rbp+var_14], 0
loc_14A93:
mov eax, [rbp+var_14]
mov rcx, [rbp+var_8]
cmp eax, [rcx+2Ch]
jnb loc_14BE6
mov rax, [rbp+var_8]
mov rax, [rax+50h]
movsxd rcx, [rbp+var_14]
shl rcx, 5
add rax, rcx
mov [rbp+var_20], rax
mov edi, 18h
xor eax, eax
mov ecx, eax
mov r8, cs:monrule_hash_ptr
mov r9, cs:monrule_cmp_ptr
mov rsi, rcx
mov rdx, rcx
mov [rsp+80h+var_80], 0
mov [rsp+80h+var_78], 0
call _hashmap_new
mov rcx, rax
mov rax, [rbp+var_10]
mov rax, [rax+2030h]
movsxd rdx, [rbp+var_14]
shl rdx, 5
add rax, rdx
mov [rax+18h], rcx
mov rax, [rbp+var_20]
mov ecx, [rax+4]
mov rax, [rbp+var_10]
mov rax, [rax+2030h]
movsxd rdx, [rbp+var_14]
shl rdx, 5
add rax, rdx
mov [rax+4], ecx
mov rax, [rbp+var_20]
mov ecx, [rax+8]
mov rax, [rbp+var_10]
mov rax, [rax+2030h]
movsxd rdx, [rbp+var_14]
shl rdx, 5
add rax, rdx
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov rax, [rax+2030h]
movsxd rdx, [rbp+var_14]
shl rdx, 5
add rax, rdx
mov [rax+10h], rcx
mov [rbp+var_24], 0
loc_14B73:
mov eax, [rbp+var_24]
mov rcx, [rbp+var_20]
cmp eax, [rcx+8]
jnb short loc_14BD6
mov rax, [rbp+var_10]
mov rax, [rax+2030h]
movsxd rcx, [rbp+var_14]
shl rcx, 5
add rax, rcx
mov rax, [rax+18h]
mov [rbp+var_68], rax
lea rdi, [rbp+var_40]
xor esi, esi
mov edx, 18h
call _memset
mov rdi, [rbp+var_68]
mov rax, [rbp+var_20]
mov rax, [rax+18h]
mov ecx, [rbp+var_24]
mov eax, [rax+rcx*4]
mov [rbp+var_40], eax
lea rsi, [rbp+var_40]
call _hashmap_set
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp short loc_14B73
loc_14BD6:
jmp short $+2
loc_14BD8:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp loc_14A93
loc_14BE6:
mov edi, 10h
xor eax, eax
mov ecx, eax
mov r8, cs:modinfo_hash_ptr
mov r9, cs:modinfo_cmp_ptr
mov rsi, rcx
mov rdx, rcx
mov [rsp+80h+var_80], 0
mov [rsp+80h+var_78], 0
call _hashmap_new
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2038h], rcx
mov [rbp+var_44], 0
loc_14C2E:
mov eax, [rbp+var_44]
mov rcx, [rbp+var_8]
cmp eax, [rcx+28h]
jnb short loc_14CA0
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
mov rax, [rbp+var_8]
mov rax, [rax+40h]
movsxd rcx, [rbp+var_44]
shl rcx, 4
add rax, rcx
mov esi, [rax+0Ch]
call _ac_arena_get_string
mov [rbp+var_50], rax
mov rax, [rbp+var_10]
mov rdi, [rax+2038h]
mov rax, [rbp+var_8]
mov rax, [rax+40h]
movsxd rcx, [rbp+var_44]
shl rcx, 4
add rax, rcx
mov eax, [rax]
mov [rbp+var_60], eax
mov rax, [rbp+var_50]
mov [rbp+var_58], rax
lea rsi, [rbp+var_60]
call _hashmap_set
mov eax, [rbp+var_44]
add eax, 1
mov [rbp+var_44], eax
jmp short loc_14C2E
loc_14CA0:
mov rax, [rbp+var_10]
add rsp, 80h
pop rbp
retn
| long long ac_vm_new(long long a1)
{
__m128i *v1; // rax
__m128i *v2; // rax
long long v3; // rdi
long long v5; // [rsp+18h] [rbp-68h]
int v6; // [rsp+20h] [rbp-60h] BYREF
long long v7; // [rsp+28h] [rbp-58h]
long long string; // [rsp+30h] [rbp-50h]
unsigned int k; // [rsp+3Ch] [rbp-44h]
_DWORD v10[7]; // [rsp+40h] [rbp-40h] BYREF
unsigned int j; // [rsp+5Ch] [rbp-24h]
long long v12; // [rsp+60h] [rbp-20h]
unsigned int i; // [rsp+6Ch] [rbp-14h]
long long v14; // [rsp+70h] [rbp-10h]
long long v15; // [rsp+78h] [rbp-8h]
v15 = a1;
v14 = ac_alloc(8352LL);
*(_QWORD *)(v14 + 8344) = a1;
*(_DWORD *)v14 = 0;
*(_QWORD *)(v14 + 8) = 0LL;
*(_DWORD *)(v14 + 8216) = ac_arena_size(*(_QWORD *)(v15 + 24));
*(_QWORD *)(v14 + 8224) = ac_arena_data(*(_QWORD *)(v15 + 24));
*(_QWORD *)(v14 + 8232) = *(_QWORD *)(v15 + 16);
ac_context_load_modules(**(long long ***)(v14 + 8344));
*(_QWORD *)(v14 + 8240) = ac_alloc((unsigned int)(32 * *(_DWORD *)(v15 + 44)));
for ( i = 0; i < *(_DWORD *)(v15 + 44); ++i )
{
v12 = 32LL * (int)i + *(_QWORD *)(v15 + 80);
v1 = hashmap_new(24LL, 0LL, 0LL, 0LL, (long long)monrule_hash, (long long)monrule_cmp, 0LL, 0LL);
*(_QWORD *)(32LL * (int)i + *(_QWORD *)(v14 + 8240) + 24) = v1;
*(_DWORD *)(32LL * (int)i + *(_QWORD *)(v14 + 8240) + 4) = *(_DWORD *)(v12 + 4);
*(_DWORD *)(32LL * (int)i + *(_QWORD *)(v14 + 8240) + 8) = *(_DWORD *)(v12 + 8);
*(_QWORD *)(32LL * (int)i + *(_QWORD *)(v14 + 8240) + 16) = *(_QWORD *)(v12 + 24);
for ( j = 0; j < *(_DWORD *)(v12 + 8); ++j )
{
v5 = *(_QWORD *)(32LL * (int)i + *(_QWORD *)(v14 + 8240) + 24);
memset(v10, 0LL, 24LL);
v10[0] = *(_DWORD *)(*(_QWORD *)(v12 + 24) + 4LL * j);
hashmap_set(v5, (long long)v10);
}
}
v2 = hashmap_new(16LL, 0LL, 0LL, 0LL, (long long)modinfo_hash, (long long)modinfo_cmp, 0LL, 0LL);
*(_QWORD *)(v14 + 8248) = v2;
for ( k = 0; k < *(_DWORD *)(v15 + 40); ++k )
{
string = ac_arena_get_string(*(_QWORD *)(v15 + 16), *(unsigned int *)(16LL * (int)k + *(_QWORD *)(v15 + 64) + 12));
v3 = *(_QWORD *)(v14 + 8248);
v6 = *(_DWORD *)(16LL * (int)k + *(_QWORD *)(v15 + 64));
v7 = string;
hashmap_set(v3, (long long)&v6);
}
return v14;
}
| ac_vm_new:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV EDI,0x20a0
CALL 0x00107890
MOV qword ptr [RBP + -0x10],RAX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2098],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00107d90
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2018],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00107bc0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2020],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2028],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2098]
MOV RDI,qword ptr [RAX]
CALL 0x001072d0
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x2c]
SHL RAX,0x5
MOV EDI,EAX
CALL 0x00107890
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2030],RCX
MOV dword ptr [RBP + -0x14],0x0
LAB_00114a93:
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x2c]
JNC 0x00114be6
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x50]
MOVSXD RCX,dword ptr [RBP + -0x14]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV EDI,0x18
XOR EAX,EAX
MOV ECX,EAX
MOV R8,qword ptr [0x00186f48]
MOV R9,qword ptr [0x00186fb0]
MOV RSI,RCX
MOV RDX,RCX
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
CALL 0x00107060
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2030]
MOVSXD RDX,dword ptr [RBP + -0x14]
SHL RDX,0x5
ADD RAX,RDX
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2030]
MOVSXD RDX,dword ptr [RBP + -0x14]
SHL RDX,0x5
ADD RAX,RDX
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2030]
MOVSXD RDX,dword ptr [RBP + -0x14]
SHL RDX,0x5
ADD RAX,RDX
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2030]
MOVSXD RDX,dword ptr [RBP + -0x14]
SHL RDX,0x5
ADD RAX,RDX
MOV qword ptr [RAX + 0x10],RCX
MOV dword ptr [RBP + -0x24],0x0
LAB_00114b73:
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x20]
CMP EAX,dword ptr [RCX + 0x8]
JNC 0x00114bd6
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2030]
MOVSXD RCX,dword ptr [RBP + -0x14]
SHL RCX,0x5
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x68],RAX
LEA RDI,[RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00107550
MOV RDI,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x18]
MOV ECX,dword ptr [RBP + -0x24]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RBP + -0x40],EAX
LEA RSI,[RBP + -0x40]
CALL 0x001073d0
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00114b73
LAB_00114bd6:
JMP 0x00114bd8
LAB_00114bd8:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x00114a93
LAB_00114be6:
MOV EDI,0x10
XOR EAX,EAX
MOV ECX,EAX
MOV R8,qword ptr [0x00186f50]
MOV R9,qword ptr [0x00186fc8]
MOV RSI,RCX
MOV RDX,RCX
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
CALL 0x00107060
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2038],RCX
MOV dword ptr [RBP + -0x44],0x0
LAB_00114c2e:
MOV EAX,dword ptr [RBP + -0x44]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x28]
JNC 0x00114ca0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x40]
MOVSXD RCX,dword ptr [RBP + -0x44]
SHL RCX,0x4
ADD RAX,RCX
MOV ESI,dword ptr [RAX + 0xc]
CALL 0x001077a0
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x2038]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x40]
MOVSXD RCX,dword ptr [RBP + -0x44]
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x60],EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x58],RAX
LEA RSI,[RBP + -0x60]
CALL 0x001073d0
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x00114c2e
LAB_00114ca0:
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x80
POP RBP
RET
|
int4 * ac_vm_new(long param_1)
{
int4 uVar1;
int8 uVar2;
int4 local_68 [2];
int8 local_60;
int8 local_58;
uint local_4c;
int4 local_48 [7];
uint local_2c;
long local_28;
uint local_1c;
int4 *local_18;
long local_10;
local_10 = param_1;
local_18 = (int4 *)ac_alloc(0x20a0);
*(long *)(local_18 + 0x826) = local_10;
*local_18 = 0;
*(int8 *)(local_18 + 2) = 0;
uVar1 = ac_arena_size(*(int8 *)(local_10 + 0x18));
local_18[0x806] = uVar1;
uVar2 = ac_arena_data(*(int8 *)(local_10 + 0x18));
*(int8 *)(local_18 + 0x808) = uVar2;
*(int8 *)(local_18 + 0x80a) = *(int8 *)(local_10 + 0x10);
ac_context_load_modules(**(int8 **)(local_18 + 0x826));
uVar2 = ac_alloc(*(int *)(local_10 + 0x2c) << 5);
*(int8 *)(local_18 + 0x80c) = uVar2;
for (local_1c = 0; local_1c < *(uint *)(local_10 + 0x2c); local_1c = local_1c + 1) {
local_28 = *(long *)(local_10 + 0x50) + (long)(int)local_1c * 0x20;
uVar2 = hashmap_new(0x18,0,0,0,PTR_monrule_hash_00186f48,PTR_monrule_cmp_00186fb0,0,0);
*(int8 *)(*(long *)(local_18 + 0x80c) + (long)(int)local_1c * 0x20 + 0x18) = uVar2;
*(int4 *)(*(long *)(local_18 + 0x80c) + (long)(int)local_1c * 0x20 + 4) =
*(int4 *)(local_28 + 4);
*(int4 *)(*(long *)(local_18 + 0x80c) + (long)(int)local_1c * 0x20 + 8) =
*(int4 *)(local_28 + 8);
*(int8 *)(*(long *)(local_18 + 0x80c) + (long)(int)local_1c * 0x20 + 0x10) =
*(int8 *)(local_28 + 0x18);
for (local_2c = 0; local_2c < *(uint *)(local_28 + 8); local_2c = local_2c + 1) {
uVar2 = *(int8 *)(*(long *)(local_18 + 0x80c) + (long)(int)local_1c * 0x20 + 0x18);
memset(local_48,0,0x18);
local_48[0] = *(int4 *)(*(long *)(local_28 + 0x18) + (ulong)local_2c * 4);
hashmap_set(uVar2);
}
}
uVar2 = hashmap_new(0x10,0,0,0,PTR_modinfo_hash_00186f50,PTR_modinfo_cmp_00186fc8,0,0);
*(int8 *)(local_18 + 0x80e) = uVar2;
for (local_4c = 0; local_4c < *(uint *)(local_10 + 0x28); local_4c = local_4c + 1) {
local_60 = ac_arena_get_string(*(int8 *)(local_10 + 0x10),
*(int4 *)
(*(long *)(local_10 + 0x40) + (long)(int)local_4c * 0x10 + 0xc))
;
local_68[0] = *(int4 *)(*(long *)(local_10 + 0x40) + (long)(int)local_4c * 0x10);
local_58 = local_60;
hashmap_set(*(int8 *)(local_18 + 0x80e),local_68);
}
return local_18;
}
| |
20,974 | ggml_vec_silu_f32 | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_vec_silu_f32(const int n, float * y, const float * x) {
int i = 0;
#if defined(__AVX512F__) && defined(__AVX512DQ__)
for (; i + 15 < n; i += 16) {
_mm512_storeu_ps(y + i, ggml_v_silu(_mm512_loadu_ps(x + i)));
}
#elif defined(__AVX2__) && defined(__FMA__)
for (; i + 7 < n; i += 8) {
_mm256_storeu_ps(y + i, ggml_v_silu(_mm256_loadu_ps(x + i)));
}
#elif defined(__SSE2__)
for (; i + 3 < n; i += 4) {
_mm_storeu_ps(y + i, ggml_v_silu(_mm_loadu_ps(x + i)));
}
#elif defined(__ARM_NEON) && defined(__aarch64__)
for (; i + 3 < n; i += 4) {
vst1q_f32(y + i, ggml_v_silu(vld1q_f32(x + i)));
}
#endif
for (; i < n; ++i) {
y[i] = ggml_silu_f32(x[i]);
}
} | O0 | c | ggml_vec_silu_f32:
pushq %rbp
movq %rsp, %rbp
andq $-0x40, %rsp
subq $0xc0, %rsp
movl %edi, 0x34(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
addl $0xf, %eax
cmpl 0x34(%rsp), %eax
jge 0x3a869
movq 0x28(%rsp), %rax
movslq 0x1c(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movslq 0x1c(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
vmovups (%rax), %zmm0
callq 0x3a8b0
movq 0x10(%rsp), %rax
movq %rax, 0xa8(%rsp)
vmovaps %zmm0, 0x40(%rsp)
vmovaps 0x40(%rsp), %zmm0
movq 0xa8(%rsp), %rax
vmovups %zmm0, (%rax)
movl 0x1c(%rsp), %eax
addl $0x10, %eax
movl %eax, 0x1c(%rsp)
jmp 0x3a7e5
jmp 0x3a86b
movl 0x1c(%rsp), %eax
cmpl 0x34(%rsp), %eax
jge 0x3a8a8
movq 0x20(%rsp), %rax
movslq 0x1c(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm0
vzeroupper
callq 0x3a9d0
movq 0x28(%rsp), %rax
movslq 0x1c(%rsp), %rcx
vmovss %xmm0, (%rax,%rcx,4)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x3a86b
movq %rbp, %rsp
popq %rbp
vzeroupper
retq
| ggml_vec_silu_f32:
push rbp
mov rbp, rsp
and rsp, 0FFFFFFFFFFFFFFC0h
sub rsp, 0C0h
mov [rsp+0C0h+var_8C], edi
mov [rsp+0C0h+var_98], rsi
mov [rsp+0C0h+var_A0], rdx
mov [rsp+0C0h+var_A4], 0
loc_3A7E5:
mov eax, [rsp+0C0h+var_A4]
add eax, 0Fh
cmp eax, [rsp+0C0h+var_8C]
jge short loc_3A869
mov rax, [rsp+0C0h+var_98]
movsxd rcx, [rsp+0C0h+var_A4]
shl rcx, 2
add rax, rcx
mov [rsp+0C0h+var_B0], rax
mov rax, [rsp+0C0h+var_A0]
movsxd rcx, [rsp+0C0h+var_A4]
shl rcx, 2
add rax, rcx
mov [rsp+0C0h+var_88], rax
mov rax, [rsp+0C0h+var_88]
vmovups zmm0, zmmword ptr [rax]
call ggml_v_silu
mov rax, [rsp+0C0h+var_B0]
mov [rsp+0C0h+var_18], rax
vmovaps zmmword ptr [rsp+0C0h+var_80], zmm0
vmovaps zmm0, zmmword ptr [rsp+0C0h+var_80]
mov rax, [rsp+0C0h+var_18]
vmovups zmmword ptr [rax], zmm0
mov eax, [rsp+0C0h+var_A4]
add eax, 10h
mov [rsp+0C0h+var_A4], eax
jmp loc_3A7E5
loc_3A869:
jmp short $+2
loc_3A86B:
mov eax, [rsp+0C0h+var_A4]
cmp eax, [rsp+0C0h+var_8C]
jge short loc_3A8A8
mov rax, [rsp+0C0h+var_A0]
movsxd rcx, [rsp+0C0h+var_A4]
vmovss xmm0, dword ptr [rax+rcx*4]
vzeroupper
call ggml_silu_f32
mov rax, [rsp+0C0h+var_98]
movsxd rcx, [rsp+0C0h+var_A4]
vmovss dword ptr [rax+rcx*4], xmm0
mov eax, [rsp+0C0h+var_A4]
add eax, 1
mov [rsp+0C0h+var_A4], eax
jmp short loc_3A86B
loc_3A8A8:
mov rsp, rbp
pop rbp
vzeroupper
retn
| long long ggml_vec_silu_f32(int a1, long long a2, long long a3)
{
long long result; // rax
unsigned int i; // [rsp+1Ch] [rbp-A4h]
for ( i = 0; (int)(i + 15) < a1; i += 16 )
{
_RAX = 4LL * (int)i + a3;
__asm { vmovups zmm0, zmmword ptr [rax] }
ggml_v_silu();
__asm
{
vmovaps zmmword ptr [rsp+0C0h+var_80], zmm0
vmovaps zmm0, zmmword ptr [rsp+0C0h+var_80]
}
_RAX = 4LL * (int)i + a2;
__asm { vmovups zmmword ptr [rax], zmm0 }
}
while ( 1 )
{
result = i;
if ( (int)i >= a1 )
break;
_RAX = a3;
_RCX = (int)i;
__asm
{
vmovss xmm0, dword ptr [rax+rcx*4]
vzeroupper
}
*(double *)&_XMM0 = ggml_silu_f32(*(double *)&_XMM0);
_RAX = a2;
_RCX = (int)i;
__asm { vmovss dword ptr [rax+rcx*4], xmm0 }
++i;
}
__asm { vzeroupper }
return result;
}
| ggml_vec_silu_f32:
PUSH RBP
MOV RBP,RSP
AND RSP,-0x40
SUB RSP,0xc0
MOV dword ptr [RSP + 0x34],EDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV dword ptr [RSP + 0x1c],0x0
LAB_0013a7e5:
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0xf
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x0013a869
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x1c]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x1c]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
VMOVUPS ZMM0,zmmword ptr [RAX]
CALL 0x0013a8b0
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0xa8],RAX
VMOVAPS zmmword ptr [RSP + 0x40] ,ZMM0
VMOVAPS ZMM0,zmmword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0xa8]
VMOVUPS zmmword ptr [RAX],ZMM0
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x10
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x0013a7e5
LAB_0013a869:
JMP 0x0013a86b
LAB_0013a86b:
MOV EAX,dword ptr [RSP + 0x1c]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x0013a8a8
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x1c]
VMOVSS XMM0,dword ptr [RAX + RCX*0x4]
VZEROUPPER
CALL 0x0013a9d0
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x1c]
VMOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x0013a86b
LAB_0013a8a8:
MOV RSP,RBP
POP RBP
VZEROUPPER
RET
|
void ggml_vec_silu_f32(int param_1,long param_2,long param_3)
{
int8 *puVar1;
int4 uVar2;
int8 uVar3;
int8 extraout_XMM0_Qb;
int8 extraout_YMM0_H;
int8 extraout_var;
int8 extraout_var_00;
int8 extraout_var_01;
int8 extraout_var_02;
int8 extraout_var_03;
int local_e4;
for (local_e4 = 0; local_e4 + 0xf < param_1; local_e4 = local_e4 + 0x10) {
puVar1 = (int8 *)(param_2 + (long)local_e4 * 4);
uVar3 = ggml_v_silu(*(int8 *)(param_3 + (long)local_e4 * 4));
*puVar1 = uVar3;
puVar1[1] = extraout_XMM0_Qb;
puVar1[2] = extraout_YMM0_H;
puVar1[3] = extraout_var;
puVar1[4] = extraout_var_00;
puVar1[5] = extraout_var_01;
puVar1[6] = extraout_var_02;
puVar1[7] = extraout_var_03;
}
for (; local_e4 < param_1; local_e4 = local_e4 + 1) {
uVar2 = ggml_silu_f32();
*(int4 *)(param_2 + (long)local_e4 * 4) = uVar2;
}
return;
}
| |
20,975 | common_embd_normalize(float const*, float*, int, int) | monkey531[P]llama/common/common.cpp | void common_embd_normalize(const float * inp, float * out, int n, int embd_norm) {
double sum = 0.0;
switch (embd_norm) {
case -1: // no normalisation
sum = 1.0;
break;
case 0: // max absolute
for (int i = 0; i < n; i++) {
if (sum < std::abs(inp[i])) {
sum = std::abs(inp[i]);
}
}
sum /= 32760.0; // make an int16 range
break;
case 2: // euclidean
for (int i = 0; i < n; i++) {
sum += inp[i] * inp[i];
}
sum = std::sqrt(sum);
break;
default: // p-norm (euclidean is p-norm p=2)
for (int i = 0; i < n; i++) {
sum += std::pow(std::abs(inp[i]), embd_norm);
}
sum = std::pow(sum, 1.0 / embd_norm);
break;
}
const float norm = sum > 0.0 ? 1.0 / sum : 0.0f;
for (int i = 0; i < n; i++) {
out[i] = inp[i] * norm;
}
} | O0 | cpp | common_embd_normalize(float const*, float*, int, int):
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movl %ecx, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movl 0x30(%rsp), %eax
movl %eax, 0x10(%rsp)
subl $-0x1, %eax
je 0xf669a
jmp 0xf667e
movl 0x10(%rsp), %eax
testl %eax, %eax
je 0xf66ad
jmp 0xf6688
movl 0x10(%rsp), %eax
subl $0x2, %eax
je 0xf6739
jmp 0xf6799
movsd 0x11a8de(%rip), %xmm0 # 0x210f80
movsd %xmm0, 0x28(%rsp)
jmp 0xf6804
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x34(%rsp), %eax
jge 0xf671c
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x40(%rsp), %rax
movslq 0x24(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
callq 0x1045e0
movsd 0x8(%rsp), %xmm1
cvtss2sd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0xf670d
movq 0x40(%rsp), %rax
movslq 0x24(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
callq 0x1045e0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0xf670f
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0xf66b5
movsd 0x28(%rsp), %xmm0
movsd 0x11a84e(%rip), %xmm1 # 0x210f78
divsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0xf6804
movl $0x0, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x34(%rsp), %eax
jge 0xf6786
movq 0x40(%rsp), %rax
movslq 0x20(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
movq 0x40(%rsp), %rax
movslq 0x20(%rsp), %rcx
mulss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
addsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0xf6741
movsd 0x28(%rsp), %xmm0
callq 0x5a880
movsd %xmm0, 0x28(%rsp)
jmp 0xf6804
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x34(%rsp), %eax
jge 0xf67e1
movq 0x40(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
callq 0x1045e0
movl 0x30(%rsp), %edi
callq 0x104600
addsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0xf67a1
movsd 0x28(%rsp), %xmm0
cvtsi2sdl 0x30(%rsp), %xmm2
movsd 0x11a78b(%rip), %xmm1 # 0x210f80
divsd %xmm2, %xmm1
callq 0x5a610
movsd %xmm0, 0x28(%rsp)
movsd 0x28(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xf6828
movsd 0x11a765(%rip), %xmm0 # 0x210f80
divsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rsp)
jmp 0xf6832
xorps %xmm0, %xmm0
movsd %xmm0, (%rsp)
jmp 0xf6832
movsd (%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x34(%rsp), %eax
jge 0xf6884
movq 0x40(%rsp), %rax
movslq 0x14(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
mulss 0x18(%rsp), %xmm0
movq 0x38(%rsp), %rax
movslq 0x14(%rsp), %rcx
movss %xmm0, (%rax,%rcx,4)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0xf6849
addq $0x48, %rsp
retq
nopl (%rax)
| _Z21common_embd_normalizePKfPfii:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov [rsp+48h+var_14], edx
mov [rsp+48h+var_18], ecx
mov [rsp+48h+var_20], 0
mov eax, [rsp+48h+var_18]
mov [rsp+48h+var_38], eax
sub eax, 0FFFFFFFFh
jz short loc_F669A
jmp short $+2
loc_F667E:
mov eax, [rsp+48h+var_38]
test eax, eax
jz short loc_F66AD
jmp short $+2
loc_F6688:
mov eax, [rsp+48h+var_38]
sub eax, 2
jz loc_F6739
jmp loc_F6799
loc_F669A:
movsd xmm0, cs:qword_210F80
movsd [rsp+48h+var_20], xmm0
jmp loc_F6804
loc_F66AD:
mov [rsp+48h+var_24], 0
loc_F66B5:
mov eax, [rsp+48h+var_24]
cmp eax, [rsp+48h+var_14]
jge short loc_F671C
movsd xmm0, [rsp+48h+var_20]
movsd [rsp+48h+var_40], xmm0
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_24]
movss xmm0, dword ptr [rax+rcx*4]; float
call _ZSt3absf; std::abs(float)
movsd xmm1, [rsp+48h+var_40]
cvtss2sd xmm0, xmm0
ucomisd xmm0, xmm1
jbe short loc_F670D
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_24]
movss xmm0, dword ptr [rax+rcx*4]; float
call _ZSt3absf; std::abs(float)
cvtss2sd xmm0, xmm0
movsd [rsp+48h+var_20], xmm0
loc_F670D:
jmp short $+2
loc_F670F:
mov eax, [rsp+48h+var_24]
add eax, 1
mov [rsp+48h+var_24], eax
jmp short loc_F66B5
loc_F671C:
movsd xmm0, [rsp+48h+var_20]
movsd xmm1, cs:qword_210F78
divsd xmm0, xmm1
movsd [rsp+48h+var_20], xmm0
jmp loc_F6804
loc_F6739:
mov [rsp+48h+var_28], 0
loc_F6741:
mov eax, [rsp+48h+var_28]
cmp eax, [rsp+48h+var_14]
jge short loc_F6786
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_28]
movss xmm0, dword ptr [rax+rcx*4]
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_28]
mulss xmm0, dword ptr [rax+rcx*4]
cvtss2sd xmm0, xmm0
addsd xmm0, [rsp+48h+var_20]
movsd [rsp+48h+var_20], xmm0
mov eax, [rsp+48h+var_28]
add eax, 1
mov [rsp+48h+var_28], eax
jmp short loc_F6741
loc_F6786:
movsd xmm0, [rsp+48h+var_20]
call _sqrt
movsd [rsp+48h+var_20], xmm0
jmp short loc_F6804
loc_F6799:
mov [rsp+48h+var_2C], 0
loc_F67A1:
mov eax, [rsp+48h+var_2C]
cmp eax, [rsp+48h+var_14]
jge short loc_F67E1
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_2C]
movss xmm0, dword ptr [rax+rcx*4]; float
call _ZSt3absf; std::abs(float)
mov edi, [rsp+48h+var_18]
call _ZSt3powIfiEN9__gnu_cxx11__promote_2IT_T0_NS0_9__promoteIS2_Xsr3std12__is_integerIS2_EE7__valueEE6__typeENS4_IS3_Xsr3std12__is_integerIS3_EE7__valueEE6__typeEE6__typeES2_S3_
addsd xmm0, [rsp+48h+var_20]
movsd [rsp+48h+var_20], xmm0
mov eax, [rsp+48h+var_2C]
add eax, 1
mov [rsp+48h+var_2C], eax
jmp short loc_F67A1
loc_F67E1:
movsd xmm0, [rsp+48h+var_20]
cvtsi2sd xmm2, [rsp+48h+var_18]
movsd xmm1, cs:qword_210F80
divsd xmm1, xmm2
call _pow
movsd [rsp+48h+var_20], xmm0
loc_F6804:
movsd xmm0, [rsp+48h+var_20]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe short loc_F6828
movsd xmm0, cs:qword_210F80
divsd xmm0, [rsp+48h+var_20]
movsd [rsp+48h+var_48], xmm0
jmp short loc_F6832
loc_F6828:
xorps xmm0, xmm0
movsd [rsp+48h+var_48], xmm0
jmp short $+2
loc_F6832:
movsd xmm0, [rsp+48h+var_48]
cvtsd2ss xmm0, xmm0
movss [rsp+48h+var_30], xmm0
mov [rsp+48h+var_34], 0
loc_F6849:
mov eax, [rsp+48h+var_34]
cmp eax, [rsp+48h+var_14]
jge short loc_F6884
mov rax, [rsp+48h+var_8]
movsxd rcx, [rsp+48h+var_34]
movss xmm0, dword ptr [rax+rcx*4]
mulss xmm0, [rsp+48h+var_30]
mov rax, [rsp+48h+var_10]
movsxd rcx, [rsp+48h+var_34]
movss dword ptr [rax+rcx*4], xmm0
mov eax, [rsp+48h+var_34]
add eax, 1
mov [rsp+48h+var_34], eax
jmp short loc_F6849
loc_F6884:
add rsp, 48h
retn
| long long common_embd_normalize(const float *a1, float *a2, int a3, int a4)
{
float v4; // xmm0_4
float v5; // xmm0_4
float v6; // xmm0_4
long long result; // rax
double v8; // [rsp+0h] [rbp-48h]
unsigned int m; // [rsp+14h] [rbp-34h]
int j; // [rsp+1Ch] [rbp-2Ch]
int i; // [rsp+20h] [rbp-28h]
int k; // [rsp+24h] [rbp-24h]
double v13; // [rsp+28h] [rbp-20h]
double v14; // [rsp+28h] [rbp-20h]
v13 = 0.0;
if ( a4 == -1 )
{
v14 = 1.0;
}
else if ( a4 )
{
if ( a4 == 2 )
{
for ( i = 0; i < a3; ++i )
v13 = (float)(a1[i] * a1[i]) + v13;
v14 = sqrt(v13);
}
else
{
for ( j = 0; j < a3; ++j )
{
std::abs(a1[j]);
v13 = std::pow<float,int>((unsigned int)a4) + v13;
}
v14 = pow(v13, 1.0 / (double)a4);
}
}
else
{
for ( k = 0; k < a3; ++k )
{
v4 = a1[k];
std::abs(v4);
if ( v4 > v13 )
{
v5 = a1[k];
std::abs(v5);
v13 = v5;
}
}
v14 = v13 / 32760.0;
}
if ( v14 <= 0.0 )
v8 = 0.0;
else
v8 = 1.0 / v14;
for ( m = 0; ; ++m )
{
result = m;
if ( (int)m >= a3 )
break;
v6 = v8;
a2[m] = a1[m] * v6;
}
return result;
}
| common_embd_normalize:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV dword ptr [RSP + 0x34],EDX
MOV dword ptr [RSP + 0x30],ECX
MOV qword ptr [RSP + 0x28],0x0
MOV EAX,dword ptr [RSP + 0x30]
MOV dword ptr [RSP + 0x10],EAX
SUB EAX,-0x1
JZ 0x001f669a
JMP 0x001f667e
LAB_001f667e:
MOV EAX,dword ptr [RSP + 0x10]
TEST EAX,EAX
JZ 0x001f66ad
JMP 0x001f6688
LAB_001f6688:
MOV EAX,dword ptr [RSP + 0x10]
SUB EAX,0x2
JZ 0x001f6739
JMP 0x001f6799
LAB_001f669a:
MOVSD XMM0,qword ptr [0x00310f80]
MOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x001f6804
LAB_001f66ad:
MOV dword ptr [RSP + 0x24],0x0
LAB_001f66b5:
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x001f671c
MOVSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP + 0x8],XMM0
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
CALL 0x002045e0
MOVSD XMM1,qword ptr [RSP + 0x8]
CVTSS2SD XMM0,XMM0
UCOMISD XMM0,XMM1
JBE 0x001f670d
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
CALL 0x002045e0
CVTSS2SD XMM0,XMM0
MOVSD qword ptr [RSP + 0x28],XMM0
LAB_001f670d:
JMP 0x001f670f
LAB_001f670f:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001f66b5
LAB_001f671c:
MOVSD XMM0,qword ptr [RSP + 0x28]
MOVSD XMM1,qword ptr [0x00310f78]
DIVSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x001f6804
LAB_001f6739:
MOV dword ptr [RSP + 0x20],0x0
LAB_001f6741:
MOV EAX,dword ptr [RSP + 0x20]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x001f6786
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x20]
MULSS XMM0,dword ptr [RAX + RCX*0x4]
CVTSS2SD XMM0,XMM0
ADDSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP + 0x28],XMM0
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
JMP 0x001f6741
LAB_001f6786:
MOVSD XMM0,qword ptr [RSP + 0x28]
CALL 0x0015a880
MOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x001f6804
LAB_001f6799:
MOV dword ptr [RSP + 0x1c],0x0
LAB_001f67a1:
MOV EAX,dword ptr [RSP + 0x1c]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x001f67e1
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
CALL 0x002045e0
MOV EDI,dword ptr [RSP + 0x30]
CALL 0x00204600
ADDSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP + 0x28],XMM0
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x001f67a1
LAB_001f67e1:
MOVSD XMM0,qword ptr [RSP + 0x28]
CVTSI2SD XMM2,dword ptr [RSP + 0x30]
MOVSD XMM1,qword ptr [0x00310f80]
DIVSD XMM1,XMM2
CALL 0x0015a610
MOVSD qword ptr [RSP + 0x28],XMM0
LAB_001f6804:
MOVSD XMM0,qword ptr [RSP + 0x28]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
JBE 0x001f6828
MOVSD XMM0,qword ptr [0x00310f80]
DIVSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP],XMM0
JMP 0x001f6832
LAB_001f6828:
XORPS XMM0,XMM0
MOVSD qword ptr [RSP],XMM0
JMP 0x001f6832
LAB_001f6832:
MOVSD XMM0,qword ptr [RSP]
CVTSD2SS XMM0,XMM0
MOVSS dword ptr [RSP + 0x18],XMM0
MOV dword ptr [RSP + 0x14],0x0
LAB_001f6849:
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RSP + 0x34]
JGE 0x001f6884
MOV RAX,qword ptr [RSP + 0x40]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MULSS XMM0,dword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x001f6849
LAB_001f6884:
ADD RSP,0x48
RET
|
/* common_embd_normalize(float const*, float*, int, int) */
void common_embd_normalize(float *param_1,float *param_2,int param_3,int param_4)
{
float fVar1;
double dVar2;
double local_48;
int local_34;
int local_2c;
int local_28;
int local_24;
double local_20;
local_20 = 0.0;
if (param_4 == -1) {
local_20 = DAT_00310f80;
}
else if (param_4 == 0) {
for (local_24 = 0; local_24 < param_3; local_24 = local_24 + 1) {
fVar1 = (float)std::abs(param_1[local_24]);
if (local_20 < (double)fVar1) {
fVar1 = (float)std::abs(param_1[local_24]);
local_20 = (double)fVar1;
}
}
local_20 = local_20 / DAT_00310f78;
}
else if (param_4 == 2) {
for (local_28 = 0; local_28 < param_3; local_28 = local_28 + 1) {
local_20 = (double)(param_1[local_28] * param_1[local_28]) + local_20;
}
local_20 = sqrt(local_20);
}
else {
for (local_2c = 0; local_2c < param_3; local_2c = local_2c + 1) {
fVar1 = (float)std::abs(param_1[local_2c]);
dVar2 = (double)std::pow<float,int>(fVar1,param_4);
local_20 = dVar2 + local_20;
}
local_20 = pow(local_20,DAT_00310f80 / (double)param_4);
}
if (local_20 <= 0.0) {
local_48 = 0.0;
}
else {
local_48 = DAT_00310f80 / local_20;
}
for (local_34 = 0; local_34 < param_3; local_34 = local_34 + 1) {
param_2[local_34] = param_1[local_34] * (float)local_48;
}
return;
}
| |
20,976 | ImPlot::CombineDateTime(ImPlotTime const&, ImPlotTime const&) | zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp | ImPlotTime CombineDateTime(const ImPlotTime& date_part, const ImPlotTime& tod_part) {
ImPlotContext& gp = *GImPlot;
tm& Tm = gp.Tm;
GetTime(date_part, &gp.Tm);
int y = Tm.tm_year;
int m = Tm.tm_mon;
int d = Tm.tm_mday;
GetTime(tod_part, &gp.Tm);
Tm.tm_year = y;
Tm.tm_mon = m;
Tm.tm_mday = d;
ImPlotTime t = MkTime(&Tm);
t.Us = tod_part.Us;
return t;
} | O1 | cpp | ImPlot::CombineDateTime(ImPlotTime const&, ImPlotTime const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x2867b1(%rip), %r12 # 0x336ca0
testq %r12, %r12
jne 0xb0500
leaq 0x1ea1e0(%rip), %rdi # 0x29a6db
callq 0x2161f4
leaq 0x3e0(%r12), %r14
movq 0x286791(%rip), %rax # 0x336ca0
cmpb $0x1, 0x304(%rax)
jne 0xb0525
movq %r15, %rdi
movq %r14, %rsi
callq 0xf570
jmp 0xb0530
movq %r15, %rdi
movq %r14, %rsi
callq 0x10370
movl 0x3f4(%r12), %ebp
movsd 0x3ec(%r12), %xmm0
movaps %xmm0, (%rsp)
cmpq $0x0, 0x286752(%rip) # 0x336ca0
jne 0xb055c
leaq 0x1ea184(%rip), %rdi # 0x29a6db
callq 0x2161f4
movq 0x28673d(%rip), %rax # 0x336ca0
cmpb $0x1, 0x304(%rax)
jne 0xb0579
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf570
jmp 0xb0584
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10370
movl %ebp, 0x3f4(%r12)
movaps (%rsp), %xmm0
movlps %xmm0, 0x3ec(%r12)
cmpq $0x0, 0x2866ff(%rip) # 0x336ca0
jne 0xb05af
leaq 0x1ea131(%rip), %rdi # 0x29a6db
callq 0x2161f4
movq 0x2866ea(%rip), %rax # 0x336ca0
cmpb $0x1, 0x304(%rax)
jne 0xb05c9
movq %r14, %rdi
callq 0xf6a0
jmp 0xb05d1
movq %r14, %rdi
callq 0x10150
xorl %ecx, %ecx
testq %rax, %rax
cmovgq %rax, %rcx
movl 0x8(%rbx), %edx
movq %rcx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ZN6ImPlot15CombineDateTimeERK10ImPlotTimeS2_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rsi
mov r15, rdi
mov r12, cs:GImPlot
test r12, r12
jnz short loc_B0500
lea rdi, aNoCurrentConte_0; "No current context. Did you call ImPlot"...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_B0500:
lea r14, [r12+3E0h]
mov rax, cs:GImPlot
cmp byte ptr [rax+304h], 1
jnz short loc_B0525
mov rdi, r15
mov rsi, r14
call _localtime_r
jmp short loc_B0530
loc_B0525:
mov rdi, r15
mov rsi, r14; char *
call _gmtime_r
loc_B0530:
mov ebp, [r12+3F4h]
movsd xmm0, qword ptr [r12+3ECh]
movaps [rsp+38h+var_38], xmm0
cmp cs:GImPlot, 0
jnz short loc_B055C
lea rdi, aNoCurrentConte_0; "No current context. Did you call ImPlot"...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_B055C:
mov rax, cs:GImPlot
cmp byte ptr [rax+304h], 1
jnz short loc_B0579
mov rdi, rbx
mov rsi, r14
call _localtime_r
jmp short loc_B0584
loc_B0579:
mov rdi, rbx
mov rsi, r14; char *
call _gmtime_r
loc_B0584:
mov [r12+3F4h], ebp
movaps xmm0, [rsp+38h+var_38]
movlps qword ptr [r12+3ECh], xmm0
cmp cs:GImPlot, 0
jnz short loc_B05AF
lea rdi, aNoCurrentConte_0; "No current context. Did you call ImPlot"...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_B05AF:
mov rax, cs:GImPlot
cmp byte ptr [rax+304h], 1
jnz short loc_B05C9
mov rdi, r14
call _mktime
jmp short loc_B05D1
loc_B05C9:
mov rdi, r14
call _timegm
loc_B05D1:
xor ecx, ecx
test rax, rax
cmovg rcx, rax
mov edx, [rbx+8]
mov rax, rcx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long ImPlot::CombineDateTime(long long a1, const char *a2)
{
ImGui *v2; // r12
int v3; // ebp
long long v4; // rax
long long v5; // rcx
__m128 v7; // [rsp+0h] [rbp-38h]
v2 = GImPlot;
if ( !GImPlot )
ImGui::ErrorLog(
(ImGui *)"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?",
a2);
if ( *((_BYTE *)GImPlot + 772) == 1 )
localtime_r(a1, (char *)v2 + 992);
else
gmtime_r(a1, (char *)v2 + 992);
v3 = *((_DWORD *)v2 + 253);
v7 = (__m128)*(unsigned long long *)((char *)v2 + 1004);
if ( !GImPlot )
ImGui::ErrorLog(
(ImGui *)"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?",
(const char *)v2 + 992);
if ( *((_BYTE *)GImPlot + 772) == 1 )
localtime_r(a2, (char *)v2 + 992);
else
gmtime_r(a2, (char *)v2 + 992);
*((_DWORD *)v2 + 253) = v3;
_mm_storel_ps((double *)((char *)v2 + 1004), v7);
if ( !GImPlot )
ImGui::ErrorLog(
(ImGui *)"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?",
(const char *)v2 + 992);
if ( *((_BYTE *)GImPlot + 772) == 1 )
v4 = mktime((char *)v2 + 992);
else
v4 = timegm((char *)v2 + 992);
v5 = 0LL;
if ( v4 > 0 )
return v4;
return v5;
}
| CombineDateTime:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV R15,RDI
MOV R12,qword ptr [0x00436ca0]
TEST R12,R12
JNZ 0x001b0500
LEA RDI,[0x39a6db]
CALL 0x003161f4
LAB_001b0500:
LEA R14,[R12 + 0x3e0]
MOV RAX,qword ptr [0x00436ca0]
CMP byte ptr [RAX + 0x304],0x1
JNZ 0x001b0525
MOV RDI,R15
MOV RSI,R14
CALL 0x0010f570
JMP 0x001b0530
LAB_001b0525:
MOV RDI,R15
MOV RSI,R14
CALL 0x00110370
LAB_001b0530:
MOV EBP,dword ptr [R12 + 0x3f4]
MOVSD XMM0,qword ptr [R12 + 0x3ec]
MOVAPS xmmword ptr [RSP],XMM0
CMP qword ptr [0x00436ca0],0x0
JNZ 0x001b055c
LEA RDI,[0x39a6db]
CALL 0x003161f4
LAB_001b055c:
MOV RAX,qword ptr [0x00436ca0]
CMP byte ptr [RAX + 0x304],0x1
JNZ 0x001b0579
MOV RDI,RBX
MOV RSI,R14
CALL 0x0010f570
JMP 0x001b0584
LAB_001b0579:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00110370
LAB_001b0584:
MOV dword ptr [R12 + 0x3f4],EBP
MOVAPS XMM0,xmmword ptr [RSP]
MOVLPS qword ptr [R12 + 0x3ec],XMM0
CMP qword ptr [0x00436ca0],0x0
JNZ 0x001b05af
LEA RDI,[0x39a6db]
CALL 0x003161f4
LAB_001b05af:
MOV RAX,qword ptr [0x00436ca0]
CMP byte ptr [RAX + 0x304],0x1
JNZ 0x001b05c9
MOV RDI,R14
CALL 0x0010f6a0
JMP 0x001b05d1
LAB_001b05c9:
MOV RDI,R14
CALL 0x00110150
LAB_001b05d1:
XOR ECX,ECX
TEST RAX,RAX
CMOVG RCX,RAX
MOV EDX,dword ptr [RBX + 0x8]
MOV RAX,RCX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* ImPlot::CombineDateTime(ImPlotTime const&, ImPlotTime const&) */
int1 [16] ImPlot::CombineDateTime(ImPlotTime *param_1,ImPlotTime *param_2)
{
tm *__tp;
int8 uVar1;
int4 uVar2;
long lVar3;
long lVar4;
int1 auVar5 [16];
lVar3 = GImPlot;
if (GImPlot == 0) {
ImGui::ErrorLog(
"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"
);
}
__tp = (tm *)(lVar3 + 0x3e0);
if (*(char *)(GImPlot + 0x304) == '\x01') {
localtime_r((time_t *)param_1,__tp);
}
else {
gmtime_r((time_t *)param_1,__tp);
}
uVar2 = *(int4 *)(lVar3 + 0x3f4);
uVar1 = *(int8 *)(lVar3 + 0x3ec);
if (GImPlot == 0) {
ImGui::ErrorLog(
"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"
);
}
if (*(char *)(GImPlot + 0x304) == '\x01') {
localtime_r((time_t *)param_2,__tp);
}
else {
gmtime_r((time_t *)param_2,__tp);
}
*(int4 *)(lVar3 + 0x3f4) = uVar2;
*(int8 *)(lVar3 + 0x3ec) = uVar1;
if (GImPlot == 0) {
ImGui::ErrorLog(
"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"
);
}
if (*(char *)(GImPlot + 0x304) == '\x01') {
lVar3 = mktime(__tp);
}
else {
lVar3 = timegm(__tp);
}
lVar4 = 0;
if (0 < lVar3) {
lVar4 = lVar3;
}
auVar5._8_4_ = *(int4 *)(param_2 + 8);
auVar5._0_8_ = lVar4;
auVar5._12_4_ = 0;
return auVar5;
}
| |
20,977 | my_hash_sort_simple_nopad | eloqsql/strings/ctype-simple.c | void my_hash_sort_simple_nopad(CHARSET_INFO *cs,
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
register const uchar *sort_order=cs->sort_order;
const uchar *end= key + len;
register ulong m1= *nr1, m2= *nr2;
for (; key < (uchar*) end ; key++)
{
MY_HASH_ADD(m1, m2, (uint) sort_order[(uint) *key]);
}
*nr1= m1;
*nr2= m2;
} | O3 | c | my_hash_sort_simple_nopad:
movq (%rcx), %rax
movq (%r8), %r9
testq %rdx, %rdx
jle 0xb5230
pushq %rbp
movq %rsp, %rbp
movq 0x58(%rdi), %rdi
addq %rsi, %rdx
movl %eax, %r10d
andl $0x3f, %r10d
addq %r9, %r10
movzbl (%rsi), %r11d
movzbl (%rdi,%r11), %r11d
imulq %r10, %r11
movq %rax, %r10
shlq $0x8, %r10
addq %r11, %r10
xorq %r10, %rax
addq $0x3, %r9
incq %rsi
cmpq %rdx, %rsi
jb 0xb51ff
popq %rbp
movq %rax, (%rcx)
movq %r9, (%r8)
retq
| my_hash_sort_simple_nopad:
mov rax, [rcx]
mov r9, [r8]
test rdx, rdx
jle short loc_B5230
push rbp
mov rbp, rsp
mov rdi, [rdi+58h]
add rdx, rsi
loc_B51FF:
mov r10d, eax
and r10d, 3Fh
add r10, r9
movzx r11d, byte ptr [rsi]
movzx r11d, byte ptr [rdi+r11]
imul r11, r10
mov r10, rax
shl r10, 8
add r10, r11
xor rax, r10
add r9, 3
inc rsi
cmp rsi, rdx
jb short loc_B51FF
pop rbp
loc_B5230:
mov [rcx], rax
mov [r8], r9
retn
| long long my_hash_sort_simple_nopad(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5)
{
long long result; // rax
long long v6; // r9
long long v7; // rdi
unsigned __int8 *v8; // rdx
result = *a4;
v6 = *a5;
if ( a3 > 0 )
{
v7 = *(_QWORD *)(a1 + 88);
v8 = &a2[a3];
do
{
result ^= (v6 + (result & 0x3F)) * *(unsigned __int8 *)(v7 + *a2) + (result << 8);
v6 += 3LL;
++a2;
}
while ( a2 < v8 );
}
*a4 = result;
*a5 = v6;
return result;
}
| my_hash_sort_simple_nopad:
MOV RAX,qword ptr [RCX]
MOV R9,qword ptr [R8]
TEST RDX,RDX
JLE 0x001b5230
PUSH RBP
MOV RBP,RSP
MOV RDI,qword ptr [RDI + 0x58]
ADD RDX,RSI
LAB_001b51ff:
MOV R10D,EAX
AND R10D,0x3f
ADD R10,R9
MOVZX R11D,byte ptr [RSI]
MOVZX R11D,byte ptr [RDI + R11*0x1]
IMUL R11,R10
MOV R10,RAX
SHL R10,0x8
ADD R10,R11
XOR RAX,R10
ADD R9,0x3
INC RSI
CMP RSI,RDX
JC 0x001b51ff
POP RBP
LAB_001b5230:
MOV qword ptr [RCX],RAX
MOV qword ptr [R8],R9
RET
|
void my_hash_sort_simple_nopad(long param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
ulong uVar1;
byte *pbVar2;
long lVar3;
uVar1 = *param_4;
lVar3 = *param_5;
if (0 < param_3) {
pbVar2 = param_2 + param_3;
do {
uVar1 = uVar1 ^ uVar1 * 0x100 +
(ulong)*(byte *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) *
((ulong)((uint)uVar1 & 0x3f) + lVar3);
lVar3 = lVar3 + 3;
param_2 = param_2 + 1;
} while (param_2 < pbVar2);
}
*param_4 = uVar1;
*param_5 = lVar3;
return;
}
| |
20,978 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) | monkey531[P]llama/common/./json.hpp | static diyfp mul(const diyfp& x, const diyfp& y) noexcept
{
static_assert(kPrecision == 64, "internal error");
// Computes:
// f = round((x.f * y.f) / 2^q)
// e = x.e + y.e + q
// Emulate the 64-bit * 64-bit multiplication:
//
// p = u * v
// = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi)
// = (u_lo v_lo ) + 2^32 ((u_lo v_hi ) + (u_hi v_lo )) + 2^64 (u_hi v_hi )
// = (p0 ) + 2^32 ((p1 ) + (p2 )) + 2^64 (p3 )
// = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3 )
// = (p0_lo ) + 2^32 (p0_hi + p1_lo + p2_lo ) + 2^64 (p1_hi + p2_hi + p3)
// = (p0_lo ) + 2^32 (Q ) + 2^64 (H )
// = (p0_lo ) + 2^32 (Q_lo + 2^32 Q_hi ) + 2^64 (H )
//
// (Since Q might be larger than 2^32 - 1)
//
// = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H)
//
// (Q_hi + H does not overflow a 64-bit int)
//
// = p_lo + 2^64 p_hi
const std::uint64_t u_lo = x.f & 0xFFFFFFFFu;
const std::uint64_t u_hi = x.f >> 32u;
const std::uint64_t v_lo = y.f & 0xFFFFFFFFu;
const std::uint64_t v_hi = y.f >> 32u;
const std::uint64_t p0 = u_lo * v_lo;
const std::uint64_t p1 = u_lo * v_hi;
const std::uint64_t p2 = u_hi * v_lo;
const std::uint64_t p3 = u_hi * v_hi;
const std::uint64_t p0_hi = p0 >> 32u;
const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu;
const std::uint64_t p1_hi = p1 >> 32u;
const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu;
const std::uint64_t p2_hi = p2 >> 32u;
std::uint64_t Q = p0_hi + p1_lo + p2_lo;
// The full product might now be computed as
//
// p_hi = p3 + p2_hi + p1_hi + (Q >> 32)
// p_lo = p0_lo + (Q << 32)
//
// But in this particular case here, the full p_lo is not required.
// Effectively we only need to add the highest bit in p_lo to p_hi (and
// Q_hi + 1 does not overflow).
Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up
const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u);
return {h, x.e + y.e + 64};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&):
movq (%rdi), %rax
movl %eax, %ecx
shrq $0x20, %rax
movq (%rsi), %r8
movl %r8d, %edx
shrq $0x20, %r8
movq %rdx, %r9
imulq %rcx, %r9
imulq %r8, %rcx
imulq %rax, %rdx
imulq %rax, %r8
shrq $0x20, %r9
movl %ecx, %r10d
addq %r9, %r10
shrq $0x20, %rcx
movl %edx, %eax
addq %r10, %rax
shrq $0x20, %rdx
addq %r8, %rdx
addq %rcx, %rdx
subq $-0x80000000, %rax # imm = 0x80000000
shrq $0x20, %rax
addq %rdx, %rax
movl 0x8(%rdi), %ecx
movl 0x8(%rsi), %edx
addl %ecx, %edx
addl $0x40, %edx
retq
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_:
mov rax, [rdi]
mov ecx, eax
shr rax, 20h
mov r8, [rsi]
mov edx, r8d
shr r8, 20h
mov r9, rdx
imul r9, rcx
imul rcx, r8
imul rdx, rax
imul r8, rax
shr r9, 20h
mov r10d, ecx
add r10, r9
shr rcx, 20h
mov eax, edx
add rax, r10
shr rdx, 20h
add rdx, r8
add rdx, rcx
sub rax, 0FFFFFFFF80000000h
shr rax, 20h
add rax, rdx
mov ecx, [rdi+8]
mov edx, [rsi+8]
add edx, ecx
add edx, 40h ; '@'
retn
| unsigned long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(_QWORD *a1, _QWORD *a2)
{
long long v2; // rcx
v2 = (unsigned int)*a1;
return ((unsigned long long)(HIDWORD(*a2) * v2) >> 32)
+ HIDWORD(*a1) * HIDWORD(*a2)
+ ((HIDWORD(*a1) * (unsigned long long)(unsigned int)*a2) >> 32)
+ ((((v2 * (unsigned long long)(unsigned int)*a2) >> 32)
+ (unsigned int)(HIDWORD(*a2) * v2)
+ (unsigned int)(HIDWORD(*a1) * *a2)
+ 0x80000000) >> 32);
}
| mul:
MOV RAX,qword ptr [RDI]
MOV ECX,EAX
SHR RAX,0x20
MOV R8,qword ptr [RSI]
MOV EDX,R8D
SHR R8,0x20
MOV R9,RDX
IMUL R9,RCX
IMUL RCX,R8
IMUL RDX,RAX
IMUL R8,RAX
SHR R9,0x20
MOV R10D,ECX
ADD R10,R9
SHR RCX,0x20
MOV EAX,EDX
ADD RAX,R10
SHR RDX,0x20
ADD RDX,R8
ADD RDX,RCX
SUB RAX,-0x80000000
SHR RAX,0x20
ADD RAX,RDX
MOV ECX,dword ptr [RDI + 0x8]
MOV EDX,dword ptr [RSI + 0x8]
ADD EDX,ECX
ADD EDX,0x40
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp
const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) */
int1 [16]
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(diyfp *param_1,diyfp *param_2)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
ulong uVar6;
int1 auVar7 [16];
uVar2 = *(ulong *)param_1 & 0xffffffff;
uVar1 = *(ulong *)param_1 >> 0x20;
uVar4 = *(ulong *)param_2 & 0xffffffff;
uVar6 = *(ulong *)param_2 >> 0x20;
uVar3 = uVar2 * uVar6;
uVar5 = uVar4 * uVar1;
auVar7._0_8_ = ((uVar5 & 0xffffffff) + (uVar3 & 0xffffffff) + (uVar4 * uVar2 >> 0x20) + 0x80000000
>> 0x20) + (uVar5 >> 0x20) + uVar6 * uVar1 + (uVar3 >> 0x20);
auVar7._8_4_ = *(int *)(param_2 + 8) + *(int *)(param_1 + 8) + 0x40;
auVar7._12_4_ = 0;
return auVar7;
}
| |
20,979 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) | monkey531[P]llama/common/./json.hpp | static diyfp mul(const diyfp& x, const diyfp& y) noexcept
{
static_assert(kPrecision == 64, "internal error");
// Computes:
// f = round((x.f * y.f) / 2^q)
// e = x.e + y.e + q
// Emulate the 64-bit * 64-bit multiplication:
//
// p = u * v
// = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi)
// = (u_lo v_lo ) + 2^32 ((u_lo v_hi ) + (u_hi v_lo )) + 2^64 (u_hi v_hi )
// = (p0 ) + 2^32 ((p1 ) + (p2 )) + 2^64 (p3 )
// = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3 )
// = (p0_lo ) + 2^32 (p0_hi + p1_lo + p2_lo ) + 2^64 (p1_hi + p2_hi + p3)
// = (p0_lo ) + 2^32 (Q ) + 2^64 (H )
// = (p0_lo ) + 2^32 (Q_lo + 2^32 Q_hi ) + 2^64 (H )
//
// (Since Q might be larger than 2^32 - 1)
//
// = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H)
//
// (Q_hi + H does not overflow a 64-bit int)
//
// = p_lo + 2^64 p_hi
const std::uint64_t u_lo = x.f & 0xFFFFFFFFu;
const std::uint64_t u_hi = x.f >> 32u;
const std::uint64_t v_lo = y.f & 0xFFFFFFFFu;
const std::uint64_t v_hi = y.f >> 32u;
const std::uint64_t p0 = u_lo * v_lo;
const std::uint64_t p1 = u_lo * v_hi;
const std::uint64_t p2 = u_hi * v_lo;
const std::uint64_t p3 = u_hi * v_hi;
const std::uint64_t p0_hi = p0 >> 32u;
const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu;
const std::uint64_t p1_hi = p1 >> 32u;
const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu;
const std::uint64_t p2_hi = p2 >> 32u;
std::uint64_t Q = p0_hi + p1_lo + p2_lo;
// The full product might now be computed as
//
// p_hi = p3 + p2_hi + p1_hi + (Q >> 32)
// p_lo = p0_lo + (Q << 32)
//
// But in this particular case here, the full p_lo is not required.
// Effectively we only need to add the highest bit in p_lo to p_hi (and
// Q_hi + 1 does not overflow).
Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up
const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u);
return {h, x.e + y.e + 64};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&):
movq (%rdi), %rax
movl %eax, %ecx
shrq $0x20, %rax
movq (%rsi), %r8
movl %r8d, %edx
shrq $0x20, %r8
movq %rdx, %r9
imulq %rcx, %r9
imulq %r8, %rcx
imulq %rax, %rdx
imulq %rax, %r8
shrq $0x20, %r9
movl %ecx, %r10d
addq %r9, %r10
shrq $0x20, %rcx
movl %edx, %eax
addq %r10, %rax
shrq $0x20, %rdx
addq %r8, %rdx
addq %rcx, %rdx
subq $-0x80000000, %rax # imm = 0x80000000
shrq $0x20, %rax
addq %rdx, %rax
movl 0x8(%rdi), %ecx
movl 0x8(%rsi), %edx
addl %ecx, %edx
addl $0x40, %edx
retq
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_:
mov rax, [rdi]
mov ecx, eax
shr rax, 20h
mov r8, [rsi]
mov edx, r8d
shr r8, 20h
mov r9, rdx
imul r9, rcx
imul rcx, r8
imul rdx, rax
imul r8, rax
shr r9, 20h
mov r10d, ecx
add r10, r9
shr rcx, 20h
mov eax, edx
add rax, r10
shr rdx, 20h
add rdx, r8
add rdx, rcx
sub rax, 0FFFFFFFF80000000h
shr rax, 20h
add rax, rdx
mov ecx, [rdi+8]
mov edx, [rsi+8]
add edx, ecx
add edx, 40h ; '@'
retn
| unsigned long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(_QWORD *a1, _QWORD *a2)
{
long long v2; // rcx
v2 = (unsigned int)*a1;
return ((unsigned long long)(HIDWORD(*a2) * v2) >> 32)
+ HIDWORD(*a1) * HIDWORD(*a2)
+ ((HIDWORD(*a1) * (unsigned long long)(unsigned int)*a2) >> 32)
+ ((((v2 * (unsigned long long)(unsigned int)*a2) >> 32)
+ (unsigned int)(HIDWORD(*a2) * v2)
+ (unsigned int)(HIDWORD(*a1) * *a2)
+ 0x80000000) >> 32);
}
| mul:
MOV RAX,qword ptr [RDI]
MOV ECX,EAX
SHR RAX,0x20
MOV R8,qword ptr [RSI]
MOV EDX,R8D
SHR R8,0x20
MOV R9,RDX
IMUL R9,RCX
IMUL RCX,R8
IMUL RDX,RAX
IMUL R8,RAX
SHR R9,0x20
MOV R10D,ECX
ADD R10,R9
SHR RCX,0x20
MOV EAX,EDX
ADD RAX,R10
SHR RDX,0x20
ADD RDX,R8
ADD RDX,RCX
SUB RAX,-0x80000000
SHR RAX,0x20
ADD RAX,RDX
MOV ECX,dword ptr [RDI + 0x8]
MOV EDX,dword ptr [RSI + 0x8]
ADD EDX,ECX
ADD EDX,0x40
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp
const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) */
int1 [16]
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(diyfp *param_1,diyfp *param_2)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
ulong uVar6;
int1 auVar7 [16];
uVar2 = *(ulong *)param_1 & 0xffffffff;
uVar1 = *(ulong *)param_1 >> 0x20;
uVar4 = *(ulong *)param_2 & 0xffffffff;
uVar6 = *(ulong *)param_2 >> 0x20;
uVar3 = uVar2 * uVar6;
uVar5 = uVar4 * uVar1;
auVar7._0_8_ = ((uVar5 & 0xffffffff) + (uVar3 & 0xffffffff) + (uVar4 * uVar2 >> 0x20) + 0x80000000
>> 0x20) + (uVar5 >> 0x20) + uVar6 * uVar1 + (uVar3 >> 0x20);
auVar7._8_4_ = *(int *)(param_2 + 8) + *(int *)(param_1 + 8) + 0x40;
auVar7._12_4_ = 0;
return auVar7;
}
| |
20,980 | ps_fetch_datetime | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static
void ps_fetch_datetime(MYSQL_BIND *r_param, const MYSQL_FIELD * field,
unsigned char **row)
{
MYSQL_TIME *t= (MYSQL_TIME *)r_param->buffer;
unsigned int len= net_field_length(row);
switch (r_param->buffer_type) {
case MYSQL_TYPE_DATETIME:
case MYSQL_TYPE_TIMESTAMP:
convert_to_datetime(t, row, len, field->type);
break;
case MYSQL_TYPE_DATE:
convert_to_datetime(t, row, len, field->type);
break;
case MYSQL_TYPE_TIME:
convert_to_datetime(t, row, len, field->type);
t->year= t->day= t->month= 0;
break;
case MYSQL_TYPE_YEAR:
{
MYSQL_TIME tm;
convert_to_datetime(&tm, row, len, field->type);
shortstore(r_param->buffer, tm.year);
break;
}
default:
{
char dtbuffer[60];
MYSQL_TIME tm;
size_t length;
convert_to_datetime(&tm, row, len, field->type);
switch(field->type) {
case MYSQL_TYPE_DATE:
length= sprintf(dtbuffer, "%04u-%02u-%02u", tm.year, tm.month, tm.day);
break;
case MYSQL_TYPE_TIME:
length= sprintf(dtbuffer, "%s%02u:%02u:%02u", (tm.neg ? "-" : ""), tm.hour, tm.minute, tm.second);
if (field->decimals && field->decimals <= 6)
{
char ms[8];
sprintf(ms, ".%06lu", tm.second_part);
if (field->decimals < 6)
ms[field->decimals + 1]= 0;
length+= strlen(ms);
strcat(dtbuffer, ms);
}
break;
case MYSQL_TYPE_DATETIME:
case MYSQL_TYPE_TIMESTAMP:
length= sprintf(dtbuffer, "%04u-%02u-%02u %02u:%02u:%02u", tm.year, tm.month, tm.day, tm.hour, tm.minute, tm.second);
if (field->decimals && field->decimals <= 6)
{
char ms[8];
sprintf(ms, ".%06lu", tm.second_part);
if (field->decimals < 6)
ms[field->decimals + 1]= 0;
length+= strlen(ms);
strcat(dtbuffer, ms);
}
break;
default:
dtbuffer[0]= 0;
length= 0;
break;
}
convert_froma_string(r_param, dtbuffer, length);
break;
}
}
(*row) += len;
} | O3 | c | ps_fetch_datetime:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x10(%rdi), %r13
movq %rdx, %rdi
callq 0x26fc9
movq %rax, %r14
movl 0x60(%r15), %eax
addl $-0x7, %eax
cmpl $0x6, %eax
ja 0x357d4
leaq 0x19d55(%rip), %rcx # 0x4f508
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x70(%r12), %ecx
movq %r13, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x363a9
jmp 0x359d3
movl 0x70(%r12), %r13d
leaq -0xa0(%rbp), %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl %r13d, %ecx
callq 0x363a9
addl $-0x7, %r13d
cmpl $0x5, %r13d
ja 0x359bd
leaq 0x19d21(%rip), %rax # 0x4f524
movslq (%rax,%r13,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl -0xa0(%rbp), %r8d
movl -0x9c(%rbp), %r9d
movl -0x98(%rbp), %eax
movq %rax, -0xa8(%rbp)
movl -0x94(%rbp), %r11d
movl -0x90(%rbp), %r13d
movl -0x8c(%rbp), %r10d
leaq 0x1657a(%rip), %rcx # 0x4bdbd
leaq -0x70(%rbp), %rdi
movl $0x3c, %edx
movl $0x1, %esi
xorl %eax, %eax
pushq %r10
pushq %r13
pushq %r11
pushq -0xa8(%rbp)
callq 0x142b0
addq $0x20, %rsp
jmp 0x35911
movl 0x70(%r12), %ecx
movq %r13, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x363a9
movl $0x0, 0x8(%r13)
movq $0x0, (%r13)
jmp 0x359d3
movl 0x70(%r12), %ecx
leaq -0x70(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x363a9
movl (%r12), %eax
movq 0x10(%r15), %rcx
movb %al, (%rcx)
movq 0x10(%r15), %rcx
movb %ah, 0x1(%rcx)
jmp 0x359d3
cmpb $0x0, -0x80(%rbp)
leaq 0x116f3(%rip), %rax # 0x46fc0
leaq 0x10de8(%rip), %r8 # 0x466bc
cmoveq %rax, %r8
movl -0x94(%rbp), %r9d
movl -0x90(%rbp), %r10d
movl -0x8c(%rbp), %r11d
leaq 0x164b1(%rip), %rcx # 0x4bda5
leaq -0x70(%rbp), %rdi
movl $0x3c, %edx
movl $0x1, %esi
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x142b0
addq $0x10, %rsp
movslq %eax, %r13
movl 0x68(%r12), %eax
decl %eax
cmpl $0x5, %eax
ja 0x359c4
movq -0x88(%rbp), %r8
leaq 0x16484(%rip), %rcx # 0x4bdb6
leaq -0x78(%rbp), %rdi
movl $0x8, %edx
movl $0x1, %esi
xorl %eax, %eax
callq 0x142b0
movl 0x68(%r12), %eax
cmpq $0x5, %rax
ja 0x3595b
leaq -0x78(%rbp), %rcx
movb $0x0, 0x1(%rax,%rcx)
leaq -0x78(%rbp), %r12
movq %r12, %rdi
callq 0x141c0
addq %rax, %r13
leaq -0x70(%rbp), %rdi
movl $0x3c, %edx
movq %r12, %rsi
callq 0x14470
jmp 0x359c4
movl -0xa0(%rbp), %r8d
movl -0x9c(%rbp), %r9d
movl -0x98(%rbp), %r10d
subq $0x8, %rsp
leaq 0x163f9(%rip), %rcx # 0x4bd96
leaq -0x70(%rbp), %rdi
movl $0x3c, %edx
movl $0x1, %esi
xorl %eax, %eax
pushq %r10
callq 0x142b0
addq $0x10, %rsp
movslq %eax, %r13
jmp 0x359c4
movb $0x0, -0x70(%rbp)
xorl %r13d, %r13d
leaq -0x70(%rbp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x35ed9
movl %r14d, %eax
addq %rax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x359fa
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x14520
| ps_fetch_datetime:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rbx, rdx
mov r12, rsi
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r13, [rdi+10h]
mov rdi, rdx
call net_field_length
mov r14, rax
mov eax, [r15+60h]
add eax, 0FFFFFFF9h; switch 7 cases
cmp eax, 6
ja short def_357BA; jumptable 00000000000357BA default case, cases 8,9
lea rcx, jpt_357BA
movsxd rax, ds:(jpt_357BA - 4F508h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_357BC:
mov ecx, [r12+70h]; jumptable 00000000000357BA cases 7,10,12
mov rdi, r13
mov rsi, rbx
mov edx, r14d
call convert_to_datetime
jmp loc_359D3
def_357BA:
mov r13d, [r12+70h]; jumptable 00000000000357BA default case, cases 8,9
lea rdi, [rbp+var_A0]
mov rsi, rbx
mov edx, r14d
mov ecx, r13d
call convert_to_datetime
add r13d, 0FFFFFFF9h; switch 6 cases
cmp r13d, 5
ja def_3580A; jumptable 000000000003580A default case, cases 8,9
lea rax, jpt_3580A
movsxd rcx, ds:(jpt_3580A - 4F524h)[rax+r13*4]
add rcx, rax
jmp rcx; switch jump
loc_3580C:
mov r8d, [rbp+var_A0]; jumptable 000000000003580A cases 7,12
mov r9d, [rbp+var_9C]
mov eax, [rbp+var_98]
mov [rbp+var_A8], rax
mov r11d, [rbp+var_94]
mov r13d, [rbp+var_90]
mov r10d, [rbp+var_8C]
lea rcx, a04u02u02u02u02; "%04u-%02u-%02u %02u:%02u:%02u"
lea rdi, [rbp+var_70]
mov edx, 3Ch ; '<'
mov esi, 1
xor eax, eax
push r10
push r13
push r11
push [rbp+var_A8]
call ___sprintf_chk
add rsp, 20h
jmp loc_35911
loc_3586D:
mov ecx, [r12+70h]; jumptable 00000000000357BA case 11
mov rdi, r13
mov rsi, rbx
mov edx, r14d
call convert_to_datetime
mov dword ptr [r13+8], 0
mov qword ptr [r13+0], 0
jmp loc_359D3
loc_35895:
mov ecx, [r12+70h]; jumptable 00000000000357BA case 13
lea r12, [rbp+var_70]
mov rdi, r12
mov rsi, rbx
mov edx, r14d
call convert_to_datetime
mov eax, [r12]
mov rcx, [r15+10h]
mov [rcx], al
mov rcx, [r15+10h]
mov [rcx+1], ah
jmp loc_359D3
loc_358C2:
cmp [rbp+var_80], 0; jumptable 000000000003580A case 11
lea rax, a12+4; ""
lea r8, asc_466A9+13h; "-"
cmovz r8, rax
mov r9d, [rbp+var_94]
mov r10d, [rbp+var_90]
mov r11d, [rbp+var_8C]
lea rcx, aS02u02u02u; "%s%02u:%02u:%02u"
lea rdi, [rbp+var_70]
mov edx, 3Ch ; '<'
mov esi, 1
xor eax, eax
push r11
push r10
call ___sprintf_chk
add rsp, 10h
loc_35911:
movsxd r13, eax
mov eax, [r12+68h]
dec eax
cmp eax, 5
ja loc_359C4
mov r8, [rbp+var_88]
lea rcx, a06lu; ".%06lu"
lea rdi, [rbp+var_78]
mov edx, 8
mov esi, 1
xor eax, eax
call ___sprintf_chk
mov eax, [r12+68h]
cmp rax, 5
ja short loc_3595B
lea rcx, [rbp+var_78]
mov byte ptr [rax+rcx+1], 0
loc_3595B:
lea r12, [rbp+var_78]
mov rdi, r12
call _strlen
add r13, rax
lea rdi, [rbp+var_70]
mov edx, 3Ch ; '<'
mov rsi, r12
call ___strcat_chk
jmp short loc_359C4
loc_3597D:
mov r8d, [rbp+var_A0]; jumptable 000000000003580A case 10
mov r9d, [rbp+var_9C]
mov r10d, [rbp+var_98]
sub rsp, 8
lea rcx, a04u02u02u; "%04u-%02u-%02u"
lea rdi, [rbp+var_70]
mov edx, 3Ch ; '<'
mov esi, 1
xor eax, eax
push r10
call ___sprintf_chk
add rsp, 10h
movsxd r13, eax
jmp short loc_359C4
def_3580A:
mov [rbp+var_70], 0; jumptable 000000000003580A default case, cases 8,9
xor r13d, r13d
loc_359C4:
lea rsi, [rbp+var_70]
mov rdi, r15
mov rdx, r13
call convert_froma_string
loc_359D3:
mov eax, r14d
add [rbx], rax
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_359FA
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_359FA:
call ___stack_chk_fail
| unsigned long long ps_fetch_datetime(long long a1, long long a2, unsigned __int8 **a3)
{
long long v4; // r13
unsigned int v5; // r14d
unsigned int v6; // r13d
int v7; // eax
char v8; // ah
const char *v9; // r8
long long v10; // r13
unsigned long long v11; // rax
int v13; // [rsp+10h] [rbp-A0h] BYREF
int v14; // [rsp+14h] [rbp-9Ch]
int v15; // [rsp+18h] [rbp-98h]
int v16; // [rsp+1Ch] [rbp-94h]
int v17; // [rsp+20h] [rbp-90h]
int v18; // [rsp+24h] [rbp-8Ch]
long long v19; // [rsp+28h] [rbp-88h]
char v20; // [rsp+30h] [rbp-80h]
_BYTE v21[8]; // [rsp+38h] [rbp-78h] BYREF
_BYTE v22[64]; // [rsp+40h] [rbp-70h] BYREF
unsigned long long v23; // [rsp+80h] [rbp-30h]
v23 = __readfsqword(0x28u);
v4 = *(_QWORD *)(a1 + 16);
v5 = net_field_length(a3);
switch ( *(_DWORD *)(a1 + 96) )
{
case 7:
case 0xA:
case 0xC:
convert_to_datetime(v4, a3, v5, *(unsigned int *)(a2 + 112));
break;
case 0xB:
convert_to_datetime(v4, a3, v5, *(unsigned int *)(a2 + 112));
*(_DWORD *)(v4 + 8) = 0;
*(_QWORD *)v4 = 0LL;
break;
case 0xD:
convert_to_datetime(v22, a3, v5, *(unsigned int *)(a2 + 112));
v8 = v22[1];
**(_BYTE **)(a1 + 16) = v22[0];
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 1LL) = v8;
break;
default:
v6 = *(_DWORD *)(a2 + 112);
convert_to_datetime(&v13, a3, v5, v6);
switch ( v6 )
{
case 7u:
case 0xCu:
v7 = __sprintf_chk(v22, 1LL, 60LL, "%04u-%02u-%02u %02u:%02u:%02u", v13, v14, v15, v16, v17, v18);
goto LABEL_10;
case 0xAu:
v10 = (int)__sprintf_chk(v22, 1LL, 60LL, "%04u-%02u-%02u", v13, v14, v15);
break;
case 0xBu:
v9 = "-";
if ( !v20 )
v9 = "";
v7 = __sprintf_chk(v22, 1LL, 60LL, "%s%02u:%02u:%02u", v9, v16, v17, v18);
LABEL_10:
v10 = v7;
if ( (unsigned int)(*(_DWORD *)(a2 + 104) - 1) <= 5 )
{
__sprintf_chk(v21, 1LL, 8LL, ".%06lu", v19);
v11 = *(unsigned int *)(a2 + 104);
if ( v11 <= 5 )
v21[v11 + 1] = 0;
v10 += strlen(v21);
__strcat_chk(v22, v21, 60LL);
}
break;
default:
v22[0] = 0;
v10 = 0LL;
break;
}
convert_froma_string(a1, v22, v10);
break;
}
*a3 += v5;
return __readfsqword(0x28u);
}
| ps_fetch_datetime:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RDX
MOV R12,RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R13,qword ptr [RDI + 0x10]
MOV RDI,RDX
CALL 0x00126fc9
MOV R14,RAX
MOV EAX,dword ptr [R15 + 0x60]
ADD EAX,-0x7
CMP EAX,0x6
JA 0x001357d4
LEA RCX,[0x14f508]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_7:
MOV ECX,dword ptr [R12 + 0x70]
MOV RDI,R13
MOV RSI,RBX
MOV EDX,R14D
CALL 0x001363a9
JMP 0x001359d3
caseD_8:
MOV R13D,dword ptr [R12 + 0x70]
LEA RDI,[RBP + -0xa0]
MOV RSI,RBX
MOV EDX,R14D
MOV ECX,R13D
CALL 0x001363a9
ADD R13D,-0x7
CMP R13D,0x5
JA 0x001359bd
LEA RAX,[0x14f524]
MOVSXD RCX,dword ptr [RAX + R13*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_7:
MOV R8D,dword ptr [RBP + -0xa0]
MOV R9D,dword ptr [RBP + -0x9c]
MOV EAX,dword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0xa8],RAX
MOV R11D,dword ptr [RBP + -0x94]
MOV R13D,dword ptr [RBP + -0x90]
MOV R10D,dword ptr [RBP + -0x8c]
LEA RCX,[0x14bdbd]
LEA RDI,[RBP + -0x70]
MOV EDX,0x3c
MOV ESI,0x1
XOR EAX,EAX
PUSH R10
PUSH R13
PUSH R11
PUSH qword ptr [RBP + -0xa8]
CALL 0x001142b0
ADD RSP,0x20
JMP 0x00135911
caseD_b:
MOV ECX,dword ptr [R12 + 0x70]
MOV RDI,R13
MOV RSI,RBX
MOV EDX,R14D
CALL 0x001363a9
MOV dword ptr [R13 + 0x8],0x0
MOV qword ptr [R13],0x0
JMP 0x001359d3
caseD_d:
MOV ECX,dword ptr [R12 + 0x70]
LEA R12,[RBP + -0x70]
MOV RDI,R12
MOV RSI,RBX
MOV EDX,R14D
CALL 0x001363a9
MOV EAX,dword ptr [R12]
MOV RCX,qword ptr [R15 + 0x10]
MOV byte ptr [RCX],AL
MOV RCX,qword ptr [R15 + 0x10]
MOV byte ptr [RCX + 0x1],AH
JMP 0x001359d3
caseD_b:
CMP byte ptr [RBP + -0x80],0x0
LEA RAX,[0x146fc0]
LEA R8,[0x1466bc]
CMOVZ R8,RAX
MOV R9D,dword ptr [RBP + -0x94]
MOV R10D,dword ptr [RBP + -0x90]
MOV R11D,dword ptr [RBP + -0x8c]
LEA RCX,[0x14bda5]
LEA RDI,[RBP + -0x70]
MOV EDX,0x3c
MOV ESI,0x1
XOR EAX,EAX
PUSH R11
PUSH R10
CALL 0x001142b0
ADD RSP,0x10
LAB_00135911:
MOVSXD R13,EAX
MOV EAX,dword ptr [R12 + 0x68]
DEC EAX
CMP EAX,0x5
JA 0x001359c4
MOV R8,qword ptr [RBP + -0x88]
LEA RCX,[0x14bdb6]
LEA RDI,[RBP + -0x78]
MOV EDX,0x8
MOV ESI,0x1
XOR EAX,EAX
CALL 0x001142b0
MOV EAX,dword ptr [R12 + 0x68]
CMP RAX,0x5
JA 0x0013595b
LEA RCX,[RBP + -0x78]
MOV byte ptr [RAX + RCX*0x1 + 0x1],0x0
LAB_0013595b:
LEA R12,[RBP + -0x78]
MOV RDI,R12
CALL 0x001141c0
ADD R13,RAX
LEA RDI,[RBP + -0x70]
MOV EDX,0x3c
MOV RSI,R12
CALL 0x00114470
JMP 0x001359c4
caseD_a:
MOV R8D,dword ptr [RBP + -0xa0]
MOV R9D,dword ptr [RBP + -0x9c]
MOV R10D,dword ptr [RBP + -0x98]
SUB RSP,0x8
LEA RCX,[0x14bd96]
LEA RDI,[RBP + -0x70]
MOV EDX,0x3c
MOV ESI,0x1
XOR EAX,EAX
PUSH R10
CALL 0x001142b0
ADD RSP,0x10
MOVSXD R13,EAX
JMP 0x001359c4
caseD_8:
MOV byte ptr [RBP + -0x70],0x0
XOR R13D,R13D
LAB_001359c4:
LEA RSI,[RBP + -0x70]
MOV RDI,R15
MOV RDX,R13
CALL 0x00135ed9
LAB_001359d3:
MOV EAX,R14D
ADD qword ptr [RBX],RAX
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001359fa
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001359fa:
CALL 0x00114520
|
void ps_fetch_datetime(long param_1,long param_2,long *param_3)
{
int4 uVar1;
int8 *puVar2;
uint uVar3;
int iVar4;
size_t sVar5;
char *pcVar6;
long lVar7;
long in_FS_OFFSET;
int4 local_a8;
int4 local_a4;
int4 local_a0;
int4 local_9c;
int4 local_98;
int4 local_94;
int8 local_90;
char local_88;
char local_80;
int1 auStack_7f [7];
uint local_78 [16];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
puVar2 = *(int8 **)(param_1 + 0x10);
uVar3 = net_field_length(param_3);
switch(*(int4 *)(param_1 + 0x60)) {
case 7:
case 10:
case 0xc:
convert_to_datetime(puVar2,param_3,uVar3,*(int4 *)(param_2 + 0x70));
break;
default:
uVar1 = *(int4 *)(param_2 + 0x70);
convert_to_datetime(&local_a8,param_3,uVar3,uVar1);
switch(uVar1) {
case 7:
case 0xc:
iVar4 = __sprintf_chk(local_78,1,0x3c,"%04u-%02u-%02u %02u:%02u:%02u",local_a8,local_a4,
local_a0,local_9c,local_98,local_94);
goto LAB_00135911;
default:
local_78[0] = local_78[0] & 0xffffff00;
lVar7 = 0;
break;
case 10:
iVar4 = __sprintf_chk(local_78,1,0x3c,"%04u-%02u-%02u",local_a8,local_a4,local_a0);
lVar7 = (long)iVar4;
break;
case 0xb:
pcVar6 = "-";
if (local_88 == '\0') {
pcVar6 = "";
}
iVar4 = __sprintf_chk(local_78,1,0x3c,"%s%02u:%02u:%02u",pcVar6,local_9c,local_98,local_94);
LAB_00135911:
lVar7 = (long)iVar4;
if (*(int *)(param_2 + 0x68) - 1U < 6) {
__sprintf_chk(&local_80,1,8,".%06lu",local_90);
if ((ulong)*(uint *)(param_2 + 0x68) < 6) {
auStack_7f[*(uint *)(param_2 + 0x68)] = 0;
}
sVar5 = strlen(&local_80);
lVar7 = lVar7 + sVar5;
__strcat_chk(local_78,&local_80,0x3c);
}
}
convert_froma_string(param_1,local_78,lVar7);
break;
case 0xb:
convert_to_datetime(puVar2,param_3,uVar3,*(int4 *)(param_2 + 0x70));
*(int4 *)(puVar2 + 1) = 0;
*puVar2 = 0;
break;
case 0xd:
convert_to_datetime(local_78,param_3,uVar3,*(int4 *)(param_2 + 0x70));
**(int1 **)(param_1 + 0x10) = (char)local_78[0];
*(char *)(*(long *)(param_1 + 0x10) + 1) = (char)(local_78[0] >> 8);
}
*param_3 = *param_3 + (ulong)uVar3;
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
20,981 | 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>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<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>> const&) | llama.cpp/common/json.hpp | basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} | O3 | cpp | 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>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<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>> const&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa6490
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x98dd2
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x98dd2
movq %r14, %rdi
xorl %esi, %esi
callq 0x98dd2
movq %r14, %rdi
callq 0x9e920
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonISt3mapSt6vectorNSt7__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<std::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)
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; 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>::data::~data()
add rsp, 18h
pop rbx
pop r14
retn
| long long ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_(
char *a1,
long long a2)
{
_OWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<std::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(
(unsigned __int8 *)v3,
a2);
*(_OWORD *)a1 = v3[0];
nlohmann::json_abi_v3_11_3::basic_json<std::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 *)v3);
LOBYTE(v3[0]) = 0;
*((_QWORD *)&v3[0] + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<std::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(a1);
nlohmann::json_abi_v3_11_3::basic_json<std::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 *)v3);
return nlohmann::json_abi_v3_11_3::basic_json<std::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(v3);
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001a6490
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x00198dd2
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00198dd2
MOV RDI,R14
XOR ESI,ESI
CALL 0x00198dd2
MOV RDI,R14
CALL 0x0019e920
ADD RSP,0x18
POP RBX
POP R14
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_
(int8 *param_1)
{
bool bVar1;
data local_20;
int7 uStack_1f;
int8 uStack_18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<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>>
::moved_or_copied();
*param_1 = CONCAT71(uStack_1f,local_20);
param_1[1] = uStack_18;
bVar1 = SUB81(&local_20,0);
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>
::assert_invariant(bVar1);
local_20 = (data)0x0;
uStack_18 = 0;
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>
::assert_invariant(SUB81(param_1,0));
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>
::assert_invariant(bVar1);
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>
::data::~data(&local_20);
return;
}
| |
20,982 | my_convert_fix | eloqsql/strings/ctype.c | size_t
my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length,
CHARSET_INFO *from_cs, const char *from, size_t from_length,
size_t nchars,
MY_STRCOPY_STATUS *copy_status,
MY_STRCONV_STATUS *conv_status)
{
int cnvres;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc;
my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb;
const uchar *from_end= (const uchar*) from + from_length;
uchar *to_end= (uchar*) to + to_length;
char *to_start= to;
DBUG_ASSERT(to_cs != &my_charset_bin);
DBUG_ASSERT(from_cs != &my_charset_bin);
copy_status->m_well_formed_error_pos= NULL;
conv_status->m_cannot_convert_error_pos= NULL;
for ( ; nchars; nchars--)
{
const char *from_prev= from;
if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0)
from+= cnvres;
else if (cnvres == MY_CS_ILSEQ)
{
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
else if (cnvres > MY_CS_TOOSMALL)
{
/*
A correct multibyte sequence detected
But it doesn't have Unicode mapping.
*/
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from;
from+= (-cnvres);
wc= '?';
}
else
{
if ((uchar *) from >= from_end)
break; // End of line
// Incomplete byte sequence
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
outp:
if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0)
to+= cnvres;
else if (cnvres == MY_CS_ILUNI && wc != '?')
{
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from_prev;
wc= '?';
goto outp;
}
else
{
from= from_prev;
break;
}
}
copy_status->m_source_end_pos= from;
return to - to_start;
} | O0 | c | my_convert_fix:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x82144
jmp 0x82146
jmp 0x82148
movq 0x18(%rbp), %rax
movq $0x0, 0x8(%rax)
movq 0x20(%rbp), %rax
movq $0x0, (%rax)
cmpq $0x0, 0x10(%rbp)
je 0x822cb
movq -0x28(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x48(%rbp), %rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x58(%rbp), %rcx
leaq -0x40(%rbp), %rsi
callq *%rax
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jle 0x821a6
movl -0x34(%rbp), %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
jmp 0x8224f
cmpl $0x0, -0x34(%rbp)
jne 0x821d9
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x821c3
movq -0x28(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq $0x3f, -0x40(%rbp)
jmp 0x8224d
cmpl $-0x65, -0x34(%rbp)
jle 0x82211
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x821f4
movq -0x28(%rbp), %rcx
movq 0x20(%rbp), %rax
movq %rcx, (%rax)
xorl %ecx, %ecx
subl -0x34(%rbp), %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq $0x3f, -0x40(%rbp)
jmp 0x8224b
movq -0x28(%rbp), %rax
cmpq -0x58(%rbp), %rax
jb 0x82220
jmp 0x822cb
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x82237
movq -0x28(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq $0x3f, -0x40(%rbp)
jmp 0x8224d
jmp 0x8224f
jmp 0x82251
movq -0x50(%rbp), %rax
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x60(%rbp), %rcx
callq *%rax
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jle 0x82282
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x822b8
cmpl $0x0, -0x34(%rbp)
jne 0x822ae
cmpq $0x3f, -0x40(%rbp)
je 0x822ae
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x822a4
movq -0x70(%rbp), %rcx
movq 0x20(%rbp), %rax
movq %rcx, (%rax)
movq $0x3f, -0x40(%rbp)
jmp 0x82251
movq -0x70(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x822cb
jmp 0x822ba
movq 0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, 0x10(%rbp)
jmp 0x8215f
movq -0x28(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq -0x68(%rbp), %rcx
subq %rcx, %rax
addq $0x70, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_convert_fix:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, [rbp+arg_10]
mov rax, [rbp+arg_8]
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_20]
mov rax, [rax+0B8h]
mov rax, [rax+28h]
mov [rbp+var_48], rax
mov rax, [rbp+var_8]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_58], rax
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_60], rax
mov rax, [rbp+var_10]
mov [rbp+var_68], rax
jmp short $+2
loc_82144:
jmp short $+2
loc_82146:
jmp short $+2
loc_82148:
mov rax, [rbp+arg_8]
mov qword ptr [rax+8], 0
mov rax, [rbp+arg_10]
mov qword ptr [rax], 0
loc_8215F:
cmp [rbp+arg_0], 0
jz loc_822CB
mov rax, [rbp+var_28]
mov [rbp+var_70], rax
mov rax, [rbp+var_48]
mov rdi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_58]
lea rsi, [rbp+var_40]
call rax
mov [rbp+var_34], eax
cmp eax, 0
jle short loc_821A6
mov ecx, [rbp+var_34]
mov rax, [rbp+var_28]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_28], rax
jmp loc_8224F
loc_821A6:
cmp [rbp+var_34], 0
jnz short loc_821D9
mov rax, [rbp+arg_8]
cmp qword ptr [rax+8], 0
jnz short loc_821C3
mov rcx, [rbp+var_28]
mov rax, [rbp+arg_8]
mov [rax+8], rcx
loc_821C3:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov [rbp+var_40], 3Fh ; '?'
jmp short loc_8224D
loc_821D9:
cmp [rbp+var_34], 0FFFFFF9Bh
jle short loc_82211
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_821F4
mov rcx, [rbp+var_28]
mov rax, [rbp+arg_10]
mov [rax], rcx
loc_821F4:
xor ecx, ecx
sub ecx, [rbp+var_34]
mov rax, [rbp+var_28]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_28], rax
mov [rbp+var_40], 3Fh ; '?'
jmp short loc_8224B
loc_82211:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_58]
jb short loc_82220
jmp loc_822CB
loc_82220:
mov rax, [rbp+arg_8]
cmp qword ptr [rax+8], 0
jnz short loc_82237
mov rcx, [rbp+var_28]
mov rax, [rbp+arg_8]
mov [rax+8], rcx
loc_82237:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov [rbp+var_40], 3Fh ; '?'
loc_8224B:
jmp short $+2
loc_8224D:
jmp short $+2
loc_8224F:
jmp short $+2
loc_82251:
mov rax, [rbp+var_50]
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_60]
call rax
mov [rbp+var_34], eax
cmp eax, 0
jle short loc_82282
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_822B8
loc_82282:
cmp [rbp+var_34], 0
jnz short loc_822AE
cmp [rbp+var_40], 3Fh ; '?'
jz short loc_822AE
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_822A4
mov rcx, [rbp+var_70]
mov rax, [rbp+arg_10]
mov [rax], rcx
loc_822A4:
mov [rbp+var_40], 3Fh ; '?'
jmp short loc_82251
loc_822AE:
mov rax, [rbp+var_70]
mov [rbp+var_28], rax
jmp short loc_822CB
loc_822B8:
jmp short $+2
loc_822BA:
mov rax, [rbp+arg_0]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+arg_0], rax
jmp loc_8215F
loc_822CB:
mov rcx, [rbp+var_28]
mov rax, [rbp+arg_8]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_68]
sub rax, rcx
add rsp, 70h
pop rbp
retn
| long long my_convert_fix(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
long long a6,
long long a7,
unsigned long long *a8,
unsigned long long *a9)
{
unsigned long long v10; // [rsp+0h] [rbp-70h]
long long v11; // [rsp+10h] [rbp-60h]
unsigned long long v12; // [rsp+18h] [rbp-58h]
long long ( *v13)(long long, long long, long long, long long); // [rsp+20h] [rbp-50h]
long long ( *v14)(long long, long long *, unsigned long long, unsigned long long); // [rsp+28h] [rbp-48h]
long long i; // [rsp+30h] [rbp-40h] BYREF
int v16; // [rsp+3Ch] [rbp-34h]
long long v17; // [rsp+40h] [rbp-30h]
unsigned long long v18; // [rsp+48h] [rbp-28h]
long long v19; // [rsp+50h] [rbp-20h]
long long v20; // [rsp+58h] [rbp-18h]
long long v21; // [rsp+60h] [rbp-10h]
long long v22; // [rsp+68h] [rbp-8h]
v22 = a1;
v21 = a2;
v20 = a3;
v19 = a4;
v18 = a5;
v17 = a6;
v14 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL);
v13 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL);
v12 = a6 + a5;
v11 = a3 + a2;
a8[1] = 0LL;
*a9 = 0LL;
LABEL_2:
if ( a7 )
{
v10 = v18;
v16 = v14(v19, &i, v18, v12);
if ( v16 > 0 )
{
v18 += v16;
goto LABEL_17;
}
if ( !v16 )
{
if ( !a8[1] )
a8[1] = v18;
++v18;
i = 63LL;
goto LABEL_17;
}
if ( v16 > -101 )
{
if ( !*a9 )
*a9 = v18;
v18 += -v16;
i = 63LL;
goto LABEL_17;
}
if ( v18 < v12 )
{
if ( !a8[1] )
a8[1] = v18;
++v18;
for ( i = 63LL; ; i = 63LL )
{
LABEL_17:
v16 = v13(v22, i, v21, v11);
if ( v16 > 0 )
{
v21 += v16;
--a7;
goto LABEL_2;
}
if ( v16 || i == 63 )
break;
if ( !*a9 )
*a9 = v10;
}
v18 = v10;
}
}
*a8 = v18;
return v21 - a2;
}
| my_convert_fix:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr [RBP + 0x20]
MOV RAX,qword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x00182144
LAB_00182144:
JMP 0x00182146
LAB_00182146:
JMP 0x00182148
LAB_00182148:
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + 0x20]
MOV qword ptr [RAX],0x0
LAB_0018215f:
CMP qword ptr [RBP + 0x10],0x0
JZ 0x001822cb
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x58]
LEA RSI,[RBP + -0x40]
CALL RAX
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JLE 0x001821a6
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0018224f
LAB_001821a6:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x001821d9
MOV RAX,qword ptr [RBP + 0x18]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x001821c3
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX + 0x8],RCX
LAB_001821c3:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0x40],0x3f
JMP 0x0018224d
LAB_001821d9:
CMP dword ptr [RBP + -0x34],-0x65
JLE 0x00182211
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001821f4
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x20]
MOV qword ptr [RAX],RCX
LAB_001821f4:
XOR ECX,ECX
SUB ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0x40],0x3f
JMP 0x0018224b
LAB_00182211:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x58]
JC 0x00182220
JMP 0x001822cb
LAB_00182220:
MOV RAX,qword ptr [RBP + 0x18]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00182237
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX + 0x8],RCX
LAB_00182237:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0x40],0x3f
LAB_0018224b:
JMP 0x0018224d
LAB_0018224d:
JMP 0x0018224f
LAB_0018224f:
JMP 0x00182251
LAB_00182251:
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x60]
CALL RAX
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JLE 0x00182282
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001822b8
LAB_00182282:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x001822ae
CMP qword ptr [RBP + -0x40],0x3f
JZ 0x001822ae
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001822a4
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + 0x20]
MOV qword ptr [RAX],RCX
LAB_001822a4:
MOV qword ptr [RBP + -0x40],0x3f
JMP 0x00182251
LAB_001822ae:
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001822cb
LAB_001822b8:
JMP 0x001822ba
LAB_001822ba:
MOV RAX,qword ptr [RBP + 0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + 0x10],RAX
JMP 0x0018215f
LAB_001822cb:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
ADD RSP,0x70
POP RBP
RET
|
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6,
long param_7,ulong *param_8,ulong *param_9)
{
code *pcVar1;
code *pcVar2;
ulong uVar3;
ulong uVar4;
long local_48;
int local_3c;
long local_38;
ulong local_30;
long local_28;
long local_20;
long local_18;
long local_10;
pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28);
pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30);
param_8[1] = 0;
*param_9 = 0;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
for (; uVar3 = local_30, uVar4 = uVar3, param_7 != 0; param_7 = param_7 + -1) {
local_3c = (*pcVar1)(local_28,&local_48,local_30);
if (local_3c < 1) {
if (local_3c == 0) {
if (param_8[1] == 0) {
param_8[1] = local_30;
}
local_30 = local_30 + 1;
}
else if (local_3c < -100) {
uVar4 = local_30;
if (param_5 + param_6 <= local_30) break;
if (param_8[1] == 0) {
param_8[1] = local_30;
}
local_30 = local_30 + 1;
}
else {
if (*param_9 == 0) {
*param_9 = local_30;
}
local_30 = local_30 + (long)-local_3c;
}
local_48 = 0x3f;
}
else {
local_30 = local_30 + (long)local_3c;
}
while (local_3c = (*pcVar2)(local_10,local_48,local_18,param_2 + param_3), local_3c < 1) {
uVar4 = uVar3;
if ((local_3c != 0) || (local_48 == 0x3f)) goto LAB_001822cb;
if (*param_9 == 0) {
*param_9 = uVar3;
}
local_48 = 0x3f;
local_3c = 0;
}
local_18 = local_18 + local_3c;
}
LAB_001822cb:
local_30 = uVar4;
*param_8 = local_30;
return local_18 - param_2;
}
| |
20,983 | mi_ck_write_btree | eloqsql/storage/myisam/mi_write.c | int _mi_ck_write_btree(register MI_INFO *info, uint keynr, uchar *key,
uint key_length)
{
int error;
uint comp_flag;
MI_KEYDEF *keyinfo=info->s->keyinfo+keynr;
my_off_t *root=&info->s->state.key_root[keynr];
DBUG_ENTER("_mi_ck_write_btree");
if (keyinfo->flag & HA_SORT_ALLOWS_SAME)
comp_flag=SEARCH_BIGGER; /* Put after same key */
else if (keyinfo->flag & (HA_NOSAME|HA_FULLTEXT))
{
comp_flag=SEARCH_FIND | SEARCH_UPDATE | SEARCH_INSERT; /* No duplicates */
if (keyinfo->flag & HA_NULL_ARE_EQUAL)
comp_flag|= SEARCH_NULL_ARE_EQUAL;
}
else
comp_flag=SEARCH_SAME; /* Keys in rec-pos order */
error=_mi_ck_real_write_btree(info, keyinfo, key, key_length,
root, comp_flag);
if (info->ft1_to_ft2)
{
if (!error)
error= _mi_ft_convert_to_ft2(info, keynr, key);
delete_dynamic(info->ft1_to_ft2);
my_free(info->ft1_to_ft2);
info->ft1_to_ft2=0;
}
DBUG_RETURN(error);
} | O0 | c | mi_ck_write_btree:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0xc(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
je 0xcad39
movl $0x8, -0x24(%rbp)
jmp 0xcad7a
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x81, %eax
cmpl $0x0, %eax
je 0xcad71
movl $0x20041, -0x24(%rbp) # imm = 0x20041
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x800, %eax # imm = 0x800
cmpl $0x0, %eax
je 0xcad6f
movl -0x24(%rbp), %eax
orl $0x8000, %eax # imm = 0x8000
movl %eax, -0x24(%rbp)
jmp 0xcad78
movl $0x4, -0x24(%rbp)
jmp 0xcad7a
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %r8
movl -0x24(%rbp), %r9d
callq 0xcae00
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x88(%rax)
je 0xcadef
cmpl $0x0, -0x20(%rbp)
jne 0xcadc0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xa8590
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rdi
callq 0xdfe10
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rdi
callq 0xfc410
movq -0x8(%rbp), %rax
movq $0x0, 0x88(%rax)
jmp 0xcadf1
movl -0x20(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
| _mi_ck_write_btree:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_C]
imul rcx, 70h ; 'p'
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
and eax, 200h
cmp eax, 0
jz short loc_CAD39
mov [rbp+var_24], 8
jmp short loc_CAD7A
loc_CAD39:
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
and eax, 81h
cmp eax, 0
jz short loc_CAD71
mov [rbp+var_24], 20041h
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
and eax, 800h
cmp eax, 0
jz short loc_CAD6F
mov eax, [rbp+var_24]
or eax, 8000h
mov [rbp+var_24], eax
loc_CAD6F:
jmp short loc_CAD78
loc_CAD71:
mov [rbp+var_24], 4
loc_CAD78:
jmp short $+2
loc_CAD7A:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_18]
mov ecx, [rbp+var_1C]
mov r8, [rbp+var_38]
mov r9d, [rbp+var_24]
call _mi_ck_real_write_btree
mov [rbp+var_20], eax
mov rax, [rbp+var_8]
cmp qword ptr [rax+88h], 0
jz short loc_CADEF
cmp [rbp+var_20], 0
jnz short loc_CADC0
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
call _mi_ft_convert_to_ft2
mov [rbp+var_20], eax
loc_CADC0:
mov rax, [rbp+var_8]
mov rdi, [rax+88h]
call delete_dynamic
mov rax, [rbp+var_8]
mov rdi, [rax+88h]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+88h], 0
loc_CADEF:
jmp short $+2
loc_CADF1:
mov eax, [rbp+var_20]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
| long long mi_ck_write_btree(_QWORD *a1, unsigned int a2, unsigned __int8 *a3, unsigned int a4)
{
long long v5; // [rsp+10h] [rbp-30h]
unsigned int v6; // [rsp+1Ch] [rbp-24h]
unsigned int v7; // [rsp+20h] [rbp-20h]
v5 = 112LL * a2 + *(_QWORD *)(*a1 + 536LL);
if ( (*(_WORD *)(v5 + 10) & 0x200) != 0 )
{
v6 = 8;
}
else if ( (*(_WORD *)(v5 + 10) & 0x81) != 0 )
{
v6 = 131137;
if ( (*(_WORD *)(v5 + 10) & 0x800) != 0 )
v6 = 163905;
}
else
{
v6 = 4;
}
v7 = mi_ck_real_write_btree(a1, v5, a3, a4, 8LL * a2 + *(_QWORD *)(*a1 + 152LL), v6);
if ( a1[17] )
{
if ( !v7 )
v7 = mi_ft_convert_to_ft2(a1, a2, a3);
delete_dynamic(a1[17]);
my_free(a1[17]);
a1[17] = 0LL;
}
return v7;
}
| _mi_ck_write_btree:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0xc]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x200
CMP EAX,0x0
JZ 0x001cad39
MOV dword ptr [RBP + -0x24],0x8
JMP 0x001cad7a
LAB_001cad39:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x81
CMP EAX,0x0
JZ 0x001cad71
MOV dword ptr [RBP + -0x24],0x20041
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x800
CMP EAX,0x0
JZ 0x001cad6f
MOV EAX,dword ptr [RBP + -0x24]
OR EAX,0x8000
MOV dword ptr [RBP + -0x24],EAX
LAB_001cad6f:
JMP 0x001cad78
LAB_001cad71:
MOV dword ptr [RBP + -0x24],0x4
LAB_001cad78:
JMP 0x001cad7a
LAB_001cad7a:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
MOV R8,qword ptr [RBP + -0x38]
MOV R9D,dword ptr [RBP + -0x24]
CALL 0x001cae00
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x88],0x0
JZ 0x001cadef
CMP dword ptr [RBP + -0x20],0x0
JNZ 0x001cadc0
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001a8590
MOV dword ptr [RBP + -0x20],EAX
LAB_001cadc0:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x001dfe10
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x001fc410
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x88],0x0
LAB_001cadef:
JMP 0x001cadf1
LAB_001cadf1:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int _mi_ck_write_btree(long *param_1,uint param_2,int8 param_3,int4 param_4)
{
long lVar1;
int4 local_2c;
int local_28;
lVar1 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
if ((*(ushort *)(lVar1 + 10) & 0x200) == 0) {
if ((*(ushort *)(lVar1 + 10) & 0x81) == 0) {
local_2c = 4;
}
else {
local_2c = 0x20041;
if ((*(ushort *)(lVar1 + 10) & 0x800) != 0) {
local_2c = 0x28041;
}
}
}
else {
local_2c = 8;
}
local_28 = _mi_ck_real_write_btree
(param_1,lVar1,param_3,param_4,
*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8,local_2c);
if (param_1[0x11] != 0) {
if (local_28 == 0) {
local_28 = _mi_ft_convert_to_ft2(param_1,param_2,param_3);
}
delete_dynamic(param_1[0x11]);
my_free(param_1[0x11]);
param_1[0x11] = 0;
}
return local_28;
}
| |
20,984 | blst_sk_mul_n_check | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/exports.c | int blst_sk_mul_n_check(pow256 ret, const pow256 a, const pow256 b)
{
vec256 t[2];
const union {
long one;
char little;
} is_endian = { 1 };
bool_t is_zero;
if (((size_t)a|(size_t)b)%sizeof(limb_t) != 0 || !is_endian.little) {
limbs_from_le_bytes(t[0], a, sizeof(pow256));
limbs_from_le_bytes(t[1], b, sizeof(pow256));
a = (const byte *)t[0];
b = (const byte *)t[1];
}
mul_mont_sparse_256(t[0], BLS12_381_rRR, (const limb_t *)a, BLS12_381_r, r0);
mul_mont_sparse_256(t[0], t[0], (const limb_t *)b, BLS12_381_r, r0);
le_bytes_from_limbs(ret, t[0], sizeof(pow256));
is_zero = vec_is_zero(t[0], sizeof(vec256));
vec_zero(t, sizeof(t));
return (int)(is_zero^1);
} | O0 | c | blst_sk_mul_n_check:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq 0x31d05(%rip), %rax # 0xe6330
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
orq %rcx, %rax
andq $0x7, %rax
cmpq $0x0, %rax
jne 0xb464a
cmpb $0x0, -0x68(%rbp)
jne 0xb4686
leaq -0x60(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x20, %edx
callq 0xb4290
leaq -0x60(%rbp), %rdi
addq $0x20, %rdi
movq -0x18(%rbp), %rsi
movl $0x20, %edx
callq 0xb4290
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rbp)
leaq -0x60(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x18(%rbp)
leaq -0x60(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq 0x31c7b(%rip), %rsi # 0xe6310
leaq 0x31764(%rip), %rcx # 0xe5e00
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb080
leaq -0x60(%rbp), %rdi
leaq -0x60(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq 0x31742(%rip), %rcx # 0xe5e00
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb080
movq -0x8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
movl $0x20, %edx
callq 0xb43a0
leaq -0x60(%rbp), %rdi
movl $0x20, %esi
callq 0xa7680
movq %rax, -0x70(%rbp)
leaq -0x60(%rbp), %rdi
movl $0x40, %esi
callq 0xa7170
movq -0x70(%rbp), %rax
xorq $0x1, %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
| blst_sk_mul_n_check:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, cs:qword_E6330
mov [rbp+var_68], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_18]
or rax, rcx
and rax, 7
cmp rax, 0
jnz short loc_B464A
cmp byte ptr [rbp+var_68], 0
jnz short loc_B4686
loc_B464A:
lea rdi, [rbp+var_60]
mov rsi, [rbp+var_10]
mov edx, 20h ; ' '
call limbs_from_le_bytes
lea rdi, [rbp+var_60]
add rdi, 20h ; ' '
mov rsi, [rbp+var_18]
mov edx, 20h ; ' '
call limbs_from_le_bytes
lea rax, [rbp+var_60]
mov [rbp+var_10], rax
lea rax, [rbp+var_60]
add rax, 20h ; ' '
mov [rbp+var_18], rax
loc_B4686:
lea rdi, [rbp+var_60]
mov rdx, [rbp+var_10]
lea rsi, BLS12_381_rRR
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
call mul_mont_sparse_256
lea rdi, [rbp+var_60]
lea rsi, [rbp+var_60]
mov rdx, [rbp+var_18]
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
call mul_mont_sparse_256
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_60]
mov edx, 20h ; ' '
call le_bytes_from_limbs
lea rdi, [rbp+var_60]
mov esi, 20h ; ' '
call vec_is_zero
mov [rbp+var_70], rax
lea rdi, [rbp+var_60]
mov esi, 40h ; '@'
call vec_zero
mov rax, [rbp+var_70]
xor rax, 1
add rsp, 70h
pop rbp
retn
| long long blst_sk_mul_n_check(_BYTE *a1, long long a2, long long a3)
{
unsigned long long is_zero; // [rsp+0h] [rbp-70h]
_BYTE v5[32]; // [rsp+10h] [rbp-60h] BYREF
_BYTE v6[40]; // [rsp+30h] [rbp-40h] BYREF
_BYTE *v7; // [rsp+58h] [rbp-18h]
_BYTE *v8; // [rsp+60h] [rbp-10h]
_BYTE *v9; // [rsp+68h] [rbp-8h]
v9 = a1;
v8 = (_BYTE *)a2;
v7 = (_BYTE *)a3;
if ( (((unsigned __int8)a3 | (unsigned __int8)a2) & 7) != 0 )
{
limbs_from_le_bytes((long long)v5, (long long)v8, 0x20uLL);
limbs_from_le_bytes((long long)v6, (long long)v7, 0x20uLL);
v8 = v5;
v7 = v6;
}
mul_mont_sparse_256(v5, &BLS12_381_rRR, v8, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
mul_mont_sparse_256(v5, v5, v7, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
le_bytes_from_limbs(v9, v5, 0x20uLL);
is_zero = vec_is_zero((long long)v5, 0x20uLL);
vec_zero((long long)v5, 0x40uLL);
return is_zero ^ 1;
}
| blst_sk_mul_n_check:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [0x001e6330]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x18]
OR RAX,RCX
AND RAX,0x7
CMP RAX,0x0
JNZ 0x001b464a
CMP byte ptr [RBP + -0x68],0x0
JNZ 0x001b4686
LAB_001b464a:
LEA RDI,[RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x20
CALL 0x001b4290
LEA RDI,[RBP + -0x60]
ADD RDI,0x20
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,0x20
CALL 0x001b4290
LEA RAX,[RBP + -0x60]
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[RBP + -0x60]
ADD RAX,0x20
MOV qword ptr [RBP + -0x18],RAX
LAB_001b4686:
LEA RDI,[RBP + -0x60]
MOV RDX,qword ptr [RBP + -0x10]
LEA RSI,[0x1e6310]
LEA RCX,[0x1e5e00]
MOV R8,-0x100000001
CALL 0x001cb080
LEA RDI,[RBP + -0x60]
LEA RSI,[RBP + -0x60]
MOV RDX,qword ptr [RBP + -0x18]
LEA RCX,[0x1e5e00]
MOV R8,-0x100000001
CALL 0x001cb080
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x60]
MOV EDX,0x20
CALL 0x001b43a0
LEA RDI,[RBP + -0x60]
MOV ESI,0x20
CALL 0x001a7680
MOV qword ptr [RBP + -0x70],RAX
LEA RDI,[RBP + -0x60]
MOV ESI,0x40
CALL 0x001a7170
MOV RAX,qword ptr [RBP + -0x70]
XOR RAX,0x1
ADD RSP,0x70
POP RBP
RET
|
ulong blst_sk_mul_n_check(int8 param_1,int1 *param_2,int1 *param_3)
{
ulong uVar1;
char local_70;
int1 local_68 [32];
int1 auStack_48 [40];
int1 *local_20;
int1 *local_18;
int8 local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
if (((((ulong)param_2 | (ulong)param_3) & 7) != 0) ||
(local_70 = (char)DAT_001e6330, local_70 == '\0')) {
limbs_from_le_bytes(local_68,param_2,0x20);
limbs_from_le_bytes(auStack_48,local_20,0x20);
local_18 = local_68;
local_20 = auStack_48;
}
mul_mont_sparse_256(local_68,BLS12_381_rRR,local_18,BLS12_381_r,0xfffffffeffffffff);
mul_mont_sparse_256(local_68,local_68,local_20,BLS12_381_r,0xfffffffeffffffff);
le_bytes_from_limbs(local_10,local_68,0x20);
uVar1 = vec_is_zero(local_68,0x20);
vec_zero(local_68,0x40);
return uVar1 ^ 1;
}
| |
20,985 | copy_typelib | eloqsql/mysys/typelib.c | TYPELIB *copy_typelib(MEM_ROOT *root, const TYPELIB *from)
{
TYPELIB *to;
uint i;
if (!from)
return NULL;
if (!(to= (TYPELIB*) alloc_root(root, sizeof(TYPELIB))))
return NULL;
if (!(to->type_names= (const char **)
alloc_root(root, (sizeof(char *) + sizeof(int)) * (from->count + 1))))
return NULL;
to->type_lengths= (unsigned int *)(to->type_names + from->count + 1);
to->count= from->count;
if (from->name)
{
if (!(to->name= strdup_root(root, from->name)))
return NULL;
}
else
to->name= NULL;
for (i= 0; i < from->count; i++)
{
if (!(to->type_names[i]= strmake_root(root, from->type_names[i],
from->type_lengths[i])))
return NULL;
to->type_lengths[i]= from->type_lengths[i];
}
to->type_names[to->count]= NULL;
to->type_lengths[to->count]= 0;
return to;
} | O3 | c | copy_typelib:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0xaeb13
movq %rsi, %r14
movq %rdi, %r15
movl $0x20, %esi
callq 0xa8de7
testq %rax, %rax
je 0xaeb13
movq %rax, %rbx
movl (%r14), %eax
incl %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rsi
movq %r15, %rdi
callq 0xa8de7
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0xaeb13
movl (%r14), %ecx
leaq (%rax,%rcx,8), %rax
addq $0x8, %rax
movq %rax, 0x18(%rbx)
movl (%r14), %eax
movl %eax, (%rbx)
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0xaeb21
movq %r15, %rdi
callq 0xa9182
movq %rax, 0x8(%rbx)
testq %rax, %rax
jne 0xaeb29
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x8(%rbx)
cmpl $0x0, (%r14)
je 0xaeb72
xorl %r12d, %r12d
movq 0x10(%r14), %rax
movq 0x18(%r14), %rcx
movq (%rax,%r12,8), %rsi
movl (%rcx,%r12,4), %edx
movq %r15, %rdi
callq 0xa91a9
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
testq %rax, %rax
je 0xaeb13
movq 0x18(%r14), %rax
movl (%rax,%r12,4), %eax
movq 0x18(%rbx), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl (%r14), %eax
cmpq %rax, %r12
jb 0xaeb32
movq 0x10(%rbx), %rax
movl (%rbx), %ecx
movq $0x0, (%rax,%rcx,8)
movq 0x18(%rbx), %rax
movl (%rbx), %ecx
movl $0x0, (%rax,%rcx,4)
jmp 0xaeb15
| copy_typelib:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
test rsi, rsi
jz short loc_AEB13
mov r14, rsi
mov r15, rdi
mov esi, 20h ; ' '
call alloc_root
test rax, rax
jz short loc_AEB13
mov rbx, rax
mov eax, [r14]
inc eax
shl rax, 2
lea rsi, [rax+rax*2]
mov rdi, r15
call alloc_root
mov [rbx+10h], rax
test rax, rax
jz short loc_AEB13
mov ecx, [r14]
lea rax, [rax+rcx*8]
add rax, 8
mov [rbx+18h], rax
mov eax, [r14]
mov [rbx], eax
mov rsi, [r14+8]
test rsi, rsi
jz short loc_AEB21
mov rdi, r15
call strdup_root
mov [rbx+8], rax
test rax, rax
jnz short loc_AEB29
loc_AEB13:
xor ebx, ebx
loc_AEB15:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_AEB21:
mov qword ptr [rbx+8], 0
loc_AEB29:
cmp dword ptr [r14], 0
jz short loc_AEB72
xor r12d, r12d
loc_AEB32:
mov rax, [r14+10h]
mov rcx, [r14+18h]
mov rsi, [rax+r12*8]
mov edx, [rcx+r12*4]
mov rdi, r15
call strmake_root
mov rcx, [rbx+10h]
mov [rcx+r12*8], rax
test rax, rax
jz short loc_AEB13
mov rax, [r14+18h]
mov eax, [rax+r12*4]
mov rcx, [rbx+18h]
mov [rcx+r12*4], eax
inc r12
mov eax, [r14]
cmp r12, rax
jb short loc_AEB32
loc_AEB72:
mov rax, [rbx+10h]
mov ecx, [rbx]
mov qword ptr [rax+rcx*8], 0
mov rax, [rbx+18h]
mov ecx, [rbx]
mov dword ptr [rax+rcx*4], 0
jmp short loc_AEB15
| char * copy_typelib(long long a1, unsigned int *a2)
{
char *v3; // rax
char *v4; // rbx
char *v5; // rax
long long v6; // rsi
long long v7; // rax
long long v9; // r12
char *v10; // rax
if ( !a2 )
return 0LL;
v3 = alloc_root(a1, 32LL);
if ( !v3 )
return 0LL;
v4 = v3;
v5 = alloc_root(a1, 12LL * (*a2 + 1));
*((_QWORD *)v4 + 2) = v5;
if ( !v5 )
return 0LL;
*((_QWORD *)v4 + 3) = &v5[8 * *a2 + 8];
*(_DWORD *)v4 = *a2;
v6 = *((_QWORD *)a2 + 1);
if ( v6 )
{
v7 = strdup_root(a1, v6);
*((_QWORD *)v4 + 1) = v7;
if ( !v7 )
return 0LL;
}
else
{
*((_QWORD *)v4 + 1) = 0LL;
}
if ( !*a2 )
{
LABEL_13:
*(_QWORD *)(*((_QWORD *)v4 + 2) + 8LL * *(unsigned int *)v4) = 0LL;
*(_DWORD *)(*((_QWORD *)v4 + 3) + 4LL * *(unsigned int *)v4) = 0;
return v4;
}
v9 = 0LL;
while ( 1 )
{
v10 = strmake_root(a1, *(_QWORD *)(*((_QWORD *)a2 + 2) + 8 * v9), *(unsigned int *)(*((_QWORD *)a2 + 3) + 4 * v9));
*(_QWORD *)(*((_QWORD *)v4 + 2) + 8 * v9) = v10;
if ( !v10 )
return 0LL;
*(_DWORD *)(*((_QWORD *)v4 + 3) + 4 * v9) = *(_DWORD *)(*((_QWORD *)a2 + 3) + 4 * v9);
if ( ++v9 >= (unsigned long long)*a2 )
goto LABEL_13;
}
}
| copy_typelib:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
TEST RSI,RSI
JZ 0x001aeb13
MOV R14,RSI
MOV R15,RDI
MOV ESI,0x20
CALL 0x001a8de7
TEST RAX,RAX
JZ 0x001aeb13
MOV RBX,RAX
MOV EAX,dword ptr [R14]
INC EAX
SHL RAX,0x2
LEA RSI,[RAX + RAX*0x2]
MOV RDI,R15
CALL 0x001a8de7
MOV qword ptr [RBX + 0x10],RAX
TEST RAX,RAX
JZ 0x001aeb13
MOV ECX,dword ptr [R14]
LEA RAX,[RAX + RCX*0x8]
ADD RAX,0x8
MOV qword ptr [RBX + 0x18],RAX
MOV EAX,dword ptr [R14]
MOV dword ptr [RBX],EAX
MOV RSI,qword ptr [R14 + 0x8]
TEST RSI,RSI
JZ 0x001aeb21
MOV RDI,R15
CALL 0x001a9182
MOV qword ptr [RBX + 0x8],RAX
TEST RAX,RAX
JNZ 0x001aeb29
LAB_001aeb13:
XOR EBX,EBX
LAB_001aeb15:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001aeb21:
MOV qword ptr [RBX + 0x8],0x0
LAB_001aeb29:
CMP dword ptr [R14],0x0
JZ 0x001aeb72
XOR R12D,R12D
LAB_001aeb32:
MOV RAX,qword ptr [R14 + 0x10]
MOV RCX,qword ptr [R14 + 0x18]
MOV RSI,qword ptr [RAX + R12*0x8]
MOV EDX,dword ptr [RCX + R12*0x4]
MOV RDI,R15
CALL 0x001a91a9
MOV RCX,qword ptr [RBX + 0x10]
MOV qword ptr [RCX + R12*0x8],RAX
TEST RAX,RAX
JZ 0x001aeb13
MOV RAX,qword ptr [R14 + 0x18]
MOV EAX,dword ptr [RAX + R12*0x4]
MOV RCX,qword ptr [RBX + 0x18]
MOV dword ptr [RCX + R12*0x4],EAX
INC R12
MOV EAX,dword ptr [R14]
CMP R12,RAX
JC 0x001aeb32
LAB_001aeb72:
MOV RAX,qword ptr [RBX + 0x10]
MOV ECX,dword ptr [RBX]
MOV qword ptr [RAX + RCX*0x8],0x0
MOV RAX,qword ptr [RBX + 0x18]
MOV ECX,dword ptr [RBX]
MOV dword ptr [RAX + RCX*0x4],0x0
JMP 0x001aeb15
|
uint * copy_typelib(int8 param_1,uint *param_2)
{
uint *puVar1;
long lVar2;
ulong uVar3;
if ((param_2 != (uint *)0x0) && (puVar1 = (uint *)alloc_root(param_1,0x20), puVar1 != (uint *)0x0)
) {
lVar2 = alloc_root(param_1,(ulong)(*param_2 + 1) * 0xc);
*(long *)(puVar1 + 4) = lVar2;
if (lVar2 != 0) {
*(ulong *)(puVar1 + 6) = lVar2 + (ulong)*param_2 * 8 + 8;
*puVar1 = *param_2;
if (*(long *)(param_2 + 2) == 0) {
puVar1[2] = 0;
puVar1[3] = 0;
}
else {
lVar2 = strdup_root(param_1);
*(long *)(puVar1 + 2) = lVar2;
if (lVar2 == 0) {
return (uint *)0x0;
}
}
if (*param_2 != 0) {
uVar3 = 0;
do {
lVar2 = strmake_root(param_1,*(int8 *)(*(long *)(param_2 + 4) + uVar3 * 8),
*(int4 *)(*(long *)(param_2 + 6) + uVar3 * 4));
*(long *)(*(long *)(puVar1 + 4) + uVar3 * 8) = lVar2;
if (lVar2 == 0) {
return (uint *)0x0;
}
*(int4 *)(*(long *)(puVar1 + 6) + uVar3 * 4) =
*(int4 *)(*(long *)(param_2 + 6) + uVar3 * 4);
uVar3 = uVar3 + 1;
} while (uVar3 < *param_2);
}
*(int8 *)(*(long *)(puVar1 + 4) + (ulong)*puVar1 * 8) = 0;
*(int4 *)(*(long *)(puVar1 + 6) + (ulong)*puVar1 * 4) = 0;
return puVar1;
}
}
return (uint *)0x0;
}
| |
20,986 | nglog::LogDestination::log_destination(nglog::LogSeverity) | ng-log[P]ng-log/src/logging.cc | inline LogDestination* LogDestination::log_destination(LogSeverity severity) {
if (log_destinations_[severity] == nullptr) {
log_destinations_[severity] =
std::make_unique<LogDestination>(severity, nullptr);
}
return log_destinations_[severity].get();
} | O2 | cpp | nglog::LogDestination::log_destination(nglog::LogSeverity):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edi, 0xc(%rsp)
movl %edi, %eax
leaq 0x21922(%rip), %r15 # 0x31d00
movq (%r15,%rax,8), %rax
testq %rax, %rax
jne 0x10427
leaq 0x10(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x18(%rsp), %rbx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x111e5
movl (%r14), %eax
leaq (%r15,%rax,8), %rdi
movq (%rbx), %rsi
andq $0x0, (%rbx)
callq 0x1122e
movq %rbx, %rdi
callq 0xff7c
movl (%r14), %eax
movq (%r15,%rax,8), %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN5nglog14LogDestination15log_destinationENS_11LogSeverityE:
push r15
push r14
push rbx
sub rsp, 20h
mov [rsp+38h+var_2C], edi
mov eax, edi
lea r15, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_
mov rax, [r15+rax*8]
test rax, rax
jnz short loc_10427
lea rdx, [rsp+38h+var_28]
and qword ptr [rdx], 0
lea rbx, [rsp+38h+var_20]
lea r14, [rsp+38h+var_2C]
mov rdi, rbx
mov rsi, r14
call _ZSt11make_uniqueIN5nglog14LogDestinationEJRNS0_11LogSeverityEDnEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<nglog::LogDestination,nglog::LogSeverity &,decltype(nullptr)>(nglog::LogSeverity &,decltype(nullptr) &&)
mov eax, [r14]
lea rdi, [r15+rax*8]
mov rsi, [rbx]
and qword ptr [rbx], 0
call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*)
mov rdi, rbx
call _ZNSt10unique_ptrIN5nglog14LogDestinationESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::LogDestination>::~unique_ptr()
mov eax, [r14]
mov rax, [r15+rax*8]
loc_10427:
add rsp, 20h
pop rbx
pop r14
pop r15
retn
| long long nglog::LogDestination::log_destination(int a1)
{
long long result; // rax
long long v2; // rsi
int v3; // [rsp+Ch] [rbp-2Ch] BYREF
long long v4; // [rsp+10h] [rbp-28h] BYREF
_QWORD v5[4]; // [rsp+18h] [rbp-20h] BYREF
v3 = a1;
result = nglog::LogDestination::log_destinations_[a1];
if ( !result )
{
v4 = 0LL;
std::make_unique<nglog::LogDestination,nglog::LogSeverity &,decltype(nullptr)>(v5, &v3, &v4);
v2 = v5[0];
v5[0] = 0LL;
std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(
&nglog::LogDestination::log_destinations_[v3],
v2);
std::unique_ptr<nglog::LogDestination>::~unique_ptr(v5);
return nglog::LogDestination::log_destinations_[v3];
}
return result;
}
| log_destination:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV dword ptr [RSP + 0xc],EDI
MOV EAX,EDI
LEA R15,[0x131d00]
MOV RAX,qword ptr [R15 + RAX*0x8]
TEST RAX,RAX
JNZ 0x00110427
LEA RDX,[RSP + 0x10]
AND qword ptr [RDX],0x0
LEA RBX,[RSP + 0x18]
LEA R14,[RSP + 0xc]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001111e5
MOV EAX,dword ptr [R14]
LEA RDI,[R15 + RAX*0x8]
MOV RSI,qword ptr [RBX]
AND qword ptr [RBX],0x0
CALL 0x0011122e
MOV RDI,RBX
CALL 0x0010ff7c
MOV EAX,dword ptr [R14]
MOV RAX,qword ptr [R15 + RAX*0x8]
LAB_00110427:
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* nglog::LogDestination::log_destination(nglog::LogSeverity) */
long nglog::LogDestination::log_destination(uint param_1)
{
LogDestination *pLVar1;
long lVar2;
uint local_2c [3];
LogDestination *local_20;
lVar2 = (&log_destinations_)[param_1];
if (lVar2 == 0) {
local_2c[1] = 0;
local_2c[2] = 0;
local_2c[0] = param_1;
std::make_unique<nglog::LogDestination,nglog::LogSeverity&,decltype(nullptr)>
((unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
&local_20,(_func_decltype_nullptr **)local_2c);
pLVar1 = local_20;
local_20 = (LogDestination *)0x0;
std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset
((__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
(&log_destinations_ + local_2c[0]),pLVar1);
std::unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::~unique_ptr
((unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
&local_20);
lVar2 = (&log_destinations_)[local_2c[0]];
}
return lVar2;
}
| |
20,987 | ma_get_status | eloqsql/storage/maria/ma_state.c | my_bool _ma_get_status(void* param, my_bool concurrent_insert)
{
MARIA_HA *info=(MARIA_HA*) param;
DBUG_ENTER("_ma_get_status");
DBUG_PRINT("info",("key_file: %ld data_file: %ld concurrent_insert: %d",
(long) info->s->state.state.key_file_length,
(long) info->s->state.state.data_file_length,
concurrent_insert));
#ifndef DBUG_OFF
if (info->state->key_file_length > info->s->state.state.key_file_length ||
info->state->data_file_length > info->s->state.state.data_file_length)
DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld",
(long) info->state->key_file_length,
(long) info->state->data_file_length));
#endif
info->state_save= info->s->state.state;
info->state= &info->state_save;
info->state->changed= 0;
info->append_insert_at_end= concurrent_insert;
DBUG_RETURN(0);
} | O0 | c | ma_get_status:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x49abc
movq -0x18(%rbp), %rdi
addq $0x28, %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
addq $0x18, %rsi
movl $0x38, %edx
callq 0x2a090
movq -0x18(%rbp), %rcx
addq $0x28, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movb 0x34(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0x34(%rax)
movb -0x9(%rbp), %cl
movq -0x18(%rbp), %rax
movb %cl, 0x681(%rax)
jmp 0x49b0c
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_get_status:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
jmp short $+2
loc_49ABC:
mov rdi, [rbp+var_18]
add rdi, 28h ; '('
mov rax, [rbp+var_18]
mov rsi, [rax]
add rsi, 18h
mov edx, 38h ; '8'
call _memcpy
mov rcx, [rbp+var_18]
add rcx, 28h ; '('
mov rax, [rbp+var_18]
mov [rax+20h], rcx
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov cl, [rax+34h]
and cl, 0FEh
or cl, 0
mov [rax+34h], cl
mov cl, [rbp+var_9]
mov rax, [rbp+var_18]
mov [rax+681h], cl
jmp short $+2
loc_49B0C:
xor eax, eax
add rsp, 20h
pop rbp
retn
| long long ma_get_status(long long a1, char a2)
{
memcpy(a1 + 40, *(_QWORD *)a1 + 24LL, 56LL);
*(_QWORD *)(a1 + 32) = a1 + 40;
*(_BYTE *)(*(_QWORD *)(a1 + 32) + 52LL) &= ~1u;
*(_BYTE *)(a1 + 1665) = a2;
return 0LL;
}
| _ma_get_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00149abc
LAB_00149abc:
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x28
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX]
ADD RSI,0x18
MOV EDX,0x38
CALL 0x0012a090
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x28
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV CL,byte ptr [RAX + 0x34]
AND CL,0xfe
OR CL,0x0
MOV byte ptr [RAX + 0x34],CL
MOV CL,byte ptr [RBP + -0x9]
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x681],CL
JMP 0x00149b0c
LAB_00149b0c:
XOR EAX,EAX
ADD RSP,0x20
POP RBP
RET
|
int8 _ma_get_status(long *param_1,int1 param_2)
{
memcpy(param_1 + 5,(void *)(*param_1 + 0x18),0x38);
param_1[4] = (long)(param_1 + 5);
*(byte *)(param_1[4] + 0x34) = *(byte *)(param_1[4] + 0x34) & 0xfe;
*(int1 *)((long)param_1 + 0x681) = param_2;
return 0;
}
| |
20,988 | js_set_union | bluesky950520[P]quickjs/quickjs.c | static JSValue js_set_union(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue newset, item, iter, next, rv;
struct list_head *el;
JSMapState *s, *t;
JSMapRecord *mr;
int64_t size;
BOOL done;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
return JS_EXCEPTION;
// order matters! they're JS-observable side effects
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
return JS_EXCEPTION;
if (js_setlike_get_has(ctx, argv[0], &rv) < 0)
return JS_EXCEPTION;
JS_FreeValue(ctx, rv);
newset = js_map_constructor(ctx, JS_UNDEFINED, 0, NULL, MAGIC_SET);
if (JS_IsException(newset))
return JS_EXCEPTION;
t = JS_GetOpaque(newset, JS_CLASS_SET);
iter = JS_UNDEFINED;
next = JS_UNDEFINED;
list_for_each(el, &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (mr->empty)
continue;
mr = map_add_record(ctx, t, js_dup(mr->key));
if (!mr)
goto exception;
mr->value = JS_UNDEFINED;
}
iter = JS_GetProperty(ctx, argv[0], JS_ATOM_keys);
if (JS_IsException(iter))
goto exception;
iter = JS_CallFree(ctx, iter, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
next = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next))
goto exception;
for (;;) {
item = JS_IteratorNext(ctx, iter, next, 0, NULL, &done);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
rv = js_map_set(ctx, newset, 1, &item, MAGIC_SET);
JS_FreeValue(ctx, item);
if (JS_IsException(rv))
goto exception;
JS_FreeValue(ctx, rv);
}
goto fini;
exception:
JS_FreeValue(ctx, newset);
newset = JS_EXCEPTION;
fini:
JS_FreeValue(ctx, next);
JS_FreeValue(ctx, iter);
return newset;
} | O0 | c | js_set_union:
subq $0x198, %rsp # imm = 0x198
movq %rsi, 0x178(%rsp)
movq %rdx, 0x180(%rsp)
movq %rdi, 0x170(%rsp)
movl %ecx, 0x16c(%rsp)
movq %r8, 0x160(%rsp)
movq 0x170(%rsp), %rdi
movq 0x178(%rsp), %rsi
movq 0x180(%rsp), %rdx
movl $0x24, %ecx
callq 0x383b0
movq %rax, 0x100(%rsp)
cmpq $0x0, 0x100(%rsp)
jne 0x8fe2f
movl $0x0, 0x188(%rsp)
movq $0x6, 0x190(%rsp)
jmp 0x9045c
movq 0x170(%rsp), %rdi
movq 0x160(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %rcx
callq 0x90480
cmpl $0x0, %eax
jge 0x8fe74
movl $0x0, 0x188(%rsp)
movq $0x6, 0x190(%rsp)
jmp 0x9045c
movq 0x170(%rsp), %rdi
movq 0x160(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x110(%rsp), %rcx
callq 0x905f0
cmpl $0x0, %eax
jge 0x8feb9
movl $0x0, 0x188(%rsp)
movq $0x6, 0x190(%rsp)
jmp 0x9045c
movq 0x170(%rsp), %rdi
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
callq 0x23c90
movq 0x170(%rsp), %rdi
movl $0x0, 0xc0(%rsp)
movq $0x3, 0xc8(%rsp)
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
movl $0x1, %r9d
callq 0x52bb0
movq %rax, 0xd0(%rsp)
movq %rdx, 0xd8(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x150(%rsp), %rdi
movq 0x158(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x8ff7d
movl $0x0, 0x188(%rsp)
movq $0x6, 0x190(%rsp)
jmp 0x9045c
movq 0x150(%rsp), %rdi
movq 0x158(%rsp), %rsi
movl $0x24, %edx
callq 0x38350
movq %rax, 0xf8(%rsp)
movl $0x0, 0xb0(%rsp)
movq $0x3, 0xb8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x138(%rsp)
movl $0x0, 0xa0(%rsp)
movq $0x3, 0xa8(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x100(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rax
movq 0x100(%rsp), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x9012b
movq 0x108(%rsp), %rax
addq $-0x10, %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
cmpl $0x0, 0x4(%rax)
je 0x90065
jmp 0x90112
movq 0x170(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xf0(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x38(%rax), %rsi
callq 0x216d0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, 0x90(%rsp)
movq %rdx, 0x98(%rsp)
movq 0x90(%rsp), %rdx
movq 0x98(%rsp), %rcx
callq 0x7dd60
movq %rax, 0xf0(%rsp)
cmpq $0x0, 0xf0(%rsp)
jne 0x900db
jmp 0x903ba
movq 0xf0(%rsp), %rax
movl $0x0, 0x80(%rsp)
movq $0x3, 0x88(%rsp)
movq 0x80(%rsp), %rcx
movq %rcx, 0x40(%rax)
movq 0x88(%rsp), %rcx
movq %rcx, 0x48(%rax)
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x108(%rsp)
jmp 0x90021
movq 0x170(%rsp), %rdi
movq 0x160(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movl $0x30, %ecx
callq 0x29d80
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x130(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x9018f
jmp 0x903ba
movq 0x170(%rsp), %rdi
movq 0x160(%rsp), %rax
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
movq (%rax), %rcx
movq 0x8(%rax), %r8
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x2e280
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x130(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x9020b
jmp 0x903ba
movq 0x170(%rsp), %rdi
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
movl $0x6b, %ecx
callq 0x29d80
movq %rax, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x120(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x90270
jmp 0x903ba
jmp 0x90272
movq 0x170(%rsp), %rdi
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
movq 0x120(%rsp), %rcx
movq 0x128(%rsp), %r8
xorl %r9d, %r9d
xorl %eax, %eax
leaq 0xe4(%rsp), %rax
movq $0x0, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x6eeb0
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x148(%rsp)
movq 0x140(%rsp), %rdi
movq 0x148(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x902fc
jmp 0x903ba
cmpl $0x0, 0xe4(%rsp)
je 0x9030b
jmp 0x903b8
movq 0x170(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
movl $0x1, %r9d
leaq 0x140(%rsp), %r8
movl %r9d, %ecx
callq 0x7d930
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x170(%rsp), %rdi
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
callq 0x23c90
movq 0x110(%rsp), %rdi
movq 0x118(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x90396
jmp 0x903ba
movq 0x170(%rsp), %rdi
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
callq 0x23c90
jmp 0x90272
jmp 0x90402
movq 0x170(%rsp), %rdi
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
callq 0x23c90
movl $0x0, 0x20(%rsp)
movq $0x6, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x170(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rdx
callq 0x23c90
movq 0x170(%rsp), %rdi
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
callq 0x23c90
movq 0x150(%rsp), %rax
movq %rax, 0x188(%rsp)
movq 0x158(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x188(%rsp), %rax
movq 0x190(%rsp), %rdx
addq $0x198, %rsp # imm = 0x198
retq
nopw %cs:(%rax,%rax)
| js_set_union:
sub rsp, 198h
mov [rsp+198h+var_20], rsi
mov [rsp+198h+var_18], rdx
mov [rsp+198h+var_28], rdi
mov [rsp+198h+var_2C], ecx
mov [rsp+198h+var_38], r8
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_20]
mov rdx, [rsp+198h+var_18]
mov ecx, 24h ; '$'
call JS_GetOpaque2
mov [rsp+198h+var_98], rax
cmp [rsp+198h+var_98], 0
jnz short loc_8FE2F
mov dword ptr [rsp+198h+var_10], 0
mov [rsp+198h+var_8], 6
jmp loc_9045C
loc_8FE2F:
mov rdi, [rsp+198h+var_28]
mov rax, [rsp+198h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
lea rcx, [rsp+198h+var_B0]
call js_setlike_get_size
cmp eax, 0
jge short loc_8FE74
mov dword ptr [rsp+198h+var_10], 0
mov [rsp+198h+var_8], 6
jmp loc_9045C
loc_8FE74:
mov rdi, [rsp+198h+var_28]
mov rax, [rsp+198h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
lea rcx, [rsp+198h+var_88]
call js_setlike_get_has
cmp eax, 0
jge short loc_8FEB9
mov dword ptr [rsp+198h+var_10], 0
mov [rsp+198h+var_8], 6
jmp loc_9045C
loc_8FEB9:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_88]
mov rdx, [rsp+198h+var_80]
call JS_FreeValue
mov rdi, [rsp+198h+var_28]
mov dword ptr [rsp+198h+var_D8], 0
mov [rsp+198h+var_D0], 3
mov rsi, [rsp+198h+var_D8]
mov rdx, [rsp+198h+var_D0]
xor ecx, ecx
xor eax, eax
mov r8d, eax
mov r9d, 1
call js_map_constructor
mov [rsp+198h+var_C8], rax
mov [rsp+198h+var_C0], rdx
mov rax, [rsp+198h+var_C8]
mov [rsp+198h+var_48], rax
mov rax, [rsp+198h+var_C0]
mov [rsp+198h+var_40], rax
mov rdi, [rsp+198h+var_48]
mov rsi, [rsp+198h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_8FF7D
mov dword ptr [rsp+198h+var_10], 0
mov [rsp+198h+var_8], 6
jmp loc_9045C
loc_8FF7D:
mov rdi, [rsp+198h+var_48]
mov rsi, [rsp+198h+var_40]
mov edx, 24h ; '$'
call JS_GetOpaque
mov [rsp+198h+var_A0], rax
mov dword ptr [rsp+198h+var_E8], 0
mov [rsp+198h+var_E0], 3
mov rax, [rsp+198h+var_E8]
mov [rsp+198h+var_68], rax
mov rax, [rsp+198h+var_E0]
mov [rsp+198h+var_60], rax
mov dword ptr [rsp+198h+var_F8], 0
mov [rsp+198h+var_F0], 3
mov rax, [rsp+198h+var_F8]
mov [rsp+198h+var_78], rax
mov rax, [rsp+198h+var_F0]
mov [rsp+198h+var_70], rax
mov rax, [rsp+198h+var_98]
mov rax, [rax+10h]
mov [rsp+198h+var_90], rax
loc_90021:
mov rax, [rsp+198h+var_90]
mov rcx, [rsp+198h+var_98]
add rcx, 8
cmp rax, rcx
jz loc_9012B
mov rax, [rsp+198h+var_90]
add rax, 0FFFFFFFFFFFFFFF0h
mov [rsp+198h+var_A8], rax
mov rax, [rsp+198h+var_A8]
cmp dword ptr [rax+4], 0
jz short loc_90065
jmp loc_90112
loc_90065:
mov rax, [rsp+198h+var_28]
mov [rsp+198h+var_188], rax
mov rax, [rsp+198h+var_A0]
mov [rsp+198h+var_180], rax
mov rax, [rsp+198h+var_A8]
mov rdi, [rax+30h]
mov rsi, [rax+38h]
call js_dup
mov rdi, [rsp+198h+var_188]
mov rsi, [rsp+198h+var_180]
mov [rsp+198h+var_108], rax
mov [rsp+198h+var_100], rdx
mov rdx, [rsp+198h+var_108]
mov rcx, [rsp+198h+var_100]
call map_add_record
mov [rsp+198h+var_A8], rax
cmp [rsp+198h+var_A8], 0
jnz short loc_900DB
jmp loc_903BA
loc_900DB:
mov rax, [rsp+198h+var_A8]
mov dword ptr [rsp+198h+var_118], 0
mov [rsp+198h+var_110], 3
mov rcx, [rsp+198h+var_118]
mov [rax+40h], rcx
mov rcx, [rsp+198h+var_110]
mov [rax+48h], rcx
loc_90112:
mov rax, [rsp+198h+var_90]
mov rax, [rax+8]
mov [rsp+198h+var_90], rax
jmp loc_90021
loc_9012B:
mov rdi, [rsp+198h+var_28]
mov rax, [rsp+198h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
mov ecx, 30h ; '0'
call JS_GetProperty
mov [rsp+198h+var_128], rax
mov [rsp+198h+var_120], rdx
mov rax, [rsp+198h+var_128]
mov [rsp+198h+var_68], rax
mov rax, [rsp+198h+var_120]
mov [rsp+198h+var_60], rax
mov rdi, [rsp+198h+var_68]
mov rsi, [rsp+198h+var_60]
call JS_IsException_1
cmp eax, 0
jz short loc_9018F
jmp loc_903BA
loc_9018F:
mov rdi, [rsp+198h+var_28]
mov rax, [rsp+198h+var_38]
mov rsi, [rsp+198h+var_68]
mov rdx, [rsp+198h+var_60]
mov rcx, [rax]
mov r8, [rax+8]
xor r9d, r9d
xor eax, eax
mov [rsp+198h+var_198], 0
call JS_CallFree
mov [rsp+198h+var_138], rax
mov [rsp+198h+var_130], rdx
mov rax, [rsp+198h+var_138]
mov [rsp+198h+var_68], rax
mov rax, [rsp+198h+var_130]
mov [rsp+198h+var_60], rax
mov rdi, [rsp+198h+var_68]
mov rsi, [rsp+198h+var_60]
call JS_IsException_1
cmp eax, 0
jz short loc_9020B
jmp loc_903BA
loc_9020B:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_68]
mov rdx, [rsp+198h+var_60]
mov ecx, 6Bh ; 'k'
call JS_GetProperty
mov [rsp+198h+var_148], rax
mov [rsp+198h+var_140], rdx
mov rax, [rsp+198h+var_148]
mov [rsp+198h+var_78], rax
mov rax, [rsp+198h+var_140]
mov [rsp+198h+var_70], rax
mov rdi, [rsp+198h+var_78]
mov rsi, [rsp+198h+var_70]
call JS_IsException_1
cmp eax, 0
jz short loc_90270
jmp loc_903BA
loc_90270:
jmp short $+2
loc_90272:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_68]
mov rdx, [rsp+198h+var_60]
mov rcx, [rsp+198h+var_78]
mov r8, [rsp+198h+var_70]
xor r9d, r9d
xor eax, eax
lea rax, [rsp+198h+var_B4]
mov [rsp+198h+var_198], 0
mov [rsp+198h+var_190], rax
call JS_IteratorNext
mov [rsp+198h+var_158], rax
mov [rsp+198h+var_150], rdx
mov rax, [rsp+198h+var_158]
mov [rsp+198h+var_58], rax
mov rax, [rsp+198h+var_150]
mov [rsp+198h+var_50], rax
mov rdi, [rsp+198h+var_58]
mov rsi, [rsp+198h+var_50]
call JS_IsException_1
cmp eax, 0
jz short loc_902FC
jmp loc_903BA
loc_902FC:
cmp [rsp+198h+var_B4], 0
jz short loc_9030B
jmp loc_903B8
loc_9030B:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_48]
mov rdx, [rsp+198h+var_40]
mov r9d, 1
lea r8, [rsp+198h+var_58]
mov ecx, r9d
call js_map_set
mov [rsp+198h+var_168], rax
mov [rsp+198h+var_160], rdx
mov rax, [rsp+198h+var_168]
mov [rsp+198h+var_88], rax
mov rax, [rsp+198h+var_160]
mov [rsp+198h+var_80], rax
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_58]
mov rdx, [rsp+198h+var_50]
call JS_FreeValue
mov rdi, [rsp+198h+var_88]
mov rsi, [rsp+198h+var_80]
call JS_IsException_1
cmp eax, 0
jz short loc_90396
jmp short loc_903BA
loc_90396:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_88]
mov rdx, [rsp+198h+var_80]
call JS_FreeValue
jmp loc_90272
loc_903B8:
jmp short loc_90402
loc_903BA:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_48]
mov rdx, [rsp+198h+var_40]
call JS_FreeValue
mov dword ptr [rsp+198h+var_178], 0
mov [rsp+198h+var_170], 6
mov rax, [rsp+198h+var_178]
mov [rsp+198h+var_48], rax
mov rax, [rsp+198h+var_170]
mov [rsp+198h+var_40], rax
loc_90402:
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_78]
mov rdx, [rsp+198h+var_70]
call JS_FreeValue
mov rdi, [rsp+198h+var_28]
mov rsi, [rsp+198h+var_68]
mov rdx, [rsp+198h+var_60]
call JS_FreeValue
mov rax, [rsp+198h+var_48]
mov [rsp+198h+var_10], rax
mov rax, [rsp+198h+var_40]
mov [rsp+198h+var_8], rax
loc_9045C:
mov rax, [rsp+198h+var_10]
mov rdx, [rsp+198h+var_8]
add rsp, 198h
retn
| _DWORD * js_set_union(
long long a1,
long long a2,
long long a3,
int a4,
_QWORD *a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
double v13; // xmm4_8
double v14; // xmm5_8
long long v15; // rdx
long long v16; // rdx
long long v17; // rax
long long v18; // rdx
long long v19; // rdx
long long v20; // rdx
long long v21; // rdx
double v22; // xmm4_8
double v23; // xmm5_8
long long v24; // rdx
long long v26; // [rsp+10h] [rbp-188h]
long long v27; // [rsp+18h] [rbp-180h]
_DWORD *v28; // [rsp+20h] [rbp-178h]
long long v29; // [rsp+80h] [rbp-118h]
_DWORD *v30; // [rsp+90h] [rbp-108h]
long long v31; // [rsp+A0h] [rbp-F8h]
long long v32; // [rsp+B0h] [rbp-E8h]
long long v33; // [rsp+C0h] [rbp-D8h]
int v34; // [rsp+E4h] [rbp-B4h] BYREF
_BYTE v35[8]; // [rsp+E8h] [rbp-B0h] BYREF
long long v36; // [rsp+F0h] [rbp-A8h]
long long Opaque; // [rsp+F8h] [rbp-A0h]
long long Opaque2; // [rsp+100h] [rbp-98h]
long long i; // [rsp+108h] [rbp-90h]
_DWORD *v40; // [rsp+110h] [rbp-88h] BYREF
long long v41; // [rsp+118h] [rbp-80h]
long long v42; // [rsp+120h] [rbp-78h]
long long v43; // [rsp+128h] [rbp-70h]
long long Property; // [rsp+130h] [rbp-68h]
long long v45; // [rsp+138h] [rbp-60h]
long long v46; // [rsp+140h] [rbp-58h] BYREF
long long v47; // [rsp+148h] [rbp-50h]
_DWORD *v48; // [rsp+150h] [rbp-48h]
long long v49; // [rsp+158h] [rbp-40h]
_QWORD *v50; // [rsp+160h] [rbp-38h]
int v51; // [rsp+16Ch] [rbp-2Ch]
long long v52; // [rsp+170h] [rbp-28h]
long long v53; // [rsp+178h] [rbp-20h]
long long v54; // [rsp+180h] [rbp-18h]
_DWORD *v55; // [rsp+188h] [rbp-10h]
long long v56; // [rsp+190h] [rbp-8h]
v53 = a2;
v54 = a3;
v52 = a1;
v51 = a4;
v50 = a5;
Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x24u);
if ( Opaque2 )
{
if ( (int)js_setlike_get_size(v52, *v50, v50[1], v35) >= 0 )
{
if ( (int)js_setlike_get_has(v52, *v50, v50[1], &v40) >= 0 )
{
JS_FreeValue(v52, (long long)v40, v41);
LODWORD(v33) = 0;
v48 = (_DWORD *)js_map_constructor(v52, v33, 3LL, 0, 0LL, 1, a6, a7, a8, a9, v13, v14, a12, a13);
v49 = v15;
if ( JS_IsException_1((long long)v48, v15) )
{
LODWORD(v55) = 0;
v56 = 6LL;
}
else
{
Opaque = JS_GetOpaque((long long)v48, v49, 36);
LODWORD(v32) = 0;
Property = v32;
v45 = 3LL;
LODWORD(v31) = 0;
v42 = v31;
v43 = 3LL;
for ( i = *(_QWORD *)(Opaque2 + 16); i != Opaque2 + 8; i = *(_QWORD *)(i + 8) )
{
v36 = i - 16;
if ( !*(_DWORD *)(i - 16 + 4) )
{
v26 = v52;
v27 = Opaque;
v30 = js_dup(*(_DWORD **)(v36 + 48), *(_QWORD *)(v36 + 56));
v36 = map_add_record(v26, v27, v30, v16);
if ( !v36 )
goto LABEL_23;
v17 = v36;
LODWORD(v29) = 0;
*(_QWORD *)(v36 + 64) = v29;
*(_QWORD *)(v17 + 72) = 3LL;
}
}
Property = JS_GetProperty(v52, *v50, v50[1], 48);
v45 = v18;
if ( !JS_IsException_1(Property, v18) )
{
Property = JS_CallFree(v52, Property, v45, *v50, v50[1], 0, 0LL);
v45 = v19;
if ( !JS_IsException_1(Property, v19) )
{
v42 = JS_GetProperty(v52, Property, v45, 107);
v43 = v20;
if ( !JS_IsException_1(v42, v20) )
{
while ( 1 )
{
v46 = JS_IteratorNext(v52, Property, v45, v42, v43, 0, 0LL, &v34);
v47 = v21;
if ( JS_IsException_1(v46, v21) )
break;
if ( v34 )
goto LABEL_24;
v40 = js_map_set(v52, v48, v49, a6, a7, a8, a9, v22, v23, a12, a13, 1LL, &v46, 1);
v41 = v24;
JS_FreeValue(v52, v46, v47);
if ( JS_IsException_1((long long)v40, v41) )
break;
JS_FreeValue(v52, (long long)v40, v41);
}
}
}
}
LABEL_23:
JS_FreeValue(v52, (long long)v48, v49);
LODWORD(v28) = 0;
v48 = v28;
v49 = 6LL;
LABEL_24:
JS_FreeValue(v52, v42, v43);
JS_FreeValue(v52, Property, v45);
v55 = v48;
v56 = v49;
}
}
else
{
LODWORD(v55) = 0;
v56 = 6LL;
}
}
else
{
LODWORD(v55) = 0;
v56 = 6LL;
}
}
else
{
LODWORD(v55) = 0;
v56 = 6LL;
}
return v55;
}
| js_set_union:
SUB RSP,0x198
MOV qword ptr [RSP + 0x178],RSI
MOV qword ptr [RSP + 0x180],RDX
MOV qword ptr [RSP + 0x170],RDI
MOV dword ptr [RSP + 0x16c],ECX
MOV qword ptr [RSP + 0x160],R8
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x178]
MOV RDX,qword ptr [RSP + 0x180]
MOV ECX,0x24
CALL 0x001383b0
MOV qword ptr [RSP + 0x100],RAX
CMP qword ptr [RSP + 0x100],0x0
JNZ 0x0018fe2f
MOV dword ptr [RSP + 0x188],0x0
MOV qword ptr [RSP + 0x190],0x6
JMP 0x0019045c
LAB_0018fe2f:
MOV RDI,qword ptr [RSP + 0x170]
MOV RAX,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
LEA RCX,[RSP + 0xe8]
CALL 0x00190480
CMP EAX,0x0
JGE 0x0018fe74
MOV dword ptr [RSP + 0x188],0x0
MOV qword ptr [RSP + 0x190],0x6
JMP 0x0019045c
LAB_0018fe74:
MOV RDI,qword ptr [RSP + 0x170]
MOV RAX,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
LEA RCX,[RSP + 0x110]
CALL 0x001905f0
CMP EAX,0x0
JGE 0x0018feb9
MOV dword ptr [RSP + 0x188],0x0
MOV qword ptr [RSP + 0x190],0x6
JMP 0x0019045c
LAB_0018feb9:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x118]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x170]
MOV dword ptr [RSP + 0xc0],0x0
MOV qword ptr [RSP + 0xc8],0x3
MOV RSI,qword ptr [RSP + 0xc0]
MOV RDX,qword ptr [RSP + 0xc8]
XOR ECX,ECX
XOR EAX,EAX
MOV R8D,EAX
MOV R9D,0x1
CALL 0x00152bb0
MOV qword ptr [RSP + 0xd0],RAX
MOV qword ptr [RSP + 0xd8],RDX
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x150],RAX
MOV RAX,qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0x158],RAX
MOV RDI,qword ptr [RSP + 0x150]
MOV RSI,qword ptr [RSP + 0x158]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0018ff7d
MOV dword ptr [RSP + 0x188],0x0
MOV qword ptr [RSP + 0x190],0x6
JMP 0x0019045c
LAB_0018ff7d:
MOV RDI,qword ptr [RSP + 0x150]
MOV RSI,qword ptr [RSP + 0x158]
MOV EDX,0x24
CALL 0x00138350
MOV qword ptr [RSP + 0xf8],RAX
MOV dword ptr [RSP + 0xb0],0x0
MOV qword ptr [RSP + 0xb8],0x3
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x130],RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0x138],RAX
MOV dword ptr [RSP + 0xa0],0x0
MOV qword ptr [RSP + 0xa8],0x3
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x120],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x128],RAX
MOV RAX,qword ptr [RSP + 0x100]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x108],RAX
LAB_00190021:
MOV RAX,qword ptr [RSP + 0x108]
MOV RCX,qword ptr [RSP + 0x100]
ADD RCX,0x8
CMP RAX,RCX
JZ 0x0019012b
MOV RAX,qword ptr [RSP + 0x108]
ADD RAX,-0x10
MOV qword ptr [RSP + 0xf0],RAX
MOV RAX,qword ptr [RSP + 0xf0]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x00190065
JMP 0x00190112
LAB_00190065:
MOV RAX,qword ptr [RSP + 0x170]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0xf8]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0xf0]
MOV RDI,qword ptr [RAX + 0x30]
MOV RSI,qword ptr [RAX + 0x38]
CALL 0x001216d0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x90],RAX
MOV qword ptr [RSP + 0x98],RDX
MOV RDX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x98]
CALL 0x0017dd60
MOV qword ptr [RSP + 0xf0],RAX
CMP qword ptr [RSP + 0xf0],0x0
JNZ 0x001900db
JMP 0x001903ba
LAB_001900db:
MOV RAX,qword ptr [RSP + 0xf0]
MOV dword ptr [RSP + 0x80],0x0
MOV qword ptr [RSP + 0x88],0x3
MOV RCX,qword ptr [RSP + 0x80]
MOV qword ptr [RAX + 0x40],RCX
MOV RCX,qword ptr [RSP + 0x88]
MOV qword ptr [RAX + 0x48],RCX
LAB_00190112:
MOV RAX,qword ptr [RSP + 0x108]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x108],RAX
JMP 0x00190021
LAB_0019012b:
MOV RDI,qword ptr [RSP + 0x170]
MOV RAX,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV ECX,0x30
CALL 0x00129d80
MOV qword ptr [RSP + 0x70],RAX
MOV qword ptr [RSP + 0x78],RDX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x130],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x138],RAX
MOV RDI,qword ptr [RSP + 0x130]
MOV RSI,qword ptr [RSP + 0x138]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0019018f
JMP 0x001903ba
LAB_0019018f:
MOV RDI,qword ptr [RSP + 0x170]
MOV RAX,qword ptr [RSP + 0x160]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
MOV RCX,qword ptr [RAX]
MOV R8,qword ptr [RAX + 0x8]
XOR R9D,R9D
XOR EAX,EAX
MOV qword ptr [RSP],0x0
CALL 0x0012e280
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x68],RDX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x130],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x138],RAX
MOV RDI,qword ptr [RSP + 0x130]
MOV RSI,qword ptr [RSP + 0x138]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0019020b
JMP 0x001903ba
LAB_0019020b:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
MOV ECX,0x6b
CALL 0x00129d80
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RDX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x120],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x128],RAX
MOV RDI,qword ptr [RSP + 0x120]
MOV RSI,qword ptr [RSP + 0x128]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00190270
JMP 0x001903ba
LAB_00190270:
JMP 0x00190272
LAB_00190272:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
MOV RCX,qword ptr [RSP + 0x120]
MOV R8,qword ptr [RSP + 0x128]
XOR R9D,R9D
XOR EAX,EAX
LEA RAX,[RSP + 0xe4]
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0016eeb0
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x140],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x148],RAX
MOV RDI,qword ptr [RSP + 0x140]
MOV RSI,qword ptr [RSP + 0x148]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x001902fc
JMP 0x001903ba
LAB_001902fc:
CMP dword ptr [RSP + 0xe4],0x0
JZ 0x0019030b
JMP 0x001903b8
LAB_0019030b:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
MOV R9D,0x1
LEA R8,[RSP + 0x140]
MOV ECX,R9D
CALL 0x0017d930
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x110],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x118],RAX
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x140]
MOV RDX,qword ptr [RSP + 0x148]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x118]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00190396
JMP 0x001903ba
LAB_00190396:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x118]
CALL 0x00123c90
JMP 0x00190272
LAB_001903b8:
JMP 0x00190402
LAB_001903ba:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x150]
MOV RDX,qword ptr [RSP + 0x158]
CALL 0x00123c90
MOV dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x6
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x150],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x158],RAX
LAB_00190402:
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x120]
MOV RDX,qword ptr [RSP + 0x128]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x170]
MOV RSI,qword ptr [RSP + 0x130]
MOV RDX,qword ptr [RSP + 0x138]
CALL 0x00123c90
MOV RAX,qword ptr [RSP + 0x150]
MOV qword ptr [RSP + 0x188],RAX
MOV RAX,qword ptr [RSP + 0x158]
MOV qword ptr [RSP + 0x190],RAX
LAB_0019045c:
MOV RAX,qword ptr [RSP + 0x188]
MOV RDX,qword ptr [RSP + 0x190]
ADD RSP,0x198
RET
|
int1 [16]
js_set_union(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int8 uVar1;
int8 uVar2;
int iVar3;
int1 auVar4 [16];
uint uStack_174;
uint uStack_114;
uint uStack_f4;
uint uStack_e4;
uint uStack_d4;
int local_b4;
int1 local_b0 [8];
long local_a8;
int8 local_a0;
long local_98;
long local_90;
int1 local_88 [16];
int1 local_78 [16];
int1 local_68 [16];
int1 local_58 [16];
int1 local_48 [16];
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_98 = JS_GetOpaque2(param_1,param_2,param_3,0x24);
if (local_98 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
iVar3 = js_setlike_get_size(local_28,*local_38,local_38[1],local_b0);
if (iVar3 < 0) {
local_10 = 0;
local_8 = 6;
}
else {
iVar3 = js_setlike_get_has(local_28,*local_38,local_38[1],local_88);
if (iVar3 < 0) {
local_10 = 0;
local_8 = 6;
}
else {
JS_FreeValue(local_28,local_88._0_8_,local_88._8_8_);
local_48 = js_map_constructor(local_28,(ulong)uStack_d4 << 0x20,3,0,0,1);
iVar3 = JS_IsException(local_48._0_8_,local_48._8_8_);
if (iVar3 == 0) {
local_a0 = JS_GetOpaque(local_48._0_8_,local_48._8_8_,0x24);
local_68._0_8_ = (ulong)uStack_e4 << 0x20;
local_68._8_8_ = 3;
local_78._0_8_ = (ulong)uStack_f4 << 0x20;
local_78._8_8_ = 3;
for (local_90 = *(long *)(local_98 + 0x10); uVar2 = local_28, uVar1 = local_a0,
local_90 != local_98 + 8; local_90 = *(long *)(local_90 + 8)) {
local_a8 = local_90 + -0x10;
if (*(int *)(local_90 + -0xc) == 0) {
auVar4 = js_dup(*(int8 *)(local_90 + 0x20),*(int8 *)(local_90 + 0x28));
local_a8 = map_add_record(uVar2,uVar1,auVar4._0_8_,auVar4._8_8_);
if (local_a8 == 0) goto LAB_001903ba;
*(ulong *)(local_a8 + 0x40) = (ulong)uStack_114 << 0x20;
*(int8 *)(local_a8 + 0x48) = 3;
}
}
local_68 = JS_GetProperty(local_28,*local_38,local_38[1],0x30);
iVar3 = JS_IsException(local_68._0_8_,local_68._8_8_);
if (iVar3 == 0) {
auVar4 = JS_CallFree(local_28,local_68._0_8_,local_68._8_8_,*local_38,local_38[1],0,0);
local_68 = auVar4;
iVar3 = JS_IsException(auVar4._0_8_,auVar4._8_8_);
if (iVar3 == 0) {
local_78 = JS_GetProperty(local_28,local_68._0_8_,local_68._8_8_,0x6b);
iVar3 = JS_IsException(local_78._0_8_,local_78._8_8_);
if (iVar3 == 0) {
while( true ) {
auVar4 = JS_IteratorNext(local_28,local_68._0_8_,local_68._8_8_,local_78._0_8_,
local_78._8_8_,0,0,&local_b4);
local_58 = auVar4;
iVar3 = JS_IsException(auVar4._0_8_,auVar4._8_8_);
if (iVar3 != 0) break;
if (local_b4 != 0) goto LAB_00190402;
auVar4 = js_map_set(local_28,local_48._0_8_,local_48._8_8_,1,local_58);
local_88 = auVar4;
JS_FreeValue(local_28,local_58._0_8_,local_58._8_8_);
iVar3 = JS_IsException(local_88._0_8_,local_88._8_8_);
if (iVar3 != 0) break;
JS_FreeValue(local_28,local_88._0_8_,local_88._8_8_);
}
}
}
}
LAB_001903ba:
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
local_48._8_8_ = 6;
local_48._0_8_ = (ulong)uStack_174 << 0x20;
LAB_00190402:
JS_FreeValue(local_28,local_78._0_8_,local_78._8_8_);
JS_FreeValue(local_28,local_68._0_8_,local_68._8_8_);
local_10 = local_48._0_4_;
uStack_c = local_48._4_4_;
local_8 = local_48._8_8_;
}
else {
local_10 = 0;
local_8 = 6;
}
}
}
}
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
| |
20,989 | js_set_union | bluesky950520[P]quickjs/quickjs.c | static JSValue js_set_union(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue newset, item, iter, next, rv;
struct list_head *el;
JSMapState *s, *t;
JSMapRecord *mr;
int64_t size;
BOOL done;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
return JS_EXCEPTION;
// order matters! they're JS-observable side effects
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
return JS_EXCEPTION;
if (js_setlike_get_has(ctx, argv[0], &rv) < 0)
return JS_EXCEPTION;
JS_FreeValue(ctx, rv);
newset = js_map_constructor(ctx, JS_UNDEFINED, 0, NULL, MAGIC_SET);
if (JS_IsException(newset))
return JS_EXCEPTION;
t = JS_GetOpaque(newset, JS_CLASS_SET);
iter = JS_UNDEFINED;
next = JS_UNDEFINED;
list_for_each(el, &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (mr->empty)
continue;
mr = map_add_record(ctx, t, js_dup(mr->key));
if (!mr)
goto exception;
mr->value = JS_UNDEFINED;
}
iter = JS_GetProperty(ctx, argv[0], JS_ATOM_keys);
if (JS_IsException(iter))
goto exception;
iter = JS_CallFree(ctx, iter, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
next = JS_GetProperty(ctx, iter, JS_ATOM_next);
if (JS_IsException(next))
goto exception;
for (;;) {
item = JS_IteratorNext(ctx, iter, next, 0, NULL, &done);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
rv = js_map_set(ctx, newset, 1, &item, MAGIC_SET);
JS_FreeValue(ctx, item);
if (JS_IsException(rv))
goto exception;
JS_FreeValue(ctx, rv);
}
goto fini;
exception:
JS_FreeValue(ctx, newset);
newset = JS_EXCEPTION;
fini:
JS_FreeValue(ctx, next);
JS_FreeValue(ctx, iter);
return newset;
} | O2 | c | js_set_union:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %rbp
movq %rdi, %rbx
pushq $0x24
popq %rcx
callq 0x21207
pushq $0x6
popq %r15
testq %rax, %rax
je 0x46212
movq %rax, %r12
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
leaq 0x60(%rsp), %rcx
movq %rbx, %rdi
callq 0x4643b
testl %eax, %eax
js 0x46212
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
leaq 0x40(%rsp), %rcx
movq %rbx, %rdi
callq 0x464cf
testl %eax, %eax
js 0x46212
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rbx, %rdi
callq 0x1801e
xorl %r14d, %r14d
pushq $0x3
popq %rdx
pushq $0x1
popq %r9
movq %rbx, %rdi
xorl %esi, %esi
movq %rdx, 0x20(%rsp)
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2f33e
movq %rax, 0x10(%rsp)
movq %rdx, %r13
movl %r13d, %ecx
movl $0x0, %eax
cmpq $0x6, %rcx
je 0x46217
cmpl $-0x1, %ecx
jne 0x4622f
movq 0x10(%rsp), %rax
cmpw $0x24, 0x6(%rax)
jne 0x4622f
movq 0x30(%rax), %r14
jmp 0x46232
xorl %r14d, %r14d
xorl %eax, %eax
orq %rax, %r14
movq %r14, %rax
movq %r15, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
leaq 0x8(%r12), %r15
addq $0x10, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x46283
cmpl $0x0, -0xc(%r12)
jne 0x4627d
movq 0x20(%r12), %rdx
movq 0x28(%r12), %rcx
cmpl $-0x9, %ecx
jb 0x4625d
incl (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3d891
testq %rax, %rax
je 0x463ba
andl $0x0, 0x40(%rax)
movq $0x3, 0x48(%rax)
addq $0x8, %r12
jmp 0x4623b
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
pushq $0x30
popq %rcx
movq %rbx, %rdi
callq 0x1b043
cmpl $0x6, %edx
jne 0x462b0
movq %rdx, 0x18(%rsp)
xorl %r12d, %r12d
movq 0x10(%rsp), %r15
movq %rax, %rbp
jmp 0x463cc
movq (%rbp), %rcx
movq 0x8(%rbp), %r8
andq $0x0, (%rsp)
xorl %r12d, %r12d
movq %rbx, %rdi
movq %rax, %rsi
xorl %r9d, %r9d
callq 0x1cd8e
movq %rax, %rbp
movq %rdx, %r14
cmpl $0x6, %r14d
movq 0x10(%rsp), %r15
movq %rdx, 0x18(%rsp)
je 0x463cc
pushq $0x6b
popq %rcx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x1b043
movq %rax, %r12
movq %rdx, 0x20(%rsp)
cmpl $0x6, %edx
je 0x463cc
movq %r12, 0x38(%rsp)
movq %rbp, 0x30(%rsp)
andq $0x0, (%rsp)
leaq 0x2c(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq 0x20(%rsp), %r8
xorl %r9d, %r9d
callq 0x398cc
movq %rdx, %r14
movq %rax, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
cmpl $0x6, %r14d
je 0x46419
cmpl $0x0, 0x2c(%rsp)
jne 0x46420
movq %rax, %r15
movq %r13, %rdx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %r8
pushq $0x1
popq %r9
callq 0x3d662
movq %rax, %rbp
movq %rdx, %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1801e
cmpl $0x6, %r12d
je 0x4642a
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x1801e
movq 0x38(%rsp), %r12
movq 0x30(%rsp), %rbp
movq 0x18(%rsp), %r14
jmp 0x46314
xorl %ebp, %ebp
pushq $0x3
popq %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %r15
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1801e
pushq $0x6
popq %r13
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
movq 0x20(%rsp), %rdx
callq 0x1801e
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x18(%rsp), %rdx
callq 0x1801e
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq %rax, %r15
movq %r15, %rax
movq %r13, %r15
jmp 0x46217
movq 0x10(%rsp), %r15
jmp 0x463cc
movq 0x10(%rsp), %r15
movl %r15d, %r14d
jmp 0x463e1
movq 0x10(%rsp), %r15
movq 0x38(%rsp), %r12
movq 0x30(%rsp), %rbp
jmp 0x463cc
| js_set_union:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbp, r8
mov rbx, rdi
push 24h ; '$'
pop rcx
call JS_GetOpaque2
push 6
pop r15
test rax, rax
jz loc_46212
mov r12, rax
mov rsi, [rbp+0]
mov rdx, [rbp+8]
lea rcx, [rsp+98h+var_38]
mov rdi, rbx
call js_setlike_get_size
test eax, eax
js short loc_46212
mov rsi, [rbp+0]
mov rdx, [rbp+8]
lea rcx, [rsp+98h+var_58]
mov rdi, rbx
call js_setlike_get_has
test eax, eax
js short loc_46212
mov rsi, [rsp+98h+var_58]
mov rdx, [rsp+98h+var_50]
mov rdi, rbx
call JS_FreeValue
xor r14d, r14d
push 3
pop rdx
push 1
pop r9
mov rdi, rbx
xor esi, esi
mov [rsp+98h+var_78], rdx
xor ecx, ecx
xor r8d, r8d
call js_map_constructor
mov [rsp+98h+var_88], rax
mov r13, rdx
mov ecx, r13d
mov eax, 0
cmp rcx, 6
jz short loc_46217
cmp ecx, 0FFFFFFFFh
jnz short loc_4622F
mov rax, [rsp+98h+var_88]
cmp word ptr [rax+6], 24h ; '$'
jnz short loc_4622F
mov r14, [rax+30h]
jmp short loc_46232
loc_46212:
xor r14d, r14d
xor eax, eax
loc_46217:
or r14, rax
mov rax, r14
mov rdx, r15
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4622F:
xor r14d, r14d
loc_46232:
lea r15, [r12+8]
add r12, 10h
loc_4623B:
mov r12, [r12]
cmp r12, r15
jz short loc_46283
cmp dword ptr [r12-0Ch], 0
jnz short loc_4627D
mov rdx, [r12+20h]
mov rcx, [r12+28h]
cmp ecx, 0FFFFFFF7h
jb short loc_4625D
inc dword ptr [rdx]
loc_4625D:
mov rdi, rbx
mov rsi, r14
call map_add_record
test rax, rax
jz loc_463BA
and dword ptr [rax+40h], 0
mov qword ptr [rax+48h], 3
loc_4627D:
add r12, 8
jmp short loc_4623B
loc_46283:
mov rsi, [rbp+0]
mov rdx, [rbp+8]
push 30h ; '0'
pop rcx
mov rdi, rbx
call JS_GetProperty
cmp edx, 6
jnz short loc_462B0
mov [rsp+98h+var_80], rdx
xor r12d, r12d
mov r15, [rsp+98h+var_88]
mov rbp, rax
jmp loc_463CC
loc_462B0:
mov rcx, [rbp+0]
mov r8, [rbp+8]
and [rsp+98h+var_98], 0
xor r12d, r12d
mov rdi, rbx
mov rsi, rax
xor r9d, r9d
call JS_CallFree
mov rbp, rax
mov r14, rdx
cmp r14d, 6
mov r15, [rsp+98h+var_88]
mov [rsp+98h+var_80], rdx
jz loc_463CC
push 6Bh ; 'k'
pop rcx
mov rdi, rbx
mov rsi, rbp
mov rdx, r14
call JS_GetProperty
mov r12, rax
mov [rsp+98h+var_78], rdx
cmp edx, 6
jz loc_463CC
mov [rsp+98h+var_60], r12
mov [rsp+98h+var_68], rbp
loc_46314:
and [rsp+98h+var_98], 0
lea rax, [rsp+98h+var_6C]
mov [rsp+98h+var_90], rax
mov rdi, rbx
mov rsi, rbp
mov rdx, r14
mov rcx, r12
mov r8, [rsp+98h+var_78]
xor r9d, r9d
call JS_IteratorNext
mov r14, rdx
mov [rsp+98h+var_48], rax
mov [rsp+98h+var_40], rdx
cmp r14d, 6
jz loc_46419
cmp [rsp+98h+var_6C], 0
jnz loc_46420
mov r15, rax
mov rdx, r13
mov rdi, rbx
mov rsi, [rsp+98h+var_88]
lea r8, [rsp+98h+var_48]
push 1
pop r9
call js_map_set
mov rbp, rax
mov r12, rdx
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_FreeValue
cmp r12d, 6
jz loc_4642A
mov rdi, rbx
mov rsi, rbp
mov rdx, r12
call JS_FreeValue
mov r12, [rsp+98h+var_60]
mov rbp, [rsp+98h+var_68]
mov r14, [rsp+98h+var_80]
jmp loc_46314
loc_463BA:
xor ebp, ebp
push 3
pop rax
mov [rsp+98h+var_80], rax
mov r15, [rsp+98h+var_88]
xor r12d, r12d
loc_463CC:
mov rdi, rbx
mov rsi, r15
mov rdx, r13
call JS_FreeValue
push 6
pop r13
xor r14d, r14d
loc_463E1:
mov rdi, rbx
mov rsi, r12
mov rdx, [rsp+98h+var_78]
call JS_FreeValue
mov rdi, rbx
mov rsi, rbp
mov rdx, [rsp+98h+var_80]
call JS_FreeValue
mov rax, 0FFFFFFFF00000000h
and r15, rax
mov rax, r15
mov r15, r13
jmp loc_46217
loc_46419:
mov r15, [rsp+98h+var_88]
jmp short loc_463CC
loc_46420:
mov r15, [rsp+98h+var_88]
mov r14d, r15d
jmp short loc_463E1
loc_4642A:
mov r15, [rsp+98h+var_88]
mov r12, [rsp+98h+var_60]
mov rbp, [rsp+98h+var_68]
jmp short loc_463CC
| unsigned long long js_set_union(
long long a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
_QWORD *a13)
{
long long Opaque2; // rax
long long v15; // r12
long long v16; // r14
double v17; // xmm4_8
double v18; // xmm5_8
long long v19; // rdx
long long v20; // r13
unsigned long long v21; // rax
long long v22; // r14
_QWORD *v24; // r15
_QWORD *i; // r12
_QWORD *v26; // r12
_DWORD *v27; // rdx
long long v28; // rcx
_QWORD *v29; // rax
long long Property; // rax
long long v31; // rdx
long long v32; // r12
long long v33; // r15
long long v34; // rbp
long long v35; // rax
long long v36; // rdx
int v37; // r14d
long long v38; // rax
long long v39; // rdx
unsigned long long v40; // rax
long long v41; // rcx
double v42; // xmm4_8
double v43; // xmm5_8
long long v44; // rdx
long long v45; // r14
long long v46; // r15
unsigned long long v47; // rbp
long long v48; // rdx
long long v49; // r12
unsigned long long v50; // [rsp+10h] [rbp-88h]
long long v51; // [rsp+18h] [rbp-80h]
long long v52; // [rsp+20h] [rbp-78h]
int v53; // [rsp+2Ch] [rbp-6Ch] BYREF
long long v54; // [rsp+30h] [rbp-68h]
long long v55; // [rsp+38h] [rbp-60h]
long long v56[2]; // [rsp+40h] [rbp-58h] BYREF
long long v57[2]; // [rsp+50h] [rbp-48h] BYREF
char v58[56]; // [rsp+60h] [rbp-38h] BYREF
Opaque2 = JS_GetOpaque2(a1, a2, a3, 0x24u);
if ( Opaque2
&& (v15 = Opaque2, (int)js_setlike_get_size(a1, *a13, a13[1], v58) >= 0)
&& (int)js_setlike_get_has(a1, *a13, a13[1], v56) >= 0 )
{
JS_FreeValue(a1, v56[0], v56[1]);
v16 = 0LL;
v52 = 3LL;
v50 = js_map_constructor(a1, 0LL, 3LL, 0, 0LL, 1u, a4, a5, a6, a7, v17, v18, a10, a11);
v20 = v19;
v21 = 0LL;
if ( (unsigned int)v19 != 6LL )
{
if ( (_DWORD)v19 == -1 && *(_WORD *)(v50 + 6) == 36 )
v22 = *(_QWORD *)(v50 + 48);
else
v22 = 0LL;
v24 = (_QWORD *)(v15 + 8);
for ( i = (_QWORD *)(v15 + 16); ; i = v26 + 1 )
{
v26 = (_QWORD *)*i;
if ( v26 == v24 )
break;
if ( !*((_DWORD *)v26 - 3) )
{
v27 = (_DWORD *)v26[4];
v28 = v26[5];
if ( (unsigned int)v28 >= 0xFFFFFFF7 )
++*v27;
v29 = map_add_record(a1, v22, v27, v28);
if ( !v29 )
{
v34 = 0LL;
v51 = 3LL;
v33 = v50;
v32 = 0LL;
goto LABEL_29;
}
*((_DWORD *)v29 + 16) = 0;
v29[9] = 3LL;
}
}
Property = JS_GetProperty(a1, *a13, a13[1], 48);
if ( (_DWORD)v31 == 6 )
{
v51 = v31;
v32 = 0LL;
v33 = v50;
v34 = Property;
}
else
{
v32 = 0LL;
v35 = JS_CallFree(a1, Property, v31, *a13, a13[1], 0, 0LL);
v34 = v35;
v37 = v36;
v33 = v50;
v51 = v36;
if ( (_DWORD)v36 != 6 )
{
v38 = JS_GetProperty(a1, v35, v36, 107);
v32 = v38;
v52 = v39;
if ( (_DWORD)v39 != 6 )
{
v55 = v38;
v54 = v34;
while ( 1 )
{
v40 = JS_IteratorNext(a1, v34, v37, v32, v52, 0, 0LL, &v53);
v45 = v44;
v57[0] = v40;
v57[1] = v44;
if ( (_DWORD)v44 == 6 )
{
v33 = v50;
goto LABEL_29;
}
if ( v53 )
{
v33 = v50;
v16 = (unsigned int)v50;
goto LABEL_30;
}
v46 = v40;
v47 = js_map_set(a1, v50, v20, a4, a5, a6, a7, v42, v43, a10, a11, v41, v57, 1);
v49 = v48;
JS_FreeValue(a1, v46, v45);
if ( (_DWORD)v49 == 6 )
break;
JS_FreeValue(a1, v47, v49);
v32 = v55;
v34 = v54;
v37 = v51;
}
v33 = v50;
v32 = v55;
v34 = v54;
}
}
}
LABEL_29:
JS_FreeValue(a1, v33, v20);
v16 = 0LL;
LABEL_30:
JS_FreeValue(a1, v32, v52);
JS_FreeValue(a1, v34, v51);
v21 = v33 & 0xFFFFFFFF00000000LL;
}
}
else
{
v16 = 0LL;
v21 = 0LL;
}
return v21 | v16;
}
| js_set_union:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBP,R8
MOV RBX,RDI
PUSH 0x24
POP RCX
CALL 0x00121207
PUSH 0x6
POP R15
TEST RAX,RAX
JZ 0x00146212
MOV R12,RAX
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
LEA RCX,[RSP + 0x60]
MOV RDI,RBX
CALL 0x0014643b
TEST EAX,EAX
JS 0x00146212
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
LEA RCX,[RSP + 0x40]
MOV RDI,RBX
CALL 0x001464cf
TEST EAX,EAX
JS 0x00146212
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RDI,RBX
CALL 0x0011801e
XOR R14D,R14D
PUSH 0x3
POP RDX
PUSH 0x1
POP R9
MOV RDI,RBX
XOR ESI,ESI
MOV qword ptr [RSP + 0x20],RDX
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0012f33e
MOV qword ptr [RSP + 0x10],RAX
MOV R13,RDX
MOV ECX,R13D
MOV EAX,0x0
CMP RCX,0x6
JZ 0x00146217
CMP ECX,-0x1
JNZ 0x0014622f
MOV RAX,qword ptr [RSP + 0x10]
CMP word ptr [RAX + 0x6],0x24
JNZ 0x0014622f
MOV R14,qword ptr [RAX + 0x30]
JMP 0x00146232
LAB_00146212:
XOR R14D,R14D
XOR EAX,EAX
LAB_00146217:
OR R14,RAX
MOV RAX,R14
MOV RDX,R15
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014622f:
XOR R14D,R14D
LAB_00146232:
LEA R15,[R12 + 0x8]
ADD R12,0x10
LAB_0014623b:
MOV R12,qword ptr [R12]
CMP R12,R15
JZ 0x00146283
CMP dword ptr [R12 + -0xc],0x0
JNZ 0x0014627d
MOV RDX,qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x28]
CMP ECX,-0x9
JC 0x0014625d
INC dword ptr [RDX]
LAB_0014625d:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013d891
TEST RAX,RAX
JZ 0x001463ba
AND dword ptr [RAX + 0x40],0x0
MOV qword ptr [RAX + 0x48],0x3
LAB_0014627d:
ADD R12,0x8
JMP 0x0014623b
LAB_00146283:
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
PUSH 0x30
POP RCX
MOV RDI,RBX
CALL 0x0011b043
CMP EDX,0x6
JNZ 0x001462b0
MOV qword ptr [RSP + 0x18],RDX
XOR R12D,R12D
MOV R15,qword ptr [RSP + 0x10]
MOV RBP,RAX
JMP 0x001463cc
LAB_001462b0:
MOV RCX,qword ptr [RBP]
MOV R8,qword ptr [RBP + 0x8]
AND qword ptr [RSP],0x0
XOR R12D,R12D
MOV RDI,RBX
MOV RSI,RAX
XOR R9D,R9D
CALL 0x0011cd8e
MOV RBP,RAX
MOV R14,RDX
CMP R14D,0x6
MOV R15,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x18],RDX
JZ 0x001463cc
PUSH 0x6b
POP RCX
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R14
CALL 0x0011b043
MOV R12,RAX
MOV qword ptr [RSP + 0x20],RDX
CMP EDX,0x6
JZ 0x001463cc
MOV qword ptr [RSP + 0x38],R12
MOV qword ptr [RSP + 0x30],RBP
LAB_00146314:
AND qword ptr [RSP],0x0
LEA RAX,[RSP + 0x2c]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R14
MOV RCX,R12
MOV R8,qword ptr [RSP + 0x20]
XOR R9D,R9D
CALL 0x001398cc
MOV R14,RDX
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RDX
CMP R14D,0x6
JZ 0x00146419
CMP dword ptr [RSP + 0x2c],0x0
JNZ 0x00146420
MOV R15,RAX
MOV RDX,R13
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x10]
LEA R8,[RSP + 0x50]
PUSH 0x1
POP R9
CALL 0x0013d662
MOV RBP,RAX
MOV R12,RDX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0011801e
CMP R12D,0x6
JZ 0x0014642a
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R12
CALL 0x0011801e
MOV R12,qword ptr [RSP + 0x38]
MOV RBP,qword ptr [RSP + 0x30]
MOV R14,qword ptr [RSP + 0x18]
JMP 0x00146314
LAB_001463ba:
XOR EBP,EBP
PUSH 0x3
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV R15,qword ptr [RSP + 0x10]
XOR R12D,R12D
LAB_001463cc:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R13
CALL 0x0011801e
PUSH 0x6
POP R13
XOR R14D,R14D
LAB_001463e1:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x0011801e
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x0011801e
MOV RAX,-0x100000000
AND R15,RAX
MOV RAX,R15
MOV R15,R13
JMP 0x00146217
LAB_00146419:
MOV R15,qword ptr [RSP + 0x10]
JMP 0x001463cc
LAB_00146420:
MOV R15,qword ptr [RSP + 0x10]
MOV R14D,R15D
JMP 0x001463e1
LAB_0014642a:
MOV R15,qword ptr [RSP + 0x10]
MOV R12,qword ptr [RSP + 0x38]
MOV RBP,qword ptr [RSP + 0x30]
JMP 0x001463cc
|
int1 [16] js_set_union(int8 param_1)
{
long lVar1;
int8 uVar2;
int8 uVar3;
int iVar4;
long lVar5;
ulong uVar7;
long lVar8;
int8 *in_R8;
long *plVar10;
ulong uVar11;
ulong uVar12;
int8 uVar13;
ulong uVar14;
int1 auVar15 [16];
int1 auVar16 [16];
int1 auVar17 [16];
int1 auVar18 [16];
int8 local_80;
int8 local_78;
int local_6c;
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int1 local_48 [16];
int1 local_38 [8];
ulong uVar6;
int8 uVar9;
lVar5 = JS_GetOpaque2();
uVar14 = 6;
if (((lVar5 == 0) || (iVar4 = js_setlike_get_size(param_1,*in_R8,in_R8[1],local_38), iVar4 < 0))
|| (iVar4 = js_setlike_get_has(param_1,*in_R8,in_R8[1],&local_58), iVar4 < 0)) {
uVar12 = 0;
uVar7 = 0;
}
else {
JS_FreeValue(param_1,local_58,local_50);
uVar12 = 0;
auVar15 = js_map_constructor(param_1,0,3,0,0,1);
uVar11 = auVar15._8_8_;
uVar6 = auVar15._0_8_;
uVar7 = 0;
if ((uVar11 & 0xffffffff) != 6) {
if ((auVar15._8_4_ == -1) && (*(short *)(uVar6 + 6) == 0x24)) {
uVar13 = *(int8 *)(uVar6 + 0x30);
}
else {
uVar13 = 0;
}
plVar10 = (long *)(lVar5 + 0x10);
while (lVar1 = *plVar10, lVar1 != lVar5 + 8) {
if (*(int *)(lVar1 + -0xc) == 0) {
if (0xfffffff6 < (uint)*(int8 *)(lVar1 + 0x28)) {
**(int **)(lVar1 + 0x20) = **(int **)(lVar1 + 0x20) + 1;
}
lVar8 = map_add_record(param_1,uVar13);
if (lVar8 == 0) {
auVar15 = ZEXT816(3) << 0x40;
auVar16 = ZEXT816(3) << 0x40;
goto LAB_001463cc;
}
*(int4 *)(lVar8 + 0x40) = 0;
*(int8 *)(lVar8 + 0x48) = 3;
}
plVar10 = (long *)(lVar1 + 8);
}
auVar15 = JS_GetProperty(param_1,*in_R8,in_R8[1],0x30);
if (auVar15._8_4_ == 6) {
auVar16 = ZEXT816(3) << 0x40;
}
else {
auVar16 = ZEXT816(3) << 0x40;
auVar15 = JS_CallFree(param_1,auVar15._0_8_,auVar15._8_8_,*in_R8,in_R8[1],0,0);
uVar13 = auVar15._8_8_;
if (auVar15._8_4_ != 6) {
auVar16 = JS_GetProperty(param_1,auVar15._0_8_,uVar13,0x6b);
uVar9 = auVar16._8_8_;
uVar2 = auVar15._0_8_;
uVar3 = auVar16._0_8_;
if (auVar16._8_4_ != 6) {
while( true ) {
local_60 = uVar3;
local_68 = uVar2;
auVar16._8_8_ = uVar9;
auVar16._0_8_ = local_60;
auVar15._8_8_ = uVar13;
auVar15._0_8_ = local_68;
auVar17 = JS_IteratorNext(param_1,local_68,uVar13,local_60,uVar9,0,0,&local_6c);
local_48 = auVar17;
if (auVar17._8_4_ == 6) break;
if (local_6c != 0) {
uVar12 = uVar6 & 0xffffffff;
goto LAB_001463e1;
}
auVar18 = js_map_set(param_1,uVar6,uVar11);
JS_FreeValue(param_1,auVar17._0_8_,auVar17._8_8_);
auVar16._0_8_ = local_60;
auVar15._0_8_ = local_68;
if (auVar18._8_4_ == 6) break;
JS_FreeValue(param_1,auVar18._0_8_,auVar18._8_8_);
uVar2 = local_68;
uVar3 = local_60;
}
}
}
}
LAB_001463cc:
JS_FreeValue(param_1,uVar6,uVar11);
uVar11 = 6;
uVar12 = 0;
auVar17 = local_48;
LAB_001463e1:
local_78 = auVar16._8_8_;
local_80 = auVar15._8_8_;
local_48 = auVar17;
JS_FreeValue(param_1,auVar16._0_8_,local_78);
JS_FreeValue(param_1,auVar15._0_8_,local_80);
uVar7 = uVar6 & 0xffffffff00000000;
uVar14 = uVar11;
}
}
auVar17._8_8_ = uVar14;
auVar17._0_8_ = uVar12 | uVar7;
return auVar17;
}
| |
20,990 | ma_sp_make_key | eloqsql/storage/maria/ma_sp_key.c | MARIA_KEY *_ma_sp_make_key(MARIA_HA *info, MARIA_KEY *ret_key, uint keynr,
uchar *key, const uchar *record, my_off_t filepos,
ulonglong trid)
{
HA_KEYSEG *keyseg;
MARIA_KEYDEF *keyinfo = &info->s->keyinfo[keynr];
uint len = 0;
const uchar *pos;
uint dlen;
uchar *dptr;
double mbr[SPDIMS * 2];
uint i;
DBUG_ENTER("_ma_sp_make_key");
keyseg = &keyinfo->seg[-1];
pos = record + keyseg->start;
ret_key->data= key;
dlen = _ma_calc_blob_length(keyseg->bit_start, pos);
memcpy(&dptr, pos + keyseg->bit_start, sizeof(char*));
if (!dptr)
{
my_errno= HA_ERR_NULL_IN_SPATIAL;
DBUG_RETURN(0);
}
sp_mbr_from_wkb(dptr + 4, dlen - 4, SPDIMS, mbr); /* SRID */
for (i = 0, keyseg = keyinfo->seg; keyseg->type; keyseg++, i++)
{
uint length = keyseg->length, start= keyseg->start;
double val;
DBUG_ASSERT(length == 8);
DBUG_ASSERT(!(start % 8));
DBUG_ASSERT(start < sizeof(mbr));
DBUG_ASSERT(keyseg->type == HA_KEYTYPE_DOUBLE);
val= mbr[start / sizeof (double)];
if (isnan(val))
{
bzero(key, length);
key+= length;
len+= length;
continue;
}
if (keyseg->flag & HA_SWAP_KEY)
{
mi_float8store(key, val);
}
else
{
float8store((uchar *)key, val);
}
key += length;
len+= length;
}
_ma_dpointer(info->s, key, filepos);
ret_key->keyinfo= keyinfo;
ret_key->data_length= len;
ret_key->ref_length= info->s->rec_reflength;
ret_key->flag= 0;
if (_ma_have_versioning(info) && trid)
{
ret_key->ref_length+= transid_store_packed(info,
key + ret_key->ref_length,
trid);
}
DBUG_EXECUTE("key", _ma_print_key(DBUG_FILE, ret_key););
DBUG_RETURN(ret_key);
} | O0 | c | ma_sp_make_key:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movq -0x48(%rbp), %rax
movq 0xc0(%rax), %rax
addq $-0x20, %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
movl 0x8(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movzbl 0x1a(%rax), %edi
movq -0x58(%rbp), %rsi
callq 0x52710
movl %eax, -0x5c(%rbp)
movq -0x58(%rbp), %rax
movq -0x40(%rbp), %rcx
movzbl 0x1a(%rcx), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jne 0x9bfd6
callq 0xf6210
movl $0x9e, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x9c209
movq -0x68(%rbp), %rdi
addq $0x4, %rdi
movl -0x5c(%rbp), %esi
subl $0x4, %esi
leaq -0x90(%rbp), %rcx
movl $0x2, %edx
callq 0x9c220
movl $0x0, -0x94(%rbp)
movq -0x48(%rbp), %rax
movq 0xc0(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpb $0x0, 0x18(%rax)
je 0x9c172
movq -0x40(%rbp), %rax
movzwl 0x14(%rax), %eax
movl %eax, -0x98(%rbp)
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x9c(%rbp)
jmp 0x9c039
jmp 0x9c03b
jmp 0x9c03d
jmp 0x9c03f
jmp 0x9c041
jmp 0x9c043
jmp 0x9c045
movl -0x9c(%rbp), %eax
shrq $0x3, %rax
movsd -0x90(%rbp,%rax,8), %xmm0
movsd %xmm0, -0xa8(%rbp)
movsd -0xa8(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x9c075
jmp 0x9c0ac
movq -0x28(%rbp), %rdi
movl -0x98(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2a0
movl -0x98(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl -0x98(%rbp), %eax
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x9c152
movq -0x40(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x9c125
movb -0xa1(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movb -0xa2(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x1(%rax)
movb -0xa3(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x2(%rax)
movb -0xa4(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x3(%rax)
movb -0xa5(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x4(%rax)
movb -0xa6(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x5(%rax)
movb -0xa7(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x6(%rax)
movb -0xa8(%rbp), %cl
movq -0x28(%rbp), %rax
movb %cl, 0x7(%rax)
jmp 0x9c133
movq -0x28(%rbp), %rax
movq -0xa8(%rbp), %rcx
movq %rcx, (%rax)
movl -0x98(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl -0x98(%rbp), %eax
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x9c00e
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x95f30
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x740(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x18(%rax)
movq -0x10(%rbp), %rax
movl 0x618(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x9c1fb
cmpq $0x0, 0x10(%rbp)
je 0x9c1fb
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
addq %rax, %rsi
movq 0x10(%rbp), %rdx
callq 0x46bb0
movl %eax, %ecx
movq -0x18(%rbp), %rax
addl 0x14(%rax), %ecx
movl %ecx, 0x14(%rax)
jmp 0x9c1fd
jmp 0x9c1ff
jmp 0x9c201
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_sp_make_key:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_1C]
imul rcx, 118h
add rax, rcx
mov [rbp+var_48], rax
mov [rbp+var_4C], 0
mov rax, [rbp+var_48]
mov rax, [rax+0C0h]
add rax, 0FFFFFFFFFFFFFFE0h
mov [rbp+var_40], rax
mov rax, [rbp+var_30]
mov rcx, [rbp+var_40]
mov ecx, [rcx+8]
add rax, rcx
mov [rbp+var_58], rax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_40]
movzx edi, byte ptr [rax+1Ah]
mov rsi, [rbp+var_58]
call _ma_calc_blob_length
mov [rbp+var_5C], eax
mov rax, [rbp+var_58]
mov rcx, [rbp+var_40]
movzx ecx, byte ptr [rcx+1Ah]
movsxd rcx, ecx
mov rax, [rax+rcx]
mov [rbp+var_68], rax
cmp [rbp+var_68], 0
jnz short loc_9BFD6
call _my_thread_var
mov dword ptr [rax], 9Eh
mov [rbp+var_8], 0
jmp loc_9C209
loc_9BFD6:
mov rdi, [rbp+var_68]
add rdi, 4
mov esi, [rbp+var_5C]
sub esi, 4
lea rcx, [rbp+var_90]
mov edx, 2
call sp_mbr_from_wkb
mov [rbp+var_94], 0
mov rax, [rbp+var_48]
mov rax, [rax+0C0h]
mov [rbp+var_40], rax
loc_9C00E:
mov rax, [rbp+var_40]
cmp byte ptr [rax+18h], 0
jz loc_9C172
mov rax, [rbp+var_40]
movzx eax, word ptr [rax+14h]
mov [rbp+var_98], eax
mov rax, [rbp+var_40]
mov eax, [rax+8]
mov [rbp+var_9C], eax
jmp short $+2
loc_9C039:
jmp short $+2
loc_9C03B:
jmp short $+2
loc_9C03D:
jmp short $+2
loc_9C03F:
jmp short $+2
loc_9C041:
jmp short $+2
loc_9C043:
jmp short $+2
loc_9C045:
mov eax, [rbp+var_9C]
shr rax, 3
movsd xmm0, [rbp+rax*8+var_90]
movsd [rbp+var_A8], xmm0
movsd xmm0, [rbp+var_A8]
ucomisd xmm0, xmm0
setp al
test al, 1
jnz short loc_9C075
jmp short loc_9C0AC
loc_9C075:
mov rdi, [rbp+var_28]
mov eax, [rbp+var_98]
mov edx, eax
xor esi, esi
call _memset
mov ecx, [rbp+var_98]
mov rax, [rbp+var_28]
mov ecx, ecx
add rax, rcx
mov [rbp+var_28], rax
mov eax, [rbp+var_98]
add eax, [rbp+var_4C]
mov [rbp+var_4C], eax
jmp loc_9C152
loc_9C0AC:
mov rax, [rbp+var_40]
movzx eax, word ptr [rax+12h]
and eax, 40h
cmp eax, 0
jz short loc_9C125
mov cl, byte ptr [rbp+var_A8+7]
mov rax, [rbp+var_28]
mov [rax], cl
mov cl, byte ptr [rbp+var_A8+6]
mov rax, [rbp+var_28]
mov [rax+1], cl
mov cl, byte ptr [rbp+var_A8+5]
mov rax, [rbp+var_28]
mov [rax+2], cl
mov cl, byte ptr [rbp+var_A8+4]
mov rax, [rbp+var_28]
mov [rax+3], cl
mov cl, byte ptr [rbp+var_A8+3]
mov rax, [rbp+var_28]
mov [rax+4], cl
mov cl, byte ptr [rbp+var_A8+2]
mov rax, [rbp+var_28]
mov [rax+5], cl
mov cl, byte ptr [rbp+var_A8+1]
mov rax, [rbp+var_28]
mov [rax+6], cl
mov cl, byte ptr [rbp+var_A8]
mov rax, [rbp+var_28]
mov [rax+7], cl
jmp short loc_9C133
loc_9C125:
mov rax, [rbp+var_28]
mov rcx, [rbp+var_A8]
mov [rax], rcx
loc_9C133:
mov ecx, [rbp+var_98]
mov rax, [rbp+var_28]
mov ecx, ecx
add rax, rcx
mov [rbp+var_28], rax
mov eax, [rbp+var_98]
add eax, [rbp+var_4C]
mov [rbp+var_4C], eax
loc_9C152:
mov rax, [rbp+var_40]
add rax, 20h ; ' '
mov [rbp+var_40], rax
mov eax, [rbp+var_94]
add eax, 1
mov [rbp+var_94], eax
jmp loc_9C00E
loc_9C172:
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
call _ma_dpointer
mov rcx, [rbp+var_48]
mov rax, [rbp+var_18]
mov [rax+8], rcx
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_18]
mov [rax+10h], ecx
mov rax, [rbp+var_10]
mov rax, [rax]
mov ecx, [rax+740h]
mov rax, [rbp+var_18]
mov [rax+14h], ecx
mov rax, [rbp+var_18]
mov dword ptr [rax+18h], 0
mov rax, [rbp+var_10]
mov eax, [rax+618h]
and eax, 1
cmp eax, 0
jz short loc_9C1FB
cmp [rbp+arg_0], 0
jz short loc_9C1FB
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rax, [rbp+var_18]
mov eax, [rax+14h]
add rsi, rax
mov rdx, [rbp+arg_0]
call transid_store_packed
mov ecx, eax
mov rax, [rbp+var_18]
add ecx, [rax+14h]
mov [rax+14h], ecx
loc_9C1FB:
jmp short $+2
loc_9C1FD:
jmp short $+2
loc_9C1FF:
jmp short $+2
loc_9C201:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_9C209:
mov rax, [rbp+var_8]
add rsp, 0B0h
pop rbp
retn
| _QWORD * ma_sp_make_key(
long long a1,
_QWORD *a2,
unsigned int a3,
_BYTE *a4,
long long a5,
long long a6,
long long a7)
{
long long v7; // rdi
int v8; // eax
long long v10; // [rsp+8h] [rbp-A8h]
unsigned int v11; // [rsp+18h] [rbp-98h]
int v12; // [rsp+1Ch] [rbp-94h]
_QWORD v13[5]; // [rsp+20h] [rbp-90h] BYREF
long long v14; // [rsp+48h] [rbp-68h]
int v15; // [rsp+54h] [rbp-5Ch]
unsigned __int8 *v16; // [rsp+58h] [rbp-58h]
int v17; // [rsp+64h] [rbp-4Ch]
long long v18; // [rsp+68h] [rbp-48h]
long long v19; // [rsp+70h] [rbp-40h]
long long v20; // [rsp+78h] [rbp-38h]
long long v21; // [rsp+80h] [rbp-30h]
_BYTE *v22; // [rsp+88h] [rbp-28h]
unsigned int v23; // [rsp+94h] [rbp-1Ch]
_QWORD *v24; // [rsp+98h] [rbp-18h]
long long v25; // [rsp+A0h] [rbp-10h]
v25 = a1;
v24 = a2;
v23 = a3;
v22 = a4;
v21 = a5;
v20 = a6;
v18 = 280LL * a3 + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
v17 = 0;
v19 = *(_QWORD *)(v18 + 192) - 32LL;
v16 = (unsigned __int8 *)(*(unsigned int *)(v19 + 8) + a5);
*a2 = a4;
v7 = *(unsigned __int8 *)(v19 + 26);
v15 = ma_calc_blob_length(v7, v16);
v14 = *(_QWORD *)&v16[*(unsigned __int8 *)(v19 + 26)];
if ( v14 )
{
sp_mbr_from_wkb(v14 + 4, (unsigned int)(v15 - 4), 2LL, v13);
v12 = 0;
v19 = *(_QWORD *)(v18 + 192);
while ( *(_BYTE *)(v19 + 24) )
{
v11 = *(unsigned __int16 *)(v19 + 20);
v10 = v13[(unsigned long long)*(unsigned int *)(v19 + 8) >> 3];
if ( (*(_WORD *)(v19 + 18) & 0x40) != 0 )
{
*v22 = HIBYTE(v10);
v22[1] = BYTE6(v10);
v22[2] = BYTE5(v10);
v22[3] = BYTE4(v10);
v22[4] = BYTE3(v10);
v22[5] = BYTE2(v10);
v22[6] = BYTE1(v10);
v22[7] = v10;
}
else
{
*(_QWORD *)v22 = v10;
}
v22 += v11;
v17 += v11;
v19 += 32LL;
++v12;
}
ma_dpointer(*(_QWORD *)v25, v22, v20);
v24[1] = v18;
*((_DWORD *)v24 + 4) = v17;
*(_QWORD *)((char *)v24 + 20) = *(unsigned int *)(*(_QWORD *)v25 + 1856LL);
if ( (*(_DWORD *)(v25 + 1560) & 1) != 0 && a7 )
{
v8 = transid_store_packed(v25, &v22[*((unsigned int *)v24 + 5)], a7);
*((_DWORD *)v24 + 5) += v8;
}
return v24;
}
else
{
*(_DWORD *)my_thread_var(v7, (const char *)v16) = 158;
return 0LL;
}
}
| _ma_sp_make_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV dword ptr [RBP + -0x4c],0x0
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX + 0xc0]
ADD RAX,-0x20
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RCX + 0x8]
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EDI,byte ptr [RAX + 0x1a]
MOV RSI,qword ptr [RBP + -0x58]
CALL 0x00152710
MOV dword ptr [RBP + -0x5c],EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x40]
MOVZX ECX,byte ptr [RCX + 0x1a]
MOVSXD RCX,ECX
MOV RAX,qword ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x68],RAX
CMP qword ptr [RBP + -0x68],0x0
JNZ 0x0019bfd6
CALL 0x001f6210
MOV dword ptr [RAX],0x9e
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0019c209
LAB_0019bfd6:
MOV RDI,qword ptr [RBP + -0x68]
ADD RDI,0x4
MOV ESI,dword ptr [RBP + -0x5c]
SUB ESI,0x4
LEA RCX,[RBP + -0x90]
MOV EDX,0x2
CALL 0x0019c220
MOV dword ptr [RBP + -0x94],0x0
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX + 0xc0]
MOV qword ptr [RBP + -0x40],RAX
LAB_0019c00e:
MOV RAX,qword ptr [RBP + -0x40]
CMP byte ptr [RAX + 0x18],0x0
JZ 0x0019c172
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x98],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x9c],EAX
JMP 0x0019c039
LAB_0019c039:
JMP 0x0019c03b
LAB_0019c03b:
JMP 0x0019c03d
LAB_0019c03d:
JMP 0x0019c03f
LAB_0019c03f:
JMP 0x0019c041
LAB_0019c041:
JMP 0x0019c043
LAB_0019c043:
JMP 0x0019c045
LAB_0019c045:
MOV EAX,dword ptr [RBP + -0x9c]
SHR RAX,0x3
MOVSD XMM0,qword ptr [RBP + RAX*0x8 + -0x90]
MOVSD qword ptr [RBP + -0xa8],XMM0
MOVSD XMM0,qword ptr [RBP + -0xa8]
UCOMISD XMM0,XMM0
SETP AL
TEST AL,0x1
JNZ 0x0019c075
JMP 0x0019c0ac
LAB_0019c075:
MOV RDI,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x98]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2a0
MOV ECX,dword ptr [RBP + -0x98]
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x98]
ADD EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0019c152
LAB_0019c0ac:
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x40
CMP EAX,0x0
JZ 0x0019c125
MOV CL,byte ptr [RBP + -0xa1]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],CL
MOV CL,byte ptr [RBP + -0xa2]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],CL
MOV CL,byte ptr [RBP + -0xa3]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x2],CL
MOV CL,byte ptr [RBP + -0xa4]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x3],CL
MOV CL,byte ptr [RBP + -0xa5]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x4],CL
MOV CL,byte ptr [RBP + -0xa6]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x5],CL
MOV CL,byte ptr [RBP + -0xa7]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x6],CL
MOV CL,byte ptr [RBP + -0xa8]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x7],CL
JMP 0x0019c133
LAB_0019c125:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0xa8]
MOV qword ptr [RAX],RCX
LAB_0019c133:
MOV ECX,dword ptr [RBP + -0x98]
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x98]
ADD EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4c],EAX
LAB_0019c152:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0x94]
ADD EAX,0x1
MOV dword ptr [RBP + -0x94],EAX
JMP 0x0019c00e
LAB_0019c172:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00195f30
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x740]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x14],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x618]
AND EAX,0x1
CMP EAX,0x0
JZ 0x0019c1fb
CMP qword ptr [RBP + 0x10],0x0
JZ 0x0019c1fb
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x14]
ADD RSI,RAX
MOV RDX,qword ptr [RBP + 0x10]
CALL 0x00146bb0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD ECX,dword ptr [RAX + 0x14]
MOV dword ptr [RAX + 0x14],ECX
LAB_0019c1fb:
JMP 0x0019c1fd
LAB_0019c1fd:
JMP 0x0019c1ff
LAB_0019c1ff:
JMP 0x0019c201
LAB_0019c201:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_0019c209:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xb0
POP RBP
RET
|
int8 *
_ma_sp_make_key(long *param_1,int8 *param_2,uint param_3,double *param_4,long param_5,
int8 param_6,long param_7)
{
double dVar1;
long lVar2;
uint uVar3;
int iVar4;
int4 *puVar5;
int1 local_b0;
int1 uStack_af;
int1 uStack_ae;
int1 uStack_ad;
int1 uStack_ac;
int1 uStack_ab;
int1 uStack_aa;
int1 uStack_a9;
double local_98 [5];
long local_70;
int local_64;
long local_60;
int local_54;
long local_50;
long local_48;
int8 local_40;
long local_38;
double *local_30;
uint local_24;
int8 *local_20;
long *local_18;
int8 *local_10;
local_50 = *(long *)(*param_1 + 0x570) + (ulong)param_3 * 0x118;
local_54 = 0;
lVar2 = *(long *)(local_50 + 0xc0);
local_48 = lVar2 + -0x20;
local_60 = param_5 + (ulong)*(uint *)(lVar2 + -0x18);
*param_2 = param_4;
local_40 = param_6;
local_38 = param_5;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
local_64 = _ma_calc_blob_length(*(int1 *)(lVar2 + -6),local_60);
local_70 = *(long *)(local_60 + (int)(uint)*(byte *)(local_48 + 0x1a));
if (local_70 == 0) {
puVar5 = (int4 *)_my_thread_var();
*puVar5 = 0x9e;
local_10 = (int8 *)0x0;
}
else {
sp_mbr_from_wkb(local_70 + 4,local_64 + -4,2,local_98);
for (local_48 = *(long *)(local_50 + 0xc0); *(char *)(local_48 + 0x18) != '\0';
local_48 = local_48 + 0x20) {
uVar3 = (uint)*(ushort *)(local_48 + 0x14);
dVar1 = local_98[*(uint *)(local_48 + 8) >> 3];
if (NAN(dVar1)) {
memset(local_30,0,(ulong)uVar3);
local_30 = (double *)((long)local_30 + (ulong)uVar3);
local_54 = uVar3 + local_54;
}
else {
if ((*(ushort *)(local_48 + 0x12) & 0x40) == 0) {
*local_30 = dVar1;
}
else {
uStack_a9 = (int1)((ulong)dVar1 >> 0x38);
*(int1 *)local_30 = uStack_a9;
uStack_aa = (int1)((ulong)dVar1 >> 0x30);
*(int1 *)((long)local_30 + 1) = uStack_aa;
uStack_ab = (int1)((ulong)dVar1 >> 0x28);
*(int1 *)((long)local_30 + 2) = uStack_ab;
uStack_ac = (int1)((ulong)dVar1 >> 0x20);
*(int1 *)((long)local_30 + 3) = uStack_ac;
uStack_ad = (int1)((ulong)dVar1 >> 0x18);
*(int1 *)((long)local_30 + 4) = uStack_ad;
uStack_ae = (int1)((ulong)dVar1 >> 0x10);
*(int1 *)((long)local_30 + 5) = uStack_ae;
uStack_af = (int1)((ulong)dVar1 >> 8);
*(int1 *)((long)local_30 + 6) = uStack_af;
local_b0 = SUB81(dVar1,0);
*(int1 *)((long)local_30 + 7) = local_b0;
}
local_30 = (double *)((long)local_30 + (ulong)uVar3);
local_54 = uVar3 + local_54;
}
}
_ma_dpointer(*local_18,local_30,local_40);
local_20[1] = local_50;
*(int *)(local_20 + 2) = local_54;
*(int4 *)((long)local_20 + 0x14) = *(int4 *)(*local_18 + 0x740);
*(int4 *)(local_20 + 3) = 0;
if (((*(uint *)(local_18 + 0xc3) & 1) != 0) && (param_7 != 0)) {
iVar4 = transid_store_packed
(local_18,(long)local_30 + (ulong)*(uint *)((long)local_20 + 0x14),param_7);
*(int *)((long)local_20 + 0x14) = iVar4 + *(int *)((long)local_20 + 0x14);
}
local_10 = local_20;
}
return local_10;
}
| |
20,991 | 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>>>::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>>, unsigned long) | monkey531[P]llama/common/json.hpp | explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0)
noexcept(std::is_nothrow_move_constructible<IteratorType>::value
&& std::is_nothrow_default_constructible<string_type>::value)
: anchor(std::move(it))
, array_index(array_index_)
{} | 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>>>::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>>, unsigned long):
pushq %rbx
movq %rdi, %rbx
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rdx, 0x20(%rdi)
movq $0x0, 0x28(%rdi)
addq $0x30, %rdi
leaq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
leaq 0x3b4b2(%rip), %rsi # 0xad5c5
leaq 0x3b4ac(%rip), %rdx # 0xad5c6
callq 0x1ded4
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
popq %rbx
retq
movq %rax, %rdi
callq 0x1d81b
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m:
push rbx
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi], xmm0
mov [rdi+20h], rdx
mov qword ptr [rdi+28h], 0
add rdi, 30h ; '0'
lea rax, [rbx+40h]
mov [rbx+30h], rax
lea rsi, aMinExp0+0Ah; "0"
lea rdx, aMinExp0+0Bh; ""
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 rax, [rbx+60h]
mov [rbx+50h], rax
mov qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
| long long 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>>>::iteration_proxy_value(
long long a1,
__int128 *a2,
long long a3)
{
__int128 v3; // xmm0
long long result; // rax
v3 = *a2;
*(_OWORD *)(a1 + 16) = a2[1];
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 32) = a3;
*(_QWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 48) = a1 + 64;
std::string::_M_construct<char const*>(a1 + 48, "0", (long long)"");
result = a1 + 96;
*(_QWORD *)(a1 + 80) = a1 + 96;
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return result;
}
| iteration_proxy_value:
PUSH RBX
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x20],RDX
MOV qword ptr [RDI + 0x28],0x0
ADD RDI,0x30
LEA RAX,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],RAX
LAB_0017210c:
LEA RSI,[0x1ad5c5]
LEA RDX,[0x1ad5c6]
CALL 0x0011ded4
LEA RAX,[RBX + 0x60]
MOV qword ptr [RBX + 0x50],RAX
MOV qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
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> >
>::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> >, unsigned long) */
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>>>
::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>>>
*this,int4 *param_2,int8 param_3)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
uVar1 = *param_2;
uVar2 = param_2[1];
uVar3 = param_2[2];
uVar4 = param_2[3];
uVar5 = param_2[5];
uVar6 = param_2[6];
uVar7 = param_2[7];
*(int4 *)(this + 0x10) = param_2[4];
*(int4 *)(this + 0x14) = uVar5;
*(int4 *)(this + 0x18) = uVar6;
*(int4 *)(this + 0x1c) = uVar7;
*(int4 *)this = uVar1;
*(int4 *)(this + 4) = uVar2;
*(int4 *)(this + 8) = uVar3;
*(int4 *)(this + 0xc) = uVar4;
*(int8 *)(this + 0x20) = param_3;
*(int8 *)(this + 0x28) = 0;
*(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>>>
**)(this + 0x30) = this + 0x40;
/* try { // try from 0017210c to 0017211e has its CatchHandler @ 00172135 */
std::__cxx11::string::_M_construct<char_const*>(this + 0x30,"0","");
*(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>>>
**)(this + 0x50) = this + 0x60;
*(int8 *)(this + 0x58) = 0;
this[0x60] = (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>>>
)0x0;
return;
}
| |
20,992 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>() const | monkey531[P]llama/common/minja.hpp | inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
} | 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> minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x20(%rsi), %rcx
movq %rax, %rsi
orq %rcx, %rsi
movq 0x30(%r14), %rdx
orq %rdx, %rsi
jne 0xb230c
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5e5cc
jmp 0xb2562
testq %rdx, %rdx
sete %dl
movq %rax, %rsi
orq %rcx, %rsi
sete %sil
cmpb $0x0, 0x40(%r14)
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0xb235b
movb $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x595aa
movq %rbx, %rdi
movl $0x1, %esi
callq 0x595aa
jmp 0xb2562
testq %rax, %rax
je 0xb23cd
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0xb23b5
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0xb22ca
movq %r12, %rdi
movq %r15, %rsi
callq 0x5e16c
movq %r15, %rdi
xorl %esi, %esi
callq 0x595aa
movq %r15, %rdi
callq 0x5ea98
addq $0x50, %r14
cmpq %r13, %r14
jne 0xb2384
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xb2f26
movq %rsp, %rdi
callq 0x5f2e2
jmp 0xb2562
testq %rcx, %rcx
je 0xb25dd
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x7fb02
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
cmpq %r13, %r15
je 0xb2504
leaq 0xa8(%rsp), %rbp
leaq 0x50(%rsp), %r12
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0xb2482
cmpl $0x4, %eax
je 0xb2482
cmpl $0x3, %eax
jne 0xb2478
leaq 0x40(%rsp), %rdi
callq 0xb22ca
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x883f8
movq %rbx, %rdi
movq %r12, %rsi
callq 0xac20a
movq %rax, %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x5bd4c
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
jne 0xb24d0
leaq 0x40(%rsp), %r12
jmp 0xb24e0
addb $-0x5, %al
cmpb $0x3, %al
ja 0xb2577
movq %rbp, %rdi
callq 0xb22ca
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x806ee
movq %rbx, %rdi
movq %r12, %rsi
callq 0xac20a
movq %rax, %rdi
movq %rbp, %rsi
callq 0x5bd4c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movq %rcx, %rax
movq %rbp, %r12
cmpq %rcx, %rdi
je 0xb24dd
movq (%rax), %rsi
incq %rsi
callq 0x1a890
jmp 0xb24e0
movq %rbp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x595aa
movq %r12, %rdi
callq 0x5ea98
addq $0x60, %r15
cmpq %r13, %r15
leaq 0x50(%rsp), %r12
jne 0xb240b
cmpq $0x0, 0x30(%r14)
je 0xb2562
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x60c12
movq %r14, %rdi
movl $0x1, %esi
callq 0x595aa
leaq 0x3f01b(%rip), %rsi # 0xf1553
movq %rbx, %rdi
callq 0xa5768
leaq 0x70(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x5bd4c
movq %r14, %rdi
xorl %esi, %esi
callq 0x595aa
movq %r14, %rdi
callq 0x5ea98
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a430
movq %rax, %r12
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x806ee
leaq 0x3ef81(%rip), %rsi # 0xf1529
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x79a2d
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0x79a24(%rip), %rsi # 0x12bff0
movq 0x7998d(%rip), %rdx # 0x12bf60
movq %r12, %rdi
callq 0x1aea0
jmp 0xb2638
movl $0x10, %edi
callq 0x1a430
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x872c8
leaq 0x3ef5b(%rip), %rsi # 0xf1560
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x79a2d
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0x799c7(%rip), %rsi # 0x12bff0
movq 0x79930(%rip), %rdx # 0x12bf60
movq %rbx, %rdi
callq 0x1aea0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2656
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2671
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a890
testb %bpl, %bpl
jne 0xb269e
jmp 0xb27df
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb269e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xb269e
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a650
jmp 0xb27df
movq %rax, %r14
leaq 0x70(%rsp), %r15
jmp 0xb278d
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb26d6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb26f1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a890
testb %bpl, %bpl
jne 0xb2723
jmp 0xb27a4
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2723
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xb2723
jmp 0xb27b8
movq %rax, %r14
movq %r12, %rdi
callq 0x1a650
jmp 0xb27a4
movq %rax, %r14
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xb275a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xb275a
movq %rax, %r14
leaq 0x40(%rsp), %r15
jmp 0xb278d
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xb2785
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0xb2785
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x595aa
movq %r15, %rdi
callq 0x5ea98
jmp 0xb27a4
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x595aa
movq %rbx, %rdi
callq 0x5ea98
jmp 0xb27df
movq %rax, %r14
jmp 0xb27d7
movq %rax, %r14
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x595aa
movq %rbx, %rdi
callq 0x5ea98
movq %rsp, %rdi
callq 0x5f2e2
movq %r14, %rdi
callq 0x1af20
| _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+20h]
mov rsi, rax
or rsi, rcx
mov rdx, [r14+30h]
or rsi, rdx
jnz short loc_B230C
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp loc_B2562
loc_B230C:
test rdx, rdx
setz dl
mov rsi, rax
or rsi, rcx
setz sil
cmp byte ptr [r14+40h], 0
setz dil
and dil, sil
and dil, dl
cmp dil, 1
jnz short loc_B235B
mov byte ptr [rbx], 0
mov qword ptr [rbx+8], 0
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 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)
jmp loc_B2562
loc_B235B:
test rax, rax
jz short loc_B23CD
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
mov [rsp+0E8h+var_D8], 0
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz short loc_B23B5
lea r15, [rsp+0E8h+var_C8]
mov r12, rsp
loc_B2384:
mov rdi, r15
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
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()
add r14, 50h ; 'P'
cmp r14, r13
jnz short loc_B2384
loc_B23B5:
mov rsi, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_B2562
loc_B23CD:
test rcx, rcx
jz loc_B25DD
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 1
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 rax, [r14+20h]
mov r15, [rax]
mov r13, [rax+8]
cmp r15, r13
jz loc_B2504
lea rbp, [rsp+0E8h+var_40]
lea r12, [rsp+0E8h+var_98]
loc_B240B:
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_B2482
cmp eax, 4
jz short loc_B2482
cmp eax, 3
jnz short loc_B2478
lea rdi, [rsp+0E8h+var_A8]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
lea r12, [rsp+0E8h+var_60]
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
lea r12, [rsp+0E8h+var_A8]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_60]
lea rcx, [rsp+0E8h+var_50]
mov rax, rcx
cmp rdi, rcx
jnz short loc_B24D0
lea r12, [rsp+0E8h+var_A8]
jmp short loc_B24E0
loc_B2478:
add al, 0FBh
cmp al, 3
ja loc_B2577
loc_B2482:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_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>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rdi, rax
mov rsi, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_98]; void *
lea rcx, [rsp+0E8h+var_88]
mov rax, rcx
mov r12, rbp
cmp rdi, rcx
jz short loc_B24DD
loc_B24D0:
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B24E0
loc_B24DD:
mov r12, rbp
loc_B24E0:
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r15, 60h ; '`'
cmp r15, r13
lea r12, [rsp+0E8h+var_98]
jnz loc_B240B
loc_B2504:
cmp qword ptr [r14+30h], 0
jz short loc_B2562
xorps xmm0, xmm0
lea r14, [rsp+0E8h+var_78]
movaps xmmword ptr [r14], xmm0
mov rdi, r14
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
lea rsi, aCallable; "__callable__"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r14, [rsp+0E8h+var_78]
mov rdi, rax
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, 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()
loc_B2562:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B2577:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_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>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, r12
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, r12; void *
call ___cxa_throw
jmp short loc_B2638
loc_B25DD:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
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
loc_B2638:
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B2656
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B2656:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B2671
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B2671:
test bpl, bpl
jnz short loc_B269E
jmp loc_B27DF
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B269E
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B269E
mov r14, rax
loc_B269E:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_B27DF
mov r14, rax
lea r15, [rsp+0E8h+var_78]
jmp loc_B278D
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B26D6
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B26D6:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B26F1
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B26F1:
test bpl, bpl
jnz short loc_B2723
jmp loc_B27A4
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B2723
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B2723
jmp loc_B27B8
mov r14, rax
loc_B2723:
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_B27A4
mov r14, rax
mov rdi, [rsp+0E8h+var_60]; void *
lea rax, [rsp+0E8h+var_50]
cmp rdi, rax
jz short loc_B275A
mov rsi, [rsp+0E8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B275A
mov r14, rax
loc_B275A:
lea r15, [rsp+0E8h+var_A8]
jmp short loc_B278D
mov r14, rax
mov rdi, [rsp+0E8h+var_98]; void *
lea rax, [rsp+0E8h+var_88]
cmp rdi, rax
jz short loc_B2785
mov rsi, [rsp+0E8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B2785
mov r14, rax
loc_B2785:
lea r15, [rsp+0E8h+var_40]
loc_B278D:
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
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()
jmp short loc_B27A4
mov r14, rax
loc_B27A4:
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()
jmp short loc_B27DF
loc_B27B8:
mov r14, rax
jmp short loc_B27D7
mov r14, rax
lea rbx, [rsp+0E8h+var_C8]
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()
loc_B27D7:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_B27DF:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::get<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>>(
long long a1,
long long a2)
{
unsigned long long v4; // rax
long long v5; // rcx
long long v6; // rdx
long long v7; // r14
long long v8; // r13
long long v9; // rax
_BYTE *v10; // r15
_BYTE *v11; // r13
_BYTE *v12; // rsi
int v13; // eax
long long v14; // rax
char *v15; // r12
void *v16; // rdi
_QWORD *v17; // rax
long long v18; // rax
long long v19; // rax
void *v21; // r12
void *exception; // rbx
__int128 v23; // [rsp+0h] [rbp-E8h] BYREF
long long v24; // [rsp+10h] [rbp-D8h]
char v25[16]; // [rsp+20h] [rbp-C8h] BYREF
_BYTE v26[16]; // [rsp+40h] [rbp-A8h] BYREF
void *v27[2]; // [rsp+50h] [rbp-98h] BYREF
_QWORD v28[2]; // [rsp+60h] [rbp-88h] BYREF
char v29[24]; // [rsp+70h] [rbp-78h] BYREF
void *v30[2]; // [rsp+88h] [rbp-60h] BYREF
_QWORD v31[2]; // [rsp+98h] [rbp-50h] BYREF
_BYTE v32[64]; // [rsp+A8h] [rbp-40h] BYREF
v4 = *(_QWORD *)(a2 + 16);
v5 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
if ( !(v6 | v5 | 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>::basic_json(
(unsigned __int8 *)a1,
(unsigned __int8 *)(a2 + 64));
return a1;
}
if ( v6 == 0 && (v5 | v4) == 0 && *(_BYTE *)(a2 + 64) == 0 )
{
*(_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);
return a1;
}
if ( v4 )
{
v23 = 0LL;
v24 = 0LL;
v7 = *(_QWORD *)v4;
v8 = *(_QWORD *)(v4 + 8);
if ( *(_QWORD *)v4 != v8 )
{
do
{
minja::Value::get<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>>(
v25,
v7);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
(long long)v25);
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(v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25);
v7 += 80LL;
}
while ( v7 != v8 );
}
((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)(
a1,
&v23);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long)&v23);
return a1;
}
if ( !v5 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v23, (long long)"get<json> not defined for this value type: ", (long long)v25);
std::runtime_error::runtime_error(exception, &v23);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
0LL,
0LL,
0LL,
1LL);
v9 = *(_QWORD *)(a2 + 32);
v10 = *(_BYTE **)v9;
v11 = *(_BYTE **)(v9 + 8);
if ( *(_BYTE **)v9 != v11 )
{
while ( 1 )
{
v12 = v10 + 16;
v13 = (unsigned __int8)*v10;
if ( !*v10 || v13 == 4 )
goto LABEL_17;
if ( v13 != 3 )
break;
minja::Value::get<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>>(
v26,
v12);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v30,
(long long)v10);
v14 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
a1,
(long long *)v30);
v15 = v26;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v14,
(long long)v26);
v16 = v30[0];
v17 = v31;
if ( v30[0] != v31 )
goto LABEL_18;
v15 = v26;
LABEL_20:
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(v15);
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(v15);
v10 += 96;
if ( v10 == v11 )
goto LABEL_21;
}
if ( (unsigned __int8)(v13 - 5) > 3u )
{
v21 = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v25,
(long long)v10,
-1,
32,
0,
0);
std::operator+<char>((long long)&v23, (long long)"Invalid key type for conversion to JSON: ", (long long)v25);
std::runtime_error::runtime_error(v21, &v23);
__cxa_throw(
v21,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
LABEL_17:
minja::Value::get<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>>(
v32,
v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v27,
(long long)v10,
-1,
32,
0,
0);
v18 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
a1,
(long long *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v18,
(long long)v32);
v16 = v27[0];
v17 = v28;
v15 = v32;
if ( v27[0] == v28 )
{
v15 = v32;
goto LABEL_20;
}
LABEL_18:
operator delete(v16, *v17 + 1LL);
goto LABEL_20;
}
LABEL_21:
if ( *(_QWORD *)(a2 + 48) )
{
*(_OWORD *)v29 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)v29,
1u);
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(v29);
v19 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
(long long)"__callable__");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v19,
(long long)v29);
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(v29);
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(v29);
}
return a1;
}
| get<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 RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x20]
MOV RSI,RAX
OR RSI,RCX
MOV RDX,qword ptr [R14 + 0x30]
OR RSI,RDX
JNZ 0x001b230c
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015e5cc
JMP 0x001b2562
LAB_001b230c:
TEST RDX,RDX
SETZ DL
MOV RSI,RAX
OR RSI,RCX
SETZ SIL
CMP byte ptr [R14 + 0x40],0x0
SETZ DIL
AND DIL,SIL
AND DIL,DL
CMP DIL,0x1
JNZ 0x001b235b
MOV byte ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x001595aa
MOV RDI,RBX
MOV ESI,0x1
CALL 0x001595aa
JMP 0x001b2562
LAB_001b235b:
TEST RAX,RAX
JZ 0x001b23cd
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x001b23b5
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_001b2384:
MOV RDI,R15
MOV RSI,R14
CALL 0x001b22ca
LAB_001b238f:
MOV RDI,R12
MOV RSI,R15
CALL 0x0015e16c
MOV RDI,R15
XOR ESI,ESI
CALL 0x001595aa
MOV RDI,R15
CALL 0x0015ea98
ADD R14,0x50
CMP R14,R13
JNZ 0x001b2384
LAB_001b23b5:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x001b2f26
LAB_001b23c0:
MOV RDI,RSP
CALL 0x0015f2e2
JMP 0x001b2562
LAB_001b23cd:
TEST RCX,RCX
JZ 0x001b25dd
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
CALL 0x0017fb02
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R15,R13
JZ 0x001b2504
LEA RBP,[RSP + 0xa8]
LEA R12,[RSP + 0x50]
LAB_001b240b:
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x001b2482
CMP EAX,0x4
JZ 0x001b2482
CMP EAX,0x3
JNZ 0x001b2478
LAB_001b2421:
LEA RDI,[RSP + 0x40]
CALL 0x001b22ca
LAB_001b242b:
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,R15
CALL 0x001883f8
LAB_001b243e:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001ac20a
MOV RDI,RAX
LEA R12,[RSP + 0x40]
MOV RSI,R12
CALL 0x0015bd4c
MOV RDI,qword ptr [RSP + 0x88]
LEA RCX,[RSP + 0x98]
MOV RAX,RCX
CMP RDI,RCX
JNZ 0x001b24d0
LEA R12,[RSP + 0x40]
JMP 0x001b24e0
LAB_001b2478:
ADD AL,0xfb
CMP AL,0x3
JA 0x001b2577
LAB_001b2482:
MOV RDI,RBP
CALL 0x001b22ca
LAB_001b248a:
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001806ee
LAB_001b24a5:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001ac20a
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0015bd4c
MOV RDI,qword ptr [RSP + 0x50]
LEA RCX,[RSP + 0x60]
MOV RAX,RCX
MOV R12,RBP
CMP RDI,RCX
JZ 0x001b24dd
LAB_001b24d0:
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011a890
JMP 0x001b24e0
LAB_001b24dd:
MOV R12,RBP
LAB_001b24e0:
MOV RDI,R12
XOR ESI,ESI
CALL 0x001595aa
MOV RDI,R12
CALL 0x0015ea98
ADD R15,0x60
CMP R15,R13
LEA R12,[RSP + 0x50]
JNZ 0x001b240b
LAB_001b2504:
CMP qword ptr [R14 + 0x30],0x0
JZ 0x001b2562
XORPS XMM0,XMM0
LEA R14,[RSP + 0x70]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00160c12
MOV RDI,R14
MOV ESI,0x1
CALL 0x001595aa
LAB_001b2531:
LEA RSI,[0x1f1553]
MOV RDI,RBX
CALL 0x001a5768
LAB_001b2540:
LEA R14,[RSP + 0x70]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0015bd4c
MOV RDI,R14
XOR ESI,ESI
CALL 0x001595aa
MOV RDI,R14
CALL 0x0015ea98
LAB_001b2562:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b2577:
MOV EDI,0x10
CALL 0x0011a430
MOV R12,RAX
LAB_001b2584:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001806ee
LAB_001b25a1:
LEA RSI,[0x1f1529]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00179a2d
MOV BPL,0x1
LAB_001b25b8:
MOV RSI,RSP
MOV RDI,R12
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,R12
CALL 0x0011aea0
LAB_001b25dd:
MOV EDI,0x10
CALL 0x0011a430
MOV RBX,RAX
LAB_001b25ea:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001872c8
LAB_001b25fe:
LEA RSI,[0x1f1560]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00179a2d
MOV BPL,0x1
LAB_001b2615:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,RBX
CALL 0x0011aea0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
minja::Value::get<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 */
void minja::Value::
get<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)
{
char cVar1;
long lVar2;
char *pcVar3;
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>
*pbVar4;
long *plVar5;
basic_json *pbVar6;
runtime_error *prVar7;
long in_RSI;
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>
*in_RDI;
long *plVar8;
data *this;
long lVar9;
char *pcVar10;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
data local_c8 [32];
data local_a8 [16];
long *local_98 [2];
long local_88 [2];
int8 local_78;
int8 uStack_70;
long *local_60 [2];
long local_50 [2];
data local_40 [16];
plVar5 = *(long **)(in_RSI + 0x10);
lVar9 = *(long *)(in_RSI + 0x20);
if ((plVar5 == (long *)0x0 && lVar9 == 0) && *(long *)(in_RSI + 0x30) == 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>
::basic_json(in_RDI,(basic_json *)(in_RSI + 0x40));
}
else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar5 == (long *)0x0 && lVar9 == 0)) &&
*(long *)(in_RSI + 0x30) == 0) {
*in_RDI = (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 *)(in_RDI + 8) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(in_RDI,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(in_RDI,0));
}
else if (plVar5 == (long *)0x0) {
if (lVar9 == 0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001b25ea to 001b25fd has its CatchHandler @ 001b269b */
dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0));
/* try { // try from 001b25fe to 001b2611 has its CatchHandler @ 001b267b */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 001b2615 to 001b2637 has its CatchHandler @ 001b2638 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
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>
::basic_json();
pcVar10 = (char *)**(int8 **)(in_RSI + 0x20);
pcVar3 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
if (pcVar10 != pcVar3) {
do {
cVar1 = *pcVar10;
if ((cVar1 == '\0') || (cVar1 == '\x04')) {
LAB_001b2482:
/* try { // try from 001b2482 to 001b2489 has its CatchHandler @ 001b27a1 */
get<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>>
();
/* try { // try from 001b248a to 001b24a4 has its CatchHandler @ 001b2782 */
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>
::dump(local_98,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 001b24a5 to 001b24af has its CatchHandler @ 001b2761 */
pbVar4 = (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>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_40);
plVar5 = local_88;
plVar8 = local_98[0];
this = local_40;
if (local_98[0] != plVar5) {
LAB_001b24d0:
operator_delete(plVar8,*plVar5 + 1);
}
}
else {
if (cVar1 != '\x03') {
if (3 < (byte)(cVar1 - 5U)) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar10 + 0x10);
/* try { // try from 001b2584 to 001b25a0 has its CatchHandler @ 001b2720 */
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>
::dump(local_c8,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 001b25a1 to 001b25b4 has its CatchHandler @ 001b26fb */
std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: "
);
/* try { // try from 001b25b8 to 001b25da has its CatchHandler @ 001b26b8 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
goto LAB_001b2482;
}
/* try { // try from 001b2421 to 001b242a has its CatchHandler @ 001b27a1 */
get<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>>
();
/* try { // try from 001b242b to 001b243d has its CatchHandler @ 001b2757 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_60,pcVar10);
/* try { // try from 001b243e to 001b2448 has its CatchHandler @ 001b272d */
pbVar4 = (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>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_a8);
plVar5 = local_50;
plVar8 = local_60[0];
this = local_a8;
if (local_60[0] != plVar5) goto LAB_001b24d0;
this = local_a8;
}
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(this,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(this);
pcVar10 = pcVar10 + 0x60;
} while (pcVar10 != pcVar3);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_78 = 0;
uStack_70 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_78,1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_78,0));
/* try { // try from 001b2531 to 001b253f has its CatchHandler @ 001b26ab */
pbVar6 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(in_RDI,"__callable__");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((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>
*)pbVar6,(data *)&local_78);
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 *)&local_78,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 *)&local_78);
}
}
else {
local_e8 = 0;
uStack_e0 = 0;
local_d8 = 0;
lVar9 = *plVar5;
lVar2 = plVar5[1];
if (lVar9 != lVar2) {
do {
/* try { // try from 001b2384 to 001b238e has its CatchHandler @ 001b27b8 */
get<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>>
();
/* try { // try from 001b238f to 001b2399 has its CatchHandler @ 001b27bd */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8,(basic_json *)local_c8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_c8,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_c8);
lVar9 = lVar9 + 0x50;
} while (lVar9 != lVar2);
}
/* try { // try from 001b23b5 to 001b23bf has its CatchHandler @ 001b271b */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8);
}
return;
}
| |
20,993 | curl_perform_with_retry(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void*, int, int) | llama.cpp/common/arg.cpp | static bool curl_perform_with_retry(const std::string & url, CURL * curl, int max_attempts, int retry_delay_seconds) {
int remaining_attempts = max_attempts;
while (remaining_attempts > 0) {
LOG_INF("%s: Trying to download from %s (attempt %d of %d)...\n", __func__ , url.c_str(), max_attempts - remaining_attempts + 1, max_attempts);
CURLcode res = curl_easy_perform(curl);
if (res == CURLE_OK) {
return true;
}
int exponential_backoff_delay = std::pow(retry_delay_seconds, max_attempts - remaining_attempts) * 1000;
LOG_WRN("%s: curl_easy_perform() failed: %s, retrying after %d milliseconds...\n", __func__, curl_easy_strerror(res), exponential_backoff_delay);
remaining_attempts--;
std::this_thread::sleep_for(std::chrono::milliseconds(exponential_backoff_delay));
}
LOG_ERR("%s: curl_easy_perform() failed after %d attempts\n", __func__, max_attempts);
return false;
} | O3 | cpp | curl_perform_with_retry(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void*, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movl $0x3, %r14d
leaq 0x233d34(%rip), %r12 # 0x3134a0
leaq 0xa2b65(%rip), %rbx # 0x1822d8
leaq 0x18(%rsp), %rbp
cmpl $0x0, (%r12)
js 0xdf7b5
callq 0x16b537
movq 0x8(%rsp), %rcx
movq (%rcx), %r8
movl $0x4, %r9d
subl %r14d, %r9d
movl $0x3, (%rsp)
movq %rax, %rdi
movl $0x2, %esi
leaq 0xa2af7(%rip), %rdx # 0x1822a2
movq %rbx, %rcx
xorl %eax, %eax
callq 0x16b5d4
movq 0x10(%rsp), %rdi
callq 0x25d60
movl %eax, %r15d
testl %eax, %eax
je 0xdf8b7
movl $0x3, %edi
subl %r14d, %edi
movsd 0x9c586(%rip), %xmm0 # 0x17bd60
callq 0x263e0
mulsd 0x91aa1(%rip), %xmm0 # 0x171288
cvttsd2si %xmm0, %r13d
cmpl $0x0, (%r12)
js 0xdf82f
callq 0x16b537
movq %r12, %rbx
movq %rax, %r12
movl %r15d, %edi
callq 0x25870
movq %r12, %rdi
movq %rbx, %r12
leaq 0xa2ac5(%rip), %rbx # 0x1822d8
movl $0x3, %esi
leaq 0xa2ad1(%rip), %rdx # 0x1822f0
movq %rbx, %rcx
movq %rax, %r8
movl %r13d, %r9d
xorl %eax, %eax
callq 0x16b5d4
testl %r13d, %r13d
jle 0xdf877
movl %r13d, %eax
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
shrq $0x26, %rcx
imulq $-0x3e8, %rcx, %rdx # imm = 0xFC18
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax # imm = 0xF4240
movq %rcx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq %rbp, %rdi
movq %rbp, %rsi
callq 0x264e0
cmpl $-0x1, %eax
jne 0xdf877
callq 0x263d0
cmpl $0x4, (%rax)
je 0xdf85d
leal -0x1(%r14), %eax
cmpl $0x1, %r14d
movl %eax, %r14d
ja 0xdf778
cmpl $0x0, (%r12)
js 0xdf8b7
callq 0x16b537
leaq 0xa2a9c(%rip), %rdx # 0x182337
leaq 0xa2a36(%rip), %rcx # 0x1822d8
movq %rax, %rdi
movl $0x4, %esi
movl $0x3, %r8d
xorl %eax, %eax
callq 0x16b5d4
testl %r15d, %r15d
sete %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZL23curl_perform_with_retryRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPvii:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rsp+58h+var_48], rsi
mov [rsp+58h+var_50], rdi
mov r14d, 3
lea r12, common_log_verbosity_thold
lea rbx, aCurlPerformWit; "curl_perform_with_retry"
lea rbp, [rsp+58h+var_40]
loc_DF778:
cmp dword ptr [r12], 0
js short loc_DF7B5
call _Z15common_log_mainv; common_log_main(void)
mov rcx, [rsp+58h+var_50]
mov r8, [rcx]
mov r9d, 4
sub r9d, r14d
mov [rsp+58h+var_58], 3
mov rdi, rax
mov esi, 2
lea rdx, aSTryingToDownl_0; "%s: Trying to download from %s (attempt"...
mov rcx, rbx
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_DF7B5:
mov rdi, [rsp+58h+var_48]
call _curl_easy_perform
mov r15d, eax
test eax, eax
jz loc_DF8B7
mov edi, 3
sub edi, r14d
movsd xmm0, cs:qword_17BD60
call _ldexp
mulsd xmm0, cs:qword_171288
cvttsd2si r13d, xmm0
cmp dword ptr [r12], 0
js short loc_DF82F
call _Z15common_log_mainv; common_log_main(void)
mov rbx, r12
mov r12, rax
mov edi, r15d
call _curl_easy_strerror
mov rdi, r12
mov r12, rbx
lea rbx, aCurlPerformWit; "curl_perform_with_retry"
mov esi, 3
lea rdx, aSCurlEasyPerfo; "%s: curl_easy_perform() failed: %s, ret"...
mov rcx, rbx
mov r8, rax
mov r9d, r13d
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_DF82F:
test r13d, r13d
jle short loc_DF877
mov eax, r13d
imul rcx, rax, 10624DD3h
shr rcx, 26h
imul rdx, rcx, 0FFFFFFFFFFFFFC18h
add rdx, rax
imul rax, rdx, 0F4240h
mov [rsp+58h+var_40], rcx
mov [rsp+58h+var_38], rax
loc_DF85D:
mov rdi, rbp
mov rsi, rbp
call _nanosleep
cmp eax, 0FFFFFFFFh
jnz short loc_DF877
call ___errno_location
cmp dword ptr [rax], 4
jz short loc_DF85D
loc_DF877:
lea eax, [r14-1]
cmp r14d, 1
mov r14d, eax
ja loc_DF778
cmp dword ptr [r12], 0
js short loc_DF8B7
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aSCurlEasyPerfo_0; "%s: curl_easy_perform() failed after %d"...
lea rcx, aCurlPerformWit; "curl_perform_with_retry"
mov rdi, rax
mov esi, 4
mov r8d, 3
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_DF8B7:
test r15d, r15d
setz al
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool curl_perform_with_retry(_QWORD *a1, long long a2)
{
unsigned int v2; // r14d
int *v3; // r12
int v4; // eax
unsigned int v5; // r15d
int v6; // r13d
int *v7; // rbx
int v8; // r12d
int v9; // eax
int v10; // edi
int v12; // eax
int v13; // r9d
_QWORD v16[8]; // [rsp+18h] [rbp-40h] BYREF
v2 = 3;
v3 = (int *)&common_log_verbosity_thold;
while ( 1 )
{
if ( *v3 >= 0 )
{
v4 = common_log_main();
common_log_add(
v4,
2,
(unsigned int)"%s: Trying to download from %s (attempt %d of %d)...\n",
(unsigned int)"curl_perform_with_retry",
*a1,
4 - v2);
}
v5 = curl_easy_perform(a2);
if ( !v5 )
break;
v6 = (int)(ldexp(1.0, 3 - v2) * 1000.0);
if ( *v3 >= 0 )
{
v7 = v3;
v8 = common_log_main();
v9 = curl_easy_strerror(v5);
v10 = v8;
v3 = v7;
common_log_add(
v10,
3,
(unsigned int)"%s: curl_easy_perform() failed: %s, retrying after %d milliseconds...\n",
(unsigned int)"curl_perform_with_retry",
v9,
v6);
}
if ( v6 > 0 )
{
v16[0] = (unsigned int)v6 / 0x3E8uLL;
v16[1] = 1000000 * ((unsigned int)v6 % 0x3E8uLL);
while ( (unsigned int)nanosleep(v16, v16) == -1 && *(_DWORD *)__errno_location(v16) == 4 )
;
}
if ( v2-- <= 1 )
{
if ( *v3 >= 0 )
{
v12 = common_log_main();
common_log_add(
v12,
4,
(unsigned int)"%s: curl_easy_perform() failed after %d attempts\n",
(unsigned int)"curl_perform_with_retry",
3,
v13);
}
return v5 == 0;
}
}
return v5 == 0;
}
| curl_perform_with_retry:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x8],RDI
MOV R14D,0x3
LEA R12,[0x4134a0]
LEA RBX,[0x2822d8]
LEA RBP,[RSP + 0x18]
LAB_001df778:
CMP dword ptr [R12],0x0
JS 0x001df7b5
CALL 0x0026b537
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RCX]
MOV R9D,0x4
SUB R9D,R14D
MOV dword ptr [RSP],0x3
MOV RDI,RAX
MOV ESI,0x2
LEA RDX,[0x2822a2]
MOV RCX,RBX
XOR EAX,EAX
CALL 0x0026b5d4
LAB_001df7b5:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00125d60
MOV R15D,EAX
TEST EAX,EAX
JZ 0x001df8b7
MOV EDI,0x3
SUB EDI,R14D
MOVSD XMM0,qword ptr [0x0027bd60]
CALL 0x001263e0
MULSD XMM0,qword ptr [0x00271288]
CVTTSD2SI R13D,XMM0
CMP dword ptr [R12],0x0
JS 0x001df82f
CALL 0x0026b537
MOV RBX,R12
MOV R12,RAX
MOV EDI,R15D
CALL 0x00125870
MOV RDI,R12
MOV R12,RBX
LEA RBX,[0x2822d8]
MOV ESI,0x3
LEA RDX,[0x2822f0]
MOV RCX,RBX
MOV R8,RAX
MOV R9D,R13D
XOR EAX,EAX
CALL 0x0026b5d4
LAB_001df82f:
TEST R13D,R13D
JLE 0x001df877
MOV EAX,R13D
IMUL RCX,RAX,0x10624dd3
SHR RCX,0x26
IMUL RDX,RCX,-0x3e8
ADD RDX,RAX
IMUL RAX,RDX,0xf4240
MOV qword ptr [RSP + 0x18],RCX
MOV qword ptr [RSP + 0x20],RAX
LAB_001df85d:
MOV RDI,RBP
MOV RSI,RBP
CALL 0x001264e0
CMP EAX,-0x1
JNZ 0x001df877
CALL 0x001263d0
CMP dword ptr [RAX],0x4
JZ 0x001df85d
LAB_001df877:
LEA EAX,[R14 + -0x1]
CMP R14D,0x1
MOV R14D,EAX
JA 0x001df778
CMP dword ptr [R12],0x0
JS 0x001df8b7
CALL 0x0026b537
LEA RDX,[0x282337]
LEA RCX,[0x2822d8]
MOV RDI,RAX
MOV ESI,0x4
MOV R8D,0x3
XOR EAX,EAX
CALL 0x0026b5d4
LAB_001df8b7:
TEST R15D,R15D
SETZ AL
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* curl_perform_with_retry(std::__cxx11::string const&, void*, int, int) */
bool curl_perform_with_retry(string *param_1,void *param_2,int param_3,int param_4)
{
bool bVar1;
int iVar2;
int iVar3;
int8 uVar4;
int8 uVar5;
int *piVar6;
uint uVar7;
uint uVar8;
double dVar9;
timespec local_40;
uVar8 = 3;
do {
if (-1 < common_log_verbosity_thold) {
uVar4 = common_log_main();
common_log_add(uVar4,2,"%s: Trying to download from %s (attempt %d of %d)...\n",
"curl_perform_with_retry",*(int8 *)param_1,4 - uVar8,3);
}
iVar2 = curl_easy_perform(param_2);
if (iVar2 == 0) goto LAB_001df8b7;
dVar9 = ldexp(DAT_0027bd60,3 - uVar8);
uVar7 = (uint)(dVar9 * DAT_00271288);
if (-1 < common_log_verbosity_thold) {
uVar4 = common_log_main();
uVar5 = curl_easy_strerror(iVar2);
common_log_add(uVar4,3,
"%s: curl_easy_perform() failed: %s, retrying after %d milliseconds...\n",
"curl_perform_with_retry",uVar5,uVar7);
}
if (0 < (int)uVar7) {
local_40.tv_sec = (ulong)uVar7 / 1000;
local_40.tv_nsec = ((ulong)uVar7 % 1000) * 1000000;
do {
iVar3 = nanosleep(&local_40,&local_40);
if (iVar3 != -1) break;
piVar6 = __errno_location();
} while (*piVar6 == 4);
}
bVar1 = 1 < uVar8;
uVar8 = uVar8 - 1;
} while (bVar1);
if (-1 < common_log_verbosity_thold) {
uVar4 = common_log_main();
common_log_add(uVar4,4,"%s: curl_easy_perform() failed after %d attempts\n",
"curl_perform_with_retry",3);
}
LAB_001df8b7:
return iVar2 == 0;
}
| |
20,994 | google::protobuf::FastHexToBuffer(int, char*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | char *FastHexToBuffer(int i, char* buffer) {
GOOGLE_CHECK(i >= 0) << "FastHexToBuffer() wants non-negative integers, not " << i;
static const char *hexdigits = "0123456789abcdef";
char *p = buffer + 21;
*p-- = '\0';
do {
*p-- = hexdigits[i & 15]; // mod by 16
i >>= 4; // divide by 16
} while (i > 0);
return p + 1;
} | O0 | cpp | google::protobuf::FastHexToBuffer(int, char*):
subq $0x88, %rsp
movl %edi, 0x84(%rsp)
movq %rsi, 0x78(%rsp)
movl 0x84(%rsp), %eax
movb $0x0, 0x3f(%rsp)
cmpl $0x0, %eax
jl 0x28eb6
jmp 0x28f34
leaq 0x1c3dd3(%rip), %rdx # 0x1ecc90
leaq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movl $0x3, %esi
movl $0x377, %ecx # imm = 0x377
callq 0x237e0
movq 0x10(%rsp), %rdi
movb $0x1, 0x3f(%rsp)
leaq 0x1c3e95(%rip), %rsi # 0x1ecd7c
callq 0x230a0
movq %rax, 0x18(%rsp)
jmp 0x28ef3
movq 0x18(%rsp), %rdi
leaq 0x1c3e94(%rip), %rsi # 0x1ecd93
callq 0x230a0
movq %rax, 0x8(%rsp)
jmp 0x28f0b
movq 0x8(%rsp), %rdi
movl 0x84(%rsp), %esi
callq 0x235b0
movq %rax, (%rsp)
jmp 0x28f22
movq (%rsp), %rsi
leaq 0x2b(%rsp), %rdi
callq 0x23250
jmp 0x28f32
jmp 0x28f34
testb $0x1, 0x3f(%rsp)
jne 0x28f3d
jmp 0x28f47
leaq 0x40(%rsp), %rdi
callq 0x23820
movq 0x78(%rsp), %rax
addq $0x15, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, 0x20(%rsp)
movb $0x0, (%rax)
movq 0x253500(%rip), %rax # 0x27c470
movl 0x84(%rsp), %ecx
andl $0xf, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %cl
movq 0x20(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x20(%rsp)
movb %cl, (%rax)
movl 0x84(%rsp), %eax
sarl $0x4, %eax
movl %eax, 0x84(%rsp)
cmpl $0x0, 0x84(%rsp)
jg 0x28f69
movq 0x20(%rsp), %rax
addq $0x1, %rax
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
testb $0x1, 0x3f(%rsp)
jne 0x28fd6
jmp 0x28fe0
leaq 0x40(%rsp), %rdi
callq 0x23820
jmp 0x28fe2
movq 0x30(%rsp), %rdi
callq 0x13750
nopl (%rax)
| _ZN6google8protobuf15FastHexToBufferEiPc:
sub rsp, 88h
mov [rsp+88h+var_4], edi
mov [rsp+88h+var_10], rsi
mov eax, [rsp+88h+var_4]
mov [rsp+88h+var_49], 0
cmp eax, 0
jl short loc_28EB6
jmp short loc_28F34
loc_28EB6:
lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+88h+var_48]
mov [rsp+88h+var_78], rdi
mov esi, 3
mov ecx, 377h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+88h+var_78]
mov [rsp+88h+var_49], 1
lea rsi, aCheckFailedI0; "CHECK failed: i >= 0: "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+88h+var_70], rax
jmp short $+2
loc_28EF3:
mov rdi, [rsp+88h+var_70]
lea rsi, aFasthextobuffe; "FastHexToBuffer() wants non-negative in"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+88h+var_80], rax
jmp short $+2
loc_28F0B:
mov rdi, [rsp+88h+var_80]
mov esi, [rsp+88h+var_4]
call _ZN6google8protobuf8internal10LogMessagelsEi; google::protobuf::internal::LogMessage::operator<<(int)
mov [rsp+88h+var_88], rax
jmp short $+2
loc_28F22:
mov rsi, [rsp+88h+var_88]
lea rdi, [rsp+88h+var_5D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_28F32:
jmp short $+2
loc_28F34:
test [rsp+88h+var_49], 1
jnz short loc_28F3D
jmp short loc_28F47
loc_28F3D:
lea rdi, [rsp+88h+var_48]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_28F47:
mov rax, [rsp+88h+var_10]
add rax, 15h
mov [rsp+88h+var_68], rax
mov rax, [rsp+88h+var_68]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rsp+88h+var_68], rcx
mov byte ptr [rax], 0
loc_28F69:
mov rax, cs:_ZZN6google8protobuf15FastHexToBufferEiPcE9hexdigits; google::protobuf::FastHexToBuffer(int,char *)::hexdigits
mov ecx, [rsp+88h+var_4]
and ecx, 0Fh
movsxd rcx, ecx
mov cl, [rax+rcx]
mov rax, [rsp+88h+var_68]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+88h+var_68], rdx
mov [rax], cl
mov eax, [rsp+88h+var_4]
sar eax, 4
mov [rsp+88h+var_4], eax
cmp [rsp+88h+var_4], 0
jg short loc_28F69
mov rax, [rsp+88h+var_68]
add rax, 1
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
test [rsp+arg_37], 1
jnz short loc_28FD6
jmp short loc_28FE0
loc_28FD6:
lea rdi, [rsp+arg_38]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_28FE0:
jmp short $+2
loc_28FE2:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
| _BYTE * google::protobuf::FastHexToBuffer(google::protobuf *this, long long a2, char *a3)
{
_BYTE *v3; // rax
google::protobuf::internal::LogMessage *v5; // [rsp+0h] [rbp-88h]
long long v6; // [rsp+8h] [rbp-80h]
long long v7; // [rsp+18h] [rbp-70h]
_BYTE *v8; // [rsp+20h] [rbp-68h]
char v9[20]; // [rsp+2Bh] [rbp-5Dh] BYREF
char v10; // [rsp+3Fh] [rbp-49h]
_BYTE v11[56]; // [rsp+40h] [rbp-48h] BYREF
long long v12; // [rsp+78h] [rbp-10h]
int v13; // [rsp+84h] [rbp-4h]
v13 = (int)this;
v12 = a2;
v10 = 0;
if ( (int)this < 0 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v11,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc",
887);
v10 = 1;
v7 = google::protobuf::internal::LogMessage::operator<<((long long)v11, (long long)"CHECK failed: i >= 0: ");
v6 = google::protobuf::internal::LogMessage::operator<<(
v7,
(long long)"FastHexToBuffer() wants non-negative integers, not ");
v5 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v6, v13);
google::protobuf::internal::LogFinisher::operator=((long long)v9, v5);
}
if ( (v10 & 1) != 0 )
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v11);
v8 = (_BYTE *)(v12 + 20);
*(_BYTE *)(v12 + 21) = 0;
do
{
v3 = v8--;
*v3 = google::protobuf::FastHexToBuffer(int,char *)::hexdigits[0][v13 & 0xF];
v13 >>= 4;
}
while ( v13 > 0 );
return v8 + 1;
}
| FastHexToBuffer:
SUB RSP,0x88
MOV dword ptr [RSP + 0x84],EDI
MOV qword ptr [RSP + 0x78],RSI
MOV EAX,dword ptr [RSP + 0x84]
MOV byte ptr [RSP + 0x3f],0x0
CMP EAX,0x0
JL 0x00128eb6
JMP 0x00128f34
LAB_00128eb6:
LEA RDX,[0x2ecc90]
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP + 0x10],RDI
MOV ESI,0x3
MOV ECX,0x377
CALL 0x001237e0
MOV RDI,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x3f],0x1
LAB_00128ee0:
LEA RSI,[0x2ecd7c]
CALL 0x001230a0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00128ef3
LAB_00128ef3:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x2ecd93]
CALL 0x001230a0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00128f0b
LAB_00128f0b:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RSP + 0x84]
CALL 0x001235b0
MOV qword ptr [RSP],RAX
JMP 0x00128f22
LAB_00128f22:
MOV RSI,qword ptr [RSP]
LEA RDI,[RSP + 0x2b]
CALL 0x00123250
LAB_00128f30:
JMP 0x00128f32
LAB_00128f32:
JMP 0x00128f34
LAB_00128f34:
TEST byte ptr [RSP + 0x3f],0x1
JNZ 0x00128f3d
JMP 0x00128f47
LAB_00128f3d:
LEA RDI,[RSP + 0x40]
CALL 0x00123820
LAB_00128f47:
MOV RAX,qword ptr [RSP + 0x78]
ADD RAX,0x15
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RSP + 0x20],RCX
MOV byte ptr [RAX],0x0
LAB_00128f69:
MOV RAX,qword ptr [0x0037c470]
MOV ECX,dword ptr [RSP + 0x84]
AND ECX,0xf
MOVSXD RCX,ECX
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RSP + 0x20]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RSP + 0x20],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RSP + 0x84]
SAR EAX,0x4
MOV dword ptr [RSP + 0x84],EAX
CMP dword ptr [RSP + 0x84],0x0
JG 0x00128f69
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,0x1
ADD RSP,0x88
RET
|
/* google::protobuf::FastHexToBuffer(int, char*) */
char * google::protobuf::FastHexToBuffer(int param_1,char *param_2)
{
char *pcVar1;
LogMessage *pLVar2;
char *local_68;
LogFinisher local_5d [20];
byte local_49;
LogMessage local_48 [56];
char *local_10;
uint local_4;
local_49 = 0;
local_10 = param_2;
local_4 = param_1;
if (param_1 < 0) {
internal::LogMessage::LogMessage
(local_48,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc"
,0x377);
local_49 = 1;
/* try { // try from 00128ee0 to 00128f2f has its CatchHandler @ 00128fbf */
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(local_48,"CHECK failed: i >= 0: ");
pLVar2 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar2,"FastHexToBuffer() wants non-negative integers, not ");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,local_4);
internal::LogFinisher::operator=(local_5d,pLVar2);
}
if ((local_49 & 1) != 0) {
internal::LogMessage::~LogMessage(local_48);
}
local_10[0x15] = '\0';
pcVar1 = local_10 + 0x14;
do {
local_68 = pcVar1;
*local_68 = FastHexToBuffer(int,char*)::hexdigits[(int)(local_4 & 0xf)];
local_4 = (int)local_4 >> 4;
pcVar1 = local_68 + -1;
} while (0 < (int)local_4);
return local_68;
}
| |
20,995 | js_import_meta | bluesky950520[P]quickjs/quickjs.c | static JSValue js_import_meta(JSContext *ctx)
{
JSAtom filename;
JSModuleDef *m;
filename = JS_GetScriptOrModuleName(ctx, 0);
if (filename == JS_ATOM_NULL)
goto fail;
/* XXX: inefficient, need to add a module or script pointer in
JSFunctionBytecode */
m = js_find_loaded_module(ctx, filename);
JS_FreeAtom(ctx, filename);
if (!m) {
fail:
JS_ThrowTypeError(ctx, "import.meta not supported in this context");
return JS_EXCEPTION;
}
return JS_GetImportMeta(ctx, m);
} | O0 | c | js_import_meta:
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x48ea0
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0x63872
jmp 0x6389d
movq 0x20(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x6c740
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x27d80
cmpq $0x0, 0x10(%rsp)
jne 0x638cc
jmp 0x6389d
movq 0x20(%rsp), %rdi
leaq 0xa93e4(%rip), %rsi # 0x10cc8d
movb $0x0, %al
callq 0x2c040
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movl $0x0, 0x28(%rsp)
movq $0x6, 0x30(%rsp)
jmp 0x638e5
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x49000
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| js_import_meta:
sub rsp, 38h
mov [rsp+38h+var_18], rdi
mov rdi, [rsp+38h+var_18]
xor esi, esi
call JS_GetScriptOrModuleName
mov [rsp+38h+var_1C], eax
cmp [rsp+38h+var_1C], 0
jnz short loc_63872
jmp short loc_6389D
loc_63872:
mov rdi, [rsp+38h+var_18]
mov esi, [rsp+38h+var_1C]
call js_find_loaded_module
mov [rsp+38h+var_28], rax
mov rdi, [rsp+38h+var_18]
mov esi, [rsp+38h+var_1C]
call JS_FreeAtom
cmp [rsp+38h+var_28], 0
jnz short loc_638CC
jmp short $+2
loc_6389D:
mov rdi, [rsp+38h+var_18]
lea rsi, aImportMetaNotS; "import.meta not supported in this conte"...
mov al, 0
call JS_ThrowTypeError
mov [rsp+38h+var_38], rax
mov [rsp+38h+var_30], rdx
mov dword ptr [rsp+38h+var_10], 0
mov [rsp+38h+var_8], 6
jmp short loc_638E5
loc_638CC:
mov rdi, [rsp+38h+var_18]
mov rsi, [rsp+38h+var_28]
call JS_GetImportMeta
mov [rsp+38h+var_10], rax
mov [rsp+38h+var_8], rdx
loc_638E5:
mov rax, [rsp+38h+var_10]
mov rdx, [rsp+38h+var_8]
add rsp, 38h
retn
| _DWORD * js_import_meta(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9)
{
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
__m128 v13; // xmm4
__m128 v14; // xmm5
char v16; // [rsp+0h] [rbp-38h]
long long loaded_module; // [rsp+10h] [rbp-28h]
unsigned int ScriptOrModuleName; // [rsp+1Ch] [rbp-1Ch]
long long v19; // [rsp+28h] [rbp-10h]
ScriptOrModuleName = JS_GetScriptOrModuleName(a1, 0);
if ( ScriptOrModuleName )
{
loaded_module = js_find_loaded_module(a1, ScriptOrModuleName);
JS_FreeAtom(a1, ScriptOrModuleName);
if ( loaded_module )
return JS_GetImportMeta(a1, loaded_module);
}
JS_ThrowTypeError(
a1,
(long long)"import.meta not supported in this context",
v9,
v10,
v11,
v12,
a2,
a3,
a4,
a5,
v13,
v14,
a8,
a9,
v16);
LODWORD(v19) = 0;
return (_DWORD *)v19;
}
| js_import_meta:
SUB RSP,0x38
MOV qword ptr [RSP + 0x20],RDI
MOV RDI,qword ptr [RSP + 0x20]
XOR ESI,ESI
CALL 0x00148ea0
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x00163872
JMP 0x0016389d
LAB_00163872:
MOV RDI,qword ptr [RSP + 0x20]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x0016c740
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x20]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x00127d80
CMP qword ptr [RSP + 0x10],0x0
JNZ 0x001638cc
JMP 0x0016389d
LAB_0016389d:
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[0x20cc8d]
MOV AL,0x0
CALL 0x0012c040
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV dword ptr [RSP + 0x28],0x0
MOV qword ptr [RSP + 0x30],0x6
JMP 0x001638e5
LAB_001638cc:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x00149000
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
LAB_001638e5:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
int1 [16] js_import_meta(int8 param_1)
{
int iVar1;
long lVar2;
int1 auVar3 [16];
int4 local_10;
int4 uStack_c;
int8 local_8;
iVar1 = JS_GetScriptOrModuleName(param_1,0);
if (iVar1 != 0) {
lVar2 = js_find_loaded_module(param_1,iVar1);
JS_FreeAtom(param_1,iVar1);
if (lVar2 != 0) {
auVar3 = JS_GetImportMeta(param_1,lVar2);
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
goto LAB_001638e5;
}
}
JS_ThrowTypeError(param_1,"import.meta not supported in this context");
local_10 = 0;
local_8 = 6;
LAB_001638e5:
auVar3._4_4_ = uStack_c;
auVar3._0_4_ = local_10;
auVar3._8_8_ = local_8;
return auVar3;
}
| |
20,996 | common_log::pause() | monkey531[P]llama/common/log.cpp | void pause() {
{
std::lock_guard<std::mutex> lock(mtx);
if (!running) {
return;
}
running = false;
// push an entry to signal the worker thread to stop
{
auto & entry = entries[tail];
entry.is_end = true;
tail = (tail + 1) % entries.size();
}
cv.notify_one();
}
thrd.join();
} | O3 | cpp | common_log::pause():
pushq %rbx
movq %rdi, %rbx
callq 0x19bc0
testl %eax, %eax
jne 0x876e3
cmpb $0x0, 0x6a(%rbx)
je 0x876da
movb $0x0, 0x6a(%rbx)
movq 0x78(%rbx), %rcx
movq 0x98(%rbx), %rax
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
movb $0x1, 0x28(%rcx,%rdx)
incq %rax
movq 0x80(%rbx), %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, 0x98(%rbx)
leaq 0x30(%rbx), %rdi
callq 0x193c0
movq %rbx, %rdi
callq 0x195a0
addq $0x28, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x19d90
movq %rbx, %rdi
popq %rbx
jmp 0x195a0
movl %eax, %edi
callq 0x19500
| _ZN10common_log5pauseEv:
push rbx
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz short loc_876E3
cmp byte ptr [rbx+6Ah], 0
jz short loc_876DA
mov byte ptr [rbx+6Ah], 0
mov rcx, [rbx+78h]
mov rax, [rbx+98h]
lea rdx, [rax+rax*2]
shl rdx, 4
mov byte ptr [rcx+rdx+28h], 1
inc rax
mov rdx, [rbx+80h]
sub rdx, rcx
sar rdx, 4
mov rcx, 0AAAAAAAAAAAAAAABh
imul rcx, rdx
xor edx, edx
div rcx
mov [rbx+98h], rdx
lea rdi, [rbx+30h]; this
call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void)
mov rdi, rbx
call _pthread_mutex_unlock
add rbx, 28h ; '('
mov rdi, rbx; this
pop rbx
jmp __ZNSt6thread4joinEv; std::thread::join(void)
loc_876DA:
mov rdi, rbx
pop rbx
jmp _pthread_mutex_unlock
loc_876E3:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
| long long common_log::pause(common_log *this)
{
int v1; // eax
long long v2; // rcx
long long v3; // rax
v1 = pthread_mutex_lock();
if ( v1 )
std::__throw_system_error(v1);
if ( !*((_BYTE *)this + 106) )
return pthread_mutex_unlock(this);
*((_BYTE *)this + 106) = 0;
v2 = *((_QWORD *)this + 15);
v3 = *((_QWORD *)this + 19);
*(_BYTE *)(v2 + 48 * v3 + 40) = 1;
*((_QWORD *)this + 19) = (v3 + 1) % (0xAAAAAAAAAAAAAAABLL * ((*((_QWORD *)this + 16) - v2) >> 4));
std::condition_variable::notify_one((common_log *)((char *)this + 48));
pthread_mutex_unlock(this);
return std::thread::join((common_log *)((char *)this + 40));
}
| pause:
PUSH RBX
MOV RBX,RDI
CALL 0x00119bc0
TEST EAX,EAX
JNZ 0x001876e3
CMP byte ptr [RBX + 0x6a],0x0
JZ 0x001876da
MOV byte ptr [RBX + 0x6a],0x0
MOV RCX,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RBX + 0x98]
LEA RDX,[RAX + RAX*0x2]
SHL RDX,0x4
MOV byte ptr [RCX + RDX*0x1 + 0x28],0x1
INC RAX
MOV RDX,qword ptr [RBX + 0x80]
SUB RDX,RCX
SAR RDX,0x4
MOV RCX,-0x5555555555555555
IMUL RCX,RDX
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBX + 0x98],RDX
LEA RDI,[RBX + 0x30]
CALL 0x001193c0
MOV RDI,RBX
CALL 0x001195a0
ADD RBX,0x28
MOV RDI,RBX
POP RBX
JMP 0x00119d90
LAB_001876da:
MOV RDI,RBX
POP RBX
JMP 0x001195a0
LAB_001876e3:
MOV EDI,EAX
CALL 0x00119500
|
/* common_log::pause() */
void __thiscall common_log::pause(common_log *this)
{
long lVar1;
long lVar2;
int iVar3;
iVar3 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
if (this[0x6a] != (common_log)0x0) {
this[0x6a] = (common_log)0x0;
lVar1 = *(long *)(this + 0x78);
lVar2 = *(long *)(this + 0x98);
*(int1 *)(lVar1 + 0x28 + lVar2 * 0x30) = 1;
*(ulong *)(this + 0x98) =
(lVar2 + 1U) % (ulong)((*(long *)(this + 0x80) - lVar1 >> 4) * -0x5555555555555555);
std::condition_variable::notify_one();
pthread_mutex_unlock((pthread_mutex_t *)this);
std::thread::join();
return;
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
| |
20,997 | nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number() | msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp | token_type scan_number() // lgtm [cpp/use-of-goto]
{
// reset token_buffer to store the number's bytes
reset();
// the type of the parsed number; initially set to unsigned; will be
// changed if minus sign, decimal point or exponent is read
token_type number_type = token_type::value_unsigned;
// state (init): we just found out we need to scan a number
switch (current)
{
case '-':
{
add(current);
goto scan_number_minus;
}
case '0':
{
add(current);
goto scan_number_zero;
}
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any1;
}
// all other characters are rejected outside scan_number()
default: // LCOV_EXCL_LINE
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
}
scan_number_minus:
// state: we just parsed a leading minus sign
number_type = token_type::value_integer;
switch (get())
{
case '0':
{
add(current);
goto scan_number_zero;
}
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any1;
}
default:
{
error_message = "invalid number; expected digit after '-'";
return token_type::parse_error;
}
}
scan_number_zero:
// state: we just parse a zero (maybe with a leading minus sign)
switch (get())
{
case '.':
{
add(decimal_point_char);
goto scan_number_decimal1;
}
case 'e':
case 'E':
{
add(current);
goto scan_number_exponent;
}
default:
goto scan_number_done;
}
scan_number_any1:
// state: we just parsed a number 0-9 (maybe with a leading minus sign)
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any1;
}
case '.':
{
add(decimal_point_char);
goto scan_number_decimal1;
}
case 'e':
case 'E':
{
add(current);
goto scan_number_exponent;
}
default:
goto scan_number_done;
}
scan_number_decimal1:
// state: we just parsed a decimal point
number_type = token_type::value_float;
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_decimal2;
}
default:
{
error_message = "invalid number; expected digit after '.'";
return token_type::parse_error;
}
}
scan_number_decimal2:
// we just parsed at least one number after a decimal point
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_decimal2;
}
case 'e':
case 'E':
{
add(current);
goto scan_number_exponent;
}
default:
goto scan_number_done;
}
scan_number_exponent:
// we just parsed an exponent
number_type = token_type::value_float;
switch (get())
{
case '+':
case '-':
{
add(current);
goto scan_number_sign;
}
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any2;
}
default:
{
error_message =
"invalid number; expected '+', '-', or digit after exponent";
return token_type::parse_error;
}
}
scan_number_sign:
// we just parsed an exponent sign
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any2;
}
default:
{
error_message = "invalid number; expected digit after exponent sign";
return token_type::parse_error;
}
}
scan_number_any2:
// we just parsed a number after the exponent or exponent sign
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any2;
}
default:
goto scan_number_done;
}
scan_number_done:
// unget the character after the number (we only read it to know that
// we are done scanning a number)
unget();
char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
errno = 0;
// try to parse integers first and fall back to floats
if (number_type == token_type::value_unsigned)
{
const auto x = std::strtoull(token_buffer.data(), &endptr, 10);
// we checked the number format before
JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
if (errno == 0)
{
value_unsigned = static_cast<number_unsigned_t>(x);
if (value_unsigned == x)
{
return token_type::value_unsigned;
}
}
}
else if (number_type == token_type::value_integer)
{
const auto x = std::strtoll(token_buffer.data(), &endptr, 10);
// we checked the number format before
JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
if (errno == 0)
{
value_integer = static_cast<number_integer_t>(x);
if (value_integer == x)
{
return token_type::value_integer;
}
}
}
// this code is reached if we parse a floating-point number or if an
// integer conversion above failed
strtof(value_float, token_buffer.data(), &endptr);
// we checked the number format before
JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
return token_type::value_float;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number():
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x65b0e
movl 0x14(%rbx), %eax
movl $0x5, %ebp
leal -0x31(%rax), %ecx
cmpl $0x9, %ecx
jae 0x658e4
leaq 0x50(%rbx), %r14
movsbl %al, %esi
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jae 0x65893
movsbl 0x14(%rbx), %esi
jmp 0x65875
cmpl $0x2e, %eax
je 0x659c0
cmpl $0x45, %eax
je 0x658aa
cmpl $0x65, %eax
jne 0x659f5
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0x65929
cmpl $0x2d, %eax
je 0x65a90
cmpl $0x2b, %eax
je 0x65a90
leaq 0x424a7(%rip), %rax # 0xa7d86
jmp 0x659ea
cmpl $0x30, %eax
je 0x6598a
cmpl $0x2d, %eax
jne 0x65900
leaq 0x50(%rbx), %rdi
movl $0x2d, %esi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
leal -0x31(%rax), %ecx
cmpl $0x9, %ecx
jb 0x65a6f
cmpl $0x30, %eax
je 0x65af7
leaq 0x42410(%rip), %rax # 0xa7d34
jmp 0x659ea
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x65969
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x6594d
movq %rbx, %rdi
callq 0xfd28
movq $0x0, 0x8(%rsp)
callq 0xf060
movl $0x0, (%rax)
jmp 0x65a4b
leaq 0x50(%rbx), %rdi
movl $0x30, %esi
callq 0xf3c0
movl $0x5, %ebp
movq %rbx, %rdi
callq 0xfcac
cmpl $0x65, %eax
je 0x65a7c
cmpl $0x45, %eax
je 0x65a7c
cmpl $0x2e, %eax
jne 0x659f5
leaq 0x50(%rbx), %r14
movsbl 0x90(%rbx), %esi
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
addl $-0x30, %eax
cmpl $0x9, %eax
jbe 0x65ac0
leaq 0x42373(%rip), %rax # 0xa7d5d
movq %rax, 0x70(%rbx)
movl $0xe, %eax
jmp 0x65a66
movq %rbx, %rdi
callq 0xfd28
movq $0x0, 0x8(%rsp)
callq 0xf060
movq %rax, %r14
movl $0x0, (%rax)
movq 0x50(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
cmpl $0x5, %ebp
jne 0x65a40
callq 0xf5c0
cmpl $0x0, (%r14)
jne 0x65a4b
movq %rax, 0x80(%rbx)
movl $0x5, %eax
jmp 0x65a66
callq 0xf0c0
cmpl $0x0, (%r14)
je 0x65a85
movq 0x50(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf380
movsd %xmm0, 0x88(%rbx)
movl $0x7, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl 0x14(%rbx), %eax
movl $0x6, %ebp
jmp 0x6586e
leaq 0x50(%rbx), %r14
jmp 0x658aa
movq %rax, 0x78(%rbx)
movl $0x6, %eax
jmp 0x65a66
movsbl 0x14(%rbx), %esi
leaq 0x50(%rbx), %r14
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x6592d
leaq 0x42306(%rip), %rax # 0xa7dc1
jmp 0x659ea
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0xf3c0
movq %rbx, %rdi
callq 0xfcac
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0x65ac4
cmpl $0x65, %eax
je 0x658aa
cmpl $0x45, %eax
je 0x658aa
jmp 0x65969
movsbl 0x14(%rbx), %esi
leaq 0x50(%rbx), %rdi
callq 0xf3c0
movl $0x6, %ebp
jmp 0x6599d
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE11scan_numberEv:
push rbp
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::reset(void)
mov eax, [rbx+14h]
mov ebp, 5
lea ecx, [rax-31h]
cmp ecx, 9
jnb short loc_658E4
loc_6586E:
lea r14, [rbx+50h]
movsx esi, al
loc_65875:
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
lea ecx, [rax-30h]
cmp ecx, 0Ah
jnb short loc_65893
movsx esi, byte ptr [rbx+14h]
jmp short loc_65875
loc_65893:
cmp eax, 2Eh ; '.'
jz loc_659C0
cmp eax, 45h ; 'E'
jz short loc_658AA
cmp eax, 65h ; 'e'
jnz loc_659F5
loc_658AA:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
lea ecx, [rax-30h]
cmp ecx, 0Ah
jb short loc_65929
cmp eax, 2Dh ; '-'
jz loc_65A90
cmp eax, 2Bh ; '+'
jz loc_65A90
lea rax, aInvalidNumberE; "invalid number; expected '+', '-', or d"...
jmp loc_659EA
loc_658E4:
cmp eax, 30h ; '0'
jz loc_6598A
cmp eax, 2Dh ; '-'
jnz short loc_65900
lea rdi, [rbx+50h]
mov esi, 2Dh ; '-'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_65900:
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
lea ecx, [rax-31h]
cmp ecx, 9
jb loc_65A6F
cmp eax, 30h ; '0'
jz loc_65AF7
lea rax, aInvalidNumberE_0; "invalid number; expected digit after '-"...
jmp loc_659EA
loc_65929:
lea r14, [rbx+50h]
loc_6592D:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 9
ja short loc_65969
lea r14, [rbx+50h]
loc_6594D:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 0Ah
jb short loc_6594D
loc_65969:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(void)
mov [rsp+28h+var_20], 0
call ___errno_location
mov dword ptr [rax], 0
jmp loc_65A4B
loc_6598A:
lea rdi, [rbx+50h]
mov esi, 30h ; '0'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov ebp, 5
loc_6599D:
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
cmp eax, 65h ; 'e'
jz loc_65A7C
cmp eax, 45h ; 'E'
jz loc_65A7C
cmp eax, 2Eh ; '.'
jnz short loc_659F5
lea r14, [rbx+50h]
loc_659C0:
movsx esi, byte ptr [rbx+90h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 9
jbe loc_65AC0
lea rax, aInvalidNumberE_1; "invalid number; expected digit after '."...
loc_659EA:
mov [rbx+70h], rax
mov eax, 0Eh
jmp short loc_65A66
loc_659F5:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(void)
mov [rsp+28h+var_20], 0
call ___errno_location
mov r14, rax
mov dword ptr [rax], 0
mov rdi, [rbx+50h]
lea rsi, [rsp+28h+var_20]
mov edx, 0Ah
cmp ebp, 5
jnz short loc_65A40
call _strtoull
cmp dword ptr [r14], 0
jnz short loc_65A4B
mov [rbx+80h], rax
mov eax, 5
jmp short loc_65A66
loc_65A40:
call _strtoll
cmp dword ptr [r14], 0
jz short loc_65A85
loc_65A4B:
mov rdi, [rbx+50h]
lea rsi, [rsp+28h+var_20]
call _strtod
movsd qword ptr [rbx+88h], xmm0
mov eax, 7
loc_65A66:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
loc_65A6F:
mov eax, [rbx+14h]
mov ebp, 6
jmp loc_6586E
loc_65A7C:
lea r14, [rbx+50h]
jmp loc_658AA
loc_65A85:
mov [rbx+78h], rax
mov eax, 6
jmp short loc_65A66
loc_65A90:
movsx esi, byte ptr [rbx+14h]
lea r14, [rbx+50h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 0Ah
jb loc_6592D
lea rax, aInvalidNumberE_2; "invalid number; expected digit after ex"...
jmp loc_659EA
loc_65AC0:
lea r14, [rbx+50h]
loc_65AC4:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
lea ecx, [rax-30h]
cmp ecx, 0Ah
jb short loc_65AC4
cmp eax, 65h ; 'e'
jz loc_658AA
cmp eax, 45h ; 'E'
jz loc_658AA
jmp loc_65969
loc_65AF7:
movsx esi, byte ptr [rbx+14h]
lea rdi, [rbx+50h]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov ebp, 6
jmp loc_6599D
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::scan_number(
__m128i *this)
{
long long v2; // rdx
long long v3; // r8
long long v4; // r9
__int32 v5; // eax
int v6; // ebp
long long v7; // rcx
__m128i *v8; // r14
long long i; // rsi
int v10; // eax
int v11; // eax
long long v12; // rdx
long long v13; // r8
long long v14; // r9
long long v15; // rcx
const char *v16; // rax
int v17; // eax
__m128i *v18; // r14
long long v19; // rdx
long long v20; // rcx
long long v21; // r8
long long v22; // r9
int v23; // eax
_DWORD *v25; // r14
long long v26; // rdi
long long v27; // rax
long long v28; // rax
int v29; // eax
_QWORD v30[4]; // [rsp+8h] [rbp-20h] BYREF
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::reset();
v5 = this[1].m128i_i32[1];
v6 = 5;
v7 = (unsigned int)(v5 - 49);
if ( (unsigned int)v7 >= 9 )
{
if ( v5 == 48 )
{
std::string::push_back(&this[5], 48LL, v2, v7, v3, v4);
v6 = 5;
}
else
{
if ( v5 == 45 )
std::string::push_back(&this[5], 45LL, v2, v7, v3, v4);
v17 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this);
v7 = (unsigned int)(v17 - 49);
if ( (unsigned int)v7 < 9 )
{
v5 = this[1].m128i_i32[1];
v6 = 6;
goto LABEL_2;
}
if ( v17 != 48 )
{
v16 = "invalid number; expected digit after '-'";
goto LABEL_29;
}
std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4], v2, v7, v3, v4);
v6 = 6;
}
v23 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this);
if ( v23 == 101 || v23 == 69 )
{
v8 = this + 5;
goto LABEL_8;
}
if ( v23 != 46 )
goto LABEL_30;
v8 = this + 5;
LABEL_27:
std::string::push_back(v8, (unsigned int)this[9].m128i_i8[0], v2, v7, v3, v4);
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this)
- 48 > 9 )
{
v16 = "invalid number; expected digit after '.'";
goto LABEL_29;
}
v8 = this + 5;
do
{
std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4], v2, v7, v3, v4);
v29 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this);
v7 = (unsigned int)(v29 - 48);
}
while ( (unsigned int)v7 < 0xA );
if ( v29 != 101 && v29 != 69 )
{
LABEL_21:
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::unget((long long)this);
v30[0] = 0LL;
*(_DWORD *)__errno_location() = 0;
goto LABEL_34;
}
LABEL_8:
std::string::push_back(v8, (unsigned int)this[1].m128i_i8[4], v2, v7, v3, v4);
v11 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this);
v15 = (unsigned int)(v11 - 48);
if ( (unsigned int)v15 < 0xA )
{
v18 = this + 5;
}
else
{
if ( v11 != 45 && v11 != 43 )
{
v16 = "invalid number; expected '+', '-', or digit after exponent";
LABEL_29:
this[7].m128i_i64[0] = (long long)v16;
return 14LL;
}
v18 = this + 5;
std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4], v12, v15, v13, v14);
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this)
- 48 >= 0xA )
{
v16 = "invalid number; expected digit after exponent sign";
goto LABEL_29;
}
}
std::string::push_back(v18, (unsigned int)this[1].m128i_i8[4], v12, v15, v13, v14);
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this)
- 48 <= 9 )
{
do
std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4], v19, v20, v21, v22);
while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this)
- 48 < 0xA );
}
goto LABEL_21;
}
LABEL_2:
v8 = this + 5;
for ( i = (unsigned int)(char)v5; ; i = (unsigned int)this[1].m128i_i8[4] )
{
std::string::push_back(&this[5], i, v2, v7, v3, v4);
v10 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::get(this);
v7 = (unsigned int)(v10 - 48);
if ( (unsigned int)v7 >= 0xA )
break;
}
if ( v10 == 46 )
goto LABEL_27;
if ( v10 == 69 || v10 == 101 )
goto LABEL_8;
LABEL_30:
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::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::input_stream_adapter>::unget((long long)this);
v30[0] = 0LL;
v25 = (_DWORD *)__errno_location();
*v25 = 0;
v26 = this[5].m128i_i64[0];
if ( v6 == 5 )
{
v27 = strtoull(v26, v30, 10LL);
if ( !*v25 )
{
this[8].m128i_i64[0] = v27;
return 5LL;
}
goto LABEL_34;
}
v28 = strtoll(v26, v30, 10LL);
if ( *v25 )
{
LABEL_34:
*(double *)&this[8].m128i_i64[1] = strtod(this[5].m128i_i64[0], v30);
return 7LL;
}
this[7].m128i_i64[1] = v28;
return 6LL;
}
| scan_number:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
CALL 0x00165b0e
MOV EAX,dword ptr [RBX + 0x14]
MOV EBP,0x5
LEA ECX,[RAX + -0x31]
CMP ECX,0x9
JNC 0x001658e4
LAB_0016586e:
LEA R14,[RBX + 0x50]
MOVSX ESI,AL
LAB_00165875:
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JNC 0x00165893
MOVSX ESI,byte ptr [RBX + 0x14]
JMP 0x00165875
LAB_00165893:
CMP EAX,0x2e
JZ 0x001659c0
CMP EAX,0x45
JZ 0x001658aa
CMP EAX,0x65
JNZ 0x001659f5
LAB_001658aa:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JC 0x00165929
CMP EAX,0x2d
JZ 0x00165a90
CMP EAX,0x2b
JZ 0x00165a90
LEA RAX,[0x1a7d86]
JMP 0x001659ea
LAB_001658e4:
CMP EAX,0x30
JZ 0x0016598a
CMP EAX,0x2d
JNZ 0x00165900
LEA RDI,[RBX + 0x50]
MOV ESI,0x2d
CALL 0x0010f3c0
LAB_00165900:
MOV RDI,RBX
CALL 0x0010fcac
LEA ECX,[RAX + -0x31]
CMP ECX,0x9
JC 0x00165a6f
CMP EAX,0x30
JZ 0x00165af7
LEA RAX,[0x1a7d34]
JMP 0x001659ea
LAB_00165929:
LEA R14,[RBX + 0x50]
LAB_0016592d:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
ADD EAX,-0x30
CMP EAX,0x9
JA 0x00165969
LEA R14,[RBX + 0x50]
LAB_0016594d:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
ADD EAX,-0x30
CMP EAX,0xa
JC 0x0016594d
LAB_00165969:
MOV RDI,RBX
CALL 0x0010fd28
MOV qword ptr [RSP + 0x8],0x0
CALL 0x0010f060
MOV dword ptr [RAX],0x0
JMP 0x00165a4b
LAB_0016598a:
LEA RDI,[RBX + 0x50]
MOV ESI,0x30
CALL 0x0010f3c0
MOV EBP,0x5
LAB_0016599d:
MOV RDI,RBX
CALL 0x0010fcac
CMP EAX,0x65
JZ 0x00165a7c
CMP EAX,0x45
JZ 0x00165a7c
CMP EAX,0x2e
JNZ 0x001659f5
LEA R14,[RBX + 0x50]
LAB_001659c0:
MOVSX ESI,byte ptr [RBX + 0x90]
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
ADD EAX,-0x30
CMP EAX,0x9
JBE 0x00165ac0
LEA RAX,[0x1a7d5d]
LAB_001659ea:
MOV qword ptr [RBX + 0x70],RAX
MOV EAX,0xe
JMP 0x00165a66
LAB_001659f5:
MOV RDI,RBX
CALL 0x0010fd28
MOV qword ptr [RSP + 0x8],0x0
CALL 0x0010f060
MOV R14,RAX
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBX + 0x50]
LEA RSI,[RSP + 0x8]
MOV EDX,0xa
CMP EBP,0x5
JNZ 0x00165a40
CALL 0x0010f5c0
CMP dword ptr [R14],0x0
JNZ 0x00165a4b
MOV qword ptr [RBX + 0x80],RAX
MOV EAX,0x5
JMP 0x00165a66
LAB_00165a40:
CALL 0x0010f0c0
CMP dword ptr [R14],0x0
JZ 0x00165a85
LAB_00165a4b:
MOV RDI,qword ptr [RBX + 0x50]
LEA RSI,[RSP + 0x8]
CALL 0x0010f380
MOVSD qword ptr [RBX + 0x88],XMM0
MOV EAX,0x7
LAB_00165a66:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
LAB_00165a6f:
MOV EAX,dword ptr [RBX + 0x14]
MOV EBP,0x6
JMP 0x0016586e
LAB_00165a7c:
LEA R14,[RBX + 0x50]
JMP 0x001658aa
LAB_00165a85:
MOV qword ptr [RBX + 0x78],RAX
MOV EAX,0x6
JMP 0x00165a66
LAB_00165a90:
MOVSX ESI,byte ptr [RBX + 0x14]
LEA R14,[RBX + 0x50]
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
ADD EAX,-0x30
CMP EAX,0xa
JC 0x0016592d
LEA RAX,[0x1a7dc1]
JMP 0x001659ea
LAB_00165ac0:
LEA R14,[RBX + 0x50]
LAB_00165ac4:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0010f3c0
MOV RDI,RBX
CALL 0x0010fcac
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JC 0x00165ac4
CMP EAX,0x65
JZ 0x001658aa
CMP EAX,0x45
JZ 0x001658aa
JMP 0x00165969
LAB_00165af7:
MOVSX ESI,byte ptr [RBX + 0x14]
LEA RDI,[RBX + 0x50]
CALL 0x0010f3c0
MOV EBP,0x6
JMP 0x0016599d
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
::scan_number(lexer<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>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
*this)
{
char cVar1;
int iVar2;
char *pcVar3;
int *piVar4;
ulonglong uVar5;
longlong lVar6;
int iVar7;
double dVar8;
char *local_20;
reset(this);
iVar2 = *(int *)(this + 0x14);
iVar7 = 5;
cVar1 = (char)this;
if (iVar2 - 0x31U < 9) {
LAB_0016586e:
do {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
} while (iVar2 - 0x30U < 10);
if (iVar2 != 0x2e) {
if ((iVar2 != 0x45) && (iVar2 != 0x65)) {
LAB_001659f5:
unget(this);
local_20 = (char *)0x0;
piVar4 = __errno_location();
*piVar4 = 0;
if (iVar7 == 5) {
uVar5 = strtoull(*(char **)(this + 0x50),&local_20,10);
if (*piVar4 == 0) {
*(ulonglong *)(this + 0x80) = uVar5;
return 5;
}
}
else {
lVar6 = strtoll(*(char **)(this + 0x50),&local_20,10);
if (*piVar4 == 0) {
*(longlong *)(this + 0x78) = lVar6;
return 6;
}
}
goto LAB_00165a4b;
}
goto LAB_001658aa;
}
LAB_001659c0:
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
if (9 < iVar2 - 0x30U) {
pcVar3 = "invalid number; expected digit after \'.\'";
goto LAB_001659ea;
}
do {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
} while (iVar2 - 0x30U < 10);
if ((iVar2 == 0x65) || (iVar2 == 0x45)) goto LAB_001658aa;
}
else {
if (iVar2 == 0x30) {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar7 = 5;
}
else {
if (iVar2 == 0x2d) {
std::__cxx11::string::push_back(cVar1 + 'P');
}
iVar2 = get(this);
if (iVar2 - 0x31U < 9) {
iVar7 = 6;
goto LAB_0016586e;
}
if (iVar2 != 0x30) {
pcVar3 = "invalid number; expected digit after \'-\'";
goto LAB_001659ea;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar7 = 6;
}
iVar2 = get(this);
if ((iVar2 != 0x65) && (iVar2 != 0x45)) {
if (iVar2 != 0x2e) goto LAB_001659f5;
goto LAB_001659c0;
}
LAB_001658aa:
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
if (9 < iVar2 - 0x30U) {
if ((iVar2 != 0x2d) && (iVar2 != 0x2b)) {
pcVar3 = "invalid number; expected \'+\', \'-\', or digit after exponent";
LAB_001659ea:
*(char **)(this + 0x70) = pcVar3;
return 0xe;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
if (9 < iVar2 - 0x30U) {
pcVar3 = "invalid number; expected digit after exponent sign";
goto LAB_001659ea;
}
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
if (iVar2 - 0x30U < 10) {
do {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
} while (iVar2 - 0x30U < 10);
}
}
unget(this);
local_20 = (char *)0x0;
piVar4 = __errno_location();
*piVar4 = 0;
LAB_00165a4b:
dVar8 = strtod(*(char **)(this + 0x50),&local_20);
*(double *)(this + 0x88) = dVar8;
return 7;
}
| |
20,998 | ImPlot::StyleColorsDark(ImPlotStyle*) | zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp | void StyleColorsDark(ImPlotStyle* dst) {
ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle();
ImVec4* colors = style->Colors;
style->MinorAlpha = 0.25f;
colors[ImPlotCol_Line] = IMPLOT_AUTO_COL;
colors[ImPlotCol_Fill] = IMPLOT_AUTO_COL;
colors[ImPlotCol_MarkerOutline] = IMPLOT_AUTO_COL;
colors[ImPlotCol_MarkerFill] = IMPLOT_AUTO_COL;
colors[ImPlotCol_ErrorBar] = IMPLOT_AUTO_COL;
colors[ImPlotCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f);
colors[ImPlotCol_PlotBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.50f);
colors[ImPlotCol_PlotBorder] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f);
colors[ImPlotCol_LegendBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f);
colors[ImPlotCol_LegendBorder] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f);
colors[ImPlotCol_LegendText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImPlotCol_TitleText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImPlotCol_InlayText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImPlotCol_AxisText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImPlotCol_AxisGrid] = ImVec4(1.00f, 1.00f, 1.00f, 0.25f);
colors[ImPlotCol_AxisTick] = IMPLOT_AUTO_COL; // TODO
colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL; // TODO
colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL; // TODO
colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL; // TODO
colors[ImPlotCol_Selection] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
colors[ImPlotCol_Crosshairs] = ImVec4(1.00f, 1.00f, 1.00f, 0.50f);
} | O1 | cpp | ImPlot::StyleColorsDark(ImPlotStyle*):
pushq %rax
testq %rdi, %rdi
jne 0xc4ff2
cmpq $0x0, 0x271cc8(%rip) # 0x336ca0
jne 0xc4fe6
leaq 0x1d56fa(%rip), %rdi # 0x29a6db
callq 0x2161f4
movl $0x104, %edi # imm = 0x104
addq 0x271cae(%rip), %rdi # 0x336ca0
movl $0x3e800000, 0x28(%rdi) # imm = 0x3E800000
movaps 0x1cf5a0(%rip), %xmm0 # 0x2945a0
movups %xmm0, 0xac(%rdi)
movups %xmm0, 0xbc(%rdi)
movups %xmm0, 0xcc(%rdi)
movups %xmm0, 0xdc(%rdi)
movups %xmm0, 0xec(%rdi)
movaps 0x1cf596(%rip), %xmm1 # 0x2945c0
movups %xmm1, 0xfc(%rdi)
movaps 0x1cf598(%rip), %xmm1 # 0x2945d0
movups %xmm1, 0x10c(%rdi)
movaps 0x1cf59a(%rip), %xmm1 # 0x2945e0
movups %xmm1, 0x11c(%rdi)
movaps 0x1cf59c(%rip), %xmm2 # 0x2945f0
movups %xmm2, 0x12c(%rdi)
movups %xmm1, 0x13c(%rdi)
movaps 0x1cf547(%rip), %xmm1 # 0x2945b0
movups %xmm1, 0x14c(%rdi)
movups %xmm1, 0x15c(%rdi)
movups %xmm1, 0x16c(%rdi)
movups %xmm1, 0x17c(%rdi)
movaps 0x1cf574(%rip), %xmm1 # 0x294600
movups %xmm1, 0x18c(%rdi)
movups %xmm0, 0x19c(%rdi)
movups %xmm0, 0x1ac(%rdi)
movups %xmm0, 0x1bc(%rdi)
movups %xmm0, 0x1cc(%rdi)
movaps 0x1d4a1a(%rip), %xmm0 # 0x299ad0
movups %xmm0, 0x1dc(%rdi)
movaps 0x1d4a1c(%rip), %xmm0 # 0x299ae0
movups %xmm0, 0x1ec(%rdi)
popq %rax
retq
| _ZN6ImPlot15StyleColorsDarkEP11ImPlotStyle:
push rax
test rdi, rdi
jnz short loc_C4FF2
cmp cs:GImPlot, 0
jnz short loc_C4FE6
lea rdi, aNoCurrentConte_0; "No current context. Did you call ImPlot"...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_C4FE6:
mov edi, 104h
add rdi, cs:GImPlot
loc_C4FF2:
mov dword ptr [rdi+28h], 3E800000h
movaps xmm0, cs:xmmword_2945A0
movups xmmword ptr [rdi+0ACh], xmm0
movups xmmword ptr [rdi+0BCh], xmm0
movups xmmword ptr [rdi+0CCh], xmm0
movups xmmword ptr [rdi+0DCh], xmm0
movups xmmword ptr [rdi+0ECh], xmm0
movaps xmm1, cs:xmmword_2945C0
movups xmmword ptr [rdi+0FCh], xmm1
movaps xmm1, cs:xmmword_2945D0
movups xmmword ptr [rdi+10Ch], xmm1
movaps xmm1, cs:xmmword_2945E0
movups xmmword ptr [rdi+11Ch], xmm1
movaps xmm2, cs:xmmword_2945F0
movups xmmword ptr [rdi+12Ch], xmm2
movups xmmword ptr [rdi+13Ch], xmm1
movaps xmm1, cs:xmmword_2945B0
movups xmmword ptr [rdi+14Ch], xmm1
movups xmmword ptr [rdi+15Ch], xmm1
movups xmmword ptr [rdi+16Ch], xmm1
movups xmmword ptr [rdi+17Ch], xmm1
movaps xmm1, cs:xmmword_294600
movups xmmword ptr [rdi+18Ch], xmm1
movups xmmword ptr [rdi+19Ch], xmm0
movups xmmword ptr [rdi+1ACh], xmm0
movups xmmword ptr [rdi+1BCh], xmm0
movups xmmword ptr [rdi+1CCh], xmm0
movaps xmm0, cs:xmmword_299AD0
movups xmmword ptr [rdi+1DCh], xmm0
movaps xmm0, cs:xmmword_299AE0
movups xmmword ptr [rdi+1ECh], xmm0
pop rax
retn
| void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> ImPlot::StyleColorsDark(ImPlot *this, ImPlotStyle *a2)
{
if ( !this )
{
if ( !GImPlot )
ImGui::ErrorLog(
(ImGui *)"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?",
(const char *)a2);
this = (ImGui *)((char *)GImPlot + 260);
}
*((_DWORD *)this + 10) = 1048576000;
*(_OWORD *)((char *)this + 172) = xmmword_2945A0;
*(_OWORD *)((char *)this + 188) = xmmword_2945A0;
*(_OWORD *)((char *)this + 204) = xmmword_2945A0;
*(_OWORD *)((char *)this + 220) = xmmword_2945A0;
*(_OWORD *)((char *)this + 236) = xmmword_2945A0;
*(_OWORD *)((char *)this + 252) = xmmword_2945C0;
*(_OWORD *)((char *)this + 268) = xmmword_2945D0;
*(_OWORD *)((char *)this + 284) = xmmword_2945E0;
*(_OWORD *)((char *)this + 300) = xmmword_2945F0;
*(_OWORD *)((char *)this + 316) = xmmword_2945E0;
*(_OWORD *)((char *)this + 332) = xmmword_2945B0;
*(_OWORD *)((char *)this + 348) = xmmword_2945B0;
*(_OWORD *)((char *)this + 364) = xmmword_2945B0;
*(_OWORD *)((char *)this + 380) = xmmword_2945B0;
*(_OWORD *)((char *)this + 396) = xmmword_294600;
*(_OWORD *)((char *)this + 412) = xmmword_2945A0;
*(_OWORD *)((char *)this + 428) = xmmword_2945A0;
*(_OWORD *)((char *)this + 444) = xmmword_2945A0;
*(_OWORD *)((char *)this + 460) = xmmword_2945A0;
*(_OWORD *)((char *)this + 476) = xmmword_299AD0;
*(_OWORD *)((char *)this + 492) = xmmword_299AE0;
}
| StyleColorsDark:
PUSH RAX
TEST RDI,RDI
JNZ 0x001c4ff2
CMP qword ptr [0x00436ca0],0x0
JNZ 0x001c4fe6
LEA RDI,[0x39a6db]
CALL 0x003161f4
LAB_001c4fe6:
MOV EDI,0x104
ADD RDI,qword ptr [0x00436ca0]
LAB_001c4ff2:
MOV dword ptr [RDI + 0x28],0x3e800000
MOVAPS XMM0,xmmword ptr [0x003945a0]
MOVUPS xmmword ptr [RDI + 0xac],XMM0
MOVUPS xmmword ptr [RDI + 0xbc],XMM0
MOVUPS xmmword ptr [RDI + 0xcc],XMM0
MOVUPS xmmword ptr [RDI + 0xdc],XMM0
MOVUPS xmmword ptr [RDI + 0xec],XMM0
MOVAPS XMM1,xmmword ptr [0x003945c0]
MOVUPS xmmword ptr [RDI + 0xfc],XMM1
MOVAPS XMM1,xmmword ptr [0x003945d0]
MOVUPS xmmword ptr [RDI + 0x10c],XMM1
MOVAPS XMM1,xmmword ptr [0x003945e0]
MOVUPS xmmword ptr [RDI + 0x11c],XMM1
MOVAPS XMM2,xmmword ptr [0x003945f0]
MOVUPS xmmword ptr [RDI + 0x12c],XMM2
MOVUPS xmmword ptr [RDI + 0x13c],XMM1
MOVAPS XMM1,xmmword ptr [0x003945b0]
MOVUPS xmmword ptr [RDI + 0x14c],XMM1
MOVUPS xmmword ptr [RDI + 0x15c],XMM1
MOVUPS xmmword ptr [RDI + 0x16c],XMM1
MOVUPS xmmword ptr [RDI + 0x17c],XMM1
MOVAPS XMM1,xmmword ptr [0x00394600]
MOVUPS xmmword ptr [RDI + 0x18c],XMM1
MOVUPS xmmword ptr [RDI + 0x19c],XMM0
MOVUPS xmmword ptr [RDI + 0x1ac],XMM0
MOVUPS xmmword ptr [RDI + 0x1bc],XMM0
MOVUPS xmmword ptr [RDI + 0x1cc],XMM0
MOVAPS XMM0,xmmword ptr [0x00399ad0]
MOVUPS xmmword ptr [RDI + 0x1dc],XMM0
MOVAPS XMM0,xmmword ptr [0x00399ae0]
MOVUPS xmmword ptr [RDI + 0x1ec],XMM0
POP RAX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* ImPlot::StyleColorsDark(ImPlotStyle*) */
int8 ImPlot::StyleColorsDark(ImPlotStyle *param_1)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
int8 uVar5;
int8 in_RAX;
if (param_1 == (ImPlotStyle *)0x0) {
if (GImPlot == 0) {
ImGui::ErrorLog(
"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"
);
}
param_1 = (ImPlotStyle *)(GImPlot + 0x104);
}
*(int4 *)(param_1 + 0x28) = 0x3e800000;
uVar2 = _UNK_003945a8;
uVar1 = _DAT_003945a0;
*(int8 *)(param_1 + 0xac) = _DAT_003945a0;
*(int8 *)(param_1 + 0xb4) = uVar2;
*(int8 *)(param_1 + 0xbc) = uVar1;
*(int8 *)(param_1 + 0xc4) = uVar2;
*(int8 *)(param_1 + 0xcc) = uVar1;
*(int8 *)(param_1 + 0xd4) = uVar2;
*(int8 *)(param_1 + 0xdc) = uVar1;
*(int8 *)(param_1 + 0xe4) = uVar2;
*(int8 *)(param_1 + 0xec) = uVar1;
*(int8 *)(param_1 + 0xf4) = uVar2;
uVar3 = _UNK_003945c8;
*(int8 *)(param_1 + 0xfc) = _DAT_003945c0;
*(int8 *)(param_1 + 0x104) = uVar3;
uVar3 = _UNK_003945d8;
*(int8 *)(param_1 + 0x10c) = _DAT_003945d0;
*(int8 *)(param_1 + 0x114) = uVar3;
uVar4 = _UNK_003945e8;
uVar3 = _DAT_003945e0;
*(int8 *)(param_1 + 0x11c) = _DAT_003945e0;
*(int8 *)(param_1 + 0x124) = uVar4;
uVar5 = _UNK_003945f8;
*(int8 *)(param_1 + 300) = _DAT_003945f0;
*(int8 *)(param_1 + 0x134) = uVar5;
*(int8 *)(param_1 + 0x13c) = uVar3;
*(int8 *)(param_1 + 0x144) = uVar4;
uVar4 = _UNK_003945b8;
uVar3 = _DAT_003945b0;
*(int8 *)(param_1 + 0x14c) = _DAT_003945b0;
*(int8 *)(param_1 + 0x154) = uVar4;
*(int8 *)(param_1 + 0x15c) = uVar3;
*(int8 *)(param_1 + 0x164) = uVar4;
*(int8 *)(param_1 + 0x16c) = uVar3;
*(int8 *)(param_1 + 0x174) = uVar4;
*(int8 *)(param_1 + 0x17c) = uVar3;
*(int8 *)(param_1 + 0x184) = uVar4;
uVar3 = _UNK_00394608;
*(int8 *)(param_1 + 0x18c) = _DAT_00394600;
*(int8 *)(param_1 + 0x194) = uVar3;
*(int8 *)(param_1 + 0x19c) = uVar1;
*(int8 *)(param_1 + 0x1a4) = uVar2;
*(int8 *)(param_1 + 0x1ac) = uVar1;
*(int8 *)(param_1 + 0x1b4) = uVar2;
*(int8 *)(param_1 + 0x1bc) = uVar1;
*(int8 *)(param_1 + 0x1c4) = uVar2;
*(int8 *)(param_1 + 0x1cc) = uVar1;
*(int8 *)(param_1 + 0x1d4) = uVar2;
uVar1 = _UNK_00399ad8;
*(int8 *)(param_1 + 0x1dc) = _DAT_00399ad0;
*(int8 *)(param_1 + 0x1e4) = uVar1;
uVar1 = _UNK_00399ae8;
*(int8 *)(param_1 + 0x1ec) = _DAT_00399ae0;
*(int8 *)(param_1 + 500) = uVar1;
return in_RAX;
}
| |
20,999 | trnman_free_trn | eloqsql/storage/maria/trnman.c | static void trnman_free_trn(TRN *trn)
{
/*
union is to solve strict aliasing issue.
without it gcc 3.4.3 doesn't notice that updating *(void **)&tmp
modifies the value of tmp.
*/
union { TRN *trn; void *v; } tmp;
DBUG_ASSERT(trn != &dummy_transaction_object);
mysql_mutex_lock(&trn->state_lock);
trn->short_id= 0;
mysql_mutex_unlock(&trn->state_lock);
tmp.trn= pool;
do
{
/*
without this volatile cast gcc-3.4.4 moves the assignment
down after the loop at -O2
*/
*(TRN * volatile *)&(trn->next)= tmp.trn;
} while (!my_atomic_casptr((void **)(char*)&pool, &tmp.v, trn));
} | O3 | c | trnman_free_trn:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %r14
cmpq $0x0, 0x50(%rdi)
jne 0x73086
movq %r14, %rdi
callq 0x2b230
movw $0x0, 0xac(%rbx)
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
jne 0x7309c
movq %r14, %rdi
callq 0x2b1f0
movq 0x3dd6d6(%rip), %rax # 0x450748
movq %rax, 0x68(%rbx)
lock
cmpxchgq %rbx, 0x3dd6c9(%rip) # 0x450748
jne 0x73072
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x919d7(%rip), %rsi # 0x104a64
movq %r14, %rdi
movl $0x22d, %edx # imm = 0x22D
callq 0x324c0
jmp 0x73051
leaq 0x345b65(%rip), %rax # 0x3b8c08
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x73063
| trnman_free_trn:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
lea r14, [rdi+10h]
cmp qword ptr [rdi+50h], 0
jnz short loc_73086
mov rdi, r14
call _pthread_mutex_lock
loc_73051:
mov word ptr [rbx+0ACh], 0
mov rdi, [rbx+50h]
test rdi, rdi
jnz short loc_7309C
loc_73063:
mov rdi, r14
call _pthread_mutex_unlock
mov rax, cs:pool
loc_73072:
mov [rbx+68h], rax
lock cmpxchg cs:pool, rbx
jnz short loc_73072
pop rbx
pop r14
pop rbp
retn
loc_73086:
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r14
mov edx, 22Dh
call psi_mutex_lock
jmp short loc_73051
loc_7309C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_73063
| signed long long trnman_free_trn(signed long long a1)
{
signed long long result; // rax
signed long long v2; // rtt
if ( *(_QWORD *)(a1 + 80) )
psi_mutex_lock(a1 + 16, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 0x22Du);
else
pthread_mutex_lock(a1 + 16);
*(_WORD *)(a1 + 172) = 0;
if ( *(_QWORD *)(a1 + 80) )
PSI_server[44]();
pthread_mutex_unlock(a1 + 16);
result = pool;
do
{
*(_QWORD *)(a1 + 104) = result;
v2 = result;
result = _InterlockedCompareExchange64(&pool, a1, result);
}
while ( v2 != result );
return result;
}
| trnman_free_trn:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x10]
CMP qword ptr [RDI + 0x50],0x0
JNZ 0x00173086
MOV RDI,R14
CALL 0x0012b230
LAB_00173051:
MOV word ptr [RBX + 0xac],0x0
MOV RDI,qword ptr [RBX + 0x50]
TEST RDI,RDI
JNZ 0x0017309c
LAB_00173063:
MOV RDI,R14
CALL 0x0012b1f0
MOV RAX,qword ptr [0x00550748]
LAB_00173072:
MOV qword ptr [RBX + 0x68],RAX
CMPXCHG.LOCK qword ptr [0x00550748],RBX
JNZ 0x00173072
POP RBX
POP R14
POP RBP
RET
LAB_00173086:
LEA RSI,[0x204a64]
MOV RDI,R14
MOV EDX,0x22d
CALL 0x001324c0
JMP 0x00173051
LAB_0017309c:
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00173063
|
void trnman_free_trn(long param_1)
{
pthread_mutex_t *__mutex;
long lVar1;
long lVar2;
bool bVar3;
__mutex = (pthread_mutex_t *)(param_1 + 0x10);
if (*(long *)(param_1 + 0x50) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x22d);
}
*(int2 *)(param_1 + 0xac) = 0;
if (*(long *)(param_1 + 0x50) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
lVar2 = pool;
do {
*(long *)(param_1 + 0x68) = lVar2;
LOCK();
bVar3 = lVar2 != pool;
lVar1 = param_1;
if (bVar3) {
lVar2 = pool;
lVar1 = pool;
}
pool = lVar1;
UNLOCK();
} while (bVar3);
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.