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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
41,300 | fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>, unsigned long) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h | inline auto code_point_index(string_view s, size_t n) -> size_t {
size_t result = s.size();
const char* begin = s.begin();
for_each_codepoint(s, [begin, &n, &result](uint32_t, string_view sv) {
if (n != 0) {
--n;
return true;
}
result = to_unsigned(sv.begin() - begin);
return false;
});
return result;
} | O0 | c | fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>, unsigned long):
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x50(%rsp)
leaq 0x58(%rsp), %rdi
callq 0xa6b20
movq %rax, 0x48(%rsp)
leaq 0x58(%rsp), %rdi
callq 0xaf730
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xc4880
movq 0x48(%rsp), %rax
addq $0x68, %rsp
retq
nopw (%rax,%rax)
| _ZN3fmt3v116detail16code_point_indexENS0_17basic_string_viewIcEEm:
sub rsp, 68h
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_8], rsi
mov [rsp+68h+var_18], rdx
lea rdi, [rsp+68h+var_10]
call _ZNK3fmt3v1117basic_string_viewIcE4sizeEv; fmt::v11::basic_string_view<char>::size(void)
mov [rsp+68h+var_20], rax
lea rdi, [rsp+68h+var_10]
call _ZNK3fmt3v1117basic_string_viewIcE5beginEv; fmt::v11::basic_string_view<char>::begin(void)
mov [rsp+68h+var_28], rax
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_8]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_28]
mov [rsp+68h+var_50], rax
lea rax, [rsp+68h+var_18]
mov [rsp+68h+var_48], rax
lea rax, [rsp+68h+var_20]
mov [rsp+68h+var_40], rax
mov rdi, [rsp+68h+var_38]
mov rsi, [rsp+68h+var_30]
lea rax, [rsp+68h+var_50]
mov rcx, [rax]
mov [rsp+68h+var_68], rcx
mov rcx, [rax+8]
mov [rsp+68h+var_60], rcx
mov rax, [rax+10h]
mov [rsp+68h+var_58], rax
call _ZN3fmt3v116detail18for_each_codepointIZNS1_16code_point_indexENS0_17basic_string_viewIcEEmEUljS4_E_EEvS4_T_; fmt::v11::detail::for_each_codepoint<fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>,ulong)::{lambda(uint,fmt::v11::basic_string_view<char>)#1}>(fmt::v11::basic_string_view<char>,fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>,ulong)::{lambda(uint,fmt::v11::basic_string_view<char>)#1})
mov rax, [rsp+68h+var_20]
add rsp, 68h
retn
| long long fmt::v11::detail::code_point_index(long long a1, long long a2, long long a3)
{
long long v3; // rax
int v4; // edx
int v5; // r8d
int v6; // r9d
long long v8; // [rsp+48h] [rbp-20h] BYREF
long long v9; // [rsp+50h] [rbp-18h] BYREF
long long v10; // [rsp+58h] [rbp-10h] BYREF
long long v11; // [rsp+60h] [rbp-8h]
v10 = a1;
v11 = a2;
v9 = a3;
v8 = fmt::v11::basic_string_view<char>::size((long long)&v10);
v3 = fmt::v11::basic_string_view<char>::begin((long long)&v10);
fmt::v11::detail::for_each_codepoint<fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>,unsigned long)::{lambda(unsigned int,fmt::v11::basic_string_view<char>)#1}>(
v10,
v11,
v4,
(unsigned int)&v9,
v5,
v6,
v3,
&v9,
&v8,
v3,
&v9,
&v8,
v10,
v11,
v3);
return v8;
}
| code_point_index:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x60],RSI
MOV qword ptr [RSP + 0x50],RDX
LEA RDI,[RSP + 0x58]
CALL 0x001a6b20
MOV qword ptr [RSP + 0x48],RAX
LEA RDI,[RSP + 0x58]
CALL 0x001af730
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RAX
LEA RAX,[RSP + 0x50]
MOV qword ptr [RSP + 0x20],RAX
LEA RAX,[RSP + 0x48]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x18]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001c4880
MOV RAX,qword ptr [RSP + 0x48]
ADD RSP,0x68
RET
|
/* fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>, unsigned long) */
int8 fmt::v11::detail::code_point_index(int8 param_1,int8 param_2)
{
int8 uVar1;
int8 local_10;
int8 local_8;
local_10 = param_1;
local_8 = param_2;
uVar1 = basic_string_view<char>::size((basic_string_view<char> *)&local_10);
basic_string_view<char>::begin((basic_string_view<char> *)&local_10);
for_each_codepoint<fmt::v11::detail::code_point_index(fmt::v11::basic_string_view<char>,unsigned_long)::_lambda(unsigned_int,fmt::v11::basic_string_view<char>)_1_>
(local_10,local_8);
return uVar1;
}
| |
41,301 | value_buffer_free | bluesky950520[P]quickjs/quickjs.c | static void value_buffer_free(ValueBuffer *b)
{
while (b->len > 0)
JS_FreeValue(b->ctx, b->arr[--b->len]);
if (b->arr != b->def)
js_free(b->ctx, b->arr);
b->arr = b->def;
b->size = 4;
} | O1 | c | value_buffer_free:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x50(%rdi), %eax
testl %eax, %eax
jle 0x4b971
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
decl %eax
movl %eax, 0x50(%rbx)
shlq $0x4, %rax
movq (%rdx,%rax), %rsi
movq 0x8(%rdx,%rax), %rdx
movq 0x18(%rcx), %rdi
callq 0x1ccb2
movl 0x50(%rbx), %eax
jmp 0x4b946
movq 0x8(%rbx), %rsi
leaq 0x10(%rbx), %r14
cmpq %r14, %rsi
je 0x4b986
movq (%rbx), %rdi
callq 0x1bf85
movq %r14, 0x8(%rbx)
movl $0x4, 0x54(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| value_buffer_free:
push r14
push rbx
push rax
mov rbx, rdi
mov eax, [rdi+50h]
loc_4B946:
test eax, eax
jle short loc_4B971
mov rcx, [rbx]
mov rdx, [rbx+8]
dec eax
mov [rbx+50h], eax
shl rax, 4
mov rsi, [rdx+rax]
mov rdx, [rdx+rax+8]
mov rdi, [rcx+18h]
call JS_FreeValueRT
mov eax, [rbx+50h]
jmp short loc_4B946
loc_4B971:
mov rsi, [rbx+8]
lea r14, [rbx+10h]
cmp rsi, r14
jz short loc_4B986
mov rdi, [rbx]
call js_free
loc_4B986:
mov [rbx+8], r14
mov dword ptr [rbx+54h], 4
add rsp, 8
pop rbx
pop r14
retn
| long long value_buffer_free(long long a1)
{
long long result; // rax
long long v2; // rcx
long long v3; // rdx
long long v4; // rax
long long v5; // rsi
for ( result = *(unsigned int *)(a1 + 80); (int)result > 0; result = *(unsigned int *)(a1 + 80) )
{
v2 = *(_QWORD *)a1;
v3 = *(_QWORD *)(a1 + 8);
v4 = (unsigned int)(result - 1);
*(_DWORD *)(a1 + 80) = v4;
JS_FreeValueRT(*(_QWORD *)(v2 + 24), *(_DWORD **)(v3 + 16 * v4), *(_QWORD *)(v3 + 16 * v4 + 8));
}
v5 = *(_QWORD *)(a1 + 8);
if ( v5 != a1 + 16 )
result = js_free(*(_QWORD *)a1, v5);
*(_QWORD *)(a1 + 8) = a1 + 16;
*(_DWORD *)(a1 + 84) = 4;
return result;
}
| value_buffer_free:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x50]
LAB_0014b946:
TEST EAX,EAX
JLE 0x0014b971
MOV RCX,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
DEC EAX
MOV dword ptr [RBX + 0x50],EAX
SHL RAX,0x4
MOV RSI,qword ptr [RDX + RAX*0x1]
MOV RDX,qword ptr [RDX + RAX*0x1 + 0x8]
MOV RDI,qword ptr [RCX + 0x18]
CALL 0x0011ccb2
MOV EAX,dword ptr [RBX + 0x50]
JMP 0x0014b946
LAB_0014b971:
MOV RSI,qword ptr [RBX + 0x8]
LEA R14,[RBX + 0x10]
CMP RSI,R14
JZ 0x0014b986
MOV RDI,qword ptr [RBX]
CALL 0x0011bf85
LAB_0014b986:
MOV qword ptr [RBX + 0x8],R14
MOV dword ptr [RBX + 0x54],0x4
ADD RSP,0x8
POP RBX
POP R14
RET
|
void value_buffer_free(long *param_1)
{
int iVar1;
long lVar2;
iVar1 = (int)param_1[10];
while (0 < iVar1) {
*(uint *)(param_1 + 10) = iVar1 - 1U;
lVar2 = (ulong)(iVar1 - 1U) * 0x10;
JS_FreeValueRT(*(int8 *)(*param_1 + 0x18),*(int8 *)(param_1[1] + lVar2),
*(int8 *)(param_1[1] + 8 + lVar2));
iVar1 = (int)param_1[10];
}
if ((long *)param_1[1] != param_1 + 2) {
js_free(*param_1);
}
param_1[1] = (long)(param_1 + 2);
*(int4 *)((long)param_1 + 0x54) = 4;
return;
}
| |
41,302 | MotionTransport::CalculateSegmentPos(float) | SylCore-WoTLK/src/server/game/Entities/Transport/Transport.cpp | float MotionTransport::CalculateSegmentPos(float now)
{
KeyFrame const& frame = *_currentFrame;
const float speed = float(m_goInfo->moTransport.moveSpeed);
const float accel = float(m_goInfo->moTransport.accelRate);
float timeSinceStop = frame.TimeFrom + (now - (1.0f / IN_MILLISECONDS) * frame.DepartureTime);
float timeUntilStop = frame.TimeTo - (now - (1.0f / IN_MILLISECONDS) * frame.DepartureTime);
float segmentPos, dist;
float accelTime = _transportInfo->accelTime;
float accelDist = _transportInfo->accelDist;
// calculate from nearest stop, less confusing calculation...
if (timeSinceStop < timeUntilStop)
{
if (timeSinceStop < accelTime)
dist = 0.5f * accel * timeSinceStop * timeSinceStop;
else
dist = accelDist + (timeSinceStop - accelTime) * speed;
segmentPos = dist - frame.DistSinceStop;
}
else
{
if (timeUntilStop < _transportInfo->accelTime)
dist = 0.5f * accel * timeUntilStop * timeUntilStop;
else
dist = accelDist + (timeUntilStop - accelTime) * speed;
segmentPos = frame.DistUntilStop - dist;
}
return segmentPos / frame.NextDistFromPrev;
} | O3 | cpp | MotionTransport::CalculateSegmentPos(float):
movaps %xmm0, %xmm1
movq 0x610(%rdi), %rax
movq 0x548(%rdi), %rcx
movl 0x98(%rcx), %edx
cvtsi2ss %rdx, %xmm2
movl 0x9c(%rcx), %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
movl 0x30(%rax), %ecx
cvtsi2ss %rcx, %xmm4
movq 0x608(%rdi), %rcx
mulss 0x5df2dd(%rip), %xmm4 # 0x111f2b8
addss %xmm1, %xmm4
movss 0x20(%rax), %xmm3
addss %xmm4, %xmm3
movss 0x24(%rax), %xmm1
subss %xmm4, %xmm1
movss 0x50(%rcx), %xmm5
movss 0x54(%rcx), %xmm4
ucomiss %xmm3, %xmm1
jbe 0xb40017
ucomiss %xmm3, %xmm5
jbe 0xb4002e
mulss 0x5db003(%rip), %xmm0 # 0x111b010
mulss %xmm3, %xmm0
mulss %xmm3, %xmm0
jmp 0xb4003d
ucomiss %xmm1, %xmm5
jbe 0xb40044
mulss 0x5dafec(%rip), %xmm0 # 0x111b010
mulss %xmm1, %xmm0
mulss %xmm0, %xmm1
jmp 0xb40050
subss %xmm5, %xmm3
mulss %xmm2, %xmm3
addss %xmm4, %xmm3
movaps %xmm3, %xmm0
subss 0x14(%rax), %xmm0
jmp 0xb40059
subss %xmm5, %xmm1
mulss %xmm2, %xmm1
addss %xmm4, %xmm1
movss 0x18(%rax), %xmm0
subss %xmm1, %xmm0
divss 0x40(%rax), %xmm0
retq
nop
| _ZN15MotionTransport19CalculateSegmentPosEf:
movaps xmm1, xmm0
mov rax, [rdi+610h]
mov rcx, [rdi+548h]
mov edx, [rcx+98h]
cvtsi2ss xmm2, rdx
mov ecx, [rcx+9Ch]
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
mov ecx, [rax+30h]
cvtsi2ss xmm4, rcx
mov rcx, [rdi+608h]
mulss xmm4, cs:dword_111F2B8
addss xmm4, xmm1
movss xmm3, dword ptr [rax+20h]
addss xmm3, xmm4
movss xmm1, dword ptr [rax+24h]
subss xmm1, xmm4
movss xmm5, dword ptr [rcx+50h]
movss xmm4, dword ptr [rcx+54h]
ucomiss xmm1, xmm3
jbe short loc_B40017
ucomiss xmm5, xmm3
jbe short loc_B4002E
mulss xmm0, cs:flt_111B010
mulss xmm0, xmm3
mulss xmm0, xmm3
jmp short loc_B4003D
loc_B40017:
ucomiss xmm5, xmm1
jbe short loc_B40044
mulss xmm0, cs:flt_111B010
mulss xmm0, xmm1
mulss xmm1, xmm0
jmp short loc_B40050
loc_B4002E:
subss xmm3, xmm5
mulss xmm3, xmm2
addss xmm3, xmm4
movaps xmm0, xmm3
loc_B4003D:
subss xmm0, dword ptr [rax+14h]
jmp short loc_B40059
loc_B40044:
subss xmm1, xmm5
mulss xmm1, xmm2
addss xmm1, xmm4
loc_B40050:
movss xmm0, dword ptr [rax+18h]
subss xmm0, xmm1
loc_B40059:
divss xmm0, dword ptr [rax+40h]
retn
| float MotionTransport::CalculateSegmentPos(MotionTransport *this, float a2)
{
long long v3; // rax
long long v4; // rcx
float v5; // xmm2_4
float v6; // xmm0_4
long long v7; // rcx
float v8; // xmm4_4
float v9; // xmm3_4
float v10; // xmm1_4
float v11; // xmm5_4
float v12; // xmm4_4
float v13; // xmm0_4
float v14; // xmm1_4
float v15; // xmm0_4
v3 = *((_QWORD *)this + 194);
v4 = *((_QWORD *)this + 169);
v5 = (float)*(int *)(v4 + 152);
v6 = (float)*(int *)(v4 + 156);
v7 = *((_QWORD *)this + 193);
v8 = (float)((float)*(int *)(v3 + 48) * -0.001) + a2;
v9 = *(float *)(v3 + 32) + v8;
v10 = *(float *)(v3 + 36) - v8;
v11 = *(float *)(v7 + 80);
v12 = *(float *)(v7 + 84);
if ( v10 <= v9 )
{
if ( v11 <= v10 )
v14 = (float)((float)(v10 - v11) * v5) + v12;
else
v14 = v10 * (float)((float)(v6 * 0.5) * v10);
v15 = *(float *)(v3 + 24) - v14;
}
else
{
if ( v11 <= v9 )
v13 = (float)((float)(v9 - v11) * v5) + v12;
else
v13 = (float)((float)(v6 * 0.5) * v9) * v9;
v15 = v13 - *(float *)(v3 + 20);
}
return v15 / *(float *)(v3 + 64);
}
| Load:
LEA RDX,[RDI + 0x40]
JMP 0x010fc8d6
|
/* DBCStorage<SpellDifficultyEntry>::Load(char const*) */
void __thiscall
DBCStorage<SpellDifficultyEntry>::Load(DBCStorage<SpellDifficultyEntry> *this,char *param_1)
{
DBCStorageBase::Load((DBCStorageBase *)this,param_1,(char ***)(this + 0x40));
return;
}
| |
41,303 | stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int) | SDL3Lite/dependencies/stb_image.h | static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
stbi__result_info ri;
void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16);
if (result == NULL)
return NULL;
// it is the responsibility of the loaders to make sure we get either 8 or 16 bit.
STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16);
if (ri.bits_per_channel != 16) {
result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp);
ri.bits_per_channel = 16;
}
// @TODO: move stbi__convert_format16 to here
// @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision
if (stbi__vertically_flip_on_load) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16));
}
return (stbi__uint16 *) result;
} | O0 | c | stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
leaq -0x38(%rbp), %r9
movl $0x10, (%rsp)
callq 0x28fe0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x281b8
movq $0x0, -0x8(%rbp)
jmp 0x28297
movb $0x1, %al
cmpl $0x8, -0x38(%rbp)
movb %al, -0x45(%rbp)
je 0x281cd
cmpl $0x10, -0x38(%rbp)
sete %al
movb %al, -0x45(%rbp)
movb -0x45(%rbp), %al
testb $0x1, %al
jne 0x281d6
jmp 0x281d8
jmp 0x281f7
leaq 0xbdfa(%rip), %rdi # 0x33fd9
leaq 0xbe29(%rip), %rsi # 0x3400f
movl $0x50f, %edx # imm = 0x50F
leaq 0xc008(%rip), %rcx # 0x341fa
callq 0x1a190
cmpl $0x10, -0x38(%rbp)
je 0x2824b
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x28228
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x5c(%rbp)
jmp 0x2822e
movl -0x2c(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x4c(%rbp), %edx
movl -0x50(%rbp), %esi
movq -0x58(%rbp), %rdi
movl -0x5c(%rbp), %ecx
callq 0x2b5b0
movq %rax, -0x40(%rbp)
movl $0x10, -0x38(%rbp)
cmpl $0x0, 0x1628e(%rip) # 0x3e4e0
je 0x2828f
cmpl $0x0, -0x2c(%rbp)
je 0x28262
movl -0x2c(%rbp), %eax
movl %eax, -0x60(%rbp)
jmp 0x2826b
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rax
movl (%rax), %edx
movslq -0x44(%rbp), %rax
shlq %rax
movl %eax, %ecx
callq 0x29140
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL32stbi__load_and_postprocess_16bitP13stbi__contextPiS1_S1_i:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8d, [rbp+var_2C]
lea r9, [rbp+var_38]
mov [rsp+70h+var_70], 10h
call _ZL15stbi__load_mainP13stbi__contextPiS1_S1_iP17stbi__result_infoi; stbi__load_main(stbi__context *,int *,int *,int *,int,stbi__result_info *,int)
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
jnz short loc_281B8
mov [rbp+var_8], 0
jmp loc_28297
loc_281B8:
mov al, 1
cmp [rbp+var_38], 8
mov [rbp+var_45], al
jz short loc_281CD
cmp [rbp+var_38], 10h
setz al
mov [rbp+var_45], al
loc_281CD:
mov al, [rbp+var_45]
test al, 1
jnz short loc_281D6
jmp short loc_281D8
loc_281D6:
jmp short loc_281F7
loc_281D8:
lea rdi, aRiBitsPerChann; "ri.bits_per_channel == 8 || ri.bits_per"...
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github2025/SDL3Li"...
mov edx, 50Fh
lea rcx, aStbiUint16Stbi; "stbi__uint16 *stbi__load_and_postproces"...
call ___assert_fail
loc_281F7:
cmp [rbp+var_38], 10h
jz short loc_2824B
mov rax, [rbp+var_40]
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov [rbp+var_50], eax
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_4C], eax
cmp [rbp+var_2C], 0
jnz short loc_28228
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_5C], eax
jmp short loc_2822E
loc_28228:
mov eax, [rbp+var_2C]
mov [rbp+var_5C], eax
loc_2822E:
mov edx, [rbp+var_4C]; int
mov esi, [rbp+var_50]; int
mov rdi, [rbp+var_58]; unsigned __int8 *
mov ecx, [rbp+var_5C]; int
call _ZL21stbi__convert_8_to_16Phiii; stbi__convert_8_to_16(uchar *,int,int,int)
mov [rbp+var_40], rax
mov [rbp+var_38], 10h
loc_2824B:
cmp cs:_ZL36stbi__vertically_flip_on_load_global, 0; stbi__vertically_flip_on_load_global
jz short loc_2828F
cmp [rbp+var_2C], 0
jz short loc_28262
mov eax, [rbp+var_2C]
mov [rbp+var_60], eax
jmp short loc_2826B
loc_28262:
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_60], eax
loc_2826B:
mov eax, [rbp+var_60]
mov [rbp+var_44], eax
mov rdi, [rbp+var_40]; void *
mov rax, [rbp+var_18]
mov esi, [rax]; int
mov rax, [rbp+var_20]
mov edx, [rax]; int
movsxd rax, [rbp+var_44]
shl rax, 1
mov ecx, eax; int
call _ZL19stbi__vertical_flipPviii; stbi__vertical_flip(void *,int,int,int)
loc_2828F:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_28297:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
| unsigned __int8 * stbi__load_and_postprocess_16bit(long long a1, int *a2, int *a3, int *a4, int a5)
{
long long v5; // rax
int v7; // [rsp+10h] [rbp-60h]
int v8; // [rsp+20h] [rbp-50h]
int v9; // [rsp+24h] [rbp-4Ch]
bool v10; // [rsp+2Bh] [rbp-45h]
unsigned __int8 *main; // [rsp+30h] [rbp-40h]
int v12; // [rsp+38h] [rbp-38h] BYREF
int v13; // [rsp+44h] [rbp-2Ch]
int *v14; // [rsp+48h] [rbp-28h]
int *v15; // [rsp+50h] [rbp-20h]
int *v16; // [rsp+58h] [rbp-18h]
long long v17; // [rsp+60h] [rbp-10h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
main = (unsigned __int8 *)stbi__load_main(a1, (_DWORD)a2, (_DWORD)a3, (_DWORD)a4, a5, (unsigned int)&v12, 16);
if ( !main )
return 0LL;
v10 = 1;
if ( v12 != 8 )
v10 = v12 == 16;
if ( !v10 )
__assert_fail(
"ri.bits_per_channel == 8 || ri.bits_per_channel == 16",
"/workspace/llm4binary/github2025/SDL3Lite/dependencies/stb_image.h",
1295LL,
"stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *, int *, int *, int *, int)");
if ( v12 != 16 )
{
v8 = *v16;
v9 = *v15;
if ( v13 )
v5 = stbi__convert_8_to_16(main, v8, v9, v13);
else
v5 = stbi__convert_8_to_16(main, v8, v9, *v14);
main = (unsigned __int8 *)v5;
v12 = 16;
}
if ( stbi__vertically_flip_on_load_global )
{
if ( v13 )
v7 = v13;
else
v7 = *v14;
stbi__vertical_flip(main, *v16, *v15, 2 * v7);
}
return main;
}
| stbi__load_and_postprocess_16bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8D,dword ptr [RBP + -0x2c]
LEA R9,[RBP + -0x38]
MOV dword ptr [RSP],0x10
CALL 0x00128fe0
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x001281b8
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00128297
LAB_001281b8:
MOV AL,0x1
CMP dword ptr [RBP + -0x38],0x8
MOV byte ptr [RBP + -0x45],AL
JZ 0x001281cd
CMP dword ptr [RBP + -0x38],0x10
SETZ AL
MOV byte ptr [RBP + -0x45],AL
LAB_001281cd:
MOV AL,byte ptr [RBP + -0x45]
TEST AL,0x1
JNZ 0x001281d6
JMP 0x001281d8
LAB_001281d6:
JMP 0x001281f7
LAB_001281d8:
LEA RDI,[0x133fd9]
LEA RSI,[0x13400f]
MOV EDX,0x50f
LEA RCX,[0x1341fa]
CALL 0x0011a190
LAB_001281f7:
CMP dword ptr [RBP + -0x38],0x10
JZ 0x0012824b
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x50],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x00128228
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x0012822e
LAB_00128228:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x5c],EAX
LAB_0012822e:
MOV EDX,dword ptr [RBP + -0x4c]
MOV ESI,dword ptr [RBP + -0x50]
MOV RDI,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x5c]
CALL 0x0012b5b0
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x38],0x10
LAB_0012824b:
CMP dword ptr [0x0013e4e0],0x0
JZ 0x0012828f
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x00128262
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x60],EAX
JMP 0x0012826b
LAB_00128262:
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x60],EAX
LAB_0012826b:
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x44],EAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RAX]
MOVSXD RAX,dword ptr [RBP + -0x44]
SHL RAX,0x1
MOV ECX,EAX
CALL 0x00129140
LAB_0012828f:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_00128297:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
/* stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int) */
uchar * stbi__load_and_postprocess_16bit
(stbi__context *param_1,int *param_2,int *param_3,int *param_4,int param_5)
{
int local_68;
int local_64;
uchar *local_48;
int local_40 [3];
int local_34;
int *local_30;
int *local_28;
int *local_20;
stbi__context *local_18;
uchar *local_10;
local_34 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_48 = (uchar *)stbi__load_main(param_1,param_2,param_3,param_4,param_5,
(stbi__result_info *)local_40,0x10);
if (local_48 == (uchar *)0x0) {
local_10 = (uchar *)0x0;
}
else {
if (local_40[0] != 8 && local_40[0] != 0x10) {
/* WARNING: Subroutine does not return */
__assert_fail("ri.bits_per_channel == 8 || ri.bits_per_channel == 16",
"/workspace/llm4binary/github2025/SDL3Lite/dependencies/stb_image.h",0x50f,
"stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *, int *, int *, int *, int)"
);
}
if (local_40[0] != 0x10) {
if (local_34 == 0) {
local_64 = *local_30;
}
else {
local_64 = local_34;
}
local_48 = (uchar *)stbi__convert_8_to_16(local_48,*local_20,*local_28,local_64);
local_40[0] = 0x10;
}
if (stbi__vertically_flip_on_load_global != 0) {
if (local_34 == 0) {
local_68 = *local_30;
}
else {
local_68 = local_34;
}
stbi__vertical_flip(local_48,*local_20,*local_28,(int)((long)local_68 << 1));
}
local_10 = local_48;
}
return local_10;
}
| |
41,304 | stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int) | SDL3Lite/dependencies/stb_image.h | static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
stbi__result_info ri;
void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16);
if (result == NULL)
return NULL;
// it is the responsibility of the loaders to make sure we get either 8 or 16 bit.
STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16);
if (ri.bits_per_channel != 16) {
result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp);
ri.bits_per_channel = 16;
}
// @TODO: move stbi__convert_format16 to here
// @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision
if (stbi__vertically_flip_on_load) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16));
}
return (stbi__uint16 *) result;
} | O3 | c | stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int):
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq %rcx, 0x40(%rsp)
movl %r8d, 0x3c(%rsp)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
movl 0x3c(%rsp), %r8d
leaq 0x30(%rsp), %r9
movl $0x10, (%rsp)
callq 0x29540
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x28532
movq $0x0, 0x60(%rsp)
jmp 0x28635
movb $0x1, %al
cmpl $0x8, 0x30(%rsp)
movb %al, 0x23(%rsp)
je 0x2854b
cmpl $0x10, 0x30(%rsp)
sete %al
movb %al, 0x23(%rsp)
movb 0x23(%rsp), %al
testb $0x1, %al
jne 0x28555
jmp 0x28557
jmp 0x28576
leaq 0xca7b(%rip), %rdi # 0x34fd9
leaq 0xcaaa(%rip), %rsi # 0x3500f
movl $0x50f, %edx # imm = 0x50F
leaq 0xcc89(%rip), %rcx # 0x351fa
callq 0x1a190
cmpl $0x10, 0x30(%rsp)
je 0x285dc
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x18(%rsp)
movq 0x48(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x285b1
movq 0x40(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xc(%rsp)
jmp 0x285b9
movl 0x3c(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %esi
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %ecx
callq 0x2bec0
movq %rax, 0x28(%rsp)
movl $0x10, 0x30(%rsp)
cmpl $0x0, 0x15efd(%rip) # 0x3e4e0
je 0x2862b
cmpl $0x0, 0x3c(%rsp)
je 0x285f6
movl 0x3c(%rsp), %eax
movl %eax, 0x8(%rsp)
jmp 0x28601
movq 0x40(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x28(%rsp), %rdi
movq 0x50(%rsp), %rax
movl (%rax), %esi
movq 0x48(%rsp), %rax
movl (%rax), %edx
movslq 0x24(%rsp), %rax
shlq %rax
movl %eax, %ecx
callq 0x296c0
movq 0x28(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
nop
| _ZL32stbi__load_and_postprocess_16bitP13stbi__contextPiS1_S1_i:
sub rsp, 68h
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_18], rsi
mov [rsp+68h+var_20], rdx
mov [rsp+68h+var_28], rcx
mov [rsp+68h+var_2C], r8d
mov rdi, [rsp+68h+var_10]
mov rsi, [rsp+68h+var_18]
mov rdx, [rsp+68h+var_20]
mov rcx, [rsp+68h+var_28]
mov r8d, [rsp+68h+var_2C]
lea r9, [rsp+68h+var_38]
mov [rsp+68h+var_68], 10h
call _ZL15stbi__load_mainP13stbi__contextPiS1_S1_iP17stbi__result_infoi; stbi__load_main(stbi__context *,int *,int *,int *,int,stbi__result_info *,int)
mov [rsp+68h+var_40], rax
cmp [rsp+68h+var_40], 0
jnz short loc_28532
mov [rsp+68h+var_8], 0
jmp loc_28635
loc_28532:
mov al, 1
cmp [rsp+68h+var_38], 8
mov [rsp+68h+var_45], al
jz short loc_2854B
cmp [rsp+68h+var_38], 10h
setz al
mov [rsp+68h+var_45], al
loc_2854B:
mov al, [rsp+68h+var_45]
test al, 1
jnz short loc_28555
jmp short loc_28557
loc_28555:
jmp short loc_28576
loc_28557:
lea rdi, aRiBitsPerChann; "ri.bits_per_channel == 8 || ri.bits_per"...
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github2025/SDL3Li"...
mov edx, 50Fh
lea rcx, aStbiUint16Stbi; "stbi__uint16 *stbi__load_and_postproces"...
call ___assert_fail
loc_28576:
cmp [rsp+68h+var_38], 10h
jz short loc_285DC
mov rax, [rsp+68h+var_40]
mov [rsp+68h+var_58], rax
mov rax, [rsp+68h+var_18]
mov eax, [rax]
mov [rsp+68h+var_50], eax
mov rax, [rsp+68h+var_20]
mov eax, [rax]
mov [rsp+68h+var_4C], eax
cmp [rsp+68h+var_2C], 0
jnz short loc_285B1
mov rax, [rsp+68h+var_28]
mov eax, [rax]
mov [rsp+68h+var_5C], eax
jmp short loc_285B9
loc_285B1:
mov eax, [rsp+68h+var_2C]
mov [rsp+68h+var_5C], eax
loc_285B9:
mov edx, [rsp+68h+var_4C]; int
mov esi, [rsp+68h+var_50]; int
mov rdi, [rsp+68h+var_58]; unsigned __int8 *
mov ecx, [rsp+68h+var_5C]; int
call _ZL21stbi__convert_8_to_16Phiii; stbi__convert_8_to_16(uchar *,int,int,int)
mov [rsp+68h+var_40], rax
mov [rsp+68h+var_38], 10h
loc_285DC:
cmp cs:_ZL36stbi__vertically_flip_on_load_global, 0; stbi__vertically_flip_on_load_global
jz short loc_2862B
cmp [rsp+68h+var_2C], 0
jz short loc_285F6
mov eax, [rsp+68h+var_2C]
mov [rsp+68h+var_60], eax
jmp short loc_28601
loc_285F6:
mov rax, [rsp+68h+var_28]
mov eax, [rax]
mov [rsp+68h+var_60], eax
loc_28601:
mov eax, [rsp+68h+var_60]
mov [rsp+68h+var_44], eax
mov rdi, [rsp+68h+var_40]; void *
mov rax, [rsp+68h+var_18]
mov esi, [rax]; int
mov rax, [rsp+68h+var_20]
mov edx, [rax]; int
movsxd rax, [rsp+68h+var_44]
shl rax, 1
mov ecx, eax; int
call _ZL19stbi__vertical_flipPviii; stbi__vertical_flip(void *,int,int,int)
loc_2862B:
mov rax, [rsp+68h+var_40]
mov [rsp+68h+var_8], rax
loc_28635:
mov rax, [rsp+68h+var_8]
add rsp, 68h
retn
| unsigned __int8 * stbi__load_and_postprocess_16bit(long long a1, int *a2, int *a3, int *a4, int a5)
{
long long v5; // rax
int v7; // [rsp+8h] [rbp-60h]
int v8; // [rsp+18h] [rbp-50h]
int v9; // [rsp+1Ch] [rbp-4Ch]
bool v10; // [rsp+23h] [rbp-45h]
unsigned __int8 *main; // [rsp+28h] [rbp-40h]
int v12; // [rsp+30h] [rbp-38h] BYREF
int v13; // [rsp+3Ch] [rbp-2Ch]
int *v14; // [rsp+40h] [rbp-28h]
int *v15; // [rsp+48h] [rbp-20h]
int *v16; // [rsp+50h] [rbp-18h]
long long v17; // [rsp+58h] [rbp-10h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
main = (unsigned __int8 *)stbi__load_main(a1, (_DWORD)a2, (_DWORD)a3, (_DWORD)a4, a5, (unsigned int)&v12, 16);
if ( !main )
return 0LL;
v10 = 1;
if ( v12 != 8 )
v10 = v12 == 16;
if ( !v10 )
__assert_fail(
"ri.bits_per_channel == 8 || ri.bits_per_channel == 16",
"/workspace/llm4binary/github2025/SDL3Lite/dependencies/stb_image.h",
1295LL,
"stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *, int *, int *, int *, int)");
if ( v12 != 16 )
{
v8 = *v16;
v9 = *v15;
if ( v13 )
v5 = stbi__convert_8_to_16(main, v8, v9, v13);
else
v5 = stbi__convert_8_to_16(main, v8, v9, *v14);
main = (unsigned __int8 *)v5;
v12 = 16;
}
if ( stbi__vertically_flip_on_load_global )
{
if ( v13 )
v7 = v13;
else
v7 = *v14;
stbi__vertical_flip(main, *v16, *v15, 2 * v7);
}
return main;
}
| stbi__load_and_postprocess_16bit:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RSI
MOV qword ptr [RSP + 0x48],RDX
MOV qword ptr [RSP + 0x40],RCX
MOV dword ptr [RSP + 0x3c],R8D
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x40]
MOV R8D,dword ptr [RSP + 0x3c]
LEA R9,[RSP + 0x30]
MOV dword ptr [RSP],0x10
CALL 0x00129540
MOV qword ptr [RSP + 0x28],RAX
CMP qword ptr [RSP + 0x28],0x0
JNZ 0x00128532
MOV qword ptr [RSP + 0x60],0x0
JMP 0x00128635
LAB_00128532:
MOV AL,0x1
CMP dword ptr [RSP + 0x30],0x8
MOV byte ptr [RSP + 0x23],AL
JZ 0x0012854b
CMP dword ptr [RSP + 0x30],0x10
SETZ AL
MOV byte ptr [RSP + 0x23],AL
LAB_0012854b:
MOV AL,byte ptr [RSP + 0x23]
TEST AL,0x1
JNZ 0x00128555
JMP 0x00128557
LAB_00128555:
JMP 0x00128576
LAB_00128557:
LEA RDI,[0x134fd9]
LEA RSI,[0x13500f]
MOV EDX,0x50f
LEA RCX,[0x1351fa]
CALL 0x0011a190
LAB_00128576:
CMP dword ptr [RSP + 0x30],0x10
JZ 0x001285dc
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x18],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x3c],0x0
JNZ 0x001285b1
MOV RAX,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xc],EAX
JMP 0x001285b9
LAB_001285b1:
MOV EAX,dword ptr [RSP + 0x3c]
MOV dword ptr [RSP + 0xc],EAX
LAB_001285b9:
MOV EDX,dword ptr [RSP + 0x1c]
MOV ESI,dword ptr [RSP + 0x18]
MOV RDI,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0xc]
CALL 0x0012bec0
MOV qword ptr [RSP + 0x28],RAX
MOV dword ptr [RSP + 0x30],0x10
LAB_001285dc:
CMP dword ptr [0x0013e4e0],0x0
JZ 0x0012862b
CMP dword ptr [RSP + 0x3c],0x0
JZ 0x001285f6
MOV EAX,dword ptr [RSP + 0x3c]
MOV dword ptr [RSP + 0x8],EAX
JMP 0x00128601
LAB_001285f6:
MOV RAX,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x8],EAX
LAB_00128601:
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x24],EAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x50]
MOV ESI,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x48]
MOV EDX,dword ptr [RAX]
MOVSXD RAX,dword ptr [RSP + 0x24]
SHL RAX,0x1
MOV ECX,EAX
CALL 0x001296c0
LAB_0012862b:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x60],RAX
LAB_00128635:
MOV RAX,qword ptr [RSP + 0x60]
ADD RSP,0x68
RET
|
/* stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int) */
uchar * stbi__load_and_postprocess_16bit
(stbi__context *param_1,int *param_2,int *param_3,int *param_4,int param_5)
{
int local_60;
int local_5c;
uchar *local_40;
int local_38 [3];
int local_2c;
int *local_28;
int *local_20;
int *local_18;
stbi__context *local_10;
uchar *local_8;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_40 = (uchar *)stbi__load_main(param_1,param_2,param_3,param_4,param_5,
(stbi__result_info *)local_38,0x10);
if (local_40 == (uchar *)0x0) {
local_8 = (uchar *)0x0;
}
else {
if (local_38[0] != 8 && local_38[0] != 0x10) {
/* WARNING: Subroutine does not return */
__assert_fail("ri.bits_per_channel == 8 || ri.bits_per_channel == 16",
"/workspace/llm4binary/github2025/SDL3Lite/dependencies/stb_image.h",0x50f,
"stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *, int *, int *, int *, int)"
);
}
if (local_38[0] != 0x10) {
if (local_2c == 0) {
local_5c = *local_28;
}
else {
local_5c = local_2c;
}
local_40 = (uchar *)stbi__convert_8_to_16(local_40,*local_18,*local_20,local_5c);
local_38[0] = 0x10;
}
if (stbi__vertically_flip_on_load_global != 0) {
if (local_2c == 0) {
local_60 = *local_28;
}
else {
local_60 = local_2c;
}
stbi__vertical_flip(local_40,*local_18,*local_20,(int)((long)local_60 << 1));
}
local_8 = local_40;
}
return local_8;
}
| |
41,305 | uf_space_prespace | eloqsql/storage/myisam/mi_packrec.c | static void uf_space_prespace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill((uchar*) to,(end-to),' ');
else
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
} | O0 | c | uf_space_prespace:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xc25f7
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xc261b
jmp 0xc2639
movq -0x10(%rbp), %rdi
callq 0xc12f0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xc2639
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
movl $0x20, %esi
callq 0x2a2a0
jmp 0xc26f1
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0xc267c
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movl %ecx, %edx
leaq 0x20addc(%rip), %rcx # 0x2cd450
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0xc268f
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0xbfaa0
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0xc26b1
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0xc26f1
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2a0
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0xc26ef
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x24(%rbp), %eax
addq %rax, %rdx
movq -0x20(%rbp), %rcx
callq 0xc1a00
jmp 0xc26f1
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| uf_space_prespace_0:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_C25F7
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_C261B
jmp short loc_C2639
loc_C25F7:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_C2639
loc_C261B:
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rax, [rbp+var_18]
sub rdx, rax
mov esi, 20h ; ' '
call _memset
jmp loc_C26F1
loc_C2639:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_C267C
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+1Ch]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+1Ch]
mov edx, ecx
lea rcx, mask_0
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_C268F
loc_C267C:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+1Ch]
call fill_and_get_bits_0
mov [rbp+var_28], eax
loc_C268F:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_C26B1
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_C26F1
loc_C26B1:
mov rdi, [rbp+var_18]
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_C26EF
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov eax, [rbp+var_24]
add rdx, rax
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_C26EF:
jmp short $+2
loc_C26F1:
add rsp, 30h
pop rbp
retn
| long long uf_space_prespace_0(long long a1, int *a2, long long a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
long long result; // rax
unsigned int v7; // eax
int v8; // ecx
unsigned int bits_0; // [rsp+8h] [rbp-28h]
if ( a2[1] )
{
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) == 0 )
goto LABEL_6;
return memset(a3, 32LL, &a4[-a3]);
}
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 < 0 )
return memset(a3, 32LL, &a4[-a3]);
LABEL_6:
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v7 = *a2;
v8 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v8;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v7 >> v8);
}
if ( (unsigned long long)bits_0 + a3 <= (unsigned long long)a4 )
{
memset(a3, 32LL, bits_0);
result = bits_0 + a3;
if ( (_BYTE *)result != a4 )
return decode_bytes_0(a1, (long long)a2, (_BYTE *)(bits_0 + a3), a4);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
| uf_space_prespace:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001c25f7
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001c261b
JMP 0x001c2639
LAB_001c25f7:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c12f0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001c2639
LAB_001c261b:
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
SUB RDX,RAX
MOV ESI,0x20
CALL 0x0012a2a0
JMP 0x001c26f1
LAB_001c2639:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JC 0x001c267c
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x1c]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x1c]
MOV EDX,ECX
LEA RCX,[0x3cd450]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001c268f
LAB_001c267c:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x1c]
CALL 0x001bfaa0
MOV dword ptr [RBP + -0x28],EAX
LAB_001c268f:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001c26b1
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x001c26f1
LAB_001c26b1:
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2a0
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001c26ef
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001c1a00
LAB_001c26ef:
JMP 0x001c26f1
LAB_001c26f1:
ADD RSP,0x30
POP RBP
RET
|
void uf_space_prespace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
if (param_2[1] < *(uint *)(param_1 + 0x1c)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x1c);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4);
}
if (param_4 < (long)param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)local_30);
if ((long)param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4);
}
}
}
else {
memset(param_3,0x20,param_4 - (long)param_3);
}
return;
}
| |
41,306 | uf_space_prespace | eloqsql/storage/myisam/mi_packrec.c | static void uf_space_prespace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill((uchar*) to,(end-to),' ');
else
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
} | O3 | c | uf_space_prespace:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x88727
movl (%r14), %r15d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r15d
jae 0x88744
subq %r12, %rbx
movq %r12, %rdi
movl $0x20, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a290
movq %r14, %rdi
callq 0x875a9
movl $0x1f, 0x4(%r14)
movl (%r14), %r15d
movl $0x1f, %eax
testl %r15d, %r15d
js 0x88706
movq %r13, %rdx
movl 0x1c(%r13), %r13d
movl %eax, %ecx
subl %r13d, %ecx
movq %rdx, -0x30(%rbp)
jae 0x88790
subl %eax, %r13d
movl %eax, %eax
leaq 0x6259e(%rip), %rcx # 0xead00
andl (%rcx,%rax,4), %r15d
movl %r13d, %ecx
shll %cl, %r15d
movq %r14, %rdi
callq 0x875a9
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r15d
jmp 0x887a5
movl %ecx, 0x4(%r14)
shrl %cl, %r15d
movl 0x1c(%rdx), %eax
leaq 0x6255f(%rip), %rcx # 0xead00
andl (%rcx,%rax,4), %r15d
movl %r15d, %edx
leaq (%r12,%rdx), %r13
cmpq %rbx, %r13
jbe 0x887bb
movl $0x1, 0x28(%r14)
jmp 0x887ed
movq %r12, %rdi
movl $0x20, %esi
callq 0x2a290
cmpq %rbx, %r13
je 0x887ed
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x87e9a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| uf_space_prespace_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov r13, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_88727
mov r15d, [r14]
dec eax
mov [r14+4], eax
bt r15d, eax
jnb short loc_88744
loc_88706:
sub rbx, r12
mov rdi, r12
mov esi, 20h ; ' '
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
loc_88727:
mov rdi, r14
call fill_buffer_0
mov dword ptr [r14+4], 1Fh
mov r15d, [r14]
mov eax, 1Fh
test r15d, r15d
js short loc_88706
loc_88744:
mov rdx, r13
mov r13d, [r13+1Ch]
mov ecx, eax
sub ecx, r13d
mov [rbp+var_30], rdx
jnb short loc_88790
sub r13d, eax
mov eax, eax
lea rcx, mask_0
and r15d, [rcx+rax*4]
mov ecx, r13d
shl r15d, cl
mov rdi, r14
call fill_buffer_0
mov eax, 20h ; ' '
sub eax, r13d
mov [r14+4], eax
mov eax, [r14]
neg r13d
mov ecx, r13d
shr eax, cl
add r15d, eax
jmp short loc_887A5
loc_88790:
mov [r14+4], ecx
shr r15d, cl
mov eax, [rdx+1Ch]
lea rcx, mask_0
and r15d, [rcx+rax*4]
loc_887A5:
mov edx, r15d
lea r13, [r12+rdx]
cmp r13, rbx
jbe short loc_887BB
mov dword ptr [r14+28h], 1
jmp short loc_887ED
loc_887BB:
mov rdi, r12
mov esi, 20h ; ' '
call _memset
cmp r13, rbx
jz short loc_887ED
mov rdi, [rbp+var_30]
mov rsi, r14
mov rdx, r13
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes_0
loc_887ED:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long uf_space_prespace_0(long long a1, unsigned int *a2, long long a3, _BYTE *a4)
{
unsigned int v6; // eax
unsigned int v7; // r15d
unsigned int v8; // eax
long long result; // rax
unsigned int v10; // r13d
unsigned int v11; // ecx
int v12; // r13d
int v13; // r15d
unsigned int v14; // r15d
_BYTE *v15; // r13
v6 = a2[1];
if ( v6 )
{
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( _bittest((const int *)&v7, v8) )
return memset(a3, 32LL, &a4[-a3]);
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
v7 = *a2;
v8 = 31;
if ( (*a2 & 0x80000000) != 0 )
return memset(a3, 32LL, &a4[-a3]);
}
v10 = *(_DWORD *)(a1 + 28);
v11 = v8 - v10;
if ( v8 >= v10 )
{
a2[1] = v11;
result = *(unsigned int *)(a1 + 28);
v14 = mask_0[result] & (v7 >> v11);
}
else
{
v12 = v10 - v8;
v13 = (mask_0[v8] & v7) << v12;
fill_buffer_0((long long)a2);
a2[1] = 32 - v12;
result = *a2 >> -(char)v12;
v14 = result + v13;
}
v15 = (_BYTE *)(a3 + v14);
if ( v15 <= a4 )
{
result = memset(a3, 32LL, v14);
if ( v15 != a4 )
return (long long)decode_bytes_0(a1, (long long)a2, (_BYTE *)(a3 + v14), a4);
}
else
{
a2[10] = 1;
}
return result;
}
| uf_space_prespace:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV R13,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00188727
MOV R15D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R15D,EAX
JNC 0x00188744
LAB_00188706:
SUB RBX,R12
MOV RDI,R12
MOV ESI,0x20
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0012a290
LAB_00188727:
MOV RDI,R14
CALL 0x001875a9
MOV dword ptr [R14 + 0x4],0x1f
MOV R15D,dword ptr [R14]
MOV EAX,0x1f
TEST R15D,R15D
JS 0x00188706
LAB_00188744:
MOV RDX,R13
MOV R13D,dword ptr [R13 + 0x1c]
MOV ECX,EAX
SUB ECX,R13D
MOV qword ptr [RBP + -0x30],RDX
JNC 0x00188790
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1ead00]
AND R15D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R15D,CL
MOV RDI,R14
CALL 0x001875a9
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R15D,EAX
JMP 0x001887a5
LAB_00188790:
MOV dword ptr [R14 + 0x4],ECX
SHR R15D,CL
MOV EAX,dword ptr [RDX + 0x1c]
LEA RCX,[0x1ead00]
AND R15D,dword ptr [RCX + RAX*0x4]
LAB_001887a5:
MOV EDX,R15D
LEA R13,[R12 + RDX*0x1]
CMP R13,RBX
JBE 0x001887bb
MOV dword ptr [R14 + 0x28],0x1
JMP 0x001887ed
LAB_001887bb:
MOV RDI,R12
MOV ESI,0x20
CALL 0x0012a290
CMP R13,RBX
JZ 0x001887ed
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R14
MOV RDX,R13
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00187e9a
LAB_001887ed:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void uf_space_prespace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
ulong uVar1;
uint uVar2;
uint uVar3;
uint uVar4;
byte bVar5;
uint uVar6;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar6 = *param_2;
uVar4 = 0x1f;
if (-1 < (int)uVar6) goto LAB_00188744;
}
else {
uVar6 = *param_2;
uVar4 = param_2[1] - 1;
param_2[1] = uVar4;
if ((uVar6 >> (uVar4 & 0x1f) & 1) == 0) {
LAB_00188744:
uVar2 = *(uint *)(param_1 + 0x1c);
if (uVar4 < uVar2) {
uVar3 = (&mask)[uVar4];
bVar5 = (byte)(uVar2 - uVar4);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar2 - uVar4);
uVar6 = ((uVar6 & uVar3) << (bVar5 & 0x1f)) + (*param_2 >> (-bVar5 & 0x1f));
}
else {
param_2[1] = uVar4 - uVar2;
uVar6 = uVar6 >> ((byte)(uVar4 - uVar2) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
uVar1 = (long)param_3 + (ulong)uVar6;
if (param_4 < uVar1) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)uVar6);
if (uVar1 != param_4) {
decode_bytes(param_1,param_2,uVar1,param_4);
return;
}
}
return;
}
}
memset(param_3,0x20,param_4 - (long)param_3);
return;
}
| |
41,307 | ma_ft_update | eloqsql/storage/maria/ma_ft_update.c | int _ma_ft_update(MARIA_HA *info, uint keynr, uchar *keybuf,
const uchar *oldrec, const uchar *newrec, my_off_t pos)
{
int error= -1;
FT_WORD *oldlist,*newlist, *old_word, *new_word;
CHARSET_INFO *cs=info->s->keyinfo[keynr].seg->charset;
int cmp, cmp2;
DBUG_ENTER("_ma_ft_update");
if (!(old_word=oldlist=_ma_ft_parserecord(info, keynr, oldrec,
&info->ft_memroot)) ||
!(new_word=newlist=_ma_ft_parserecord(info, keynr, newrec,
&info->ft_memroot)))
goto err;
error=0;
while(old_word->pos && new_word->pos)
{
cmp= ha_compare_text(cs, (uchar*) old_word->pos,old_word->len,
(uchar*) new_word->pos,new_word->len,0);
cmp2= cmp ? 0 : (fabs(old_word->weight - new_word->weight) > 1.e-5);
if (cmp < 0 || cmp2)
{
MARIA_KEY key;
_ma_ft_make_key(info, &key, keynr, keybuf, old_word, pos);
if (_ma_ck_delete(info, &key))
{
error= -1;
goto err;
}
}
if (cmp > 0 || cmp2)
{
MARIA_KEY key;
_ma_ft_make_key(info, &key, keynr, keybuf, new_word,pos);
if ((error= _ma_ck_write(info, &key)))
goto err;
}
if (cmp<=0) old_word++;
if (cmp>=0) new_word++;
}
if (old_word->pos)
error= _ma_ft_erase(info,keynr,keybuf,old_word,pos);
else if (new_word->pos)
error= _ma_ft_store(info,keynr,keybuf,new_word,pos);
err:
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_RETURN(error);
} | O0 | c | ma_ft_update:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0xc(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movq 0xc0(%rax), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x328, %rcx # imm = 0x328
callq 0x8db80
movq %rax, -0x40(%rbp)
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x8dde4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x328, %rcx # imm = 0x328
callq 0x8db80
movq %rax, -0x48(%rbp)
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0x8dde9
jmp 0x8dfb2
movl $0x0, -0x34(%rbp)
movq -0x50(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, (%rcx)
movb %al, -0xa9(%rbp)
je 0x8de13
movq -0x58(%rbp), %rax
cmpq $0x0, (%rax)
setne %al
movb %al, -0xa9(%rbp)
movb -0xa9(%rbp), %al
testb $0x1, %al
jne 0x8de22
jmp 0x8df62
movq -0x60(%rbp), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq -0x50(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, %edx
movq -0x58(%rbp), %rax
movq (%rax), %rcx
movq -0x58(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, %r8d
xorl %r9d, %r9d
callq 0xf1830
movl %eax, -0x64(%rbp)
cmpl $0x0, -0x64(%rbp)
je 0x8de62
xorl %eax, %eax
movl %eax, -0xb0(%rbp)
jmp 0x8de99
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x58(%rbp), %rax
subsd 0x10(%rax), %xmm0
movaps 0xcc515(%rip), %xmm1 # 0x15a390
pand %xmm1, %xmm0
movsd 0xcc0c9(%rip), %xmm1 # 0x159f50
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
movl %eax, -0x68(%rbp)
cmpl $0x0, -0x64(%rbp)
jl 0x8deae
cmpl $0x0, -0x68(%rbp)
je 0x8deef
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movq -0x18(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x30(%rbp), %r9
leaq -0x88(%rbp), %rsi
callq 0x8dfe0
movq -0x8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x88c20
cmpb $0x0, %al
je 0x8deed
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
jmp 0x8dfb2
jmp 0x8deef
cmpl $0x0, -0x64(%rbp)
jg 0x8defb
cmpl $0x0, -0x68(%rbp)
je 0x8df39
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movq -0x18(%rbp), %rcx
movq -0x58(%rbp), %r8
movq -0x30(%rbp), %r9
leaq -0xa8(%rbp), %rsi
callq 0x8dfe0
movq -0x8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x83950
movsbl %al, %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
je 0x8df37
jmp 0x8dfb2
jmp 0x8df39
cmpl $0x0, -0x64(%rbp)
jg 0x8df4b
movq -0x50(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x50(%rbp)
cmpl $0x0, -0x64(%rbp)
jl 0x8df5d
movq -0x58(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x58(%rbp)
jmp 0x8ddf0
movq -0x50(%rbp), %rax
cmpq $0x0, (%rax)
je 0x8df89
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x8e150
movl %eax, -0x34(%rbp)
jmp 0x8dfb0
movq -0x58(%rbp), %rax
cmpq $0x0, (%rax)
je 0x8dfae
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x8e1e0
movl %eax, -0x34(%rbp)
jmp 0x8dfb0
jmp 0x8dfb2
movq -0x8(%rbp), %rdi
addq $0x328, %rdi # imm = 0x328
movl $0x2, %esi
callq 0xeed90
movl -0x34(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0xb4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
nop
| _ma_ft_update:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov [rbp+var_34], 0FFFFFFFFh
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_C]
imul rcx, 118h
add rax, rcx
mov rax, [rax+0C0h]
mov rax, [rax]
mov [rbp+var_60], rax
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 328h
call _ma_ft_parserecord
mov [rbp+var_40], rax
mov [rbp+var_50], rax
cmp rax, 0
jz short loc_8DDE4
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_8]
add rcx, 328h
call _ma_ft_parserecord
mov [rbp+var_48], rax
mov [rbp+var_58], rax
cmp rax, 0
jnz short loc_8DDE9
loc_8DDE4:
jmp loc_8DFB2
loc_8DDE9:
mov [rbp+var_34], 0
loc_8DDF0:
mov rcx, [rbp+var_50]
xor eax, eax
cmp qword ptr [rcx], 0
mov [rbp+var_A9], al
jz short loc_8DE13
mov rax, [rbp+var_58]
cmp qword ptr [rax], 0
setnz al
mov [rbp+var_A9], al
loc_8DE13:
mov al, [rbp+var_A9]
test al, 1
jnz short loc_8DE22
jmp loc_8DF62
loc_8DE22:
mov rdi, [rbp+var_60]
mov rax, [rbp+var_50]
mov rsi, [rax]
mov rax, [rbp+var_50]
mov eax, [rax+8]
mov edx, eax
mov rax, [rbp+var_58]
mov rcx, [rax]
mov rax, [rbp+var_58]
mov eax, [rax+8]
mov r8d, eax
xor r9d, r9d
call ha_compare_text
mov [rbp+var_64], eax
cmp [rbp+var_64], 0
jz short loc_8DE62
xor eax, eax
mov [rbp+var_B0], eax
jmp short loc_8DE99
loc_8DE62:
mov rax, [rbp+var_50]
movsd xmm0, qword ptr [rax+10h]
mov rax, [rbp+var_58]
subsd xmm0, qword ptr [rax+10h]
movaps xmm1, cs:xmmword_15A390
pand xmm0, xmm1
movsd xmm1, cs:qword_159F50
ucomisd xmm0, xmm1
setnbe al
and al, 1
movzx eax, al
mov [rbp+var_B0], eax
loc_8DE99:
mov eax, [rbp+var_B0]
mov [rbp+var_68], eax
cmp [rbp+var_64], 0
jl short loc_8DEAE
cmp [rbp+var_68], 0
jz short loc_8DEEF
loc_8DEAE:
mov rdi, [rbp+var_8]
mov edx, [rbp+var_C]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_50]
mov r9, [rbp+var_30]
lea rsi, [rbp+var_88]
call _ma_ft_make_key
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_88]
call _ma_ck_delete
cmp al, 0
jz short loc_8DEED
mov [rbp+var_34], 0FFFFFFFFh
jmp loc_8DFB2
loc_8DEED:
jmp short $+2
loc_8DEEF:
cmp [rbp+var_64], 0
jg short loc_8DEFB
cmp [rbp+var_68], 0
jz short loc_8DF39
loc_8DEFB:
mov rdi, [rbp+var_8]
mov edx, [rbp+var_C]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_58]
mov r9, [rbp+var_30]
lea rsi, [rbp+var_A8]
call _ma_ft_make_key
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_A8]
call _ma_ck_write
movsx eax, al
mov [rbp+var_34], eax
cmp eax, 0
jz short loc_8DF37
jmp short loc_8DFB2
loc_8DF37:
jmp short $+2
loc_8DF39:
cmp [rbp+var_64], 0
jg short loc_8DF4B
mov rax, [rbp+var_50]
add rax, 18h
mov [rbp+var_50], rax
loc_8DF4B:
cmp [rbp+var_64], 0
jl short loc_8DF5D
mov rax, [rbp+var_58]
add rax, 18h
mov [rbp+var_58], rax
loc_8DF5D:
jmp loc_8DDF0
loc_8DF62:
mov rax, [rbp+var_50]
cmp qword ptr [rax], 0
jz short loc_8DF89
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_50]
mov r8, [rbp+var_30]
call _ma_ft_erase
mov [rbp+var_34], eax
jmp short loc_8DFB0
loc_8DF89:
mov rax, [rbp+var_58]
cmp qword ptr [rax], 0
jz short loc_8DFAE
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_58]
mov r8, [rbp+var_30]
call _ma_ft_store
mov [rbp+var_34], eax
loc_8DFAE:
jmp short $+2
loc_8DFB0:
jmp short $+2
loc_8DFB2:
mov rdi, [rbp+var_8]
add rdi, 328h
mov esi, 2
call free_root
mov eax, [rbp+var_34]
mov [rbp+var_B4], eax
mov eax, [rbp+var_B4]
add rsp, 0C0h
pop rbp
retn
| long long ma_ft_update(long long *a1, unsigned int a2, long long a3, long long a4, long long a5, long long a6)
{
__m128i v6; // xmm0
char v7; // al
BOOL v9; // [rsp+10h] [rbp-B0h]
bool v10; // [rsp+17h] [rbp-A9h]
_BYTE v11[32]; // [rsp+18h] [rbp-A8h] BYREF
long long v12[4]; // [rsp+38h] [rbp-88h] BYREF
BOOL v13; // [rsp+58h] [rbp-68h]
int v14; // [rsp+5Ch] [rbp-64h]
long long v15; // [rsp+60h] [rbp-60h]
long long v16; // [rsp+68h] [rbp-58h]
long long v17; // [rsp+70h] [rbp-50h]
long long v18; // [rsp+78h] [rbp-48h]
long long v19; // [rsp+80h] [rbp-40h]
unsigned int v20; // [rsp+8Ch] [rbp-34h]
long long v21; // [rsp+90h] [rbp-30h]
long long v22; // [rsp+98h] [rbp-28h]
long long v23; // [rsp+A0h] [rbp-20h]
long long v24; // [rsp+A8h] [rbp-18h]
unsigned int v25; // [rsp+B4h] [rbp-Ch]
long long *v26; // [rsp+B8h] [rbp-8h]
v26 = a1;
v25 = a2;
v24 = a3;
v23 = a4;
v22 = a5;
v21 = a6;
v20 = -1;
v15 = **(_QWORD **)(280LL * a2 + *(_QWORD *)(*a1 + 1392) + 192);
v19 = ma_ft_parserecord(a1, a2, a4, (long long)(a1 + 101));
v17 = v19;
if ( v19 )
{
v18 = ma_ft_parserecord(v26, v25, v22, (long long)(v26 + 101));
v16 = v18;
if ( v18 )
{
v20 = 0;
while ( 1 )
{
v10 = 0;
if ( *(_QWORD *)v17 )
v10 = *(_QWORD *)v16 != 0LL;
if ( !v10 )
break;
v14 = ha_compare_text(
v15,
*(_QWORD *)v17,
*(unsigned int *)(v17 + 8),
*(_QWORD *)v16,
*(unsigned int *)(v16 + 8),
0LL);
if ( v14 )
{
v9 = 0;
}
else
{
v6 = (__m128i)*(unsigned long long *)(v17 + 16);
*(double *)v6.m128i_i64 = *(double *)v6.m128i_i64 - *(double *)(v16 + 16);
v9 = *(double *)_mm_and_si128(v6, (__m128i)xmmword_15A390).m128i_i64 > 0.00001;
}
v13 = v9;
if ( v14 < 0 || v13 )
{
ma_ft_make_key(v26, v12, v25, v24, v17, v21);
if ( ma_ck_delete(v26, v12) )
{
v20 = -1;
goto LABEL_27;
}
}
if ( v14 > 0 || v13 )
{
ma_ft_make_key(v26, v11, v25, v24, v16, v21);
v7 = ma_ck_write((long long)v26, (long long)v11);
v20 = v7;
if ( v7 )
goto LABEL_27;
}
if ( v14 <= 0 )
v17 += 24LL;
if ( v14 >= 0 )
v16 += 24LL;
}
if ( *(_QWORD *)v17 )
{
v20 = ma_ft_erase(v26, v25, v24, v17, v21);
}
else if ( *(_QWORD *)v16 )
{
v20 = ma_ft_store(v26, v25, v24, v16, v21);
}
}
}
LABEL_27:
free_root(v26 + 101, 2LL);
return v20;
}
| _ma_ft_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
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 dword ptr [RBP + -0x34],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0xc]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x328
CALL 0x0018db80
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JZ 0x0018dde4
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x328
CALL 0x0018db80
MOV qword ptr [RBP + -0x48],RAX
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JNZ 0x0018dde9
LAB_0018dde4:
JMP 0x0018dfb2
LAB_0018dde9:
MOV dword ptr [RBP + -0x34],0x0
LAB_0018ddf0:
MOV RCX,qword ptr [RBP + -0x50]
XOR EAX,EAX
CMP qword ptr [RCX],0x0
MOV byte ptr [RBP + -0xa9],AL
JZ 0x0018de13
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX],0x0
SETNZ AL
MOV byte ptr [RBP + -0xa9],AL
LAB_0018de13:
MOV AL,byte ptr [RBP + -0xa9]
TEST AL,0x1
JNZ 0x0018de22
JMP 0x0018df62
LAB_0018de22:
MOV RDI,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x8]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x58]
MOV EAX,dword ptr [RAX + 0x8]
MOV R8D,EAX
XOR R9D,R9D
CALL 0x001f1830
MOV dword ptr [RBP + -0x64],EAX
CMP dword ptr [RBP + -0x64],0x0
JZ 0x0018de62
XOR EAX,EAX
MOV dword ptr [RBP + -0xb0],EAX
JMP 0x0018de99
LAB_0018de62:
MOV RAX,qword ptr [RBP + -0x50]
MOVSD XMM0,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x58]
SUBSD XMM0,qword ptr [RAX + 0x10]
MOVAPS XMM1,xmmword ptr [0x0025a390]
PAND XMM0,XMM1
MOVSD XMM1,qword ptr [0x00259f50]
UCOMISD XMM0,XMM1
SETA AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0xb0],EAX
LAB_0018de99:
MOV EAX,dword ptr [RBP + -0xb0]
MOV dword ptr [RBP + -0x68],EAX
CMP dword ptr [RBP + -0x64],0x0
JL 0x0018deae
CMP dword ptr [RBP + -0x68],0x0
JZ 0x0018deef
LAB_0018deae:
MOV RDI,qword ptr [RBP + -0x8]
MOV EDX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x50]
MOV R9,qword ptr [RBP + -0x30]
LEA RSI,[RBP + -0x88]
CALL 0x0018dfe0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x88]
CALL 0x00188c20
CMP AL,0x0
JZ 0x0018deed
MOV dword ptr [RBP + -0x34],0xffffffff
JMP 0x0018dfb2
LAB_0018deed:
JMP 0x0018deef
LAB_0018deef:
CMP dword ptr [RBP + -0x64],0x0
JG 0x0018defb
CMP dword ptr [RBP + -0x68],0x0
JZ 0x0018df39
LAB_0018defb:
MOV RDI,qword ptr [RBP + -0x8]
MOV EDX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x30]
LEA RSI,[RBP + -0xa8]
CALL 0x0018dfe0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0xa8]
CALL 0x00183950
MOVSX EAX,AL
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JZ 0x0018df37
JMP 0x0018dfb2
LAB_0018df37:
JMP 0x0018df39
LAB_0018df39:
CMP dword ptr [RBP + -0x64],0x0
JG 0x0018df4b
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x18
MOV qword ptr [RBP + -0x50],RAX
LAB_0018df4b:
CMP dword ptr [RBP + -0x64],0x0
JL 0x0018df5d
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x18
MOV qword ptr [RBP + -0x58],RAX
LAB_0018df5d:
JMP 0x0018ddf0
LAB_0018df62:
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX],0x0
JZ 0x0018df89
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x0018e150
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0018dfb0
LAB_0018df89:
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX],0x0
JZ 0x0018dfae
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x58]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x0018e1e0
MOV dword ptr [RBP + -0x34],EAX
LAB_0018dfae:
JMP 0x0018dfb0
LAB_0018dfb0:
JMP 0x0018dfb2
LAB_0018dfb2:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x328
MOV ESI,0x2
CALL 0x001eed90
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0xb4],EAX
MOV EAX,dword ptr [RBP + -0xb4]
ADD RSP,0xc0
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int _ma_ft_update(long *param_1,uint param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6)
{
char cVar1;
bool bVar2;
uint local_b8;
int1 local_b0 [32];
int1 local_90 [32];
uint local_70;
int local_6c;
int8 local_68;
long *local_60;
long *local_58;
long *local_50;
long *local_48;
int local_3c;
int8 local_38;
int8 local_30;
int8 local_28;
int8 local_20;
uint local_14;
long *local_10;
local_3c = -1;
local_68 = **(int8 **)(*(long *)(*param_1 + 0x570) + (ulong)param_2 * 0x118 + 0xc0);
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_14 = param_2;
local_10 = param_1;
local_58 = (long *)_ma_ft_parserecord(param_1,param_2,param_4,param_1 + 0x65);
local_48 = local_58;
if ((local_58 != (long *)0x0) &&
(local_60 = (long *)_ma_ft_parserecord(local_10,local_14,local_30,local_10 + 0x65),
local_50 = local_60, local_60 != (long *)0x0)) {
local_3c = 0;
while( true ) {
bVar2 = false;
if (*local_58 != 0) {
bVar2 = *local_60 != 0;
}
if (!bVar2) break;
local_6c = ha_compare_text(local_68,*local_58,(int)local_58[1],*local_60,(int)local_60[1],0);
if (local_6c == 0) {
local_b8 = (uint)(DAT_00259f50 <
(double)((ulong)((double)local_58[2] - (double)local_60[2]) & _DAT_0025a390
));
}
else {
local_b8 = 0;
}
local_70 = local_b8;
if ((local_6c < 0) || (local_b8 != 0)) {
_ma_ft_make_key(local_10,local_90,local_14,local_20,local_58);
cVar1 = _ma_ck_delete(local_10,local_90);
if (cVar1 != '\0') {
local_3c = -1;
goto LAB_0018dfb2;
}
}
if ((0 < local_6c) || (local_70 != 0)) {
_ma_ft_make_key(local_10,local_b0,local_14,local_20,local_60);
cVar1 = _ma_ck_write(local_10,local_b0);
local_3c = (int)cVar1;
if (local_3c != 0) goto LAB_0018dfb2;
}
if (local_6c < 1) {
local_58 = local_58 + 3;
}
if (-1 < local_6c) {
local_60 = local_60 + 3;
}
}
if (*local_58 == 0) {
if (*local_60 != 0) {
local_3c = _ma_ft_store(local_10,local_14,local_20,local_60,local_38);
}
}
else {
local_3c = _ma_ft_erase(local_10,local_14,local_20,local_58,local_38);
}
}
LAB_0018dfb2:
free_root(local_10 + 0x65,2);
return local_3c;
}
| |
41,308 | vec_czero | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.h | static inline void vec_czero(void *ret, size_t num, bool_t cbit)
{
limb_t *rp = (limb_t *)ret;
size_t i;
limb_t mask;
launder(cbit);
mask = (limb_t)0 - (cbit^1);
num /= sizeof(limb_t);
for (i = 0; i < num; i++)
rp[i] &= mask;
} | O0 | c | vec_czero:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
xorq $0x1, %rcx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x10(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x341c1
movq -0x30(%rbp), %rdx
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x34195
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| vec_czero:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_18]
xor rcx, 1
xor eax, eax
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
shr rax, 3
mov [rbp+var_10], rax
mov [rbp+var_28], 0
loc_34195:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnb short loc_341C1
mov rdx, [rbp+var_30]
mov rax, [rbp+var_20]
mov rcx, [rbp+var_28]
and rdx, [rax+rcx*8]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_34195
loc_341C1:
pop rbp
retn
| unsigned long long vec_czero(long long a1, unsigned long long a2, long long a3)
{
unsigned long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-28h]
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= a2 >> 3 )
break;
*(_QWORD *)(a1 + 8 * i) &= -(a3 ^ 1);
}
return result;
}
| vec_czero:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x18]
XOR RCX,0x1
XOR EAX,EAX
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x3
MOV qword ptr [RBP + -0x10],RAX
MOV qword ptr [RBP + -0x28],0x0
LAB_00134195:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x001341c1
MOV RDX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
AND RDX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00134195
LAB_001341c1:
POP RBP
RET
|
void vec_czero(long param_1,ulong param_2,ulong param_3)
{
int8 local_30;
for (local_30 = 0; local_30 < param_2 >> 3; local_30 = local_30 + 1) {
*(ulong *)(param_1 + local_30 * 8) = -(param_3 ^ 1) & *(ulong *)(param_1 + local_30 * 8);
}
return;
}
| |
41,309 | common_log_main() | monkey531[P]llama/common/log.cpp | struct common_log * common_log_main() {
static struct common_log log;
return &log;
} | O3 | cpp | common_log_main():
pushq %rbx
movb 0x61bce(%rip), %al # 0x132640
testb %al, %al
je 0xd0a7f
leaq 0x61af3(%rip), %rax # 0x132570
popq %rbx
retq
leaq 0x61bba(%rip), %rdi # 0x132640
callq 0x1c130
testl %eax, %eax
je 0xd0a76
leaq 0x61ada(%rip), %rdi # 0x132570
movl $0x100, %esi # imm = 0x100
callq 0xd116a
leaq 0x10d(%rip), %rdi # 0xd0bb4
leaq 0x61ac2(%rip), %rsi # 0x132570
leaq 0x60ec3(%rip), %rdx # 0x131978
callq 0x1b7f0
leaq 0x61b7f(%rip), %rdi # 0x132640
callq 0x1b600
jmp 0xd0a76
movq %rax, %rbx
leaq 0x61b6e(%rip), %rdi # 0x132640
callq 0x1b5f0
movq %rbx, %rdi
callq 0x1c0d0
| _Z15common_log_mainv:
push rbx
mov al, cs:_ZGVZ15common_log_mainvE3log; `guard variable for'common_log_main(void)::log
test al, al
jz short loc_D0A7F
loc_D0A76:
lea rax, _ZZ15common_log_mainvE3log; common_log_main(void)::log
pop rbx
retn
loc_D0A7F:
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_acquire
test eax, eax
jz short loc_D0A76
lea rdi, _ZZ15common_log_mainvE3log; this
mov esi, 100h; unsigned __int64
call _ZN10common_logC2Em; common_log::common_log(ulong)
lea rdi, _ZN10common_logD2Ev; lpfunc
lea rsi, _ZZ15common_log_mainvE3log; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_release
jmp short loc_D0A76
mov rbx, rax
lea rdi, _ZGVZ15common_log_mainvE3log; __guard *
call ___cxa_guard_abort
mov rdi, rbx
call __Unwind_Resume
| void *common_log_main(void)
{
if ( !(_BYTE)`guard variable for'common_log_main(void)::log
&& __cxa_guard_acquire(&`guard variable for'common_log_main(void)::log) )
{
common_log::common_log((common_log *)&common_log_main(void)::log, 0x100uLL);
__cxa_atexit(common_log::~common_log, &common_log_main(void)::log, &_dso_handle);
__cxa_guard_release(&`guard variable for'common_log_main(void)::log);
}
return &common_log_main(void)::log;
}
| common_log_main:
PUSH RBX
MOV AL,byte ptr [0x00232640]
TEST AL,AL
JZ 0x001d0a7f
LAB_001d0a76:
LEA RAX,[0x232570]
POP RBX
RET
LAB_001d0a7f:
LEA RDI,[0x232640]
CALL 0x0011c130
TEST EAX,EAX
JZ 0x001d0a76
LAB_001d0a8f:
LEA RDI,[0x232570]
MOV ESI,0x100
CALL 0x001d116a
LAB_001d0aa0:
LEA RDI,[0x1d0bb4]
LEA RSI,[0x232570]
LEA RDX,[0x231978]
CALL 0x0011b7f0
LEA RDI,[0x232640]
CALL 0x0011b600
JMP 0x001d0a76
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* common_log_main() */
int1 * common_log_main(void)
{
int iVar1;
if (common_log_main()::log == '\0') {
iVar1 = __cxa_guard_acquire(&common_log_main()::log);
if (iVar1 != 0) {
/* try { // try from 001d0a8f to 001d0a9f has its CatchHandler @ 001d0ac8 */
common_log::common_log((common_log *)common_log_main()::log,0x100);
__cxa_atexit(common_log::~common_log,common_log_main()::log,&__dso_handle);
__cxa_guard_release(&common_log_main()::log);
}
}
return common_log_main()::log;
}
| |
41,310 | end_key_cache_internal | eloqsql/mysys/mf_keycache.c | static
void end_key_cache_internal(KEY_CACHE *keycache, my_bool cleanup,
my_bool use_op_lock)
{
if (keycache->key_cache_inited)
{
keycache->interface_funcs->end(keycache->keycache_cb, cleanup);
if (cleanup)
{
if (keycache->keycache_cb)
{
my_free(keycache->keycache_cb);
keycache->keycache_cb= 0;
}
/*
We do not destroy op_lock if we are going to reuse the same key cache.
This happens if we are called from repartition_key_cache_internal().
*/
if (use_op_lock)
pthread_mutex_destroy(&keycache->op_lock);
keycache->key_cache_inited= 0;
}
keycache->can_be_used= 0;
}
} | O0 | c | end_key_cache_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dl, %al
movb %sil, %cl
movq %rdi, -0x8(%rbp)
movb %cl, -0x9(%rbp)
movb %al, -0xa(%rbp)
movq -0x8(%rbp), %rax
cmpb $0x0, 0x48(%rax)
je 0xe8e88
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x40(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x8(%rcx), %rdi
movsbl -0x9(%rbp), %esi
callq *%rax
cmpb $0x0, -0x9(%rbp)
je 0xe8e80
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xe8e65
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0xfc410
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
cmpb $0x0, -0xa(%rbp)
je 0xe8e78
movq -0x8(%rbp), %rdi
addq $0x58, %rdi
callq 0x2a0f0
movq -0x8(%rbp), %rax
movb $0x0, 0x48(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x49(%rax)
addq $0x10, %rsp
popq %rbp
retq
nop
| end_key_cache_internal:
push rbp
mov rbp, rsp
sub rsp, 10h
mov al, dl
mov cl, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], cl
mov [rbp+var_A], al
mov rax, [rbp+var_8]
cmp byte ptr [rax+48h], 0
jz short loc_E8E88
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rax, [rax+40h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+8]
movsx esi, [rbp+var_9]
call rax
cmp [rbp+var_9], 0
jz short loc_E8E80
mov rax, [rbp+var_8]
cmp qword ptr [rax+8], 0
jz short loc_E8E65
mov rax, [rbp+var_8]
mov rdi, [rax+8]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
loc_E8E65:
cmp [rbp+var_A], 0
jz short loc_E8E78
mov rdi, [rbp+var_8]
add rdi, 58h ; 'X'
call _pthread_mutex_destroy
loc_E8E78:
mov rax, [rbp+var_8]
mov byte ptr [rax+48h], 0
loc_E8E80:
mov rax, [rbp+var_8]
mov byte ptr [rax+49h], 0
loc_E8E88:
add rsp, 10h
pop rbp
retn
| long long end_key_cache_internal(long long a1, char a2, char a3)
{
long long result; // rax
result = a1;
if ( *(_BYTE *)(a1 + 72) )
{
(*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(a1 + 16) + 64LL))(*(_QWORD *)(a1 + 8), (unsigned int)a2);
if ( a2 )
{
if ( *(_QWORD *)(a1 + 8) )
{
my_free(*(_QWORD *)(a1 + 8));
*(_QWORD *)(a1 + 8) = 0LL;
}
if ( a3 )
pthread_mutex_destroy(a1 + 88);
*(_BYTE *)(a1 + 72) = 0;
}
result = a1;
*(_BYTE *)(a1 + 73) = 0;
}
return result;
}
| end_key_cache_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV AL,DL
MOV CL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],CL
MOV byte ptr [RBP + -0xa],AL
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX + 0x48],0x0
JZ 0x001e8e88
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x8]
MOVSX ESI,byte ptr [RBP + -0x9]
CALL RAX
CMP byte ptr [RBP + -0x9],0x0
JZ 0x001e8e80
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x001e8e65
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001fc410
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
LAB_001e8e65:
CMP byte ptr [RBP + -0xa],0x0
JZ 0x001e8e78
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x58
CALL 0x0012a0f0
LAB_001e8e78:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x48],0x0
LAB_001e8e80:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x49],0x0
LAB_001e8e88:
ADD RSP,0x10
POP RBP
RET
|
void end_key_cache_internal(long param_1,char param_2,char param_3)
{
if (*(char *)(param_1 + 0x48) != '\0') {
(**(code **)(*(long *)(param_1 + 0x10) + 0x40))(*(int8 *)(param_1 + 8),(int)param_2);
if (param_2 != '\0') {
if (*(long *)(param_1 + 8) != 0) {
my_free(*(int8 *)(param_1 + 8));
*(int8 *)(param_1 + 8) = 0;
}
if (param_3 != '\0') {
pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x58));
}
*(int1 *)(param_1 + 0x48) = 0;
}
*(int1 *)(param_1 + 0x49) = 0;
}
return;
}
| |
41,311 | alloc_free | eloqsql/mysys/lf_alloc-pin.c | static void alloc_free(uchar *first,
uchar volatile *last,
LF_ALLOCATOR *allocator)
{
/*
we need a union here to access type-punned pointer reliably.
otherwise gcc -fstrict-aliasing will not see 'tmp' changed in the loop
*/
union { uchar * node; void *ptr; } tmp;
tmp.node= allocator->top;
do
{
anext_node(last)= tmp.node;
} while (!my_atomic_casptr((void **)(char *)&allocator->top,
(void **)&tmp.ptr, first) && LF_BACKOFF());
} | O3 | c | alloc_free:
movq 0x48(%rdx), %rax
movl 0x38(%rdx), %ecx
movq %rax, (%rsi,%rcx)
lock
cmpxchgq %rdi, 0x48(%rdx)
je 0xa6cbc
pushq %rbp
movq %rsp, %rbp
leaq 0x2e137c(%rip), %rcx # 0x388018
movl (%rcx), %r8d
testl %r8d, %r8d
je 0xa6cab
pause
decl %r8d
jne 0xa6ca4
movl 0x38(%rdx), %r8d
movq %rax, (%rsi,%r8)
lock
cmpxchgq %rdi, 0x48(%rdx)
jne 0xa6c9c
popq %rbp
retq
| alloc_free:
mov rax, [rdx+48h]
mov ecx, [rdx+38h]
mov [rsi+rcx], rax
lock cmpxchg [rdx+48h], rdi
jz short locret_A6CBC
push rbp
mov rbp, rsp
lea rcx, my_cpu_relax_multiplier
loc_A6C9C:
mov r8d, [rcx]
test r8d, r8d
jz short loc_A6CAB
loc_A6CA4:
pause
dec r8d
jnz short loc_A6CA4
loc_A6CAB:
mov r8d, [rdx+38h]
mov [rsi+r8], rax
lock cmpxchg [rdx+48h], rdi
jnz short loc_A6C9C
pop rbp
locret_A6CBC:
retn
| signed long long alloc_free(signed long long a1, long long a2, long long a3)
{
signed long long v3; // rax
signed long long result; // rax
signed long long v5; // rtt
int i; // r8d
signed long long v7; // rtt
v3 = *(_QWORD *)(a3 + 72);
*(_QWORD *)(a2 + *(unsigned int *)(a3 + 56)) = v3;
v5 = v3;
result = _InterlockedCompareExchange64((volatile signed long long *)(a3 + 72), a1, v3);
if ( v5 != result )
{
do
{
for ( i = my_cpu_relax_multiplier; i; --i )
_mm_pause();
*(_QWORD *)(a2 + *(unsigned int *)(a3 + 56)) = result;
v7 = result;
result = _InterlockedCompareExchange64((volatile signed long long *)(a3 + 72), a1, result);
}
while ( v7 != result );
}
return result;
}
| alloc_free:
MOV RAX,qword ptr [RDX + 0x48]
MOV ECX,dword ptr [RDX + 0x38]
MOV qword ptr [RSI + RCX*0x1],RAX
CMPXCHG.LOCK qword ptr [RDX + 0x48],RDI
JZ 0x001a6cbc
PUSH RBP
MOV RBP,RSP
LEA RCX,[0x488018]
LAB_001a6c9c:
MOV R8D,dword ptr [RCX]
TEST R8D,R8D
JZ 0x001a6cab
LAB_001a6ca4:
PAUSE
DEC R8D
JNZ 0x001a6ca4
LAB_001a6cab:
MOV R8D,dword ptr [RDX + 0x38]
MOV qword ptr [RSI + R8*0x1],RAX
CMPXCHG.LOCK qword ptr [RDX + 0x48],RDI
JNZ 0x001a6c9c
POP RBP
LAB_001a6cbc:
RET
|
void alloc_free(long param_1,long param_2,long param_3)
{
int iVar1;
long lVar2;
long lVar3;
bool bVar4;
lVar3 = *(long *)(param_3 + 0x48);
*(long *)(param_2 + (ulong)*(uint *)(param_3 + 0x38)) = lVar3;
LOCK();
lVar2 = *(long *)(param_3 + 0x48);
bVar4 = lVar3 == lVar2;
if (bVar4) {
*(long *)(param_3 + 0x48) = param_1;
lVar2 = lVar3;
}
UNLOCK();
while (iVar1 = my_cpu_relax_multiplier, !bVar4) {
for (; iVar1 != 0; iVar1 = iVar1 + -1) {
}
*(long *)(param_2 + (ulong)*(uint *)(param_3 + 0x38)) = lVar2;
LOCK();
lVar3 = *(long *)(param_3 + 0x48);
bVar4 = lVar2 == lVar3;
if (bVar4) {
*(long *)(param_3 + 0x48) = param_1;
lVar3 = lVar2;
}
UNLOCK();
lVar2 = lVar3;
}
return;
}
| |
41,312 | ma_hashtbl_search | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | void* ma_hashtbl_search(MA_HASHTBL *hash,const uchar *key,uint length)
{
MA_HASHTBL_LINK *pos;
uint flag,idx;
flag=1;
if (hash->records)
{
idx=hash_mask((*hash->calc_hashnr)(key,length ? length :
hash->key_length),
hash->blength,hash->records);
do
{
pos= dynamic_element(&hash->array,idx,MA_HASHTBL_LINK*);
if (!hashcmp(hash,pos,key,length))
{
hash->current_record= idx;
return (pos->data);
}
if (flag)
{
flag=0; /* Reset flag */
if (hash_rec_mask(hash,pos,hash->blength,hash->records) != idx)
break; /* Wrong link */
}
}
while ((idx=pos->next) != NO_RECORD);
}
hash->current_record= NO_RECORD;
return(0);
} | O3 | c | ma_hashtbl_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
je 0x55c30
movl %edx, %r14d
movq 0x40(%rbx), %rax
movl %edx, %esi
testl %edx, %edx
jne 0x55bbb
movl 0x4(%rbx), %esi
movq -0x30(%rbp), %rdi
callq *%rax
movl 0xc(%rbx), %r12d
leal -0x1(%r12), %ecx
andl %eax, %ecx
shrl %r12d
decl %r12d
andl %eax, %r12d
cmpl 0x8(%rbx), %ecx
cmovbl %ecx, %r12d
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movl %r12d, %ecx
shlq $0x4, %rcx
leaq (%rax,%rcx), %r13
movq 0x8(%rax,%rcx), %rsi
movq %rbx, %rdi
movq -0x30(%rbp), %rdx
movl %r14d, %ecx
callq 0x55c52
testl %eax, %eax
je 0x55c3b
testb $0x1, %r15b
jne 0x55c23
movl 0x8(%rbx), %ecx
movl 0xc(%rbx), %edx
movq 0x8(%r13), %rsi
movq %rbx, %rdi
callq 0x55cc8
cmpl %r12d, %eax
jne 0x55c30
movl (%r13), %r12d
movb $0x1, %r15b
cmpl $-0x1, %r12d
jne 0x55bdf
movl $0xffffffff, 0x10(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
jmp 0x55c43
movl %r12d, 0x10(%rbx)
movq 0x8(%r13), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ma_hashtbl_search:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_30], rsi
mov rbx, rdi
cmp dword ptr [rdi+8], 0
jz loc_55C30
mov r14d, edx
mov rax, [rbx+40h]
mov esi, edx
test edx, edx
jnz short loc_55BBB
mov esi, [rbx+4]
loc_55BBB:
mov rdi, [rbp+var_30]
call rax
mov r12d, [rbx+0Ch]
lea ecx, [r12-1]
and ecx, eax
shr r12d, 1
dec r12d
and r12d, eax
cmp ecx, [rbx+8]
cmovb r12d, ecx
xor r15d, r15d
loc_55BDF:
mov rax, [rbx+18h]
mov ecx, r12d
shl rcx, 4
lea r13, [rax+rcx]
mov rsi, [rax+rcx+8]
mov rdi, rbx
mov rdx, [rbp+var_30]
mov ecx, r14d
call hashcmp
test eax, eax
jz short loc_55C3B
test r15b, 1
jnz short loc_55C23
mov ecx, [rbx+8]
mov edx, [rbx+0Ch]
mov rsi, [r13+8]
mov rdi, rbx
call hash_rec_mask
cmp eax, r12d
jnz short loc_55C30
loc_55C23:
mov r12d, [r13+0]
mov r15b, 1
cmp r12d, 0FFFFFFFFh
jnz short loc_55BDF
loc_55C30:
mov dword ptr [rbx+10h], 0FFFFFFFFh
xor eax, eax
jmp short loc_55C43
loc_55C3B:
mov [rbx+10h], r12d
mov rax, [r13+8]
loc_55C43:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_hashtbl_search(long long a1, long long a2, unsigned int a3)
{
long long v4; // rsi
int v5; // eax
unsigned int v6; // r12d
unsigned int v7; // ecx
unsigned int v8; // r12d
char v9; // r15
long long v10; // r13
if ( *(_DWORD *)(a1 + 8) )
{
v4 = a3;
if ( !a3 )
v4 = *(unsigned int *)(a1 + 4);
v5 = (*(long long ( **)(long long, long long))(a1 + 64))(a2, v4);
v6 = *(_DWORD *)(a1 + 12);
v7 = v5 & (v6 - 1);
v8 = v5 & ((v6 >> 1) - 1);
if ( v7 < *(_DWORD *)(a1 + 8) )
v8 = v7;
v9 = 0;
while ( 1 )
{
v10 = *(_QWORD *)(a1 + 24) + 16LL * v8;
if ( !(unsigned int)hashcmp(a1, *(_QWORD *)(v10 + 8), a2, a3) )
break;
if ( (v9 & 1) != 0
|| (unsigned int)hash_rec_mask(a1, *(_QWORD *)(v10 + 8), *(unsigned int *)(a1 + 12), *(unsigned int *)(a1 + 8)) == v8 )
{
v8 = *(_DWORD *)v10;
v9 = 1;
if ( *(_DWORD *)v10 != -1 )
continue;
}
goto LABEL_11;
}
*(_DWORD *)(a1 + 16) = v8;
return *(_QWORD *)(v10 + 8);
}
else
{
LABEL_11:
*(_DWORD *)(a1 + 16) = -1;
return 0LL;
}
}
| ma_hashtbl_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RBP + -0x30],RSI
MOV RBX,RDI
CMP dword ptr [RDI + 0x8],0x0
JZ 0x00155c30
MOV R14D,EDX
MOV RAX,qword ptr [RBX + 0x40]
MOV ESI,EDX
TEST EDX,EDX
JNZ 0x00155bbb
MOV ESI,dword ptr [RBX + 0x4]
LAB_00155bbb:
MOV RDI,qword ptr [RBP + -0x30]
CALL RAX
MOV R12D,dword ptr [RBX + 0xc]
LEA ECX,[R12 + -0x1]
AND ECX,EAX
SHR R12D,0x1
DEC R12D
AND R12D,EAX
CMP ECX,dword ptr [RBX + 0x8]
CMOVC R12D,ECX
XOR R15D,R15D
LAB_00155bdf:
MOV RAX,qword ptr [RBX + 0x18]
MOV ECX,R12D
SHL RCX,0x4
LEA R13,[RAX + RCX*0x1]
MOV RSI,qword ptr [RAX + RCX*0x1 + 0x8]
MOV RDI,RBX
MOV RDX,qword ptr [RBP + -0x30]
MOV ECX,R14D
CALL 0x00155c52
TEST EAX,EAX
JZ 0x00155c3b
TEST R15B,0x1
JNZ 0x00155c23
MOV ECX,dword ptr [RBX + 0x8]
MOV EDX,dword ptr [RBX + 0xc]
MOV RSI,qword ptr [R13 + 0x8]
MOV RDI,RBX
CALL 0x00155cc8
CMP EAX,R12D
JNZ 0x00155c30
LAB_00155c23:
MOV R12D,dword ptr [R13]
MOV R15B,0x1
CMP R12D,-0x1
JNZ 0x00155bdf
LAB_00155c30:
MOV dword ptr [RBX + 0x10],0xffffffff
XOR EAX,EAX
JMP 0x00155c43
LAB_00155c3b:
MOV dword ptr [RBX + 0x10],R12D
MOV RAX,qword ptr [R13 + 0x8]
LAB_00155c43:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ma_hashtbl_search(long param_1,int8 param_2,int param_3)
{
uint *puVar1;
uint uVar2;
int iVar3;
uint uVar4;
bool bVar5;
if (*(int *)(param_1 + 8) != 0) {
iVar3 = param_3;
if (param_3 == 0) {
iVar3 = *(int *)(param_1 + 4);
}
uVar2 = (**(code **)(param_1 + 0x40))(param_2,iVar3);
uVar4 = *(uint *)(param_1 + 0xc) - 1 & uVar2;
uVar2 = (*(uint *)(param_1 + 0xc) >> 1) - 1 & uVar2;
if (uVar4 < *(uint *)(param_1 + 8)) {
uVar2 = uVar4;
}
bVar5 = false;
do {
puVar1 = (uint *)(*(long *)(param_1 + 0x18) + (ulong)uVar2 * 0x10);
iVar3 = hashcmp(param_1,*(int8 *)(*(long *)(param_1 + 0x18) + 8 + (ulong)uVar2 * 0x10),
param_2,param_3);
if (iVar3 == 0) {
*(uint *)(param_1 + 0x10) = uVar2;
return *(int8 *)(puVar1 + 2);
}
if ((!bVar5) &&
(uVar4 = hash_rec_mask(param_1,*(int8 *)(puVar1 + 2),*(int4 *)(param_1 + 0xc),
*(int4 *)(param_1 + 8)), uVar4 != uVar2)) break;
uVar2 = *puVar1;
bVar5 = true;
} while (uVar2 != 0xffffffff);
}
*(int4 *)(param_1 + 0x10) = 0xffffffff;
return 0;
}
| |
41,313 | js_std_file_seek | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue js_std_file_seek(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
FILE *f = js_std_file_get(ctx, this_val);
int64_t pos;
int whence, ret;
if (!f)
return JS_EXCEPTION;
if (JS_ToInt64Ext(ctx, &pos, argv[0]))
return JS_EXCEPTION;
if (JS_ToInt32(ctx, &whence, argv[1]))
return JS_EXCEPTION;
#if defined(__linux__)
ret = fseeko(f, pos, whence);
#else
ret = fseek(f, pos, whence);
#endif
if (ret < 0)
ret = -errno;
return JS_NewInt32(ctx, ret);
} | O2 | c | js_std_file_seek:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movq %rdi, %r15
callq 0x113c6
pushq $0x6
popq %rbx
testq %rax, %rax
je 0x10fba
movq %rax, %r14
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x215b9
testl %eax, %eax
jne 0x10fba
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
leaq 0xc(%rsp), %rsi
movq %r15, %rdi
callq 0x215d7
testl %eax, %eax
je 0x10fcb
xorl %eax, %eax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %edx
movq %r14, %rdi
callq 0xe7d0
testl %eax, %eax
jns 0x10fec
callq 0xe0b0
movq %rax, %rcx
xorl %eax, %eax
subl (%rcx), %eax
movl %eax, %eax
xorl %ebx, %ebx
jmp 0x10fbc
| js_std_file_seek:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov r12, r8
mov r15, rdi
call js_std_file_get
push 6
pop rbx
test rax, rax
jz short loc_10FBA
mov r14, rax
mov rdx, [r12]
mov rcx, [r12+8]
lea rsi, [rsp+38h+var_28]
mov rdi, r15
call JS_ToInt64Ext
test eax, eax
jnz short loc_10FBA
mov rdx, [r12+10h]
mov rcx, [r12+18h]
lea rsi, [rsp+38h+var_2C]
mov rdi, r15
call JS_ToInt32
test eax, eax
jz short loc_10FCB
loc_10FBA:
xor eax, eax
loc_10FBC:
mov rdx, rbx
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
loc_10FCB:
mov rsi, [rsp+38h+var_28]
mov edx, [rsp+38h+var_2C]
mov rdi, r14
call _fseeko
test eax, eax
jns short loc_10FEC
call ___errno_location
mov rcx, rax
xor eax, eax
sub eax, [rcx]
loc_10FEC:
mov eax, eax
xor ebx, ebx
jmp short loc_10FBC
| long long js_std_file_seek(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
long long v6; // rax
long long v7; // r14
long long result; // rax
unsigned int v9; // [rsp+Ch] [rbp-2Ch] BYREF
_QWORD v10[5]; // [rsp+10h] [rbp-28h] BYREF
v6 = js_std_file_get(a1);
if ( !v6 )
return 0LL;
v7 = v6;
if ( (unsigned int)JS_ToInt64Ext(a1, v10, *a5, a5[1]) || (unsigned int)JS_ToInt32(a1, &v9, a5[2], a5[3]) )
return 0LL;
LODWORD(result) = fseeko(v7, v10[0], v9);
if ( (int)result < 0 )
LODWORD(result) = -*(_DWORD *)__errno_location();
return (unsigned int)result;
}
| js_std_file_seek:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,R8
MOV R15,RDI
CALL 0x001113c6
PUSH 0x6
POP RBX
TEST RAX,RAX
JZ 0x00110fba
MOV R14,RAX
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x8]
LEA RSI,[RSP + 0x10]
MOV RDI,R15
CALL 0x001215b9
TEST EAX,EAX
JNZ 0x00110fba
MOV RDX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x18]
LEA RSI,[RSP + 0xc]
MOV RDI,R15
CALL 0x001215d7
TEST EAX,EAX
JZ 0x00110fcb
LAB_00110fba:
XOR EAX,EAX
LAB_00110fbc:
MOV RDX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00110fcb:
MOV RSI,qword ptr [RSP + 0x10]
MOV EDX,dword ptr [RSP + 0xc]
MOV RDI,R14
CALL 0x0010e7d0
TEST EAX,EAX
JNS 0x00110fec
CALL 0x0010e0b0
MOV RCX,RAX
XOR EAX,EAX
SUB EAX,dword ptr [RCX]
LAB_00110fec:
MOV EAX,EAX
XOR EBX,EBX
JMP 0x00110fbc
|
int js_std_file_seek(int8 param_1)
{
int iVar1;
FILE *__stream;
int *piVar2;
int8 *in_R8;
int local_2c;
__off_t local_28;
__stream = (FILE *)js_std_file_get();
if (((__stream == (FILE *)0x0) ||
(iVar1 = JS_ToInt64Ext(param_1,&local_28,*in_R8,in_R8[1]), iVar1 != 0)) ||
(iVar1 = JS_ToInt32(param_1,&local_2c,in_R8[2],in_R8[3]), iVar1 != 0)) {
iVar1 = 0;
}
else {
iVar1 = fseeko(__stream,local_28,local_2c);
if (iVar1 < 0) {
piVar2 = __errno_location();
iVar1 = -*piVar2;
}
}
return iVar1;
}
| |
41,314 | my_strxfrm_pad_desc_and_reverse_nopad | eloqsql/strings/ctype-simple.c | size_t
my_strxfrm_pad_desc_and_reverse_nopad(CHARSET_INFO *cs,
uchar *str, uchar *frmend, uchar *strend,
uint nweights, uint flags, uint level)
{
if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE))
{
uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen);
memset(frmend, 0x00, fill_length);
frmend+= fill_length;
}
my_strxfrm_desc_and_reverse(str, frmend, flags, level);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend)
{
size_t fill_length= strend - frmend;
memset(frmend, 0x00, fill_length);
frmend= strend;
}
return frmend - str;
} | O3 | c | my_strxfrm_pad_desc_and_reverse_nopad:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movl 0x10(%rbp), %ecx
testl %r8d, %r8d
sete %al
cmpq %r15, %rdx
setae %sil
testb $0x40, %r12b
sete %dl
orb %al, %dl
orb %sil, %dl
jne 0x37d8d
movl %r8d, %r13d
movl %r15d, %eax
imull 0x98(%rdi), %r13d
subl %r14d, %eax
cmpl %eax, %r13d
cmovael %eax, %r13d
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x24190
movl 0x10(%rbp), %ecx
addq %r13, %r14
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x395ce
testb %r12b, %r12b
jns 0x37db8
cmpq %r15, %r14
jae 0x37db8
movq %r15, %rdx
subq %r14, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x24190
movq %r15, %r14
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strxfrm_pad_desc_and_reverse_nopad:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, r9d
mov r15, rcx
mov r14, rdx
mov rbx, rsi
mov ecx, [rbp+arg_0]
test r8d, r8d
setz al
cmp rdx, r15
setnb sil
test r12b, 40h
setz dl
or dl, al
or dl, sil
jnz short loc_37D8D
mov r13d, r8d
mov eax, r15d
imul r13d, [rdi+98h]
sub eax, r14d
cmp r13d, eax
cmovnb r13d, eax
mov rdi, r14
xor esi, esi
mov rdx, r13
call _memset
mov ecx, [rbp+arg_0]
add r14, r13
loc_37D8D:
mov rdi, rbx
mov rsi, r14
mov edx, r12d
call my_strxfrm_desc_and_reverse
test r12b, r12b
jns short loc_37DB8
cmp r14, r15
jnb short loc_37DB8
mov rdx, r15
sub rdx, r14
mov rdi, r14
xor esi, esi
call _memset
mov r14, r15
loc_37DB8:
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strxfrm_pad_desc_and_reverse_nopad(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
int a5,
unsigned int a6,
unsigned int a7)
{
unsigned long long v9; // r14
long long v10; // rcx
long long v11; // r13
v9 = a3;
v10 = a7;
if ( a3 < a4 && a5 != 0 && (a6 & 0x40) != 0 )
{
v11 = (unsigned int)(*(_DWORD *)(a1 + 152) * a5);
if ( (unsigned int)v11 >= (int)a4 - (int)a3 )
v11 = (unsigned int)(a4 - a3);
memset(a3, 0LL, v11);
v10 = a7;
v9 += v11;
}
my_strxfrm_desc_and_reverse(a2, v9, a6, v10);
if ( (a6 & 0x80u) != 0 && v9 < a4 )
{
memset(v9, 0LL, a4 - v9);
v9 = a4;
}
return v9 - a2;
}
| my_strxfrm_pad_desc_and_reverse_nopad:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,R9D
MOV R15,RCX
MOV R14,RDX
MOV RBX,RSI
MOV ECX,dword ptr [RBP + 0x10]
TEST R8D,R8D
SETZ AL
CMP RDX,R15
SETNC SIL
TEST R12B,0x40
SETZ DL
OR DL,AL
OR DL,SIL
JNZ 0x00137d8d
MOV R13D,R8D
MOV EAX,R15D
IMUL R13D,dword ptr [RDI + 0x98]
SUB EAX,R14D
CMP R13D,EAX
CMOVNC R13D,EAX
MOV RDI,R14
XOR ESI,ESI
MOV RDX,R13
CALL 0x00124190
MOV ECX,dword ptr [RBP + 0x10]
ADD R14,R13
LAB_00137d8d:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R12D
CALL 0x001395ce
TEST R12B,R12B
JNS 0x00137db8
CMP R14,R15
JNC 0x00137db8
MOV RDX,R15
SUB RDX,R14
MOV RDI,R14
XOR ESI,ESI
CALL 0x00124190
MOV R14,R15
LAB_00137db8:
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_strxfrm_pad_desc_and_reverse_nopad
(long param_1,long param_2,void *param_3,void *param_4,int param_5,uint param_6,
int4 param_7)
{
uint uVar1;
uint uVar2;
if (((param_6 & 0x40) != 0 && param_5 != 0) && param_3 < param_4) {
uVar2 = param_5 * *(int *)(param_1 + 0x98);
uVar1 = (int)param_4 - (int)param_3;
if (uVar1 <= uVar2) {
uVar2 = uVar1;
}
memset(param_3,0,(ulong)uVar2);
param_3 = (void *)((long)param_3 + (ulong)uVar2);
}
my_strxfrm_desc_and_reverse(param_2,param_3,param_6,param_7);
if (((char)param_6 < '\0') && (param_3 < param_4)) {
memset(param_3,0,(long)param_4 - (long)param_3);
param_3 = param_4;
}
return (long)param_3 - param_2;
}
| |
41,315 | my_caseup_str_mb | eloqsql/strings/ctype-mb.c | size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_upper;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
} | O0 | c | my_caseup_str_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x3f507
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movl 0x9c(%rax), %eax
addq %rax, %rdx
callq 0x3f520
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x3f4e5
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x3f505
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x3f4a4
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_caseup_str_mb:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+50h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
loc_3F4A4:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_3F507
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
mov rax, [rbp+var_8]
mov eax, [rax+9Ch]
add rdx, rax
call my_ismbchar_0
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_3F4E5
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_3F505
loc_3F4E5:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
loc_3F505:
jmp short loc_3F4A4
loc_3F507:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
sub rax, rcx
add rsp, 30h
pop rbp
retn
| _BYTE * my_caseup_str_mb(long long a1, _BYTE *a2)
{
long long v3; // [rsp+10h] [rbp-20h]
unsigned int v4; // [rsp+1Ch] [rbp-14h]
_BYTE *v5; // [rsp+20h] [rbp-10h]
v5 = a2;
v3 = *(_QWORD *)(a1 + 80);
while ( *v5 )
{
v4 = my_ismbchar_0(a1, v5, &v5[*(unsigned int *)(a1 + 156)]);
if ( v4 )
{
v5 += v4;
}
else
{
*v5 = *(_BYTE *)(v3 + (unsigned __int8)*v5);
++v5;
}
}
return (_BYTE *)(v5 - a2);
}
| my_caseup_str_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x50]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
LAB_0013f4a4:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x0013f507
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x9c]
ADD RDX,RAX
CALL 0x0013f520
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x0013f4e5
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0013f505
LAB_0013f4e5:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_0013f505:
JMP 0x0013f4a4
LAB_0013f507:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
ADD RSP,0x30
POP RBP
RET
|
long my_caseup_str_mb(long param_1,byte *param_2)
{
long lVar1;
uint uVar2;
byte *local_18;
lVar1 = *(long *)(param_1 + 0x50);
local_18 = param_2;
while (*local_18 != 0) {
uVar2 = my_ismbchar(param_1,local_18,local_18 + *(uint *)(param_1 + 0x9c));
if (uVar2 == 0) {
*local_18 = *(byte *)(lVar1 + (ulong)*local_18);
local_18 = local_18 + 1;
}
else {
local_18 = local_18 + uVar2;
}
}
return (long)local_18 - (long)param_2;
}
| |
41,316 | clip_image_u8_batch_free | monkey531[P]llama/examples/llava/clip.cpp | void clip_image_u8_batch_free(struct clip_image_u8_batch * batch) {
if (batch->size > 0) {
delete[] batch->data;
batch->size = 0;
}
} | O0 | cpp | clip_image_u8_batch_free:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jbe 0x93ef5
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, %rax
je 0x93ee8
movq 0x28(%rsp), %rcx
movq %rcx, %rax
addq $-0x8, %rax
movq %rax, 0x10(%rsp)
movq -0x8(%rcx), %rdx
movq %rdx, 0x18(%rsp)
shlq $0x5, %rdx
movq %rcx, %rax
addq %rdx, %rax
cmpq %rax, %rcx
movq %rax, 0x20(%rsp)
je 0x93ed1
movq 0x20(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x8(%rsp)
callq 0x79f20
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x20(%rsp)
jne 0x93eaa
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x5, %rsi
addq $0x8, %rsi
callq 0x7e030
movq 0x30(%rsp), %rax
movq $0x0, 0x8(%rax)
addq $0x38, %rsp
retq
nopw (%rax,%rax)
| clip_image_u8_batch_free:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov rax, [rsp+38h+var_8]
cmp qword ptr [rax+8], 0
jbe loc_93EF5
mov rax, [rsp+38h+var_8]
mov rax, [rax]
mov [rsp+38h+var_10], rax
cmp rax, 0
jz short loc_93EE8
mov rcx, [rsp+38h+var_10]
mov rax, rcx
add rax, 0FFFFFFFFFFFFFFF8h
mov [rsp+38h+var_28], rax
mov rdx, [rcx-8]
mov [rsp+38h+var_20], rdx
shl rdx, 5
mov rax, rcx
add rax, rdx
cmp rcx, rax
mov [rsp+38h+var_18], rax
jz short loc_93ED1
loc_93EAA:
mov rdi, [rsp+38h+var_18]
add rdi, 0FFFFFFFFFFFFFFE0h; this
mov [rsp+38h+var_30], rdi
call __ZN13clip_image_u8D2Ev; clip_image_u8::~clip_image_u8()
mov rcx, [rsp+38h+var_10]
mov rax, [rsp+38h+var_30]
cmp rax, rcx
mov [rsp+38h+var_18], rax
jnz short loc_93EAA
loc_93ED1:
mov rdi, [rsp+38h+var_28]; void *
mov rsi, [rsp+38h+var_20]
shl rsi, 5
add rsi, 8; unsigned __int64
call __ZdaPvm; operator delete[](void *,ulong)
loc_93EE8:
mov rax, [rsp+38h+var_8]
mov qword ptr [rax+8], 0
loc_93EF5:
add rsp, 38h
retn
| _QWORD * clip_image_u8_batch_free(_QWORD *a1)
{
_QWORD *result; // rax
long long v2; // [rsp+18h] [rbp-20h]
long long i; // [rsp+20h] [rbp-18h]
long long v4; // [rsp+28h] [rbp-10h]
result = a1;
if ( a1[1] )
{
v4 = *a1;
if ( *a1 )
{
v2 = *(_QWORD *)(v4 - 8);
for ( i = 32 * v2 + v4; i != v4; i -= 32LL )
clip_image_u8::~clip_image_u8((clip_image_u8 *)(i - 32));
operator delete[]((void *)(v4 - 8), 32 * v2 + 8);
}
result = a1;
a1[1] = 0LL;
}
return result;
}
| clip_image_u8_batch_free:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV RAX,qword ptr [RSP + 0x30]
CMP qword ptr [RAX + 0x8],0x0
JBE 0x00193ef5
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x28],RAX
CMP RAX,0x0
JZ 0x00193ee8
MOV RCX,qword ptr [RSP + 0x28]
MOV RAX,RCX
ADD RAX,-0x8
MOV qword ptr [RSP + 0x10],RAX
MOV RDX,qword ptr [RCX + -0x8]
MOV qword ptr [RSP + 0x18],RDX
SHL RDX,0x5
MOV RAX,RCX
ADD RAX,RDX
CMP RCX,RAX
MOV qword ptr [RSP + 0x20],RAX
JZ 0x00193ed1
LAB_00193eaa:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,-0x20
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00179f20
MOV RCX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
JNZ 0x00193eaa
LAB_00193ed1:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
SHL RSI,0x5
ADD RSI,0x8
CALL 0x0017e030
LAB_00193ee8:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX + 0x8],0x0
LAB_00193ef5:
ADD RSP,0x38
RET
|
void clip_image_u8_batch_free(long *param_1)
{
clip_image_u8 *pcVar1;
long lVar2;
clip_image_u8 *this;
if (param_1[1] != 0) {
pcVar1 = (clip_image_u8 *)*param_1;
if (pcVar1 != (clip_image_u8 *)0x0) {
lVar2 = *(long *)(pcVar1 + -8);
this = pcVar1 + lVar2 * 0x20;
while (pcVar1 != this) {
this = this + -0x20;
clip_image_u8::~clip_image_u8(this);
}
operator_delete__(pcVar1 + -8,lVar2 * 0x20 + 8);
}
param_1[1] = 0;
}
return;
}
| |
41,317 | mysql_stmt_close | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | my_bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
{
my_bool rc= 1;
if (stmt)
{
if (stmt->mysql && stmt->mysql->net.pvio)
mysql_stmt_internal_reset(stmt, 1);
rc= net_stmt_close(stmt, 1);
free(stmt->extension);
free(stmt);
}
return(rc);
} | O0 | c | mysql_stmt_close:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movb $0x1, -0x9(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2e3c8
movq -0x8(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x2e39e
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
cmpq $0x0, (%rax)
je 0x2e39e
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x2d290
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x2d4a0
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq 0x340(%rax), %rdi
callq 0x13520
movq -0x8(%rbp), %rdi
callq 0x13520
movb -0x9(%rbp), %al
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_stmt_close:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_9], 1
cmp [rbp+var_8], 0
jz short loc_2E3C8
mov rax, [rbp+var_8]
cmp qword ptr [rax+38h], 0
jz short loc_2E39E
mov rax, [rbp+var_8]
mov rax, [rax+38h]
cmp qword ptr [rax], 0
jz short loc_2E39E
mov rdi, [rbp+var_8]
mov esi, 1
call mysql_stmt_internal_reset
loc_2E39E:
mov rdi, [rbp+var_8]
mov esi, 1
call net_stmt_close
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov rdi, [rax+340h]
call _free
mov rdi, [rbp+var_8]
call _free
loc_2E3C8:
mov al, [rbp+var_9]
add rsp, 10h
pop rbp
retn
| char mysql_stmt_close(long long a1)
{
char v2; // [rsp+7h] [rbp-9h]
v2 = 1;
if ( a1 )
{
if ( *(_QWORD *)(a1 + 56) && **(_QWORD **)(a1 + 56) )
mysql_stmt_internal_reset(a1, 1);
v2 = net_stmt_close(a1, 1);
free(*(_QWORD *)(a1 + 832));
free(a1);
}
return v2;
}
| mysql_stmt_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],0x1
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0012e3c8
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x0012e39e
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x38]
CMP qword ptr [RAX],0x0
JZ 0x0012e39e
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x0012d290
LAB_0012e39e:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x0012d4a0
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x340]
CALL 0x00113520
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00113520
LAB_0012e3c8:
MOV AL,byte ptr [RBP + -0x9]
ADD RSP,0x10
POP RBP
RET
|
int1 mysql_stmt_close(void *param_1)
{
int1 local_11;
local_11 = 1;
if (param_1 != (void *)0x0) {
if ((*(long *)((long)param_1 + 0x38) != 0) && (**(long **)((long)param_1 + 0x38) != 0)) {
mysql_stmt_internal_reset(param_1,1);
}
local_11 = net_stmt_close(param_1,1);
free(*(void **)((long)param_1 + 0x340));
free(param_1);
}
return local_11;
}
| |
41,318 | my_wc_mb_eucjpms | eloqsql/strings/ctype-eucjpms.c | static int
my_wc_mb_eucjpms(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int jp;
if ((int) wc < 0x80) /* ASCII [00-7F] */
{
if (s >= e)
return MY_CS_TOOSMALL;
*s= (uchar) wc;
return 1;
}
if (wc > 0xFFFF)
return MY_CS_ILUNI;
if ((jp= unicode_to_jisx0208_eucjpms[wc])) /* JIS-X-0208 MS */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, jp);
return 2;
}
if ((jp= unicode_to_jisx0212_eucjpms[wc])) /* JIS-X-0212 MS */
{
if (s + 3 > e)
return MY_CS_TOOSMALL3;
s[0]= 0x8F;
MY_PUT_MB2(s + 1, jp);
return 3;
}
if (wc >= 0xFF61 && wc <= 0xFF9F) /* Half width Katakana */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
s[0]= 0x8E;
s[1]= (uchar) (wc - 0xFEC0);
return 2;
}
return MY_CS_ILUNI;
} | O3 | c | my_wc_mb_eucjpms:
cmpl $0x7f, %esi
jg 0x32aad
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x32ae2
movb %sil, (%rdx)
movl $0x1, %eax
retq
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0x32ae2
leaq 0xe6ac1(%rip), %rdi # 0x119580
movzwl (%rdi,%rsi,2), %edi
testw %di, %di
je 0x32ae3
leaq 0x2(%rdx), %rsi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rsi
ja 0x32ae2
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq 0x106a91(%rip), %rdi # 0x139580
movzwl (%rdi,%rsi,2), %ebx
testw %bx, %bx
je 0x32b16
leaq 0x3(%rdx), %rsi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rsi
ja 0x32b41
movb $-0x71, (%rdx)
movb %bh, 0x1(%rdx)
movb %bl, 0x2(%rdx)
movl $0x3, %eax
jmp 0x32b41
leaq -0xff61(%rsi), %rdi
cmpq $0x3e, %rdi
ja 0x32b41
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0x32b41
movb $-0x72, (%rdx)
addb $0x40, %sil
movb %sil, 0x1(%rdx)
movl $0x2, %eax
popq %rbx
popq %rbp
retq
| my_wc_mb_eucjpms:
cmp esi, 7Fh
jg short loc_32AAD
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_32AE2
mov [rdx], sil
mov eax, 1
retn
loc_32AAD:
xor eax, eax
cmp rsi, 0FFFFh
ja short locret_32AE2
lea rdi, unicode_to_jisx0208_eucjpms
movzx edi, word ptr [rdi+rsi*2]
test di, di
jz short loc_32AE3
lea rsi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rsi, rcx
ja short locret_32AE2
rol di, 8
mov [rdx], di
mov eax, 2
locret_32AE2:
retn
loc_32AE3:
push rbp
mov rbp, rsp
push rbx
lea rdi, unicode_to_jisx0212_eucjpms
movzx ebx, word ptr [rdi+rsi*2]
test bx, bx
jz short loc_32B16
lea rsi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rsi, rcx
ja short loc_32B41
mov byte ptr [rdx], 8Fh
mov [rdx+1], bh
mov [rdx+2], bl
mov eax, 3
jmp short loc_32B41
loc_32B16:
lea rdi, [rsi-0FF61h]
cmp rdi, 3Eh ; '>'
ja short loc_32B41
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_32B41
mov byte ptr [rdx], 8Eh
add sil, 40h ; '@'
mov [rdx+1], sil
mov eax, 2
loc_32B41:
pop rbx
pop rbp
retn
| long long my_wc_mb_eucjpms(long long a1, unsigned long long a2, unsigned long long a3, unsigned long long a4)
{
long long result; // rax
__int16 v5; // di
__int16 v6; // bx
if ( (int)a2 > 127 )
{
result = 0LL;
if ( a2 <= 0xFFFF )
{
v5 = unicode_to_jisx0208_eucjpms[a2];
if ( v5 )
{
result = 4294967194LL;
if ( a3 + 2 <= a4 )
{
*(_WORD *)a3 = __ROL2__(v5, 8);
return 2LL;
}
}
else
{
v6 = unicode_to_jisx0212_eucjpms[a2];
if ( v6 )
{
result = 4294967193LL;
if ( a3 + 3 <= a4 )
{
*(_BYTE *)a3 = -113;
*(_BYTE *)(a3 + 1) = HIBYTE(v6);
*(_BYTE *)(a3 + 2) = v6;
return 3LL;
}
}
else if ( a2 - 65377 <= 0x3E )
{
result = 4294967194LL;
if ( a3 + 2 <= a4 )
{
*(_BYTE *)a3 = -114;
*(_BYTE *)(a3 + 1) = a2 + 64;
return 2LL;
}
}
}
}
}
else
{
result = 4294967195LL;
if ( a3 < a4 )
{
*(_BYTE *)a3 = a2;
return 1LL;
}
}
return result;
}
| my_wc_mb_eucjpms:
CMP ESI,0x7f
JG 0x00132aad
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x00132ae2
MOV byte ptr [RDX],SIL
MOV EAX,0x1
RET
LAB_00132aad:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x00132ae2
LEA RDI,[0x219580]
MOVZX EDI,word ptr [RDI + RSI*0x2]
TEST DI,DI
JZ 0x00132ae3
LEA RSI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RSI,RCX
JA 0x00132ae2
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
LAB_00132ae2:
RET
LAB_00132ae3:
PUSH RBP
MOV RBP,RSP
PUSH RBX
LEA RDI,[0x239580]
MOVZX EBX,word ptr [RDI + RSI*0x2]
TEST BX,BX
JZ 0x00132b16
LEA RSI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RSI,RCX
JA 0x00132b41
MOV byte ptr [RDX],0x8f
MOV byte ptr [RDX + 0x1],BH
MOV byte ptr [RDX + 0x2],BL
MOV EAX,0x3
JMP 0x00132b41
LAB_00132b16:
LEA RDI,[RSI + -0xff61]
CMP RDI,0x3e
JA 0x00132b41
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x00132b41
MOV byte ptr [RDX],0x8e
ADD SIL,0x40
MOV byte ptr [RDX + 0x1],SIL
MOV EAX,0x2
LAB_00132b41:
POP RBX
POP RBP
RET
|
int8 my_wc_mb_eucjpms(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
short sVar2;
int8 uVar3;
if ((int)param_2 < 0x80) {
uVar3 = 0xffffff9b;
if (param_3 < param_4) {
*(char *)param_3 = (char)param_2;
return 1;
}
}
else {
uVar3 = 0;
if (param_2 < 0x10000) {
uVar1 = *(ushort *)(unicode_to_jisx0208_eucjpms + param_2 * 2);
if (uVar1 == 0) {
sVar2 = *(short *)(unicode_to_jisx0212_eucjpms + param_2 * 2);
if (sVar2 == 0) {
if ((param_2 - 0xff61 < 0x3f) && (uVar3 = 0xffffff9a, param_3 + 1 <= param_4)) {
*(char *)param_3 = -0x72;
*(char *)((long)param_3 + 1) = (char)param_2 + '@';
uVar3 = 2;
}
}
else {
uVar3 = 0xffffff99;
if ((ushort *)((long)param_3 + 3) <= param_4) {
*(char *)param_3 = -0x71;
*(char *)((long)param_3 + 1) = (char)((ushort)sVar2 >> 8);
*(char *)(param_3 + 1) = (char)sVar2;
uVar3 = 3;
}
}
return uVar3;
}
uVar3 = 0xffffff9a;
if (param_3 + 1 <= param_4) {
*param_3 = uVar1 << 8 | uVar1 >> 8;
uVar3 = 2;
}
}
}
return uVar3;
}
| |
41,319 | ma_tls_set_certs | eloqsql/libmariadb/libmariadb/secure/openssl.c | static int ma_tls_set_certs(MYSQL *mysql, SSL_CTX *ctx)
{
char *certfile= mysql->options.ssl_cert,
*keyfile= mysql->options.ssl_key;
char *pw= (mysql->options.extension) ?
mysql->options.extension->tls_pw : NULL;
/* add cipher */
if ((mysql->options.ssl_cipher &&
mysql->options.ssl_cipher[0] != 0))
{
if(
#ifdef TLS1_3_VERSION
SSL_CTX_set_ciphersuites(ctx, mysql->options.ssl_cipher) == 0 &&
#endif
SSL_CTX_set_cipher_list(ctx, mysql->options.ssl_cipher) == 0)
goto error;
}
/* ca_file and ca_path */
if (!SSL_CTX_load_verify_locations(ctx,
mysql->options.ssl_ca,
mysql->options.ssl_capath))
{
if (mysql->options.ssl_ca || mysql->options.ssl_capath)
goto error;
if (SSL_CTX_set_default_verify_paths(ctx) == 0)
goto error;
}
if (mysql->options.extension &&
(mysql->options.extension->ssl_crl || mysql->options.extension->ssl_crlpath))
{
X509_STORE *certstore;
if ((certstore= SSL_CTX_get_cert_store(ctx)))
{
if (X509_STORE_load_locations(certstore, mysql->options.extension->ssl_crl,
mysql->options.extension->ssl_crlpath) == 0)
goto error;
if (X509_STORE_set_flags(certstore, X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL) == 0)
goto error;
}
}
if (keyfile && !certfile)
certfile= keyfile;
if (certfile && !keyfile)
keyfile= certfile;
/* set cert */
if (certfile && certfile[0] != 0)
{
if (SSL_CTX_use_certificate_chain_file(ctx, certfile) != 1)
{
goto error;
}
}
if (keyfile && keyfile[0])
{
FILE *fp;
if ((fp= fopen(keyfile, "rb")))
{
EVP_PKEY *key= EVP_PKEY_new();
PEM_read_PrivateKey(fp, &key, NULL, pw);
fclose(fp);
if (SSL_CTX_use_PrivateKey(ctx, key) != 1)
{
unsigned long err= ERR_peek_error();
EVP_PKEY_free(key);
if (!(ERR_GET_LIB(err) == ERR_LIB_X509 &&
ERR_GET_REASON(err) == X509_R_CERT_ALREADY_IN_HASH_TABLE))
goto error;
}
EVP_PKEY_free(key);
} else {
my_set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
CER(CR_FILE_NOT_FOUND), keyfile);
return 1;
}
}
/* verify key */
if (certfile && SSL_CTX_check_private_key(ctx) != 1)
goto error;
SSL_CTX_set_verify(ctx, (mysql->options.ssl_ca || mysql->options.ssl_capath) ?
SSL_VERIFY_PEER : SSL_VERIFY_NONE, NULL);
return 0;
error:
ma_tls_set_error(mysql);
return 1;
} | O0 | c | ma_tls_set_certs:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x408(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x400(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x5ab14
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0xa0(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x5ab1c
xorl %eax, %eax
movq %rax, -0x58(%rbp)
jmp 0x5ab1c
movq -0x58(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x420(%rax)
je 0x5ab7e
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x5ab7e
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rsi
callq 0x365f0
cmpl $0x0, %eax
jne 0x5ab7c
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x420(%rax), %rsi
callq 0x367c0
cmpl $0x0, %eax
jne 0x5ab7c
jmp 0x5ae12
jmp 0x5ab7e
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x410(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x418(%rax), %rdx
callq 0x36390
cmpl $0x0, %eax
jne 0x5abd8
movq -0x10(%rbp), %rax
cmpq $0x0, 0x410(%rax)
jne 0x5abbe
movq -0x10(%rbp), %rax
cmpq $0x0, 0x418(%rax)
je 0x5abc3
jmp 0x5ae12
movq -0x18(%rbp), %rdi
callq 0x36460
cmpl $0x0, %eax
jne 0x5abd6
jmp 0x5ae12
jmp 0x5abd8
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x5ac6e
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x10(%rax)
jne 0x5ac0e
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x18(%rax)
je 0x5ac6e
movq -0x18(%rbp), %rdi
callq 0x36040
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x5ac6c
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x18(%rax), %rdx
callq 0x36bb0
cmpl $0x0, %eax
jne 0x5ac52
jmp 0x5ae12
movq -0x38(%rbp), %rdi
movl $0xc, %esi
callq 0x36360
cmpl $0x0, %eax
jne 0x5ac6a
jmp 0x5ae12
jmp 0x5ac6c
jmp 0x5ac6e
cmpq $0x0, -0x28(%rbp)
je 0x5ac84
cmpq $0x0, -0x20(%rbp)
jne 0x5ac84
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x5ac9a
cmpq $0x0, -0x28(%rbp)
jne 0x5ac9a
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x5acc6
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x5acc6
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x36780
cmpl $0x1, %eax
je 0x5acc4
jmp 0x5ae12
jmp 0x5acc6
cmpq $0x0, -0x28(%rbp)
je 0x5ada8
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x5ada8
movq -0x28(%rbp), %rdi
leaq 0x6f5e3(%rip), %rsi # 0xca2cf
callq 0x36a20
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x5ad74
callq 0x369d0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x30(%rbp), %rcx
leaq -0x48(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x368a0
movq -0x40(%rbp), %rdi
callq 0x36410
movq -0x18(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x36200
cmpl $0x1, %eax
je 0x5ad69
callq 0x365e0
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
callq 0x36b60
movq -0x50(%rbp), %rdi
callq 0x5b940
cmpl $0xb, %eax
jne 0x5ad62
movq -0x50(%rbp), %rdi
callq 0x5b980
cmpl $0x65, %eax
je 0x5ad67
jmp 0x5ae12
jmp 0x5ad69
movq -0x48(%rbp), %rdi
callq 0x36b60
jmp 0x5ada6
movq -0x10(%rbp), %rdi
leaq 0x1d6e91(%rip), %rax # 0x231c10
movq (%rax), %rdx
leaq 0x1d7097(%rip), %rax # 0x231e20
movq 0x20(%rax), %rcx
movq -0x28(%rbp), %r8
movl $0x7ea, %esi # imm = 0x7EA
movb $0x0, %al
callq 0x39ea0
movl $0x1, -0x4(%rbp)
jmp 0x5ae22
jmp 0x5ada8
cmpq $0x0, -0x20(%rbp)
je 0x5adbf
movq -0x18(%rbp), %rdi
callq 0x36500
cmpl $0x1, %eax
je 0x5adbf
jmp 0x5ae12
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x410(%rcx)
movb %al, -0x59(%rbp)
jne 0x5adec
movq -0x10(%rbp), %rax
cmpq $0x0, 0x418(%rax)
setne %al
movb %al, -0x59(%rbp)
movq -0x68(%rbp), %rdi
movb -0x59(%rbp), %cl
xorl %esi, %esi
movl $0x1, %eax
testb $0x1, %cl
cmovnel %eax, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x36b30
movl $0x0, -0x4(%rbp)
jmp 0x5ae22
movq -0x10(%rbp), %rdi
callq 0x5b070
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ma_tls_set_certs:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+408h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+400h]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_5AB14
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rax, [rax+0A0h]
mov [rbp+var_58], rax
jmp short loc_5AB1C
loc_5AB14:
xor eax, eax
mov [rbp+var_58], rax
jmp short $+2
loc_5AB1C:
mov rax, [rbp+var_58]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
cmp qword ptr [rax+420h], 0
jz short loc_5AB7E
mov rax, [rbp+var_10]
mov rax, [rax+420h]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_5AB7E
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+420h]
call _SSL_CTX_set_ciphersuites
cmp eax, 0
jnz short loc_5AB7C
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+420h]
call _SSL_CTX_set_cipher_list
cmp eax, 0
jnz short loc_5AB7C
jmp loc_5AE12
loc_5AB7C:
jmp short $+2
loc_5AB7E:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+410h]
mov rax, [rbp+var_10]
mov rdx, [rax+418h]
call _SSL_CTX_load_verify_locations
cmp eax, 0
jnz short loc_5ABD8
mov rax, [rbp+var_10]
cmp qword ptr [rax+410h], 0
jnz short loc_5ABBE
mov rax, [rbp+var_10]
cmp qword ptr [rax+418h], 0
jz short loc_5ABC3
loc_5ABBE:
jmp loc_5AE12
loc_5ABC3:
mov rdi, [rbp+var_18]
call _SSL_CTX_set_default_verify_paths
cmp eax, 0
jnz short loc_5ABD6
jmp loc_5AE12
loc_5ABD6:
jmp short $+2
loc_5ABD8:
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz loc_5AC6E
mov rax, [rbp+var_10]
mov rax, [rax+480h]
cmp qword ptr [rax+10h], 0
jnz short loc_5AC0E
mov rax, [rbp+var_10]
mov rax, [rax+480h]
cmp qword ptr [rax+18h], 0
jz short loc_5AC6E
loc_5AC0E:
mov rdi, [rbp+var_18]
call _SSL_CTX_get_cert_store
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_5AC6C
mov rdi, [rbp+var_38]
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rsi, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rdx, [rax+18h]
call _X509_STORE_load_locations
cmp eax, 0
jnz short loc_5AC52
jmp loc_5AE12
loc_5AC52:
mov rdi, [rbp+var_38]
mov esi, 0Ch
call _X509_STORE_set_flags
cmp eax, 0
jnz short loc_5AC6A
jmp loc_5AE12
loc_5AC6A:
jmp short $+2
loc_5AC6C:
jmp short $+2
loc_5AC6E:
cmp [rbp+var_28], 0
jz short loc_5AC84
cmp [rbp+var_20], 0
jnz short loc_5AC84
mov rax, [rbp+var_28]
mov [rbp+var_20], rax
loc_5AC84:
cmp [rbp+var_20], 0
jz short loc_5AC9A
cmp [rbp+var_28], 0
jnz short loc_5AC9A
mov rax, [rbp+var_20]
mov [rbp+var_28], rax
loc_5AC9A:
cmp [rbp+var_20], 0
jz short loc_5ACC6
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_5ACC6
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
call _SSL_CTX_use_certificate_chain_file
cmp eax, 1
jz short loc_5ACC4
jmp loc_5AE12
loc_5ACC4:
jmp short $+2
loc_5ACC6:
cmp [rbp+var_28], 0
jz loc_5ADA8
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 0
jz loc_5ADA8
mov rdi, [rbp+var_28]
lea rsi, aRb; "rb"
call _fopen64
mov [rbp+var_40], rax
cmp rax, 0
jz short loc_5AD74
call _EVP_PKEY_new
mov [rbp+var_48], rax
mov rdi, [rbp+var_40]
mov rcx, [rbp+var_30]
lea rsi, [rbp+var_48]
xor eax, eax
mov edx, eax
call _PEM_read_PrivateKey
mov rdi, [rbp+var_40]
call _fclose
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_48]
call _SSL_CTX_use_PrivateKey
cmp eax, 1
jz short loc_5AD69
call _ERR_peek_error
mov [rbp+var_50], rax
mov rdi, [rbp+var_48]
call _EVP_PKEY_free
mov rdi, [rbp+var_50]
call ERR_GET_LIB
cmp eax, 0Bh
jnz short loc_5AD62
mov rdi, [rbp+var_50]
call ERR_GET_REASON
cmp eax, 65h ; 'e'
jz short loc_5AD67
loc_5AD62:
jmp loc_5AE12
loc_5AD67:
jmp short $+2
loc_5AD69:
mov rdi, [rbp+var_48]
call _EVP_PKEY_free
jmp short loc_5ADA6
loc_5AD74:
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, mariadb_client_errors
mov rcx, [rax+20h]
mov r8, [rbp+var_28]
mov esi, 7EAh
mov al, 0
call my_set_error
mov [rbp+var_4], 1
jmp short loc_5AE22
loc_5ADA6:
jmp short $+2
loc_5ADA8:
cmp [rbp+var_20], 0
jz short loc_5ADBF
mov rdi, [rbp+var_18]
call _SSL_CTX_check_private_key
cmp eax, 1
jz short loc_5ADBF
jmp short loc_5AE12
loc_5ADBF:
mov rax, [rbp+var_18]
mov [rbp+var_68], rax
mov rcx, [rbp+var_10]
mov al, 1
cmp qword ptr [rcx+410h], 0
mov [rbp+var_59], al
jnz short loc_5ADEC
mov rax, [rbp+var_10]
cmp qword ptr [rax+418h], 0
setnz al
mov [rbp+var_59], al
loc_5ADEC:
mov rdi, [rbp+var_68]
mov cl, [rbp+var_59]
xor esi, esi
mov eax, 1
test cl, 1
cmovnz esi, eax
xor eax, eax
mov edx, eax
call _SSL_CTX_set_verify
mov [rbp+var_4], 0
jmp short loc_5AE22
loc_5AE12:
mov rdi, [rbp+var_10]
call ma_tls_set_error
mov [rbp+var_4], 1
loc_5AE22:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
| long long ma_tls_set_certs(_QWORD *a1, long long a2)
{
bool v3; // [rsp+17h] [rbp-59h]
long long v4; // [rsp+18h] [rbp-58h]
long long v5; // [rsp+20h] [rbp-50h]
long long v6; // [rsp+28h] [rbp-48h] BYREF
long long v7; // [rsp+30h] [rbp-40h]
long long cert_store; // [rsp+38h] [rbp-38h]
long long v9; // [rsp+40h] [rbp-30h]
_BYTE *v10; // [rsp+48h] [rbp-28h]
_BYTE *v11; // [rsp+50h] [rbp-20h]
long long v12; // [rsp+58h] [rbp-18h]
_QWORD *v13; // [rsp+60h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = (_BYTE *)a1[129];
v10 = (_BYTE *)a1[128];
if ( a1[144] )
v4 = *(_QWORD *)(v13[144] + 160LL);
else
v4 = 0LL;
v9 = v4;
if ( v13[132]
&& *(_BYTE *)v13[132]
&& !(unsigned int)SSL_CTX_set_ciphersuites(v12, v13[132])
&& !(unsigned int)SSL_CTX_set_cipher_list(v12, v13[132]) )
{
goto LABEL_42;
}
if ( !(unsigned int)SSL_CTX_load_verify_locations(v12, v13[130], v13[131])
&& (v13[130] || v13[131] || !(unsigned int)SSL_CTX_set_default_verify_paths(v12)) )
{
goto LABEL_42;
}
if ( v13[144] && (*(_QWORD *)(v13[144] + 16LL) || *(_QWORD *)(v13[144] + 24LL)) )
{
cert_store = SSL_CTX_get_cert_store(v12);
if ( cert_store )
{
if ( !(unsigned int)X509_STORE_load_locations(
cert_store,
*(_QWORD *)(v13[144] + 16LL),
*(_QWORD *)(v13[144] + 24LL))
|| !(unsigned int)X509_STORE_set_flags(cert_store, 12LL) )
{
goto LABEL_42;
}
}
}
if ( v10 && !v11 )
v11 = v10;
if ( v11 && !v10 )
v10 = v11;
if ( v11 && *v11 && (unsigned int)SSL_CTX_use_certificate_chain_file(v12, v11) != 1 )
goto LABEL_42;
if ( v10 && *v10 )
{
v7 = fopen64(v10, "rb");
if ( !v7 )
{
my_set_error((long long)v13, 0x7EAu, (long long)SQLSTATE_UNKNOWN, (long long)mariadb_client_errors[4], v10);
return 1;
}
v6 = EVP_PKEY_new();
PEM_read_PrivateKey(v7, &v6, 0LL, v9);
fclose(v7);
if ( (unsigned int)SSL_CTX_use_PrivateKey(v12, v6) != 1 )
{
v5 = ERR_peek_error();
EVP_PKEY_free(v6);
if ( (unsigned int)ERR_GET_LIB(v5) != 11 || (unsigned int)ERR_GET_REASON(v5) != 101 )
goto LABEL_42;
}
EVP_PKEY_free(v6);
}
if ( v11 && (unsigned int)SSL_CTX_check_private_key(v12) != 1 )
{
LABEL_42:
ma_tls_set_error(v13);
return 1;
}
v3 = 1;
if ( !v13[130] )
v3 = v13[131] != 0LL;
SSL_CTX_set_verify(v12, v3, 0LL);
return 0;
}
| ma_tls_set_certs:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x408]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x400]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0015ab14
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0xa0]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0015ab1c
LAB_0015ab14:
XOR EAX,EAX
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0015ab1c
LAB_0015ab1c:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x420],0x0
JZ 0x0015ab7e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x420]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x0015ab7e
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x420]
CALL 0x001365f0
CMP EAX,0x0
JNZ 0x0015ab7c
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x420]
CALL 0x001367c0
CMP EAX,0x0
JNZ 0x0015ab7c
JMP 0x0015ae12
LAB_0015ab7c:
JMP 0x0015ab7e
LAB_0015ab7e:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x410]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x418]
CALL 0x00136390
CMP EAX,0x0
JNZ 0x0015abd8
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x410],0x0
JNZ 0x0015abbe
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x418],0x0
JZ 0x0015abc3
LAB_0015abbe:
JMP 0x0015ae12
LAB_0015abc3:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00136460
CMP EAX,0x0
JNZ 0x0015abd6
JMP 0x0015ae12
LAB_0015abd6:
JMP 0x0015abd8
LAB_0015abd8:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0015ac6e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x0015ac0e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x0015ac6e
LAB_0015ac0e:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00136040
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x0015ac6c
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDX,qword ptr [RAX + 0x18]
CALL 0x00136bb0
CMP EAX,0x0
JNZ 0x0015ac52
JMP 0x0015ae12
LAB_0015ac52:
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,0xc
CALL 0x00136360
CMP EAX,0x0
JNZ 0x0015ac6a
JMP 0x0015ae12
LAB_0015ac6a:
JMP 0x0015ac6c
LAB_0015ac6c:
JMP 0x0015ac6e
LAB_0015ac6e:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015ac84
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0015ac84
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
LAB_0015ac84:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0015ac9a
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0015ac9a
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x28],RAX
LAB_0015ac9a:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0015acc6
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x0015acc6
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00136780
CMP EAX,0x1
JZ 0x0015acc4
JMP 0x0015ae12
LAB_0015acc4:
JMP 0x0015acc6
LAB_0015acc6:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015ada8
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x0015ada8
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[0x1ca2cf]
CALL 0x00136a20
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JZ 0x0015ad74
CALL 0x001369d0
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x30]
LEA RSI,[RBP + -0x48]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001368a0
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00136410
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x00136200
CMP EAX,0x1
JZ 0x0015ad69
CALL 0x001365e0
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x00136b60
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x0015b940
CMP EAX,0xb
JNZ 0x0015ad62
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x0015b980
CMP EAX,0x65
JZ 0x0015ad67
LAB_0015ad62:
JMP 0x0015ae12
LAB_0015ad67:
JMP 0x0015ad69
LAB_0015ad69:
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x00136b60
JMP 0x0015ada6
LAB_0015ad74:
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x331c10]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x331e20]
MOV RCX,qword ptr [RAX + 0x20]
MOV R8,qword ptr [RBP + -0x28]
MOV ESI,0x7ea
MOV AL,0x0
CALL 0x00139ea0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015ae22
LAB_0015ada6:
JMP 0x0015ada8
LAB_0015ada8:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0015adbf
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00136500
CMP EAX,0x1
JZ 0x0015adbf
JMP 0x0015ae12
LAB_0015adbf:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x68],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV AL,0x1
CMP qword ptr [RCX + 0x410],0x0
MOV byte ptr [RBP + -0x59],AL
JNZ 0x0015adec
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x418],0x0
SETNZ AL
MOV byte ptr [RBP + -0x59],AL
LAB_0015adec:
MOV RDI,qword ptr [RBP + -0x68]
MOV CL,byte ptr [RBP + -0x59]
XOR ESI,ESI
MOV EAX,0x1
TEST CL,0x1
CMOVNZ ESI,EAX
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00136b30
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0015ae22
LAB_0015ae12:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0015b070
MOV dword ptr [RBP + -0x4],0x1
LAB_0015ae22:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int4 ma_tls_set_certs(long param_1,SSL_CTX *param_2)
{
int iVar1;
ulong uVar2;
bool bVar3;
void *local_60;
EVP_PKEY *local_50;
FILE *local_48;
X509_STORE *local_40;
void *local_38;
char *local_30;
char *local_28;
SSL_CTX *local_20;
long local_18;
local_28 = *(char **)(param_1 + 0x408);
local_30 = *(char **)(param_1 + 0x400);
if (*(long *)(param_1 + 0x480) == 0) {
local_60 = (void *)0x0;
}
else {
local_60 = *(void **)(*(long *)(param_1 + 0x480) + 0xa0);
}
local_38 = local_60;
local_20 = param_2;
local_18 = param_1;
if ((((((*(long *)(param_1 + 0x420) == 0) || (**(char **)(param_1 + 0x420) == '\0')) ||
(iVar1 = SSL_CTX_set_ciphersuites(param_2,*(int8 *)(param_1 + 0x420)), iVar1 != 0)) ||
(iVar1 = SSL_CTX_set_cipher_list(local_20,*(char **)(local_18 + 0x420)), iVar1 != 0)) &&
((iVar1 = SSL_CTX_load_verify_locations
(local_20,*(char **)(local_18 + 0x410),*(char **)(local_18 + 0x418)),
iVar1 != 0 ||
(((*(long *)(local_18 + 0x410) == 0 && (*(long *)(local_18 + 0x418) == 0)) &&
(iVar1 = SSL_CTX_set_default_verify_paths(local_20), iVar1 != 0)))))) &&
((((*(long *)(local_18 + 0x480) == 0 ||
((*(long *)(*(long *)(local_18 + 0x480) + 0x10) == 0 &&
(*(long *)(*(long *)(local_18 + 0x480) + 0x18) == 0)))) ||
(local_40 = SSL_CTX_get_cert_store(local_20), local_40 == (X509_STORE *)0x0)) ||
((iVar1 = X509_STORE_load_locations
(local_40,*(char **)(*(long *)(local_18 + 0x480) + 0x10),
*(char **)(*(long *)(local_18 + 0x480) + 0x18)), iVar1 != 0 &&
(iVar1 = X509_STORE_set_flags(local_40,0xc), iVar1 != 0)))))) {
if ((local_30 != (char *)0x0) && (local_28 == (char *)0x0)) {
local_28 = local_30;
}
if ((local_28 != (char *)0x0) && (local_30 == (char *)0x0)) {
local_30 = local_28;
}
if (((local_28 == (char *)0x0) || (*local_28 == '\0')) ||
(iVar1 = SSL_CTX_use_certificate_chain_file(local_20,local_28), iVar1 == 1)) {
if ((local_30 != (char *)0x0) && (*local_30 != '\0')) {
local_48 = fopen64(local_30,"rb");
if (local_48 == (FILE *)0x0) {
my_set_error(local_18,0x7ea,SQLSTATE_UNKNOWN,mariadb_client_errors._32_8_,local_30);
return 1;
}
local_50 = EVP_PKEY_new();
PEM_read_PrivateKey(local_48,&local_50,(int1 *)0x0,local_38);
fclose(local_48);
iVar1 = SSL_CTX_use_PrivateKey(local_20,local_50);
if (iVar1 != 1) {
uVar2 = ERR_peek_error();
EVP_PKEY_free(local_50);
iVar1 = ERR_GET_LIB(uVar2);
if ((iVar1 != 0xb) || (iVar1 = ERR_GET_REASON(uVar2), iVar1 != 0x65)) goto LAB_0015ae12;
}
EVP_PKEY_free(local_50);
}
if ((local_28 == (char *)0x0) || (iVar1 = SSL_CTX_check_private_key(local_20), iVar1 == 1)) {
bVar3 = true;
if (*(long *)(local_18 + 0x410) == 0) {
bVar3 = *(long *)(local_18 + 0x418) != 0;
}
SSL_CTX_set_verify(local_20,(uint)bVar3,(callback *)0x0);
return 0;
}
}
}
LAB_0015ae12:
ma_tls_set_error(local_18);
return 1;
}
| |
41,320 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
subq $0x158, %rsp # imm = 0x158
movq %rdx, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movb %r8b, %al
movq %rdi, %r8
movq %r8, 0x18(%rsp)
movq %rdi, 0x150(%rsp)
movq %rsi, 0x148(%rsp)
movq %rdx, 0x140(%rsp)
andb $0x1, %cl
movb %cl, 0x13f(%rsp)
andb $0x1, %al
movb %al, 0x13e(%rsp)
movb $0x0, 0x13d(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0xa2750
movq 0x148(%rsp), %rdi
callq 0xa2870
movq %rdx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
jmp 0xa25c1
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xa28a0
jmp 0xa25e6
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movzbl 0x13e(%rsp), %r9d
movzbl 0x13f(%rsp), %r8d
andl $0x1, %r8d
andl $0x1, %r9d
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rcx
callq 0xa2790
jmp 0xa261b
movq 0x10(%rsp), %rdx
leaq 0x70(%rsp), %rdi
movl $0x1, %esi
callq 0xa2950
jmp 0xa2631
leaq 0x70(%rsp), %rdi
callq 0xa3030
leaq 0x30(%rsp), %rdi
callq 0xa2740
movb $0x1, 0x13d(%rsp)
testb $0x1, 0x13d(%rsp)
jne 0xa26a7
jmp 0xa269d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0xa26b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0xa2691
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xa3030
leaq 0x30(%rsp), %rdi
callq 0xa2740
jmp 0xa26b4
movq 0x10(%rsp), %rdi
callq 0xa2710
movq 0x18(%rsp), %rax
addq $0x158, %rsp # imm = 0x158
retq
movq 0x10(%rsp), %rdi
callq 0xa2710
movq 0x58(%rsp), %rdi
callq 0x5abd0
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
sub rsp, 158h
mov [rsp+158h+var_150], rdx
mov [rsp+158h+var_148], rdi
mov al, r8b
mov r8, rdi
mov [rsp+158h+var_140], r8
mov [rsp+158h+var_8], rdi
mov [rsp+158h+var_10], rsi
mov [rsp+158h+var_18], rdx
and cl, 1
mov [rsp+158h+var_19], cl
and al, 1
mov [rsp+158h+var_1A], al
mov [rsp+158h+var_1B], 0
xor eax, eax
mov esi, eax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
mov rdi, [rsp+158h+var_10]
call _ZN8nlohmann16json_abi_v3_11_36detail13input_adapterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS1_36container_input_adapter_factory_impl31container_input_adapter_factoryIT_vE12adapter_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::input_adapter<std::string>(std::string const&)
mov [rsp+158h+var_138], rdx
mov [rsp+158h+var_130], rax
jmp short $+2
loc_A25C1:
mov rsi, [rsp+158h+var_150]
mov rax, [rsp+158h+var_138]
mov rcx, [rsp+158h+var_130]
mov [rsp+158h+var_F8], rcx
mov [rsp+158h+var_F0], rax
lea rdi, [rsp+158h+var_128]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
jmp short $+2
loc_A25E6:
mov rsi, [rsp+158h+var_F8]
mov rdx, [rsp+158h+var_F0]
movzx r9d, [rsp+158h+var_1A]
movzx r8d, [rsp+158h+var_19]
and r8d, 1
and r9d, 1
lea rdi, [rsp+158h+var_E8]
lea rcx, [rsp+158h+var_128]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
jmp short $+2
loc_A261B:
mov rdx, [rsp+158h+var_148]
lea rdi, [rsp+158h+var_E8]
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
jmp short $+2
loc_A2631:
lea rdi, [rsp+158h+var_E8]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
lea rdi, [rsp+158h+var_128]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::~function()
mov [rsp+158h+var_1B], 1
test [rsp+158h+var_1B], 1
jnz short loc_A26A7
jmp short loc_A269D
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_A26B4
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_A2691
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_68]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
loc_A2691:
lea rdi, [rsp+arg_28]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::~function()
jmp short loc_A26B4
loc_A269D:
mov rdi, [rsp+158h+var_148]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_A26A7:
mov rax, [rsp+158h+var_140]
add rsp, 158h
retn
loc_A26B4:
mov rdi, [rsp+arg_8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, [rsp+arg_50]
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string const&>(
long long a1,
long long a2,
long long a3,
char a4,
char a5)
{
long long v5; // rdx
int v6; // r8d
int v7; // r9d
int v9; // [rsp+8h] [rbp-150h]
_BYTE v10[48]; // [rsp+30h] [rbp-128h] BYREF
long long v11; // [rsp+60h] [rbp-F8h]
long long v12; // [rsp+68h] [rbp-F0h]
_BYTE v13[206]; // [rsp+70h] [rbp-E8h] BYREF
char v14; // [rsp+13Eh] [rbp-1Ah]
char v15; // [rsp+13Fh] [rbp-19h]
long long v16; // [rsp+140h] [rbp-18h]
long long v17; // [rsp+148h] [rbp-10h]
long long v18; // [rsp+150h] [rbp-8h]
v9 = a3;
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4 & 1;
v14 = a5 & 1;
v13[205] = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
0LL);
v11 = nlohmann::json_abi_v3_11_3::detail::input_adapter<std::string>(a2);
v12 = v5;
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
(unsigned int)v10,
v9,
v5,
v11,
v6,
v7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(unsigned int)v13,
v11,
v12,
(unsigned int)v10,
v15 & 1,
v14 & 1);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(
v13,
1LL,
a1);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser(v13);
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::~function(v10);
return a1;
}
| parse<std::__cxx11::string_const&>:
SUB RSP,0x158
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],RDI
MOV AL,R8B
MOV R8,RDI
MOV qword ptr [RSP + 0x18],R8
MOV qword ptr [RSP + 0x150],RDI
MOV qword ptr [RSP + 0x148],RSI
MOV qword ptr [RSP + 0x140],RDX
AND CL,0x1
MOV byte ptr [RSP + 0x13f],CL
AND AL,0x1
MOV byte ptr [RSP + 0x13e],AL
MOV byte ptr [RSP + 0x13d],0x0
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001a2750
MOV RDI,qword ptr [RSP + 0x148]
LAB_001a25b0:
CALL 0x001a2870
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001a25c1
LAB_001a25c1:
MOV RSI,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x60],RCX
MOV qword ptr [RSP + 0x68],RAX
LEA RDI,[RSP + 0x30]
CALL 0x001a28a0
JMP 0x001a25e6
LAB_001a25e6:
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
MOVZX R9D,byte ptr [RSP + 0x13e]
MOVZX R8D,byte ptr [RSP + 0x13f]
LAB_001a2602:
AND R8D,0x1
AND R9D,0x1
LEA RDI,[RSP + 0x70]
LEA RCX,[RSP + 0x30]
CALL 0x001a2790
JMP 0x001a261b
LAB_001a261b:
MOV RDX,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x70]
MOV ESI,0x1
CALL 0x001a2950
LAB_001a262f:
JMP 0x001a2631
LAB_001a2631:
LEA RDI,[RSP + 0x70]
CALL 0x001a3030
LEA RDI,[RSP + 0x30]
CALL 0x001a2740
MOV byte ptr [RSP + 0x13d],0x1
TEST byte ptr [RSP + 0x13d],0x1
JNZ 0x001a26a7
JMP 0x001a269d
LAB_001a269d:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001a2710
LAB_001a26a7:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x158
RET
|
/* WARNING: Removing unreachable block (ram,0x001a2657) */
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::parse<std::__cxx11::string const&>(std::__cxx11::string const&,
std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string_const&>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,string *param_1,function *param_3,byte param_4,byte param_5)
{
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
local_128 [48];
int1 local_f8 [16];
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_e8 [205];
int1 local_1b;
byte local_1a;
byte local_19;
function *local_18;
string *local_10;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_8;
local_19 = param_4 & 1;
local_1a = param_5 & 1;
local_1b = 0;
local_18 = param_3;
local_10 = param_1;
local_8 = this;
basic_json((_func_decltype_nullptr *)this);
/* try { // try from 001a25b0 to 001a25e3 has its CatchHandler @ 001a2659 */
local_f8 = detail::input_adapter<std::__cxx11::string>(local_10);
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function(local_128,param_3);
/* try { // try from 001a2602 to 001a2618 has its CatchHandler @ 001a2669 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_e8,local_f8._0_8_,local_f8._8_8_,local_128,local_19 & 1,local_1a & 1);
/* try { // try from 001a261b to 001a262e has its CatchHandler @ 001a2679 */
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parse(local_e8,true,this);
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~parser(local_e8);
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::~function(local_128);
return this;
}
| |
41,321 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
xorl %esi, %esi
callq 0x3de46
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x3dee6
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x3de66
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
movq %rbx, %rdx
callq 0x3df2c
leaq 0x20(%rsp), %rdi
callq 0x3e2f6
movq %rsp, %rdi
callq 0x48878
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x3e2f6
jmp 0x7b414
movq %rax, %r14
movq %rsp, %rdi
callq 0x48878
jmp 0x7b421
movq %rax, %r14
movq %rbx, %rdi
callq 0x3de32
movq %r14, %rdi
callq 0x23fb0
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov ebp, r8d
mov r14d, ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
mov r15, [r12]
mov r12, [r12+8]
mov rdi, rsp
mov rsi, r13
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F8]
mov rcx, rsp
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_F8]
push 1
pop rsi
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea rdi, [rsp+118h+var_F8]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
lea rdi, [rsp+arg_18]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
jmp short loc_7B414
mov r14, rax
loc_7B414:
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_7B421
mov r14, rax
loc_7B421:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, r14
call __Unwind_Resume
| _BYTE * nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string>(
_BYTE *a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v8; // r15
long long v9; // r12
int v10; // ecx
int v11; // r8d
int v12; // r9d
__int128 v14[2]; // [rsp+0h] [rbp-118h] BYREF
_BYTE v15[248]; // [rsp+20h] [rbp-F8h] BYREF
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)a1);
v8 = *a2;
v9 = a2[1];
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
v14,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(long long)v15,
v8,
v8 + v9,
v14,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(
(long long)v15,
1,
a1,
v10,
v11,
v12);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser((std::_Function_base *)v15);
std::_Function_base::~_Function_base((std::_Function_base *)v14);
return a1;
}
| parse<std::__cxx11::string>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV EBP,R8D
MOV R14D,ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
XOR ESI,ESI
CALL 0x0013de46
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_0017b3a2:
MOV RDI,RSP
MOV RSI,R13
CALL 0x0013dee6
ADD R12,R15
LAB_0017b3b0:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x0013de66
LAB_0017b3cb:
LEA RDI,[RSP + 0x20]
PUSH 0x1
POP RSI
MOV RDX,RBX
CALL 0x0013df2c
LAB_0017b3db:
LEA RDI,[RSP + 0x20]
CALL 0x0013e2f6
MOV RDI,RSP
CALL 0x00148878
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::parse<std::__cxx11::string >(std::__cxx11::string&&, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
afStack_118 [32];
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_f8 [200];
basic_json((_func_decltype_nullptr *)this);
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 0017b3a2 to 0017b3ac has its CatchHandler @ 0017b41e */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function(afStack_118,param_3);
/* try { // try from 0017b3b0 to 0017b3ca has its CatchHandler @ 0017b411 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5);
/* try { // try from 0017b3cb to 0017b3da has its CatchHandler @ 0017b402 */
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parse(local_f8,true,this);
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~parser(local_f8);
std::_Function_base::~_Function_base((_Function_base *)afStack_118);
return this;
}
| |
41,322 | mi_new | eloqsql/storage/myisam/mi_page.c | my_off_t _mi_new(register MI_INFO *info, MI_KEYDEF *keyinfo, int level)
{
my_off_t pos;
uchar buff[8];
DBUG_ENTER("_mi_new");
if ((pos= info->s->state.key_del[keyinfo->block_size_index]) ==
HA_OFFSET_ERROR)
{
if (info->state->key_file_length >=
info->s->base.max_key_file_length - keyinfo->block_length)
{
my_errno=HA_ERR_INDEX_FILE_FULL;
DBUG_RETURN(HA_OFFSET_ERROR);
}
pos=info->state->key_file_length;
info->state->key_file_length+= keyinfo->block_length;
}
else
{
if (!key_cache_read(info->s->key_cache,
info->s->kfile, pos, level,
buff,
(uint) sizeof(buff),
(uint) keyinfo->block_length,0))
pos= HA_OFFSET_ERROR;
else
info->s->state.key_del[keyinfo->block_size_index]= mi_sizekorr(buff);
}
info->s->state.changed|= STATE_NOT_SORTED_PAGES;
DBUG_PRINT("exit",("Pos: %ld",(long) pos));
DBUG_RETURN(pos);
} | O0 | c | mi_new:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movl %edx, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0xa0(%rax), %rax
movq -0x28(%rbp), %rcx
movzwl 0x18(%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
cmpq $-0x1, %rax
jne 0xbe4c5
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x118(%rcx), %rcx
movq -0x28(%rbp), %rdx
movzwl 0xe(%rdx), %edx
subq %rdx, %rcx
cmpq %rcx, %rax
jb 0xbe496
callq 0xf6250
movl $0x88, (%rax)
movq $-0x1, -0x18(%rbp)
jmp 0xbe5a6
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movzwl 0xe(%rax), %eax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
jmp 0xbe583
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x278(%rax), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x350(%rax), %esi
movq -0x38(%rbp), %rdx
movl -0x2c(%rbp), %ecx
leaq -0x10(%rbp), %r8
movq -0x28(%rbp), %rax
movzwl 0xe(%rax), %eax
movl $0x8, %r9d
xorl %r10d, %r10d
movl %eax, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0xe4a10
cmpq $0x0, %rax
jne 0xbe51c
movq $-0x1, -0x38(%rbp)
jmp 0xbe581
movzbl -0x9(%rbp), %eax
movzbl -0xa(%rbp), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzbl -0xb(%rbp), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movzbl -0xc(%rbp), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %edx
movzbl -0xd(%rbp), %eax
movzbl -0xe(%rbp), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzbl -0xf(%rbp), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movzbl -0x10(%rbp), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
orq %rax, %rdx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0xa0(%rax), %rax
movq -0x28(%rbp), %rcx
movzwl 0x18(%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
jmp 0xbe583
movq -0x20(%rbp), %rax
movq (%rax), %rax
movzbl 0xf0(%rax), %ecx
orl $0x20, %ecx
movb %cl, 0xf0(%rax)
jmp 0xbe59c
jmp 0xbe59e
movq -0x38(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xbe5ca
movq -0x40(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
callq 0x2a260
nop
| _mi_new:
push rbp
mov rbp, rsp
sub rsp, 50h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_20], rdi
mov [rbp+var_28], rsi
mov [rbp+var_2C], edx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+0A0h]
mov rcx, [rbp+var_28]
movzx ecx, word ptr [rcx+18h]
mov rax, [rax+rcx*8]
mov [rbp+var_38], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_BE4C5
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rcx, [rcx+118h]
mov rdx, [rbp+var_28]
movzx edx, word ptr [rdx+0Eh]
sub rcx, rdx
cmp rax, rcx
jb short loc_BE496
call _my_thread_var
mov dword ptr [rax], 88h
mov [rbp+var_18], 0FFFFFFFFFFFFFFFFh
jmp loc_BE5A6
loc_BE496:
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rax, [rax+20h]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
movzx eax, word ptr [rax+0Eh]
mov ecx, eax
mov rax, [rbp+var_20]
mov rax, [rax+8]
add rcx, [rax+20h]
mov [rax+20h], rcx
jmp loc_BE583
loc_BE4C5:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rdi, [rax+278h]
mov rax, [rbp+var_20]
mov rax, [rax]
mov esi, [rax+350h]
mov rdx, [rbp+var_38]
mov ecx, [rbp+var_2C]
lea r8, [rbp+var_10]
mov rax, [rbp+var_28]
movzx eax, word ptr [rax+0Eh]
mov r9d, 8
xor r10d, r10d
mov [rsp+50h+var_50], eax
mov [rsp+50h+var_48], 0
call key_cache_read
cmp rax, 0
jnz short loc_BE51C
mov [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jmp short loc_BE581
loc_BE51C:
movzx eax, [rbp+var_9]
movzx ecx, [rbp+var_A]
shl ecx, 8
or eax, ecx
movzx ecx, [rbp+var_B]
shl ecx, 10h
or eax, ecx
movzx ecx, [rbp+var_C]
shl ecx, 18h
or eax, ecx
mov eax, eax
mov edx, eax
movzx eax, [rbp+var_D]
movzx ecx, [rbp+var_E]
shl ecx, 8
or eax, ecx
movzx ecx, [rbp+var_F]
shl ecx, 10h
or eax, ecx
movzx ecx, [rbp+var_10]
shl ecx, 18h
or eax, ecx
mov eax, eax
shl rax, 20h
or rdx, rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+0A0h]
mov rcx, [rbp+var_28]
movzx ecx, word ptr [rcx+18h]
mov [rax+rcx*8], rdx
loc_BE581:
jmp short $+2
loc_BE583:
mov rax, [rbp+var_20]
mov rax, [rax]
movzx ecx, byte ptr [rax+0F0h]
or ecx, 20h
mov [rax+0F0h], cl
jmp short $+2
loc_BE59C:
jmp short $+2
loc_BE59E:
mov rax, [rbp+var_38]
mov [rbp+var_18], rax
loc_BE5A6:
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_BE5CA
mov rax, [rbp+var_40]
add rsp, 50h
pop rbp
retn
loc_BE5CA:
call ___stack_chk_fail
| long long mi_new(_QWORD *a1, long long a2, int a3)
{
long long v4; // [rsp+18h] [rbp-38h]
unsigned int v6[2]; // [rsp+40h] [rbp-10h] BYREF
unsigned long long v7; // [rsp+48h] [rbp-8h]
v7 = __readfsqword(0x28u);
v4 = *(_QWORD *)(*(_QWORD *)(*a1 + 160LL) + 8LL * *(unsigned __int16 *)(a2 + 24));
if ( v4 != -1 )
{
if ( key_cache_read(
*(_QWORD *)(*a1 + 632LL),
*(_DWORD *)(*a1 + 848LL),
v4,
a3,
(unsigned int)v6,
8,
*(unsigned __int16 *)(a2 + 14),
0) )
{
*(_QWORD *)(*(_QWORD *)(*a1 + 160LL) + 8LL * *(unsigned __int16 *)(a2 + 24)) = ((unsigned long long)_byteswap_ulong(v6[0]) << 32) | _byteswap_ulong(v6[1]);
}
else
{
v4 = -1LL;
}
goto LABEL_8;
}
if ( *(_QWORD *)(a1[1] + 32LL) < *(_QWORD *)(*a1 + 280LL) - (unsigned long long)*(unsigned __int16 *)(a2 + 14) )
{
v4 = *(_QWORD *)(a1[1] + 32LL);
*(_QWORD *)(a1[1] + 32LL) = v4 + *(unsigned __int16 *)(a2 + 14);
LABEL_8:
*(_BYTE *)(*a1 + 240LL) |= 0x20u;
return v4;
}
*(_DWORD *)my_thread_var(a1, (const char *)a2) = 136;
return -1LL;
}
| _mi_new:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RSI
MOV dword ptr [RBP + -0x2c],EDX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xa0]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ECX,word ptr [RCX + 0x18]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,-0x1
JNZ 0x001be4c5
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x118]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX EDX,word ptr [RDX + 0xe]
SUB RCX,RDX
CMP RAX,RCX
JC 0x001be496
CALL 0x001f6250
MOV dword ptr [RAX],0x88
MOV qword ptr [RBP + -0x18],-0x1
JMP 0x001be5a6
LAB_001be496:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,word ptr [RAX + 0xe]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
ADD RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
JMP 0x001be583
LAB_001be4c5:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x278]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV ESI,dword ptr [RAX + 0x350]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x2c]
LEA R8,[RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,word ptr [RAX + 0xe]
MOV R9D,0x8
XOR R10D,R10D
MOV dword ptr [RSP],EAX
MOV dword ptr [RSP + 0x8],0x0
CALL 0x001e4a10
CMP RAX,0x0
JNZ 0x001be51c
MOV qword ptr [RBP + -0x38],-0x1
JMP 0x001be581
LAB_001be51c:
MOVZX EAX,byte ptr [RBP + -0x9]
MOVZX ECX,byte ptr [RBP + -0xa]
SHL ECX,0x8
OR EAX,ECX
MOVZX ECX,byte ptr [RBP + -0xb]
SHL ECX,0x10
OR EAX,ECX
MOVZX ECX,byte ptr [RBP + -0xc]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
MOV EDX,EAX
MOVZX EAX,byte ptr [RBP + -0xd]
MOVZX ECX,byte ptr [RBP + -0xe]
SHL ECX,0x8
OR EAX,ECX
MOVZX ECX,byte ptr [RBP + -0xf]
SHL ECX,0x10
OR EAX,ECX
MOVZX ECX,byte ptr [RBP + -0x10]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
OR RDX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xa0]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ECX,word ptr [RCX + 0x18]
MOV qword ptr [RAX + RCX*0x8],RDX
LAB_001be581:
JMP 0x001be583
LAB_001be583:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOVZX ECX,byte ptr [RAX + 0xf0]
OR ECX,0x20
MOV byte ptr [RAX + 0xf0],CL
JMP 0x001be59c
LAB_001be59c:
JMP 0x001be59e
LAB_001be59e:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x18],RAX
LAB_001be5a6:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001be5ca
MOV RAX,qword ptr [RBP + -0x40]
ADD RSP,0x50
POP RBP
RET
LAB_001be5ca:
CALL 0x0012a260
|
long _mi_new(long *param_1,long param_2,int4 param_3)
{
int4 *puVar1;
long lVar2;
long in_FS_OFFSET;
long local_40;
long local_20;
int1 local_18;
int1 local_17;
int1 local_16;
int1 local_15;
int1 local_14;
int1 local_13;
int1 local_12;
int1 local_11;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_40 = *(long *)(*(long *)(*param_1 + 0xa0) + (ulong)*(ushort *)(param_2 + 0x18) * 8);
if (local_40 == -1) {
if (*(long *)(*param_1 + 0x118) - (ulong)*(ushort *)(param_2 + 0xe) <=
*(ulong *)(param_1[1] + 0x20)) {
puVar1 = (int4 *)_my_thread_var();
*puVar1 = 0x88;
local_20 = -1;
goto LAB_001be5a6;
}
local_40 = *(long *)(param_1[1] + 0x20);
*(ulong *)(param_1[1] + 0x20) = (ulong)*(ushort *)(param_2 + 0xe) + *(long *)(param_1[1] + 0x20)
;
}
else {
lVar2 = key_cache_read(*(int8 *)(*param_1 + 0x278),*(int4 *)(*param_1 + 0x350),
local_40,param_3,&local_18,8,*(int2 *)(param_2 + 0xe),0);
if (lVar2 == 0) {
local_40 = -1;
}
else {
*(ulong *)(*(long *)(*param_1 + 0xa0) + (ulong)*(ushort *)(param_2 + 0x18) * 8) =
CONCAT44(CONCAT13(local_18,CONCAT12(local_17,CONCAT11(local_16,local_15))),
CONCAT13(local_14,CONCAT12(local_13,CONCAT11(local_12,local_11))));
}
}
*(byte *)(*param_1 + 0xf0) = *(byte *)(*param_1 + 0xf0) | 0x20;
local_20 = local_40;
LAB_001be5a6:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_20;
}
| |
41,323 | mariadb_compression_algorithm_str | eloqsql/libmariadb/libmariadb/ma_compress.c | const char *_mariadb_compression_algorithm_str(enum enum_ma_compression_algorithm algorithm)
{
switch(algorithm) {
case COMPRESSION_NONE:
case COMPRESSION_ZLIB:
case COMPRESSION_ZSTD:
return compression_algorithms[algorithm] ;
default:
return compression_algorithms[COMPRESSION_UNKNOWN];
}
} | O0 | c | mariadb_compression_algorithm_str:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
subl $0x2, %eax
ja 0x4bfb7
jmp 0x4bfa1
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x1ea503(%rip), %rax # 0x2364b0
movq (%rax,%rcx,8), %rax
movq %rax, -0x8(%rbp)
jmp 0x4bfc6
leaq 0x1ea4f2(%rip), %rax # 0x2364b0
movq 0x18(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| _mariadb_compression_algorithm_str:
push rbp
mov rbp, rsp
mov [rbp+var_C], edi
mov eax, [rbp+var_C]
sub eax, 2
ja short loc_4BFB7
jmp short $+2
loc_4BFA1:
mov eax, [rbp+var_C]
mov ecx, eax
lea rax, compression_algorithms
mov rax, [rax+rcx*8]
mov [rbp+var_8], rax
jmp short loc_4BFC6
loc_4BFB7:
lea rax, compression_algorithms
mov rax, [rax+18h]
mov [rbp+var_8], rax
loc_4BFC6:
mov rax, [rbp+var_8]
pop rbp
retn
| char * mariadb_compression_algorithm_str(unsigned int a1)
{
if ( a1 > 2 )
return compression_algorithms[3];
else
return compression_algorithms[a1];
}
| _mariadb_compression_algorithm_str:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0xc],EDI
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x2
JA 0x0014bfb7
JMP 0x0014bfa1
LAB_0014bfa1:
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,EAX
LEA RAX,[0x3364b0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014bfc6
LAB_0014bfb7:
LEA RAX,[0x3364b0]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014bfc6:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int8 _mariadb_compression_algorithm_str(uint param_1)
{
int8 local_10;
if (param_1 < 3) {
local_10 = *(int8 *)(compression_algorithms + (ulong)param_1 * 8);
}
else {
local_10 = compression_algorithms._24_8_;
}
return local_10;
}
| |
41,324 | LefDefParser::lefiVia::addNumProp(char const*, double, char const*, char) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiVia.cpp | void
lefiVia::addNumProp(const char *name,
double d,
const char *value,
const char type)
{
int len = strlen(name) + 1;
if (numProps_ == propsAllocated_)
bumpProps();
propName_[numProps_] = (char*) lefMalloc(len);
strcpy(propName_[numProps_], CASE(name));
len = strlen(value) + 1;
propValue_[numProps_] = (char*) lefMalloc(len);
strcpy(propValue_[numProps_], CASE(value));
propDValue_[numProps_] = d;
propType_[numProps_] = type;
numProps_ += 1;
} | O3 | cpp | LefDefParser::lefiVia::addNumProp(char const*, double, char const*, char):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r15
movsd %xmm0, 0x8(%rsp)
movq %rsi, %r12
movq %rdi, %r14
movq %rsi, %rdi
callq 0x20d0
movq %rax, %r13
movl 0x20(%r14), %eax
cmpl 0x24(%r14), %eax
jne 0x145bb
movq %r14, %rdi
callq 0x143da
incl %r13d
movslq %r13d, %rdi
callq 0x24985
movq 0x28(%r14), %rcx
movslq 0x20(%r14), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x28(%r14), %rax
movq (%rax,%rdx,8), %r13
movq %r12, %rdi
callq 0x27c0a
movq %r13, %rdi
movq %rax, %rsi
callq 0x21b0
movq %r15, %rdi
callq 0x20d0
incl %eax
movslq %eax, %rdi
callq 0x24985
movq 0x30(%r14), %rcx
movslq 0x20(%r14), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x30(%r14), %rax
movq (%rax,%rdx,8), %r12
movq %r15, %rdi
callq 0x27c0a
movq %r12, %rdi
movq %rax, %rsi
callq 0x21b0
movq 0x38(%r14), %rax
movslq 0x20(%r14), %rcx
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq 0x40(%r14), %rax
movb %bl, (%rax,%rcx)
incl 0x20(%r14)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN12LefDefParser7lefiVia10addNumPropEPKcdS2_c:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov ebx, ecx
mov r15, rdx
movsd [rsp+38h+var_30], xmm0
mov r12, rsi
mov r14, rdi
mov rdi, rsi
call _strlen
mov r13, rax
mov eax, [r14+20h]
cmp eax, [r14+24h]
jnz short loc_145BB
mov rdi, r14; this
call _ZN12LefDefParser7lefiVia9bumpPropsEv; LefDefParser::lefiVia::bumpProps(void)
loc_145BB:
inc r13d
movsxd rdi, r13d; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, [r14+28h]
movsxd rdx, dword ptr [r14+20h]
mov [rcx+rdx*8], rax
mov rax, [r14+28h]
mov r13, [rax+rdx*8]
mov rdi, r12; this
call _ZN12LefDefParser4CASEEPKc; LefDefParser::CASE(char const*)
mov rdi, r13
mov rsi, rax; char *
call _strcpy
mov rdi, r15
call _strlen
inc eax
movsxd rdi, eax; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, [r14+30h]
movsxd rdx, dword ptr [r14+20h]
mov [rcx+rdx*8], rax
mov rax, [r14+30h]
mov r12, [rax+rdx*8]
mov rdi, r15; this
call _ZN12LefDefParser4CASEEPKc; LefDefParser::CASE(char const*)
mov rdi, r12
mov rsi, rax
call _strcpy
mov rax, [r14+38h]
movsxd rcx, dword ptr [r14+20h]
movsd xmm0, [rsp+38h+var_30]
movsd qword ptr [rax+rcx*8], xmm0
mov rax, [r14+40h]
mov [rax+rcx], bl
inc dword ptr [r14+20h]
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long LefDefParser::lefiVia::addNumProp(
LefDefParser::lefiVia *this,
LefDefParser *a2,
double a3,
LefDefParser *a4,
char a5)
{
int v7; // r13d
long long v8; // rax
long long v9; // rdx
long long v10; // r13
const char *v11; // rsi
int v12; // eax
long long v13; // rax
long long v14; // rdx
long long v15; // r12
long long v16; // rax
long long v17; // rcx
long long result; // rax
v7 = strlen(a2);
if ( *((_DWORD *)this + 8) == *((_DWORD *)this + 9) )
LefDefParser::lefiVia::bumpProps(this, a2);
v8 = LefDefParser::lefMalloc((LefDefParser *)(v7 + 1), (unsigned long long)a2);
v9 = *((int *)this + 8);
*(_QWORD *)(*((_QWORD *)this + 5) + 8 * v9) = v8;
v10 = *(_QWORD *)(*((_QWORD *)this + 5) + 8 * v9);
v11 = (const char *)LefDefParser::CASE(a2, (const char *)a2);
strcpy(v10, v11);
v12 = strlen(a4);
v13 = LefDefParser::lefMalloc((LefDefParser *)(v12 + 1), (unsigned long long)v11);
v14 = *((int *)this + 8);
*(_QWORD *)(*((_QWORD *)this + 6) + 8 * v14) = v13;
v15 = *(_QWORD *)(*((_QWORD *)this + 6) + 8 * v14);
v16 = LefDefParser::CASE(a4, v11);
strcpy(v15, v16);
v17 = *((int *)this + 8);
*(double *)(*((_QWORD *)this + 7) + 8 * v17) = a3;
result = *((_QWORD *)this + 8);
*(_BYTE *)(result + v17) = a5;
++*((_DWORD *)this + 8);
return result;
}
| addNumProp:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBX,ECX
MOV R15,RDX
MOVSD qword ptr [RSP + 0x8],XMM0
MOV R12,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x001020d0
MOV R13,RAX
MOV EAX,dword ptr [R14 + 0x20]
CMP EAX,dword ptr [R14 + 0x24]
JNZ 0x001145bb
MOV RDI,R14
CALL 0x001143da
LAB_001145bb:
INC R13D
MOVSXD RDI,R13D
CALL 0x00124985
MOV RCX,qword ptr [R14 + 0x28]
MOVSXD RDX,dword ptr [R14 + 0x20]
MOV qword ptr [RCX + RDX*0x8],RAX
MOV RAX,qword ptr [R14 + 0x28]
MOV R13,qword ptr [RAX + RDX*0x8]
MOV RDI,R12
CALL 0x00127c0a
MOV RDI,R13
MOV RSI,RAX
CALL 0x001021b0
MOV RDI,R15
CALL 0x001020d0
INC EAX
MOVSXD RDI,EAX
CALL 0x00124985
MOV RCX,qword ptr [R14 + 0x30]
MOVSXD RDX,dword ptr [R14 + 0x20]
MOV qword ptr [RCX + RDX*0x8],RAX
MOV RAX,qword ptr [R14 + 0x30]
MOV R12,qword ptr [RAX + RDX*0x8]
MOV RDI,R15
CALL 0x00127c0a
MOV RDI,R12
MOV RSI,RAX
CALL 0x001021b0
MOV RAX,qword ptr [R14 + 0x38]
MOVSXD RCX,dword ptr [R14 + 0x20]
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSD qword ptr [RAX + RCX*0x8],XMM0
MOV RAX,qword ptr [R14 + 0x40]
MOV byte ptr [RAX + RCX*0x1],BL
INC dword ptr [R14 + 0x20]
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* LefDefParser::lefiVia::addNumProp(char const*, double, char const*, char) */
void __thiscall
LefDefParser::lefiVia::addNumProp
(lefiVia *this,char *param_1,double param_2,char *param_3,char param_4)
{
int iVar1;
size_t sVar2;
int8 uVar3;
char *pcVar4;
char *pcVar5;
pcVar5 = param_1;
sVar2 = strlen(param_1);
if (*(int *)(this + 0x20) == *(int *)(this + 0x24)) {
bumpProps();
}
uVar3 = lefMalloc((LefDefParser *)(long)((int)sVar2 + 1),(ulong)pcVar5);
iVar1 = *(int *)(this + 0x20);
*(int8 *)(*(long *)(this + 0x28) + (long)iVar1 * 8) = uVar3;
pcVar5 = *(char **)(*(long *)(this + 0x28) + (long)iVar1 * 8);
pcVar4 = (char *)CASE(param_1);
strcpy(pcVar5,pcVar4);
sVar2 = strlen(param_3);
uVar3 = lefMalloc((LefDefParser *)(long)((int)sVar2 + 1),(ulong)pcVar4);
iVar1 = *(int *)(this + 0x20);
*(int8 *)(*(long *)(this + 0x30) + (long)iVar1 * 8) = uVar3;
pcVar5 = *(char **)(*(long *)(this + 0x30) + (long)iVar1 * 8);
pcVar4 = (char *)CASE(param_3);
strcpy(pcVar5,pcVar4);
iVar1 = *(int *)(this + 0x20);
*(double *)(*(long *)(this + 0x38) + (long)iVar1 * 8) = param_2;
*(char *)(*(long *)(this + 0x40) + (long)iVar1) = param_4;
*(int *)(this + 0x20) = *(int *)(this + 0x20) + 1;
return;
}
| |
41,325 | inline_mysql_file_write | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_write(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, const uchar *buffer, size_t count, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_written;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_WRITE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_write(file, buffer, count, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_written= (result == 0) ? count : 0;
else
bytes_written= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_written);
return result;
}
#endif
result= my_write(file, buffer, count, flags);
return result;
} | O0 | c | inline_mysql_file_write:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x206c80(%rip), %rax # 0x2c1018
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x7, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xba4a7
leaq 0x206c36(%rip), %rax # 0x2c1018
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xf87d0
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xba452
cmpq $0x0, -0x38(%rbp)
jne 0xba437
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xba442
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xba442
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xba47f
cmpq $-0x1, -0x38(%rbp)
je 0xba466
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xba471
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xba471
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x206b92(%rip), %rax # 0x2c1018
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xba4c7
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xf87d0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_file_write_2:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 7
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_BA4A7
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_write
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_BA452
cmp [rbp+var_38], 0
jnz short loc_BA437
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_BA442
loc_BA437:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_BA442:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_BA47F
loc_BA452:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_BA466
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_BA471
loc_BA466:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_BA471:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_BA47F:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_BA4C7
loc_BA4A7:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_write
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_BA4C7:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_write_2(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6)
{
long long v7; // [rsp+0h] [rbp-A0h]
long long v8; // [rsp+8h] [rbp-98h]
_BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF
long long v10; // [rsp+60h] [rbp-40h]
long long v11; // [rsp+68h] [rbp-38h]
long long v12; // [rsp+70h] [rbp-30h]
long long v13; // [rsp+78h] [rbp-28h]
long long v14; // [rsp+80h] [rbp-20h]
unsigned int v15; // [rsp+88h] [rbp-18h]
unsigned int v16; // [rsp+8Ch] [rbp-14h]
long long v17; // [rsp+90h] [rbp-10h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v12 = a6;
v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 7LL);
if ( v10 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16);
v11 = my_write(v15, v14, v13, v12);
if ( (v12 & 6) != 0 )
{
if ( v11 )
v8 = 0LL;
else
v8 = v13;
((void ( *)(long long, long long))PSI_server[67])(v10, v8);
}
else
{
if ( v11 == -1 )
v7 = 0LL;
else
v7 = v11;
((void ( *)(long long, long long))PSI_server[67])(v10, v7);
}
return v11;
}
else
{
return my_write(v15, v14, v13, v12);
}
}
| inline_mysql_file_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c1018]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x7
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001ba4a7
LEA RAX,[0x3c1018]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f87d0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001ba452
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001ba437
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001ba442
LAB_001ba437:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001ba442
LAB_001ba442:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001ba47f
LAB_001ba452:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001ba466
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001ba471
LAB_001ba466:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001ba471
LAB_001ba471:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001ba47f:
LEA RAX,[0x3c1018]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001ba4c7
LAB_001ba4a7:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f87d0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001ba4c7:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_write
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,ulong param_6)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
ulong local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,7);
if (local_48 == 0) {
local_10 = my_write(local_20,local_28,local_30,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_write(local_20,local_28,local_30,local_38);
if ((local_38 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
41,326 | update_component(unsigned int, TransformComponent&) | untodesu[P]voxelius/game/shared/transform.cc | constexpr inline static void update_component(unsigned int dim, TransformComponent &component)
{
if(component.local[dim] >= CHUNK_SIZE) {
component.local[dim] -= CHUNK_SIZE;
component.chunk[dim] += 1;
return;
}
if(component.local[dim] < 0.0f) {
component.local[dim] += CHUNK_SIZE;
component.chunk[dim] -= 1;
return;
}
} | O0 | cpp | update_component(unsigned int, TransformComponent&):
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
addq $0xc, %rdi
movl -0x4(%rbp), %esi
callq 0x403d0
movss (%rax), %xmm0
movss 0x1f34c5(%rip), %xmm1 # 0x36c560
ucomiss %xmm1, %xmm0
jb 0x1790d9
movq -0x10(%rbp), %rdi
addq $0xc, %rdi
movl -0x4(%rbp), %esi
callq 0x403d0
movss (%rax), %xmm0
movss 0x1f34a4(%rip), %xmm1 # 0x36c560
subss %xmm1, %xmm0
movss %xmm0, (%rax)
movq -0x10(%rbp), %rdi
movl -0x4(%rbp), %esi
callq 0x69b00
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x179124
movq -0x10(%rbp), %rdi
addq $0xc, %rdi
movl -0x4(%rbp), %esi
callq 0x403d0
xorps %xmm0, %xmm0
ucomiss (%rax), %xmm0
jbe 0x179124
movq -0x10(%rbp), %rdi
addq $0xc, %rdi
movl -0x4(%rbp), %esi
callq 0x403d0
movss 0x1f3457(%rip), %xmm0 # 0x36c560
addss (%rax), %xmm0
movss %xmm0, (%rax)
movq -0x10(%rbp), %rdi
movl -0x4(%rbp), %esi
callq 0x69b00
movl (%rax), %ecx
subl $0x1, %ecx
movl %ecx, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ZL16update_componentjR18TransformComponent:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_10]
add rdi, 0Ch
mov esi, [rbp+var_4]
call _ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi; glm::vec<3,float,(glm::qualifier)0>::operator[](int)
movss xmm0, dword ptr [rax]
movss xmm1, cs:flt_36C560
ucomiss xmm0, xmm1
jb short loc_1790D9
mov rdi, [rbp+var_10]
add rdi, 0Ch
mov esi, [rbp+var_4]
call _ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi; glm::vec<3,float,(glm::qualifier)0>::operator[](int)
movss xmm0, dword ptr [rax]
movss xmm1, cs:flt_36C560
subss xmm0, xmm1
movss dword ptr [rax], xmm0
mov rdi, [rbp+var_10]
mov esi, [rbp+var_4]
call _ZN3glm3vecILi3EiLNS_9qualifierE0EEixEi; glm::vec<3,int,(glm::qualifier)0>::operator[](int)
mov ecx, [rax]
add ecx, 1
mov [rax], ecx
jmp short loc_179124
loc_1790D9:
mov rdi, [rbp+var_10]
add rdi, 0Ch
mov esi, [rbp+var_4]
call _ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi; glm::vec<3,float,(glm::qualifier)0>::operator[](int)
xorps xmm0, xmm0
ucomiss xmm0, dword ptr [rax]
jbe short loc_179124
mov rdi, [rbp+var_10]
add rdi, 0Ch
mov esi, [rbp+var_4]
call _ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi; glm::vec<3,float,(glm::qualifier)0>::operator[](int)
movss xmm0, cs:flt_36C560
addss xmm0, dword ptr [rax]
movss dword ptr [rax], xmm0
mov rdi, [rbp+var_10]
mov esi, [rbp+var_4]
call _ZN3glm3vecILi3EiLNS_9qualifierE0EEixEi; glm::vec<3,int,(glm::qualifier)0>::operator[](int)
mov ecx, [rax]
sub ecx, 1
mov [rax], ecx
loc_179124:
add rsp, 10h
pop rbp
retn
| float * update_component(int a1, TransformComponent *a2)
{
float *v2; // rax
float *result; // rax
float *v4; // rax
if ( *(float *)glm::vec<3,float,(glm::qualifier)0>::operator[]((long long)a2 + 12, a1) < 16.0 )
{
result = (float *)glm::vec<3,float,(glm::qualifier)0>::operator[]((long long)a2 + 12, a1);
if ( *result < 0.0 )
{
v4 = (float *)glm::vec<3,float,(glm::qualifier)0>::operator[]((long long)a2 + 12, a1);
*v4 = *v4 + 16.0;
result = (float *)glm::vec<3,int,(glm::qualifier)0>::operator[]((long long)a2, a1);
--*(_DWORD *)result;
}
}
else
{
v2 = (float *)glm::vec<3,float,(glm::qualifier)0>::operator[]((long long)a2 + 12, a1);
*v2 = *v2 - 16.0;
result = (float *)glm::vec<3,int,(glm::qualifier)0>::operator[]((long long)a2, a1);
++*(_DWORD *)result;
}
return result;
}
| _ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ESaI14ChunkComponentEEEE7releaseITnDaXadL_ZNS_8internal13group_handlerINS_16basic_sparse_setIS3_S4_EELm1ELm1ELm0EE17push_on_constructES3_EERSH_EEvT0_Pv:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x18]
CALL 0x00178ee0
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[RBP + -0x18]
CALL 0x00178f00
ADD RSP,0x20
POP RBP
RET
|
void _ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ESaI14ChunkComponentEEEE7releaseITnDaXadL_ZNS_8internal13group_handlerINS_16basic_sparse_setIS3_S4_EELm1ELm1ELm0EE17push_on_constructES3_EERSH_EEvT0_Pv
(int8 param_1,sigh *param_2)
{
sink<entt::sigh<void(entt::basic_registry<entt::entity,std::allocator<entt::entity>>&,entt::entity),std::allocator<ChunkComponent>>>
local_20 [8];
sigh *local_18;
int8 local_10;
local_18 = param_2;
local_10 = param_1;
entt::
sink<entt::sigh<void(entt::basic_registry<entt::entity,std::allocator<entt::entity>>&,entt::entity),std::allocator<ChunkComponent>>>
::sink(local_20,param_2);
_ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ESaI14ChunkComponentEEEE10disconnectITnDaXadL_ZNS_8internal13group_handlerINS_16basic_sparse_setIS3_S4_EELm1ELm1ELm0EE17push_on_constructES3_EEJRSH_EEEvDpOT0_
(local_20,local_10);
return;
}
| |
41,327 | mysql_real_query_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_real_query_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_real_query,
(parms->mysql, parms->stmt_str, parms->length),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_real_query_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 0x10(%rdi), %rdx
movq %rax, %rdi
callq 0x76eae
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_real_query_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 rdx, [rdi+10h]
mov rdi, rax
call mysql_real_query
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_real_query_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_real_query(*a1, a1[1], a1[2]);
v1[2] = result;
*v1 = 0;
return result;
}
| mysql_real_query_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 RDX,qword ptr [RDI + 0x10]
MOV RDI,RAX
CALL 0x00176eae
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_real_query_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_real_query(*param_1,param_1[1],param_1[2]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
41,328 | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op) | monkey531[P]llama/common/minja.hpp | Expression(const Location & location) : location(location) {} | O3 | cpp | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op):
leaq 0xa13a5(%rip), %rax # 0x154398
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0xb3024
movq 0xa2f6b(%rip), %r8 # 0x155f80
cmpb $0x0, (%r8)
je 0xb3020
incl 0x8(%rax)
jmp 0xb3024
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0xa1695(%rip), %rax # 0x1546c8
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
retq
nop
| _ZN5minja9SliceExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_B3024
mov r8, cs:__libc_single_threaded_ptr
cmp byte ptr [r8], 0
jz short loc_B3020
inc dword ptr [rax+8]
jmp short loc_B3024
loc_B3020:
lock inc dword ptr [rax+8]
loc_B3024:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
retn
| long long minja::SliceExpr::SliceExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4)
{
long long v4; // rax
long long result; // rax
__int128 v6; // xmm0
__int128 v7; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v4 = a2[1];
*(_QWORD *)(a1 + 16) = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v4 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v4 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::SliceExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a4 = 0LL;
return result;
}
| SliceExpr:
LEA RAX,[0x254398]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x001b3024
MOV R8,qword ptr [0x00255f80]
CMP byte ptr [R8],0x0
JZ 0x001b3020
INC dword ptr [RAX + 0x8]
JMP 0x001b3024
LAB_001b3020:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001b3024:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x2546c8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
RET
|
/* minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SliceExpr::SliceExpr
(SliceExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_002543a8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00255f80 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_evaluate_002546d8;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)param_3 = 0;
return;
}
| |
41,329 | int10_to_str | eloqsql/strings/int2str.c | char *int10_to_str(long int val,char *dst,int radix)
{
char buffer[65];
register char *p;
long int new_val;
unsigned long int uval = (unsigned long int) val;
if (radix < 0) /* -10 */
{
if (val < 0)
{
*dst++ = '-';
/* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */
uval = (unsigned long int)0 - uval;
}
}
p = &buffer[sizeof(buffer)-1];
*p = '\0';
new_val= (long) (uval / 10);
*--p = '0'+ (char) (uval - (unsigned long) new_val * 10);
val = new_val;
while (val != 0)
{
new_val=val/10;
*--p = '0' + (char) (val-new_val*10);
val= new_val;
}
while ((*dst++ = *p++) != 0) ;
return dst-1;
} | O3 | c | int10_to_str:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
testl %edx, %edx
setns %al
testq %rdi, %rdi
setns %cl
orb %al, %cl
jne 0xd5713
movb $0x2d, (%rsi)
incq %rsi
negq %rdi
leaq -0x11(%rbp), %r8
movabsq $-0x3333333333333333, %r9 # imm = 0xCCCCCCCCCCCCCCCD
movq %rdi, %rax
mulq %r9
movq %rdx, %rcx
movb $0x0, 0x1(%r8)
shrq $0x3, %rcx
imull $0xf6, %ecx, %eax
addl %edi, %eax
addb $0x30, %al
movb %al, (%r8)
cmpq $0xa, %rdi
jb 0xd576a
movq %rcx, %rax
mulq %r9
shrq $0x3, %rdx
imull $0xf6, %edx, %eax
addl %ecx, %eax
addb $0x30, %al
movb %al, -0x1(%r8)
decq %r8
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0xd5746
decq %rsi
movb (%r8), %al
incq %r8
movb %al, 0x1(%rsi)
incq %rsi
testb %al, %al
jne 0xd576d
movq %fs:0x28, %rax
cmpq -0x8(%rbp), %rax
jne 0xd5795
movq %rsi, %rax
addq $0x50, %rsp
popq %rbp
retq
callq 0x29270
nop
| int10_to_str:
push rbp
mov rbp, rsp
sub rsp, 50h
mov rax, fs:28h
mov [rbp+var_8], rax
test edx, edx
setns al
test rdi, rdi
setns cl
or cl, al
jnz short loc_D5713
mov byte ptr [rsi], 2Dh ; '-'
inc rsi
neg rdi
loc_D5713:
lea r8, [rbp+var_11]
mov r9, 0CCCCCCCCCCCCCCCDh
mov rax, rdi
mul r9
mov rcx, rdx
mov byte ptr [r8+1], 0
shr rcx, 3
imul eax, ecx, 0F6h
add eax, edi
add al, 30h ; '0'
mov [r8], al
cmp rdi, 0Ah
jb short loc_D576A
loc_D5746:
mov rax, rcx
mul r9
shr rdx, 3
imul eax, edx, 0F6h
add eax, ecx
add al, 30h ; '0'
mov [r8-1], al
dec r8
cmp rcx, 9
mov rcx, rdx
ja short loc_D5746
loc_D576A:
dec rsi
loc_D576D:
mov al, [r8]
inc r8
mov [rsi+1], al
inc rsi
test al, al
jnz short loc_D576D
mov rax, fs:28h
cmp rax, [rbp+var_8]
jnz short loc_D5795
mov rax, rsi
add rsp, 50h
pop rbp
retn
loc_D5795:
call ___stack_chk_fail
| _BYTE * int10_to_str(unsigned long long a1, _BYTE *a2, int a3)
{
char *v3; // r8
unsigned long long v4; // rcx
bool v5; // cc
_BYTE *v6; // rsi
char v7; // al
_BYTE v9[9]; // [rsp+3Fh] [rbp-11h] BYREF
unsigned long long v10; // [rsp+48h] [rbp-8h]
v10 = __readfsqword(0x28u);
if ( a3 < 0 && (a1 & 0x8000000000000000LL) != 0LL )
{
*a2++ = 45;
a1 = -(long long)a1;
}
v3 = v9;
v9[1] = 0;
v4 = a1 / 0xA;
v9[0] = a1 % 0xA + 48;
if ( a1 >= 0xA )
{
do
{
*--v3 = v4 % 0xA + 48;
v5 = v4 <= 9;
v4 /= 0xAuLL;
}
while ( !v5 );
}
v6 = a2 - 1;
do
{
v7 = *v3++;
*++v6 = v7;
}
while ( v7 );
return v6;
}
| int10_to_str:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
TEST EDX,EDX
SETNS AL
TEST RDI,RDI
SETNS CL
OR CL,AL
JNZ 0x001d5713
MOV byte ptr [RSI],0x2d
INC RSI
NEG RDI
LAB_001d5713:
LEA R8,[RBP + -0x11]
MOV R9,-0x3333333333333333
MOV RAX,RDI
MUL R9
MOV RCX,RDX
MOV byte ptr [R8 + 0x1],0x0
SHR RCX,0x3
IMUL EAX,ECX,0xf6
ADD EAX,EDI
ADD AL,0x30
MOV byte ptr [R8],AL
CMP RDI,0xa
JC 0x001d576a
LAB_001d5746:
MOV RAX,RCX
MUL R9
SHR RDX,0x3
IMUL EAX,EDX,0xf6
ADD EAX,ECX
ADD AL,0x30
MOV byte ptr [R8 + -0x1],AL
DEC R8
CMP RCX,0x9
MOV RCX,RDX
JA 0x001d5746
LAB_001d576a:
DEC RSI
LAB_001d576d:
MOV AL,byte ptr [R8]
INC R8
MOV byte ptr [RSI + 0x1],AL
INC RSI
TEST AL,AL
JNZ 0x001d576d
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x8]
JNZ 0x001d5795
MOV RAX,RSI
ADD RSP,0x50
POP RBP
RET
LAB_001d5795:
CALL 0x00129270
|
int1 * int10_to_str(ulong param_1,int1 *param_2,int param_3)
{
char cVar1;
ulong uVar2;
ulong uVar3;
char *pcVar4;
long in_FS_OFFSET;
char local_1a [10];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if ((long)param_1 < 0 && param_3 < 0) {
*param_2 = 0x2d;
param_2 = param_2 + 1;
param_1 = -param_1;
}
pcVar4 = local_1a + 1;
local_1a[2] = 0;
local_1a[1] = (char)(param_1 / 10) * -10 + (char)param_1 + '0';
uVar3 = param_1 / 10;
while (uVar2 = uVar3, 9 < param_1) {
pcVar4[-1] = (char)(uVar2 / 10) * -10 + (char)uVar2 + '0';
pcVar4 = pcVar4 + -1;
uVar3 = uVar2 / 10;
param_1 = uVar2;
}
param_2 = param_2 + -1;
do {
cVar1 = *pcVar4;
pcVar4 = pcVar4 + 1;
param_2[1] = cVar1;
param_2 = param_2 + 1;
} while (cVar1 != '\0');
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return param_2;
}
| |
41,330 | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<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*, 0>(int, 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*) | monkey531[P]llama/common/json.hpp | static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<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*, 0>(int, 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 %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 0x60e58(%rip), %rsi # 0xedf29
leaq 0x60e61(%rip), %rdx # 0xedf39
leaq 0x28(%rsp), %rdi
callq 0x21c52
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x57ada
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 0x1ad50
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a250
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a250
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a250
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x8d17b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a8b0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d196
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a8b0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d1ad
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8b0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x57d48
leaq 0x9dd2d(%rip), %rax # 0x12aef0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d1e1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8b0
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 0x8d26f
movq 0x18(%rsp), %rsi
jmp 0x8d267
movq %rax, %rbx
jmp 0x8d258
movq %rax, %rbx
jmp 0x8d26f
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d231
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8b0
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 0x1bd5b
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d26f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8b0
movq %rbx, %rdi
callq 0x1af70
nop
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
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, aInvalidIterato; "invalid_iterator"
lea rdx, aInvalidIterato+10h; ""
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_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::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_8D17B
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D17B:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8D196
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D196:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_8D1AD
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D1AD:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_8D1E1
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D1E1:
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_8D26F
mov rsi, [rsp+arg_10]
jmp short loc_8D267
mov rbx, rax
jmp short loc_8D258
mov rbx, rax
jmp short loc_8D26F
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_8D231
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D231:
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_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1
mov rbx, [r12]
loc_8D258:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_8D26F
mov rsi, [rsp+arg_30]
loc_8D267:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8D26F:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::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, "invalid_iterator", (long long)"");
nlohmann::json_abi_v3_11_3::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_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| |||
41,331 | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<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*, 0>(int, 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*) | monkey531[P]llama/common/json.hpp | static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<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*, 0>(int, 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 %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x6d1ad(%rip), %rsi # 0xafe74
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2746a
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x3d88c
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x41c06
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x3d823
leaq 0x8(%rsp), %rdi
callq 0x241b8
leaq 0x48(%rsp), %rdi
callq 0x241b8
leaq 0x28(%rsp), %rdi
callq 0x241b8
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x42d96
leaq 0x68(%rsp), %rdi
callq 0x241b8
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x42d83
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x241b8
jmp 0x42d6f
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x241b8
jmp 0x42d7e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x241b8
jmp 0x42d8d
movq %rax, %rbx
movq %rbx, %rdi
callq 0x23f80
nop
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_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, aInvalidIterato; "invalid_iterator"
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_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> 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_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::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_36detail16invalid_iteratorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::invalid_iterator::invalid_iterator(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_42D83
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_42D6F
mov rbx, rax
loc_42D6F:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_42D7E
mov rbx, rax
loc_42D7E:
lea rdi, [rsp+arg_20]; void *
loc_42D83:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_42D8D
mov rbx, rax
loc_42D8D:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::invalid_iterator * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::invalid_iterator *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)"invalid_iterator");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<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>>(v5);
nlohmann::json_abi_v3_11_3::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_3::detail::invalid_iterator::invalid_iterator(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_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_00142cc0:
LEA RSI,[0x1afe74]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0012746a
LAB_00142cd6:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0013d88c
LAB_00142ce7:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x00141c06
LAB_00142cf4:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0013d823
LEA RDI,[RSP + 0x8]
CALL 0x001241b8
LEA RDI,[RSP + 0x48]
CALL 0x001241b8
LEA RDI,[RSP + 0x28]
CALL 0x001241b8
MOV RDX,qword ptr [RSP + 0x68]
LAB_00142d2e:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00142d96
LAB_00142d38:
LEA RDI,[RSP + 0x68]
CALL 0x001241b8
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
invalid_iterator *
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(invalid_iterator *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 00142cc0 to 00142cd5 has its CatchHandler @ 00142d8a */
std::__cxx11::string::string<std::allocator<char>>(local_80,"invalid_iterator",&local_a1);
/* try { // try from 00142cd6 to 00142ce6 has its CatchHandler @ 00142d7b */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 00142ce7 to 00142cf3 has its CatchHandler @ 00142d6c */
nlohmann::json_abi_v3_11_3::detail::exception::
diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_a0);
/* try { // try from 00142cf4 to 00142d0a has its CatchHandler @ 00142d5d */
nlohmann::json_abi_v3_11_3::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 00142d2e to 00142d37 has its CatchHandler @ 00142d53 */
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::invalid_iterator
(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
41,332 | ma_ck_write | eloqsql/storage/maria/ma_write.c | my_bool _ma_ck_write(MARIA_HA *info, MARIA_KEY *key)
{
DBUG_ENTER("_ma_ck_write");
if (info->bulk_insert &&
is_tree_inited(&info->bulk_insert[key->keyinfo->key_nr]))
{
DBUG_RETURN(_ma_ck_write_tree(info, key));
}
DBUG_RETURN(_ma_ck_write_btree(info, key));
} | O0 | c | ma_ck_write:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x310(%rax)
je 0x624bc
movq -0x10(%rbp), %rax
movq 0x310(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
movzbl 0xa5(%rcx), %ecx
imulq $0x298, %rcx, %rcx # imm = 0x298
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x624bc
jmp 0x624aa
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x624e0
movb %al, -0x1(%rbp)
jmp 0x624ce
jmp 0x624be
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x62590
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_ck_write:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+310h], 0
jz short loc_624BC
mov rax, [rbp+var_10]
mov rax, [rax+310h]
mov rcx, [rbp+var_18]
mov rcx, [rcx+8]
movzx ecx, byte ptr [rcx+0A5h]
imul rcx, 298h
add rax, rcx
cmp qword ptr [rax], 0
jz short loc_624BC
jmp short $+2
loc_624AA:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _ma_ck_write_tree
mov [rbp+var_1], al
jmp short loc_624CE
loc_624BC:
jmp short $+2
loc_624BE:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _ma_ck_write_btree
mov [rbp+var_1], al
loc_624CE:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_ck_write(long long a1, long long a2)
{
if ( *(_QWORD *)(a1 + 784)
&& *(_QWORD *)(664LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + 165LL) + *(_QWORD *)(a1 + 784)) )
{
return ma_ck_write_tree(a1, a2);
}
else
{
return ma_ck_write_btree(a1, a2);
}
}
| _ma_ck_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x310],0x0
JZ 0x001624bc
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x310]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x8]
MOVZX ECX,byte ptr [RCX + 0xa5]
IMUL RCX,RCX,0x298
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JZ 0x001624bc
JMP 0x001624aa
LAB_001624aa:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001624e0
MOV byte ptr [RBP + -0x1],AL
JMP 0x001624ce
LAB_001624bc:
JMP 0x001624be
LAB_001624be:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00162590
MOV byte ptr [RBP + -0x1],AL
LAB_001624ce:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 _ma_ck_write(long param_1,long param_2)
{
int1 local_9;
if ((*(long *)(param_1 + 0x310) == 0) ||
(*(long *)(*(long *)(param_1 + 0x310) + (ulong)*(byte *)(*(long *)(param_2 + 8) + 0xa5) * 0x298
) == 0)) {
local_9 = _ma_ck_write_btree(param_1,param_2);
}
else {
local_9 = _ma_ck_write_tree(param_1,param_2);
}
return local_9;
}
| |
41,333 | ft2_search | eloqsql/storage/myisam/ft_boolean_search.c | static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search)
{
int r;
MYISAM_SHARE *share= ftb->info->s;
if (share->concurrent_insert)
mysql_rwlock_rdlock(&share->key_root_lock[ftb->keynr]);
r= _ft2_search_no_lock(ftb, ftbw, init_search);
if (share->concurrent_insert)
mysql_rwlock_unlock(&share->key_root_lock[ftb->keynr]);
return r;
} | O0 | c | ft2_search:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpb $0x0, 0x384(%rax)
je 0x9eff1
movq -0x20(%rbp), %rax
movq 0x4c8(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x340(%rax), %eax
imulq $0x98, %rax, %rax
addq %rax, %rdi
leaq 0xb4963(%rip), %rsi # 0x15394a
movl $0x1e4, %edx # imm = 0x1E4
callq 0xa01d0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movsbl -0x11(%rbp), %edx
callq 0xa0240
movl %eax, -0x18(%rbp)
movq -0x20(%rbp), %rax
cmpb $0x0, 0x384(%rax)
je 0x9f036
movq -0x20(%rbp), %rax
movq 0x4c8(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x340(%rax), %eax
imulq $0x98, %rax, %rax
addq %rax, %rdi
callq 0xa07e0
movl -0x18(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| _ft2_search:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], al
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
cmp byte ptr [rax+384h], 0
jz short loc_9EFF1
mov rax, [rbp+var_20]
mov rdi, [rax+4C8h]
mov rax, [rbp+var_8]
mov eax, [rax+340h]
imul rax, 98h
add rdi, rax
lea rsi, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1E4h
call inline_mysql_rwlock_rdlock_1
loc_9EFF1:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
movsx edx, [rbp+var_11]
call _ft2_search_no_lock
mov [rbp+var_18], eax
mov rax, [rbp+var_20]
cmp byte ptr [rax+384h], 0
jz short loc_9F036
mov rax, [rbp+var_20]
mov rdi, [rax+4C8h]
mov rax, [rbp+var_8]
mov eax, [rax+340h]
imul rax, 98h
add rdi, rax
call inline_mysql_rwlock_unlock_3
loc_9F036:
mov eax, [rbp+var_18]
add rsp, 20h
pop rbp
retn
| long long ft2_search(long long a1, long long a2, char a3)
{
long long v4; // [rsp+0h] [rbp-20h]
unsigned int v5; // [rsp+8h] [rbp-18h]
v4 = **(_QWORD **)(a1 + 8);
if ( *(_BYTE *)(v4 + 900) )
inline_mysql_rwlock_rdlock_1(
152LL * *(unsigned int *)(a1 + 832) + *(_QWORD *)(v4 + 1224),
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/ft_boolean_search.c",
484LL);
v5 = ft2_search_no_lock(a1, a2, (unsigned int)a3);
if ( *(_BYTE *)(v4 + 900) )
inline_mysql_rwlock_unlock_3(152LL * *(unsigned int *)(a1 + 832) + *(_QWORD *)(v4 + 1224));
return v5;
}
| _ft2_search:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x384],0x0
JZ 0x0019eff1
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x4c8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x340]
IMUL RAX,RAX,0x98
ADD RDI,RAX
LEA RSI,[0x25394a]
MOV EDX,0x1e4
CALL 0x001a01d0
LAB_0019eff1:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOVSX EDX,byte ptr [RBP + -0x11]
CALL 0x001a0240
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x384],0x0
JZ 0x0019f036
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x4c8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x340]
IMUL RAX,RAX,0x98
ADD RDI,RAX
CALL 0x001a07e0
LAB_0019f036:
MOV EAX,dword ptr [RBP + -0x18]
ADD RSP,0x20
POP RBP
RET
|
int4 _ft2_search(long param_1,int8 param_2,char param_3)
{
long lVar1;
int4 uVar2;
lVar1 = **(long **)(param_1 + 8);
if (*(char *)(lVar1 + 900) != '\0') {
inline_mysql_rwlock_rdlock
(*(long *)(lVar1 + 0x4c8) + (ulong)*(uint *)(param_1 + 0x340) * 0x98,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/ft_boolean_search.c",0x1e4);
}
uVar2 = _ft2_search_no_lock(param_1,param_2,(int)param_3);
if (*(char *)(lVar1 + 900) != '\0') {
inline_mysql_rwlock_unlock(*(long *)(lVar1 + 0x4c8) + (ulong)*(uint *)(param_1 + 0x340) * 0x98);
}
return uVar2;
}
| |
41,334 | translog_get_last_page_addr | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_get_last_page_addr(TRANSLOG_ADDRESS *addr,
my_bool *last_page_ok,
my_bool no_errors)
{
char path[FN_REFLEN];
uint32 rec_offset;
my_off_t file_size;
uint32 file_no= LSN_FILE_NO(*addr);
TRANSLOG_FILE *file;
#ifndef DBUG_OFF
char buff[21];
#endif
DBUG_ENTER("translog_get_last_page_addr");
if (likely((file= get_logfile_by_number(file_no)) != NULL))
{
/*
This function used only during initialization of loghandler or in
scanner (which mean we need read that part of the log), so the
requested log file have to be opened and can't be freed after
returning pointer on it (file_size).
*/
file_size= mysql_file_seek(file->handler.file, 0, SEEK_END, MYF(0));
}
else
{
/*
This branch is used only during very early initialization
when files are not opened.
*/
File fd;
if ((fd= mysql_file_open(key_file_translog,
translog_filename_by_fileno(file_no, path),
O_RDONLY | O_CLOEXEC, (no_errors ? MYF(0) : MYF(MY_WME)))) < 0)
{
my_errno= errno;
DBUG_PRINT("error", ("Error %d during opening file #%d",
errno, file_no));
DBUG_RETURN(1);
}
file_size= mysql_file_seek(fd, 0, SEEK_END, MYF(0));
mysql_file_close(fd, MYF(0));
}
DBUG_PRINT("info", ("File size: %s", llstr(file_size, buff)));
if (file_size == MY_FILEPOS_ERROR)
DBUG_RETURN(1);
DBUG_ASSERT(file_size < 0xffffffffULL);
if (((uint32)file_size) > TRANSLOG_PAGE_SIZE)
{
rec_offset= (((((uint32)file_size) / TRANSLOG_PAGE_SIZE) - 1) *
TRANSLOG_PAGE_SIZE);
*last_page_ok= (((uint32)file_size) == rec_offset + TRANSLOG_PAGE_SIZE);
}
else
{
*last_page_ok= 0;
rec_offset= 0;
}
*addr= MAKE_LSN(file_no, rec_offset);
DBUG_PRINT("info", ("Last page: 0x%lx ok: %d", (ulong) rec_offset,
*last_page_ok));
DBUG_RETURN(0);
} | O3 | c | translog_get_last_page_addr:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp # imm = 0x218
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r13
movq %r13, %r12
shrq $0x20, %r12
movl %r12d, %edi
callq 0x6dbf6
testq %rax, %rax
je 0x691ea
movl 0x18(%rax), %r15d
leaq 0x327d86(%rip), %rax # 0x390ed8
movq (%rax), %rax
leaq -0x230(%rbp), %rdi
movl %r15d, %esi
movl $0x8, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x69219
movl %r15d, %edi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0xa7e58
movq %rax, %rcx
cmpq $-0x1, %rcx
je 0x691c7
movl $0xffffe000, %edx # imm = 0xFFFFE000
movl %ecx, %eax
andl %edx, %eax
addl %eax, %edx
cmpl %ecx, %eax
sete %sil
xorl %eax, %eax
cmpl $0x2001, %ecx # imm = 0x2001
setae %cl
cmovbl %eax, %edx
andb %sil, %cl
movb %cl, (%r14)
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rcx, %r13
orq %rdx, %r13
movq %r13, (%rbx)
jmp 0x691c9
movb $0x1, %al
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x69237
addq $0x218, %rsp # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %r15b, %edx
leaq -0x230(%rbp), %rsi
leaq -0x238(%rbp), %rcx
movl %r12d, %edi
callq 0x2da39
movl %eax, %ecx
movb $0x1, %al
testb $0x1, %cl
je 0x691c9
movq -0x238(%rbp), %rcx
jmp 0x69187
leaq -0x238(%rbp), %r12
movq %rax, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0x2d9dc
movq (%r12), %rcx
jmp 0x69187
callq 0x2a240
| translog_get_last_page_addr:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 218h
mov r15d, edx
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r13, [rdi]
mov r12, r13
shr r12, 20h
mov edi, r12d
call get_logfile_by_number
test rax, rax
jz loc_691EA
mov r15d, [rax+18h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_230]
mov esi, r15d
mov edx, 8
call qword ptr [rax+158h]
test rax, rax
jnz loc_69219
mov edi, r15d
xor esi, esi
mov edx, 2
xor ecx, ecx
call my_seek
mov rcx, rax
loc_69187:
cmp rcx, 0FFFFFFFFFFFFFFFFh
jz short loc_691C7
mov edx, 0FFFFE000h
mov eax, ecx
and eax, edx
add edx, eax
cmp eax, ecx
setz sil
xor eax, eax
cmp ecx, 2001h
setnb cl
cmovb edx, eax
and cl, sil
mov [r14], cl
mov rcx, 0FFFFFFFF00000000h
and r13, rcx
or r13, rdx
mov [rbx], r13
jmp short loc_691C9
loc_691C7:
mov al, 1
loc_691C9:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_69237
add rsp, 218h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_691EA:
movzx edx, r15b
lea rsi, [rbp+var_230]
lea rcx, [rbp+var_238]
mov edi, r12d
call translog_get_last_page_addr_cold_2
mov ecx, eax
mov al, 1
test cl, 1
jz short loc_691C9
mov rcx, [rbp+var_238]
jmp loc_69187
loc_69219:
lea r12, [rbp+var_238]
mov rdi, rax
mov esi, r15d
mov rdx, r12
call translog_get_last_page_addr_cold_1
mov rcx, [r12]
jmp loc_69187
loc_69237:
call ___stack_chk_fail
| char translog_get_last_page_addr(unsigned long long *a1, bool *a2, char a3)
{
unsigned long long v4; // r13
unsigned long long v5; // r12
long long logfile_by_number; // rax
unsigned int v7; // r15d
long long v8; // rax
long long v9; // rcx
long long v10; // rdx
char result; // al
char last_page_addr_cold_2; // cl
long long v13; // [rsp+8h] [rbp-238h] BYREF
_BYTE v14[512]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v15; // [rsp+210h] [rbp-30h]
v15 = __readfsqword(0x28u);
v4 = *a1;
v5 = HIDWORD(*a1);
logfile_by_number = get_logfile_by_number(HIDWORD(*a1));
if ( logfile_by_number )
{
v7 = *(_DWORD *)(logfile_by_number + 24);
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v14, v7, 8LL);
if ( v8 )
{
translog_get_last_page_addr_cold_1(v8, v7, &v13);
v9 = v13;
}
else
{
v9 = my_seek(v7, 0LL, 2LL, 0LL);
}
}
else
{
last_page_addr_cold_2 = translog_get_last_page_addr_cold_2((unsigned int)v5, (long long)v14, a3, &v13);
result = 1;
if ( (last_page_addr_cold_2 & 1) == 0 )
return result;
v9 = v13;
}
if ( v9 == -1 )
return 1;
v10 = ((unsigned int)v9 & 0xFFFFE000) - 0x2000;
result = 0;
if ( (unsigned int)v9 < 0x2001 )
v10 = 0LL;
*a2 = (v9 & 0xFFFFE000) == (_DWORD)v9 && (unsigned int)v9 >= 0x2001;
*a1 = v10 | v4 & 0xFFFFFFFF00000000LL;
return result;
}
| translog_get_last_page_addr:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x218
MOV R15D,EDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R13,qword ptr [RDI]
MOV R12,R13
SHR R12,0x20
MOV EDI,R12D
CALL 0x0016dbf6
TEST RAX,RAX
JZ 0x001691ea
MOV R15D,dword ptr [RAX + 0x18]
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x230]
MOV ESI,R15D
MOV EDX,0x8
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00169219
MOV EDI,R15D
XOR ESI,ESI
MOV EDX,0x2
XOR ECX,ECX
CALL 0x001a7e58
MOV RCX,RAX
LAB_00169187:
CMP RCX,-0x1
JZ 0x001691c7
MOV EDX,0xffffe000
MOV EAX,ECX
AND EAX,EDX
ADD EDX,EAX
CMP EAX,ECX
SETZ SIL
XOR EAX,EAX
CMP ECX,0x2001
SETNC CL
CMOVC EDX,EAX
AND CL,SIL
MOV byte ptr [R14],CL
MOV RCX,-0x100000000
AND R13,RCX
OR R13,RDX
MOV qword ptr [RBX],R13
JMP 0x001691c9
LAB_001691c7:
MOV AL,0x1
LAB_001691c9:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x00169237
ADD RSP,0x218
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001691ea:
MOVZX EDX,R15B
LEA RSI,[RBP + -0x230]
LEA RCX,[RBP + -0x238]
MOV EDI,R12D
CALL 0x0012da39
MOV ECX,EAX
MOV AL,0x1
TEST CL,0x1
JZ 0x001691c9
MOV RCX,qword ptr [RBP + -0x238]
JMP 0x00169187
LAB_00169219:
LEA R12,[RBP + -0x238]
MOV RDI,RAX
MOV ESI,R15D
MOV RDX,R12
CALL 0x0012d9dc
MOV RCX,qword ptr [R12]
JMP 0x00169187
LAB_00169237:
CALL 0x0012a240
|
int8 translog_get_last_page_addr(ulong *param_1,int8 param_2,int1 param_3)
{
int4 uVar1;
ulong uVar2;
uint uVar3;
long lVar4;
int8 uVar5;
uint uVar6;
ulong uVar7;
long in_FS_OFFSET;
long local_240;
int1 local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar2 = *param_1;
uVar7 = uVar2 >> 0x20;
lVar4 = get_logfile_by_number(uVar7);
if (lVar4 == 0) {
uVar7 = translog_get_last_page_addr_cold_2(uVar7,local_238,param_3,&local_240);
uVar5 = 1;
if ((uVar7 & 1) == 0) goto LAB_001691c9;
}
else {
uVar1 = *(int4 *)(lVar4 + 0x18);
lVar4 = (**(code **)(PSI_server + 0x158))(local_238,uVar1,8);
if (lVar4 == 0) {
local_240 = my_seek(uVar1,0,2,0);
}
else {
translog_get_last_page_addr_cold_1(lVar4,uVar1,&local_240);
}
}
if (local_240 == -1) {
uVar5 = 1;
}
else {
uVar6 = (uint)local_240;
uVar5 = 0;
uVar3 = (uVar6 & 0xffffe000) - 0x2000;
if (0x2000 >= uVar6) {
uVar3 = 0;
}
*(bool *)param_2 = 0x2000 < uVar6 && (uVar6 & 0xffffe000) == uVar6;
*param_1 = uVar2 & 0xffffffff00000000 | (ulong)uVar3;
}
LAB_001691c9:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar5;
}
| |
41,335 | google::protobuf::internal::ExtensionSet::SwapExtension(google::protobuf::MessageLite const*, google::protobuf::internal::ExtensionSet*, int) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc | void ExtensionSet::SwapExtension(const MessageLite* extendee,
ExtensionSet* other, int number) {
if (this == other) return;
if (GetArena() == other->GetArena()) {
UnsafeShallowSwapExtension(other, number);
return;
}
Extension* this_ext = FindOrNull(number);
Extension* other_ext = other->FindOrNull(number);
if (this_ext == other_ext) return;
if (this_ext != nullptr && other_ext != nullptr) {
// TODO(cfallin, rohananil): We could further optimize these cases,
// especially avoid creation of ExtensionSet, and move MergeFrom logic
// into Extensions itself (which takes arena as an argument).
// We do it this way to reuse the copy-across-arenas logic already
// implemented in ExtensionSet's MergeFrom.
ExtensionSet temp;
temp.InternalExtensionMergeFrom(extendee, number, *other_ext,
other->GetArena());
Extension* temp_ext = temp.FindOrNull(number);
other_ext->Clear();
other->InternalExtensionMergeFrom(extendee, number, *this_ext,
this->GetArena());
this_ext->Clear();
InternalExtensionMergeFrom(extendee, number, *temp_ext, temp.GetArena());
} else if (this_ext == nullptr) {
InternalExtensionMergeFrom(extendee, number, *other_ext, other->GetArena());
if (other->GetArena() == nullptr) other_ext->Free();
other->Erase(number);
} else {
other->InternalExtensionMergeFrom(extendee, number, *this_ext,
this->GetArena());
if (GetArena() == nullptr) this_ext->Free();
Erase(number);
}
} | O0 | cpp | google::protobuf::internal::ExtensionSet::SwapExtension(google::protobuf::MessageLite const*, google::protobuf::internal::ExtensionSet*, int):
subq $0x118, %rsp # imm = 0x118
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq %rdx, 0x100(%rsp)
movl %ecx, 0xfc(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0xb0(%rsp)
cmpq 0x100(%rsp), %rax
jne 0x22a735
jmp 0x22aadf
movq 0xb0(%rsp), %rdi
callq 0x233300
movq %rax, 0xa8(%rsp)
movq 0x100(%rsp), %rdi
callq 0x233300
movq %rax, %rcx
movq 0xa8(%rsp), %rax
cmpq %rcx, %rax
jne 0x22a788
movq 0xb0(%rsp), %rdi
movq 0x100(%rsp), %rsi
movl 0xfc(%rsp), %edx
callq 0x22ab00
jmp 0x22aadf
movq 0xb0(%rsp), %rdi
movl 0xfc(%rsp), %esi
callq 0x215220
movq %rax, 0xf0(%rsp)
movq 0x100(%rsp), %rdi
movl 0xfc(%rsp), %esi
callq 0x215220
movq %rax, 0xe8(%rsp)
movq 0xf0(%rsp), %rax
cmpq 0xe8(%rsp), %rax
jne 0x22a7d7
jmp 0x22aadf
cmpq $0x0, 0xf0(%rsp)
je 0x22a9b9
cmpq $0x0, 0xe8(%rsp)
je 0x22a9b9
leaq 0xd0(%rsp), %rdi
callq 0x233310
movq 0x108(%rsp), %rax
movq %rax, 0x88(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x94(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x100(%rsp), %rdi
callq 0x233300
movq %rax, 0xa0(%rsp)
jmp 0x22a847
movq 0xa0(%rsp), %r8
movq 0x98(%rsp), %rcx
movl 0x94(%rsp), %edx
movq 0x88(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
callq 0x2279b0
jmp 0x22a875
movl 0xfc(%rsp), %esi
leaq 0xd0(%rsp), %rdi
callq 0x215220
movq %rax, 0x80(%rsp)
jmp 0x22a893
movq 0x80(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x215250
jmp 0x22a8b2
movq 0xb0(%rsp), %rdi
movq 0x100(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x6c(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x70(%rsp)
callq 0x233300
movq %rax, 0x78(%rsp)
jmp 0x22a8f8
movq 0x78(%rsp), %r8
movq 0x70(%rsp), %rcx
movl 0x6c(%rsp), %edx
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdi
callq 0x2279b0
jmp 0x22a917
movq 0xf0(%rsp), %rdi
callq 0x215250
jmp 0x22a926
movq 0x108(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x44(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x233300
movq %rax, 0x50(%rsp)
jmp 0x22a95f
movq 0x50(%rsp), %r8
movq 0x48(%rsp), %rcx
movl 0x44(%rsp), %edx
movq 0x38(%rsp), %rsi
movq 0xb0(%rsp), %rdi
callq 0x2279b0
jmp 0x22a981
leaq 0xd0(%rsp), %rdi
callq 0x2148e0
jmp 0x22aadf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x2148e0
jmp 0x22aae7
cmpq $0x0, 0xf0(%rsp)
jne 0x22aa51
movq 0x108(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x100(%rsp), %rdi
callq 0x233300
movq 0xb0(%rsp), %rdi
movq 0x20(%rsp), %rsi
movl 0x2c(%rsp), %edx
movq 0x30(%rsp), %rcx
movq %rax, %r8
callq 0x2279b0
movq 0x100(%rsp), %rdi
callq 0x233300
cmpq $0x0, %rax
jne 0x22aa38
movq 0xe8(%rsp), %rdi
callq 0x22ad90
movq 0x100(%rsp), %rdi
movl 0xfc(%rsp), %esi
callq 0x225020
jmp 0x22aadd
movq 0xb0(%rsp), %rdi
movq 0x100(%rsp), %rax
movq %rax, (%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x233300
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movl 0x14(%rsp), %edx
movq 0x18(%rsp), %rcx
movq %rax, %r8
callq 0x2279b0
movq 0xb0(%rsp), %rdi
callq 0x233300
cmpq $0x0, %rax
jne 0x22aac9
movq 0xf0(%rsp), %rdi
callq 0x22ad90
movq 0xb0(%rsp), %rdi
movl 0xfc(%rsp), %esi
callq 0x225020
jmp 0x22aadf
addq $0x118, %rsp # imm = 0x118
retq
movq 0xc8(%rsp), %rdi
callq 0x90db0
nopw %cs:(%rax,%rax)
| _ZN6google8protobuf8internal12ExtensionSet13SwapExtensionEPKNS0_11MessageLiteEPS2_i:
sub rsp, 118h
mov [rsp+118h+var_8], rdi
mov [rsp+118h+var_10], rsi
mov [rsp+118h+var_18], rdx
mov [rsp+118h+var_1C], ecx
mov rax, [rsp+118h+var_8]
mov [rsp+118h+var_68], rax
cmp rax, [rsp+118h+var_18]
jnz short loc_22A735
jmp loc_22AADF
loc_22A735:
mov rdi, [rsp+118h+var_68]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov [rsp+118h+var_70], rax
mov rdi, [rsp+118h+var_18]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov rcx, rax
mov rax, [rsp+118h+var_70]
cmp rax, rcx
jnz short loc_22A788
mov rdi, [rsp+118h+var_68]; this
mov rsi, [rsp+118h+var_18]; google::protobuf::internal::ExtensionSet *
mov edx, [rsp+118h+var_1C]; int
call _ZN6google8protobuf8internal12ExtensionSet26UnsafeShallowSwapExtensionEPS2_i; google::protobuf::internal::ExtensionSet::UnsafeShallowSwapExtension(google::protobuf::internal::ExtensionSet*,int)
jmp loc_22AADF
loc_22A788:
mov rdi, [rsp+118h+var_68]; this
mov esi, [rsp+118h+var_1C]; int
call _ZN6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int)
mov [rsp+118h+var_28], rax
mov rdi, [rsp+118h+var_18]; this
mov esi, [rsp+118h+var_1C]; int
call _ZN6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int)
mov [rsp+118h+var_30], rax
mov rax, [rsp+118h+var_28]
cmp rax, [rsp+118h+var_30]
jnz short loc_22A7D7
jmp loc_22AADF
loc_22A7D7:
cmp [rsp+118h+var_28], 0
jz loc_22A9B9
cmp [rsp+118h+var_30], 0
jz loc_22A9B9
lea rdi, [rsp+118h+var_48]; this
call _ZN6google8protobuf8internal12ExtensionSetC2Ev; google::protobuf::internal::ExtensionSet::ExtensionSet(void)
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_90], rax
mov eax, [rsp+118h+var_1C]
mov [rsp+118h+var_84], eax
mov rax, [rsp+118h+var_30]
mov [rsp+118h+var_80], rax
mov rdi, [rsp+118h+var_18]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov [rsp+118h+var_78], rax
jmp short $+2
loc_22A847:
mov r8, [rsp+118h+var_78]; google::protobuf::Arena *
mov rcx, [rsp+118h+var_80]; google::protobuf::internal::ExtensionSet::Extension *
mov edx, [rsp+118h+var_84]; int
mov rsi, [rsp+118h+var_90]; google::protobuf::MessageLite *
lea rdi, [rsp+118h+var_48]; this
call _ZN6google8protobuf8internal12ExtensionSet26InternalExtensionMergeFromEPKNS0_11MessageLiteEiRKNS2_9ExtensionEPNS0_5ArenaE; google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(google::protobuf::MessageLite const*,int,google::protobuf::internal::ExtensionSet::Extension const&,google::protobuf::Arena *)
jmp short $+2
loc_22A875:
mov esi, [rsp+118h+var_1C]; int
lea rdi, [rsp+118h+var_48]; this
call _ZN6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int)
mov [rsp+118h+var_98], rax
jmp short $+2
loc_22A893:
mov rax, [rsp+118h+var_98]
mov [rsp+118h+var_60], rax
mov rdi, [rsp+118h+var_30]; this
call _ZN6google8protobuf8internal12ExtensionSet9Extension5ClearEv; google::protobuf::internal::ExtensionSet::Extension::Clear(void)
jmp short $+2
loc_22A8B2:
mov rdi, [rsp+118h+var_68]; this
mov rax, [rsp+118h+var_18]
mov [rsp+118h+var_C0], rax
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_B8], rax
mov eax, [rsp+118h+var_1C]
mov [rsp+118h+var_AC], eax
mov rax, [rsp+118h+var_28]
mov [rsp+118h+var_A8], rax
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov [rsp+118h+var_A0], rax
jmp short $+2
loc_22A8F8:
mov r8, [rsp+118h+var_A0]; google::protobuf::Arena *
mov rcx, [rsp+118h+var_A8]; google::protobuf::internal::ExtensionSet::Extension *
mov edx, [rsp+118h+var_AC]; int
mov rsi, [rsp+118h+var_B8]; google::protobuf::MessageLite *
mov rdi, [rsp+118h+var_C0]; this
call _ZN6google8protobuf8internal12ExtensionSet26InternalExtensionMergeFromEPKNS0_11MessageLiteEiRKNS2_9ExtensionEPNS0_5ArenaE; google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(google::protobuf::MessageLite const*,int,google::protobuf::internal::ExtensionSet::Extension const&,google::protobuf::Arena *)
jmp short $+2
loc_22A917:
mov rdi, [rsp+118h+var_28]; this
call _ZN6google8protobuf8internal12ExtensionSet9Extension5ClearEv; google::protobuf::internal::ExtensionSet::Extension::Clear(void)
jmp short $+2
loc_22A926:
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_E0], rax
mov eax, [rsp+118h+var_1C]
mov [rsp+118h+var_D4], eax
mov rax, [rsp+118h+var_60]
mov [rsp+118h+var_D0], rax
lea rdi, [rsp+118h+var_48]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov [rsp+118h+var_C8], rax
jmp short $+2
loc_22A95F:
mov r8, [rsp+118h+var_C8]; google::protobuf::Arena *
mov rcx, [rsp+118h+var_D0]; google::protobuf::internal::ExtensionSet::Extension *
mov edx, [rsp+118h+var_D4]; int
mov rsi, [rsp+118h+var_E0]; google::protobuf::MessageLite *
mov rdi, [rsp+118h+var_68]; this
call _ZN6google8protobuf8internal12ExtensionSet26InternalExtensionMergeFromEPKNS0_11MessageLiteEiRKNS2_9ExtensionEPNS0_5ArenaE; google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(google::protobuf::MessageLite const*,int,google::protobuf::internal::ExtensionSet::Extension const&,google::protobuf::Arena *)
jmp short $+2
loc_22A981:
lea rdi, [rsp+118h+var_48]; this
call _ZN6google8protobuf8internal12ExtensionSetD2Ev; google::protobuf::internal::ExtensionSet::~ExtensionSet()
jmp loc_22AADF
mov rcx, rax
mov eax, edx
mov [rsp+arg_C0], rcx
mov [rsp+arg_BC], eax
lea rdi, [rsp+arg_C8]; this
call _ZN6google8protobuf8internal12ExtensionSetD2Ev; google::protobuf::internal::ExtensionSet::~ExtensionSet()
jmp loc_22AAE7
loc_22A9B9:
cmp [rsp+118h+var_28], 0
jnz loc_22AA51
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_F8], rax
mov eax, [rsp+118h+var_1C]
mov [rsp+118h+var_EC], eax
mov rax, [rsp+118h+var_30]
mov [rsp+118h+var_E8], rax
mov rdi, [rsp+118h+var_18]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov rdi, [rsp+118h+var_68]; this
mov rsi, [rsp+118h+var_F8]; google::protobuf::MessageLite *
mov edx, [rsp+118h+var_EC]; int
mov rcx, [rsp+118h+var_E8]; google::protobuf::internal::ExtensionSet::Extension *
mov r8, rax; google::protobuf::Arena *
call _ZN6google8protobuf8internal12ExtensionSet26InternalExtensionMergeFromEPKNS0_11MessageLiteEiRKNS2_9ExtensionEPNS0_5ArenaE; google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(google::protobuf::MessageLite const*,int,google::protobuf::internal::ExtensionSet::Extension const&,google::protobuf::Arena *)
mov rdi, [rsp+118h+var_18]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
cmp rax, 0
jnz short loc_22AA38
mov rdi, [rsp+118h+var_30]; this
call _ZN6google8protobuf8internal12ExtensionSet9Extension4FreeEv; google::protobuf::internal::ExtensionSet::Extension::Free(void)
loc_22AA38:
mov rdi, [rsp+118h+var_18]; this
mov esi, [rsp+118h+var_1C]; int
call _ZN6google8protobuf8internal12ExtensionSet5EraseEi; google::protobuf::internal::ExtensionSet::Erase(int)
jmp loc_22AADD
loc_22AA51:
mov rdi, [rsp+118h+var_68]; this
mov rax, [rsp+118h+var_18]
mov [rsp+118h+var_118], rax
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_110], rax
mov eax, [rsp+118h+var_1C]
mov [rsp+118h+var_104], eax
mov rax, [rsp+118h+var_28]
mov [rsp+118h+var_100], rax
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
mov rdi, [rsp+118h+var_118]; this
mov rsi, [rsp+118h+var_110]; google::protobuf::MessageLite *
mov edx, [rsp+118h+var_104]; int
mov rcx, [rsp+118h+var_100]; google::protobuf::internal::ExtensionSet::Extension *
mov r8, rax; google::protobuf::Arena *
call _ZN6google8protobuf8internal12ExtensionSet26InternalExtensionMergeFromEPKNS0_11MessageLiteEiRKNS2_9ExtensionEPNS0_5ArenaE; google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(google::protobuf::MessageLite const*,int,google::protobuf::internal::ExtensionSet::Extension const&,google::protobuf::Arena *)
mov rdi, [rsp+118h+var_68]; this
call _ZNK6google8protobuf8internal12ExtensionSet8GetArenaEv; google::protobuf::internal::ExtensionSet::GetArena(void)
cmp rax, 0
jnz short loc_22AAC9
mov rdi, [rsp+118h+var_28]; this
call _ZN6google8protobuf8internal12ExtensionSet9Extension4FreeEv; google::protobuf::internal::ExtensionSet::Extension::Free(void)
loc_22AAC9:
mov rdi, [rsp+118h+var_68]; this
mov esi, [rsp+118h+var_1C]; int
call _ZN6google8protobuf8internal12ExtensionSet5EraseEi; google::protobuf::internal::ExtensionSet::Erase(int)
loc_22AADD:
jmp short $+2
loc_22AADF:
add rsp, 118h
retn
loc_22AAE7:
mov rdi, [rsp+arg_C0]
call __Unwind_Resume
| void google::protobuf::internal::ExtensionSet::SwapExtension(
google::protobuf::internal::ExtensionSet *this,
const google::protobuf::MessageLite *a2,
google::protobuf::internal::ExtensionSet *a3,
int a4)
{
unsigned __int8 v4; // si
google::protobuf::Arena *v5; // rax
google::protobuf::Arena *v6; // rax
google::protobuf::MessageLite *v7; // [rsp+38h] [rbp-E0h]
int v8; // [rsp+44h] [rbp-D4h]
google::protobuf::Arena *v9; // [rsp+50h] [rbp-C8h]
google::protobuf::internal::ExtensionSet *v10; // [rsp+58h] [rbp-C0h]
google::protobuf::MessageLite *v11; // [rsp+60h] [rbp-B8h]
int v12; // [rsp+6Ch] [rbp-ACh]
const google::protobuf::internal::ExtensionSet::Extension *v13; // [rsp+70h] [rbp-A8h]
google::protobuf::Arena *v14; // [rsp+78h] [rbp-A0h]
google::protobuf::MessageLite *v15; // [rsp+88h] [rbp-90h]
int v16; // [rsp+94h] [rbp-84h]
const google::protobuf::internal::ExtensionSet::Extension *v17; // [rsp+98h] [rbp-80h]
google::protobuf::Arena *v18; // [rsp+A0h] [rbp-78h]
long long Arena; // [rsp+A8h] [rbp-70h]
const google::protobuf::internal::ExtensionSet::Extension *v20; // [rsp+B8h] [rbp-60h]
_BYTE v21[24]; // [rsp+D0h] [rbp-48h] BYREF
google::protobuf::internal::ExtensionSet::Extension *v22; // [rsp+E8h] [rbp-30h]
google::protobuf::internal::ExtensionSet::Extension *v23; // [rsp+F0h] [rbp-28h]
int v24; // [rsp+FCh] [rbp-1Ch]
google::protobuf::internal::ExtensionSet *v25; // [rsp+100h] [rbp-18h]
const google::protobuf::MessageLite *v26; // [rsp+108h] [rbp-10h]
google::protobuf::internal::ExtensionSet *v27; // [rsp+110h] [rbp-8h]
v27 = this;
v26 = a2;
v25 = a3;
v24 = a4;
if ( this != a3 )
{
Arena = google::protobuf::internal::ExtensionSet::GetArena(this);
if ( Arena == google::protobuf::internal::ExtensionSet::GetArena(v25) )
{
google::protobuf::internal::ExtensionSet::UnsafeShallowSwapExtension(this, v25, v24);
}
else
{
v23 = (google::protobuf::internal::ExtensionSet::Extension *)google::protobuf::internal::ExtensionSet::FindOrNull(
this,
v24);
v22 = (google::protobuf::internal::ExtensionSet::Extension *)google::protobuf::internal::ExtensionSet::FindOrNull(
v25,
v24);
if ( v23 != v22 )
{
if ( v23 && v22 )
{
google::protobuf::internal::ExtensionSet::ExtensionSet((google::protobuf::internal::ExtensionSet *)v21);
v15 = v26;
v16 = v24;
v17 = v22;
v18 = (google::protobuf::Arena *)google::protobuf::internal::ExtensionSet::GetArena(v25);
google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(
(google::protobuf::internal::ExtensionSet *)v21,
v15,
v16,
v17,
v18);
v4 = v24;
v20 = (const google::protobuf::internal::ExtensionSet::Extension *)google::protobuf::internal::ExtensionSet::FindOrNull(
(google::protobuf::internal::ExtensionSet *)v21,
v24);
google::protobuf::internal::ExtensionSet::Extension::Clear(v22, v4);
v10 = v25;
v11 = v26;
v12 = v24;
v13 = v23;
v14 = (google::protobuf::Arena *)google::protobuf::internal::ExtensionSet::GetArena(this);
google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(v10, v11, v12, v13, v14);
google::protobuf::internal::ExtensionSet::Extension::Clear(v23, (unsigned __int8)v11);
v7 = v26;
v8 = v24;
v9 = (google::protobuf::Arena *)google::protobuf::internal::ExtensionSet::GetArena((google::protobuf::internal::ExtensionSet *)v21);
google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(this, v7, v8, v20, v9);
google::protobuf::internal::ExtensionSet::~ExtensionSet((google::protobuf::internal::ExtensionSet *)v21);
}
else if ( v23 )
{
v6 = (google::protobuf::Arena *)google::protobuf::internal::ExtensionSet::GetArena(this);
google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(v25, v26, v24, v23, v6);
if ( !google::protobuf::internal::ExtensionSet::GetArena(this) )
google::protobuf::internal::ExtensionSet::Extension::Free(v23);
google::protobuf::internal::ExtensionSet::Erase(this, v24);
}
else
{
v5 = (google::protobuf::Arena *)google::protobuf::internal::ExtensionSet::GetArena(v25);
google::protobuf::internal::ExtensionSet::InternalExtensionMergeFrom(this, v26, v24, v22, v5);
if ( !google::protobuf::internal::ExtensionSet::GetArena(v25) )
google::protobuf::internal::ExtensionSet::Extension::Free(v22);
google::protobuf::internal::ExtensionSet::Erase(v25, v24);
}
}
}
}
}
| _M_node_count:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x0022a700
POP RCX
RET
|
/* std::__cxx11::list<std::pair<YAML::detail::node*, YAML::detail::node*>,
std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*> > >::_M_node_count() const */
void __thiscall
std::__cxx11::
list<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
::_M_node_count(list<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
*this)
{
_List_base<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
::_M_get_size((_List_base<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
*)this);
return;
}
| |
41,336 | lf_hash_insert | eloqsql/mysys/lf_hash.cc | int lf_hash_insert(LF_HASH *hash, LF_PINS *pins, const void *data)
{
int csize, bucket, hashnr;
LF_SLIST *node, **el;
node= (LF_SLIST *)lf_alloc_new(pins);
if (unlikely(!node))
return -1;
hash->initializer(hash, node + 1, data);
node->key= hash_key(hash, (uchar *)(node+1), &node->keylen);
hashnr= hash->hash_function(hash->charset, node->key, node->keylen) & INT_MAX32;
bucket= hashnr % hash->size;
el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket);
if (unlikely(!el))
return -1;
if (*el == NULL && unlikely(initialize_bucket(hash, el, bucket, pins)))
return -1;
node->hashnr= my_reverse_bits(hashnr) | 1; /* normal node */
if (l_insert(el, hash->charset, node, pins, hash->flags))
{
lf_alloc_free(pins, node);
return 1;
}
csize= hash->size;
if ((my_atomic_add32(&hash->count, 1)+1.0) / csize > MAX_LOAD)
my_atomic_cas32(&hash->size, &csize, csize*2);
return 0;
} | O0 | cpp | lf_hash_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xfc970
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0xfd5a1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfd76d
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x20, %rsi
movq -0x20(%rbp), %rdx
callq *%rax
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x20, %rsi
movq -0x38(%rbp), %rdx
addq $0x10, %rdx
callq 0xfd780
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0xa8(%rcx), %rdi
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rsi
movq -0x38(%rbp), %rcx
movq 0x10(%rcx), %rdx
callq *%rax
movl %eax, %eax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0xc0(%rcx), %ecx
cltd
idivl %ecx
movl %edx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0xfcdc0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0xfd658
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfd76d
movq -0x40(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xfd687
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl -0x28(%rbp), %edx
movq -0x18(%rbp), %rcx
callq 0xfd800
cmpl $0x0, %eax
je 0xfd687
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfd76d
movl -0x2c(%rbp), %edi
callq 0xfd980
movl %eax, %ecx
orl $0x1, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0xbc(%rax), %r8d
callq 0xfda00
cmpq $0x0, %rax
je 0xfd6e1
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xfc770
movl $0x1, -0x4(%rbp)
jmp 0xfd76d
movq -0x10(%rbp), %rax
movl 0xc0(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rcx
movl $0x1, -0x44(%rbp)
movl -0x44(%rbp), %eax
lock
xaddl %eax, 0xc4(%rcx)
movl %eax, -0x48(%rbp)
cvtsi2sdl -0x48(%rbp), %xmm0
movsd 0x5b54c(%rip), %xmm1 # 0x158c60
addsd %xmm1, %xmm0
cvtsi2sdl -0x24(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd 0x5b537(%rip), %xmm1 # 0x158c60
ucomisd %xmm1, %xmm0
jbe 0xfd766
movq -0x10(%rbp), %rcx
movl -0x24(%rbp), %eax
addl %eax, %eax
movl %eax, -0x4c(%rbp)
movl -0x24(%rbp), %eax
movl -0x4c(%rbp), %edx
lock
cmpxchgl %edx, 0xc0(%rcx)
movl %eax, %ecx
sete %al
movb %al, -0x55(%rbp)
movl %ecx, -0x54(%rbp)
testb $0x1, %al
jne 0xfd75e
movl -0x54(%rbp), %eax
movl %eax, -0x24(%rbp)
movb -0x55(%rbp), %al
andb $0x1, %al
movb %al, -0x4d(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| lf_hash_insert:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_18]
call lf_alloc_new
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_FD5A1
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_FD76D
loc_FD5A1:
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
add rsi, 20h ; ' '
mov rdx, [rbp+var_20]
call rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
add rsi, 20h ; ' '
mov rdx, [rbp+var_38]
add rdx, 10h
call _ZL8hash_keyPK10st_lf_hashPKhPm; hash_key(st_lf_hash const*,uchar const*,ulong *)
mov rcx, rax
mov rax, [rbp+var_38]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax+0A0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+0A8h]
mov rcx, [rbp+var_38]
mov rsi, [rcx+8]
mov rcx, [rbp+var_38]
mov rdx, [rcx+10h]
call rax
mov eax, eax
and rax, 7FFFFFFFh
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_10]
mov ecx, [rcx+0C0h]
cdq
idiv ecx
mov [rbp+var_28], edx
mov rdi, [rbp+var_10]
mov esi, [rbp+var_28]
call lf_dynarray_lvalue
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_FD658
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_FD76D
loc_FD658:
mov rax, [rbp+var_40]
cmp qword ptr [rax], 0
jnz short loc_FD687
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_40]
mov edx, [rbp+var_28]
mov rcx, [rbp+var_18]
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
cmp eax, 0
jz short loc_FD687
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_FD76D
loc_FD687:
mov edi, [rbp+var_2C]; unsigned int
call _ZL15my_reverse_bitsj; my_reverse_bits(uint)
mov ecx, eax
or ecx, 1
mov rax, [rbp+var_38]
mov [rax+18h], ecx
mov rdi, [rbp+var_40]
mov rax, [rbp+var_10]
mov rsi, [rax+0A8h]
mov rdx, [rbp+var_38]
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov r8d, [rax+0BCh]
call _ZL8l_insertPP8LF_SLISTPK15charset_info_stS0_P7LF_PINSj; l_insert(LF_SLIST **,charset_info_st const*,LF_SLIST *,LF_PINS *,uint)
cmp rax, 0
jz short loc_FD6E1
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_38]
call lf_pinbox_free
mov [rbp+var_4], 1
jmp loc_FD76D
loc_FD6E1:
mov rax, [rbp+var_10]
mov eax, [rax+0C0h]
mov [rbp+var_24], eax
mov rcx, [rbp+var_10]
mov [rbp+var_44], 1
mov eax, [rbp+var_44]
lock xadd [rcx+0C4h], eax
mov [rbp+var_48], eax
cvtsi2sd xmm0, [rbp+var_48]
movsd xmm1, cs:qword_158C60
addsd xmm0, xmm1
cvtsi2sd xmm1, [rbp+var_24]
divsd xmm0, xmm1
movsd xmm1, cs:qword_158C60
ucomisd xmm0, xmm1
jbe short loc_FD766
mov rcx, [rbp+var_10]
mov eax, [rbp+var_24]
add eax, eax
mov [rbp+var_4C], eax
mov eax, [rbp+var_24]
mov edx, [rbp+var_4C]
lock cmpxchg [rcx+0C0h], edx
mov ecx, eax
setz al
mov [rbp+var_55], al
mov [rbp+var_54], ecx
test al, 1
jnz short loc_FD75E
mov eax, [rbp+var_54]
mov [rbp+var_24], eax
loc_FD75E:
mov al, [rbp+var_55]
and al, 1
mov [rbp+var_4D], al
loc_FD766:
mov [rbp+var_4], 0
loc_FD76D:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long lf_hash_insert(long long a1, long long a2, long long a3)
{
_QWORD *v4; // [rsp+20h] [rbp-40h]
long long v5; // [rsp+28h] [rbp-38h]
signed int v6; // [rsp+34h] [rbp-2Ch]
unsigned int v7; // [rsp+38h] [rbp-28h]
signed __int32 v8; // [rsp+3Ch] [rbp-24h]
v5 = lf_alloc_new(a2);
if ( v5 )
{
(*(void ( **)(long long, long long, long long))(a1 + 152))(a1, v5 + 32, a3);
*(_QWORD *)(v5 + 8) = hash_key(a1, v5 + 32, v5 + 16);
v6 = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(a1 + 160))(
*(_QWORD *)(a1 + 168),
*(_QWORD *)(v5 + 8),
*(_QWORD *)(v5 + 16)) & 0x7FFFFFFF;
v7 = v6 % *(_DWORD *)(a1 + 192);
v4 = (_QWORD *)lf_dynarray_lvalue(a1, v7);
if ( v4 )
{
if ( *v4 || !(unsigned int)initialize_bucket(a1, v4, v7, a2) )
{
*(_DWORD *)(v5 + 24) = my_reverse_bits(v6) | 1;
if ( l_insert(v4, *(_QWORD *)(a1 + 168), v5, a2, *(unsigned int *)(a1 + 188)) )
{
lf_pinbox_free(a2, (const char *)v5);
return 1;
}
else
{
v8 = *(_DWORD *)(a1 + 192);
if ( ((double)_InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 196), 1u) + 1.0) / (double)v8 > 1.0 )
_InterlockedCompareExchange((volatile signed __int32 *)(a1 + 192), 2 * v8, v8);
return 0;
}
}
else
{
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
| lf_hash_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001fc970
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001fd5a1
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001fd76d
LAB_001fd5a1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
ADD RSI,0x20
MOV RDX,qword ptr [RBP + -0x20]
CALL RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
ADD RSI,0x20
MOV RDX,qword ptr [RBP + -0x38]
ADD RDX,0x10
CALL 0x001fd780
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0xa8]
MOV RCX,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RCX + 0x8]
MOV RCX,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RCX + 0x10]
CALL RAX
MOV EAX,EAX
AND RAX,0x7fffffff
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0xc0]
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x28],EDX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x28]
CALL 0x001fcdc0
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001fd658
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001fd76d
LAB_001fd658:
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX],0x0
JNZ 0x001fd687
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x40]
MOV EDX,dword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x18]
CALL 0x001fd800
CMP EAX,0x0
JZ 0x001fd687
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001fd76d
LAB_001fd687:
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x001fd980
MOV ECX,EAX
OR ECX,0x1
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x18],ECX
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0xa8]
MOV RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RAX + 0xbc]
CALL 0x001fda00
CMP RAX,0x0
JZ 0x001fd6e1
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x001fc770
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001fd76d
LAB_001fd6e1:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc0]
MOV dword ptr [RBP + -0x24],EAX
MOV RCX,qword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0x44],0x1
MOV EAX,dword ptr [RBP + -0x44]
XADD.LOCK dword ptr [RCX + 0xc4],EAX
MOV dword ptr [RBP + -0x48],EAX
CVTSI2SD XMM0,dword ptr [RBP + -0x48]
MOVSD XMM1,qword ptr [0x00258c60]
ADDSD XMM0,XMM1
CVTSI2SD XMM1,dword ptr [RBP + -0x24]
DIVSD XMM0,XMM1
MOVSD XMM1,qword ptr [0x00258c60]
UCOMISD XMM0,XMM1
JBE 0x001fd766
MOV RCX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,EAX
MOV dword ptr [RBP + -0x4c],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,dword ptr [RBP + -0x4c]
CMPXCHG.LOCK dword ptr [RCX + 0xc0],EDX
MOV ECX,EAX
SETZ AL
MOV byte ptr [RBP + -0x55],AL
MOV dword ptr [RBP + -0x54],ECX
TEST AL,0x1
JNZ 0x001fd75e
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x24],EAX
LAB_001fd75e:
MOV AL,byte ptr [RBP + -0x55]
AND AL,0x1
MOV byte ptr [RBP + -0x4d],AL
LAB_001fd766:
MOV dword ptr [RBP + -0x4],0x0
LAB_001fd76d:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 lf_hash_insert(st_lf_hash *param_1,LF_PINS *param_2,int8 param_3)
{
st_lf_hash *psVar1;
int iVar2;
uint uVar3;
int iVar4;
LF_SLIST *pLVar5;
int8 uVar6;
LF_SLIST **ppLVar7;
long lVar8;
uint uVar9;
int4 local_c;
pLVar5 = (LF_SLIST *)lf_alloc_new(param_2);
if (pLVar5 == (LF_SLIST *)0x0) {
local_c = 0xffffffff;
}
else {
(**(code **)(param_1 + 0x98))(param_1,pLVar5 + 0x20,param_3);
uVar6 = hash_key(param_1,(uchar *)(pLVar5 + 0x20),(ulong *)(pLVar5 + 0x10));
*(int8 *)(pLVar5 + 8) = uVar6;
uVar3 = (**(code **)(param_1 + 0xa0))
(*(int8 *)(param_1 + 0xa8),*(int8 *)(pLVar5 + 8),
*(int8 *)(pLVar5 + 0x10));
uVar9 = (int)(uVar3 & 0x7fffffff) % *(int *)(param_1 + 0xc0);
ppLVar7 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar9);
if (ppLVar7 == (LF_SLIST **)0x0) {
local_c = 0xffffffff;
}
else if ((*ppLVar7 == (LF_SLIST *)0x0) &&
(iVar4 = initialize_bucket(param_1,ppLVar7,uVar9,param_2), iVar4 != 0)) {
local_c = 0xffffffff;
}
else {
uVar3 = my_reverse_bits(uVar3 & 0x7fffffff);
*(uint *)(pLVar5 + 0x18) = uVar3 | 1;
lVar8 = l_insert(ppLVar7,*(charset_info_st **)(param_1 + 0xa8),pLVar5,param_2,
*(uint *)(param_1 + 0xbc));
if (lVar8 == 0) {
iVar2 = *(int *)(param_1 + 0xc0);
LOCK();
psVar1 = param_1 + 0xc4;
iVar4 = *(int *)psVar1;
*(int *)psVar1 = *(int *)psVar1 + 1;
UNLOCK();
if (DAT_00258c60 < ((double)iVar4 + DAT_00258c60) / (double)iVar2) {
LOCK();
if (iVar2 == *(int *)(param_1 + 0xc0)) {
*(int *)(param_1 + 0xc0) = iVar2 * 2;
}
UNLOCK();
}
local_c = 0;
}
else {
lf_pinbox_free(param_2,pLVar5);
local_c = 1;
}
}
}
return local_c;
}
| |
41,337 | nglog::(anonymous namespace)::MinimalFormatter::AppendUint64(unsigned long, unsigned int) | ng-log[P]ng-log/src/signalhandler.cc | void AppendUint64(uint64 number, unsigned radix) {
unsigned i = 0;
while (cursor_ + i < end_) {
const uint64 tmp = number % radix;
number /= radix;
cursor_[i] = static_cast<char>(tmp < 10 ? '0' + tmp : 'a' + tmp - 10);
++i;
if (number == 0) {
break;
}
}
// Reverse the bytes written.
std::reverse(cursor_, cursor_ + i);
cursor_ += i;
} | O1 | cpp | nglog::(anonymous namespace)::MinimalFormatter::AppendUint64(unsigned long, unsigned int):
movl %edx, %r8d
xorl %ecx, %ecx
movl %ecx, %r9d
addq 0x8(%rdi), %r9
cmpq 0x10(%rdi), %r9
jae 0x201aa
movq %rsi, %rax
xorl %edx, %edx
divq %r8
leal 0x57(%rdx), %r10d
movl %edx, %r11d
orb $0x30, %r11b
cmpq $0xa, %rdx
movzbl %r11b, %edx
movzbl %r10b, %r10d
cmovbl %edx, %r10d
movb %r10b, (%r9)
incl %ecx
cmpq %r8, %rsi
movq %rax, %rsi
jae 0x2016d
movq 0x8(%rdi), %rdx
movl %ecx, %eax
testl %ecx, %ecx
setne %sil
leaq (%rdx,%rax), %rcx
decq %rcx
cmpq %rdx, %rcx
seta %r8b
andb %sil, %r8b
cmpb $0x1, %r8b
jne 0x201ed
incq %rdx
movb -0x1(%rdx), %sil
movb (%rcx), %r8b
movb %r8b, -0x1(%rdx)
movb %sil, (%rcx)
decq %rcx
leaq 0x1(%rdx), %rsi
cmpq %rcx, %rdx
movq %rsi, %rdx
jb 0x201d0
addq %rax, 0x8(%rdi)
retq
| _ZN5nglog12_GLOBAL__N_116MinimalFormatter12AppendUint64Emj:
mov r8d, edx
xor ecx, ecx
loc_2016D:
mov r9d, ecx
add r9, [rdi+8]
cmp r9, [rdi+10h]
jnb short loc_201AA
mov rax, rsi
xor edx, edx
div r8
lea r10d, [rdx+57h]
mov r11d, edx
or r11b, 30h
cmp rdx, 0Ah
movzx edx, r11b
movzx r10d, r10b
cmovb r10d, edx
mov [r9], r10b
inc ecx
cmp rsi, r8
mov rsi, rax
jnb short loc_2016D
loc_201AA:
mov rdx, [rdi+8]
mov eax, ecx
test ecx, ecx
setnz sil
lea rcx, [rdx+rax]
dec rcx
cmp rcx, rdx
setnbe r8b
and r8b, sil
cmp r8b, 1
jnz short loc_201ED
inc rdx
loc_201D0:
mov sil, [rdx-1]
mov r8b, [rcx]
mov [rdx-1], r8b
mov [rcx], sil
dec rcx
lea rsi, [rdx+1]
cmp rdx, rcx
mov rdx, rsi
jb short loc_201D0
loc_201ED:
add [rdi+8], rax
retn
| long long nglog::`anonymous namespace'::MinimalFormatter::AppendUint64(
nglog::_anonymous_namespace_::MinimalFormatter *this,
unsigned long long a2,
unsigned int a3)
{
unsigned int v3; // ecx
_BYTE *v4; // r9
char v5; // r10
bool v6; // cf
unsigned long long v7; // rdx
long long result; // rax
bool v9; // si
_BYTE *v10; // rcx
unsigned long long v11; // rdx
char v12; // si
v3 = 0;
do
{
v4 = (_BYTE *)(*((_QWORD *)this + 1) + v3);
if ( (unsigned long long)v4 >= *((_QWORD *)this + 2) )
break;
v5 = a2 % a3 + 87;
if ( a2 % a3 < 0xA )
v5 = (a2 % a3) | 0x30;
*v4 = v5;
++v3;
v6 = a2 < a3;
a2 /= a3;
}
while ( !v6 );
v7 = *((_QWORD *)this + 1);
result = v3;
v9 = v3 != 0;
v10 = (_BYTE *)(v7 + v3 - 1);
if ( v9 && (unsigned long long)v10 > v7 )
{
v11 = v7 + 1;
do
{
v12 = *(_BYTE *)(v11 - 1);
*(_BYTE *)(v11 - 1) = *v10;
*v10-- = v12;
v6 = v11++ < (unsigned long long)v10;
}
while ( v6 );
}
*((_QWORD *)this + 1) += result;
return result;
}
| AppendUint64:
MOV R8D,EDX
XOR ECX,ECX
LAB_0012016d:
MOV R9D,ECX
ADD R9,qword ptr [RDI + 0x8]
CMP R9,qword ptr [RDI + 0x10]
JNC 0x001201aa
MOV RAX,RSI
XOR EDX,EDX
DIV R8
LEA R10D,[RDX + 0x57]
MOV R11D,EDX
OR R11B,0x30
CMP RDX,0xa
MOVZX EDX,R11B
MOVZX R10D,R10B
CMOVC R10D,EDX
MOV byte ptr [R9],R10B
INC ECX
CMP RSI,R8
MOV RSI,RAX
JNC 0x0012016d
LAB_001201aa:
MOV RDX,qword ptr [RDI + 0x8]
MOV EAX,ECX
TEST ECX,ECX
SETNZ SIL
LEA RCX,[RDX + RAX*0x1]
DEC RCX
CMP RCX,RDX
SETA R8B
AND R8B,SIL
CMP R8B,0x1
JNZ 0x001201ed
INC RDX
LAB_001201d0:
MOV SIL,byte ptr [RDX + -0x1]
MOV R8B,byte ptr [RCX]
MOV byte ptr [RDX + -0x1],R8B
MOV byte ptr [RCX],SIL
DEC RCX
LEA RSI,[RDX + 0x1]
CMP RDX,RCX
MOV RDX,RSI
JC 0x001201d0
LAB_001201ed:
ADD qword ptr [RDI + 0x8],RAX
RET
|
/* nglog::(anonymous namespace)::MinimalFormatter::AppendUint64(unsigned long, unsigned int) */
void __thiscall
nglog::(anonymous_namespace)::MinimalFormatter::AppendUint64
(MinimalFormatter *this,ulong param_1,uint param_2)
{
int1 uVar1;
int1 *puVar2;
int1 auVar3 [16];
int1 auVar4 [16];
byte bVar5;
uint uVar6;
int1 *puVar7;
int1 *puVar8;
ulong uVar9;
byte bVar10;
bool bVar11;
uVar9 = CONCAT44(0,param_2);
uVar6 = 0;
do {
if (*(byte **)(this + 0x10) <= (byte *)((ulong)uVar6 + *(long *)(this + 8))) break;
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar9;
auVar4._8_8_ = 0;
auVar4._0_8_ = param_1;
bVar5 = SUB161(auVar4 % auVar3,0);
bVar10 = bVar5 + 0x57;
if (SUB168(auVar4 % auVar3,0) < 10) {
bVar10 = bVar5 | 0x30;
}
*(byte *)((ulong)uVar6 + *(long *)(this + 8)) = bVar10;
uVar6 = uVar6 + 1;
bVar11 = uVar9 <= param_1;
param_1 = param_1 / uVar9;
} while (bVar11);
puVar2 = *(int1 **)(this + 8);
puVar7 = puVar2 + ((ulong)uVar6 - 1);
if (puVar2 < puVar7 && uVar6 != 0) {
do {
puVar8 = puVar2 + 1;
uVar1 = *puVar2;
*puVar2 = *puVar7;
*puVar7 = uVar1;
puVar7 = puVar7 + -1;
puVar2 = puVar8;
} while (puVar8 < puVar7);
}
*(ulong *)(this + 8) = *(long *)(this + 8) + (ulong)uVar6;
return;
}
| |
41,338 | JOIN::rollup_make_fields(List<Item>&, List<Item>&, Item_sum***) | eloqsql/sql/sql_select.cc | bool JOIN::rollup_make_fields(List<Item> &fields_arg, List<Item> &sel_fields,
Item_sum ***func)
{
List_iterator_fast<Item> it(fields_arg);
Item *first_field= sel_fields.head();
uint level;
/*
Create field lists for the different levels
The idea here is to have a separate field list for each rollup level to
avoid all runtime checks of which columns should be NULL.
The list is stored in reverse order to get sum function in such an order
in func that it makes it easy to reset them with init_sum_functions()
Assuming: SELECT a, b, c SUM(b) FROM t1 GROUP BY a,b WITH ROLLUP
rollup.fields[0] will contain list where a,b,c is NULL
rollup.fields[1] will contain list where b,c is NULL
...
rollup.ref_pointer_array[#] points to fields for rollup.fields[#]
...
sum_funcs_end[0] points to all sum functions
sum_funcs_end[1] points to all sum functions, except grand totals
...
*/
for (level=0 ; level < send_group_parts ; level++)
{
uint i;
uint pos= send_group_parts - level -1;
bool real_fields= 0;
Item *item;
List_iterator<Item> new_it(rollup.fields[pos]);
Ref_ptr_array ref_array_start= rollup.ref_pointer_arrays[pos];
ORDER *start_group;
/* Point to first hidden field */
uint ref_array_ix= fields_arg.elements-1;
/* Remember where the sum functions ends for the previous level */
sum_funcs_end[pos+1]= *func;
/* Find the start of the group for this level */
for (i= 0, start_group= group_list ;
i++ < pos ;
start_group= start_group->next)
;
it.rewind();
while ((item= it++))
{
if (item == first_field)
{
real_fields= 1; // End of hidden fields
ref_array_ix= 0;
}
if (item->type() == Item::SUM_FUNC_ITEM && !item->const_item() &&
(!((Item_sum*) item)->depended_from() ||
((Item_sum *)item)->depended_from() == select_lex))
{
/*
This is a top level summary function that must be replaced with
a sum function that is reset for this level.
NOTE: This code creates an object which is not that nice in a
sub select. Fortunately it's not common to have rollup in
sub selects.
*/
item= item->copy_or_same(thd);
((Item_sum*) item)->make_unique();
*(*func)= (Item_sum*) item;
(*func)++;
}
else
{
/* Check if this is something that is part of this group by */
ORDER *group_tmp;
for (group_tmp= start_group, i= pos ;
group_tmp ; group_tmp= group_tmp->next, i++)
{
if (*group_tmp->item == item)
{
/*
This is an element that is used by the GROUP BY and should be
set to NULL in this level
*/
Item_null_result *null_item= new (thd->mem_root) Item_null_result(thd);
if (!null_item)
return 1;
// Value will be null sometimes
item->set_maybe_null();
null_item->result_field= item->get_tmp_table_field();
item= null_item;
break;
}
}
}
ref_array_start[ref_array_ix]= item;
if (real_fields)
{
(void) new_it++; // Point to next item
new_it.replace(item); // Replace previous
ref_array_ix++;
}
else
ref_array_ix--;
}
}
sum_funcs_end[0]= *func; // Point to last function
return 0;
} | O0 | cpp | JOIN::rollup_make_fields(List<Item>&, List<Item>&, Item_sum***):
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x18(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x4ad090
movq -0x20(%rbp), %rdi
callq 0x531840
movq %rax, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movq -0xe8(%rbp), %rcx
movl -0x54(%rbp), %eax
cmpl 0x6c(%rcx), %eax
jae 0x62e5a6
movq -0xe8(%rbp), %rax
movl 0x6c(%rax), %ecx
subl -0x54(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, -0x5c(%rbp)
movb $0x0, -0x5d(%rbp)
movq 0x2f8(%rax), %rsi
movl -0x5c(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0x88(%rbp), %rdi
callq 0x4e3cd0
movq -0xe8(%rbp), %rax
movq 0x2f0(%rax), %rcx
movl -0x5c(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
movq 0x8(%rcx), %rcx
movq %rcx, -0x90(%rbp)
movq -0x18(%rbp), %rcx
movl 0x10(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, -0xa4(%rbp)
movq -0x28(%rbp), %rcx
movq (%rcx), %rsi
movq 0x1b0(%rax), %rcx
movl -0x5c(%rbp), %edx
addl $0x1, %edx
movl %edx, %edx
movq %rsi, (%rcx,%rdx,8)
movl $0x0, -0x58(%rbp)
movq 0x428(%rax), %rax
movq %rax, -0xa0(%rbp)
movl -0x58(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x58(%rbp)
cmpl -0x5c(%rbp), %eax
jae 0x62e2df
jmp 0x62e2cc
movq -0xa0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
jmp 0x62e2ba
leaq -0x48(%rbp), %rdi
callq 0x5317d0
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
callq 0x4ad160
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0x62e596
movq -0x68(%rbp), %rax
cmpq -0x50(%rbp), %rax
jne 0x62e319
movb $0x1, -0x5d(%rbp)
movl $0x0, -0xa4(%rbp)
movq -0x68(%rbp), %rdi
movq (%rdi), %rax
callq *0xc8(%rax)
cmpl $0x2, %eax
jne 0x62e3b5
movq -0x68(%rbp), %rdi
movq (%rdi), %rax
callq *0x208(%rax)
testb $0x1, %al
jne 0x62e3b5
movq -0x68(%rbp), %rdi
callq 0x642150
cmpq $0x0, %rax
je 0x62e368
movq -0x68(%rbp), %rdi
callq 0x642150
movq -0xe8(%rbp), %rcx
cmpq 0x2c8(%rcx), %rax
jne 0x62e3b5
movq -0xe8(%rbp), %rax
movq -0x68(%rbp), %rdi
movq 0x1a0(%rax), %rsi
movq (%rdi), %rax
callq *0x2e0(%rax)
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq (%rdi), %rax
callq *0x648(%rax)
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
jmp 0x62e524
movq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x58(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x62e522
movq -0xb0(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
cmpq -0x68(%rbp), %rax
jne 0x62e501
movq -0xe8(%rbp), %rax
movq 0x1a0(%rax), %rax
movq 0x28(%rax), %rsi
movq %rsi, -0x100(%rbp)
movl $0x78, %edi
callq 0x4af070
movq %rax, %rcx
movq %rcx, -0xf8(%rbp)
movb $0x0, -0xc9(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0xf0(%rbp)
je 0x62e47a
movq -0xf8(%rbp), %rdi
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movq %rdi, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movb $0x1, -0xc9(%rbp)
movq 0x1a0(%rax), %rsi
callq 0x6422c0
jmp 0x62e46a
movq -0xf8(%rbp), %rax
movq %rax, -0xf0(%rbp)
jmp 0x62e47a
movq -0xf0(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0xb8(%rbp)
jne 0x62e4d0
movb $0x1, -0x1(%rbp)
jmp 0x62e5c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
testb $0x1, -0xc9(%rbp)
jne 0x62e4b8
jmp 0x62e4cb
movq -0xc0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x4af130
jmp 0x62e5d0
movq -0x68(%rbp), %rdi
callq 0x4e4560
movq -0x68(%rbp), %rdi
movq (%rdi), %rax
callq *0x158(%rax)
movq %rax, %rcx
movq -0xb8(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0xb8(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x62e522
jmp 0x62e503
movq -0xb0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x62e3c9
jmp 0x62e524
movq -0x68(%rbp), %rax
movq %rax, -0x108(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, %esi
leaq -0x98(%rbp), %rdi
callq 0x530eb0
movq -0x108(%rbp), %rcx
movq %rcx, (%rax)
testb $0x1, -0x5d(%rbp)
je 0x62e582
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
callq 0x4e3d00
movq -0x68(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x530da0
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x62e591
movl -0xa4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x62e2e8
jmp 0x62e598
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x62e207
movq -0xe8(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq 0x1b0(%rax), %rax
movq %rcx, (%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x110, %rsp # imm = 0x110
popq %rbp
retq
movq -0xd8(%rbp), %rdi
callq 0x433ff0
nopl (%rax)
| _ZN4JOIN18rollup_make_fieldsER4ListI4ItemES3_PPP8Item_sum:
push rbp
mov rbp, rsp
sub rsp, 110h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov [rbp+var_E8], rax
mov rsi, [rbp+var_18]
lea rdi, [rbp+var_48]
call _ZN18List_iterator_fastI4ItemEC2ER4ListIS0_E; List_iterator_fast<Item>::List_iterator_fast(List<Item> &)
mov rdi, [rbp+var_20]
call _ZN4ListI4ItemE4headEv; List<Item>::head(void)
mov [rbp+var_50], rax
mov [rbp+var_54], 0
loc_62E207:
mov rcx, [rbp+var_E8]
mov eax, [rbp+var_54]
cmp eax, [rcx+6Ch]
jnb loc_62E5A6
mov rax, [rbp+var_E8]
mov ecx, [rax+6Ch]
sub ecx, [rbp+var_54]
sub ecx, 1
mov [rbp+var_5C], ecx
mov [rbp+var_5D], 0
mov rsi, [rax+2F8h]
mov eax, [rbp+var_5C]
imul rax, 18h
add rsi, rax
lea rdi, [rbp+var_88]
call _ZN13List_iteratorI4ItemEC2ER4ListIS0_E; List_iterator<Item>::List_iterator(List<Item> &)
mov rax, [rbp+var_E8]
mov rcx, [rax+2F0h]
mov edx, [rbp+var_5C]
shl rdx, 4
add rcx, rdx
mov rdx, [rcx]
mov [rbp+var_98], rdx
mov rcx, [rcx+8]
mov [rbp+var_90], rcx
mov rcx, [rbp+var_18]
mov ecx, [rcx+10h]
sub ecx, 1
mov [rbp+var_A4], ecx
mov rcx, [rbp+var_28]
mov rsi, [rcx]
mov rcx, [rax+1B0h]
mov edx, [rbp+var_5C]
add edx, 1
mov edx, edx
mov [rcx+rdx*8], rsi
mov [rbp+var_58], 0
mov rax, [rax+428h]
mov [rbp+var_A0], rax
loc_62E2BA:
mov eax, [rbp+var_58]
mov ecx, eax
add ecx, 1
mov [rbp+var_58], ecx
cmp eax, [rbp+var_5C]
jnb short loc_62E2DF
jmp short $+2
loc_62E2CC:
mov rax, [rbp+var_A0]
mov rax, [rax]
mov [rbp+var_A0], rax
jmp short loc_62E2BA
loc_62E2DF:
lea rdi, [rbp+var_48]
call _ZN18List_iterator_fastI4ItemE6rewindEv; List_iterator_fast<Item>::rewind(void)
loc_62E2E8:
lea rdi, [rbp+var_48]
xor esi, esi
call _ZN18List_iterator_fastI4ItemEppEi; List_iterator_fast<Item>::operator++(int)
mov [rbp+var_68], rax
cmp rax, 0
jz loc_62E596
mov rax, [rbp+var_68]
cmp rax, [rbp+var_50]
jnz short loc_62E319
mov [rbp+var_5D], 1
mov [rbp+var_A4], 0
loc_62E319:
mov rdi, [rbp+var_68]
mov rax, [rdi]
call qword ptr [rax+0C8h]
cmp eax, 2
jnz loc_62E3B5
mov rdi, [rbp+var_68]
mov rax, [rdi]
call qword ptr [rax+208h]
test al, 1
jnz short loc_62E3B5
mov rdi, [rbp+var_68]; this
call _ZN8Item_sum13depended_fromEv; Item_sum::depended_from(void)
cmp rax, 0
jz short loc_62E368
mov rdi, [rbp+var_68]; this
call _ZN8Item_sum13depended_fromEv; Item_sum::depended_from(void)
mov rcx, [rbp+var_E8]
cmp rax, [rcx+2C8h]
jnz short loc_62E3B5
loc_62E368:
mov rax, [rbp+var_E8]
mov rdi, [rbp+var_68]
mov rsi, [rax+1A0h]
mov rax, [rdi]
call qword ptr [rax+2E0h]
mov [rbp+var_68], rax
mov rdi, [rbp+var_68]
mov rax, [rdi]
call qword ptr [rax+648h]
mov rcx, [rbp+var_68]
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rax], rcx
mov rax, [rbp+var_28]
mov rcx, [rax]
add rcx, 8
mov [rax], rcx
jmp loc_62E524
loc_62E3B5:
mov rax, [rbp+var_A0]
mov [rbp+var_B0], rax
mov eax, [rbp+var_5C]
mov [rbp+var_58], eax
loc_62E3C9:
cmp [rbp+var_B0], 0
jz loc_62E522
mov rax, [rbp+var_B0]
mov rax, [rax+8]
mov rax, [rax]
cmp rax, [rbp+var_68]
jnz loc_62E501
mov rax, [rbp+var_E8]
mov rax, [rax+1A0h]
mov rsi, [rax+28h]
mov [rbp+var_100], rsi
mov edi, 78h ; 'x'
call _ZN4ItemnwEmP11st_mem_root; Item::operator new(ulong,st_mem_root *)
mov rcx, rax
mov [rbp+var_F8], rcx
mov [rbp+var_C9], 0
xor eax, eax
cmp rcx, 0
mov [rbp+var_F0], rax
jz short loc_62E47A
mov rdi, [rbp+var_F8]; this
mov rax, [rbp+var_E8]
mov rcx, [rbp+var_100]
mov [rbp+var_C0], rdi
mov [rbp+var_C8], rcx
mov [rbp+var_C9], 1
mov rsi, [rax+1A0h]; THD *
call _ZN16Item_null_resultC2EP3THD; Item_null_result::Item_null_result(THD *)
jmp short $+2
loc_62E46A:
mov rax, [rbp+var_F8]
mov [rbp+var_F0], rax
jmp short $+2
loc_62E47A:
mov rax, [rbp+var_F0]
mov [rbp+var_B8], rax
cmp [rbp+var_B8], 0
jnz short loc_62E4D0
mov [rbp+var_1], 1
jmp loc_62E5C2
mov rcx, rax
mov eax, edx
mov [rbp+var_D8], rcx
mov [rbp+var_DC], eax
test [rbp+var_C9], 1
jnz short loc_62E4B8
jmp short loc_62E4CB
loc_62E4B8:
mov rdi, [rbp+var_C0]
mov rsi, [rbp+var_C8]
call _ZN4ItemdlEPvP11st_mem_root; Item::operator delete(void *,st_mem_root *)
loc_62E4CB:
jmp loc_62E5D0
loc_62E4D0:
mov rdi, [rbp+var_68]; this
call _ZN4Item14set_maybe_nullEv; Item::set_maybe_null(void)
mov rdi, [rbp+var_68]
mov rax, [rdi]
call qword ptr [rax+158h]
mov rcx, rax
mov rax, [rbp+var_B8]
mov [rax+70h], rcx
mov rax, [rbp+var_B8]
mov [rbp+var_68], rax
jmp short loc_62E522
loc_62E501:
jmp short $+2
loc_62E503:
mov rax, [rbp+var_B0]
mov rax, [rax]
mov [rbp+var_B0], rax
mov eax, [rbp+var_58]
add eax, 1
mov [rbp+var_58], eax
jmp loc_62E3C9
loc_62E522:
jmp short $+2
loc_62E524:
mov rax, [rbp+var_68]
mov [rbp+var_108], rax
mov eax, [rbp+var_A4]
mov esi, eax
lea rdi, [rbp+var_98]
call _ZN20Bounds_checked_arrayIP4ItemEixEm; Bounds_checked_array<Item *>::operator[](ulong)
mov rcx, [rbp+var_108]
mov [rax], rcx
test [rbp+var_5D], 1
jz short loc_62E582
lea rdi, [rbp+var_88]
xor esi, esi
call _ZN13List_iteratorI4ItemEppEi; List_iterator<Item>::operator++(int)
mov rsi, [rbp+var_68]
lea rdi, [rbp+var_88]
call _ZN13List_iteratorI4ItemE7replaceEPS0_; List_iterator<Item>::replace(Item*)
mov eax, [rbp+var_A4]
add eax, 1
mov [rbp+var_A4], eax
jmp short loc_62E591
loc_62E582:
mov eax, [rbp+var_A4]
add eax, 0FFFFFFFFh
mov [rbp+var_A4], eax
loc_62E591:
jmp loc_62E2E8
loc_62E596:
jmp short $+2
loc_62E598:
mov eax, [rbp+var_54]
add eax, 1
mov [rbp+var_54], eax
jmp loc_62E207
loc_62E5A6:
mov rax, [rbp+var_E8]
mov rcx, [rbp+var_28]
mov rcx, [rcx]
mov rax, [rax+1B0h]
mov [rax], rcx
mov [rbp+var_1], 0
loc_62E5C2:
mov al, [rbp+var_1]
and al, 1
add rsp, 110h
pop rbp
retn
loc_62E5D0:
mov rdi, [rbp+var_D8]
call __Unwind_Resume
| char JOIN::rollup_make_fields(long long a1, base_list *a2, base_list *a3, _QWORD *a4)
{
_QWORD *v4; // rcx
unsigned int v5; // eax
Item *v7; // [rsp+8h] [rbp-108h]
Item_null_result *v8; // [rsp+18h] [rbp-F8h]
Item *v9; // [rsp+20h] [rbp-F0h]
_QWORD *v10; // [rsp+60h] [rbp-B0h]
unsigned int v11; // [rsp+6Ch] [rbp-A4h]
_QWORD *j; // [rsp+70h] [rbp-A0h]
_QWORD v13[2]; // [rsp+78h] [rbp-98h] BYREF
_BYTE v14[32]; // [rsp+88h] [rbp-88h] BYREF
Item *v15; // [rsp+A8h] [rbp-68h]
char v16; // [rsp+B3h] [rbp-5Dh]
unsigned int v17; // [rsp+B4h] [rbp-5Ch]
unsigned int v18; // [rsp+B8h] [rbp-58h]
unsigned int i; // [rsp+BCh] [rbp-54h]
Item *v20; // [rsp+C0h] [rbp-50h]
_BYTE v21[32]; // [rsp+C8h] [rbp-48h] BYREF
_QWORD *v22; // [rsp+E8h] [rbp-28h]
base_list *v23; // [rsp+F0h] [rbp-20h]
base_list *v24; // [rsp+F8h] [rbp-18h]
long long v25; // [rsp+100h] [rbp-10h]
v25 = a1;
v24 = a2;
v23 = a3;
v22 = a4;
List_iterator_fast<Item>::List_iterator_fast((base_list_iterator *)v21, a2);
v20 = (Item *)List<Item>::head(v23);
for ( i = 0; i < *(_DWORD *)(a1 + 108); ++i )
{
v17 = *(_DWORD *)(a1 + 108) - i - 1;
v16 = 0;
List_iterator<Item>::List_iterator((base_list_iterator *)v14, (base_list *)(24LL * v17 + *(_QWORD *)(a1 + 760)));
v4 = (_QWORD *)(16LL * v17 + *(_QWORD *)(a1 + 752));
v13[0] = *v4;
v13[1] = v4[1];
v11 = *((_DWORD *)v24 + 4) - 1;
*(_QWORD *)(*(_QWORD *)(a1 + 432) + 8LL * (v17 + 1)) = *v22;
v18 = 0;
for ( j = *(_QWORD **)(a1 + 1064); ; j = (_QWORD *)*j )
{
v5 = v18++;
if ( v5 >= v17 )
break;
}
List_iterator_fast<Item>::rewind((base_list_iterator *)v21);
while ( 1 )
{
v15 = (Item *)List_iterator_fast<Item>::operator++((base_list_iterator *)v21);
if ( !v15 )
break;
if ( v15 == v20 )
{
v16 = 1;
v11 = 0;
}
if ( (*(unsigned int ( **)(Item *, _QWORD))(*(_QWORD *)v15 + 200LL))(v15, 0LL) != 2
|| ((*(long long ( **)(Item *))(*(_QWORD *)v15 + 520LL))(v15) & 1) != 0
|| Item_sum::depended_from(v15) && Item_sum::depended_from(v15) != *(_QWORD *)(a1 + 712) )
{
v10 = j;
v18 = v17;
while ( v10 )
{
if ( *(Item **)v10[1] == v15 )
{
v8 = (Item_null_result *)Item::operator new(120LL, *(_QWORD *)(*(_QWORD *)(a1 + 416) + 40LL));
v9 = 0LL;
if ( v8 )
{
Item_null_result::Item_null_result(v8, *(THD **)(a1 + 416));
v9 = v8;
}
if ( !v9 )
return 1;
Item::set_maybe_null(v15);
*((_QWORD *)v9 + 14) = (*(long long ( **)(Item *))(*(_QWORD *)v15 + 344LL))(v15);
v15 = v9;
break;
}
v10 = (_QWORD *)*v10;
++v18;
}
}
else
{
v15 = (Item *)(*(long long ( **)(Item *, _QWORD))(*(_QWORD *)v15 + 736LL))(v15, *(_QWORD *)(a1 + 416));
(*(void ( **)(Item *))(*(_QWORD *)v15 + 1608LL))(v15);
*(_QWORD *)*v22 = v15;
*v22 += 8LL;
}
v7 = v15;
*(_QWORD *)Bounds_checked_array<Item *>::operator[](v13, v11) = v7;
if ( (v16 & 1) != 0 )
{
List_iterator<Item>::operator++((base_list_iterator *)v14);
List_iterator<Item>::replace((base_list_iterator *)v14, v15);
++v11;
}
else
{
--v11;
}
}
}
**(_QWORD **)(a1 + 432) = *v22;
return 0;
}
| append_identifier:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x8]
CALL 0x0074b9f0
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
/* append_identifier(THD*, String*, st_mysql_const_lex_string const*) */
ulong append_identifier(THD *param_1,String *param_2,st_mysql_const_lex_string *param_3)
{
ulong uVar1;
uVar1 = append_identifier(param_1,param_2,*(char **)param_3,*(ulong *)(param_3 + 8));
return uVar1 & 0xffffffffffffff01;
}
| |
41,339 | lunasvg::FontFaceCache::FontFaceCache() | dmazzella[P]pylunasvg/lunasvg/source/graphics.cpp | FontFaceCache::FontFaceCache()
{
static const struct {
const char* filename;
const bool bold;
const bool italic;
} entries[] = {
#if defined(_WIN32)
{"C:/Windows/Fonts/arial.ttf", false, false},
{"C:/Windows/Fonts/arialbd.ttf", true, false},
{"C:/Windows/Fonts/ariali.ttf", false, true},
{"C:/Windows/Fonts/arialbi.ttf", true, true},
#elif defined(__APPLE__)
{"/Library/Fonts/Arial.ttf", false, false},
{"/Library/Fonts/Arial Bold.ttf", true, false},
{"/Library/Fonts/Arial Italic.ttf", false, true},
{"/Library/Fonts/Arial Bold Italic.ttf", true, true},
{"/System/Library/Fonts/Supplemental/Arial.ttf", false, false},
{"/System/Library/Fonts/Supplemental/Arial Bold.ttf", true, false},
{"/System/Library/Fonts/Supplemental/Arial Italic.ttf", false, true},
{"/System/Library/Fonts/Supplemental/Arial Bold Italic.ttf", true, true},
#elif defined(__linux__)
{"/usr/share/fonts/dejavu/DejaVuSans.ttf", false, false},
{"/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf", true, false},
{"/usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf", false, true},
{"/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf", true, true},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", false, false},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", true, false},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf", false, true},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf", true, true},
#endif
};
for(const auto& entry : entries) {
addFontFace(emptyString, entry.bold, entry.italic, FontFace(entry.filename));
}
} | O0 | cpp | lunasvg::FontFaceCache::FontFaceCache():
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x14b50
leaq 0xae4d0(%rip), %rax # 0xc1500
movq %rax, -0x10(%rbp)
leaq 0xae4c5(%rip), %rax # 0xc1500
movq %rax, -0x18(%rbp)
leaq 0xae4ba(%rip), %rax # 0xc1500
addq $0x80, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x130e8
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movb 0x8(%rax), %cl
movb %cl, -0x4a(%rbp)
movb 0x9(%rax), %cl
movb %cl, -0x49(%rbp)
movq (%rax), %rsi
leaq -0x30(%rbp), %rdi
callq 0x12a30
jmp 0x13084
movq -0x48(%rbp), %rdi
movb -0x49(%rbp), %al
movb -0x4a(%rbp), %cl
movzbl %cl, %edx
andl $0x1, %edx
movzbl %al, %ecx
andl $0x1, %ecx
leaq 0xb291f(%rip), %rsi # 0xc59c0
leaq -0x30(%rbp), %r8
callq 0x12c60
jmp 0x130ac
leaq -0x30(%rbp), %rdi
callq 0x12b20
movq -0x18(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x18(%rbp)
jmp 0x13050
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x130ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x12b20
jmp 0x130ee
addq $0x50, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x14b70
movq -0x38(%rbp), %rdi
callq 0xb6c0
| _ZN7lunasvg13FontFaceCacheC2Ev:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
mov [rbp+var_48], rdi
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorISt5tupleIJbbN7lunasvg8FontFaceEEESaISA_EESt4lessIvESaISt4pairIKS5_SC_EEEC2Ev; std::map<std::string,std::vector<std::tuple<bool,bool,lunasvg::FontFace>>>::map(void)
lea rax, _ZZN7lunasvg13FontFaceCacheC1EvE7entries; lunasvg::FontFaceCache::FontFaceCache(void)::entries
mov [rbp+var_10], rax
lea rax, _ZZN7lunasvg13FontFaceCacheC1EvE7entries; lunasvg::FontFaceCache::FontFaceCache(void)::entries
mov [rbp+var_18], rax
lea rax, _ZZN7lunasvg13FontFaceCacheC1EvE7entries; lunasvg::FontFaceCache::FontFaceCache(void)::entries
add rax, 80h
mov [rbp+var_20], rax
loc_13050:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz loc_130E8
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov cl, [rax+8]
mov [rbp+var_4A], cl
mov cl, [rax+9]
mov [rbp+var_49], cl
mov rsi, [rax]; char *
lea rdi, [rbp+var_30]; this
call _ZN7lunasvg8FontFaceC2EPKc; lunasvg::FontFace::FontFace(char const*)
jmp short $+2
loc_13084:
mov rdi, [rbp+var_48]
mov al, [rbp+var_49]
mov cl, [rbp+var_4A]
movzx edx, cl
and edx, 1
movzx ecx, al
and ecx, 1
lea rsi, _ZN7lunasvg11emptyStringB5cxx11E; lunasvg::emptyString
lea r8, [rbp+var_30]
call _ZN7lunasvg13FontFaceCache11addFontFaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbRKNS_8FontFaceE; lunasvg::FontFaceCache::addFontFace(std::string const&,bool,bool,lunasvg::FontFace const&)
jmp short $+2
loc_130AC:
lea rdi, [rbp+var_30]; this
call _ZN7lunasvg8FontFaceD2Ev; lunasvg::FontFace::~FontFace()
mov rax, [rbp+var_18]
add rax, 10h
mov [rbp+var_18], rax
jmp short loc_13050
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
jmp short loc_130EE
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
lea rdi, [rbp+var_30]; this
call _ZN7lunasvg8FontFaceD2Ev; lunasvg::FontFace::~FontFace()
jmp short loc_130EE
loc_130E8:
add rsp, 50h
pop rbp
retn
loc_130EE:
mov rdi, [rbp+var_48]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorISt5tupleIJbbN7lunasvg8FontFaceEEESaISA_EESt4lessIvESaISt4pairIKS5_SC_EEED2Ev; std::map<std::string,std::vector<std::tuple<bool,bool,lunasvg::FontFace>>>::~map()
mov rdi, [rbp+var_38]
call __Unwind_Resume
| char ** lunasvg::FontFaceCache::FontFaceCache(lunasvg::FontFaceCache *this)
{
char **result; // rax
char v2; // [rsp+6h] [rbp-4Ah]
char v3; // [rsp+7h] [rbp-49h]
_BYTE v4[8]; // [rsp+20h] [rbp-30h] BYREF
char **v5; // [rsp+28h] [rbp-28h]
char **v6; // [rsp+30h] [rbp-20h]
char **v7; // [rsp+38h] [rbp-18h]
char **v8; // [rsp+40h] [rbp-10h]
lunasvg::FontFaceCache *v9; // [rsp+48h] [rbp-8h]
v9 = this;
std::map<std::string,std::vector<std::tuple<bool,bool,lunasvg::FontFace>>>::map();
v8 = &lunasvg::FontFaceCache::FontFaceCache(void)::entries;
v7 = &lunasvg::FontFaceCache::FontFaceCache(void)::entries;
v6 = &lunasvg::FontFaceCache::FontFaceCache(void)::entries + 16;
while ( 1 )
{
result = v7;
if ( v7 == v6 )
break;
v5 = v7;
v2 = *((_BYTE *)v7 + 8);
v3 = *((_BYTE *)v7 + 9);
lunasvg::FontFace::FontFace((lunasvg::FontFace *)v4, *v7);
lunasvg::FontFaceCache::addFontFace(
(long long)this,
(long long)&lunasvg::emptyString[abi:cxx11],
v2 & 1,
v3 & 1,
(lunasvg::FontFace *)v4);
lunasvg::FontFace::~FontFace((lunasvg::FontFace *)v4);
v7 += 2;
}
return result;
}
| FontFaceCache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x48],RDI
CALL 0x00114b50
LEA RAX,[0x1c1500]
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[0x1c1500]
MOV qword ptr [RBP + -0x18],RAX
LEA RAX,[0x1c1500]
ADD RAX,0x80
MOV qword ptr [RBP + -0x20],RAX
LAB_00113050:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001130e8
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,byte ptr [RAX + 0x8]
MOV byte ptr [RBP + -0x4a],CL
MOV CL,byte ptr [RAX + 0x9]
MOV byte ptr [RBP + -0x49],CL
MOV RSI,qword ptr [RAX]
LAB_00113079:
LEA RDI,[RBP + -0x30]
CALL 0x00112a30
JMP 0x00113084
LAB_00113084:
MOV RDI,qword ptr [RBP + -0x48]
MOV AL,byte ptr [RBP + -0x49]
MOV CL,byte ptr [RBP + -0x4a]
MOVZX EDX,CL
AND EDX,0x1
MOVZX ECX,AL
AND ECX,0x1
LEA RSI,[0x1c59c0]
LEA R8,[RBP + -0x30]
CALL 0x00112c60
LAB_001130aa:
JMP 0x001130ac
LAB_001130ac:
LEA RDI,[RBP + -0x30]
CALL 0x00112b20
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x10
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00113050
LAB_001130e8:
ADD RSP,0x50
POP RBP
RET
|
/* lunasvg::FontFaceCache::FontFaceCache() */
void __thiscall lunasvg::FontFaceCache::FontFaceCache(FontFaceCache *this)
{
byte bVar1;
byte bVar2;
FontFace local_38 [8];
int **local_30;
int **local_28;
int **local_20;
int **local_18;
FontFaceCache *local_10;
local_10 = this;
std::
map<std::__cxx11::string,std::vector<std::tuple<bool,bool,lunasvg::FontFace>,std::allocator<std::tuple<bool,bool,lunasvg::FontFace>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<std::tuple<bool,bool,lunasvg::FontFace>,std::allocator<std::tuple<bool,bool,lunasvg::FontFace>>>>>>
::map((map<std::__cxx11::string,std::vector<std::tuple<bool,bool,lunasvg::FontFace>,std::allocator<std::tuple<bool,bool,lunasvg::FontFace>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<std::tuple<bool,bool,lunasvg::FontFace>,std::allocator<std::tuple<bool,bool,lunasvg::FontFace>>>>>>
*)this);
local_18 = &FontFaceCache()::entries;
local_28 = (int **)
&std::_Sp_counted_ptr<lunasvg::Canvas*,(__gnu_cxx::_Lock_policy)2>::vtable;
for (local_20 = &FontFaceCache()::entries; local_20 != local_28; local_20 = local_20 + 2) {
local_30 = local_20;
bVar1 = *(byte *)(local_20 + 1);
bVar2 = *(byte *)((long)local_20 + 9);
/* try { // try from 00113079 to 00113081 has its CatchHandler @ 001130c3 */
FontFace::FontFace(local_38,*local_20);
/* try { // try from 00113084 to 001130a9 has its CatchHandler @ 001130d1 */
addFontFace(this,(string *)emptyString_abi_cxx11_,(bool)(bVar1 & 1),(bool)(bVar2 & 1),local_38);
FontFace::~FontFace(local_38);
}
return;
}
| |
41,340 | lunasvg::FontFaceCache::FontFaceCache() | dmazzella[P]pylunasvg/lunasvg/source/graphics.cpp | FontFaceCache::FontFaceCache()
{
static const struct {
const char* filename;
const bool bold;
const bool italic;
} entries[] = {
#if defined(_WIN32)
{"C:/Windows/Fonts/arial.ttf", false, false},
{"C:/Windows/Fonts/arialbd.ttf", true, false},
{"C:/Windows/Fonts/ariali.ttf", false, true},
{"C:/Windows/Fonts/arialbi.ttf", true, true},
#elif defined(__APPLE__)
{"/Library/Fonts/Arial.ttf", false, false},
{"/Library/Fonts/Arial Bold.ttf", true, false},
{"/Library/Fonts/Arial Italic.ttf", false, true},
{"/Library/Fonts/Arial Bold Italic.ttf", true, true},
{"/System/Library/Fonts/Supplemental/Arial.ttf", false, false},
{"/System/Library/Fonts/Supplemental/Arial Bold.ttf", true, false},
{"/System/Library/Fonts/Supplemental/Arial Italic.ttf", false, true},
{"/System/Library/Fonts/Supplemental/Arial Bold Italic.ttf", true, true},
#elif defined(__linux__)
{"/usr/share/fonts/dejavu/DejaVuSans.ttf", false, false},
{"/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf", true, false},
{"/usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf", false, true},
{"/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf", true, true},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", false, false},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", true, false},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf", false, true},
{"/usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf", true, true},
#endif
};
for(const auto& entry : entries) {
addFontFace(emptyString, entry.bold, entry.italic, FontFace(entry.filename));
}
} | O1 | cpp | lunasvg::FontFaceCache::FontFaceCache():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %r12d, %r12d
movq %r12, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %r12, 0x28(%rdi)
leaq 0x4ae4d(%rip), %r13 # 0x584e0
movq %rsp, %r15
movb 0x8(%r12,%r13), %bpl
movb 0x9(%r12,%r13), %r14b
movq (%r12,%r13), %rdi
xorl %esi, %esi
callq 0x2464e
movq %rax, (%rsp)
movzbl %bpl, %edx
movzbl %r14b, %ecx
movq %rbx, %rdi
leaq 0x4ecbf(%rip), %rsi # 0x5c380
movq %r15, %r8
callq 0xd4a2
movq (%rsp), %rdi
callq 0x24eb6
addq $0x10, %r12
cmpq $0x80, %r12
jne 0xd696
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xd6ff
movq %rax, %r14
movq (%rsp), %rdi
callq 0x24eb6
movq %rbx, %rdi
callq 0xe28c
movq %r14, %rdi
callq 0xa5c0
jmp 0xd711
movq %rax, %rdi
callq 0xc48f
| _ZN7lunasvg13FontFaceCacheC2Ev:
push rbp; Alternative name is 'lunasvg::FontFaceCache::FontFaceCache(void)'
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
lea rax, [rdi+8]
mov dword ptr [rdi+8], 0
xor r12d, r12d
mov [rdi+10h], r12
mov [rdi+18h], rax
mov [rdi+20h], rax
mov [rdi+28h], r12
lea r13, _ZZN7lunasvg13FontFaceCacheC1EvE7entries; lunasvg::FontFaceCache::FontFaceCache(void)::entries
mov r15, rsp
loc_D696:
mov bpl, [r12+r13+8]
mov r14b, [r12+r13+9]
mov rdi, [r12+r13]
xor esi, esi
call plutovg_font_face_load_from_file
mov [rsp+38h+var_38], rax
movzx edx, bpl
movzx ecx, r14b
mov rdi, rbx
lea rsi, _ZN7lunasvg11emptyStringB5cxx11E; lunasvg::emptyString
mov r8, r15
call _ZN7lunasvg13FontFaceCache11addFontFaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbRKNS_8FontFaceE; lunasvg::FontFaceCache::addFontFace(std::string const&,bool,bool,lunasvg::FontFace const&)
mov rdi, [rsp+38h+var_38]
call plutovg_font_face_destroy
add r12, 10h
cmp r12, 80h
jnz short loc_D696
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
jmp short loc_D6FF
mov r14, rax
mov rdi, [rsp+38h+var_38]
call plutovg_font_face_destroy
loc_D6FF:
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St6vectorISt5tupleIJbbN7lunasvg8FontFaceEEESaISC_EEESt10_Select1stISF_ESt4lessIvESaISF_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::vector<std::tuple<bool,bool,lunasvg::FontFace>>>,std::_Select1st<std::pair<std::string const,std::vector<std::tuple<bool,bool,lunasvg::FontFace>>>>,std::less<void>,std::allocator<std::pair<std::string const,std::vector<std::tuple<bool,bool,lunasvg::FontFace>>>>>::~_Rb_tree()
mov rdi, r14
call __Unwind_Resume
jmp short $+2
loc_D711:
mov rdi, rax
call __clang_call_terminate
| long long lunasvg::FontFaceCache::FontFaceCache(lunasvg::FontFaceCache *this)
{
long long v1; // rax
long long v2; // r12
char v3; // bp
char v4; // r14
long long result; // rax
long long v6[7]; // [rsp+0h] [rbp-38h] BYREF
v6[0] = v1;
*((_DWORD *)this + 2) = 0;
v2 = 0LL;
*((_QWORD *)this + 2) = 0LL;
*((_QWORD *)this + 3) = (char *)this + 8;
*((_QWORD *)this + 4) = (char *)this + 8;
*((_QWORD *)this + 5) = 0LL;
do
{
v3 = (char)(&lunasvg::FontFaceCache::FontFaceCache(void)::entries)[v2 + 1];
v4 = *((_BYTE *)&lunasvg::FontFaceCache::FontFaceCache(void)::entries + 8 * v2 + 9);
v6[0] = plutovg_font_face_load_from_file((&lunasvg::FontFaceCache::FontFaceCache(void)::entries)[v2], 0LL);
lunasvg::FontFaceCache::addFontFace((long long)this, (long long)&lunasvg::emptyString[abi:cxx11], v3, v4, v6);
result = plutovg_font_face_destroy(v6[0]);
v2 += 2LL;
}
while ( v2 != 16 );
return result;
}
| FontFaceCache:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[RDI + 0x8]
MOV dword ptr [RDI + 0x8],0x0
XOR R12D,R12D
MOV qword ptr [RDI + 0x10],R12
MOV qword ptr [RDI + 0x18],RAX
MOV qword ptr [RDI + 0x20],RAX
MOV qword ptr [RDI + 0x28],R12
LEA R13,[0x1584e0]
MOV R15,RSP
LAB_0010d696:
MOV BPL,byte ptr [R12 + R13*0x1 + 0x8]
MOV R14B,byte ptr [R12 + R13*0x1 + 0x9]
MOV RDI,qword ptr [R12 + R13*0x1]
LAB_0010d6a4:
XOR ESI,ESI
CALL 0x0012464e
MOV qword ptr [RSP],RAX
LAB_0010d6af:
MOVZX EDX,BPL
MOVZX ECX,R14B
MOV RDI,RBX
LEA RSI,[0x15c380]
MOV R8,R15
CALL 0x0010d4a2
MOV RDI,qword ptr [RSP]
LAB_0010d6cd:
CALL 0x00124eb6
ADD R12,0x10
CMP R12,0x80
JNZ 0x0010d696
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* lunasvg::FontFaceCache::FontFaceCache() */
void __thiscall lunasvg::FontFaceCache::FontFaceCache(FontFaceCache *this)
{
bool bVar1;
bool bVar2;
int8 in_RAX;
long lVar3;
int8 local_38;
*(int4 *)(this + 8) = 0;
lVar3 = 0;
*(int8 *)(this + 0x10) = 0;
*(FontFaceCache **)(this + 0x18) = this + 8;
*(FontFaceCache **)(this + 0x20) = this + 8;
*(int8 *)(this + 0x28) = 0;
local_38 = in_RAX;
do {
bVar1 = (bool)(&DAT_001584e8)[lVar3];
bVar2 = (bool)(&DAT_001584e9)[lVar3];
/* try { // try from 0010d6a4 to 0010d6aa has its CatchHandler @ 0010d6ee */
local_38 = plutovg_font_face_load_from_file
(*(int8 *)((long)&FontFaceCache()::entries + lVar3),0);
/* try { // try from 0010d6af to 0010d6c8 has its CatchHandler @ 0010d6f3 */
addFontFace(this,(string *)&emptyString_abi_cxx11_,bVar1,bVar2,(FontFace *)&local_38);
/* try { // try from 0010d6cd to 0010d6d1 has its CatchHandler @ 0010d711 */
plutovg_font_face_destroy(local_38);
lVar3 = lVar3 + 0x10;
} while (lVar3 != 0x80);
return;
}
| |
41,341 | unpack_dirname | eloqsql/mysys/mf_pack.c | size_t unpack_dirname(char * to, const char *from)
{
size_t length, h_length;
char buff[FN_REFLEN+1+4],*suffix,*tilde_expansion;
DBUG_ENTER("unpack_dirname");
length= normalize_dirname(buff, from);
if (buff[0] == FN_HOMELIB)
{
suffix=buff+1; tilde_expansion=expand_tilde(&suffix);
if (tilde_expansion)
{
length-= (size_t) (suffix-buff)-1;
if (length+(h_length= strlen(tilde_expansion)) <= FN_REFLEN)
{
if ((h_length > 0) && (tilde_expansion[h_length-1] == FN_LIBCHAR))
h_length--;
if (buff+h_length < suffix)
bmove(buff+h_length,suffix,length);
else
bmove_upp((uchar*) buff+h_length+length, (uchar*) suffix+length, length);
bmove(buff,tilde_expansion,h_length);
}
}
}
#ifdef USE_SYMDIR
if (my_use_symdir)
symdirget(buff);
#endif
DBUG_RETURN(system_filename(to,buff)); /* Fix for open */
} | O3 | c | unpack_dirname:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rdi, -0x250(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x240(%rbp), %r13
movq %r13, %rdi
callq 0x9affb
cmpb $0x7e, (%r13)
jne 0x9b1bd
movq %rax, %r14
leaq -0x23f(%rbp), %r15
cmpb $0x2f, (%r15)
jne 0x9b0dd
leaq 0xb6ccad(%rip), %rbx # 0xc07d88
jmp 0x9b136
movq %r15, %rdi
movl $0x2f, %esi
callq 0x29440
movq %rax, %r12
testq %rax, %rax
jne 0x9b0fd
movq %r15, %rdi
callq 0xd6d5c
movq %rax, %r12
movb (%r12), %al
movb %al, -0x241(%rbp)
movb $0x0, (%r12)
movq %r15, %rdi
callq 0x295b0
movq %rax, %rbx
movb -0x241(%rbp), %al
movb %al, (%r12)
callq 0x298b0
testq %rbx, %rbx
je 0x9b1bd
addq $0x20, %rbx
movq %r12, %r15
movq (%rbx), %r12
testq %r12, %r12
je 0x9b1bd
addq %r13, %r14
subq %r15, %r14
movq %r12, %rdi
callq 0x29350
movq %rax, %r13
addq %r14, %rax
incq %rax
cmpq $0x200, %rax # imm = 0x200
ja 0x9b1bd
testq %r13, %r13
je 0x9b172
xorl %eax, %eax
cmpb $0x2f, -0x1(%r12,%r13)
sete %al
subq %rax, %r13
jmp 0x9b175
xorl %r13d, %r13d
incq %r14
leaq -0x240(,%r13), %rdi
addq %rbp, %rdi
cmpq %r15, %rdi
jae 0x9b195
movq %r15, %rsi
movq %r14, %rdx
callq 0x29120
jmp 0x9b1a6
addq %r14, %rdi
addq %r14, %r15
movq %r15, %rsi
movq %r14, %rdx
callq 0xaa8a4
leaq -0x240(%rbp), %rdi
movl $0x205, %ecx # imm = 0x205
movq %r12, %rsi
movq %r13, %rdx
callq 0x294c0
leaq -0x240(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
movq -0x250(%rbp), %rbx
movq %rbx, %rdi
callq 0xd6da4
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x9b1fc
subq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| unpack_dirname:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov [rbp+var_250], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r13, [rbp+var_240]
mov rdi, r13
call normalize_dirname
cmp byte ptr [r13+0], 7Eh ; '~'
jnz loc_9B1BD
mov r14, rax
lea r15, [rbp+var_23F]
cmp byte ptr [r15], 2Fh ; '/'
jnz short loc_9B0DD
lea rbx, home_dir
jmp short loc_9B136
loc_9B0DD:
mov rdi, r15
mov esi, 2Fh ; '/'
call _strchr
mov r12, rax
test rax, rax
jnz short loc_9B0FD
mov rdi, r15
call strend
mov r12, rax
loc_9B0FD:
mov al, [r12]
mov [rbp+var_241], al
mov byte ptr [r12], 0
mov rdi, r15
call _getpwnam
mov rbx, rax
mov al, [rbp+var_241]
mov [r12], al
call _endpwent
test rbx, rbx
jz loc_9B1BD
add rbx, 20h ; ' '
mov r15, r12
loc_9B136:
mov r12, [rbx]
test r12, r12
jz short loc_9B1BD
add r14, r13
sub r14, r15
mov rdi, r12
call _strlen
mov r13, rax
add rax, r14
inc rax
cmp rax, 200h
ja short loc_9B1BD
test r13, r13
jz short loc_9B172
xor eax, eax
cmp byte ptr [r12+r13-1], 2Fh ; '/'
setz al
sub r13, rax
jmp short loc_9B175
loc_9B172:
xor r13d, r13d
loc_9B175:
inc r14
lea rdi, ds:0FFFFFFFFFFFFFDC0h[r13]
add rdi, rbp
cmp rdi, r15
jnb short loc_9B195
mov rsi, r15
mov rdx, r14
call _memmove
jmp short loc_9B1A6
loc_9B195:
add rdi, r14
add r15, r14
mov rsi, r15
mov rdx, r14
call bmove_upp
loc_9B1A6:
lea rdi, [rbp+var_240]
mov ecx, 205h
mov rsi, r12
mov rdx, r13
call ___memmove_chk
loc_9B1BD:
lea rsi, [rbp+var_240]
mov edx, 1FFh
mov rbx, [rbp+var_250]
mov rdi, rbx
call strmake
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_9B1FC
sub rax, rbx
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9B1FC:
call ___stack_chk_fail
| long long unpack_dirname(long long a1, _BYTE *a2)
{
long long v2; // rax
long long v3; // r14
char *v4; // r15
_QWORD *v5; // rbx
char *v6; // r12
long long v7; // rbx
long long v8; // r12
_BYTE *v9; // r14
long long v10; // r13
long long v11; // r13
_BYTE *v12; // r14
char *v13; // rdi
char v16; // [rsp+Fh] [rbp-241h]
char v17; // [rsp+10h] [rbp-240h] BYREF
_BYTE v18[527]; // [rsp+11h] [rbp-23Fh] BYREF
unsigned long long v19; // [rsp+220h] [rbp-30h]
long long savedregs; // [rsp+250h] [rbp+0h] BYREF
v19 = __readfsqword(0x28u);
v2 = normalize_dirname((long long)&v17, a2);
if ( v17 != 126 )
return strmake(a1, &v17, 511LL) - a1;
v3 = v2;
v4 = v18;
if ( v18[0] == 47 )
{
v5 = &home_dir;
LABEL_8:
v8 = *v5;
if ( *v5 )
{
v9 = (_BYTE *)(&v18[v3 - 1] - v4);
v10 = strlen(*v5);
if ( (unsigned long long)&v9[v10 + 1] <= 0x200 )
{
if ( v10 )
v11 = v10 - (*(_BYTE *)(v8 + v10 - 1) == 47);
else
v11 = 0LL;
v12 = v9 + 1;
v13 = (char *)&savedregs + v11 - 576;
if ( v13 >= v4 )
bmove_upp(&v13[(_QWORD)v12], &v4[(_QWORD)v12]);
else
memmove(v13, v4, v12);
__memmove_chk(&v17, v8, v11, 517LL);
}
}
return strmake(a1, &v17, 511LL) - a1;
}
v6 = (char *)strchr(v18, 47LL);
if ( !v6 )
v6 = (char *)strend(v18);
v16 = *v6;
*v6 = 0;
v7 = getpwnam(v18);
*v6 = v16;
endpwent();
if ( v7 )
{
v5 = (_QWORD *)(v7 + 32);
v4 = v6;
goto LABEL_8;
}
return strmake(a1, &v17, 511LL) - a1;
}
| unpack_dirname:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV qword ptr [RBP + -0x250],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R13,[RBP + -0x240]
MOV RDI,R13
CALL 0x0019affb
CMP byte ptr [R13],0x7e
JNZ 0x0019b1bd
MOV R14,RAX
LEA R15,[RBP + -0x23f]
CMP byte ptr [R15],0x2f
JNZ 0x0019b0dd
LEA RBX,[0xd07d88]
JMP 0x0019b136
LAB_0019b0dd:
MOV RDI,R15
MOV ESI,0x2f
CALL 0x00129440
MOV R12,RAX
TEST RAX,RAX
JNZ 0x0019b0fd
MOV RDI,R15
CALL 0x001d6d5c
MOV R12,RAX
LAB_0019b0fd:
MOV AL,byte ptr [R12]
MOV byte ptr [RBP + -0x241],AL
MOV byte ptr [R12],0x0
MOV RDI,R15
CALL 0x001295b0
MOV RBX,RAX
MOV AL,byte ptr [RBP + -0x241]
MOV byte ptr [R12],AL
CALL 0x001298b0
TEST RBX,RBX
JZ 0x0019b1bd
ADD RBX,0x20
MOV R15,R12
LAB_0019b136:
MOV R12,qword ptr [RBX]
TEST R12,R12
JZ 0x0019b1bd
ADD R14,R13
SUB R14,R15
MOV RDI,R12
CALL 0x00129350
MOV R13,RAX
ADD RAX,R14
INC RAX
CMP RAX,0x200
JA 0x0019b1bd
TEST R13,R13
JZ 0x0019b172
XOR EAX,EAX
CMP byte ptr [R12 + R13*0x1 + -0x1],0x2f
SETZ AL
SUB R13,RAX
JMP 0x0019b175
LAB_0019b172:
XOR R13D,R13D
LAB_0019b175:
INC R14
LEA RDI,[-0x240 + R13*0x1]
ADD RDI,RBP
CMP RDI,R15
JNC 0x0019b195
MOV RSI,R15
MOV RDX,R14
CALL 0x00129120
JMP 0x0019b1a6
LAB_0019b195:
ADD RDI,R14
ADD R15,R14
MOV RSI,R15
MOV RDX,R14
CALL 0x001aa8a4
LAB_0019b1a6:
LEA RDI,[RBP + -0x240]
MOV ECX,0x205
MOV RSI,R12
MOV RDX,R13
CALL 0x001294c0
LAB_0019b1bd:
LEA RSI,[RBP + -0x240]
MOV EDX,0x1ff
MOV RBX,qword ptr [RBP + -0x250]
MOV RDI,RBX
CALL 0x001d6da4
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x0019b1fc
SUB RAX,RBX
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019b1fc:
CALL 0x00129270
|
long unpack_dirname(long param_1)
{
char *pcVar1;
long lVar2;
char *__src;
passwd *ppVar3;
size_t sVar4;
char **ppcVar5;
char *__dest;
long lVar6;
char *__n;
long in_FS_OFFSET;
char acStack_48f [559];
code *pcStack_260;
long local_258;
char local_249;
char local_248 [528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcStack_260 = (code *)0x19b0b9;
local_258 = param_1;
lVar2 = normalize_dirname(local_248);
if (local_248[0] == '~') {
pcVar1 = local_248 + 1;
if (local_248[1] == '/') {
ppcVar5 = (char **)&home_dir;
__src = pcVar1;
}
else {
pcStack_260 = (code *)0x19b0ea;
__src = strchr(pcVar1,0x2f);
if (__src == (char *)0x0) {
pcStack_260 = (code *)0x19b0fa;
__src = (char *)strend(pcVar1);
}
local_249 = *__src;
*__src = '\0';
pcStack_260 = (code *)0x19b114;
ppVar3 = getpwnam(pcVar1);
*__src = local_249;
pcStack_260 = (code *)0x19b126;
endpwent();
if (ppVar3 == (passwd *)0x0) goto LAB_0019b1bd;
ppcVar5 = &ppVar3->pw_dir;
}
pcVar1 = *ppcVar5;
if (pcVar1 != (char *)0x0) {
pcStack_260 = (code *)0x19b14c;
sVar4 = strlen(pcVar1);
if (local_248 + sVar4 + (lVar2 - (long)__src) + 1 < (char *)0x201) {
if (sVar4 == 0) {
lVar6 = 0;
}
else {
lVar6 = sVar4 - (pcVar1[sVar4 - 1] == '/');
}
__n = local_248 + (lVar2 - (long)__src) + 1;
__dest = local_248 + lVar6;
if (__dest < __src) {
pcStack_260 = (code *)0x19b193;
memmove(__dest,__src,(size_t)__n);
}
else {
pcStack_260 = (code *)0x19b1a6;
bmove_upp(__dest + (long)__n,__src + (long)__n,__n);
}
pcStack_260 = (code *)0x19b1bd;
__memmove_chk(local_248,pcVar1,lVar6,0x205);
}
}
}
LAB_0019b1bd:
lVar2 = local_258;
pcStack_260 = (code *)0x19b1d8;
lVar6 = strmake(local_258,local_248,0x1ff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return lVar6 - lVar2;
}
/* WARNING: Subroutine does not return */
pcStack_260 = system_filename;
__stack_chk_fail();
}
| |
41,342 | action_r_clear | navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/parts/engine.c | int32_t
action_r_clear (PENGINE_T instance, uint32_t parm, uint32_t flags)
{
int32_t value ;
if (flags & (PART_ACTION_FLAG_VALIDATE)) {
return parts_valadate_int (instance, parm, flags, 0, 4) ;
}
value = parts_get_int (instance, parm, flags, INT_MIN, INT_MAX) ;
engine_set_variable (instance, value, 0) ;
return ENGINE_OK ;
} | O3 | c | action_r_clear:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x1, %dl
jne 0x7579
movq %rbx, %rdi
movl $0x80000000, %ecx # imm = 0x80000000
movl $0x7fffffff, %r8d # imm = 0x7FFFFFFF
callq 0x82dd
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0xe75e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x4, %r8d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8254
| action_r_clear:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
test dl, 1
jnz short loc_7579
mov rdi, rbx
mov ecx, 80000000h
mov r8d, 7FFFFFFFh
call parts_get_int
mov rdi, rbx
mov esi, eax
xor edx, edx
call engine_set_variable
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
loc_7579:
mov rdi, rbx
xor ecx, ecx
mov r8d, 4
add rsp, 8
pop rbx
pop rbp
jmp parts_valadate_int
| long long action_r_clear(long long a1, long long a2, long long a3)
{
unsigned int v3; // eax
if ( (a3 & 1) != 0 )
return parts_valadate_int(a1, a2, a3, 0LL, 4LL);
v3 = parts_get_int(a1, a2, a3, 0x80000000LL, 0x7FFFFFFFLL);
engine_set_variable(a1, v3, 0LL);
return 0LL;
}
| action_r_clear:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
TEST DL,0x1
JNZ 0x00107579
MOV RDI,RBX
MOV ECX,0x80000000
MOV R8D,0x7fffffff
CALL 0x001082dd
MOV RDI,RBX
MOV ESI,EAX
XOR EDX,EDX
CALL 0x0010e75e
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00107579:
MOV RDI,RBX
XOR ECX,ECX
MOV R8D,0x4
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00108254
|
int8 action_r_clear(int8 param_1,int8 param_2,ulong param_3)
{
int4 uVar1;
int8 uVar2;
if ((param_3 & 1) == 0) {
uVar1 = parts_get_int(param_1,param_2,param_3,0x80000000,0x7fffffff);
engine_set_variable(param_1,uVar1,0);
return 0;
}
uVar2 = parts_valadate_int(param_1,param_2,param_3,0,4);
return uVar2;
}
| |
41,343 | AssetStore::getSound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | GhostEscape/src/core/asset_store.cpp | Mix_Chunk *AssetStore::getSound(const std::string &file_path)
{
auto iter = sounds_.find(file_path);
if (iter == sounds_.end()) // 如果没有找到,则载入。
{
loadSound(file_path);
iter = sounds_.find(file_path);
}
if (iter == sounds_.end()) // 如果载入失败,则返回空指针。
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get sound: %s", file_path.c_str());
return nullptr;
}
return iter->second;
} | O0 | cpp | AssetStore::getSound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x40(%rbp)
addq $0x40, %rdi
movq -0x18(%rbp), %rsi
callq 0xb410
movq -0x40(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x40, %rdi
callq 0xadd0
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xb440
testb $0x1, %al
jne 0xa8ad
jmp 0xa8d7
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa540
movq -0x40(%rbp), %rdi
addq $0x40, %rdi
movq -0x18(%rbp), %rsi
callq 0xb410
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x40(%rbp), %rdi
addq $0x40, %rdi
callq 0xadd0
movq %rax, -0x38(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xb440
testb $0x1, %al
jne 0xa8fb
jmp 0xa921
movq -0x18(%rbp), %rdi
callq 0x61b0
movq %rax, %rdx
xorl %edi, %edi
leaq 0x17921(%rip), %rsi # 0x22231
movb $0x0, %al
callq 0x6760
movq $0x0, -0x8(%rbp)
jmp 0xa932
leaq -0x20(%rbp), %rdi
callq 0xb470
movq 0x20(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN10AssetStore8getSoundERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov [rbp+var_40], rdi
add rdi, 40h ; '@'
mov rsi, [rbp+var_18]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE4findERSD_; std::unordered_map<std::string,Mix_Chunk *>::find(std::string const&)
mov rdi, [rbp+var_40]
mov [rbp+var_20], rax
add rdi, 40h ; '@'
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv; std::unordered_map<std::string,Mix_Chunk *>::end(void)
mov [rbp+var_28], rax
lea rdi, [rbp+var_20]
lea rsi, [rbp+var_28]
call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkELb1EEESE_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Chunk *>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Chunk *>,true> const&)
test al, 1
jnz short loc_A8AD
jmp short loc_A8D7
loc_A8AD:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_18]
call _ZN10AssetStore9loadSoundERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AssetStore::loadSound(std::string const&)
mov rdi, [rbp+var_40]
add rdi, 40h ; '@'
mov rsi, [rbp+var_18]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE4findERSD_; std::unordered_map<std::string,Mix_Chunk *>::find(std::string const&)
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov [rbp+var_20], rax
loc_A8D7:
mov rdi, [rbp+var_40]
add rdi, 40h ; '@'
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv; std::unordered_map<std::string,Mix_Chunk *>::end(void)
mov [rbp+var_38], rax
lea rdi, [rbp+var_20]
lea rsi, [rbp+var_38]
call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkELb1EEESE_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Chunk *>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,Mix_Chunk *>,true> const&)
test al, 1
jnz short loc_A8FB
jmp short loc_A921
loc_A8FB:
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdx, rax
xor edi, edi
lea rsi, aFailedToGetSou; "Failed to get sound: %s"
mov al, 0
call _SDL_LogError
mov [rbp+var_8], 0
jmp short loc_A932
loc_A921:
lea rdi, [rbp+var_20]
call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9Mix_ChunkELb0ELb1EEptEv; std::__detail::_Node_iterator<std::pair<std::string const,Mix_Chunk *>,false,true>::operator->(void)
mov rax, [rax+20h]
mov [rbp+var_8], rax
loc_A932:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| long long AssetStore::getSound(long long a1, long long a2)
{
const char *v2; // rax
long long v4; // [rsp+8h] [rbp-38h] BYREF
long long v5; // [rsp+10h] [rbp-30h]
long long v6; // [rsp+18h] [rbp-28h] BYREF
long long v7; // [rsp+20h] [rbp-20h] BYREF
long long v8; // [rsp+28h] [rbp-18h]
long long v9; // [rsp+30h] [rbp-10h]
v9 = a1;
v8 = a2;
v7 = std::unordered_map<std::string,Mix_Chunk *>::find(a1 + 64, a2);
v6 = std::unordered_map<std::string,Mix_Chunk *>::end(a1 + 64);
if ( (std::__detail::operator==(&v7, &v6) & 1) != 0 )
{
AssetStore::loadSound(a1, v8);
v5 = std::unordered_map<std::string,Mix_Chunk *>::find(a1 + 64, v8);
v7 = v5;
}
v4 = std::unordered_map<std::string,Mix_Chunk *>::end(a1 + 64);
if ( (std::__detail::operator==(&v7, &v4) & 1) == 0 )
return *(_QWORD *)(std::__detail::_Node_iterator<std::pair<std::string const,Mix_Chunk *>,false,true>::operator->(&v7)
+ 32);
v2 = (const char *)std::string::c_str(v8);
SDL_LogError(0LL, "Failed to get sound: %s", v2);
return 0LL;
}
| getSound:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RDI
ADD RDI,0x40
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0010b410
MOV RDI,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x20],RAX
ADD RDI,0x40
CALL 0x0010add0
MOV qword ptr [RBP + -0x28],RAX
LEA RDI,[RBP + -0x20]
LEA RSI,[RBP + -0x28]
CALL 0x0010b440
TEST AL,0x1
JNZ 0x0010a8ad
JMP 0x0010a8d7
LAB_0010a8ad:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0010a540
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x40
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0010b410
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x20],RAX
LAB_0010a8d7:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x40
CALL 0x0010add0
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[RBP + -0x20]
LEA RSI,[RBP + -0x38]
CALL 0x0010b440
TEST AL,0x1
JNZ 0x0010a8fb
JMP 0x0010a921
LAB_0010a8fb:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001061b0
MOV RDX,RAX
XOR EDI,EDI
LEA RSI,[0x122231]
MOV AL,0x0
CALL 0x00106760
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0010a932
LAB_0010a921:
LEA RDI,[RBP + -0x20]
CALL 0x0010b470
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_0010a932:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
/* AssetStore::getSound(std::__cxx11::string const&) */
int8 __thiscall AssetStore::getSound(AssetStore *this,string *param_1)
{
ulong uVar1;
int8 uVar2;
long lVar3;
int8 local_40;
int8 local_38;
int8 local_30;
int8 local_28;
string *local_20;
AssetStore *local_18;
int8 local_10;
local_20 = param_1;
local_18 = this;
local_28 = std::
unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>>
::find((unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>>
*)(this + 0x40),param_1);
local_30 = std::
unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>>
::end();
uVar1 = std::__detail::operator==
((_Node_iterator_base *)&local_28,(_Node_iterator_base *)&local_30);
if ((uVar1 & 1) != 0) {
loadSound(this,local_20);
local_38 = std::
unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>>
::find((unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>>
*)(this + 0x40),local_20);
local_28 = local_38;
}
local_40 = std::
unordered_map<std::__cxx11::string,Mix_Chunk*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,Mix_Chunk*>>>
::end();
uVar1 = std::__detail::operator==
((_Node_iterator_base *)&local_28,(_Node_iterator_base *)&local_40);
if ((uVar1 & 1) == 0) {
lVar3 = std::__detail::
_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Chunk*>,false,true>::operator->
((_Node_iterator<std::pair<std::__cxx11::string_const,Mix_Chunk*>,false,true>
*)&local_28);
local_10 = *(int8 *)(lVar3 + 0x20);
}
else {
uVar2 = std::__cxx11::string::c_str();
SDL_LogError(0,"Failed to get sound: %s",uVar2);
local_10 = 0;
}
return local_10;
}
| |
41,344 | mysql_free_result_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_free_result_start(MYSQL_RES *result)
{
MK_ASYNC_START_BODY_VOID_RETURN(
mysql_free_result,
result->handle,
{
WIN_SET_NONBLOCKING(result->handle)
parms.result= result;
},
/*
mysql_free_result() can have NULL in result->handle (this happens when all
rows have been fetched and mysql_fetch_row() returned NULL.)
So we cannot suspend, but it does not matter, as in this case
mysql_free_result() cannot block.
It is also legitimate to have NULL result, which will do nothing.
*/
if (!result || !result->handle)
{
mysql_free_result(result);
return 0;
})
} | O0 | c | mysql_free_result_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x9ddfe
movq -0x10(%rbp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x9de13
movq -0x10(%rbp), %rdi
callq 0x7bb70
movl $0x0, -0x4(%rbp)
jmp 0x9df09
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x20(%rbp), %rdi
addq $0x38, %rdi
leaq 0xd7(%rip), %rsi # 0x9df20
leaq -0x28(%rbp), %rdx
callq 0xa3d80
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x20(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x14(%rbp)
jle 0x9de81
movq -0x20(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x9df09
cmpl $0x0, -0x14(%rbp)
jge 0x9df02
jmp 0x9de89
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x2634cf(%rip), %rax # 0x301380
movq (%rax), %rsi
movl $0x5, %edx
callq 0x60180
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rdi
addq $0x97, %rdi
leaq 0x2634ad(%rip), %rax # 0x301390
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x60180
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movb $0x0, 0x296(%rax)
jmp 0x9df02
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_free_result_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jz short loc_9DDFE
mov rax, [rbp+var_10]
cmp qword ptr [rax+78h], 0
jnz short loc_9DE13
loc_9DDFE:
mov rdi, [rbp+var_10]
call mysql_free_result
mov [rbp+var_4], 0
jmp loc_9DF09
loc_9DE13:
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_20]
add rdi, 38h ; '8'
lea rsi, mysql_free_result_start_internal
lea rdx, [rbp+var_28]
call my_context_spawn
mov [rbp+var_14], eax
mov rax, [rbp+var_20]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_20]
mov byte ptr [rax+14h], 0
cmp [rbp+var_14], 0
jle short loc_9DE81
mov rax, [rbp+var_20]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_20]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_9DF09
loc_9DE81:
cmp [rbp+var_14], 0
jge short loc_9DF02
jmp short $+2
loc_9DE89:
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov dword ptr [rax+90h], 7D8h
mov rax, [rbp+var_10]
mov rdi, [rax+78h]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov byte ptr [rax+29Ch], 0
mov rax, [rbp+var_10]
mov rdi, [rax+78h]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov byte ptr [rax+296h], 0
jmp short $+2
loc_9DF02:
mov [rbp+var_4], 0
loc_9DF09:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_free_result_start(_QWORD *a1)
{
_QWORD *v2; // [rsp+8h] [rbp-28h] BYREF
_BYTE *v3; // [rsp+10h] [rbp-20h]
int v4; // [rsp+1Ch] [rbp-14h]
_QWORD *v5; // [rsp+20h] [rbp-10h]
v5 = a1;
if ( a1 && v5[15] )
{
v3 = *(_BYTE **)(*(_QWORD *)(v5[15] + 1152LL) + 40LL);
v2 = v5;
v3[20] = 1;
v4 = my_context_spawn(v3 + 56, mysql_free_result_start_internal, &v2);
v3[21] = 0;
v3[20] = 0;
if ( v4 <= 0 )
{
if ( v4 < 0 )
{
*(_DWORD *)(v5[15] + 144LL) = 2008;
strncpy(v5[15] + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(v5[15] + 668LL) = 0;
strncpy(v5[15] + 151LL, client_errors[8], 511LL);
*(_BYTE *)(v5[15] + 662LL) = 0;
}
return 0;
}
else
{
v3[21] = 1;
return *(unsigned int *)v3;
}
}
else
{
mysql_free_result(v5);
return 0;
}
}
| mysql_free_result_start:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0019ddfe
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x78],0x0
JNZ 0x0019de13
LAB_0019ddfe:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0017bb70
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019df09
LAB_0019de13:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x38
LEA RSI,[0x19df20]
LEA RDX,[RBP + -0x28]
CALL 0x001a3d80
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x14],0x0
JLE 0x0019de81
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019df09
LAB_0019de81:
CMP dword ptr [RBP + -0x14],0x0
JGE 0x0019df02
JMP 0x0019de89
LAB_0019de89:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x78]
ADD RDI,0x297
LEA RAX,[0x401380]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00160180
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV byte ptr [RAX + 0x29c],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x78]
ADD RDI,0x97
LEA RAX,[0x401390]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00160180
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV byte ptr [RAX + 0x296],0x0
JMP 0x0019df02
LAB_0019df02:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019df09:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_free_result_start(long param_1)
{
long local_30;
int4 *local_28;
int local_1c;
long local_18;
int4 local_c;
local_18 = param_1;
if ((param_1 == 0) || (*(long *)(param_1 + 0x78) == 0)) {
mysql_free_result(param_1);
local_c = 0;
}
else {
local_28 = *(int4 **)(*(long *)(*(long *)(param_1 + 0x78) + 0x480) + 0x28);
*(int1 *)(local_28 + 5) = 1;
local_30 = param_1;
local_1c = my_context_spawn(local_28 + 0xe,mysql_free_result_start_internal,&local_30);
*(int1 *)((long)local_28 + 0x15) = 0;
*(int1 *)(local_28 + 5) = 0;
if (local_1c < 1) {
if (local_1c < 0) {
*(int4 *)(*(long *)(local_18 + 0x78) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(local_18 + 0x78) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(local_18 + 0x78) + 0x29c) = 0;
strncpy((char *)(*(long *)(local_18 + 0x78) + 0x97),PTR_s_Client_run_out_of_memory_004013d0,
0x1ff);
*(int1 *)(*(long *)(local_18 + 0x78) + 0x296) = 0;
}
local_c = 0;
}
else {
*(int1 *)((long)local_28 + 0x15) = 1;
local_c = *local_28;
}
}
return local_c;
}
| |
41,345 | pow5mult | eloqsql/libmariadb/libmariadb/ma_dtoa.c | static Bigint *pow5mult(Bigint *b, int k, Stack_alloc *alloc)
{
Bigint *b1, *p5, *p51=NULL;
int i;
static int p05[3]= { 5, 25, 125 };
my_bool overflow= FALSE;
if ((i= k & 3))
b= multadd(b, p05[i-1], 0, alloc);
if (!(k>>= 2))
return b;
p5= p5_a;
for (;;)
{
if (k & 1)
{
b1= mult(b, p5, alloc);
Bfree(b, alloc);
b= b1;
}
if (!(k>>= 1))
break;
/* Calculate next power of 5 */
if (overflow)
{
p51= mult(p5, p5, alloc);
Bfree(p5, alloc);
p5= p51;
}
else if (p5 < p5_a + P5A_MAX)
++p5;
else if (p5 == p5_a + P5A_MAX)
{
p5= mult(p5, p5, alloc);
overflow= TRUE;
}
}
if (p51)
Bfree(p51, alloc);
return b;
} | O3 | c | pow5mult:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r13
movl %esi, %eax
andl $0x3, %eax
je 0x27676
decl %eax
leaq 0x12e83(%rip), %rcx # 0x3a4e8
movl (%rcx,%rax,4), %esi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x27a1c
movq %rax, %r13
cmpl $0x4, %r15d
jb 0x2775e
movq %rbx, -0x38(%rbp)
shrl $0x2, %r15d
movb $0x1, %cl
leaq 0x2355f(%rip), %rbx # 0x4abf0
movq $0x0, -0x40(%rbp)
leaq 0x235e0(%rip), %r12 # 0x4ac80
movl %ecx, %r14d
cmpq %r12, %rbx
setb %cl
movl %ecx, -0x2c(%rbp)
testb $0x1, %r15b
je 0x276e1
movq %r13, %rdi
movq %rbx, %rsi
movq %r13, %r12
movq -0x38(%rbp), %r13
movq %r13, %rdx
callq 0x27770
movq %rax, -0x48(%rbp)
movq %r12, %rdi
leaq 0x235ab(%rip), %r12 # 0x4ac80
movq %r13, %rsi
callq 0x27892
movq -0x48(%rbp), %r13
cmpl $0x2, %r15d
jb 0x2774c
shrl %r15d
testb $0x1, %r14b
je 0x27711
cmpq %r12, %rbx
jb 0x27740
movb $0x1, %r14b
jne 0x276ac
movq %r12, %rdi
movq %r12, %rsi
movq -0x38(%rbp), %rdx
callq 0x27770
movq %rax, %rbx
movl -0x2c(%rbp), %ecx
jmp 0x276a0
movq %rbx, %rdi
movq %rbx, %r14
movq %rbx, %rsi
movq -0x38(%rbp), %rbx
movq %rbx, %rdx
callq 0x27770
movq %rax, -0x40(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x27892
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
jmp 0x276a0
addq $0x18, %rbx
movl -0x2c(%rbp), %ecx
jmp 0x276a0
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2775e
movq -0x38(%rbp), %rsi
callq 0x27892
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| pow5mult:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdx
mov r15d, esi
mov r13, rdi
mov eax, esi
and eax, 3
jz short loc_27676
dec eax
lea rcx, pow5mult_p05
mov esi, [rcx+rax*4]
mov rdi, r13
mov rdx, rbx
call multadd
mov r13, rax
loc_27676:
cmp r15d, 4
jb loc_2775E
mov [rbp+var_38], rbx
shr r15d, 2
mov cl, 1
lea rbx, p5_a
mov [rbp+var_40], 0
lea r12, off_4AC80
loc_276A0:
mov r14d, ecx
cmp rbx, r12
setb cl
mov [rbp+var_2C], ecx
loc_276AC:
test r15b, 1
jz short loc_276E1
mov rdi, r13
mov rsi, rbx
mov r12, r13
mov r13, [rbp+var_38]
mov rdx, r13
call mult
mov [rbp+var_48], rax
mov rdi, r12
lea r12, off_4AC80
mov rsi, r13
call Bfree
mov r13, [rbp+var_48]
loc_276E1:
cmp r15d, 2
jb short loc_2774C
shr r15d, 1
test r14b, 1
jz short loc_27711
cmp rbx, r12
jb short loc_27740
mov r14b, 1
jnz short loc_276AC
mov rdi, r12
mov rsi, r12
mov rdx, [rbp+var_38]
call mult
mov rbx, rax
mov ecx, [rbp+var_2C]
jmp short loc_276A0
loc_27711:
mov rdi, rbx
mov r14, rbx
mov rsi, rbx
mov rbx, [rbp+var_38]
mov rdx, rbx
call mult
mov [rbp+var_40], rax
mov rdi, r14
mov rsi, rbx
call Bfree
xor ecx, ecx
mov rbx, [rbp+var_40]
jmp loc_276A0
loc_27740:
add rbx, 18h
mov ecx, [rbp+var_2C]
jmp loc_276A0
loc_2774C:
mov rdi, [rbp+var_40]
test rdi, rdi
jz short loc_2775E
mov rsi, [rbp+var_38]
call Bfree
loc_2775E:
mov rax, r13
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long pow5mult(long long a1, unsigned int a2, long long a3, int a4)
{
long long v5; // r13
unsigned int v6; // r15d
_UNKNOWN **v7; // rbx
char v8; // r14
long long v10; // [rsp+8h] [rbp-48h]
long long v11; // [rsp+10h] [rbp-40h]
long long v12; // [rsp+18h] [rbp-38h]
int v13; // [rsp+24h] [rbp-2Ch]
v5 = a1;
if ( (a2 & 3) != 0 )
v5 = multadd(a1, pow5mult_p05[(a2 & 3) - 1], a3);
if ( a2 >= 4 )
{
v12 = a3;
v6 = a2 >> 2;
LOBYTE(a4) = 1;
v7 = &p5_a;
v11 = 0LL;
LABEL_5:
v8 = a4;
LOBYTE(a4) = v7 < &off_4AC80;
v13 = a4;
while ( 1 )
{
if ( (v6 & 1) != 0 )
{
v10 = mult(v5, v7, v12);
Bfree(v5, v12);
v5 = v10;
}
if ( v6 < 2 )
break;
v6 >>= 1;
if ( (v8 & 1) == 0 )
{
v11 = mult(v7, v7, v12);
Bfree(v7, v12);
a4 = 0;
v7 = (_UNKNOWN **)v11;
goto LABEL_5;
}
if ( v7 < &off_4AC80 )
{
v7 += 3;
a4 = v13;
goto LABEL_5;
}
v8 = 1;
if ( v7 == &off_4AC80 )
{
v7 = (_UNKNOWN **)mult(&off_4AC80, &off_4AC80, v12);
a4 = v13;
goto LABEL_5;
}
}
if ( v11 )
Bfree(v11, v12);
}
return v5;
}
| pow5mult:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDX
MOV R15D,ESI
MOV R13,RDI
MOV EAX,ESI
AND EAX,0x3
JZ 0x00127676
DEC EAX
LEA RCX,[0x13a4e8]
MOV ESI,dword ptr [RCX + RAX*0x4]
MOV RDI,R13
MOV RDX,RBX
CALL 0x00127a1c
MOV R13,RAX
LAB_00127676:
CMP R15D,0x4
JC 0x0012775e
MOV qword ptr [RBP + -0x38],RBX
SHR R15D,0x2
MOV CL,0x1
LEA RBX,[0x14abf0]
MOV qword ptr [RBP + -0x40],0x0
LEA R12,[0x14ac80]
LAB_001276a0:
MOV R14D,ECX
CMP RBX,R12
SETC CL
MOV dword ptr [RBP + -0x2c],ECX
LAB_001276ac:
TEST R15B,0x1
JZ 0x001276e1
MOV RDI,R13
MOV RSI,RBX
MOV R12,R13
MOV R13,qword ptr [RBP + -0x38]
MOV RDX,R13
CALL 0x00127770
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,R12
LEA R12,[0x14ac80]
MOV RSI,R13
CALL 0x00127892
MOV R13,qword ptr [RBP + -0x48]
LAB_001276e1:
CMP R15D,0x2
JC 0x0012774c
SHR R15D,0x1
TEST R14B,0x1
JZ 0x00127711
CMP RBX,R12
JC 0x00127740
MOV R14B,0x1
JNZ 0x001276ac
MOV RDI,R12
MOV RSI,R12
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00127770
MOV RBX,RAX
MOV ECX,dword ptr [RBP + -0x2c]
JMP 0x001276a0
LAB_00127711:
MOV RDI,RBX
MOV R14,RBX
MOV RSI,RBX
MOV RBX,qword ptr [RBP + -0x38]
MOV RDX,RBX
CALL 0x00127770
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x00127892
XOR ECX,ECX
MOV RBX,qword ptr [RBP + -0x40]
JMP 0x001276a0
LAB_00127740:
ADD RBX,0x18
MOV ECX,dword ptr [RBP + -0x2c]
JMP 0x001276a0
LAB_0012774c:
MOV RDI,qword ptr [RBP + -0x40]
TEST RDI,RDI
JZ 0x0012775e
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00127892
LAB_0012775e:
MOV RAX,R13
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 pow5mult(int8 param_1,uint param_2,int8 param_3)
{
int1 *puVar1;
int8 uVar2;
bool bVar3;
bool bVar4;
int1 *local_48;
if ((param_2 & 3) != 0) {
param_1 = multadd(param_1,*(int4 *)(pow5mult_p05 + (ulong)((param_2 & 3) - 1) * 4),param_3
);
}
if (param_2 < 4) {
return param_1;
}
param_2 = param_2 >> 2;
local_48 = (int1 *)0x0;
puVar1 = p5_a;
bVar3 = true;
LAB_001276a0:
do {
bVar4 = puVar1 < (int1 *)0x14ac80;
uVar2 = param_1;
do {
param_1 = uVar2;
if ((param_2 & 1) != 0) {
param_1 = mult(uVar2,puVar1,param_3);
Bfree(uVar2,param_3);
}
if (param_2 < 2) {
if (local_48 == (int1 *)0x0) {
return param_1;
}
Bfree(local_48,param_3);
return param_1;
}
param_2 = param_2 >> 1;
if (!bVar3) {
local_48 = (int1 *)mult(puVar1,puVar1,param_3);
Bfree(puVar1,param_3);
bVar3 = false;
puVar1 = local_48;
goto LAB_001276a0;
}
if (puVar1 < (int1 *)0x14ac80) {
puVar1 = puVar1 + 0x18;
bVar3 = bVar4;
goto LAB_001276a0;
}
bVar3 = true;
uVar2 = param_1;
} while (puVar1 != (int1 *)0x14ac80);
puVar1 = (int1 *)mult(0x14ac80,0x14ac80,param_3);
bVar3 = bVar4;
} while( true );
}
| |
41,346 | mysql_handle_local_infile | eloqsql/libmariadb/libmariadb/ma_loaddata.c | my_bool mysql_handle_local_infile(MYSQL *conn, const char *filename, my_bool can_local_infile)
{
unsigned int buflen= 4096;
int bufread;
unsigned char *buf= NULL;
void *info= NULL;
my_bool result= 1;
/* check if all callback functions exist */
if (!conn->options.local_infile_init || !conn->options.local_infile_end ||
!conn->options.local_infile_read || !conn->options.local_infile_error)
{
conn->options.local_infile_userdata= conn;
mysql_set_local_infile_default(conn);
}
if (!(conn->options.client_flag & CLIENT_LOCAL_FILES) ||
!can_local_infile)
{
my_set_error(conn, CR_UNKNOWN_ERROR, SQLSTATE_UNKNOWN, "Load data local infile forbidden");
/* write empty packet to server */
ma_net_write(&conn->net, (unsigned char *)"", 0);
ma_net_flush(&conn->net);
goto infile_error;
}
/* allocate buffer for reading data */
buf = (uchar *)malloc(buflen);
/* init handler: allocate read buffer and open file */
if (conn->options.local_infile_init(&info, filename,
conn->options.local_infile_userdata))
{
char tmp_buf[MYSQL_ERRMSG_SIZE];
int tmp_errno;
tmp_errno= conn->options.local_infile_error(info, tmp_buf, sizeof(tmp_buf));
my_set_error(conn, tmp_errno, SQLSTATE_UNKNOWN, tmp_buf);
ma_net_write(&conn->net, (unsigned char *)"", 0);
ma_net_flush(&conn->net);
goto infile_error;
}
/* read data */
while ((bufread= conn->options.local_infile_read(info, (char *)buf, buflen)) > 0)
{
if (ma_net_write(&conn->net, (unsigned char *)buf, bufread))
{
my_set_error(conn, CR_SERVER_LOST, SQLSTATE_UNKNOWN, NULL);
goto infile_error;
}
}
/* send empty packet for eof */
if (ma_net_write(&conn->net, (unsigned char *)"", 0) ||
ma_net_flush(&conn->net))
{
my_set_error(conn, CR_SERVER_LOST, SQLSTATE_UNKNOWN, NULL);
goto infile_error;
}
/* error during read occurred */
if (bufread < 0)
{
char tmp_buf[MYSQL_ERRMSG_SIZE];
int tmp_errno= conn->options.local_infile_error(info, tmp_buf, sizeof(tmp_buf));
my_set_error(conn, tmp_errno, SQLSTATE_UNKNOWN, tmp_buf);
goto infile_error;
}
result = 0;
infile_error:
conn->options.local_infile_end(info);
free(buf);
return(result);
} | O3 | c | mysql_handle_local_infile:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rsi, %r15
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x238(%rbp)
movq 0x458(%rdi), %r12
testq %r12, %r12
je 0x801dd
cmpq $0x0, 0x468(%rbx)
je 0x801dd
cmpq $0x0, 0x460(%rbx)
je 0x801dd
cmpq $0x0, 0x470(%rbx)
jne 0x8021c
movq %rbx, 0x478(%rbx)
leaq -0x261(%rip), %r12 # 0x7ff8a
movq %r12, 0x458(%rbx)
leaq -0x17e(%rip), %rax # 0x8007b
movq %rax, 0x460(%rbx)
leaq -0x118(%rip), %rax # 0x800ef
movq %rax, 0x470(%rbx)
leaq -0xe5(%rip), %rax # 0x80130
movq %rax, 0x468(%rbx)
testb %dl, %dl
je 0x802fe
movq 0x3a8(%rbx), %rax
andl $0x80, %eax
je 0x802fe
movl $0x1000, %edi # imm = 0x1000
callq 0x5faf0
movq %rax, %r14
movq 0x478(%rbx), %rdx
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq *%r12
testl %eax, %eax
je 0x802a0
movq -0x238(%rbp), %rdi
leaq -0x230(%rbp), %r15
movq %r15, %rsi
movl $0x200, %edx # imm = 0x200
callq *0x470(%rbx)
leaq 0x364ca2(%rip), %rcx # 0x3e4f20
movq (%rcx), %rdx
movq %rbx, %rdi
movl %eax, %esi
movq %r15, %rcx
jmp 0x8031a
movl %r15d, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8ea3b
testl %eax, %eax
jne 0x802e1
movq -0x238(%rbp), %rdi
movq %r14, %rsi
movl $0x1000, %edx # imm = 0x1000
callq *0x460(%rbx)
movl %eax, %r15d
testl %eax, %eax
jg 0x8028e
leaq 0x93e3e(%rip), %rsi # 0x114101
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8ea3b
testl %eax, %eax
jne 0x802e1
movq %rbx, %rdi
callq 0x8e7f6
testl %eax, %eax
je 0x80374
leaq 0x364c38(%rip), %rax # 0x3e4f20
movq (%rax), %rdx
movq %rbx, %rdi
movl $0x7dd, %esi # imm = 0x7DD
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x72dd1
jmp 0x8033a
leaq 0x364c1b(%rip), %rax # 0x3e4f20
movq (%rax), %rdx
leaq 0x8f305(%rip), %rcx # 0x10f614
xorl %r14d, %r14d
movq %rbx, %rdi
movl $0x7d0, %esi # imm = 0x7D0
xorl %eax, %eax
callq 0x72dd1
leaq 0x93dd9(%rip), %rsi # 0x114101
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8ea3b
movq %rbx, %rdi
callq 0x8e7f6
movb $0x1, %r15b
movq -0x238(%rbp), %rdi
callq *0x468(%rbx)
movq %r14, %rdi
callq 0x5f1d0
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x803b1
movl %r15d, %eax
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
testl %r15d, %r15d
js 0x8037e
xorl %r15d, %r15d
jmp 0x8033d
movq -0x238(%rbp), %rdi
leaq -0x230(%rbp), %r15
movq %r15, %rsi
movl $0x200, %edx # imm = 0x200
callq *0x470(%rbx)
leaq 0x364b7f(%rip), %rcx # 0x3e4f20
movq (%rcx), %rdx
movq %rbx, %rdi
movl %eax, %esi
movq %r15, %rcx
jmp 0x802f5
callq 0x5f320
nop
| mysql_handle_local_infile:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 220h
mov r15, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
mov [rbp+var_238], 0
mov r12, [rdi+458h]
test r12, r12
jz short loc_801DD
cmp qword ptr [rbx+468h], 0
jz short loc_801DD
cmp qword ptr [rbx+460h], 0
jz short loc_801DD
cmp qword ptr [rbx+470h], 0
jnz short loc_8021C
loc_801DD:
mov [rbx+478h], rbx
lea r12, mysql_local_infile_init
mov [rbx+458h], r12
lea rax, mysql_local_infile_read
mov [rbx+460h], rax
lea rax, mysql_local_infile_error
mov [rbx+470h], rax
lea rax, mysql_local_infile_end
mov [rbx+468h], rax
loc_8021C:
test dl, dl
jz loc_802FE
mov rax, [rbx+3A8h]
and eax, 80h
jz loc_802FE
mov edi, 1000h
call _malloc
mov r14, rax
mov rdx, [rbx+478h]
lea rdi, [rbp+var_238]
mov rsi, r15
call r12
test eax, eax
jz short loc_802A0
mov rdi, [rbp+var_238]
lea r15, [rbp+var_230]
mov rsi, r15
mov edx, 200h
call qword ptr [rbx+470h]
lea rcx, SQLSTATE_UNKNOWN
mov rdx, [rcx]
mov rdi, rbx
mov esi, eax
mov rcx, r15
jmp loc_8031A
loc_8028E:
mov edx, r15d
mov rdi, rbx
mov rsi, r14
call ma_net_write
test eax, eax
jnz short loc_802E1
loc_802A0:
mov rdi, [rbp+var_238]
mov rsi, r14
mov edx, 1000h
call qword ptr [rbx+460h]
mov r15d, eax
test eax, eax
jg short loc_8028E
lea rsi, byte_114101
mov rdi, rbx
xor edx, edx
call ma_net_write
test eax, eax
jnz short loc_802E1
mov rdi, rbx
call ma_net_flush
test eax, eax
jz loc_80374
loc_802E1:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov rdi, rbx
mov esi, 7DDh
xor ecx, ecx
loc_802F5:
xor eax, eax
call my_set_error
jmp short loc_8033A
loc_802FE:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rcx, aLoadDataLocalI; "Load data local infile forbidden"
xor r14d, r14d
mov rdi, rbx
mov esi, 7D0h
loc_8031A:
xor eax, eax
call my_set_error
lea rsi, byte_114101
mov rdi, rbx
xor edx, edx
call ma_net_write
mov rdi, rbx
call ma_net_flush
loc_8033A:
mov r15b, 1
loc_8033D:
mov rdi, [rbp+var_238]
call qword ptr [rbx+468h]
mov rdi, r14
call _free
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_803B1
mov eax, r15d
add rsp, 220h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_80374:
test r15d, r15d
js short loc_8037E
xor r15d, r15d
jmp short loc_8033D
loc_8037E:
mov rdi, [rbp+var_238]
lea r15, [rbp+var_230]
mov rsi, r15
mov edx, 200h
call qword ptr [rbx+470h]
lea rcx, SQLSTATE_UNKNOWN
mov rdx, [rcx]
mov rdi, rbx
mov esi, eax
mov rcx, r15
jmp loc_802F5
loc_803B1:
call ___stack_chk_fail
| long long mysql_handle_local_infile(_QWORD *a1, long long a2, char a3)
{
char *v3; // r15
long long ( *v4)(long long *, long long, long long); // r12
long long v5; // r14
int v6; // eax
int v7; // eax
int v9; // eax
long long v10; // [rsp+8h] [rbp-238h] BYREF
char v11[520]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v12; // [rsp+218h] [rbp-28h]
LODWORD(v3) = a2;
v12 = __readfsqword(0x28u);
v10 = 0LL;
v4 = (long long ( *)(long long *, long long, long long))a1[139];
if ( !v4 || !a1[141] || !a1[140] || !a1[142] )
{
a1[143] = a1;
v4 = mysql_local_infile_init;
a1[139] = mysql_local_infile_init;
a1[140] = mysql_local_infile_read;
a1[142] = mysql_local_infile_error;
a1[141] = mysql_local_infile_end;
}
if ( !a3 || (a1[117] & 0x80) == 0 )
{
v5 = 0LL;
my_set_error((long long)a1, 2000, (long long)SQLSTATE_UNKNOWN, "Load data local infile forbidden");
goto LABEL_17;
}
v5 = malloc(4096LL);
if ( (unsigned int)v4(&v10, a2, a1[143]) )
{
v3 = v11;
v6 = ((long long ( *)(long long, char *, long long))a1[142])(v10, v11, 512LL);
my_set_error((long long)a1, v6, (long long)SQLSTATE_UNKNOWN, v11);
LABEL_17:
ma_net_write(a1, &byte_114101, 0LL);
ma_net_flush(a1);
goto LABEL_18;
}
while ( 1 )
{
v7 = ((long long ( *)(long long, long long, long long))a1[140])(v10, v5, 4096LL);
LODWORD(v3) = v7;
if ( v7 <= 0 )
break;
if ( (unsigned int)ma_net_write(a1, v5, (unsigned int)v7) )
goto LABEL_14;
}
if ( (unsigned int)ma_net_write(a1, &byte_114101, 0LL) || (unsigned int)ma_net_flush(a1) )
{
LABEL_14:
my_set_error((long long)a1, 2013, (long long)SQLSTATE_UNKNOWN, 0LL);
goto LABEL_18;
}
if ( (int)v3 >= 0 )
{
LODWORD(v3) = 0;
goto LABEL_19;
}
v3 = v11;
v9 = ((long long ( *)(long long, char *, long long))a1[142])(v10, v11, 512LL);
my_set_error((long long)a1, v9, (long long)SQLSTATE_UNKNOWN, v11);
LABEL_18:
LOBYTE(v3) = 1;
LABEL_19:
((void ( *)(long long))a1[141])(v10);
free(v5);
return (unsigned int)v3;
}
| mysql_handle_local_infile:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x220
MOV R15,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0x238],0x0
MOV R12,qword ptr [RDI + 0x458]
TEST R12,R12
JZ 0x001801dd
CMP qword ptr [RBX + 0x468],0x0
JZ 0x001801dd
CMP qword ptr [RBX + 0x460],0x0
JZ 0x001801dd
CMP qword ptr [RBX + 0x470],0x0
JNZ 0x0018021c
LAB_001801dd:
MOV qword ptr [RBX + 0x478],RBX
LEA R12,[0x17ff8a]
MOV qword ptr [RBX + 0x458],R12
LEA RAX,[0x18007b]
MOV qword ptr [RBX + 0x460],RAX
LEA RAX,[0x1800ef]
MOV qword ptr [RBX + 0x470],RAX
LEA RAX,[0x180130]
MOV qword ptr [RBX + 0x468],RAX
LAB_0018021c:
TEST DL,DL
JZ 0x001802fe
MOV RAX,qword ptr [RBX + 0x3a8]
AND EAX,0x80
JZ 0x001802fe
MOV EDI,0x1000
CALL 0x0015faf0
MOV R14,RAX
MOV RDX,qword ptr [RBX + 0x478]
LEA RDI,[RBP + -0x238]
MOV RSI,R15
CALL R12
TEST EAX,EAX
JZ 0x001802a0
MOV RDI,qword ptr [RBP + -0x238]
LEA R15,[RBP + -0x230]
MOV RSI,R15
MOV EDX,0x200
CALL qword ptr [RBX + 0x470]
LEA RCX,[0x4e4f20]
MOV RDX,qword ptr [RCX]
MOV RDI,RBX
MOV ESI,EAX
MOV RCX,R15
JMP 0x0018031a
LAB_0018028e:
MOV EDX,R15D
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018ea3b
TEST EAX,EAX
JNZ 0x001802e1
LAB_001802a0:
MOV RDI,qword ptr [RBP + -0x238]
MOV RSI,R14
MOV EDX,0x1000
CALL qword ptr [RBX + 0x460]
MOV R15D,EAX
TEST EAX,EAX
JG 0x0018028e
LEA RSI,[0x214101]
MOV RDI,RBX
XOR EDX,EDX
CALL 0x0018ea3b
TEST EAX,EAX
JNZ 0x001802e1
MOV RDI,RBX
CALL 0x0018e7f6
TEST EAX,EAX
JZ 0x00180374
LAB_001802e1:
LEA RAX,[0x4e4f20]
MOV RDX,qword ptr [RAX]
MOV RDI,RBX
MOV ESI,0x7dd
XOR ECX,ECX
LAB_001802f5:
XOR EAX,EAX
CALL 0x00172dd1
JMP 0x0018033a
LAB_001802fe:
LEA RAX,[0x4e4f20]
MOV RDX,qword ptr [RAX]
LEA RCX,[0x20f614]
XOR R14D,R14D
MOV RDI,RBX
MOV ESI,0x7d0
LAB_0018031a:
XOR EAX,EAX
CALL 0x00172dd1
LEA RSI,[0x214101]
MOV RDI,RBX
XOR EDX,EDX
CALL 0x0018ea3b
MOV RDI,RBX
CALL 0x0018e7f6
LAB_0018033a:
MOV R15B,0x1
LAB_0018033d:
MOV RDI,qword ptr [RBP + -0x238]
CALL qword ptr [RBX + 0x468]
MOV RDI,R14
CALL 0x0015f1d0
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x001803b1
MOV EAX,R15D
ADD RSP,0x220
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00180374:
TEST R15D,R15D
JS 0x0018037e
XOR R15D,R15D
JMP 0x0018033d
LAB_0018037e:
MOV RDI,qword ptr [RBP + -0x238]
LEA R15,[RBP + -0x230]
MOV RSI,R15
MOV EDX,0x200
CALL qword ptr [RBX + 0x470]
LEA RCX,[0x4e4f20]
MOV RDX,qword ptr [RCX]
MOV RDI,RBX
MOV ESI,EAX
MOV RCX,R15
JMP 0x001802f5
LAB_001803b1:
CALL 0x0015f320
|
ulong mysql_handle_local_infile(long param_1,char *param_2,char param_3)
{
int iVar1;
int4 uVar2;
uint uVar3;
void *__ptr;
char *pcVar4;
code *pcVar5;
ulong uVar6;
long in_FS_OFFSET;
int8 local_240;
char local_238 [520];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
local_240 = 0;
pcVar5 = *(code **)(param_1 + 0x458);
if ((((pcVar5 == (code *)0x0) || (*(long *)(param_1 + 0x468) == 0)) ||
(*(long *)(param_1 + 0x460) == 0)) || (*(long *)(param_1 + 0x470) == 0)) {
*(long *)(param_1 + 0x478) = param_1;
pcVar5 = mysql_local_infile_init;
*(code **)(param_1 + 0x458) = mysql_local_infile_init;
*(code **)(param_1 + 0x460) = mysql_local_infile_read;
*(code **)(param_1 + 0x470) = mysql_local_infile_error;
*(code **)(param_1 + 0x468) = mysql_local_infile_end;
}
if ((param_3 == '\0') || ((*(ulong *)(param_1 + 0x3a8) & 0x80) == 0)) {
pcVar4 = "Load data local infile forbidden";
__ptr = (void *)0x0;
uVar2 = 2000;
}
else {
__ptr = malloc(0x1000);
iVar1 = (*pcVar5)(&local_240,param_2,*(int8 *)(param_1 + 0x478));
if (iVar1 == 0) {
do {
uVar3 = (**(code **)(param_1 + 0x460))(local_240,__ptr,0x1000);
if ((int)uVar3 < 1) {
iVar1 = ma_net_write(param_1,&DAT_00214101,0);
if (iVar1 == 0) {
iVar1 = ma_net_flush(param_1);
if (iVar1 == 0) {
if (-1 < (int)uVar3) {
uVar6 = 0;
goto LAB_0018033d;
}
pcVar4 = local_238;
uVar2 = (**(code **)(param_1 + 0x470))(local_240,pcVar4,0x200);
param_2 = pcVar4;
goto LAB_001802f5;
}
}
break;
}
iVar1 = ma_net_write(param_1,__ptr,(char *)(ulong)uVar3);
} while (iVar1 == 0);
uVar2 = 0x7dd;
pcVar4 = (char *)0x0;
param_2 = (char *)(ulong)uVar3;
LAB_001802f5:
my_set_error(param_1,uVar2,SQLSTATE_UNKNOWN,pcVar4);
goto LAB_0018033a;
}
pcVar4 = local_238;
uVar2 = (**(code **)(param_1 + 0x470))(local_240,pcVar4,0x200);
param_2 = pcVar4;
}
my_set_error(param_1,uVar2,SQLSTATE_UNKNOWN,pcVar4);
ma_net_write(param_1,&DAT_00214101,0);
ma_net_flush(param_1);
LAB_0018033a:
uVar6 = CONCAT71((int7)((ulong)param_2 >> 8),1);
LAB_0018033d:
(**(code **)(param_1 + 0x468))(local_240);
free(__ptr);
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return uVar6 & 0xffffffff;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
41,347 | translog_set_file_size | eloqsql/storage/maria/ma_loghandler.c | void translog_set_file_size(uint32 size)
{
struct st_translog_buffer *old_buffer= NULL;
DBUG_ENTER("translog_set_file_size");
translog_lock();
DBUG_PRINT("enter", ("Size: %lu", (ulong) size));
DBUG_ASSERT(size % TRANSLOG_PAGE_SIZE == 0);
DBUG_ASSERT(size >= TRANSLOG_MIN_FILE_SIZE);
log_descriptor.log_file_max_size= size;
/* if current file longer then finish it*/
if (LSN_OFFSET(log_descriptor.horizon) >= log_descriptor.log_file_max_size)
{
old_buffer= log_descriptor.bc.buffer;
translog_buffer_next(&log_descriptor.horizon, &log_descriptor.bc, 1);
translog_buffer_unlock(old_buffer);
}
translog_unlock();
if (old_buffer)
{
translog_buffer_lock(old_buffer);
translog_buffer_flush(old_buffer);
translog_buffer_unlock(old_buffer);
}
DBUG_VOID_RETURN;
} | O3 | c | translog_set_file_size:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
callq 0x7b37f
movl %ebx, 0x3d1718(%rip) # 0x451ad0
cmpl %ebx, 0xbd234a(%rip) # 0xc52708
jae 0x803c4
xorl %ebx, %ebx
jmp 0x803ff
movq 0xbd236d(%rip), %rbx # 0xc52738
leaq 0xbd2336(%rip), %rdi # 0xc52708
leaq 0xbd2337(%rip), %rsi # 0xc52710
movl $0x1, %edx
callq 0x80493
movq 0x1000d0(%rbx), %rdi
testq %rdi, %rdi
jne 0x8047e
leaq 0x100090(%rbx), %rdi
callq 0x2b1f0
movq 0xbd2332(%rip), %r14 # 0xc52738
movq 0x1000d0(%r14), %rdi
testq %rdi, %rdi
jne 0x8045a
addq $0x100090, %r14 # imm = 0x100090
movq %r14, %rdi
callq 0x2b1f0
testq %rbx, %rbx
je 0x80455
movq %rbx, %rdi
callq 0x7b41f
movq %rbx, %rdi
callq 0x7f0ed
movq 0x1000d0(%rbx), %rdi
testq %rdi, %rdi
jne 0x8046c
addq $0x100090, %rbx # imm = 0x100090
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2b1f0
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3387a7(%rip), %rax # 0x3b8c08
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x80412
leaq 0x338795(%rip), %rax # 0x3b8c08
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x80442
leaq 0x338783(%rip), %rax # 0x3b8c08
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x803f3
| translog_set_file_size:
push rbp
mov rbp, rsp
push r14
push rbx
mov ebx, edi
call translog_lock
mov cs:dword_451AD0, ebx
cmp dword ptr cs:qword_C52708, ebx
jnb short loc_803C4
xor ebx, ebx
jmp short loc_803FF
loc_803C4:
mov rbx, qword ptr cs:xmmword_C52730+8
lea rdi, qword_C52708
lea rsi, xmmword_C52710
mov edx, 1
call translog_buffer_next
mov rdi, [rbx+1000D0h]
test rdi, rdi
jnz loc_8047E
loc_803F3:
lea rdi, [rbx+100090h]
call _pthread_mutex_unlock
loc_803FF:
mov r14, qword ptr cs:xmmword_C52730+8
mov rdi, [r14+1000D0h]
test rdi, rdi
jnz short loc_8045A
loc_80412:
add r14, 100090h
mov rdi, r14
call _pthread_mutex_unlock
test rbx, rbx
jz short loc_80455
mov rdi, rbx
call translog_buffer_lock
mov rdi, rbx
call translog_buffer_flush
mov rdi, [rbx+1000D0h]
test rdi, rdi
jnz short loc_8046C
loc_80442:
add rbx, 100090h
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp _pthread_mutex_unlock
loc_80455:
pop rbx
pop r14
pop rbp
retn
loc_8045A:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_80412
loc_8046C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_80442
loc_8047E:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_803F3
| long long translog_set_file_size(unsigned int a1)
{
long long v1; // rbx
long long v2; // r14
long long result; // rax
translog_lock();
dword_451AD0 = a1;
if ( (unsigned int)qword_C52708 >= a1 )
{
v1 = *((_QWORD *)&xmmword_C52730 + 1);
translog_buffer_next(&qword_C52708, &xmmword_C52710, 1LL);
if ( *(_QWORD *)(v1 + 1048784) )
PSI_server[44]();
pthread_mutex_unlock(v1 + 1048720);
}
else
{
v1 = 0LL;
}
v2 = *((_QWORD *)&xmmword_C52730 + 1);
if ( *(_QWORD *)(*((_QWORD *)&xmmword_C52730 + 1) + 1048784LL) )
PSI_server[44]();
result = pthread_mutex_unlock(v2 + 1048720);
if ( v1 )
{
translog_buffer_lock(v1);
translog_buffer_flush(v1);
if ( *(_QWORD *)(v1 + 1048784) )
PSI_server[44]();
return pthread_mutex_unlock(v1 + 1048720);
}
return result;
}
| translog_set_file_size:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV EBX,EDI
CALL 0x0017b37f
MOV dword ptr [0x00551ad0],EBX
CMP dword ptr [0x00d52708],EBX
JNC 0x001803c4
XOR EBX,EBX
JMP 0x001803ff
LAB_001803c4:
MOV RBX,qword ptr [0x00d52738]
LEA RDI,[0xd52708]
LEA RSI,[0xd52710]
MOV EDX,0x1
CALL 0x00180493
MOV RDI,qword ptr [RBX + 0x1000d0]
TEST RDI,RDI
JNZ 0x0018047e
LAB_001803f3:
LEA RDI,[RBX + 0x100090]
CALL 0x0012b1f0
LAB_001803ff:
MOV R14,qword ptr [0x00d52738]
MOV RDI,qword ptr [R14 + 0x1000d0]
TEST RDI,RDI
JNZ 0x0018045a
LAB_00180412:
ADD R14,0x100090
MOV RDI,R14
CALL 0x0012b1f0
TEST RBX,RBX
JZ 0x00180455
MOV RDI,RBX
CALL 0x0017b41f
MOV RDI,RBX
CALL 0x0017f0ed
MOV RDI,qword ptr [RBX + 0x1000d0]
TEST RDI,RDI
JNZ 0x0018046c
LAB_00180442:
ADD RBX,0x100090
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP 0x0012b1f0
LAB_00180455:
POP RBX
POP R14
POP RBP
RET
LAB_0018045a:
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00180412
LAB_0018046c:
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00180442
LAB_0018047e:
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001803f3
|
void translog_set_file_size(uint param_1)
{
long lVar1;
long lVar2;
translog_lock();
lVar2 = DAT_00d52738;
DAT_00551ad0 = param_1;
if ((uint)DAT_00d52708 < param_1) {
lVar2 = 0;
}
else {
translog_buffer_next(&DAT_00d52708,&DAT_00d52710,1);
if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + lVar2) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2));
}
lVar1 = DAT_00d52738;
if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + DAT_00d52738) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar1));
if (lVar2 != 0) {
translog_buffer_lock(lVar2);
translog_buffer_flush(lVar2);
if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + lVar2) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2));
return;
}
return;
}
| |
41,348 | rw_pr_rdlock | eloqsql/mysys/thr_rwlock.c | int rw_pr_rdlock(rw_pr_lock_t *rwlock)
{
pthread_mutex_lock(&rwlock->lock);
/*
The fact that we were able to acquire 'lock' mutex means
that there are no active writers and we can acquire rd-lock.
Increment active readers counter to prevent requests for
wr-lock from succeeding and unlock mutex.
*/
rwlock->active_readers++;
pthread_mutex_unlock(&rwlock->lock);
return 0;
} | O0 | c | rw_pr_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x37290
movq -0x8(%rbp), %rax
movl 0x58(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x58(%rax)
movq -0x8(%rbp), %rdi
callq 0x37260
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rw_pr_rdlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
mov ecx, [rax+58h]
add ecx, 1
mov [rax+58h], ecx
mov rdi, [rbp+var_8]
call _pthread_mutex_unlock
xor eax, eax
add rsp, 10h
pop rbp
retn
| long long rw_pr_rdlock(long long a1)
{
pthread_mutex_lock(a1);
++*(_DWORD *)(a1 + 88);
pthread_mutex_unlock(a1);
return 0LL;
}
| rw_pr_rdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00137290
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x58]
ADD ECX,0x1
MOV dword ptr [RAX + 0x58],ECX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00137260
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 rw_pr_rdlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
*(int *)((long)param_1 + 0x58) = *(int *)((long)param_1 + 0x58) + 1;
pthread_mutex_unlock(param_1);
return 0;
}
| |
41,349 | rw_pr_wrlock | eloqsql/mysys/thr_rwlock.c | int rw_pr_wrlock(rw_pr_lock_t *rwlock)
{
pthread_mutex_lock(&rwlock->lock);
if (rwlock->active_readers != 0)
{
/* There are active readers. We have to wait until they are gone. */
rwlock->writers_waiting_readers++;
while (rwlock->active_readers != 0)
pthread_cond_wait(&rwlock->no_active_readers, &rwlock->lock);
rwlock->writers_waiting_readers--;
}
/*
We own 'lock' mutex so there is no active writers.
Also there are no active readers.
This means that we can grant wr-lock.
Not releasing 'lock' mutex until unlock will block
both requests for rd and wr-locks.
Set 'active_writer' flag to simplify unlock.
Thanks to the fact wr-lock/unlock in the absence of
contention from readers is essentially mutex lock/unlock
with a few simple checks make this rwlock implementation
wr-lock optimized.
*/
rwlock->active_writer= TRUE;
#ifdef SAFE_MUTEX
rwlock->writer_thread= pthread_self();
#endif
return 0;
} | O0 | c | rw_pr_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x36270
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0x80ab6
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0x80aa9
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movq -0x8(%rbp), %rsi
callq 0x364d0
jmp 0x80a8c
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rax
movb $0x1, 0x60(%rax)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rw_pr_wrlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
cmp dword ptr [rax+58h], 0
jz short loc_80AB6
mov rax, [rbp+var_8]
mov ecx, [rax+5Ch]
add ecx, 1
mov [rax+5Ch], ecx
loc_80A8C:
mov rax, [rbp+var_8]
cmp dword ptr [rax+58h], 0
jz short loc_80AA9
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
mov rsi, [rbp+var_8]
call _pthread_cond_wait
jmp short loc_80A8C
loc_80AA9:
mov rax, [rbp+var_8]
mov ecx, [rax+5Ch]
add ecx, 0FFFFFFFFh
mov [rax+5Ch], ecx
loc_80AB6:
mov rax, [rbp+var_8]
mov byte ptr [rax+60h], 1
xor eax, eax
add rsp, 10h
pop rbp
retn
| long long rw_pr_wrlock(long long a1)
{
pthread_mutex_lock(a1);
if ( *(_DWORD *)(a1 + 88) )
{
++*(_DWORD *)(a1 + 92);
while ( *(_DWORD *)(a1 + 88) )
pthread_cond_wait(a1 + 40, a1);
--*(_DWORD *)(a1 + 92);
}
*(_BYTE *)(a1 + 96) = 1;
return 0LL;
}
| rw_pr_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00136270
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x58],0x0
JZ 0x00180ab6
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x5c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x5c],ECX
LAB_00180a8c:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x58],0x0
JZ 0x00180aa9
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x001364d0
JMP 0x00180a8c
LAB_00180aa9:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x5c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x5c],ECX
LAB_00180ab6:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x60],0x1
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 rw_pr_wrlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
if (*(int *)((long)param_1 + 0x58) != 0) {
*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;
while (*(int *)((long)param_1 + 0x58) != 0) {
pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1);
}
*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + -1;
}
*(int1 *)((long)param_1 + 0x60) = 1;
return 0;
}
| |
41,350 | 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>::max_size() const | monkey531[P]llama/common/./json.hpp | size_type max_size() const noexcept
{
switch (m_data.m_type)
{
case value_t::array:
{
// delegate call to array_t::max_size()
return m_data.m_value.array->max_size();
}
case value_t::object:
{
// delegate call to object_t::max_size()
return m_data.m_value.object->max_size();
}
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
// all other types have max_size() == size()
return size();
}
}
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::max_size() const:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movzbl (%rax), %eax
movq %rax, 0x10(%rsp)
subq $0x9, %rax
ja 0xb9922
movq 0x10(%rsp), %rax
leaq 0x109243(%rip), %rcx # 0x1c2b30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xa2f20
movq %rax, 0x20(%rsp)
jmp 0xb9931
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xba560
movq %rax, 0x20(%rsp)
jmp 0xb9931
jmp 0xb9922
movq 0x8(%rsp), %rdi
callq 0xba580
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_20], rax
movzx eax, byte ptr [rax]
mov [rsp+28h+var_18], rax
sub rax, 9; switch 10 cases
ja short def_B98F4; jumptable 00000000000B98F4 default case
mov rax, [rsp+28h+var_18]
lea rcx, jpt_B98F4
movsxd rax, ds:(jpt_B98F4 - 1C2B30h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B98F6:
mov rax, [rsp+28h+var_20]; jumptable 00000000000B98F4 case 2
mov rdi, [rax+8]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8max_sizeEv; 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>>::max_size(void)
mov [rsp+28h+var_8], rax
jmp short loc_B9931
loc_B990B:
mov rax, [rsp+28h+var_20]; jumptable 00000000000B98F4 case 1
mov rdi, [rax+8]
call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE8max_sizeEv; std::vector<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>>>::max_size(void)
mov [rsp+28h+var_8], rax
jmp short loc_B9931
loc_B9920:
jmp short $+2; jumptable 00000000000B98F4 cases 0,3-9
def_B98F4:
mov rdi, [rsp+28h+var_20]; jumptable 00000000000B98F4 default case
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void)
mov [rsp+28h+var_8], rax
loc_B9931:
mov rax, [rsp+28h+var_8]
add rsp, 28h
retn
| 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>::max_size(
long long a1)
{
long long v2; // [rsp+20h] [rbp-8h]
switch ( *(_BYTE *)a1 )
{
case 1:
v2 = std::vector<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>>>::max_size(*(_QWORD *)(a1 + 8));
break;
case 2:
v2 = 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>>::max_size(*(_QWORD *)(a1 + 8));
break;
default:
v2 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1);
break;
}
return v2;
}
| max_size:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RSP + 0x10],RAX
SUB RAX,0x9
JA 0x001b9922
MOV RAX,qword ptr [RSP + 0x10]
LEA RCX,[0x2c2b30]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_2:
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001a2f20
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001b9931
caseD_1:
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001ba560
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001b9931
caseD_0:
JMP 0x001b9922
default:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001ba580
MOV qword ptr [RSP + 0x20],RAX
LAB_001b9931:
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x28
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::max_size() const */
int8 __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>
::max_size(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this)
{
int8 local_8;
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>
)0x0:
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:
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:
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:
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:
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>
)0x9:
default:
local_8 = size(this);
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>
)0x1:
local_8 = std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::max_size(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(this + 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:
local_8 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::max_size(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 8));
}
return local_8;
}
| |
41,351 | int fmt::v10::detail::parse_nonnegative_int<char>(char const*&, char const*, int) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h | FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end,
int error_value) noexcept -> int {
FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', "");
unsigned value = 0, prev = 0;
auto p = begin;
do {
prev = value;
value = value * 10 + unsigned(*p - '0');
++p;
} while (p != end && '0' <= *p && *p <= '9');
auto num_digits = p - begin;
begin = p;
if (num_digits <= std::numeric_limits<int>::digits10)
return static_cast<int>(value);
// Check for overflow.
const unsigned max = to_unsigned((std::numeric_limits<int>::max)());
return num_digits == std::numeric_limits<int>::digits10 + 1 &&
prev * 10ull + unsigned(p[-1] - '0') <= max
? static_cast<int>(value)
: error_value;
} | O0 | c | int fmt::v10::detail::parse_nonnegative_int<char>(char const*&, char const*, int):
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rcx
xorl %eax, %eax
cmpq 0x30(%rsp), %rcx
movb %al, 0xb(%rsp)
je 0xa27c6
movq 0x38(%rsp), %rax
movq (%rax), %rax
movsbl (%rax), %edx
xorl %eax, %eax
movl $0x30, %ecx
cmpl %edx, %ecx
movb %al, 0xb(%rsp)
jg 0xa27c6
movq 0x38(%rsp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
setle %al
movb %al, 0xb(%rsp)
movb 0xb(%rsp), %al
andb $0x1, %al
movb %al, 0x2b(%rsp)
leaq 0x2b(%rsp), %rdi
leaq 0x71298(%rip), %rsi # 0x113a74
callq 0x46120
movl $0x0, 0x24(%rsp)
movl $0x0, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movl 0x24(%rsp), %eax
movl %eax, 0x20(%rsp)
imull $0xa, 0x24(%rsp), %eax
movq 0x18(%rsp), %rcx
movsbl (%rcx), %ecx
subl $0x30, %ecx
addl %ecx, %eax
movl %eax, 0x24(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rcx
xorl %eax, %eax
cmpq 0x30(%rsp), %rcx
movb %al, 0xa(%rsp)
je 0xa2865
movq 0x18(%rsp), %rax
movsbl (%rax), %edx
xorl %eax, %eax
movl $0x30, %ecx
cmpl %edx, %ecx
movb %al, 0xa(%rsp)
jg 0xa2865
movq 0x18(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
setle %al
movb %al, 0xa(%rsp)
movb 0xa(%rsp), %al
testb $0x1, %al
jne 0xa27fe
movq 0x18(%rsp), %rax
movq 0x38(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
cmpq $0x9, 0x10(%rsp)
jg 0xa28a1
movl 0x24(%rsp), %eax
movl %eax, 0x44(%rsp)
jmp 0xa28ec
movl $0x7fffffff, 0xc(%rsp) # imm = 0x7FFFFFFF
cmpq $0xa, 0x10(%rsp)
jne 0xa28dc
movl 0x20(%rsp), %eax
imulq $0xa, %rax, %rax
movq 0x18(%rsp), %rcx
movsbl -0x1(%rcx), %ecx
subl $0x30, %ecx
movl %ecx, %ecx
addq %rcx, %rax
cmpq $0x7fffffff, %rax # imm = 0x7FFFFFFF
ja 0xa28dc
movl 0x24(%rsp), %eax
movl %eax, 0x4(%rsp)
jmp 0xa28e4
movl 0x2c(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
nop
| _ZN3fmt3v106detail21parse_nonnegative_intIcEEiRPKT_S5_i:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_1C], edx
mov rax, [rsp+48h+var_10]
mov rcx, [rax]
xor eax, eax
cmp rcx, [rsp+48h+var_18]
mov [rsp+48h+var_3D], al
jz short loc_A27C6
mov rax, [rsp+48h+var_10]
mov rax, [rax]
movsx edx, byte ptr [rax]
xor eax, eax
mov ecx, 30h ; '0'
cmp ecx, edx
mov [rsp+48h+var_3D], al
jg short loc_A27C6
mov rax, [rsp+48h+var_10]
mov rax, [rax]
movsx eax, byte ptr [rax]
cmp eax, 39h ; '9'
setle al
mov [rsp+48h+var_3D], al
loc_A27C6:
mov al, [rsp+48h+var_3D]
and al, 1
mov [rsp+48h+var_1D], al
lea rdi, [rsp+48h+var_1D]
lea rsi, aSFromSSMsTotal+1Ah; ""
call _ZN3fmt3v106detail13ignore_unusedIJbA1_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [1]>(bool,char [1] const&)
mov [rsp+48h+var_24], 0
mov [rsp+48h+var_28], 0
mov rax, [rsp+48h+var_10]
mov rax, [rax]
mov [rsp+48h+var_30], rax
loc_A27FE:
mov eax, [rsp+48h+var_24]
mov [rsp+48h+var_28], eax
imul eax, [rsp+48h+var_24], 0Ah
mov rcx, [rsp+48h+var_30]
movsx ecx, byte ptr [rcx]
sub ecx, 30h ; '0'
add eax, ecx
mov [rsp+48h+var_24], eax
mov rax, [rsp+48h+var_30]
add rax, 1
mov [rsp+48h+var_30], rax
mov rcx, [rsp+48h+var_30]
xor eax, eax
cmp rcx, [rsp+48h+var_18]
mov [rsp+48h+var_3E], al
jz short loc_A2865
mov rax, [rsp+48h+var_30]
movsx edx, byte ptr [rax]
xor eax, eax
mov ecx, 30h ; '0'
cmp ecx, edx
mov [rsp+48h+var_3E], al
jg short loc_A2865
mov rax, [rsp+48h+var_30]
movsx eax, byte ptr [rax]
cmp eax, 39h ; '9'
setle al
mov [rsp+48h+var_3E], al
loc_A2865:
mov al, [rsp+48h+var_3E]
test al, 1
jnz short loc_A27FE
mov rax, [rsp+48h+var_30]
mov rcx, [rsp+48h+var_10]
mov rcx, [rcx]
sub rax, rcx
mov [rsp+48h+var_38], rax
mov rcx, [rsp+48h+var_30]
mov rax, [rsp+48h+var_10]
mov [rax], rcx
cmp [rsp+48h+var_38], 9
jg short loc_A28A1
mov eax, [rsp+48h+var_24]
mov [rsp+48h+var_4], eax
jmp short loc_A28EC
loc_A28A1:
mov [rsp+48h+var_3C], 7FFFFFFFh
cmp [rsp+48h+var_38], 0Ah
jnz short loc_A28DC
mov eax, [rsp+48h+var_28]
imul rax, 0Ah
mov rcx, [rsp+48h+var_30]
movsx ecx, byte ptr [rcx-1]
sub ecx, 30h ; '0'
mov ecx, ecx
add rax, rcx
cmp rax, 7FFFFFFFh
ja short loc_A28DC
mov eax, [rsp+48h+var_24]
mov [rsp+48h+var_44], eax
jmp short loc_A28E4
loc_A28DC:
mov eax, [rsp+48h+var_1C]
mov [rsp+48h+var_44], eax
loc_A28E4:
mov eax, [rsp+48h+var_44]
mov [rsp+48h+var_4], eax
loc_A28EC:
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
| long long fmt::v10::detail::parse_nonnegative_int<char>(char **a1, char *a2, unsigned int a3)
{
bool v5; // [rsp+Ah] [rbp-3Eh]
long long v6; // [rsp+10h] [rbp-38h]
char *v7; // [rsp+18h] [rbp-30h]
unsigned int v8; // [rsp+20h] [rbp-28h]
unsigned int v9; // [rsp+24h] [rbp-24h]
fmt::v10::detail::ignore_unused<bool,char [1]>();
v9 = 0;
v7 = *a1;
do
{
v8 = v9;
v9 = *v7++ - 48 + 10 * v9;
v5 = 0;
if ( v7 != a2 )
{
v5 = 0;
if ( *v7 >= 48 )
v5 = *v7 <= 57;
}
}
while ( v5 );
v6 = v7 - *a1;
*a1 = v7;
if ( v6 > 9 )
{
if ( v6 == 10 && (unsigned int)(*(v7 - 1) - 48) + 10 * (unsigned long long)v8 <= 0x7FFFFFFF )
return v9;
else
return a3;
}
else
{
return v9;
}
}
| parse_nonnegative_int<char>:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV dword ptr [RSP + 0x2c],EDX
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RAX]
XOR EAX,EAX
CMP RCX,qword ptr [RSP + 0x30]
MOV byte ptr [RSP + 0xb],AL
JZ 0x001a27c6
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX]
MOVSX EDX,byte ptr [RAX]
XOR EAX,EAX
MOV ECX,0x30
CMP ECX,EDX
MOV byte ptr [RSP + 0xb],AL
JG 0x001a27c6
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x39
SETLE AL
MOV byte ptr [RSP + 0xb],AL
LAB_001a27c6:
MOV AL,byte ptr [RSP + 0xb]
AND AL,0x1
MOV byte ptr [RSP + 0x2b],AL
LEA RDI,[RSP + 0x2b]
LEA RSI,[0x213a74]
CALL 0x00146120
MOV dword ptr [RSP + 0x24],0x0
MOV dword ptr [RSP + 0x20],0x0
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x18],RAX
LAB_001a27fe:
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x20],EAX
IMUL EAX,dword ptr [RSP + 0x24],0xa
MOV RCX,qword ptr [RSP + 0x18]
MOVSX ECX,byte ptr [RCX]
SUB ECX,0x30
ADD EAX,ECX
MOV dword ptr [RSP + 0x24],EAX
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x1
MOV qword ptr [RSP + 0x18],RAX
MOV RCX,qword ptr [RSP + 0x18]
XOR EAX,EAX
CMP RCX,qword ptr [RSP + 0x30]
MOV byte ptr [RSP + 0xa],AL
JZ 0x001a2865
MOV RAX,qword ptr [RSP + 0x18]
MOVSX EDX,byte ptr [RAX]
XOR EAX,EAX
MOV ECX,0x30
CMP ECX,EDX
MOV byte ptr [RSP + 0xa],AL
JG 0x001a2865
MOV RAX,qword ptr [RSP + 0x18]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x39
SETLE AL
MOV byte ptr [RSP + 0xa],AL
LAB_001a2865:
MOV AL,byte ptr [RSP + 0xa]
TEST AL,0x1
JNZ 0x001a27fe
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RCX]
SUB RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX],RCX
CMP qword ptr [RSP + 0x10],0x9
JG 0x001a28a1
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x44],EAX
JMP 0x001a28ec
LAB_001a28a1:
MOV dword ptr [RSP + 0xc],0x7fffffff
CMP qword ptr [RSP + 0x10],0xa
JNZ 0x001a28dc
MOV EAX,dword ptr [RSP + 0x20]
IMUL RAX,RAX,0xa
MOV RCX,qword ptr [RSP + 0x18]
MOVSX ECX,byte ptr [RCX + -0x1]
SUB ECX,0x30
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,0x7fffffff
JA 0x001a28dc
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x4],EAX
JMP 0x001a28e4
LAB_001a28dc:
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x4],EAX
LAB_001a28e4:
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSP + 0x44],EAX
LAB_001a28ec:
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
/* int fmt::v10::detail::parse_nonnegative_int<char>(char const*&, char const*, int) */
int fmt::v10::detail::parse_nonnegative_int<char>(char **param_1,char *param_2,int param_3)
{
char *pcVar1;
bool bVar2;
uint uVar3;
char *pcVar4;
uint local_44;
bool local_3d;
char *local_30;
uint local_24;
bool local_1d;
uint local_1c;
char *local_18;
char **local_10;
uint local_4;
local_3d = false;
if ((*param_1 != param_2) && (local_3d = false, '/' < **param_1)) {
local_3d = **param_1 < ':';
}
local_1d = local_3d;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
ignore_unused<bool,char[1]>(&local_1d,"");
local_24 = 0;
pcVar4 = *local_10;
uVar3 = local_24;
do {
local_24 = uVar3;
local_30 = pcVar4;
local_44 = local_24 * 10 + *local_30 + -0x30;
pcVar4 = local_30 + 1;
bVar2 = false;
if ((pcVar4 != local_18) && (bVar2 = false, '/' < *pcVar4)) {
bVar2 = *pcVar4 < ':';
}
uVar3 = local_44;
} while (bVar2);
pcVar1 = *local_10;
*local_10 = pcVar4;
local_4 = local_44;
if (9 < (long)pcVar4 - (long)pcVar1) {
if (((long)pcVar4 - (long)pcVar1 != 10) ||
(0x7fffffff < (ulong)local_24 * 10 + (ulong)((int)*local_30 - 0x30))) {
local_44 = local_1c;
}
local_4 = local_44;
}
return local_4;
}
| |
41,352 | my_casedn_utf8mb4 | eloqsql/strings/ctype-utf8.c | static size_t
my_casedn_utf8mb4(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->casedn_multiply == 1);
while ((src < srcend) &&
(srcres= my_mb_wc_utf8mb4(cs, &wc,
(uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_utf8mb4(uni_plane, &wc);
if ((dstres= my_wc_mb_utf8mb4(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
} | O3 | c | my_casedn_utf8mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x38(%rbp)
movq %rcx, %r13
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x52faa
movq %rdx, %r15
movq %rsi, %r12
addq %rsi, %r15
movq -0x30(%rbp), %r13
addq %r13, -0x38(%rbp)
movq 0x78(%rdi), %r14
leaq -0x40(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x55f8e
testl %eax, %eax
jle 0x52faa
movl %eax, %ebx
movq -0x40(%rbp), %rsi
cmpq (%r14), %rsi
ja 0x52f8b
movq 0x8(%r14), %rax
movq %rsi, %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x52f8b
movzbl %sil, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rax,%rcx,4), %esi
movq %rsi, -0x40(%rbp)
movq %r13, %rdx
movq -0x38(%rbp), %rcx
callq 0x52c7d
testl %eax, %eax
jle 0x52faa
movl %ebx, %ecx
addq %rcx, %r12
movl %eax, %eax
addq %rax, %r13
cmpq %r15, %r12
jb 0x52f49
subq -0x30(%rbp), %r13
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casedn_utf8mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_38], r8
mov r13, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle short loc_52FAA
mov r15, rdx
mov r12, rsi
add r15, rsi
mov r13, [rbp+var_30]
add [rbp+var_38], r13
mov r14, [rdi+78h]
loc_52F49:
lea rdi, [rbp+var_40]
mov rsi, r12
mov rdx, r15
call my_mb_wc_utf8mb4_quick_0
test eax, eax
jle short loc_52FAA
mov ebx, eax
mov rsi, [rbp+var_40]
cmp rsi, [r14]
ja short loc_52F8B
mov rax, [r14+8]
mov rcx, rsi
shr rcx, 8
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_52F8B
movzx ecx, sil
lea rcx, [rcx+rcx*2]
mov esi, [rax+rcx*4+4]
mov [rbp+var_40], rsi
loc_52F8B:
mov rdx, r13
mov rcx, [rbp+var_38]
call my_wc_mb_utf8mb4
test eax, eax
jle short loc_52FAA
mov ecx, ebx
add r12, rcx
mov eax, eax
add r13, rax
cmp r12, r15
jb short loc_52F49
loc_52FAA:
sub r13, [rbp+var_30]
mov rax, r13
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BYTE * my_casedn_utf8mb4(long long a1, unsigned long long a2, long long a3, _BYTE *a4, unsigned long long a5)
{
_BYTE *v5; // r13
unsigned long long v6; // r12
unsigned long long v7; // r15
unsigned long long *v8; // r14
int v9; // eax
unsigned int v10; // ebx
unsigned long long v11; // rsi
long long v12; // rax
int v13; // eax
unsigned long long v15; // [rsp+0h] [rbp-40h] BYREF
unsigned long long v16; // [rsp+8h] [rbp-38h]
_BYTE *v17; // [rsp+10h] [rbp-30h]
v16 = a5;
v5 = a4;
v17 = a4;
if ( a3 > 0 )
{
v6 = a2;
v7 = a2 + a3;
v5 = v17;
v16 += (unsigned long long)v17;
v8 = *(unsigned long long **)(a1 + 120);
do
{
v9 = my_mb_wc_utf8mb4_quick_0(&v15, v6, v7);
if ( v9 <= 0 )
break;
v10 = v9;
v11 = v15;
if ( v15 <= *v8 )
{
v12 = *(_QWORD *)(v8[1] + 8 * (v15 >> 8));
if ( v12 )
{
v11 = *(unsigned int *)(v12 + 12LL * (unsigned __int8)v15 + 4);
v15 = v11;
}
}
v13 = my_wc_mb_utf8mb4((long long)&v15, v11, v5, v16);
if ( v13 <= 0 )
break;
v6 += v10;
v5 += (unsigned int)v13;
}
while ( v6 < v7 );
}
return (_BYTE *)(v5 - v17);
}
| my_casedn_utf8mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x38],R8
MOV R13,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x00152faa
MOV R15,RDX
MOV R12,RSI
ADD R15,RSI
MOV R13,qword ptr [RBP + -0x30]
ADD qword ptr [RBP + -0x38],R13
MOV R14,qword ptr [RDI + 0x78]
LAB_00152f49:
LEA RDI,[RBP + -0x40]
MOV RSI,R12
MOV RDX,R15
CALL 0x00155f8e
TEST EAX,EAX
JLE 0x00152faa
MOV EBX,EAX
MOV RSI,qword ptr [RBP + -0x40]
CMP RSI,qword ptr [R14]
JA 0x00152f8b
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,RSI
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x00152f8b
MOVZX ECX,SIL
LEA RCX,[RCX + RCX*0x2]
MOV ESI,dword ptr [RAX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x40],RSI
LAB_00152f8b:
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x38]
CALL 0x00152c7d
TEST EAX,EAX
JLE 0x00152faa
MOV ECX,EBX
ADD R12,RCX
MOV EAX,EAX
ADD R13,RAX
CMP R12,R15
JC 0x00152f49
LAB_00152faa:
SUB R13,qword ptr [RBP + -0x30]
MOV RAX,R13
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casedn_utf8mb4(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
ulong *puVar1;
long lVar2;
uint uVar3;
uint uVar4;
ulong uVar5;
ulong local_48;
long local_40;
long local_38;
local_38 = param_4;
if (0 < param_3) {
uVar5 = param_3 + param_2;
local_40 = param_5 + param_4;
puVar1 = *(ulong **)(param_1 + 0x78);
do {
uVar3 = my_mb_wc_utf8mb4_quick(&local_48,param_2,uVar5);
if ((int)uVar3 < 1) break;
if ((local_48 <= *puVar1) && (lVar2 = *(long *)(puVar1[1] + (local_48 >> 8) * 8), lVar2 != 0))
{
local_48 = (ulong)*(uint *)(lVar2 + 4 + (local_48 & 0xff) * 0xc);
}
uVar4 = my_wc_mb_utf8mb4();
if ((int)uVar4 < 1) break;
param_2 = param_2 + uVar3;
param_4 = param_4 + (ulong)uVar4;
} while (param_2 < uVar5);
}
return param_4 - local_38;
}
| |
41,353 | ma_hashtbl_next | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | void *ma_hashtbl_next(MA_HASHTBL *hash,const uchar *key,uint length)
{
MA_HASHTBL_LINK *pos;
uint idx;
if (hash->current_record != NO_RECORD)
{
MA_HASHTBL_LINK *data=dynamic_element(&hash->array,0,MA_HASHTBL_LINK*);
for (idx=data[hash->current_record].next; idx != NO_RECORD ; idx=pos->next)
{
pos=data+idx;
if (!hashcmp(hash,pos,key,length))
{
hash->current_record= idx;
return pos->data;
}
}
hash->current_record=NO_RECORD;
}
return 0;
} | O3 | c | ma_hashtbl_next:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, -0x2c(%rbp)
movl 0x10(%rdi), %r13d
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, %r13
je 0x322f5
movq %rsi, %r15
movq %rdi, %rbx
movq 0x18(%rdi), %r12
shlq $0x4, %r13
addq %r12, %r13
movl (%r13), %r14d
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, %r14
je 0x322ee
movq %r14, %rax
shlq $0x4, %rax
leaq (%r12,%rax), %r13
movq 0x8(%r12,%rax), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movl -0x2c(%rbp), %ecx
callq 0x321a2
testl %eax, %eax
jne 0x322b4
movl %r14d, 0x10(%rbx)
movq 0x8(%r13), %rax
jmp 0x322f7
movl $0xffffffff, 0x10(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ma_hashtbl_next:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_2C], edx
mov r13d, [rdi+10h]
mov eax, 0FFFFFFFFh
cmp r13, rax
jz short loc_322F5
mov r15, rsi
mov rbx, rdi
mov r12, [rdi+18h]
shl r13, 4
add r13, r12
loc_322B4:
mov r14d, [r13+0]
mov eax, 0FFFFFFFFh
cmp r14, rax
jz short loc_322EE
mov rax, r14
shl rax, 4
lea r13, [r12+rax]
mov rsi, [r12+rax+8]
mov rdi, rbx
mov rdx, r15
mov ecx, [rbp+var_2C]
call hashcmp
test eax, eax
jnz short loc_322B4
mov [rbx+10h], r14d
mov rax, [r13+8]
jmp short loc_322F7
loc_322EE:
mov dword ptr [rbx+10h], 0FFFFFFFFh
loc_322F5:
xor eax, eax
loc_322F7:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_hashtbl_next(long long a1, long long a2, int a3)
{
long long v3; // r13
long long v4; // r12
unsigned int *v5; // r13
long long v6; // r14
v3 = *(unsigned int *)(a1 + 16);
if ( v3 != 0xFFFFFFFFLL )
{
v4 = *(_QWORD *)(a1 + 24);
v5 = (unsigned int *)(v4 + 16 * v3);
while ( 1 )
{
v6 = *v5;
if ( v6 == 0xFFFFFFFFLL )
break;
v5 = (unsigned int *)(v4 + 16 * v6);
if ( !hashcmp((unsigned int *)a1, *((_QWORD *)v5 + 1), a2, a3) )
{
*(_DWORD *)(a1 + 16) = v6;
return *((_QWORD *)v5 + 1);
}
}
*(_DWORD *)(a1 + 16) = -1;
}
return 0LL;
}
| ma_hashtbl_next:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV dword ptr [RBP + -0x2c],EDX
MOV R13D,dword ptr [RDI + 0x10]
MOV EAX,0xffffffff
CMP R13,RAX
JZ 0x001322f5
MOV R15,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0x18]
SHL R13,0x4
ADD R13,R12
LAB_001322b4:
MOV R14D,dword ptr [R13]
MOV EAX,0xffffffff
CMP R14,RAX
JZ 0x001322ee
MOV RAX,R14
SHL RAX,0x4
LEA R13,[R12 + RAX*0x1]
MOV RSI,qword ptr [R12 + RAX*0x1 + 0x8]
MOV RDI,RBX
MOV RDX,R15
MOV ECX,dword ptr [RBP + -0x2c]
CALL 0x001321a2
TEST EAX,EAX
JNZ 0x001322b4
MOV dword ptr [RBX + 0x10],R14D
MOV RAX,qword ptr [R13 + 0x8]
JMP 0x001322f7
LAB_001322ee:
MOV dword ptr [RBX + 0x10],0xffffffff
LAB_001322f5:
XOR EAX,EAX
LAB_001322f7:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ma_hashtbl_next(long param_1,int8 param_2,int4 param_3)
{
uint uVar1;
long lVar2;
int iVar3;
long lVar4;
int8 uVar5;
uint *puVar6;
if ((ulong)*(uint *)(param_1 + 0x10) == 0xffffffff) {
LAB_001322f5:
uVar5 = 0;
}
else {
lVar2 = *(long *)(param_1 + 0x18);
puVar6 = (uint *)((ulong)*(uint *)(param_1 + 0x10) * 0x10 + lVar2);
do {
uVar1 = *puVar6;
if ((ulong)uVar1 == 0xffffffff) {
*(int4 *)(param_1 + 0x10) = 0xffffffff;
goto LAB_001322f5;
}
lVar4 = (ulong)uVar1 * 0x10;
puVar6 = (uint *)(lVar2 + lVar4);
iVar3 = hashcmp(param_1,*(int8 *)(lVar2 + 8 + lVar4),param_2,param_3);
} while (iVar3 != 0);
*(uint *)(param_1 + 0x10) = uVar1;
uVar5 = *(int8 *)(puVar6 + 2);
}
return uVar5;
}
| |
41,354 | get_length | eloqsql/strings/my_vsnprintf.c | static const char *get_length(const char *fmt, size_t *length, uint *pre_zero)
{
for (; my_isdigit(&my_charset_latin1, *fmt); fmt++)
{
*length= *length * 10 + (uint)(*fmt - '0');
if (!*length)
*pre_zero|= PREZERO_ARG; /* first digit was 0 */
}
return fmt;
} | O0 | c | get_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x21a749(%rip), %rax # 0x365fd0
movq 0x40(%rax), %rax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x14b8e2
movq -0x10(%rbp), %rax
imulq $0xa, (%rax), %rcx
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
subl $0x30, %eax
movl %eax, %eax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x14b8d2
movq -0x18(%rbp), %rax
movl (%rax), %ecx
orl $0x4, %ecx
movl %ecx, (%rax)
jmp 0x14b8d4
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x14b880
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
| get_length:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
loc_14B880:
lea rax, my_charset_latin1
mov rax, [rax+40h]
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx+1]
and eax, 4
cmp eax, 0
jz short loc_14B8E2
mov rax, [rbp+var_10]
imul rcx, [rax], 0Ah
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
sub eax, 30h ; '0'
mov eax, eax
add rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_14B8D2
mov rax, [rbp+var_18]
mov ecx, [rax]
or ecx, 4
mov [rax], ecx
loc_14B8D2:
jmp short $+2
loc_14B8D4:
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_14B880
loc_14B8E2:
mov rax, [rbp+var_8]
pop rbp
retn
| unsigned __int8 * get_length(unsigned __int8 *a1, _QWORD *a2, _DWORD *a3)
{
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + *a1 + 1LL) & 4) != 0 )
{
*a2 = (unsigned int)((char)*a1 - 48) + 10LL * *a2;
if ( !*a2 )
*a3 |= 4u;
++a1;
}
return a1;
}
| |||
41,355 | get_length | eloqsql/strings/my_vsnprintf.c | static const char *get_length(const char *fmt, size_t *length, uint *pre_zero)
{
for (; my_isdigit(&my_charset_latin1, *fmt); fmt++)
{
*length= *length * 10 + (uint)(*fmt - '0');
if (!*length)
*pre_zero|= PREZERO_ARG; /* first digit was 0 */
}
return fmt;
} | O3 | c | get_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
leaq 0x2d56da(%rip), %rcx # 0x3abf20
movq 0x40(%rcx), %r8
movzbl (%rdi), %edi
testb $0x4, 0x1(%r8,%rdi)
je 0xd687e
movq (%rsi), %r8
leaq (%r8,%r8,4), %r8
addq %r8, %r8
movsbl %dil, %edi
addl $-0x30, %edi
addq %r8, %rdi
movq %rdi, (%rsi)
jne 0xd6871
orb $0x4, (%rdx)
movq 0x40(%rcx), %r8
movzbl 0x1(%rax), %edi
incq %rax
jmp 0xd684d
popq %rbp
retq
| get_length:
push rbp
mov rbp, rsp
mov rax, rdi
lea rcx, my_charset_latin1
mov r8, [rcx+40h]
movzx edi, byte ptr [rdi]
loc_D684D:
test byte ptr [r8+rdi+1], 4
jz short loc_D687E
mov r8, [rsi]
lea r8, [r8+r8*4]
add r8, r8
movsx edi, dil
add edi, 0FFFFFFD0h
add rdi, r8
mov [rsi], rdi
jnz short loc_D6871
or byte ptr [rdx], 4
loc_D6871:
mov r8, [rcx+40h]
movzx edi, byte ptr [rax+1]
inc rax
jmp short loc_D684D
loc_D687E:
pop rbp
retn
| unsigned __int8 * get_length(unsigned __int8 *a1, _QWORD *a2, _BYTE *a3)
{
unsigned __int8 *result; // rax
long long v4; // r8
long long i; // rdi
long long v6; // r8
long long v7; // rdi
result = a1;
v4 = *(_QWORD *)&my_charset_latin1[16];
for ( i = *a1; (*(_BYTE *)(v4 + i + 1) & 4) != 0; i = *++result )
{
v6 = 10LL * *a2;
v7 = (unsigned int)((char)i - 48);
*a2 = v6 + v7;
if ( !(v6 + v7) )
*a3 |= 4u;
v4 = *(_QWORD *)&my_charset_latin1[16];
}
return result;
}
| get_length:
PUSH RBP
MOV RBP,RSP
MOV RAX,RDI
LEA RCX,[0x4abf20]
MOV R8,qword ptr [RCX + 0x40]
MOVZX EDI,byte ptr [RDI]
LAB_001d684d:
TEST byte ptr [R8 + RDI*0x1 + 0x1],0x4
JZ 0x001d687e
MOV R8,qword ptr [RSI]
LEA R8,[R8 + R8*0x4]
ADD R8,R8
MOVSX EDI,DIL
ADD EDI,-0x30
ADD RDI,R8
MOV qword ptr [RSI],RDI
JNZ 0x001d6871
OR byte ptr [RDX],0x4
LAB_001d6871:
MOV R8,qword ptr [RCX + 0x40]
MOVZX EDI,byte ptr [RAX + 0x1]
INC RAX
JMP 0x001d684d
LAB_001d687e:
POP RBP
RET
|
void get_length(byte *param_1,long *param_2,byte *param_3)
{
byte bVar1;
long lVar2;
bVar1 = *param_1;
while ((PTR_ctype_latin1_004abf60[(ulong)bVar1 + 1] & 4) != 0) {
lVar2 = (ulong)((int)(char)bVar1 - 0x30) + *param_2 * 10;
*param_2 = lVar2;
if (lVar2 == 0) {
*param_3 = *param_3 | 4;
}
bVar1 = param_1[1];
param_1 = param_1 + 1;
}
return;
}
| |
41,356 | mi_ft_add | eloqsql/storage/myisam/ft_update.c | int _mi_ft_add(MI_INFO *info, uint keynr, uchar *keybuf, const uchar *record,
my_off_t pos)
{
int error= -1;
FT_WORD *wlist;
DBUG_ENTER("_mi_ft_add");
DBUG_PRINT("enter",("keynr: %d",keynr));
if ((wlist=_mi_ft_parserecord(info, keynr, record, &info->ft_memroot)))
error=_mi_ft_store(info,keynr,keybuf,wlist,pos);
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_PRINT("exit",("Return: %d",error));
DBUG_RETURN(error);
} | O0 | c | mi_ft_add:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
jmp 0xaae24
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x90, %rcx
callq 0xaa750
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xaae64
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0xaad70
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x90, %rdi
movl $0x2, %esi
callq 0xf5540
jmp 0xaae7b
jmp 0xaae7d
movl -0x2c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _mi_ft_add:
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_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], 0FFFFFFFFh
jmp short $+2
loc_AAE24:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 90h
call _mi_ft_parserecord
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_AAE64
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_38]
mov r8, [rbp+var_28]
call _mi_ft_store
mov [rbp+var_2C], eax
loc_AAE64:
mov rdi, [rbp+var_8]
add rdi, 90h
mov esi, 2
call free_root
jmp short $+2
loc_AAE7B:
jmp short $+2
loc_AAE7D:
mov eax, [rbp+var_2C]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
| long long mi_ft_add(_QWORD *a1, unsigned int a2, long long a3, long long a4, long long a5)
{
_QWORD *v6; // [rsp+8h] [rbp-38h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = -1;
v6 = (_QWORD *)mi_ft_parserecord(a1, a2, a4, (long long)(a1 + 18));
if ( v6 )
v7 = mi_ft_store((long long)a1, a2, a3, v6, a5);
free_root(a1 + 18, 2LL);
return v7;
}
| _mi_ft_add:
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 qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],0xffffffff
JMP 0x001aae24
LAB_001aae24:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x90
CALL 0x001aa750
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001aae64
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x001aad70
MOV dword ptr [RBP + -0x2c],EAX
LAB_001aae64:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x90
MOV ESI,0x2
CALL 0x001f5540
JMP 0x001aae7b
LAB_001aae7b:
JMP 0x001aae7d
LAB_001aae7d:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int4
_mi_ft_add(long param_1,int4 param_2,int8 param_3,int8 param_4,int8 param_5)
{
long lVar1;
int4 local_34;
local_34 = 0xffffffff;
lVar1 = _mi_ft_parserecord(param_1,param_2,param_4,param_1 + 0x90);
if (lVar1 != 0) {
local_34 = _mi_ft_store(param_1,param_2,param_3,lVar1,param_5);
}
free_root(param_1 + 0x90,2);
return local_34;
}
| |
41,357 | LefDefParser::lefiTrackPattern::addLayer(char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMisc.cpp | void
lefiTrackPattern::addLayer(const char *name)
{
int len;
if (numLayers_ == layerAllocated_) {
int i;
char **nn;
if (layerAllocated_ == 0)
layerAllocated_ = 2;
else
layerAllocated_ *= 2;
nn = (char**) lefMalloc(sizeof(char*) * layerAllocated_);
for (i = 0; i < numLayers_; i++)
nn[i] = layerNames_[i];
lefFree((char*) (layerNames_));
layerNames_ = nn;
}
len = strlen(name) + 1;
layerNames_[numLayers_] = (char*) lefMalloc(len);
strcpy(layerNames_[numLayers_], CASE(name));
numLayers_ += 1;
} | O0 | cpp | LefDefParser::lefiTrackPattern::addLayer(char const*):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movl 0x28(%rcx), %eax
cmpl 0x2c(%rcx), %eax
jne 0x13230
movq 0x10(%rsp), %rax
cmpl $0x0, 0x2c(%rax)
jne 0x131ad
movq 0x10(%rsp), %rax
movl $0x2, 0x2c(%rax)
jmp 0x131ba
movq 0x10(%rsp), %rax
movl 0x2c(%rax), %ecx
shll %ecx
movl %ecx, 0x2c(%rax)
movq 0x10(%rsp), %rax
movslq 0x2c(%rax), %rdi
shlq $0x3, %rdi
callq 0x4f550
movq %rax, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rcx
movl 0x20(%rsp), %eax
cmpl 0x28(%rcx), %eax
jge 0x13214
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rax
movslq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rsp), %rax
movslq 0x20(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x131d9
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x52810
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x30(%rax)
movq 0x28(%rsp), %rdi
callq 0x20e0
addq $0x1, %rax
movl %eax, 0x24(%rsp)
movslq 0x24(%rsp), %rdi
callq 0x4f550
movq 0x10(%rsp), %rcx
movq %rax, %rsi
movq 0x30(%rcx), %rax
movslq 0x28(%rcx), %rdx
movq %rsi, (%rax,%rdx,8)
movq 0x30(%rcx), %rax
movslq 0x28(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
callq 0x59300
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x2270
movq 0x10(%rsp), %rax
movl 0x28(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x28(%rax)
addq $0x38, %rsp
retq
nopl (%rax,%rax)
| _ZN12LefDefParser16lefiTrackPattern8addLayerEPKc:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rcx, [rsp+38h+var_8]
mov [rsp+38h+var_28], rcx
mov eax, [rcx+28h]
cmp eax, [rcx+2Ch]
jnz loc_13230
mov rax, [rsp+38h+var_28]
cmp dword ptr [rax+2Ch], 0
jnz short loc_131AD
mov rax, [rsp+38h+var_28]
mov dword ptr [rax+2Ch], 2
jmp short loc_131BA
loc_131AD:
mov rax, [rsp+38h+var_28]
mov ecx, [rax+2Ch]
shl ecx, 1
mov [rax+2Ch], ecx
loc_131BA:
mov rax, [rsp+38h+var_28]
movsxd rdi, dword ptr [rax+2Ch]
shl rdi, 3; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov [rsp+38h+var_20], rax
mov [rsp+38h+var_18], 0
loc_131D9:
mov rcx, [rsp+38h+var_28]
mov eax, [rsp+38h+var_18]
cmp eax, [rcx+28h]
jge short loc_13214
mov rax, [rsp+38h+var_28]
mov rax, [rax+30h]
movsxd rcx, [rsp+38h+var_18]
mov rdx, [rax+rcx*8]
mov rax, [rsp+38h+var_20]
movsxd rcx, [rsp+38h+var_18]
mov [rax+rcx*8], rdx
mov eax, [rsp+38h+var_18]
add eax, 1
mov [rsp+38h+var_18], eax
jmp short loc_131D9
loc_13214:
mov rax, [rsp+38h+var_28]
mov rdi, [rax+30h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
mov [rax+30h], rcx
loc_13230:
mov rdi, [rsp+38h+var_10]
call _strlen
add rax, 1
mov [rsp+38h+var_14], eax
movsxd rdi, [rsp+38h+var_14]; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, [rsp+38h+var_28]
mov rsi, rax; char *
mov rax, [rcx+30h]
movsxd rdx, dword ptr [rcx+28h]
mov [rax+rdx*8], rsi
mov rax, [rcx+30h]
movsxd rcx, dword ptr [rcx+28h]
mov rax, [rax+rcx*8]
mov [rsp+38h+var_30], rax
mov rdi, [rsp+38h+var_10]; this
call _ZN12LefDefParser4CASEEPKc; LefDefParser::CASE(char const*)
mov rdi, [rsp+38h+var_30]
mov rsi, rax
call _strcpy
mov rax, [rsp+38h+var_28]
mov ecx, [rax+28h]
add ecx, 1
mov [rax+28h], ecx
add rsp, 38h
retn
| LefDefParser::lefiTrackPattern * LefDefParser::lefiTrackPattern::addLayer(
LefDefParser::lefiTrackPattern *this,
char *a2)
{
const char *v2; // rax
long long v3; // rax
LefDefParser::lefiTrackPattern *result; // rax
long long v5; // [rsp+8h] [rbp-30h]
long long v6; // [rsp+18h] [rbp-20h]
int i; // [rsp+20h] [rbp-18h]
int v8; // [rsp+24h] [rbp-14h]
if ( *((_DWORD *)this + 10) == *((_DWORD *)this + 11) )
{
if ( *((_DWORD *)this + 11) )
*((_DWORD *)this + 11) *= 2;
else
*((_DWORD *)this + 11) = 2;
v6 = LefDefParser::lefMalloc((LefDefParser *)(8LL * *((int *)this + 11)), (unsigned long long)a2);
for ( i = 0; i < *((_DWORD *)this + 10); ++i )
*(_QWORD *)(v6 + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 6) + 8LL * i);
LefDefParser::lefFree(*((LefDefParser **)this + 6), a2);
*((_QWORD *)this + 6) = v6;
}
v8 = strlen(a2) + 1;
v2 = (const char *)LefDefParser::lefMalloc((LefDefParser *)v8, (unsigned long long)a2);
*(_QWORD *)(*((_QWORD *)this + 6) + 8LL * *((int *)this + 10)) = v2;
v5 = *(_QWORD *)(*((_QWORD *)this + 6) + 8LL * *((int *)this + 10));
v3 = LefDefParser::CASE((LefDefParser *)a2, v2);
strcpy(v5, v3);
result = this;
++*((_DWORD *)this + 10);
return result;
}
| addLayer:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RCX
MOV EAX,dword ptr [RCX + 0x28]
CMP EAX,dword ptr [RCX + 0x2c]
JNZ 0x00113230
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x2c],0x0
JNZ 0x001131ad
MOV RAX,qword ptr [RSP + 0x10]
MOV dword ptr [RAX + 0x2c],0x2
JMP 0x001131ba
LAB_001131ad:
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x2c]
SHL ECX,0x1
MOV dword ptr [RAX + 0x2c],ECX
LAB_001131ba:
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RDI,dword ptr [RAX + 0x2c]
SHL RDI,0x3
CALL 0x0014f550
MOV qword ptr [RSP + 0x18],RAX
MOV dword ptr [RSP + 0x20],0x0
LAB_001131d9:
MOV RCX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RSP + 0x20]
CMP EAX,dword ptr [RCX + 0x28]
JGE 0x00113214
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x30]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
JMP 0x001131d9
LAB_00113214:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x00152810
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x30],RCX
LAB_00113230:
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001020e0
ADD RAX,0x1
MOV dword ptr [RSP + 0x24],EAX
MOVSXD RDI,dword ptr [RSP + 0x24]
CALL 0x0014f550
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,RAX
MOV RAX,qword ptr [RCX + 0x30]
MOVSXD RDX,dword ptr [RCX + 0x28]
MOV qword ptr [RAX + RDX*0x8],RSI
MOV RAX,qword ptr [RCX + 0x30]
MOVSXD RCX,dword ptr [RCX + 0x28]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00159300
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RAX
CALL 0x00102270
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x28]
ADD ECX,0x1
MOV dword ptr [RAX + 0x28],ECX
ADD RSP,0x38
RET
|
/* LefDefParser::lefiTrackPattern::addLayer(char const*) */
void __thiscall LefDefParser::lefiTrackPattern::addLayer(lefiTrackPattern *this,char *param_1)
{
char *__dest;
long lVar1;
size_t sVar2;
int8 uVar3;
char *__src;
int local_18;
if (*(int *)(this + 0x28) == *(int *)(this + 0x2c)) {
if (*(int *)(this + 0x2c) == 0) {
*(int4 *)(this + 0x2c) = 2;
}
else {
*(int *)(this + 0x2c) = *(int *)(this + 0x2c) << 1;
}
lVar1 = lefMalloc((long)*(int *)(this + 0x2c) << 3);
for (local_18 = 0; local_18 < *(int *)(this + 0x28); local_18 = local_18 + 1) {
*(int8 *)(lVar1 + (long)local_18 * 8) =
*(int8 *)(*(long *)(this + 0x30) + (long)local_18 * 8);
}
lefFree(*(void **)(this + 0x30));
*(long *)(this + 0x30) = lVar1;
}
sVar2 = strlen(param_1);
uVar3 = lefMalloc((long)((int)sVar2 + 1));
*(int8 *)(*(long *)(this + 0x30) + (long)*(int *)(this + 0x28) * 8) = uVar3;
__dest = *(char **)(*(long *)(this + 0x30) + (long)*(int *)(this + 0x28) * 8);
__src = (char *)CASE(param_1);
strcpy(__dest,__src);
*(int *)(this + 0x28) = *(int *)(this + 0x28) + 1;
return;
}
| |
41,358 | hash_tree_root | corpus-core[P]colibri-stateless/src/util/ssz_merkle.c | static void hash_tree_root(ssz_ob_t ob, uint8_t* out, merkle_ctx_t* parent) {
memset(out, 0, 32);
if (!ob.def) return;
merkle_ctx_t ctx = {0};
ctx.root_gindex = 1;
calc_leafes(&ctx, ob);
if (parent) {
ctx.proof = parent->proof;
ctx.root_gindex = ob.def->type == SSZ_TYPE_LIST ? parent->last_gindex * 2 : parent->last_gindex;
}
if (ctx.num_leafes == 1)
set_leaf(ob, 0, out, NULL);
else
merkle_hash(&ctx, 0, 0, out);
// mix_in_length s
if (ob.def->type == SSZ_TYPE_LIST || ob.def->type == SSZ_TYPE_BIT_LIST) {
uint8_t length[32] = {0};
uint64_to_le(length, (uint64_t) ssz_len(ob));
sha256_merkle(bytes(out, 32), bytes(length, 32), out);
if (ctx.proof) {
int pos = gindex_indexOf(ctx.proof->witnesses, ctx.root_gindex + 1);
if (pos >= 0 && ctx.proof->proof->data.data)
memcpy(ctx.proof->proof->data.data + pos * 32, length, 32);
}
}
} | O3 | c | hash_tree_root:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq 0xd0(%rsp), %r13
testq %r13, %r13
je 0x53673
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc0(%rsp), %rcx
movups %xmm0, 0x40(%rsp)
movups %xmm0, 0x50(%rsp)
movq $0x1, 0x48(%rsp)
movq 0x10(%rcx), %rax
leaq 0x60(%rsp), %rdi
movq %rax, 0x10(%rdi)
movups (%rcx), %xmm0
movaps %xmm0, (%rdi)
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x54143
cmpl $0x2, %eax
jb 0x5351b
bsrl %eax, %ecx
movl %ecx, %ebp
xorl $-0x20, %ebp
leal -0x1(%rax), %edx
addl $0x21, %ebp
testl %edx, %eax
cmovel %ecx, %ebp
movl %ebp, 0x38(%rsp)
leaq 0x60(%rsp), %r15
movl $0x1, %r12d
movq %r15, %rdi
movl $0x1, %esi
callq 0x54143
movl %ebp, %ecx
shll %cl, %r12d
movl %eax, 0x3c(%rsp)
movl %r12d, 0x40(%rsp)
movaps (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
testq %r14, %r14
je 0x53579
movq 0x38(%r14), %rax
movq %rax, 0x58(%rsp)
cmpl $0x4, 0x8(%r13)
sete %cl
movq 0x30(%r14), %rax
shlq %cl, %rax
movq %rax, 0x48(%rsp)
testl %ebp, %ebp
leaq 0xc0(%rsp), %r15
je 0x53598
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x53e4f
jmp 0x535b5
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
xorl %edi, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x53c6a
movq 0x10(%r15), %rax
movl 0x8(%rax), %eax
orl $0x2, %eax
cmpl $0x6, %eax
jne 0x53673
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x5276c
movl %eax, %esi
movq %r14, %rdi
callq 0x50f6a
movl $0x20, %edi
movq %rbx, %rsi
movl $0x20, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x54d58
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x53673
movq (%rax), %rcx
movl (%rcx), %edx
cmpq $0x8, %rdx
jb 0x53673
movq 0x48(%rsp), %rsi
incq %rsi
movq 0x8(%rcx), %rdi
shlq $0x2, %rdx
andq $-0x20, %rdx
xorl %ecx, %ecx
cmpq %rsi, (%rdi)
je 0x53650
addq $0x20, %rcx
addq $0x8, %rdi
cmpq %rcx, %rdx
jne 0x5363c
jmp 0x53673
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x53673
andl $-0x20, %ecx
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movups %xmm1, 0x10(%rax,%rcx)
movups %xmm0, (%rax,%rcx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| hash_tree_root:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov r13, [rsp+0B8h+arg_10]
test r13, r13
jz loc_53673
mov r14, rsi
mov rbx, rdi
lea rcx, [rsp+0B8h+arg_0]
movups [rsp+0B8h+var_78], xmm0
movups [rsp+0B8h+var_68], xmm0
mov qword ptr [rsp+0B8h+var_78+8], 1
mov rax, [rcx+10h]
lea rdi, [rsp+0B8h+var_58]
mov [rdi+10h], rax
movups xmm0, xmmword ptr [rcx]
movaps xmmword ptr [rdi], xmm0
xor ebp, ebp
xor esi, esi
call calc_num_leafes
cmp eax, 2
jb short loc_5351B
bsr ecx, eax
mov ebp, ecx
xor ebp, 0FFFFFFE0h
lea edx, [rax-1]
add ebp, 21h ; '!'
test eax, edx
cmovz ebp, ecx
loc_5351B:
mov [rsp+0B8h+var_80], ebp
lea r15, [rsp+0B8h+var_58]
mov r12d, 1
mov rdi, r15
mov esi, 1
call calc_num_leafes
mov ecx, ebp
shl r12d, cl
mov [rsp+0B8h+var_7C], eax
mov dword ptr [rsp+0B8h+var_78], r12d
movaps xmm0, xmmword ptr [r15]
movaps [rsp+0B8h+var_98], xmm0
mov rax, [r15+10h]
mov [rsp+0B8h+var_88], rax
test r14, r14
jz short loc_53579
mov rax, [r14+38h]
mov qword ptr [rsp+0B8h+var_68+8], rax
cmp dword ptr [r13+8], 4
setz cl
mov rax, [r14+30h]
shl rax, cl
mov qword ptr [rsp+0B8h+var_78+8], rax
loc_53579:
test ebp, ebp
lea r15, [rsp+0B8h+arg_0]
jz short loc_53598
lea rdi, [rsp+0B8h+var_98]
xor esi, esi
xor edx, edx
mov rcx, rbx
call merkle_hash
jmp short loc_535B5
loc_53598:
mov rax, [r15+10h]
mov [rsp+0B8h+var_A8], rax
movups xmm0, xmmword ptr [r15]
movups [rsp+0B8h+var_B8], xmm0
xor edi, edi
mov rsi, rbx
xor edx, edx
call set_leaf
loc_535B5:
mov rax, [r15+10h]
mov eax, [rax+8]
or eax, 2
cmp eax, 6
jnz loc_53673
xorps xmm0, xmm0
lea r14, [rsp+0B8h+var_58]
movaps xmmword ptr [r14+10h], xmm0
movaps xmmword ptr [r14], xmm0
mov rax, [r15+10h]
mov [rsp+0B8h+var_A8], rax
movups xmm0, xmmword ptr [r15]
movups [rsp+0B8h+var_B8], xmm0
call ssz_len
mov esi, eax
mov rdi, r14
call uint64_to_le
mov edi, 20h ; ' '
mov rsi, rbx
mov edx, 20h ; ' '
mov rcx, r14
mov r8, rbx
call sha256_merkle
mov rax, qword ptr [rsp+0B8h+var_68+8]
test rax, rax
jz short loc_53673
mov rcx, [rax]
mov edx, [rcx]
cmp rdx, 8
jb short loc_53673
mov rsi, qword ptr [rsp+0B8h+var_78+8]
inc rsi
mov rdi, [rcx+8]
shl rdx, 2
and rdx, 0FFFFFFFFFFFFFFE0h
xor ecx, ecx
loc_5363C:
cmp [rdi], rsi
jz short loc_53650
add rcx, 20h ; ' '
add rdi, 8
cmp rdx, rcx
jnz short loc_5363C
jmp short loc_53673
loc_53650:
mov rax, [rax+8]
mov rax, [rax+8]
test rax, rax
jz short loc_53673
and ecx, 0FFFFFFE0h
movaps xmm0, [rsp+0B8h+var_58]
movaps xmm1, [rsp+0B8h+var_48]
movups xmmword ptr [rax+rcx+10h], xmm1
movups xmmword ptr [rax+rcx], xmm0
loc_53673:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| void hash_tree_root(
_OWORD *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__int128 a7,
long long a8)
{
unsigned int v9; // ebp
unsigned int v10; // eax
unsigned int v11; // ecx
int v12; // eax
int v13; // r8d
int v14; // r9d
unsigned int v15; // ecx
__int128 *v16; // rdi
long long v17; // rsi
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
unsigned int v22; // eax
unsigned long long v23; // rdx
_QWORD *v24; // rdi
unsigned long long v25; // rdx
long long v26; // rcx
long long v27; // rax
unsigned int v28; // ecx
__int128 v29; // xmm0
__int128 v30; // [rsp+20h] [rbp-98h] BYREF
long long v31; // [rsp+30h] [rbp-88h]
unsigned int v32; // [rsp+38h] [rbp-80h]
int v33; // [rsp+3Ch] [rbp-7Ch]
long long v34; // [rsp+40h] [rbp-78h]
long long v35; // [rsp+48h] [rbp-70h]
__int128 v36; // [rsp+50h] [rbp-68h]
__int128 v37; // [rsp+60h] [rbp-58h] BYREF
__int128 v38; // [rsp+70h] [rbp-48h]
a1[1] = 0LL;
*a1 = 0LL;
if ( a8 )
{
v34 = 0LL;
v36 = 0LL;
v35 = 1LL;
*(_QWORD *)&v38 = a8;
v37 = a7;
v9 = 0;
v10 = calc_num_leafes(&v37, 0LL);
if ( v10 >= 2 )
{
_BitScanReverse(&v11, v10);
v9 = (v11 ^ 0xFFFFFFE0) + 33;
if ( ((v10 - 1) & v10) == 0 )
v9 = v11;
}
v32 = v9;
v12 = calc_num_leafes(&v37, 1LL);
v15 = v9;
v33 = v12;
LODWORD(v34) = 1 << v9;
v30 = v37;
v31 = v38;
if ( a2 )
{
*((_QWORD *)&v36 + 1) = *(_QWORD *)(a2 + 56);
LOBYTE(v15) = *(_DWORD *)(a8 + 8) == 4;
v35 = *(_QWORD *)(a2 + 48) << v15;
}
if ( v9 )
{
v16 = &v30;
v17 = 0LL;
merkle_hash(&v30, 0LL, 0LL, a1);
}
else
{
v16 = 0LL;
v17 = (long long)a1;
set_leaf(0, (_DWORD)a1, 0, v15, v13, v14, a7, DWORD2(a7), a8);
}
if ( (*(_DWORD *)(a8 + 8) | 2) == 6 )
{
v38 = 0LL;
v37 = 0LL;
v22 = ssz_len((long long)v16, v17, v18, v19, v20, v21, a7, *((unsigned int **)&a7 + 1), a8);
uint64_to_le(&v37, v22);
sha256_merkle(32LL, a1, 32LL, &v37, a1);
if ( *((_QWORD *)&v36 + 1) )
{
v23 = ***((unsigned int ***)&v36 + 1);
if ( v23 >= 8 )
{
v24 = *(_QWORD **)(**((_QWORD **)&v36 + 1) + 8LL);
v25 = (4 * v23) & 0xFFFFFFFFFFFFFFE0LL;
v26 = 0LL;
while ( *v24 != v35 + 1 )
{
v26 += 32LL;
++v24;
if ( v25 == v26 )
return;
}
v27 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)&v36 + 1) + 8LL) + 8LL);
if ( v27 )
{
v28 = v26 & 0xFFFFFFE0;
v29 = v37;
*(_OWORD *)(v27 + v28 + 16) = v38;
*(_OWORD *)(v27 + v28) = v29;
}
}
}
}
}
}
| hash_tree_root:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV R13,qword ptr [RSP + 0xd0]
TEST R13,R13
JZ 0x00153673
MOV R14,RSI
MOV RBX,RDI
LEA RCX,[RSP + 0xc0]
MOVUPS xmmword ptr [RSP + 0x40],XMM0
MOVUPS xmmword ptr [RSP + 0x50],XMM0
MOV qword ptr [RSP + 0x48],0x1
MOV RAX,qword ptr [RCX + 0x10]
LEA RDI,[RSP + 0x60]
MOV qword ptr [RDI + 0x10],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOVAPS xmmword ptr [RDI],XMM0
XOR EBP,EBP
XOR ESI,ESI
CALL 0x00154143
CMP EAX,0x2
JC 0x0015351b
BSR ECX,EAX
MOV EBP,ECX
XOR EBP,0xffffffe0
LEA EDX,[RAX + -0x1]
ADD EBP,0x21
TEST EAX,EDX
CMOVZ EBP,ECX
LAB_0015351b:
MOV dword ptr [RSP + 0x38],EBP
LEA R15,[RSP + 0x60]
MOV R12D,0x1
MOV RDI,R15
MOV ESI,0x1
CALL 0x00154143
MOV ECX,EBP
SHL R12D,CL
MOV dword ptr [RSP + 0x3c],EAX
MOV dword ptr [RSP + 0x40],R12D
MOVAPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x30],RAX
TEST R14,R14
JZ 0x00153579
MOV RAX,qword ptr [R14 + 0x38]
MOV qword ptr [RSP + 0x58],RAX
CMP dword ptr [R13 + 0x8],0x4
SETZ CL
MOV RAX,qword ptr [R14 + 0x30]
SHL RAX,CL
MOV qword ptr [RSP + 0x48],RAX
LAB_00153579:
TEST EBP,EBP
LEA R15,[RSP + 0xc0]
JZ 0x00153598
LEA RDI,[RSP + 0x20]
XOR ESI,ESI
XOR EDX,EDX
MOV RCX,RBX
CALL 0x00153e4f
JMP 0x001535b5
LAB_00153598:
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RSP],XMM0
XOR EDI,EDI
MOV RSI,RBX
XOR EDX,EDX
CALL 0x00153c6a
LAB_001535b5:
MOV RAX,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [RAX + 0x8]
OR EAX,0x2
CMP EAX,0x6
JNZ 0x00153673
XORPS XMM0,XMM0
LEA R14,[RSP + 0x60]
MOVAPS xmmword ptr [R14 + 0x10],XMM0
MOVAPS xmmword ptr [R14],XMM0
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RSP],XMM0
CALL 0x0015276c
MOV ESI,EAX
MOV RDI,R14
CALL 0x00150f6a
MOV EDI,0x20
MOV RSI,RBX
MOV EDX,0x20
MOV RCX,R14
MOV R8,RBX
CALL 0x00154d58
MOV RAX,qword ptr [RSP + 0x58]
TEST RAX,RAX
JZ 0x00153673
MOV RCX,qword ptr [RAX]
MOV EDX,dword ptr [RCX]
CMP RDX,0x8
JC 0x00153673
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
MOV RDI,qword ptr [RCX + 0x8]
SHL RDX,0x2
AND RDX,-0x20
XOR ECX,ECX
LAB_0015363c:
CMP qword ptr [RDI],RSI
JZ 0x00153650
ADD RCX,0x20
ADD RDI,0x8
CMP RDX,RCX
JNZ 0x0015363c
JMP 0x00153673
LAB_00153650:
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JZ 0x00153673
AND ECX,0xffffffe0
MOVAPS XMM0,xmmword ptr [RSP + 0x60]
MOVAPS XMM1,xmmword ptr [RSP + 0x70]
MOVUPS xmmword ptr [RAX + RCX*0x1 + 0x10],XMM1
MOVUPS xmmword ptr [RAX + RCX*0x1],XMM0
LAB_00153673:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void hash_tree_root(int8 *param_1,long param_2)
{
int8 *puVar1;
long lVar2;
uint uVar3;
uint uVar4;
int4 uVar5;
ulong uVar6;
ulong uVar7;
uint uVar8;
long *plVar9;
int8 in_R9;
int4 uStack0000000000000008;
int4 uStack000000000000000c;
int4 uStack0000000000000010;
int4 uStack0000000000000014;
long in_stack_00000018;
int4 uStack_98;
int4 uStack_94;
int4 uStack_90;
int4 uStack_8c;
long lStack_88;
uint uStack_80;
int4 uStack_7c;
int8 local_78;
long lStack_70;
int8 local_68;
int8 *puStack_60;
int8 local_58;
int8 uStack_50;
long local_48;
int8 uStack_40;
param_1[2] = 0;
param_1[3] = 0;
*param_1 = 0;
param_1[1] = 0;
if (in_stack_00000018 != 0) {
local_78 = 0;
local_68 = 0;
puStack_60 = (int8 *)0x0;
lStack_70 = 1;
local_48 = in_stack_00000018;
local_58._0_4_ = uStack0000000000000008;
local_58._4_4_ = uStack000000000000000c;
uStack_50._0_4_ = uStack0000000000000010;
uStack_50._4_4_ = uStack0000000000000014;
uVar4 = calc_num_leafes(&local_58,0);
uVar8 = 0;
if (1 < uVar4) {
uVar3 = 0x1f;
if (uVar4 != 0) {
for (; uVar4 >> uVar3 == 0; uVar3 = uVar3 - 1) {
}
}
uVar8 = (uVar3 ^ 0xffffffe0) + 0x21;
if ((uVar4 & uVar4 - 1) == 0) {
uVar8 = uVar3;
}
}
uStack_80 = uVar8;
uStack_7c = calc_num_leafes(&local_58,1);
local_78 = CONCAT44(local_78._4_4_,1 << ((byte)uVar8 & 0x1f));
uStack_98 = (int4)local_58;
uStack_94 = local_58._4_4_;
uStack_90 = (int4)uStack_50;
uStack_8c = uStack_50._4_4_;
lStack_88 = local_48;
if (param_2 != 0) {
puStack_60 = *(int8 **)(param_2 + 0x38);
lStack_70 = *(long *)(param_2 + 0x30) << (*(int *)(in_stack_00000018 + 8) == 4);
}
if (uVar8 == 0) {
set_leaf(0,param_1,0);
}
else {
merkle_hash(&uStack_98,0,0,param_1);
}
if ((*(uint *)(in_stack_00000018 + 8) | 2) == 6) {
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
uVar5 = ssz_len();
uint64_to_le(&local_58,uVar5);
sha256_merkle(0x20,param_1,0x20,&local_58,param_1,in_R9,uStack0000000000000008,
uStack0000000000000010,in_stack_00000018);
if (puStack_60 != (int8 *)0x0) {
uVar7 = (ulong)*(uint *)*puStack_60;
if (7 < uVar7) {
plVar9 = *(long **)((uint *)*puStack_60 + 2);
uVar6 = 0;
do {
if (*plVar9 == lStack_70 + 1) {
lVar2 = *(long *)(puStack_60[1] + 8);
if (lVar2 == 0) {
return;
}
puVar1 = (int8 *)(lVar2 + 0x10 + (uVar6 & 0xffffffff));
*puVar1 = local_48;
puVar1[1] = uStack_40;
puVar1 = (int8 *)(lVar2 + (uVar6 & 0xffffffff));
*puVar1 = local_58;
puVar1[1] = uStack_50;
return;
}
uVar6 = uVar6 + 0x20;
plVar9 = plVar9 + 1;
} while ((uVar7 & 0x3ffffffffffffff8) * 4 != uVar6);
}
}
}
}
return;
}
| |
41,359 | pagecache_delete_pages | eloqsql/storage/maria/ma_pagecache.c | my_bool pagecache_delete_pages(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
pgcache_page_no_t pageno,
uint page_count,
enum pagecache_page_lock lock,
my_bool flush)
{
pgcache_page_no_t page_end;
DBUG_ENTER("pagecache_delete_pages");
DBUG_ASSERT(page_count > 0);
page_end= pageno + page_count;
do
{
if (pagecache_delete(pagecache, file, pageno,
lock, flush))
DBUG_RETURN(1);
} while (++pageno != page_end);
DBUG_RETURN(0);
} | O3 | c | pagecache_delete_pages:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, -0x2c(%rbp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl %ecx, %ebx
movsbl %r9b, %r13d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl -0x2c(%rbp), %ecx
movl %r13d, %r8d
callq 0x3328b
testb %al, %al
jne 0x335dd
incq %r14
decq %rbx
jne 0x335b9
xorl %eax, %eax
jmp 0x335df
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| pagecache_delete_pages:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_2C], r8d
mov r14, rdx
mov r15, rsi
mov r12, rdi
mov ebx, ecx
movsx r13d, r9b
loc_335B9:
mov rdi, r12
mov rsi, r15
mov rdx, r14
mov ecx, [rbp+var_2C]
mov r8d, r13d
call pagecache_delete
test al, al
jnz short loc_335DD
inc r14
dec rbx
jnz short loc_335B9
xor eax, eax
jmp short loc_335DF
loc_335DD:
mov al, 1
loc_335DF:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char pagecache_delete_pages(long long a1, long long a2, long long a3, unsigned int a4, unsigned int a5, char a6)
{
long long v7; // rbx
v7 = a4;
while ( !(unsigned __int8)pagecache_delete(a1, a2, a3, a5, a6) )
{
++a3;
if ( !--v7 )
return 0;
}
return 1;
}
| pagecache_delete_pages:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV dword ptr [RBP + -0x2c],R8D
MOV R14,RDX
MOV R15,RSI
MOV R12,RDI
MOV EBX,ECX
MOVSX R13D,R9B
LAB_001335b9:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
MOV ECX,dword ptr [RBP + -0x2c]
MOV R8D,R13D
CALL 0x0013328b
TEST AL,AL
JNZ 0x001335dd
INC R14
DEC RBX
JNZ 0x001335b9
XOR EAX,EAX
JMP 0x001335df
LAB_001335dd:
MOV AL,0x1
LAB_001335df:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
pagecache_delete_pages
(int8 param_1,int8 param_2,long param_3,uint param_4,int4 param_5,
char param_6)
{
char cVar1;
ulong uVar2;
uVar2 = (ulong)param_4;
do {
cVar1 = pagecache_delete(param_1,param_2,param_3,param_5,(int)param_6);
if (cVar1 != '\0') {
return 1;
}
param_3 = param_3 + 1;
uVar2 = uVar2 - 1;
} while (uVar2 != 0);
return 0;
}
| |
41,360 | QUICK_RANGE_SELECT::unique_key_range() | eloqsql/sql/opt_range.cc | bool QUICK_RANGE_SELECT::unique_key_range()
{
if (ranges.elements == 1)
{
QUICK_RANGE *tmp= *((QUICK_RANGE**)ranges.buffer);
if ((tmp->flag & (EQ_RANGE | NULL_RANGE)) == EQ_RANGE)
{
KEY *key=head->key_info+index;
return (key->flags & HA_NOSAME) && key->key_length == tmp->min_length;
}
}
return 0;
} | O0 | cpp | QUICK_RANGE_SELECT::unique_key_range():
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x1, 0xc0(%rax)
jne 0xa4f4b4
movq -0x28(%rbp), %rax
movq 0xb8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x14(%rax), %eax
andl $0x60, %eax
cmpl $0x20, %eax
jne 0xa4f4b2
movq -0x28(%rbp), %rcx
movq 0x18(%rcx), %rax
movq 0xa8(%rax), %rax
movl 0x20(%rcx), %ecx
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rcx
andq $0x1, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x29(%rbp)
je 0xa4f4a8
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x18(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0xa4f4b8
jmp 0xa4f4b4
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nop
| _ZN18QUICK_RANGE_SELECT16unique_key_rangeEv:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
cmp dword ptr [rax+0C0h], 1
jnz short loc_A4F4B4
mov rax, [rbp+var_28]
mov rax, [rax+0B8h]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+14h]
and eax, 60h
cmp eax, 20h ; ' '
jnz short loc_A4F4B2
mov rcx, [rbp+var_28]
mov rax, [rcx+18h]
mov rax, [rax+0A8h]
mov ecx, [rcx+20h]
imul rcx, 0C0h
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rax+8]
and rcx, 1
xor eax, eax
cmp rcx, 0
mov [rbp+var_29], al
jz short loc_A4F4A8
mov rax, [rbp+var_20]
mov eax, [rax]
mov rcx, [rbp+var_18]
movzx ecx, word ptr [rcx+10h]
cmp eax, ecx
setz al
mov [rbp+var_29], al
loc_A4F4A8:
mov al, [rbp+var_29]
and al, 1
mov [rbp+var_1], al
jmp short loc_A4F4B8
loc_A4F4B2:
jmp short $+2
loc_A4F4B4:
mov [rbp+var_1], 0
loc_A4F4B8:
mov al, [rbp+var_1]
and al, 1
pop rbp
retn
| bool QUICK_RANGE_SELECT::unique_key_range(QUICK_RANGE_SELECT *this)
{
bool v2; // [rsp+1h] [rbp-29h]
long long v3; // [rsp+Ah] [rbp-20h]
long long v4; // [rsp+12h] [rbp-18h]
if ( *((_DWORD *)this + 48) != 1 )
return 0;
v4 = **((_QWORD **)this + 23);
if ( (*(_WORD *)(v4 + 20) & 0x60) != 0x20 )
return 0;
v3 = 192LL * *((unsigned int *)this + 8) + *(_QWORD *)(*((_QWORD *)this + 3) + 168LL);
v2 = 0;
if ( (*(_QWORD *)(v3 + 8) & 1LL) != 0 )
return *(_DWORD *)v3 == *(unsigned __int16 *)(v4 + 16);
return v2;
}
| ~Create_qfunc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00a514b0
ADD RSP,0x10
POP RBP
RET
|
/* Create_qfunc::~Create_qfunc() */
void __thiscall Create_qfunc::~Create_qfunc(Create_qfunc *this)
{
Create_func::~Create_func((Create_func *)this);
return;
}
| |
41,361 | nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
InputAdapterType adapter,
detail::parser_callback_t<basic_json>cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false
)
{
return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
std::move(cb), allow_exceptions, ignore_comments);
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x52d34
movups (%rcx), %xmm1
addq $0x10, %rcx
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%rcx)
movzbl %r8b, %ecx
movzbl %r9b, %r8d
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x53196
movq %rsp, %rdi
callq 0x2d672
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2d672
movq %rbx, %rdi
callq 0x22da0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb:
push rbx
sub rsp, 30h
mov rbx, rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
xorps xmm0, xmm0
movaps [rsp+38h+var_38], xmm0
and [rsp+38h+var_28], 0
mov rax, [rcx+18h]
mov [rsp+38h+var_20], rax
mov rax, [rcx+10h]
test rax, rax
jz short loc_52D34
movups xmm1, xmmword ptr [rcx]
add rcx, 10h
movaps [rsp+38h+var_38], xmm1
mov [rsp+38h+var_28], rax
movups xmmword ptr [rcx], xmm0
loc_52D34:
movzx ecx, r8b
movzx r8d, r9b
lea rsi, [rsp+38h+var_18]
mov rdx, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 30h
pop rbx
retn
mov rbx, rax
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
long long a1,
long long a2,
long long a3,
__int128 *a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
long long v6; // rax
__int128 v8; // [rsp+0h] [rbp-38h] BYREF
long long v9; // [rsp+10h] [rbp-28h]
long long v10; // [rsp+18h] [rbp-20h]
_QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF
v11[0] = a2;
v11[1] = a3;
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a4 + 3);
v6 = *((_QWORD *)a4 + 2);
if ( v6 )
{
v8 = *a4;
v9 = v6;
a4[1] = 0LL;
}
((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)(
a1,
v11,
&v8,
a5,
a6);
std::_Function_base::~_Function_base((std::_Function_base *)&v8);
return a1;
}
| parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
AND qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RCX + 0x10]
TEST RAX,RAX
JZ 0x00152d34
MOVUPS XMM1,xmmword ptr [RCX]
ADD RCX,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_00152d34:
MOVZX ECX,R8B
MOVZX R8D,R9B
LEA RSI,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,RBX
CALL 0x00153196
LAB_00152d4c:
MOV RDI,RSP
CALL 0x0012d672
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
* nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5,
int1 param_6)
{
long lVar1;
int8 local_38;
int8 uStack_30;
long local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
local_20 = param_4[3];
lVar1 = param_4[2];
if (lVar1 != 0) {
local_38 = *param_4;
uStack_30 = param_4[1];
param_4[2] = 0;
param_4[3] = 0;
local_28 = lVar1;
}
/* try { // try from 00152d34 to 00152d4b has its CatchHandler @ 00152d5d */
local_18 = param_2;
local_10 = param_3;
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parser(param_1,&local_18,&local_38,param_5,param_6);
std::_Function_base::~_Function_base((_Function_base *)&local_38);
return param_1;
}
| |
41,362 | my_mb_wc_utf8mb4_quick | eloqsql/strings/ctype-utf8.h | static inline int
my_mb_wc_utf8mb4_quick(my_wc_t *pwc, const uchar *s, const uchar *e)
{
uchar c;
if (s >= e)
return MY_CS_TOOSMALL;
c= s[0];
if (c < 0x80)
{
*pwc= c;
return 1;
}
else if (c < 0xc2)
return MY_CS_ILSEQ;
else if (c < 0xe0)
{
if (s + 2 > e) /* We need 2 characters */
return MY_CS_TOOSMALL2;
if (!(IS_CONTINUATION_BYTE(s[1])))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
else if (c < 0xf0)
{
if (s + 3 > e) /* We need 3 characters */
return MY_CS_TOOSMALL3;
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
else if (c < 0xf5)
{
if (s + 4 > e) /* We need 4 characters */
return MY_CS_TOOSMALL4;
if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3]))
return MY_CS_ILSEQ;
*pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]);
return 4;
}
return MY_CS_ILSEQ;
} | O3 | c | my_mb_wc_utf8mb4_quick:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rdx, %rsi
jae 0x7bdf3
movzbl (%rsi), %ecx
testb %cl, %cl
js 0x7bdec
movl $0x1, %eax
movq %rcx, (%rdi)
jmp 0x7bdf3
cmpb $-0x3e, %cl
jae 0x7bdf5
xorl %eax, %eax
popq %rbp
retq
cmpb $-0x21, %cl
ja 0x7be2b
leaq 0x2(%rsi), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rdx, %r8
ja 0x7bdf3
movzbl 0x1(%rsi), %edx
xorl $0x80, %edx
movl $0x0, %eax
cmpb $0x3f, %dl
ja 0x7bdf3
andl $0x1f, %ecx
shll $0x6, %ecx
orl %edx, %ecx
movl $0x2, %eax
jmp 0x7bde7
cmpb $-0x11, %cl
ja 0x7be8d
leaq 0x3(%rsi), %r8
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rdx, %r8
ja 0x7bdf3
movzbl 0x1(%rsi), %edx
cmpb $-0x41, %dl
jg 0x7bdf1
movzbl 0x2(%rsi), %esi
cmpb $-0x41, %sil
jg 0x7bdf1
cmpl $0xe0, %ecx
sete %r8b
cmpb $-0x60, %dl
setb %r9b
movl $0x0, %eax
testb %r9b, %r8b
jne 0x7bdf3
shll $0xc, %ecx
movzwl %cx, %eax
andl $0x3f, %edx
shll $0x6, %edx
orl %eax, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x3, %eax
movq %rsi, %rcx
jmp 0x7bde7
cmpb $-0xc, %cl
ja 0x7bdf1
leaq 0x4(%rsi), %r8
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rdx, %r8
ja 0x7bdf3
movzbl 0x1(%rsi), %r8d
cmpb $-0x41, %r8b
jg 0x7bdf1
movzbl 0x2(%rsi), %edx
cmpb $-0x41, %dl
jg 0x7bdf1
movzbl 0x3(%rsi), %esi
cmpb $-0x41, %sil
jg 0x7bdf1
cmpl $0xf0, %ecx
sete %al
cmpb $-0x70, %r8b
setb %r9b
testb %r9b, %al
jne 0x7bdf1
cmpl $0xf4, %ecx
sete %r9b
cmpb $-0x70, %r8b
setae %r10b
movl $0x0, %eax
testb %r10b, %r9b
jne 0x7bdf3
andl $0x7, %ecx
shll $0x12, %ecx
andl $0x3f, %r8d
shll $0xc, %r8d
orl %ecx, %r8d
andl $0x3f, %edx
shll $0x6, %edx
orl %r8d, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x4, %eax
jmp 0x7be85
| my_mb_wc_utf8mb4_quick:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rsi, rdx
jnb short loc_7BDF3
movzx ecx, byte ptr [rsi]
test cl, cl
js short loc_7BDEC
mov eax, 1
loc_7BDE7:
mov [rdi], rcx
jmp short loc_7BDF3
loc_7BDEC:
cmp cl, 0C2h
jnb short loc_7BDF5
loc_7BDF1:
xor eax, eax
loc_7BDF3:
pop rbp
retn
loc_7BDF5:
cmp cl, 0DFh
ja short loc_7BE2B
lea r8, [rsi+2]
mov eax, 0FFFFFF9Ah
cmp r8, rdx
ja short loc_7BDF3
movzx edx, byte ptr [rsi+1]
xor edx, 80h
mov eax, 0
cmp dl, 3Fh ; '?'
ja short loc_7BDF3
and ecx, 1Fh
shl ecx, 6
or ecx, edx
mov eax, 2
jmp short loc_7BDE7
loc_7BE2B:
cmp cl, 0EFh
ja short loc_7BE8D
lea r8, [rsi+3]
mov eax, 0FFFFFF99h
cmp r8, rdx
ja short loc_7BDF3
movzx edx, byte ptr [rsi+1]
cmp dl, 0BFh
jg short loc_7BDF1
movzx esi, byte ptr [rsi+2]
cmp sil, 0BFh
jg short loc_7BDF1
cmp ecx, 0E0h
setz r8b
cmp dl, 0A0h
setb r9b
mov eax, 0
test r8b, r9b
jnz short loc_7BDF3
shl ecx, 0Ch
movzx eax, cx
and edx, 3Fh
shl edx, 6
or edx, eax
and esi, 3Fh
or rsi, rdx
mov eax, 3
loc_7BE85:
mov rcx, rsi
jmp loc_7BDE7
loc_7BE8D:
cmp cl, 0F4h
ja loc_7BDF1
lea r8, [rsi+4]
mov eax, 0FFFFFF98h
cmp r8, rdx
ja loc_7BDF3
movzx r8d, byte ptr [rsi+1]
cmp r8b, 0BFh
jg loc_7BDF1
movzx edx, byte ptr [rsi+2]
cmp dl, 0BFh
jg loc_7BDF1
movzx esi, byte ptr [rsi+3]
cmp sil, 0BFh
jg loc_7BDF1
cmp ecx, 0F0h
setz al
cmp r8b, 90h
setb r9b
test al, r9b
jnz loc_7BDF1
cmp ecx, 0F4h
setz r9b
cmp r8b, 90h
setnb r10b
mov eax, 0
test r9b, r10b
jnz loc_7BDF3
and ecx, 7
shl ecx, 12h
and r8d, 3Fh
shl r8d, 0Ch
or r8d, ecx
and edx, 3Fh
shl edx, 6
or edx, r8d
and esi, 3Fh
or rsi, rdx
mov eax, 4
jmp loc_7BE85
| long long my_mb_wc_utf8mb4_quick(unsigned long long *a1, unsigned __int8 *a2, unsigned long long a3)
{
long long result; // rax
unsigned long long v4; // rcx
char v5; // dl
char v6; // si
unsigned long long v7; // rsi
char v8; // r8
char v9; // dl
char v10; // si
result = 4294967195LL;
if ( (unsigned long long)a2 >= a3 )
return result;
v4 = *a2;
if ( (v4 & 0x80u) == 0LL )
{
result = 1LL;
LABEL_4:
*a1 = v4;
return result;
}
if ( (unsigned __int8)v4 < 0xC2u )
return 0LL;
if ( (unsigned __int8)v4 > 0xDFu )
{
if ( (unsigned __int8)v4 > 0xEFu )
{
if ( (unsigned __int8)v4 <= 0xF4u )
{
result = 4294967192LL;
if ( (unsigned long long)(a2 + 4) > a3 )
return result;
v8 = a2[1];
if ( v8 <= -65 )
{
v9 = a2[2];
if ( v9 <= -65 )
{
v10 = a2[3];
if ( v10 <= -65 && ((unsigned __int8)v8 >= 0x90u || (_DWORD)v4 != 240) )
{
result = 0LL;
if ( (unsigned __int8)v8 >= 0x90u && (_DWORD)v4 == 244 )
return result;
v7 = ((v4 & 7) << 18) | ((unsigned __int8)(v8 & 0x3F) << 12) | ((unsigned __int8)(v9 & 0x3F) << 6) | v10 & 0x3F;
result = 4LL;
LABEL_18:
v4 = v7;
goto LABEL_4;
}
}
}
}
}
else
{
result = 4294967193LL;
if ( (unsigned long long)(a2 + 3) > a3 )
return result;
v5 = a2[1];
if ( v5 <= -65 )
{
v6 = a2[2];
if ( v6 <= -65 )
{
result = 0LL;
if ( (unsigned __int8)v5 < 0xA0u && (_DWORD)v4 == 224 )
return result;
v7 = (unsigned __int16)((_WORD)v4 << 12) | ((unsigned __int8)(v5 & 0x3F) << 6) | (unsigned long long)(v6 & 0x3F);
result = 3LL;
goto LABEL_18;
}
}
}
return 0LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a2 + 2) <= a3 )
{
result = 0LL;
if ( (a2[1] ^ 0x80u) <= 0x3F )
{
v4 = a2[1] ^ 0x80 | ((unsigned __int8)(v4 & 0x1F) << 6);
result = 2LL;
goto LABEL_4;
}
}
return result;
}
| my_mb_wc_utf8mb4_quick:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RSI,RDX
JNC 0x0017bdf3
MOVZX ECX,byte ptr [RSI]
TEST CL,CL
JS 0x0017bdec
MOV EAX,0x1
LAB_0017bde7:
MOV qword ptr [RDI],RCX
JMP 0x0017bdf3
LAB_0017bdec:
CMP CL,0xc2
JNC 0x0017bdf5
LAB_0017bdf1:
XOR EAX,EAX
LAB_0017bdf3:
POP RBP
RET
LAB_0017bdf5:
CMP CL,0xdf
JA 0x0017be2b
LEA R8,[RSI + 0x2]
MOV EAX,0xffffff9a
CMP R8,RDX
JA 0x0017bdf3
MOVZX EDX,byte ptr [RSI + 0x1]
XOR EDX,0x80
MOV EAX,0x0
CMP DL,0x3f
JA 0x0017bdf3
AND ECX,0x1f
SHL ECX,0x6
OR ECX,EDX
MOV EAX,0x2
JMP 0x0017bde7
LAB_0017be2b:
CMP CL,0xef
JA 0x0017be8d
LEA R8,[RSI + 0x3]
MOV EAX,0xffffff99
CMP R8,RDX
JA 0x0017bdf3
MOVZX EDX,byte ptr [RSI + 0x1]
CMP DL,0xbf
JG 0x0017bdf1
MOVZX ESI,byte ptr [RSI + 0x2]
CMP SIL,0xbf
JG 0x0017bdf1
CMP ECX,0xe0
SETZ R8B
CMP DL,0xa0
SETC R9B
MOV EAX,0x0
TEST R8B,R9B
JNZ 0x0017bdf3
SHL ECX,0xc
MOVZX EAX,CX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,EAX
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x3
LAB_0017be85:
MOV RCX,RSI
JMP 0x0017bde7
LAB_0017be8d:
CMP CL,0xf4
JA 0x0017bdf1
LEA R8,[RSI + 0x4]
MOV EAX,0xffffff98
CMP R8,RDX
JA 0x0017bdf3
MOVZX R8D,byte ptr [RSI + 0x1]
CMP R8B,0xbf
JG 0x0017bdf1
MOVZX EDX,byte ptr [RSI + 0x2]
CMP DL,0xbf
JG 0x0017bdf1
MOVZX ESI,byte ptr [RSI + 0x3]
CMP SIL,0xbf
JG 0x0017bdf1
CMP ECX,0xf0
SETZ AL
CMP R8B,0x90
SETC R9B
TEST AL,R9B
JNZ 0x0017bdf1
CMP ECX,0xf4
SETZ R9B
CMP R8B,0x90
SETNC R10B
MOV EAX,0x0
TEST R9B,R10B
JNZ 0x0017bdf3
AND ECX,0x7
SHL ECX,0x12
AND R8D,0x3f
SHL R8D,0xc
OR R8D,ECX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,R8D
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x4
JMP 0x0017be85
|
int8 my_mb_wc_utf8mb4_quick(ulong *param_1,byte *param_2,byte *param_3)
{
byte bVar1;
byte bVar2;
int8 uVar3;
uint uVar4;
ulong uVar5;
if (param_3 <= param_2) {
return 0xffffff9b;
}
bVar1 = *param_2;
uVar5 = (ulong)bVar1;
if ((char)bVar1 < '\0') {
if (0xc1 < bVar1) {
uVar4 = (uint)bVar1;
if (bVar1 < 0xe0) {
if (param_3 < param_2 + 2) {
return 0xffffff9a;
}
if (0x3f < (byte)(param_2[1] ^ 0x80)) {
return 0;
}
uVar5 = (ulong)((uVar4 & 0x1f) << 6 | param_2[1] ^ 0x80);
uVar3 = 2;
goto LAB_0017bde7;
}
if (bVar1 < 0xf0) {
if (param_3 < param_2 + 3) {
return 0xffffff99;
}
bVar2 = param_2[1];
if (((char)bVar2 < -0x40) && ((char)param_2[2] < -0x40)) {
if (uVar4 == 0xe0 && bVar2 < 0xa0) {
return 0;
}
uVar4 = param_2[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc;
uVar3 = 3;
LAB_0017be85:
uVar5 = (ulong)uVar4;
goto LAB_0017bde7;
}
}
else if (bVar1 < 0xf5) {
if (param_3 < param_2 + 4) {
return 0xffffff98;
}
bVar1 = param_2[1];
if (((((char)bVar1 < -0x40) && ((char)param_2[2] < -0x40)) && ((char)param_2[3] < -0x40)) &&
(uVar4 != 0xf0 || 0x8f < bVar1)) {
if (uVar4 == 0xf4 && 0x8f < bVar1) {
return 0;
}
uVar4 = param_2[3] & 0x3f |
(param_2[2] & 0x3f) << 6 | (bVar1 & 0x3f) << 0xc | (uVar4 & 7) << 0x12;
uVar3 = 4;
goto LAB_0017be85;
}
}
}
uVar3 = 0;
}
else {
uVar3 = 1;
LAB_0017bde7:
*param_1 = uVar5;
}
return uVar3;
}
| |
41,363 | compare_bin | eloqsql/mysys/my_compare.c | static int compare_bin(const uchar *a, uint a_length,
const uchar *b, uint b_length,
my_bool part_key, my_bool skip_end_space)
{
uint length= MY_MIN(a_length,b_length);
const uchar *end= a+ length;
int flag;
while (a < end)
if ((flag= (int) *a++ - (int) *b++))
return flag;
if (part_key && b_length < a_length)
return 0;
if (skip_end_space && a_length != b_length)
{
int swap= 1;
/*
We are using space compression. We have to check if longer key
has next character < ' ', in which case it's less than the shorter
key that has an implicite space afterwards.
This code is identical to the one in
strings/ctype-simple.c:my_strnncollsp_simple
*/
if (a_length < b_length)
{
/* put shorter key in a */
a_length= b_length;
a= b;
swap= -1; /* swap sign of result */
}
for (end= a + a_length-length; a < end ; a++)
{
if (*a != ' ')
return (*a < ' ') ? -swap : swap;
}
return 0;
}
return (int) (a_length-b_length);
} | O3 | c | compare_bin:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
cmpl %ecx, %esi
movl %ecx, %r10d
cmovbl %esi, %r10d
leaq (%rdi,%r10), %r11
cmpq %r11, %rdi
jae 0xa6420
movzbl (%rdi), %eax
incq %rdi
movzbl (%rdx), %ebx
incq %rdx
subl %ebx, %eax
je 0xa6409
jmp 0xa648e
testb %r8b, %r8b
setne %al
cmpl %ecx, %esi
seta %r8b
testb %al, %r8b
je 0xa6435
xorl %eax, %eax
jmp 0xa648e
testb %r9b, %r9b
sete %r8b
movl %esi, %eax
subl %ecx, %eax
sete %r9b
orb %r8b, %r9b
jne 0xa648e
xorl %eax, %eax
cmpl %ecx, %esi
cmoval %esi, %ecx
cmovbq %rdx, %rdi
movl $0x0, %edx
sbbl %edx, %edx
leaq (%rdi,%rcx), %rsi
subq %r10, %rsi
cmpq %rsi, %rdi
jae 0xa648e
orl $0x1, %edx
subq %r10, %rcx
xorl %eax, %eax
movb (%rdi,%rax), %sil
cmpb $0x20, %sil
jne 0xa6483
incq %rax
cmpq %rax, %rcx
jne 0xa646f
jmp 0xa6431
movl %edx, %eax
negl %eax
cmpb $0x20, %sil
cmovael %edx, %eax
popq %rbx
popq %rbp
retq
| compare_bin:
push rbp
mov rbp, rsp
push rbx
cmp esi, ecx
mov r10d, ecx
cmovb r10d, esi
lea r11, [rdi+r10]
loc_A6409:
cmp rdi, r11
jnb short loc_A6420
movzx eax, byte ptr [rdi]
inc rdi
movzx ebx, byte ptr [rdx]
inc rdx
sub eax, ebx
jz short loc_A6409
jmp short loc_A648E
loc_A6420:
test r8b, r8b
setnz al
cmp esi, ecx
setnbe r8b
test r8b, al
jz short loc_A6435
loc_A6431:
xor eax, eax
jmp short loc_A648E
loc_A6435:
test r9b, r9b
setz r8b
mov eax, esi
sub eax, ecx
setz r9b
or r9b, r8b
jnz short loc_A648E
xor eax, eax
cmp esi, ecx
cmova ecx, esi
cmovb rdi, rdx
mov edx, 0
sbb edx, edx
lea rsi, [rdi+rcx]
sub rsi, r10
cmp rdi, rsi
jnb short loc_A648E
or edx, 1
sub rcx, r10
xor eax, eax
loc_A646F:
mov sil, [rdi+rax]
cmp sil, 20h ; ' '
jnz short loc_A6483
inc rax
cmp rcx, rax
jnz short loc_A646F
jmp short loc_A6431
loc_A6483:
mov eax, edx
neg eax
cmp sil, 20h ; ' '
cmovnb eax, edx
loc_A648E:
pop rbx
pop rbp
retn
| long long compare_bin(unsigned __int8 *a1, unsigned int a2, unsigned __int8 *a3, long long a4, char a5, char a6)
{
long long v6; // r10
unsigned __int8 *v7; // r11
int v8; // eax
int v9; // ebx
long long result; // rax
bool v11; // cf
unsigned int v12; // edx
long long v13; // rcx
long long v14; // rax
unsigned __int8 v15; // si
v6 = (unsigned int)a4;
if ( a2 < (unsigned int)a4 )
v6 = a2;
v7 = &a1[v6];
while ( a1 < v7 )
{
v8 = *a1++;
v9 = *a3++;
result = (unsigned int)(v8 - v9);
if ( (_DWORD)result )
return result;
}
if ( a5 != 0 && a2 > (unsigned int)a4 )
return 0LL;
result = a2 - (unsigned int)a4;
if ( a6 != 0 && a2 != (_DWORD)a4 )
{
result = 0LL;
v11 = a2 < (unsigned int)a4;
if ( a2 > (unsigned int)a4 )
a4 = a2;
if ( v11 )
a1 = a3;
if ( a1 < &a1[a4 - v6] )
{
v12 = v11 ? -1 : 1;
v13 = a4 - v6;
v14 = 0LL;
while ( 1 )
{
v15 = a1[v14];
if ( v15 != 32 )
break;
if ( v13 == ++v14 )
return 0LL;
}
result = -v12;
if ( v15 >= 0x20u )
return v12;
}
}
return result;
}
| compare_bin:
PUSH RBP
MOV RBP,RSP
PUSH RBX
CMP ESI,ECX
MOV R10D,ECX
CMOVC R10D,ESI
LEA R11,[RDI + R10*0x1]
LAB_001a6409:
CMP RDI,R11
JNC 0x001a6420
MOVZX EAX,byte ptr [RDI]
INC RDI
MOVZX EBX,byte ptr [RDX]
INC RDX
SUB EAX,EBX
JZ 0x001a6409
JMP 0x001a648e
LAB_001a6420:
TEST R8B,R8B
SETNZ AL
CMP ESI,ECX
SETA R8B
TEST R8B,AL
JZ 0x001a6435
LAB_001a6431:
XOR EAX,EAX
JMP 0x001a648e
LAB_001a6435:
TEST R9B,R9B
SETZ R8B
MOV EAX,ESI
SUB EAX,ECX
SETZ R9B
OR R9B,R8B
JNZ 0x001a648e
XOR EAX,EAX
CMP ESI,ECX
CMOVA ECX,ESI
CMOVC RDI,RDX
MOV EDX,0x0
SBB EDX,EDX
LEA RSI,[RDI + RCX*0x1]
SUB RSI,R10
CMP RDI,RSI
JNC 0x001a648e
OR EDX,0x1
SUB RCX,R10
XOR EAX,EAX
LAB_001a646f:
MOV SIL,byte ptr [RDI + RAX*0x1]
CMP SIL,0x20
JNZ 0x001a6483
INC RAX
CMP RCX,RAX
JNZ 0x001a646f
JMP 0x001a6431
LAB_001a6483:
MOV EAX,EDX
NEG EAX
CMP SIL,0x20
CMOVNC EAX,EDX
LAB_001a648e:
POP RBX
POP RBP
RET
|
uint compare_bin(byte *param_1,uint param_2,byte *param_3,uint param_4,char param_5,char param_6)
{
byte *pbVar1;
byte bVar2;
byte bVar3;
long lVar4;
ulong uVar5;
uint uVar6;
ulong uVar7;
uVar7 = (ulong)param_4;
if (param_2 < param_4) {
uVar7 = (ulong)param_2;
}
pbVar1 = param_1 + uVar7;
while (param_1 < pbVar1) {
bVar2 = *param_1;
param_1 = param_1 + 1;
bVar3 = *param_3;
param_3 = param_3 + 1;
if ((uint)bVar2 - (uint)bVar3 != 0) {
return (uint)bVar2 - (uint)bVar3;
}
}
if (param_2 <= param_4 || param_5 == '\0') {
if (param_2 - param_4 == 0 || param_6 == '\0') {
return param_2 - param_4;
}
uVar5 = (ulong)param_4;
if (param_4 < param_2) {
uVar5 = (ulong)param_2;
}
if (param_2 < param_4) {
param_1 = param_3;
}
if (param_1 + (uVar5 - uVar7) <= param_1) {
return 0;
}
uVar6 = -(uint)(param_2 < param_4) | 1;
lVar4 = 0;
do {
if (param_1[lVar4] != 0x20) {
if (param_1[lVar4] < 0x20) {
return -uVar6;
}
return uVar6;
}
lVar4 = lVar4 + 1;
} while (uVar5 - uVar7 != lVar4);
}
return 0;
}
| |
41,364 | _gnu_cxx::__normal_iterator<std::pair<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>>*, std::vector<std::pair<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>>, std::allocator<std::pair<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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<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>>>>::find<char const (&) [8], 0>(char const (&) [8]) | monkey531[P]llama/common/json.hpp | iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it;
}
}
return Container::end();
} | O0 | cpp | _gnu_cxx::__normal_iterator<std::pair<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>>*, std::vector<std::pair<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>>, std::allocator<std::pair<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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<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>>>>::find<char const (&) [8], 0>(char const (&) [8]):
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xbe3b0
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rdi
callq 0xbe3e0
movq %rax, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0xbe410
testb $0x1, %al
jne 0x174cb6
jmp 0x174cf6
movq 0x10(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xbf4b0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
callq 0x174d10
testb $0x1, %al
jne 0x174ce6
jmp 0x174ce8
jmp 0x174d05
jmp 0x174cea
leaq 0x30(%rsp), %rdi
callq 0xbe490
jmp 0x174c92
movq 0x10(%rsp), %rdi
callq 0xbe3e0
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov rdi, [rsp+38h+var_10]
mov [rsp+38h+var_28], rdi
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<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>>>::begin(void)
mov [rsp+38h+var_8], rax
loc_174C92:
mov rdi, [rsp+38h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<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>>>::end(void)
mov [rsp+38h+var_20], rax
lea rdi, [rsp+38h+var_8]
lea rsi, [rsp+38h+var_20]
call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<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>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<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&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<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&)
test al, 1
jnz short loc_174CB6
jmp short loc_174CF6
loc_174CB6:
mov rax, [rsp+38h+var_28]
add rax, 18h
mov [rsp+38h+var_30], rax
lea rdi, [rsp+38h+var_8]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<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>>>>::operator->(void)
mov rdi, [rsp+38h+var_30]
mov rsi, rax
mov rdx, [rsp+38h+var_18]
call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA8_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_
test al, 1
jnz short loc_174CE6
jmp short loc_174CE8
loc_174CE6:
jmp short loc_174D05
loc_174CE8:
jmp short $+2
loc_174CEA:
lea rdi, [rsp+38h+var_8]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<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>>>>::operator++(void)
jmp short loc_174C92
loc_174CF6:
mov rdi, [rsp+38h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<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>>>::end(void)
mov [rsp+38h+var_8], rax
loc_174D05:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
long long a1,
long long a2)
{
long long v2; // rax
long long v4; // [rsp+18h] [rbp-20h] BYREF
long long v5; // [rsp+20h] [rbp-18h]
long long v6; // [rsp+28h] [rbp-10h]
long long i; // [rsp+30h] [rbp-8h] BYREF
v6 = a1;
v5 = a2;
for ( i = std::vector<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>>>::begin(a1);
;
__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<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>>>>::operator++(&i) )
{
v4 = std::vector<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>>>::end(a1);
if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<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>>>>(
(long long)&i,
(long long)&v4) )
break;
v2 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<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>>>>::operator->((long long)&i);
if ( (std::equal_to<void>::operator()<std::string const&,char const(&)[8]>(a1 + 24, v2, v5) & 1) != 0 )
return i;
}
return std::vector<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>>>::end(a1);
}
| |||
41,365 | _gnu_cxx::__normal_iterator<std::pair<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>>*, std::vector<std::pair<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>>, std::allocator<std::pair<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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<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>>>>::find<char const (&) [8], 0>(char const (&) [8]) | monkey531[P]llama/common/json.hpp | iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it;
}
}
return Container::end();
} | O2 | cpp | _gnu_cxx::__normal_iterator<std::pair<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>>*, std::vector<std::pair<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>>, std::allocator<std::pair<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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<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>>>>::find<char const (&) [8], 0>(char const (&) [8]):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r14
movq 0x8(%r15), %rax
cmpq %rax, %r14
je 0x97643
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b7fb
testb %al, %al
jne 0x97640
addq $0x30, %r14
jmp 0x97622
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
push r15
push r14
push rbx
mov rbx, rsi
mov r15, rdi
mov r14, [rdi]
loc_97622:
mov rax, [r15+8]
cmp r14, rax
jz short loc_97643
mov rdi, r14
mov rsi, rbx
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_97640
add r14, 30h ; '0'
jmp short loc_97622
loc_97640:
mov rax, r14
loc_97643:
pop rbx
pop r14
pop r15
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
long long *a1)
{
long long i; // r14
long long result; // rax
for ( i = *a1; ; i += 48LL )
{
result = a1[1];
if ( i == result )
break;
if ( std::operator==<char>(i) )
return i;
}
return result;
}
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R15,RDI
MOV R14,qword ptr [RDI]
LAB_00197622:
MOV RAX,qword ptr [R15 + 0x8]
CMP R14,RAX
JZ 0x00197643
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012b7fb
TEST AL,AL
JNZ 0x00197640
ADD R14,0x30
JMP 0x00197622
LAB_00197640:
MOV RAX,R14
LAB_00197643:
POP RBX
POP R14
POP R15
RET
|
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(int8 *param_1,char *param_2)
{
bool bVar1;
string *psVar2;
string *psVar3;
psVar3 = (string *)*param_1;
while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] &&
(bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) {
psVar3 = psVar3 + 0x30;
}
return psVar2;
}
| |
41,366 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::~json_sax_dom_callback_parser() | monkey531[P]llama/common/json.hpp | ~json_sax_dom_callback_parser() = default; | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::~json_sax_dom_callback_parser():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xa8(%rdi), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58644
movq %r14, %rdi
callq 0x5db32
movq 0x90(%rbx), %rax
testq %rax, %rax
je 0x5ae6d
leaq 0x80(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x48(%rbx), %rdi
callq 0x5bed8
leaq 0x20(%rbx), %rdi
callq 0x5bed8
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x5ae9b
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1b8b0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0x5aea7
jmp 0x5aea7
movq %rax, %rdi
callq 0x21ae5
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea r14, [rdi+0A8h]
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 rax, [rbx+90h]
test rax, rax
jz short loc_5AE6D
lea rdi, [rbx+80h]
mov rsi, rdi
mov edx, 3
call rax
loc_5AE6D:
lea rdi, [rbx+48h]
call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void)
lea rdi, [rbx+20h]
call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void)
mov rdi, [rbx+8]; void *
test rdi, rdi
jz short loc_5AE9B
mov rsi, [rbx+18h]
sub rsi, rdi; unsigned __int64
add rsp, 8
pop rbx
pop r14
jmp __ZdlPvm; operator delete(void *,ulong)
loc_5AE9B:
add rsp, 8
pop rbx
pop r14
retn
jmp short loc_5AEA7
jmp short $+2
loc_5AEA7:
mov rdi, rax
call __clang_call_terminate
| void nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser(
long long a1)
{
long long v2; // rsi
void ( *v3)(long long, long long, long long); // rax
void *v4; // rdi
v2 = 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 + 168));
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(a1 + 168);
v3 = *(void ( **)(long long, long long, long long))(a1 + 144);
if ( v3 )
{
v2 = a1 + 128;
v3(a1 + 128, a1 + 128, 3LL);
}
std::_Bvector_base<std::allocator<bool>>::_M_deallocate(a1 + 72, v2);
std::_Bvector_base<std::allocator<bool>>::_M_deallocate(a1 + 32, v2);
v4 = *(void **)(a1 + 8);
if ( v4 )
operator delete(v4, *(_QWORD *)(a1 + 24) - (_QWORD)v4);
}
| ~json_sax_dom_callback_parser:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[RDI + 0xa8]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158644
MOV RDI,R14
CALL 0x0015db32
MOV RAX,qword ptr [RBX + 0x90]
TEST RAX,RAX
JZ 0x0015ae6d
LEA RDI,[RBX + 0x80]
LAB_0015ae63:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0015ae6d:
LEA RDI,[RBX + 0x48]
LAB_0015ae71:
CALL 0x0015bed8
LEA RDI,[RBX + 0x20]
LAB_0015ae7a:
CALL 0x0015bed8
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0015ae9b
MOV RSI,qword ptr [RBX + 0x18]
SUB RSI,RDI
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011b8b0
LAB_0015ae9b:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::~json_sax_dom_callback_parser() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::~json_sax_dom_callback_parser
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
void *pvVar1;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)(this + 0xa8),0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)(this + 0xa8));
if (*(code **)(this + 0x90) != (code *)0x0) {
/* try { // try from 0015ae63 to 0015ae6c has its CatchHandler @ 0015aea3 */
(**(code **)(this + 0x90))(this + 0x80,this + 0x80,3);
}
/* try { // try from 0015ae71 to 0015ae75 has its CatchHandler @ 0015aea7 */
std::_Bvector_base<std::allocator<bool>>::_M_deallocate
((_Bvector_base<std::allocator<bool>> *)(this + 0x48));
/* try { // try from 0015ae7a to 0015ae7e has its CatchHandler @ 0015aea5 */
std::_Bvector_base<std::allocator<bool>>::_M_deallocate
((_Bvector_base<std::allocator<bool>> *)(this + 0x20));
pvVar1 = *(void **)(this + 8);
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,*(long *)(this + 0x18) - (long)pvVar1);
return;
}
return;
}
| |
41,367 | nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*) | ng-log[P]ng-log/src/logging.cc | CheckOpMessageBuilder::CheckOpMessageBuilder(const char* exprtext)
: stream_(new ostringstream) {
*stream_ << exprtext << " (";
} | O1 | cpp | nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x178, %edi # imm = 0x178
callq 0x8fc0
movq %rax, %rbx
movq %rax, %rdi
callq 0x7710
movq %rbx, (%r15)
testq %r14, %r14
je 0xfe2a
movq %r14, %rdi
callq 0x71e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x75c0
jmp 0xfe43
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x78f0
leaq 0x14b02(%rip), %rsi # 0x2494c
movl $0x2, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x75c0
movq %rax, %r14
movl $0x178, %esi # imm = 0x178
movq %rbx, %rdi
callq 0x900c
movq %r14, %rdi
callq 0x7930
| _ZN5nglog8internal21CheckOpMessageBuilderC2EPKc:
push r15; Alternative name is 'nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)'
push r14
push rbx
mov r14, rsi
mov r15, rdi
mov edi, 178h; unsigned __int64
call _Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov [r15], rbx
test r14, r14
jz short loc_FE2A
mov rdi, r14
call _strlen
mov rdi, rbx
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_FE43
loc_FE2A:
mov rax, [rbx]
mov rax, [rax-18h]
mov rdi, rbx
add rdi, rax
mov esi, [rbx+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_FE43:
lea rsi, asc_2494C; " ("
mov edx, 2
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, rax
mov esi, 178h; unsigned __int64
mov rdi, rbx; void *
call _ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
| long long nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(
nglog::internal::CheckOpMessageBuilder *this,
const char *a2)
{
_QWORD *v2; // rbx
long long v3; // rax
v2 = (_QWORD *)operator new(376LL);
std::ostringstream::basic_ostringstream(v2);
*(_QWORD *)this = v2;
if ( a2 )
{
v3 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(v2, a2, v3);
}
else
{
std::ios::clear((char *)v2 + *(_QWORD *)(*v2 - 24LL), *(_DWORD *)((char *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) | 1u);
}
return std::__ostream_insert<char,std::char_traits<char>>(v2, " (", 2LL);
}
| CheckOpMessageBuilder:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RSI
MOV R15,RDI
MOV EDI,0x178
CALL 0x00108fc0
MOV RBX,RAX
LAB_0010fe02:
MOV RDI,RAX
CALL 0x00107710
LAB_0010fe0a:
MOV qword ptr [R15],RBX
TEST R14,R14
JZ 0x0010fe2a
MOV RDI,R14
CALL 0x001071e0
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
CALL 0x001075c0
JMP 0x0010fe43
LAB_0010fe2a:
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,RBX
ADD RDI,RAX
MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x001078f0
LAB_0010fe43:
LEA RSI,[0x12494c]
MOV EDX,0x2
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x001075c0
|
/* nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*) */
void __thiscall
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder
(CheckOpMessageBuilder *this,char *param_1)
{
ostringstream *this_00;
size_t sVar1;
this_00 = (ostringstream *)operator_new(0x178);
/* try { // try from 0010fe02 to 0010fe09 has its CatchHandler @ 0010fe5c */
std::__cxx11::ostringstream::ostringstream(this_00);
*(ostringstream **)this = this_00;
if (param_1 == (char *)0x0) {
std::ios::clear(this_00 + *(long *)(*(long *)this_00 + -0x18),
*(uint *)(this_00 + *(long *)(*(long *)this_00 + -0x18) + 0x20) | 1);
}
else {
sVar1 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00,param_1,sVar1);
}
std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00," (",2);
return;
}
| |
41,368 | rlSetTexture | csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/rlgl.h | void rlSetTexture(unsigned int id)
{
if (id == 0)
{
#if defined(GRAPHICS_API_OPENGL_11)
rlDisableTexture();
#else
// NOTE: If quads batch limit is reached, we force a draw call and next batch starts
if (RLGL.State.vertexCounter >=
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].elementCount*4)
{
rlDrawRenderBatch(RLGL.currentBatch);
}
#endif
}
else
{
#if defined(GRAPHICS_API_OPENGL_11)
rlEnableTexture(id);
#else
if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].textureId != id)
{
if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount > 0)
{
// Make sure current RLGL.currentBatch->draws[i].vertexCount is aligned a multiple of 4,
// that way, following QUADS drawing will keep aligned with index processing
// It implies adding some extra alignment vertex at the end of the draw,
// those vertex are not processed but they are considered as an additional offset
// for the next set of vertex to be drawn
if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].mode == RL_LINES) RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexAlignment = ((RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount < 4)? RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount : RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount%4);
else if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].mode == RL_TRIANGLES) RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexAlignment = ((RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount < 4)? 1 : (4 - (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount%4)));
else RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexAlignment = 0;
if (!rlCheckRenderBatchLimit(RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexAlignment))
{
RLGL.State.vertexCounter += RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexAlignment;
RLGL.currentBatch->drawCounter++;
}
}
if (RLGL.currentBatch->drawCounter >= RL_DEFAULT_BATCH_DRAWCALLS) rlDrawRenderBatch(RLGL.currentBatch);
RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].textureId = id;
RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount = 0;
}
#endif
}
} | O0 | c | rlSetTexture:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jne 0xb26ae
movl 0x167b89(%rip), %eax # 0x21a200
movq 0x167b5a(%rip), %rcx # 0x21a1d8
movq 0x8(%rcx), %rcx
movq 0x167b4f(%rip), %rdx # 0x21a1d8
movslq 0x4(%rdx), %rdx
imulq $0x48, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
shll $0x2, %ecx
cmpl %ecx, %eax
jl 0xb26a9
movq 0x167b34(%rip), %rdi # 0x21a1d8
callq 0xb0fc0
jmp 0xb29ab
movq 0x167b23(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167b18(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpl -0x4(%rbp), %eax
je 0xb29a9
movq 0x167af5(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167aea(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x4(%rax)
jle 0xb293c
movq 0x167ac9(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167abe(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x1, (%rax)
jne 0xb27e2
movq 0x167a9e(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167a93(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x4, 0x4(%rax)
jge 0xb2785
movq 0x167a76(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167a6b(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %edx
movl %edx, -0x8(%rbp)
jmp 0xb27b5
movq 0x167a4c(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167a41(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %edx, -0x8(%rbp)
movl -0x8(%rbp), %ecx
movq 0x167a19(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167a0e(%rip), %rdx # 0x21a1d8
movl 0x18(%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0xb28cb
movq 0x1679ef(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x1679e4(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x4, (%rax)
jne 0xb28a0
movq 0x1679c4(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x1679b9(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x4, 0x4(%rax)
jge 0xb283f
movl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xb2876
movq 0x167992(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167987(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl $0x4, %eax
subl %edx, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %ecx
movq 0x167958(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x16794d(%rip), %rdx # 0x21a1d8
movl 0x18(%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0xb28c9
movq 0x167931(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167926(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
jmp 0xb28cb
movq 0x167906(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x1678fb(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edi
callq 0xb0ec0
testb $0x1, %al
jne 0xb293a
movq 0x1678d8(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x1678cd(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addl 0x1678dc(%rip), %eax # 0x21a200
movl %eax, 0x1678d6(%rip) # 0x21a200
movq 0x1678a7(%rip), %rax # 0x21a1d8
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
jmp 0xb293c
movq 0x167895(%rip), %rax # 0x21a1d8
cmpl $0x100, 0x18(%rax) # imm = 0x100
jl 0xb2958
movq 0x167885(%rip), %rdi # 0x21a1d8
callq 0xb0fc0
movl -0x4(%rbp), %ecx
movq 0x167876(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x16786b(%rip), %rdx # 0x21a1d8
movl 0x18(%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movq 0x167851(%rip), %rax # 0x21a1d8
movq 0x10(%rax), %rax
movq 0x167846(%rip), %rcx # 0x21a1d8
movl 0x18(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl $0x0, 0x4(%rax)
jmp 0xb29ab
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rlSetTexture:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_4], edi
cmp [rbp+var_4], 0
jnz short loc_B26AE
mov eax, cs:dword_21A200
mov rcx, cs:RLGL
mov rcx, [rcx+8]
mov rdx, cs:RLGL
movsxd rdx, dword ptr [rdx+4]
imul rdx, 48h ; 'H'
add rcx, rdx
mov ecx, [rcx]
shl ecx, 2
cmp eax, ecx
jl short loc_B26A9
mov rdi, cs:RLGL
call rlDrawRenderBatch
loc_B26A9:
jmp loc_B29AB
loc_B26AE:
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov eax, [rax+0Ch]
cmp eax, [rbp+var_4]
jz loc_B29A9
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+4], 0
jle loc_B293C
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
cmp dword ptr [rax], 1
jnz loc_B27E2
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+4], 4
jge short loc_B2785
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov edx, [rax+4]
mov [rbp+var_8], edx
jmp short loc_B27B5
loc_B2785:
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov eax, [rax+4]
mov ecx, 4
cdq
idiv ecx
mov [rbp+var_8], edx
loc_B27B5:
mov ecx, [rbp+var_8]
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rdx, cs:RLGL
mov edx, [rdx+18h]
sub edx, 1
movsxd rdx, edx
shl rdx, 4
add rax, rdx
mov [rax+8], ecx
jmp loc_B28CB
loc_B27E2:
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
cmp dword ptr [rax], 4
jnz loc_B28A0
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+4], 4
jge short loc_B283F
mov eax, 1
mov [rbp+var_C], eax
jmp short loc_B2876
loc_B283F:
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov eax, [rax+4]
mov ecx, 4
cdq
idiv ecx
mov eax, 4
sub eax, edx
mov [rbp+var_C], eax
loc_B2876:
mov ecx, [rbp+var_C]
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rdx, cs:RLGL
mov edx, [rdx+18h]
sub edx, 1
movsxd rdx, edx
shl rdx, 4
add rax, rdx
mov [rax+8], ecx
jmp short loc_B28C9
loc_B28A0:
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov dword ptr [rax+8], 0
loc_B28C9:
jmp short $+2
loc_B28CB:
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov edi, [rax+8]
call rlCheckRenderBatchLimit
test al, 1
jnz short loc_B293A
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov eax, [rax+8]
add eax, cs:dword_21A200
mov cs:dword_21A200, eax
mov rax, cs:RLGL
mov ecx, [rax+18h]
add ecx, 1
mov [rax+18h], ecx
loc_B293A:
jmp short $+2
loc_B293C:
mov rax, cs:RLGL
cmp dword ptr [rax+18h], 100h
jl short loc_B2958
mov rdi, cs:RLGL
call rlDrawRenderBatch
loc_B2958:
mov ecx, [rbp+var_4]
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rdx, cs:RLGL
mov edx, [rdx+18h]
sub edx, 1
movsxd rdx, edx
shl rdx, 4
add rax, rdx
mov [rax+0Ch], ecx
mov rax, cs:RLGL
mov rax, [rax+10h]
mov rcx, cs:RLGL
mov ecx, [rcx+18h]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov dword ptr [rax+4], 0
loc_B29A9:
jmp short $+2
loc_B29AB:
add rsp, 10h
pop rbp
retn
| long long rlSetTexture(
int a1,
double a2,
double a3,
double a4,
double a5,
double a6,
double a7,
double a8,
double a9)
{
long long result; // rax
int v10; // [rsp+4h] [rbp-Ch]
int v11; // [rsp+8h] [rbp-8h]
if ( a1 )
{
result = *(unsigned int *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 12);
if ( (_DWORD)result != a1 )
{
if ( *(int *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 4) > 0 )
{
if ( *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16)) == 1 )
{
v11 = *(int *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 4) >= 4
? *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 4) % 4
: *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 4);
*(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 8) = v11;
}
else if ( *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16)) == 4 )
{
v10 = *(int *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 4) >= 4
? 4 - *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 4) % 4
: 1;
*(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 8) = v10;
}
else
{
*(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 8) = 0;
}
if ( (rlCheckRenderBatchLimit(*(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 8)) & 1) == 0 )
dword_21A200 += *(_DWORD *)(16LL * ((*(_DWORD *)(RLGL[0] + 24))++ - 1) + *(_QWORD *)(RLGL[0] + 16) + 8);
}
if ( *(int *)(RLGL[0] + 24) >= 256 )
rlDrawRenderBatch(RLGL[0], a2, a3, a4, a5, a6, a7, a8, a9);
*(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 12) = a1;
result = 16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16);
*(_DWORD *)(result + 4) = 0;
}
}
else
{
result = (unsigned int)dword_21A200;
if ( dword_21A200 >= 4 * *(_DWORD *)(72LL * *(int *)(RLGL[0] + 4) + *(_QWORD *)(RLGL[0] + 8)) )
return rlDrawRenderBatch(RLGL[0], a2, a3, a4, a5, a6, a7, a8, a9);
}
return result;
}
| rlSetTexture:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV dword ptr [RBP + -0x4],EDI
CMP dword ptr [RBP + -0x4],0x0
JNZ 0x001b26ae
MOV EAX,dword ptr [0x0031a200]
MOV RCX,qword ptr [0x0031a1d8]
MOV RCX,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [0x0031a1d8]
MOVSXD RDX,dword ptr [RDX + 0x4]
IMUL RDX,RDX,0x48
ADD RCX,RDX
MOV ECX,dword ptr [RCX]
SHL ECX,0x2
CMP EAX,ECX
JL 0x001b26a9
MOV RDI,qword ptr [0x0031a1d8]
CALL 0x001b0fc0
LAB_001b26a9:
JMP 0x001b29ab
LAB_001b26ae:
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0xc]
CMP EAX,dword ptr [RBP + -0x4]
JZ 0x001b29a9
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x4],0x0
JLE 0x001b293c
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX],0x1
JNZ 0x001b27e2
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x4],0x4
JGE 0x001b2785
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV EDX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x8],EDX
JMP 0x001b27b5
LAB_001b2785:
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x4]
MOV ECX,0x4
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x8],EDX
LAB_001b27b5:
MOV ECX,dword ptr [RBP + -0x8]
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [0x0031a1d8]
MOV EDX,dword ptr [RDX + 0x18]
SUB EDX,0x1
MOVSXD RDX,EDX
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX + 0x8],ECX
JMP 0x001b28cb
LAB_001b27e2:
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX],0x4
JNZ 0x001b28a0
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x4],0x4
JGE 0x001b283f
MOV EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001b2876
LAB_001b283f:
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x4]
MOV ECX,0x4
CDQ
IDIV ECX
MOV EAX,0x4
SUB EAX,EDX
MOV dword ptr [RBP + -0xc],EAX
LAB_001b2876:
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [0x0031a1d8]
MOV EDX,dword ptr [RDX + 0x18]
SUB EDX,0x1
MOVSXD RDX,EDX
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX + 0x8],ECX
JMP 0x001b28c9
LAB_001b28a0:
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV dword ptr [RAX + 0x8],0x0
LAB_001b28c9:
JMP 0x001b28cb
LAB_001b28cb:
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV EDI,dword ptr [RAX + 0x8]
CALL 0x001b0ec0
TEST AL,0x1
JNZ 0x001b293a
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x8]
ADD EAX,dword ptr [0x0031a200]
MOV dword ptr [0x0031a200],EAX
MOV RAX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RAX + 0x18]
ADD ECX,0x1
MOV dword ptr [RAX + 0x18],ECX
LAB_001b293a:
JMP 0x001b293c
LAB_001b293c:
MOV RAX,qword ptr [0x0031a1d8]
CMP dword ptr [RAX + 0x18],0x100
JL 0x001b2958
MOV RDI,qword ptr [0x0031a1d8]
CALL 0x001b0fc0
LAB_001b2958:
MOV ECX,dword ptr [RBP + -0x4]
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [0x0031a1d8]
MOV EDX,dword ptr [RDX + 0x18]
SUB EDX,0x1
MOVSXD RDX,EDX
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX + 0xc],ECX
MOV RAX,qword ptr [0x0031a1d8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [0x0031a1d8]
MOV ECX,dword ptr [RCX + 0x18]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV dword ptr [RAX + 0x4],0x0
LAB_001b29a9:
JMP 0x001b29ab
LAB_001b29ab:
ADD RSP,0x10
POP RBP
RET
|
void rlSetTexture(int param_1)
{
ulong uVar1;
int4 local_14;
int4 local_10;
if (param_1 == 0) {
if (*(int *)(*(long *)(RLGL + 8) + (long)*(int *)(RLGL + 4) * 0x48) * 4 <= DAT_0031a200) {
rlDrawRenderBatch(RLGL);
}
}
else if (*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 0xc) !=
param_1) {
if (0 < *(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 4)) {
if (*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10) == 1) {
if (*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 4) < 4) {
local_10 = *(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 4
);
}
else {
local_10 = *(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 4
) % 4;
}
*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 8) = local_10;
}
else if (*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10) == 4) {
if (*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 4) < 4) {
local_14 = 1;
}
else {
local_14 = 4 - *(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10
+ 4) % 4;
}
*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 8) = local_14;
}
else {
*(int4 *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 8) = 0;
}
uVar1 = rlCheckRenderBatchLimit
(*(int4 *)
(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 8));
if ((uVar1 & 1) == 0) {
DAT_0031a200 = *(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 +
8) + DAT_0031a200;
*(int *)(RLGL + 0x18) = *(int *)(RLGL + 0x18) + 1;
}
}
if (0xff < *(int *)(RLGL + 0x18)) {
rlDrawRenderBatch(RLGL);
}
*(int *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 0xc) = param_1;
*(int4 *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 4) = 0;
}
return;
}
| |
41,369 | my_casedn_utf8mb3 | eloqsql/strings/ctype-utf8.c | static size_t my_casedn_utf8mb3(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->casedn_multiply == 1);
while ((src < srcend) &&
(srcres= my_utf8mb3_uni(cs, &wc, (uchar*) src, (uchar*)srcend)) > 0)
{
my_tolower_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
} | O0 | c | my_casedn_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x6e5aa
jmp 0x6e5ac
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x59(%rbp)
jae 0x6e5dc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0x6e150
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
setg %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x6e5e5
jmp 0x6e638
movq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x6f420
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0x6e180
movl %eax, -0x38(%rbp)
cmpl $0x0, %eax
jg 0x6e611
jmp 0x6e638
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x6e5ac
movq -0x20(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| my_casedn_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_58], rax
jmp short $+2
loc_6E5AA:
jmp short $+2
loc_6E5AC:
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_59], al
jnb short loc_6E5DC
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf8mb3_uni
mov [rbp+var_34], eax
cmp eax, 0
setnle al
mov [rbp+var_59], al
loc_6E5DC:
mov al, [rbp+var_59]
test al, 1
jnz short loc_6E5E5
jmp short loc_6E638
loc_6E5E5:
mov rdi, [rbp+var_58]
lea rsi, [rbp+var_30]
call my_tolower_utf8mb3
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_48]
call my_uni_utf8mb3
mov [rbp+var_38], eax
cmp eax, 0
jg short loc_6E611
jmp short loc_6E638
loc_6E611:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_38]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
jmp loc_6E5AC
loc_6E638:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_50]
sub rax, rcx
add rsp, 60h
pop rbp
retn
| _BYTE * my_casedn_utf8mb3(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6)
{
bool v7; // [rsp+7h] [rbp-59h]
long long v8; // [rsp+8h] [rbp-58h]
unsigned long long v10; // [rsp+18h] [rbp-48h]
unsigned long long v11; // [rsp+20h] [rbp-40h]
int v12; // [rsp+28h] [rbp-38h]
int v13; // [rsp+2Ch] [rbp-34h]
unsigned long long v14[2]; // [rsp+30h] [rbp-30h] BYREF
_BYTE *v15; // [rsp+40h] [rbp-20h]
long long v16; // [rsp+48h] [rbp-18h]
unsigned long long v17; // [rsp+50h] [rbp-10h]
long long v18; // [rsp+58h] [rbp-8h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14[1] = a5;
v11 = a3 + a2;
v10 = (unsigned long long)&a4[a5];
v8 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v7 = 0;
if ( v17 < v11 )
{
v13 = my_utf8mb3_uni(v18, (long long)v14, v17, v11, a5, a6);
v7 = v13 > 0;
}
if ( !v7 )
break;
my_tolower_utf8mb3(v8, v14);
v12 = my_uni_utf8mb3(v18, v14[0], v15, v10);
if ( v12 <= 0 )
break;
v17 += v13;
v15 += v12;
}
return (_BYTE *)(v15 - a4);
}
| my_casedn_utf8mb3:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0016e5aa
LAB_0016e5aa:
JMP 0x0016e5ac
LAB_0016e5ac:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x59],AL
JNC 0x0016e5dc
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x30]
CALL 0x0016e150
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
SETG AL
MOV byte ptr [RBP + -0x59],AL
LAB_0016e5dc:
MOV AL,byte ptr [RBP + -0x59]
TEST AL,0x1
JNZ 0x0016e5e5
JMP 0x0016e638
LAB_0016e5e5:
MOV RDI,qword ptr [RBP + -0x58]
LEA RSI,[RBP + -0x30]
CALL 0x0016f420
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x0016e180
MOV dword ptr [RBP + -0x38],EAX
CMP EAX,0x0
JG 0x0016e611
JMP 0x0016e638
LAB_0016e611:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0016e5ac
LAB_0016e638:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_casedn_utf8mb3(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
int8 uVar1;
bool bVar2;
int iVar3;
int local_3c;
int8 local_38;
long local_30;
long local_28;
long local_20;
ulong local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (local_18 < param_2 + param_3) {
local_3c = my_utf8mb3_uni(local_10,&local_38,local_18,param_2 + param_3);
bVar2 = 0 < local_3c;
}
if (!bVar2) break;
my_tolower_utf8mb3(uVar1,&local_38);
iVar3 = my_uni_utf8mb3(local_10,local_38,local_28,param_4 + param_5);
if (iVar3 < 1) break;
local_18 = local_18 + (long)local_3c;
local_28 = local_28 + iVar3;
}
return local_28 - param_4;
}
| |
41,370 | my_once_alloc | eloqsql/mysys/my_once.c | void* my_once_alloc(size_t Size, myf MyFlags)
{
size_t get_size, max_left;
uchar* point;
reg1 USED_MEM *next;
reg2 USED_MEM **prev;
Size= ALIGN_SIZE(Size);
prev= &my_once_root_block;
max_left=0;
for (next=my_once_root_block ; next && next->left < Size ; next= next->next)
{
if (next->left > max_left)
max_left=next->left;
prev= &next->next;
}
if (! next)
{ /* Time to alloc new block */
get_size= Size+ALIGN_SIZE(sizeof(USED_MEM));
if (max_left*4 < my_once_extra && get_size < my_once_extra)
get_size=my_once_extra; /* Normal alloc */
if ((next = (USED_MEM*) malloc(get_size)) == 0)
{
my_errno=errno;
if (MyFlags & (MY_FAE+MY_WME))
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_FATAL), get_size);
return((uchar*) 0);
}
DBUG_PRINT("test",("my_once_malloc %lu byte malloced", (ulong) get_size));
next->next= 0;
next->size= get_size;
next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM));
*prev=next;
}
point= (uchar*) ((char*) next+ (next->size-next->left));
next->left-= Size;
if (MyFlags & MY_ZEROFILL)
bzero(point, Size);
return((void*) point);
} | O3 | c | my_once_alloc:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
addq $0x7, %r14
andq $-0x8, %r14
leaq 0xb688f9(%rip), %r13 # 0xc08690
movq (%r13), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x9fdc2
movq %rcx, %r13
movq 0x8(%rcx), %rcx
cmpq %r14, %rcx
jae 0x9fe0b
cmpq %rax, %rcx
cmovaq %rcx, %rax
movq (%r13), %rcx
testq %rcx, %rcx
jne 0x9fda2
shlq $0x2, %rax
leaq 0x18(%r14), %rcx
leaq 0x2e5d63(%rip), %rdx # 0x385b30
movl (%rdx), %edx
cmpq %rdx, %rcx
movq %rdx, %r15
cmovaq %rcx, %r15
cmpq %rdx, %rax
cmovaeq %rcx, %r15
movq %r15, %rdi
callq 0x29710
testq %rax, %rax
je 0x9fe3c
movq $0x0, (%rax)
movq %r15, 0x10(%rax)
addq $-0x18, %r15
movq %r15, 0x8(%rax)
movq %rax, (%r13)
movq 0x8(%rax), %rcx
movq %rax, %r13
movq 0x10(%r13), %r12
subq %rcx, %r12
addq %r13, %r12
subq %r14, %rcx
movq %rcx, 0x8(%r13)
testb $0x20, %bl
je 0x9fe68
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x292c0
callq 0x297b0
movl (%rax), %r14d
callq 0xa1672
movl %r14d, (%rax)
xorl %r12d, %r12d
testb $0x18, %bl
je 0x9fe68
movl $0x1004, %esi # imm = 0x1004
movl $0x5, %edi
movq %r15, %rdx
xorl %eax, %eax
callq 0x9dd27
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_once_alloc:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
add r14, 7
and r14, 0FFFFFFFFFFFFFFF8h
lea r13, my_once_root_block
mov rcx, [r13+0]
xor eax, eax
test rcx, rcx
jz short loc_9FDC2
loc_9FDA2:
mov r13, rcx
mov rcx, [rcx+8]
cmp rcx, r14
jnb short loc_9FE0B
cmp rcx, rax
cmova rax, rcx
mov rcx, [r13+0]
test rcx, rcx
jnz short loc_9FDA2
shl rax, 2
loc_9FDC2:
lea rcx, [r14+18h]
lea rdx, my_once_extra
mov edx, [rdx]
cmp rcx, rdx
mov r15, rdx
cmova r15, rcx
cmp rax, rdx
cmovnb r15, rcx
mov rdi, r15
call _malloc
test rax, rax
jz short loc_9FE3C
mov qword ptr [rax], 0
mov [rax+10h], r15
add r15, 0FFFFFFFFFFFFFFE8h
mov [rax+8], r15
mov [r13+0], rax
mov rcx, [rax+8]
mov r13, rax
loc_9FE0B:
mov r12, [r13+10h]
sub r12, rcx
add r12, r13
sub rcx, r14
mov [r13+8], rcx
test bl, 20h
jz short loc_9FE68
mov rdi, r12
xor esi, esi
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
loc_9FE3C:
call ___errno_location
mov r14d, [rax]
call _my_thread_var
mov [rax], r14d
xor r12d, r12d
test bl, 18h
jz short loc_9FE68
mov esi, 1004h
mov edi, 5
mov rdx, r15
xor eax, eax
call my_error
loc_9FE68:
mov rax, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_once_alloc(long long a1, const char *a2)
{
unsigned long long v2; // r14
_QWORD *v3; // r13
_QWORD *v4; // rcx
unsigned long long v5; // rax
unsigned long long v6; // rcx
unsigned long long v7; // r15
_QWORD *v8; // rax
char *v9; // r12
int v11; // r14d
v2 = (a1 + 7) & 0xFFFFFFFFFFFFFFF8LL;
v3 = &my_once_root_block;
v4 = (_QWORD *)my_once_root_block;
v5 = 0LL;
if ( my_once_root_block )
{
while ( 1 )
{
v3 = v4;
v6 = v4[1];
if ( v6 >= v2 )
break;
if ( v6 > v5 )
v5 = v6;
v4 = (_QWORD *)*v3;
if ( !*v3 )
{
v5 *= 4LL;
goto LABEL_7;
}
}
}
else
{
LABEL_7:
v7 = my_once_extra;
if ( v2 + 24 > my_once_extra )
v7 = v2 + 24;
if ( v5 >= my_once_extra )
v7 = v2 + 24;
v8 = (_QWORD *)malloc(v7);
if ( !v8 )
{
v11 = *(_DWORD *)__errno_location(v7);
*(_DWORD *)my_thread_var(v7, a2) = v11;
v9 = 0LL;
if ( ((unsigned __int8)a2 & 0x18) != 0 )
my_error(5u, 4100LL, v7);
return (long long)v9;
}
*v8 = 0LL;
v8[2] = v7;
v8[1] = v7 - 24;
*v3 = v8;
v6 = v8[1];
v3 = v8;
}
v9 = (char *)v3 + v3[2] - v6;
v3[1] = v6 - v2;
if ( ((unsigned __int8)a2 & 0x20) != 0 )
return memset(v9, 0LL, v2);
return (long long)v9;
}
| my_once_alloc:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
ADD R14,0x7
AND R14,-0x8
LEA R13,[0xd08690]
MOV RCX,qword ptr [R13]
XOR EAX,EAX
TEST RCX,RCX
JZ 0x0019fdc2
LAB_0019fda2:
MOV R13,RCX
MOV RCX,qword ptr [RCX + 0x8]
CMP RCX,R14
JNC 0x0019fe0b
CMP RCX,RAX
CMOVA RAX,RCX
MOV RCX,qword ptr [R13]
TEST RCX,RCX
JNZ 0x0019fda2
SHL RAX,0x2
LAB_0019fdc2:
LEA RCX,[R14 + 0x18]
LEA RDX,[0x485b30]
MOV EDX,dword ptr [RDX]
CMP RCX,RDX
MOV R15,RDX
CMOVA R15,RCX
CMP RAX,RDX
CMOVNC R15,RCX
MOV RDI,R15
CALL 0x00129710
TEST RAX,RAX
JZ 0x0019fe3c
MOV qword ptr [RAX],0x0
MOV qword ptr [RAX + 0x10],R15
ADD R15,-0x18
MOV qword ptr [RAX + 0x8],R15
MOV qword ptr [R13],RAX
MOV RCX,qword ptr [RAX + 0x8]
MOV R13,RAX
LAB_0019fe0b:
MOV R12,qword ptr [R13 + 0x10]
SUB R12,RCX
ADD R12,R13
SUB RCX,R14
MOV qword ptr [R13 + 0x8],RCX
TEST BL,0x20
JZ 0x0019fe68
MOV RDI,R12
XOR ESI,ESI
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001292c0
LAB_0019fe3c:
CALL 0x001297b0
MOV R14D,dword ptr [RAX]
CALL 0x001a1672
MOV dword ptr [RAX],R14D
XOR R12D,R12D
TEST BL,0x18
JZ 0x0019fe68
MOV ESI,0x1004
MOV EDI,0x5
MOV RDX,R15
XOR EAX,EAX
CALL 0x0019dd27
LAB_0019fe68:
MOV RAX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void * my_once_alloc(long param_1,ulong param_2)
{
int iVar1;
int8 *puVar2;
ulong uVar3;
int8 *puVar4;
int *piVar5;
ulong uVar6;
ulong uVar7;
void *pvVar8;
int8 *puVar9;
ulong __n;
ulong __size;
__n = param_1 + 7U & 0xfffffffffffffff8;
uVar3 = 0;
puVar2 = my_once_root_block;
puVar9 = &my_once_root_block;
if (my_once_root_block != (int8 *)0x0) {
do {
puVar4 = puVar2;
uVar6 = puVar4[1];
if (__n <= uVar6) goto LAB_0019fe0b;
if (uVar3 < uVar6) {
uVar3 = uVar6;
}
puVar2 = (int8 *)*puVar4;
} while ((int8 *)*puVar4 != (int8 *)0x0);
uVar3 = uVar3 << 2;
puVar9 = puVar4;
}
uVar6 = __n + 0x18;
uVar7 = (ulong)my_once_extra;
__size = uVar7;
if (uVar7 < uVar6) {
__size = uVar6;
}
if (uVar7 <= uVar3) {
__size = uVar6;
}
puVar4 = (int8 *)malloc(__size);
if (puVar4 == (int8 *)0x0) {
piVar5 = __errno_location();
iVar1 = *piVar5;
piVar5 = (int *)_my_thread_var();
*piVar5 = iVar1;
pvVar8 = (void *)0x0;
if ((param_2 & 0x18) != 0) {
my_error(5,0x1004,__size);
}
}
else {
*puVar4 = 0;
puVar4[2] = __size;
puVar4[1] = __size - 0x18;
*puVar9 = puVar4;
uVar6 = puVar4[1];
LAB_0019fe0b:
pvVar8 = (void *)((puVar4[2] - uVar6) + (long)puVar4);
puVar4[1] = uVar6 - __n;
if ((param_2 & 0x20) != 0) {
pvVar8 = memset(pvVar8,0,__n);
return pvVar8;
}
}
return pvVar8;
}
| |
41,371 | run_command | eloqsql/client/mysql_upgrade.c | static int run_command(char* cmd,
DYNAMIC_STRING *ds_res)
{
char buf[512]= {0};
FILE *res_file;
int error;
if (opt_verbose >= 4)
puts(cmd);
if (!(res_file= my_popen(cmd, "r")))
die("popen(\"%s\", \"r\") failed", cmd);
while (fgets(buf, sizeof(buf), res_file))
{
#ifdef _WIN32
/* Strip '\r' off newlines. */
size_t len = strlen(buf);
if (len > 1 && buf[len - 2] == '\r' && buf[len - 1] == '\n')
{
buf[len - 2] = '\n';
buf[len - 1] = 0;
}
#endif
DBUG_PRINT("info", ("buf: %s", buf));
if(ds_res)
{
/* Save the output of this command in the supplied string */
dynstr_append(ds_res, buf);
}
else
{
/* Print it directly on screen */
fprintf(stdout, "%s", buf);
}
}
error= my_pclose(res_file);
return WEXITSTATUS(error);
} | O0 | c | run_command:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp # imm = 0x230
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
leaq -0x210(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx # imm = 0x200
callq 0x291e0
cmpl $0x4, 0x3d2c4c(%rip) # 0x3fe6cc
jb 0x2ba8e
movq -0x218(%rbp), %rdi
callq 0x295b0
movq -0x218(%rbp), %rdi
leaq 0xc36c4(%rip), %rsi # 0xef160
callq 0x290e0
movq %rax, -0x228(%rbp)
cmpq $0x0, %rax
jne 0x2bac3
movq -0x218(%rbp), %rsi
leaq 0xc130e(%rip), %rdi # 0xecdca
movb $0x0, %al
callq 0x29c50
jmp 0x2bac5
leaq -0x210(%rbp), %rdi
movq -0x228(%rbp), %rdx
movl $0x200, %esi # imm = 0x200
callq 0x295e0
cmpq $0x0, %rax
je 0x2bb27
jmp 0x2bae5
jmp 0x2bae7
cmpq $0x0, -0x220(%rbp)
je 0x2bb06
movq -0x220(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x39eb0
jmp 0x2bb25
movq 0x2184ab(%rip), %rax # 0x243fb8
movq (%rax), %rdi
leaq -0x210(%rbp), %rdx
leaq 0xc5c44(%rip), %rsi # 0xf1762
movb $0x0, %al
callq 0x294e0
jmp 0x2bac5
movq -0x228(%rbp), %rdi
callq 0x294d0
movl %eax, -0x22c(%rbp)
movzbl -0x22b(%rbp), %eax
movl %eax, -0x230(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2bb67
movl -0x230(%rbp), %eax
addq $0x230, %rsp # imm = 0x230
popq %rbp
retq
callq 0x29390
nopl (%rax)
| run_command:
push rbp
mov rbp, rsp
sub rsp, 230h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
lea rdi, [rbp+var_210]
xor esi, esi
mov edx, 200h
call _memset
cmp cs:opt_verbose, 4
jb short loc_2BA8E
mov rdi, [rbp+var_218]
call _puts
loc_2BA8E:
mov rdi, [rbp+var_218]
lea rsi, aKoi8r+4; "r"
call _popen
mov [rbp+var_228], rax
cmp rax, 0
jnz short loc_2BAC3
mov rsi, [rbp+var_218]
lea rdi, aPopenSRFailed; "popen(\"%s\", \"r\") failed"
mov al, 0
call die
loc_2BAC3:
jmp short $+2
loc_2BAC5:
lea rdi, [rbp+var_210]
mov rdx, [rbp+var_228]
mov esi, 200h
call _fgets
cmp rax, 0
jz short loc_2BB27
jmp short $+2
loc_2BAE5:
jmp short $+2
loc_2BAE7:
cmp [rbp+var_220], 0
jz short loc_2BB06
mov rdi, [rbp+var_220]
lea rsi, [rbp+var_210]
call dynstr_append
jmp short loc_2BB25
loc_2BB06:
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rdx, [rbp+var_210]
lea rsi, aAtLineDPosDS+13h; "%s"
mov al, 0
call _fprintf
loc_2BB25:
jmp short loc_2BAC5
loc_2BB27:
mov rdi, [rbp+var_228]
call _pclose
mov [rbp+var_22C], eax
movzx eax, byte ptr [rbp+var_22C+1]
mov [rbp+var_230], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2BB67
mov eax, [rbp+var_230]
add rsp, 230h
pop rbp
retn
loc_2BB67:
call ___stack_chk_fail
| long long run_command(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v13; // r9
__m128 v14; // xmm4
__m128 v15; // xmm5
char v17; // [rsp+0h] [rbp-230h]
long long v18; // [rsp+8h] [rbp-228h]
char v19[520]; // [rsp+20h] [rbp-210h] BYREF
unsigned long long v20; // [rsp+228h] [rbp-8h]
v20 = __readfsqword(0x28u);
memset(v19, 0LL, 512LL);
if ( (unsigned int)opt_verbose >= 4 )
puts(a1);
v18 = popen(a1, "r");
if ( !v18 )
die((long long)"popen(\"%s\", \"r\") failed", a1, v10, v11, v12, v13, a3, a4, a5, a6, v14, v15, a9, a10, v17);
while ( fgets(v19, 512LL, v18) )
{
if ( a2 )
dynstr_append(a2, v19);
else
fprintf(stdout, "%s", v19);
}
return (unsigned __int8)((unsigned __int16)pclose(v18) >> 8);
}
| run_command:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x230
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
LEA RDI,[RBP + -0x210]
XOR ESI,ESI
MOV EDX,0x200
CALL 0x001291e0
CMP dword ptr [0x004fe6cc],0x4
JC 0x0012ba8e
MOV RDI,qword ptr [RBP + -0x218]
CALL 0x001295b0
LAB_0012ba8e:
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[0x1ef160]
CALL 0x001290e0
MOV qword ptr [RBP + -0x228],RAX
CMP RAX,0x0
JNZ 0x0012bac3
MOV RSI,qword ptr [RBP + -0x218]
LEA RDI,[0x1ecdca]
MOV AL,0x0
CALL 0x00129c50
LAB_0012bac3:
JMP 0x0012bac5
LAB_0012bac5:
LEA RDI,[RBP + -0x210]
MOV RDX,qword ptr [RBP + -0x228]
MOV ESI,0x200
CALL 0x001295e0
CMP RAX,0x0
JZ 0x0012bb27
JMP 0x0012bae5
LAB_0012bae5:
JMP 0x0012bae7
LAB_0012bae7:
CMP qword ptr [RBP + -0x220],0x0
JZ 0x0012bb06
MOV RDI,qword ptr [RBP + -0x220]
LEA RSI,[RBP + -0x210]
CALL 0x00139eb0
JMP 0x0012bb25
LAB_0012bb06:
MOV RAX,qword ptr [0x00343fb8]
MOV RDI,qword ptr [RAX]
LEA RDX,[RBP + -0x210]
LEA RSI,[0x1f1762]
MOV AL,0x0
CALL 0x001294e0
LAB_0012bb25:
JMP 0x0012bac5
LAB_0012bb27:
MOV RDI,qword ptr [RBP + -0x228]
CALL 0x001294d0
MOV dword ptr [RBP + -0x22c],EAX
MOVZX EAX,byte ptr [RBP + -0x22b]
MOV dword ptr [RBP + -0x230],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012bb67
MOV EAX,dword ptr [RBP + -0x230]
ADD RSP,0x230
POP RBP
RET
LAB_0012bb67:
CALL 0x00129390
|
uint run_command(char *param_1,long param_2)
{
uint uVar1;
FILE *__stream;
char *pcVar2;
long in_FS_OFFSET;
char local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
memset(local_218,0,0x200);
if (3 < opt_verbose) {
puts(param_1);
}
__stream = popen(param_1,"r");
if (__stream == (FILE *)0x0) {
die("popen(\"%s\", \"r\") failed",param_1);
}
while (pcVar2 = fgets(local_218,0x200,__stream), pcVar2 != (char *)0x0) {
if (param_2 == 0) {
fprintf(*(FILE **)PTR_stdout_00343fb8,"%s",local_218);
}
else {
dynstr_append(param_2,local_218);
}
}
uVar1 = pclose(__stream);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar1 >> 8 & 0xff;
}
| |
41,372 | pixie_delete_barrier | xtate/src/pixie/pixie-threads.c | bool pixie_delete_barrier(void *p_barrier) {
#if defined(_WIN32)
BOOL is_succces;
is_succces = DeleteSynchronizationBarrier(p_barrier);
free(p_barrier);
return (bool)is_succces;
#else
int res;
res = pthread_barrier_destroy(p_barrier);
FREE(p_barrier);
return res == 0;
#endif
} | O3 | c | pixie_delete_barrier:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x159c0
movl %eax, %ebp
testq %rbx, %rbx
je 0x26573
movq %rbx, %rdi
callq 0x151e0
testl %ebp, %ebp
sete %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| pixie_delete_barrier:
push rbp
push rbx
push rax
mov rbx, rdi
call _pthread_barrier_destroy
mov ebp, eax
test rbx, rbx
jz short loc_26573
mov rdi, rbx
call _free
loc_26573:
test ebp, ebp
setz al
add rsp, 8
pop rbx
pop rbp
retn
| bool pixie_delete_barrier(long long a1)
{
int v1; // ebp
v1 = pthread_barrier_destroy(a1);
if ( a1 )
free(a1);
return v1 == 0;
}
| pixie_delete_barrier:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x001159c0
MOV EBP,EAX
TEST RBX,RBX
JZ 0x00126573
MOV RDI,RBX
CALL 0x001151e0
LAB_00126573:
TEST EBP,EBP
SETZ AL
ADD RSP,0x8
POP RBX
POP RBP
RET
|
bool pixie_delete_barrier(pthread_barrier_t *param_1)
{
int iVar1;
iVar1 = pthread_barrier_destroy(param_1);
if (param_1 != (pthread_barrier_t *)0x0) {
free(param_1);
}
return iVar1 == 0;
}
| |
41,373 | ma_init_dynamic_string | eloqsql/libmariadb/libmariadb/ma_string.c | my_bool ma_init_dynamic_string(DYNAMIC_STRING *str, const char *init_str,
size_t init_alloc, size_t alloc_increment)
{
uint length;
if (!alloc_increment)
alloc_increment=128;
length=1;
if (init_str && (length= (uint) strlen(init_str)+1) < init_alloc)
init_alloc=((length+alloc_increment-1)/alloc_increment)*alloc_increment;
if (!init_alloc)
init_alloc=alloc_increment;
if (!(str->str=(char*) malloc(init_alloc)))
return(TRUE);
str->length=length-1;
if (init_str)
memcpy(str->str,init_str,length);
str->max_length=init_alloc;
str->alloc_increment=alloc_increment;
return(FALSE);
} | O0 | c | ma_init_dynamic_string:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x31797
movq $0x80, -0x28(%rbp)
movl $0x1, -0x2c(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x317d8
movq -0x18(%rbp), %rdi
callq 0x131a0
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl %eax, %eax
cmpq -0x20(%rbp), %rax
jae 0x317d8
movl -0x2c(%rbp), %eax
addq -0x28(%rbp), %rax
subq $0x1, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x28(%rbp)
imulq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x317e7
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x135b0
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x31803
movb $0x1, -0x1(%rbp)
jmp 0x3184d
movl -0x2c(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x31831
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, %edx
callq 0x13360
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_init_dynamic_string:
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
cmp [rbp+var_28], 0
jnz short loc_31797
mov [rbp+var_28], 80h
loc_31797:
mov [rbp+var_2C], 1
cmp [rbp+var_18], 0
jz short loc_317D8
mov rdi, [rbp+var_18]
call _strlen
add eax, 1
mov [rbp+var_2C], eax
mov eax, eax
cmp rax, [rbp+var_20]
jnb short loc_317D8
mov eax, [rbp+var_2C]
add rax, [rbp+var_28]
sub rax, 1
xor ecx, ecx
mov edx, ecx
div [rbp+var_28]
imul rax, [rbp+var_28]
mov [rbp+var_20], rax
loc_317D8:
cmp [rbp+var_20], 0
jnz short loc_317E7
mov rax, [rbp+var_28]
mov [rbp+var_20], rax
loc_317E7:
mov rdi, [rbp+var_20]
call _malloc
mov rcx, [rbp+var_10]
mov [rcx], rax
cmp rax, 0
jnz short loc_31803
mov [rbp+var_1], 1
jmp short loc_3184D
loc_31803:
mov eax, [rbp+var_2C]
sub eax, 1
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax+8], rcx
cmp [rbp+var_18], 0
jz short loc_31831
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rsi, [rbp+var_18]
mov eax, [rbp+var_2C]
mov edx, eax
call _memcpy
loc_31831:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov [rbp+var_1], 0
loc_3184D:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char ma_init_dynamic_string(long long *a1, long long a2, unsigned long long a3, unsigned long long a4)
{
long long v4; // rax
unsigned int v6; // [rsp+4h] [rbp-2Ch]
unsigned long long v7; // [rsp+8h] [rbp-28h]
v7 = a4;
if ( !a4 )
v7 = 128LL;
v6 = 1;
if ( a2 )
{
v6 = strlen(a2) + 1;
if ( v6 < a3 )
a3 = v7 * ((v7 + v6 - 1) / v7);
}
if ( !a3 )
a3 = v7;
v4 = malloc(a3);
*a1 = v4;
if ( !v4 )
return 1;
a1[1] = v6 - 1;
if ( a2 )
memcpy(*a1, a2, v6);
a1[2] = a3;
a1[3] = v7;
return 0;
}
| ma_init_dynamic_string:
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
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x00131797
MOV qword ptr [RBP + -0x28],0x80
LAB_00131797:
MOV dword ptr [RBP + -0x2c],0x1
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001317d8
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001131a0
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,EAX
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001317d8
MOV EAX,dword ptr [RBP + -0x2c]
ADD RAX,qword ptr [RBP + -0x28]
SUB RAX,0x1
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x28]
IMUL RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
LAB_001317d8:
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x001317e7
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
LAB_001317e7:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001135b0
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x00131803
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013184d
LAB_00131803:
MOV EAX,dword ptr [RBP + -0x2c]
SUB EAX,0x1
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00131831
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDX,EAX
CALL 0x00113360
LAB_00131831:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV byte ptr [RBP + -0x1],0x0
LAB_0013184d:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 ma_init_dynamic_string(int8 *param_1,char *param_2,ulong param_3,ulong param_4)
{
size_t sVar1;
void *pvVar2;
uint local_34;
ulong local_30;
ulong local_28;
int1 local_9;
local_30 = param_4;
if (param_4 == 0) {
local_30 = 0x80;
}
local_34 = 1;
local_28 = param_3;
if (param_2 != (char *)0x0) {
sVar1 = strlen(param_2);
local_34 = (int)sVar1 + 1;
if (local_34 < param_3) {
local_28 = (((local_34 + local_30) - 1) / local_30) * local_30;
}
}
if (local_28 == 0) {
local_28 = local_30;
}
pvVar2 = malloc(local_28);
*param_1 = pvVar2;
if (pvVar2 == (void *)0x0) {
local_9 = 1;
}
else {
param_1[1] = (ulong)(local_34 - 1);
if (param_2 != (char *)0x0) {
memcpy((void *)*param_1,param_2,(ulong)local_34);
}
param_1[2] = local_28;
param_1[3] = local_30;
local_9 = 0;
}
return local_9;
}
| |
41,374 | ma_keydef_write | eloqsql/storage/maria/ma_open.c | my_bool _ma_keydef_write(File file, MARIA_KEYDEF *keydef)
{
uchar buff[MARIA_KEYDEF_SIZE];
uchar *ptr=buff;
*ptr++= (uchar) keydef->keysegs;
*ptr++= keydef->key_alg; /* Rtree or Btree */
mi_int2store(ptr,keydef->flag); ptr+= 2;
mi_int2store(ptr,keydef->block_length); ptr+= 2;
mi_int2store(ptr,keydef->keylength); ptr+= 2;
mi_int2store(ptr,keydef->minlength); ptr+= 2;
mi_int2store(ptr,keydef->maxlength); ptr+= 2;
return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
} | O0 | c | ma_keydef_write:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
leaq -0x14(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
movb 0xa0(%rax), %dl
movq -0x28(%rbp), %rax
movq %rax, %rsi
incq %rsi
movq %rsi, -0x28(%rbp)
movb %dl, (%rax)
movq -0x20(%rbp), %rax
movb 0xa4(%rax), %dl
movq -0x28(%rbp), %rax
movq %rax, %rsi
incq %rsi
movq %rsi, -0x28(%rbp)
movb %dl, (%rax)
movq -0x20(%rbp), %rax
movzwl 0xa2(%rax), %eax
movl %eax, -0x2c(%rbp)
movb -0x2c(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x2b(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, (%rax)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movzwl 0xa6(%rax), %eax
movl %eax, -0x30(%rbp)
movb -0x30(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x2f(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, (%rax)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movzwl 0xaa(%rax), %eax
movl %eax, -0x34(%rbp)
movb -0x34(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x33(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, (%rax)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movzwl 0xac(%rax), %eax
movl %eax, -0x38(%rbp)
movb -0x38(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x37(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, (%rax)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movzwl 0xae(%rax), %eax
movl %eax, -0x3c(%rbp)
movb -0x3c(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x3b(%rbp), %dl
movq -0x28(%rbp), %rax
movb %dl, (%rax)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %r8
subq %rcx, %r8
leaq 0xea300(%rip), %rdi # 0x1528fa
movl $0x707, %esi # imm = 0x707
movl $0x4, %r9d
callq 0x67440
testq %rax, %rax
setne %al
movb %al, -0x3d(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x6862e
movb -0x3d(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
callq 0x2a270
nopw %cs:(%rax,%rax)
| _ma_keydef_write:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_18], edi
mov [rbp+var_20], rsi
lea rcx, [rbp+var_14]
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
mov dl, [rax+0A0h]
mov rax, [rbp+var_28]
mov rsi, rax
inc rsi
mov [rbp+var_28], rsi
mov [rax], dl
mov rax, [rbp+var_20]
mov dl, [rax+0A4h]
mov rax, [rbp+var_28]
mov rsi, rax
inc rsi
mov [rbp+var_28], rsi
mov [rax], dl
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+0A2h]
mov [rbp+var_2C], eax
mov dl, byte ptr [rbp+var_2C]
mov rax, [rbp+var_28]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_2C+1]
mov rax, [rbp+var_28]
mov [rax], dl
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+0A6h]
mov [rbp+var_30], eax
mov dl, byte ptr [rbp+var_30]
mov rax, [rbp+var_28]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_30+1]
mov rax, [rbp+var_28]
mov [rax], dl
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+0AAh]
mov [rbp+var_34], eax
mov dl, byte ptr [rbp+var_34]
mov rax, [rbp+var_28]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_34+1]
mov rax, [rbp+var_28]
mov [rax], dl
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+0ACh]
mov [rbp+var_38], eax
mov dl, byte ptr [rbp+var_38]
mov rax, [rbp+var_28]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_38+1]
mov rax, [rbp+var_28]
mov [rax], dl
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+0AEh]
mov [rbp+var_3C], eax
mov dl, byte ptr [rbp+var_3C]
mov rax, [rbp+var_28]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_3C+1]
mov rax, [rbp+var_28]
mov [rax], dl
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
mov edx, [rbp+var_18]
mov r8, [rbp+var_28]
sub r8, rcx
lea rdi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 707h
mov r9d, 4
call inline_mysql_file_write_0
test rax, rax
setnz al
mov [rbp+var_3D], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_6862E
mov al, [rbp+var_3D]
add rsp, 40h
pop rbp
retn
loc_6862E:
call ___stack_chk_fail
| bool ma_keydef_write(unsigned int a1, long long a2)
{
__int16 v2; // kr00_2
__int16 v3; // kr02_2
__int16 v4; // kr04_2
__int16 v5; // kr06_2
__int16 v6; // kr08_2
_BYTE v8[12]; // [rsp+2Ch] [rbp-14h] BYREF
unsigned long long v9; // [rsp+38h] [rbp-8h]
v9 = __readfsqword(0x28u);
v8[0] = *(_BYTE *)(a2 + 160);
v8[1] = *(_BYTE *)(a2 + 164);
v2 = *(_WORD *)(a2 + 162);
v8[2] = HIBYTE(v2);
v8[3] = v2;
v3 = *(_WORD *)(a2 + 166);
v8[4] = HIBYTE(v3);
v8[5] = v3;
v4 = *(_WORD *)(a2 + 170);
v8[6] = HIBYTE(v4);
v8[7] = v4;
v5 = *(_WORD *)(a2 + 172);
v8[8] = HIBYTE(v5);
v8[9] = v5;
v6 = *(_WORD *)(a2 + 174);
v8[10] = HIBYTE(v6);
v8[11] = v6;
return inline_mysql_file_write_0(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
0x707u,
a1,
(long long)v8,
12LL,
4LL) != 0;
}
| _ma_keydef_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x18],EDI
MOV qword ptr [RBP + -0x20],RSI
LEA RCX,[RBP + -0x14]
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV DL,byte ptr [RAX + 0xa0]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,RAX
INC RSI
MOV qword ptr [RBP + -0x28],RSI
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x20]
MOV DL,byte ptr [RAX + 0xa4]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,RAX
INC RSI
MOV qword ptr [RBP + -0x28],RSI
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0xa2]
MOV dword ptr [RBP + -0x2c],EAX
MOV DL,byte ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x2b]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0xa6]
MOV dword ptr [RBP + -0x30],EAX
MOV DL,byte ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x2f]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0xaa]
MOV dword ptr [RBP + -0x34],EAX
MOV DL,byte ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x33]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0xac]
MOV dword ptr [RBP + -0x38],EAX
MOV DL,byte ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x37]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0xae]
MOV dword ptr [RBP + -0x3c],EAX
MOV DL,byte ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x3b]
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
MOV EDX,dword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x28]
SUB R8,RCX
LEA RDI,[0x2528fa]
MOV ESI,0x707
MOV R9D,0x4
CALL 0x00167440
TEST RAX,RAX
SETNZ AL
MOV byte ptr [RBP + -0x3d],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0016862e
MOV AL,byte ptr [RBP + -0x3d]
ADD RSP,0x40
POP RBP
RET
LAB_0016862e:
CALL 0x0012a270
|
int8 _ma_keydef_write(int4 param_1,long param_2)
{
long lVar1;
long in_FS_OFFSET;
int1 local_44;
int1 uStack_43;
int1 local_40;
int1 uStack_3f;
int1 local_3c;
int1 uStack_3b;
int1 local_38;
int1 uStack_37;
int1 local_34;
int1 uStack_33;
int1 local_1c;
int1 local_1b;
int1 local_1a;
int1 local_19;
int1 local_18;
int1 local_17;
int1 local_16;
int1 local_15;
int1 local_14;
int1 local_13;
int1 local_12;
int1 local_11;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_1c = *(int1 *)(param_2 + 0xa0);
local_1b = *(int1 *)(param_2 + 0xa4);
local_34 = (int1)*(int2 *)(param_2 + 0xa2);
local_19 = local_34;
uStack_33 = (int1)((ushort)*(int2 *)(param_2 + 0xa2) >> 8);
local_1a = uStack_33;
local_38 = (int1)*(int2 *)(param_2 + 0xa6);
local_17 = local_38;
uStack_37 = (int1)((ushort)*(int2 *)(param_2 + 0xa6) >> 8);
local_18 = uStack_37;
local_3c = (int1)*(int2 *)(param_2 + 0xaa);
local_15 = local_3c;
uStack_3b = (int1)((ushort)*(int2 *)(param_2 + 0xaa) >> 8);
local_16 = uStack_3b;
local_40 = (int1)*(int2 *)(param_2 + 0xac);
local_13 = local_40;
uStack_3f = (int1)((ushort)*(int2 *)(param_2 + 0xac) >> 8);
local_14 = uStack_3f;
local_44 = (int1)*(int2 *)(param_2 + 0xae);
local_11 = local_44;
uStack_43 = (int1)((ushort)*(int2 *)(param_2 + 0xae) >> 8);
local_12 = uStack_43;
lVar1 = inline_mysql_file_write
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",0x707,
param_1,&local_1c,(long)&local_10 - (long)&local_1c,4);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),lVar1 != 0);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
41,375 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const | monkey531[P]llama/common/json.hpp | const_reference at(KeyType && key) const
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return it->second;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0x7c089
movq %rsi, %r15
movq 0x8(%r14), %rdi
callq 0x7f818
movq 0x8(%r14), %rcx
cmpq 0x8(%rcx), %rax
je 0x7c0e7
addq $0x20, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x23470
movq %rax, %rbx
movq %r14, %rdi
callq 0x445e8
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x39f77(%rip), %rsi # 0xb6022
leaq 0x8(%rsp), %rdi
callq 0x7ee3d
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x644da
xorl %ebp, %ebp
leaq 0x80e62(%rip), %rsi # 0xfcf38
leaq -0x3af65(%rip), %rdx # 0x41178
movq %rbx, %rdi
callq 0x23f00
jmp 0x7c151
pushq $0x20
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0x27d88
leaq 0x39f47(%rip), %rsi # 0xb6052
leaq 0x39f46(%rip), %rcx # 0xb6058
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x7f447
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x7f8b2
xorl %ebp, %ebp
leaq 0x80d76(%rip), %rsi # 0xfceb8
leaq -0x3afd1(%rip), %rdx # 0x41178
movq %rbx, %rdi
callq 0x23f00
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x241c8
jmp 0x7c166
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
jmp 0x7c177
jmp 0x7c183
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x241c8
testb %bpl, %bpl
jne 0x7c186
jmp 0x7c18e
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23f80
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push rbx; int
sub rsp, 48h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_7C089
mov r15, rsi
mov rdi, [r14+8]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
mov rcx, [r14+8]
cmp rax, [rcx+8]
jz short loc_7C0E7
add rax, 20h ; ' '
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_7C089:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+68h+var_40]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+68h+var_60]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_7C151
loc_7C0E7:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_61]
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+68h+var_60]
lea rdx, [rsp+68h+var_40]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_7C151:
mov r14, rax
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_7C166
mov r14, rax
mov bpl, 1
loc_7C166:
lea rdi, [rsp+68h+var_40]
jmp short loc_7C177
jmp short loc_7C183
mov r14, rax
lea rdi, [rsp+68h+var_60]; void *
loc_7C177:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_7C186
jmp short loc_7C18E
loc_7C183:
mov r14, rax
loc_7C186:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_7C18E:
mov rdi, r14
call __Unwind_Resume
| long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
long long a1,
long long a2)
{
long long v2; // rax
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx
char v6; // [rsp+0h] [rbp-68h]
int v7[6]; // [rsp+8h] [rbp-60h] BYREF
char v8; // [rsp+20h] [rbp-48h]
const char *v9; // [rsp+28h] [rbp-40h] BYREF
int v10; // [rsp+30h] [rbp-38h]
int v11; // [rsp+38h] [rbp-30h]
char v12; // [rsp+40h] [rbp-28h]
int v13; // [rsp+48h] [rbp-20h]
int v14; // [rsp+50h] [rbp-18h]
int v15; // [rsp+58h] [rbp-10h]
char v16; // [rsp+60h] [rbp-8h]
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
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>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v7, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
304,
(long long)v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(_QWORD *)(a1 + 8));
if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) )
{
v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL);
std::string::basic_string<std::allocator<char>>(&v9, a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
v7,
"key '",
&v9,
"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
v5,
403,
v6,
v7[0],
v7[2],
v7[4],
v8,
(int)v9,
v10,
v11,
v12,
v13,
v14,
v15,
v16);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v2 + 32;
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x0017c089
MOV R15,RSI
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x0017f818
MOV RCX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x0017c0e7
ADD RAX,0x20
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0017c089:
PUSH 0x20
POP RDI
CALL 0x00123470
MOV RBX,RAX
MOV RDI,R14
CALL 0x001445e8
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],RAX
LAB_0017c0a4:
LEA RSI,[0x1b6022]
LEA RDI,[RSP + 0x8]
CALL 0x0017ee3d
MOV BPL,0x1
LAB_0017c0b8:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x001644da
XOR EBP,EBP
LEA RSI,[0x1fcf38]
LEA RDX,[0x141178]
MOV RDI,RBX
CALL 0x00123f00
LAB_0017c0e7:
PUSH 0x20
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0017c0f2:
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
MOV RSI,R15
CALL 0x00127d88
LAB_0017c104:
LEA RSI,[0x1b6052]
LEA RCX,[0x1b6058]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x0017f447
MOV BPL,0x1
LAB_0017c124:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x0017f8b2
XOR EBP,EBP
LEA RSI,[0x1fceb8]
LEA RDX,[0x141178]
MOV RDI,RBX
CALL 0x00123f00
|
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
long lVar1;
int8 uVar2;
allocator local_61;
detail local_60 [32];
char *local_40 [4];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar2 = __cxa_allocate_exception(0x20);
local_40[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 0017c0a4 to 0017c0b4 has its CatchHandler @ 0017c183 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(local_60,"cannot use at() with ",local_40);
/* try { // try from 0017c0b8 to 0017c0e4 has its CatchHandler @ 0017c16f */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x130,local_60,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(*(int8 *)(param_1 + 8));
if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) {
return lVar1 + 0x20;
}
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 0017c0f2 to 0017c103 has its CatchHandler @ 0017c16d */
std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61);
/* try { // try from 0017c104 to 0017c120 has its CatchHandler @ 0017c160 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(local_60,"key \'",(string *)local_40,"\' not found");
/* try { // try from 0017c124 to 0017c150 has its CatchHandler @ 0017c151 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x193,local_60,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
| |
41,376 | my_uca_alloc_contractions | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_alloc_contractions(MY_CONTRACTIONS *contractions,
MY_CHARSET_LOADER *loader, size_t n)
{
size_t size= n * sizeof(MY_CONTRACTION);
if (!(contractions->item= (loader->once_alloc)(size)) ||
!(contractions->flags= (char *) (loader->once_alloc)(MY_UCA_CNT_FLAG_SIZE)))
return 1;
memset(contractions->item, 0, size);
memset(contractions->flags, 0, MY_UCA_CNT_FLAG_SIZE);
return 0;
} | O0 | c | my_uca_alloc_contractions:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
imulq $0x58, -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x28(%rbp), %rdi
callq *%rax
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
je 0xa1509
movq -0x18(%rbp), %rax
movl $0x1000, %edi # imm = 0x1000
callq *0x80(%rax)
movq -0x10(%rbp), %rcx
movq %rax, 0x10(%rcx)
cmpq $0x0, %rax
jne 0xa150f
movb $0x1, -0x1(%rbp)
jmp 0xa153a
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x28(%rbp), %rdx
xorl %esi, %esi
callq 0x362e0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
xorl %esi, %esi
movl $0x1000, %edx # imm = 0x1000
callq 0x362e0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_alloc_contractions:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
imul rax, [rbp+var_20], 58h ; 'X'
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov rax, [rax+80h]
mov rdi, [rbp+var_28]
call rax
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jz short loc_A1509
mov rax, [rbp+var_18]
mov edi, 1000h
call qword ptr [rax+80h]
mov rcx, [rbp+var_10]
mov [rcx+10h], rax
cmp rax, 0
jnz short loc_A150F
loc_A1509:
mov [rbp+var_1], 1
jmp short loc_A153A
loc_A150F:
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rdx, [rbp+var_28]
xor esi, esi
call _memset
mov rax, [rbp+var_10]
mov rdi, [rax+10h]
xor esi, esi
mov edx, 1000h
call _memset
mov [rbp+var_1], 0
loc_A153A:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_uca_alloc_contractions(long long a1, long long a2, long long a3)
{
long long v3; // rax
long long v4; // rax
long long v6; // [rsp+8h] [rbp-28h]
v6 = 88 * a3;
v3 = (*(long long ( **)(long long))(a2 + 128))(88 * a3);
*(_QWORD *)(a1 + 8) = v3;
if ( !v3 )
return 1;
v4 = (*(long long ( **)(long long))(a2 + 128))(4096LL);
*(_QWORD *)(a1 + 16) = v4;
if ( !v4 )
return 1;
memset(*(_QWORD *)(a1 + 8), 0LL, v6);
memset(*(_QWORD *)(a1 + 16), 0LL, 4096LL);
return 0;
}
| my_uca_alloc_contractions:
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
IMUL RAX,qword ptr [RBP + -0x20],0x58
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x28]
CALL RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JZ 0x001a1509
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,0x1000
CALL qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x10],RAX
CMP RAX,0x0
JNZ 0x001a150f
LAB_001a1509:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001a153a
LAB_001a150f:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
XOR ESI,ESI
CALL 0x001362e0
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x10]
XOR ESI,ESI
MOV EDX,0x1000
CALL 0x001362e0
MOV byte ptr [RBP + -0x1],0x0
LAB_001a153a:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_alloc_contractions(long param_1,long param_2,long param_3)
{
long lVar1;
lVar1 = (**(code **)(param_2 + 0x80))(param_3 * 0x58);
*(long *)(param_1 + 8) = lVar1;
if (lVar1 != 0) {
lVar1 = (**(code **)(param_2 + 0x80))(0x1000);
*(long *)(param_1 + 0x10) = lVar1;
if (lVar1 != 0) {
memset(*(void **)(param_1 + 8),0,param_3 * 0x58);
memset(*(void **)(param_1 + 0x10),0,0x1000);
return 0;
}
}
return 1;
}
| |
41,377 | HeapGetStats | seiftnesse[P]memoryallocator/src/custom_alloc_stats.c | void HeapGetStats(size_t *allocated, size_t *freed, size_t *count, size_t *peak) {
if (allocated) *allocated = allocation_stats.total_allocated;
if (freed) *freed = allocation_stats.total_freed;
if (count) *count = allocation_stats.allocation_count;
if (peak) *peak = allocation_stats.peak_allocation;
HEAP_LOG("Stats queried: allocated=%zu, freed=%zu, count=%zu, peak=%zu\n",
allocation_stats.total_allocated, allocation_stats.total_freed,
allocation_stats.allocation_count, allocation_stats.peak_allocation);
} | O1 | c | HeapGetStats:
testq %rdi, %rdi
je 0x11e23
movq 0x414bf40(%rip), %rax # 0x415dd60
movq %rax, (%rdi)
testq %rsi, %rsi
je 0x11e32
movq 0x414bf39(%rip), %rax # 0x415dd68
movq %rax, (%rsi)
testq %rdx, %rdx
je 0x11e41
movq 0x414bf32(%rip), %rax # 0x415dd70
movq %rax, (%rdx)
testq %rcx, %rcx
je 0x11e50
movq 0x414bf2b(%rip), %rax # 0x415dd78
movq %rax, (%rcx)
retq
| HeapGetStats:
test rdi, rdi
jz short loc_11E23
mov rax, cs:allocation_stats
mov [rdi], rax
loc_11E23:
test rsi, rsi
jz short loc_11E32
mov rax, cs:qword_415DD68
mov [rsi], rax
loc_11E32:
test rdx, rdx
jz short loc_11E41
mov rax, cs:qword_415DD70
mov [rdx], rax
loc_11E41:
test rcx, rcx
jz short locret_11E50
mov rax, cs:qword_415DD78
mov [rcx], rax
locret_11E50:
retn
| long long HeapGetStats(_QWORD *a1, _QWORD *a2, _QWORD *a3, _QWORD *a4)
{
long long result; // rax
if ( a1 )
{
result = allocation_stats;
*a1 = allocation_stats;
}
if ( a2 )
{
result = qword_415DD68;
*a2 = qword_415DD68;
}
if ( a3 )
{
result = qword_415DD70;
*a3 = qword_415DD70;
}
if ( a4 )
{
result = qword_415DD78;
*a4 = qword_415DD78;
}
return result;
}
| HeapGetStats:
TEST RDI,RDI
JZ 0x00111e23
MOV RAX,qword ptr [0x0425dd60]
MOV qword ptr [RDI],RAX
LAB_00111e23:
TEST RSI,RSI
JZ 0x00111e32
MOV RAX,qword ptr [0x0425dd68]
MOV qword ptr [RSI],RAX
LAB_00111e32:
TEST RDX,RDX
JZ 0x00111e41
MOV RAX,qword ptr [0x0425dd70]
MOV qword ptr [RDX],RAX
LAB_00111e41:
TEST RCX,RCX
JZ 0x00111e50
MOV RAX,qword ptr [0x0425dd78]
MOV qword ptr [RCX],RAX
LAB_00111e50:
RET
|
void HeapGetStats(int8 *param_1,int8 *param_2,int8 *param_3,int8 *param_4)
{
if (param_1 != (int8 *)0x0) {
*param_1 = allocation_stats;
}
if (param_2 != (int8 *)0x0) {
*param_2 = DAT_0425dd68;
}
if (param_3 != (int8 *)0x0) {
*param_3 = DAT_0425dd70;
}
if (param_4 != (int8 *)0x0) {
*param_4 = DAT_0425dd78;
}
return;
}
| |
41,378 | dirname_length | eloqsql/mysys/mf_dirname.c | size_t dirname_length(const char *name)
{
register char *pos, *gpos;
#ifdef BASKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
#ifdef FN_DEVCHAR
if ((pos=(char*)strrchr(name,FN_DEVCHAR)) == 0)
#endif
pos=(char*) name-1;
gpos= pos++;
for ( ; *pos ; pos++) /* Find last FN_LIBCHAR */
{
#ifdef BASKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3)))
{
pos+= l - 1;
continue;
}
#endif
if (*pos == FN_LIBCHAR || *pos == '/')
gpos=pos;
}
return (size_t) (gpos+1-(char*) name);
} | O0 | c | dirname_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0xdf680
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
je 0xdf668
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xdf670
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xdf672
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0xdf647
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| dirname_length:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov [rbp+var_18], rax
loc_DF647:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_DF680
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jz short loc_DF668
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_DF670
loc_DF668:
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
loc_DF670:
jmp short $+2
loc_DF672:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_DF647
loc_DF680:
mov rax, [rbp+var_18]
add rax, 1
mov rcx, [rbp+var_8]
sub rax, rcx
pop rbp
retn
| long long dirname_length(_BYTE *a1)
{
_BYTE *v2; // [rsp+0h] [rbp-18h]
_BYTE *v3; // [rsp+8h] [rbp-10h]
v3 = a1;
v2 = a1 - 1;
while ( *v3 )
{
if ( *v3 == 47 )
v2 = v3;
++v3;
}
return v2 + 1 - a1;
}
| dirname_length:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_001df647:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x001df680
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JZ 0x001df668
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001df670
LAB_001df668:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
LAB_001df670:
JMP 0x001df672
LAB_001df672:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001df647
LAB_001df680:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
POP RBP
RET
|
char * dirname_length(char *param_1)
{
char *local_20;
char *local_18;
local_20 = param_1 + -1;
for (local_18 = param_1; *local_18 != '\0'; local_18 = local_18 + 1) {
if ((*local_18 == '/') || (*local_18 == '/')) {
local_20 = local_18;
}
}
return local_20 + (1 - (long)param_1);
}
| |
41,379 | nglog::tools::ShutdownLoggingUtilities() | ng-log[P]ng-log/src/utilities.cc | bool IsLoggingInitialized() {
return g_program_invocation_short_name != nullptr;
} | O1 | cpp | nglog::tools::ShutdownLoggingUtilities():
pushq %rbx
subq $0x60, %rsp
cmpq $0x0, 0x1f904(%rip) # 0x42ae0
je 0x231f3
movq $0x0, 0x1f8f7(%rip) # 0x42ae0
addq $0x60, %rsp
popq %rbx
jmp 0x74e0
leaq 0x2db2(%rip), %rsi # 0x25fac
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x134, %edx # imm = 0x134
callq 0xfd78
movq %rbx, %rdi
callq 0xc4ea
movq %rax, %rbx
leaq 0x2e26(%rip), %rsi # 0x26042
movl $0x25, %edx
movq %rax, %rdi
callq 0x75c0
leaq 0x2e38(%rip), %rsi # 0x26068
movl $0x47, %edx
movq %rbx, %rdi
callq 0x75c0
movq %rsp, %rdi
callq 0xfdbc
movq %rsp, %rdi
callq 0xfdbc
movq %rax, %rdi
callq 0x9ebd
| _ZN5nglog5tools24ShutdownLoggingUtilitiesEv:
push rbx
sub rsp, 60h
cmp cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
jz short loc_231F3
mov cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
add rsp, 60h
pop rbx
jmp _closelog
loc_231F3:
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov rbx, rsp
mov rdi, rbx; this
mov edx, 134h; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov rbx, rax
lea rsi, aCheckFailedIsl_0; "Check failed: IsLoggingInitialized() "
mov edx, 25h ; '%'
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)
lea rsi, aYouCalledShutd; "You called ShutdownLogging() without ca"...
mov edx, 47h ; 'G'
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 rdi, rsp; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rsp; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rax
call __clang_call_terminate
| long long nglog::tools::ShutdownLoggingUtilities(nglog::tools *this)
{
long long v2; // rbx
_BYTE v3[104]; // [rsp+0h] [rbp-68h] BYREF
if ( !nglog::g_program_invocation_short_name )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v3,
(nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
308);
v2 = nglog::LogMessage::stream((nglog::LogMessage *)v3);
std::__ostream_insert<char,std::char_traits<char>>(v2, "Check failed: IsLoggingInitialized() ", 37LL);
std::__ostream_insert<char,std::char_traits<char>>(
v2,
"You called ShutdownLogging() without calling InitializeLogging() first!",
71LL);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v3);
}
nglog::g_program_invocation_short_name = 0LL;
return closelog(this);
}
| ShutdownLoggingUtilities:
PUSH RBX
SUB RSP,0x60
CMP qword ptr [0x00142ae0],0x0
JZ 0x001231f3
MOV qword ptr [0x00142ae0],0x0
ADD RSP,0x60
POP RBX
JMP 0x001074e0
LAB_001231f3:
LEA RSI,[0x125fac]
MOV RBX,RSP
MOV RDI,RBX
MOV EDX,0x134
CALL 0x0010fd78
LAB_0012320a:
MOV RDI,RBX
CALL 0x0010c4ea
MOV RBX,RAX
LEA RSI,[0x126042]
MOV EDX,0x25
MOV RDI,RAX
CALL 0x001075c0
LEA RSI,[0x126068]
MOV EDX,0x47
MOV RDI,RBX
CALL 0x001075c0
LAB_0012323d:
MOV RDI,RSP
CALL 0x0010fdbc
LAB_00123245:
MOV RDI,RSP
CALL 0x0010fdbc
LAB_0012324d:
MOV RDI,RAX
CALL 0x00109ebd
|
/* nglog::tools::ShutdownLoggingUtilities() */
void nglog::tools::ShutdownLoggingUtilities(void)
{
ostream *poVar1;
int8 uVar2;
LogMessageFatal aLStack_68 [96];
if (g_program_invocation_short_name != 0) {
g_program_invocation_short_name = 0;
closelog();
return;
}
LogMessageFatal::LogMessageFatal
(aLStack_68,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
0x134);
/* try { // try from 0012320a to 0012323c has its CatchHandler @ 00123245 */
poVar1 = (ostream *)LogMessage::stream((LogMessage *)aLStack_68);
std::__ostream_insert<char,std::char_traits<char>>
(poVar1,"Check failed: IsLoggingInitialized() ",0x25);
std::__ostream_insert<char,std::char_traits<char>>
(poVar1,"You called ShutdownLogging() without calling InitializeLogging() first!",0x47);
LogMessageFatal::~LogMessageFatal(aLStack_68);
/* catch(type#1 @ 00000000) { ... } // from try @ 0012320a with catch @ 00123245
try { // try from 00123245 to 0012324c has its CatchHandler @ 0012324d */
uVar2 = LogMessageFatal::~LogMessageFatal(aLStack_68);
/* catch(type#1 @ 00000000) { ... } // from try @ 00123245 with catch @ 0012324d
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar2);
}
| |
41,380 | nglog::tools::ShutdownLoggingUtilities() | ng-log[P]ng-log/src/utilities.cc | bool IsLoggingInitialized() {
return g_program_invocation_short_name != nullptr;
} | O2 | cpp | nglog::tools::ShutdownLoggingUtilities():
pushq %rbx
subq $0x60, %rsp
cmpq $0x0, 0x227b7(%rip) # 0x40b40
jne 0x1e3a8
callq 0x1e301
movq %rax, 0x227a9(%rip) # 0x40b40
leaq 0x5f(%rip), %rdi # 0x1e3fd
addq $0x60, %rsp
popq %rbx
jmp 0xbec3
leaq 0x2bf1(%rip), %rsi # 0x20fa0
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x12b, %edx # imm = 0x12B
callq 0xdd12
movq %rbx, %rdi
callq 0xb64a
leaq 0x2c1b(%rip), %rsi # 0x20fe9
movq %rax, %rdi
callq 0x7560
leaq 0x2c33(%rip), %rsi # 0x21010
movq %rax, %rdi
callq 0x7560
movq %rsp, %rdi
callq 0xdd20
movq %rsp, %rdi
callq 0xdd20
movq %rax, %rdi
callq 0x9525
| _ZN5nglog5tools26InitializeLoggingUtilitiesEPKc:
push rbx
sub rsp, 60h
cmp cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
jnz short loc_1E3A8
call _ZN5nglog5tools14const_basenameEPKc; nglog::tools::const_basename(char const*)
mov cs:_ZN5nglogL31g_program_invocation_short_nameE, rax; nglog::g_program_invocation_short_name
lea rdi, _ZN5nglogL21DumpStackTraceAndExitEv; this
add rsp, 60h
pop rbx
jmp _ZN5nglog22InstallFailureFunctionEPFvvE; nglog::InstallFailureFunction(void (*)(void))
loc_1E3A8:
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
mov rbx, rsp
mov rdi, rbx; this
mov edx, 12Bh; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedIsl; "Check failed: !IsLoggingInitialized() "
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rsi, aYouCalledIniti; "You called InitializeLogging() twice!"
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rsp; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rsp; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rax
call __clang_call_terminate
| long long ( * nglog::tools::InitializeLoggingUtilities(nglog::tools *this, char *a2))(_QWORD)
{
long long v3; // rax
long long v4; // rax
_BYTE v5[104]; // [rsp+0h] [rbp-68h] BYREF
if ( nglog::g_program_invocation_short_name )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v5,
(nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
299);
v3 = nglog::LogMessage::stream((nglog::LogMessage *)v5);
v4 = std::operator<<<std::char_traits<char>>(v3, "Check failed: !IsLoggingInitialized() ");
std::operator<<<std::char_traits<char>>(v4, "You called InitializeLogging() twice!");
nglog::LogMessageFatal::~LogMessageFatal(
(nglog::LogMessageFatal *)v5,
(nglog::internal::LogMessageData *)"You called InitializeLogging() twice!");
}
nglog::g_program_invocation_short_name = (long long)nglog::tools::const_basename(this, a2);
return nglog::InstallFailureFunction((nglog *)nglog::DumpStackTraceAndExit, (void (*)(void))a2);
}
| InitializeLoggingUtilities:
PUSH RBX
SUB RSP,0x60
CMP qword ptr [0x00140b40],0x0
JNZ 0x0011e3a8
CALL 0x0011e301
MOV qword ptr [0x00140b40],RAX
LEA RDI,[0x11e3fd]
ADD RSP,0x60
POP RBX
JMP 0x0010bec3
LAB_0011e3a8:
LEA RSI,[0x120fa0]
MOV RBX,RSP
MOV RDI,RBX
MOV EDX,0x12b
CALL 0x0010dd12
LAB_0011e3bf:
MOV RDI,RBX
CALL 0x0010b64a
LEA RSI,[0x120fe9]
MOV RDI,RAX
CALL 0x00107560
LEA RSI,[0x121010]
MOV RDI,RAX
CALL 0x00107560
LAB_0011e3e5:
MOV RDI,RSP
CALL 0x0010dd20
LAB_0011e3ed:
MOV RDI,RSP
CALL 0x0010dd20
LAB_0011e3f5:
MOV RDI,RAX
CALL 0x00109525
|
/* nglog::tools::InitializeLoggingUtilities(char const*) */
void nglog::tools::InitializeLoggingUtilities(char *param_1)
{
ostream *poVar1;
int8 uVar2;
LogMessageFatal aLStack_68 [96];
if (g_program_invocation_short_name == 0) {
g_program_invocation_short_name = const_basename(param_1);
InstallFailureFunction(DumpStackTraceAndExit);
return;
}
LogMessageFatal::LogMessageFatal
(aLStack_68,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
299);
/* try { // try from 0011e3bf to 0011e3e4 has its CatchHandler @ 0011e3ed */
poVar1 = (ostream *)LogMessage::stream((LogMessage *)aLStack_68);
poVar1 = std::operator<<(poVar1,"Check failed: !IsLoggingInitialized() ");
std::operator<<(poVar1,"You called InitializeLogging() twice!");
LogMessageFatal::~LogMessageFatal(aLStack_68);
/* catch(type#1 @ 00000000) { ... } // from try @ 0011e3bf with catch @ 0011e3ed
try { // try from 0011e3ed to 0011e3f4 has its CatchHandler @ 0011e3f5 */
uVar2 = LogMessageFatal::~LogMessageFatal(aLStack_68);
/* catch(type#1 @ 00000000) { ... } // from try @ 0011e3ed with catch @ 0011e3f5
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar2);
}
| |
41,381 | common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool) | monkey531[P]llama/common/common.cpp | void common_batch_add(
struct llama_batch & batch,
llama_token id,
llama_pos pos,
const std::vector<llama_seq_id> & seq_ids,
bool logits) {
GGML_ASSERT(batch.seq_id[batch.n_tokens] && "llama_batch size exceeded");
batch.token [batch.n_tokens] = id;
batch.pos [batch.n_tokens] = pos;
batch.n_seq_id[batch.n_tokens] = seq_ids.size();
for (size_t i = 0; i < seq_ids.size(); ++i) {
batch.seq_id[batch.n_tokens][i] = seq_ids[i];
}
batch.logits [batch.n_tokens] = logits;
batch.n_tokens++;
} | O0 | cpp | common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool):
subq $0x38, %rsp
movb %r8b, %al
movq %rdi, 0x30(%rsp)
movl %esi, 0x2c(%rsp)
movl %edx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
andb $0x1, %al
movb %al, 0x1f(%rsp)
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x30(%rsp), %rcx
movslq (%rcx), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0xdf748
leaq 0xed83f(%rip), %rdi # 0x1ccf6d
movl $0x655, %esi # imm = 0x655
leaq 0xe90d0(%rip), %rdx # 0x1c880a
leaq 0xede73(%rip), %rcx # 0x1cd5b4
movb $0x0, %al
callq 0x52c10
movl 0x2c(%rsp), %edx
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rsp), %rcx
movslq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x28(%rsp), %edx
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x30(%rsp), %rcx
movslq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x20(%rsp), %rdi
callq 0xe7460
movl %eax, %edx
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x30(%rsp), %rcx
movslq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0xe7460
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0xdf800
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xe7800
movl (%rax), %edx
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x30(%rsp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0xdf7a1
movb 0x1f(%rsp), %dl
andb $0x1, %dl
movq 0x30(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x30(%rsp), %rcx
movslq (%rcx), %rcx
movb %dl, (%rax,%rcx)
movq 0x30(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
addq $0x38, %rsp
retq
nopl (%rax)
| _Z16common_batch_addR11llama_batchiiRKSt6vectorIiSaIiEEb:
sub rsp, 38h
mov al, r8b
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_C], esi
mov [rsp+38h+var_10], edx
mov [rsp+38h+var_18], rcx
and al, 1
mov [rsp+38h+var_19], al
mov rax, [rsp+38h+var_8]
mov rax, [rax+28h]
mov rcx, [rsp+38h+var_8]
movsxd rcx, dword ptr [rcx]
cmp qword ptr [rax+rcx*8], 0
jnz short loc_DF748
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 655h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aBatchSeqIdBatc; "batch.seq_id[batch.n_tokens] && \"llama"...
mov al, 0
call _ggml_abort
loc_DF748:
mov edx, [rsp+38h+var_C]
mov rax, [rsp+38h+var_8]
mov rax, [rax+8]
mov rcx, [rsp+38h+var_8]
movsxd rcx, dword ptr [rcx]
mov [rax+rcx*4], edx
mov edx, [rsp+38h+var_10]
mov rax, [rsp+38h+var_8]
mov rax, [rax+18h]
mov rcx, [rsp+38h+var_8]
movsxd rcx, dword ptr [rcx]
mov [rax+rcx*4], edx
mov rdi, [rsp+38h+var_18]
call _ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void)
mov edx, eax
mov rax, [rsp+38h+var_8]
mov rax, [rax+20h]
mov rcx, [rsp+38h+var_8]
movsxd rcx, dword ptr [rcx]
mov [rax+rcx*4], edx
mov [rsp+38h+var_28], 0
loc_DF7A1:
mov rax, [rsp+38h+var_28]
mov [rsp+38h+var_30], rax
mov rdi, [rsp+38h+var_18]
call _ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void)
mov rcx, rax
mov rax, [rsp+38h+var_30]
cmp rax, rcx
jnb short loc_DF800
mov rdi, [rsp+38h+var_18]
mov rsi, [rsp+38h+var_28]
call _ZNKSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong)
mov edx, [rax]
mov rax, [rsp+38h+var_8]
mov rax, [rax+28h]
mov rcx, [rsp+38h+var_8]
movsxd rcx, dword ptr [rcx]
mov rax, [rax+rcx*8]
mov rcx, [rsp+38h+var_28]
mov [rax+rcx*4], edx
mov rax, [rsp+38h+var_28]
add rax, 1
mov [rsp+38h+var_28], rax
jmp short loc_DF7A1
loc_DF800:
mov dl, [rsp+38h+var_19]
and dl, 1
mov rax, [rsp+38h+var_8]
mov rax, [rax+30h]
mov rcx, [rsp+38h+var_8]
movsxd rcx, dword ptr [rcx]
mov [rax+rcx], dl
mov rax, [rsp+38h+var_8]
mov ecx, [rax]
add ecx, 1
mov [rax], ecx
add rsp, 38h
retn
| int * common_batch_add(int *a1, int a2, int a3, long long a4, char a5)
{
int *result; // rax
unsigned long long i; // [rsp+10h] [rbp-28h]
char v7; // [rsp+1Fh] [rbp-19h]
v7 = a5 & 1;
if ( !*(_QWORD *)(*((_QWORD *)a1 + 5) + 8LL * *a1) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
1621LL,
"GGML_ASSERT(%s) failed",
"batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\"");
*(_DWORD *)(*((_QWORD *)a1 + 1) + 4LL * *a1) = a2;
*(_DWORD *)(*((_QWORD *)a1 + 3) + 4LL * *a1) = a3;
*(_DWORD *)(*((_QWORD *)a1 + 4) + 4LL * *a1) = std::vector<int>::size(a4);
for ( i = 0LL; i < std::vector<int>::size(a4); ++i )
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)a1 + 5) + 8LL * *a1) + 4 * i) = *(_DWORD *)std::vector<int>::operator[](a4, i);
*(_BYTE *)(*((_QWORD *)a1 + 6) + *a1) = v7 & 1;
result = a1;
++*a1;
return result;
}
| common_batch_add:
SUB RSP,0x38
MOV AL,R8B
MOV qword ptr [RSP + 0x30],RDI
MOV dword ptr [RSP + 0x2c],ESI
MOV dword ptr [RSP + 0x28],EDX
MOV qword ptr [RSP + 0x20],RCX
AND AL,0x1
MOV byte ptr [RSP + 0x1f],AL
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RCX]
CMP qword ptr [RAX + RCX*0x8],0x0
JNZ 0x001df748
LEA RDI,[0x2ccf6d]
MOV ESI,0x655
LEA RDX,[0x2c880a]
LEA RCX,[0x2cd5b4]
MOV AL,0x0
CALL 0x00152c10
LAB_001df748:
MOV EDX,dword ptr [RSP + 0x2c]
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RCX]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EDX,dword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RCX]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001e7460
MOV EDX,EAX
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RCX]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV qword ptr [RSP + 0x10],0x0
LAB_001df7a1:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001e7460
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,RCX
JNC 0x001df800
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x001e7800
MOV EDX,dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RCX]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x1
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001df7a1
LAB_001df800:
MOV DL,byte ptr [RSP + 0x1f]
AND DL,0x1
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x30]
MOV RCX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RCX]
MOV byte ptr [RAX + RCX*0x1],DL
MOV RAX,qword ptr [RSP + 0x30]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
MOV dword ptr [RAX],ECX
ADD RSP,0x38
RET
|
/* common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int> > const&, bool) */
void common_batch_add(llama_batch *param_1,int param_2,int param_3,vector *param_4,bool param_5)
{
int4 uVar1;
ulong uVar2;
int4 *puVar3;
ulong local_28;
if (*(long *)(*(long *)(param_1 + 0x28) + (long)*(int *)param_1 * 8) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x655,
"GGML_ASSERT(%s) failed",
"batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\"");
}
*(int *)(*(long *)(param_1 + 8) + (long)*(int *)param_1 * 4) = param_2;
*(int *)(*(long *)(param_1 + 0x18) + (long)*(int *)param_1 * 4) = param_3;
uVar1 = std::vector<int,std::allocator<int>>::size((vector<int,std::allocator<int>> *)param_4);
*(int4 *)(*(long *)(param_1 + 0x20) + (long)*(int *)param_1 * 4) = uVar1;
local_28 = 0;
while( true ) {
uVar2 = std::vector<int,std::allocator<int>>::size((vector<int,std::allocator<int>> *)param_4);
if (uVar2 <= local_28) break;
puVar3 = (int4 *)
std::vector<int,std::allocator<int>>::operator[]
((vector<int,std::allocator<int>> *)param_4,local_28);
*(int4 *)(*(long *)(*(long *)(param_1 + 0x28) + (long)*(int *)param_1 * 8) + local_28 * 4)
= *puVar3;
local_28 = local_28 + 1;
}
*(bool *)(*(long *)(param_1 + 0x30) + (long)*(int *)param_1) = param_5;
*(int *)param_1 = *(int *)param_1 + 1;
return;
}
| |
41,382 | printErrorSerialServer(char const*, Modbus::StatusCode, char const*) | serhmarch[P]ModbusBridge/src/mbridge.cpp | void printErrorSerialServer(const Modbus::Char *source, Modbus::StatusCode status, const Modbus::Char *text)
{
if (status != Modbus::Status_BadSerialReadTimeout)
std::cout << source << " error (" << status << "):" << text << std::endl;
} | O3 | cpp | printErrorSerialServer(char const*, Modbus::StatusCode, char const*):
cmpl $0x1000204, %esi # imm = 0x1000204
jne 0x62d1
retq
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
testq %rdi, %rdi
je 0x62fe
movq %r14, %rdi
callq 0x5180
movq 0x1bce7(%rip), %rdi # 0x21fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x5370
jmp 0x631c
movq 0x1bcd3(%rip), %rax # 0x21fd8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x5520
movq 0x1bcb5(%rip), %r14 # 0x21fd8
leaq 0x121af(%rip), %rsi # 0x184d9
movl $0x8, %edx
movq %r14, %rdi
callq 0x5370
movl %ebp, %esi
movq %r14, %rdi
callq 0x5230
movq %rax, %r14
leaq 0x12197(%rip), %rsi # 0x184e2
movl $0x2, %edx
movq %rax, %rdi
callq 0x5370
testq %rbx, %rbx
je 0x6375
movq %rbx, %rdi
callq 0x5180
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5370
jmp 0x638f
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5520
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x5240
| _Z22printErrorSerialServerPKcN6Modbus10StatusCodeES0_:
cmp esi, 1000204h
jnz short loc_62D1
retn
loc_62D1:
push rbp
push r14
push rbx
mov rbx, rdx
mov ebp, esi
mov r14, rdi
test rdi, rdi
jz short loc_62FE
mov rdi, r14
call _strlen
mov rdi, cs:_ZSt4cout_ptr
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_631C
loc_62FE:
mov rax, cs:_ZSt4cout_ptr
mov rcx, [rax]
mov rcx, [rcx-18h]
lea rdi, [rax+rcx]
mov esi, [rax+rcx+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_631C:
mov r14, cs:_ZSt4cout_ptr
lea rsi, aError; " error ("
mov edx, 8
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov esi, ebp
mov rdi, r14
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
mov r14, rax
lea rsi, asc_184E2; "):"
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 rbx, rbx
jz short loc_6375
mov rdi, rbx
call _strlen
mov rdi, r14
mov rsi, rbx
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_638F
loc_6375:
mov rax, [r14]
mov rax, [rax-18h]
mov rdi, r14
add rdi, rax
mov esi, [r14+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_638F:
mov rax, [r14]
mov rdi, [rax-18h]
add rdi, r14
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, r14; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
pop rbx
pop r14
pop rbp
jmp __ZNSo5flushEv; std::ostream::flush(void)
| void printErrorSerialServer(long long a1, unsigned int a2, long long a3)
{
long long v4; // rax
std::ostream *v5; // r14
long long v6; // rax
char v7; // al
std::ostream *v8; // rax
if ( a2 != 16777732 )
{
if ( a1 )
{
v4 = strlen(a1);
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, a1, v4);
}
else
{
std::ios::clear(
(char *)&std::cout + *(_QWORD *)(std::cout - 24LL),
*(_DWORD *)((char *)&std::cout + *(_QWORD *)(std::cout - 24LL) + 32) | 1u);
}
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, " error (", 8LL);
v5 = (std::ostream *)std::ostream::_M_insert<unsigned long>(&std::cout, a2);
std::__ostream_insert<char,std::char_traits<char>>(v5, "):", 2LL);
if ( a3 )
{
v6 = strlen(a3);
std::__ostream_insert<char,std::char_traits<char>>(v5, a3, v6);
}
else
{
std::ios::clear(
(char *)v5 + *(_QWORD *)(*(_QWORD *)v5 - 24LL),
*(_DWORD *)((char *)v5 + *(_QWORD *)(*(_QWORD *)v5 - 24LL) + 32) | 1u);
}
v7 = std::ios::widen((char *)v5 + *(_QWORD *)(*(_QWORD *)v5 - 24LL), 10LL);
v8 = (std::ostream *)std::ostream::put(v5, v7);
std::ostream::flush(v8);
}
}
| printErrorSerialServer:
CMP ESI,0x1000204
JNZ 0x001062d1
RET
LAB_001062d1:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
TEST RDI,RDI
JZ 0x001062fe
MOV RDI,R14
CALL 0x00105180
MOV RDI,qword ptr [0x00121fd8]
MOV RSI,R14
MOV RDX,RAX
CALL 0x00105370
JMP 0x0010631c
LAB_001062fe:
MOV RAX,qword ptr [0x00121fd8]
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
LEA RDI,[RAX + RCX*0x1]
MOV ESI,dword ptr [RAX + RCX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00105520
LAB_0010631c:
MOV R14,qword ptr [0x00121fd8]
LEA RSI,[0x1184d9]
MOV EDX,0x8
MOV RDI,R14
CALL 0x00105370
MOV ESI,EBP
MOV RDI,R14
CALL 0x00105230
MOV R14,RAX
LEA RSI,[0x1184e2]
MOV EDX,0x2
MOV RDI,RAX
CALL 0x00105370
TEST RBX,RBX
JZ 0x00106375
MOV RDI,RBX
CALL 0x00105180
MOV RDI,R14
MOV RSI,RBX
MOV RDX,RAX
CALL 0x00105370
JMP 0x0010638f
LAB_00106375:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,R14
ADD RDI,RAX
MOV ESI,dword ptr [R14 + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00105520
LAB_0010638f:
MOV RAX,qword ptr [R14]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R14
MOV ESI,0xa
CALL 0x001052f0
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00105040
MOV RDI,RAX
POP RBX
POP R14
POP RBP
JMP 0x00105240
|
/* printErrorSerialServer(char const*, Modbus::StatusCode, char const*) */
void printErrorSerialServer(char *param_1,int param_2,char *param_3)
{
int *puVar1;
size_t sVar2;
ostream *poVar3;
if (param_2 == 0x1000204) {
return;
}
if (param_1 == (char *)0x0) {
std::ios::clear(PTR_cout_00121fd8 + *(long *)(*(long *)PTR_cout_00121fd8 + -0x18),
*(uint *)(PTR_cout_00121fd8 +
*(long *)(*(long *)PTR_cout_00121fd8 + -0x18) + 0x20) | 1);
}
else {
sVar2 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00121fd8,param_1,sVar2);
}
puVar1 = PTR_cout_00121fd8;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00121fd8," error (",8);
poVar3 = std::ostream::_M_insert<unsigned_long>((ulong)puVar1);
std::__ostream_insert<char,std::char_traits<char>>(poVar3,"):",2);
if (param_3 == (char *)0x0) {
std::ios::clear(poVar3 + *(long *)(*(long *)poVar3 + -0x18),
*(uint *)(poVar3 + *(long *)(*(long *)poVar3 + -0x18) + 0x20) | 1);
}
else {
sVar2 = strlen(param_3);
std::__ostream_insert<char,std::char_traits<char>>(poVar3,param_3,sVar2);
}
std::ios::widen((char)*(int8 *)(*(long *)poVar3 + -0x18) + (char)poVar3);
std::ostream::put((char)poVar3);
std::ostream::flush();
return;
}
| |
41,383 | my_copy_8bit | eloqsql/strings/ctype-simple.c | size_t
my_copy_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
set_if_smaller(src_length, dst_length);
set_if_smaller(src_length, nchars);
if (src_length)
memmove(dst, src, src_length);
status->m_source_end_pos= src + src_length;
status->m_well_formed_error_pos= NULL;
return src_length;
} | O0 | c | my_copy_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0x94c16
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x94c18
jmp 0x94c1a
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x94c2c
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x94c2e
cmpq $0x0, -0x28(%rbp)
je 0x94c46
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x36150
movq -0x20(%rbp), %rcx
addq -0x28(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq 0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_copy_8bit:
push rbp
mov rbp, rsp
sub rsp, 30h
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_28]
cmp rax, [rbp+var_18]
jbe short loc_94C16
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
loc_94C16:
jmp short $+2
loc_94C18:
jmp short $+2
loc_94C1A:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jbe short loc_94C2C
mov rax, [rbp+var_30]
mov [rbp+var_28], rax
loc_94C2C:
jmp short $+2
loc_94C2E:
cmp [rbp+var_28], 0
jz short loc_94C46
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call _memmove
loc_94C46:
mov rcx, [rbp+var_20]
add rcx, [rbp+var_28]
mov rax, [rbp+arg_0]
mov [rax], rcx
mov rax, [rbp+arg_0]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_28]
add rsp, 30h
pop rbp
retn
| unsigned long long my_copy_8bit(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
unsigned long long a6,
_QWORD *a7)
{
unsigned long long v8; // [rsp+8h] [rbp-28h]
v8 = a5;
if ( a5 > a3 )
v8 = a3;
if ( v8 > a6 )
v8 = a6;
if ( v8 )
memmove(a2, a4, v8);
*a7 = v8 + a4;
a7[1] = 0LL;
return v8;
}
| my_copy_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
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 + -0x28]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x00194c16
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
LAB_00194c16:
JMP 0x00194c18
LAB_00194c18:
JMP 0x00194c1a
LAB_00194c1a:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00194c2c
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x28],RAX
LAB_00194c2c:
JMP 0x00194c2e
LAB_00194c2e:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x00194c46
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00136150
LAB_00194c46:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x30
POP RBP
RET
|
size_t my_copy_8bit(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
ulong param_6,long *param_7)
{
ulong local_30;
local_30 = param_5;
if (param_3 < param_5) {
local_30 = param_3;
}
if (param_6 < local_30) {
local_30 = param_6;
}
if (local_30 != 0) {
memmove(param_2,param_4,local_30);
}
*param_7 = (long)param_4 + local_30;
param_7[1] = 0;
return local_30;
}
| |
41,384 | ggml_opt_step_adamw | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_opt_step_adamw(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * grad,
struct ggml_tensor * m,
struct ggml_tensor * v,
struct ggml_tensor * adamw_params) {
GGML_ASSERT(a->flags & GGML_TENSOR_FLAG_PARAM);
GGML_ASSERT(ggml_are_same_shape(a, grad));
GGML_ASSERT(ggml_are_same_shape(a, m));
GGML_ASSERT(ggml_are_same_shape(a, v));
GGML_ASSERT(adamw_params->type == GGML_TYPE_F32);
GGML_ASSERT(ggml_nelements(adamw_params) == 7);
struct ggml_tensor * result = ggml_view_tensor(ctx, a);
result->op = GGML_OP_OPT_STEP_ADAMW;
result->src[0] = a;
result->src[1] = grad;
result->src[2] = m;
result->src[3] = v;
result->src[4] = adamw_params;
return result;
} | O0 | c | ggml_opt_step_adamw:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x94(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x55393
leaq 0x5c23e(%rip), %rdi # 0xb15b7
movl $0x13ea, %esi # imm = 0x13EA
leaq 0x5c284(%rip), %rdx # 0xb1609
leaq 0x5d066(%rip), %rcx # 0xb23f2
movb $0x0, %al
callq 0x48a00
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x489b0
testb $0x1, %al
jne 0x553c5
leaq 0x5c20c(%rip), %rdi # 0xb15b7
movl $0x13eb, %esi # imm = 0x13EB
leaq 0x5c252(%rip), %rdx # 0xb1609
leaq 0x5d056(%rip), %rcx # 0xb2414
movb $0x0, %al
callq 0x48a00
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x489b0
testb $0x1, %al
jne 0x553f7
leaq 0x5c1da(%rip), %rdi # 0xb15b7
movl $0x13ec, %esi # imm = 0x13EC
leaq 0x5c220(%rip), %rdx # 0xb1609
leaq 0x5d041(%rip), %rcx # 0xb2431
movb $0x0, %al
callq 0x48a00
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x489b0
testb $0x1, %al
jne 0x55429
leaq 0x5c1a8(%rip), %rdi # 0xb15b7
movl $0x13ed, %esi # imm = 0x13ED
leaq 0x5c1ee(%rip), %rdx # 0xb1609
leaq 0x5d029(%rip), %rcx # 0xb244b
movb $0x0, %al
callq 0x48a00
movq -0x30(%rbp), %rax
cmpl $0x0, (%rax)
je 0x55453
leaq 0x5c17e(%rip), %rdi # 0xb15b7
movl $0x13ee, %esi # imm = 0x13EE
leaq 0x5c1c4(%rip), %rdx # 0xb1609
leaq 0x5d019(%rip), %rcx # 0xb2465
movb $0x0, %al
callq 0x48a00
movq -0x30(%rbp), %rdi
callq 0x45f50
cmpq $0x7, %rax
je 0x55483
leaq 0x5c14e(%rip), %rdi # 0xb15b7
movl $0x13ef, %esi # imm = 0x13EF
leaq 0x5c194(%rip), %rdx # 0xb1609
leaq 0x5d00d(%rip), %rcx # 0xb2489
movb $0x0, %al
callq 0x48a00
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x428f0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl $0x52, 0x50(%rax)
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x18(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xa8(%rax)
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xb0(%rax)
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xb8(%rax)
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ggml_opt_step_adamw:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov eax, [rax+94h]
and eax, 4
cmp eax, 0
jnz short loc_55393
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 13EAh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAFlagsGgmlTens; "a->flags & GGML_TENSOR_FLAG_PARAM"
mov al, 0
call _ggml_abort
loc_55393:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _ggml_are_same_shape
test al, 1
jnz short loc_553C5
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 13EBh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_4; "ggml_are_same_shape(a, grad)"
mov al, 0
call _ggml_abort
loc_553C5:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call _ggml_are_same_shape
test al, 1
jnz short loc_553F7
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 13ECh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_5; "ggml_are_same_shape(a, m)"
mov al, 0
call _ggml_abort
loc_553F7:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
call _ggml_are_same_shape
test al, 1
jnz short loc_55429
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 13EDh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_6; "ggml_are_same_shape(a, v)"
mov al, 0
call _ggml_abort
loc_55429:
mov rax, [rbp+var_30]
cmp dword ptr [rax], 0
jz short loc_55453
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 13EEh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAdamwParamsTyp; "adamw_params->type == GGML_TYPE_F32"
mov al, 0
call _ggml_abort
loc_55453:
mov rdi, [rbp+var_30]
call _ggml_nelements
cmp rax, 7
jz short loc_55483
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 13EFh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlNelementsA_6; "ggml_nelements(adamw_params) == 7"
mov al, 0
call _ggml_abort
loc_55483:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _ggml_view_tensor
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov dword ptr [rax+50h], 52h ; 'R'
mov rcx, [rbp+var_10]
mov rax, [rbp+var_38]
mov [rax+98h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_38]
mov [rax+0A0h], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_38]
mov [rax+0A8h], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_38]
mov [rax+0B0h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_38]
mov [rax+0B8h], rcx
mov rax, [rbp+var_38]
add rsp, 40h
pop rbp
retn
| _QWORD * ggml_opt_step_adamw(
long long a1,
long long a2,
_QWORD *a3,
_QWORD *a4,
_QWORD *a5,
_QWORD *a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
double v14; // xmm4_8
double v15; // xmm5_8
_QWORD *result; // rax
if ( (*(_DWORD *)(a2 + 148) & 4) == 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
5098,
(long long)"GGML_ASSERT(%s) failed",
"a->flags & GGML_TENSOR_FLAG_PARAM");
if ( !ggml_are_same_shape((_QWORD *)a2, a3) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
5099,
(long long)"GGML_ASSERT(%s) failed",
"ggml_are_same_shape(a, grad)");
if ( !ggml_are_same_shape((_QWORD *)a2, a4) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
5100,
(long long)"GGML_ASSERT(%s) failed",
"ggml_are_same_shape(a, m)");
if ( !ggml_are_same_shape((_QWORD *)a2, a5) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
5101,
(long long)"GGML_ASSERT(%s) failed",
"ggml_are_same_shape(a, v)");
if ( *(_DWORD *)a6 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
5102,
(long long)"GGML_ASSERT(%s) failed",
"adamw_params->type == GGML_TYPE_F32");
if ( ggml_nelements(a6) != 7 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
5103,
(long long)"GGML_ASSERT(%s) failed",
"ggml_nelements(adamw_params) == 7");
result = ggml_view_tensor(a1, a2, a7, a8, a9, a10, v14, v15, a13, a14);
*((_DWORD *)result + 20) = 82;
result[19] = a2;
result[20] = a3;
result[21] = a4;
result[22] = a5;
result[23] = a6;
return result;
}
| ggml_opt_step_adamw:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x94]
AND EAX,0x4
CMP EAX,0x0
JNZ 0x00155393
LEA RDI,[0x1b15b7]
MOV ESI,0x13ea
LEA RDX,[0x1b1609]
LEA RCX,[0x1b23f2]
MOV AL,0x0
CALL 0x00148a00
LAB_00155393:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001489b0
TEST AL,0x1
JNZ 0x001553c5
LEA RDI,[0x1b15b7]
MOV ESI,0x13eb
LEA RDX,[0x1b1609]
LEA RCX,[0x1b2414]
MOV AL,0x0
CALL 0x00148a00
LAB_001553c5:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001489b0
TEST AL,0x1
JNZ 0x001553f7
LEA RDI,[0x1b15b7]
MOV ESI,0x13ec
LEA RDX,[0x1b1609]
LEA RCX,[0x1b2431]
MOV AL,0x0
CALL 0x00148a00
LAB_001553f7:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001489b0
TEST AL,0x1
JNZ 0x00155429
LEA RDI,[0x1b15b7]
MOV ESI,0x13ed
LEA RDX,[0x1b1609]
LEA RCX,[0x1b244b]
MOV AL,0x0
CALL 0x00148a00
LAB_00155429:
MOV RAX,qword ptr [RBP + -0x30]
CMP dword ptr [RAX],0x0
JZ 0x00155453
LEA RDI,[0x1b15b7]
MOV ESI,0x13ee
LEA RDX,[0x1b1609]
LEA RCX,[0x1b2465]
MOV AL,0x0
CALL 0x00148a00
LAB_00155453:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00145f50
CMP RAX,0x7
JZ 0x00155483
LEA RDI,[0x1b15b7]
MOV ESI,0x13ef
LEA RDX,[0x1b1609]
LEA RCX,[0x1b2489]
MOV AL,0x0
CALL 0x00148a00
LAB_00155483:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001428f0
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x50],0x52
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xa0],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xa8],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xb0],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xb8],RCX
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x40
POP RBP
RET
|
long ggml_opt_step_adamw(int8 param_1,long param_2,int8 param_3,int8 param_4,
int8 param_5,int *param_6)
{
ulong uVar1;
long lVar2;
if ((*(uint *)(param_2 + 0x94) & 4) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x13ea,"GGML_ASSERT(%s) failed","a->flags & GGML_TENSOR_FLAG_PARAM");
}
uVar1 = ggml_are_same_shape(param_2,param_3);
if ((uVar1 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x13eb,"GGML_ASSERT(%s) failed","ggml_are_same_shape(a, grad)");
}
uVar1 = ggml_are_same_shape(param_2,param_4);
if ((uVar1 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x13ec,"GGML_ASSERT(%s) failed","ggml_are_same_shape(a, m)");
}
uVar1 = ggml_are_same_shape(param_2,param_5);
if ((uVar1 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x13ed,"GGML_ASSERT(%s) failed","ggml_are_same_shape(a, v)");
}
if (*param_6 != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x13ee,"GGML_ASSERT(%s) failed","adamw_params->type == GGML_TYPE_F32");
}
lVar2 = ggml_nelements(param_6);
if (lVar2 != 7) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x13ef,"GGML_ASSERT(%s) failed","ggml_nelements(adamw_params) == 7");
}
lVar2 = ggml_view_tensor(param_1,param_2);
*(int4 *)(lVar2 + 0x50) = 0x52;
*(long *)(lVar2 + 0x98) = param_2;
*(int8 *)(lVar2 + 0xa0) = param_3;
*(int8 *)(lVar2 + 0xa8) = param_4;
*(int8 *)(lVar2 + 0xb0) = param_5;
*(int **)(lVar2 + 0xb8) = param_6;
return lVar2;
}
| |
41,385 | ggml_opt_step_adamw | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_opt_step_adamw(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * grad,
struct ggml_tensor * m,
struct ggml_tensor * v,
struct ggml_tensor * adamw_params) {
GGML_ASSERT(a->flags & GGML_TENSOR_FLAG_PARAM);
GGML_ASSERT(ggml_are_same_shape(a, grad));
GGML_ASSERT(ggml_are_same_shape(a, m));
GGML_ASSERT(ggml_are_same_shape(a, v));
GGML_ASSERT(adamw_params->type == GGML_TYPE_F32);
GGML_ASSERT(ggml_nelements(adamw_params) == 7);
struct ggml_tensor * result = ggml_view_tensor(ctx, a);
result->op = GGML_OP_OPT_STEP_ADAMW;
result->src[0] = a;
result->src[1] = grad;
result->src[2] = m;
result->src[3] = v;
result->src[4] = adamw_params;
return result;
} | O3 | c | ggml_opt_step_adamw:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testb $0x4, 0x94(%rsi)
je 0x20421
movq %rdx, %r12
movq %rsi, %r13
movq 0x10(%rsi), %rax
cmpq 0x10(%rdx), %rax
jne 0x203ca
movq %rcx, %r15
movq 0x18(%r13), %rcx
cmpq 0x18(%r12), %rcx
jne 0x203ca
movq 0x20(%r13), %rdx
cmpq 0x20(%r12), %rdx
jne 0x203ca
movq 0x28(%r13), %rsi
cmpq 0x28(%r12), %rsi
jne 0x203ca
cmpq 0x10(%r15), %rax
jne 0x203e9
cmpq 0x18(%r15), %rcx
jne 0x203e9
cmpq 0x20(%r15), %rdx
jne 0x203e9
cmpq 0x28(%r15), %rsi
jne 0x203e9
movq %r8, %r14
cmpq 0x10(%r8), %rax
jne 0x20405
cmpq 0x18(%r14), %rcx
jne 0x20405
cmpq 0x20(%r14), %rdx
jne 0x20405
cmpq 0x28(%r14), %rsi
jne 0x20405
movq %r9, %rbx
cmpl $0x0, (%r9)
jne 0x2043d
movq 0x18(%rbx), %rax
imulq 0x10(%rbx), %rax
imulq 0x20(%rbx), %rax
imulq 0x28(%rbx), %rax
cmpq $0x7, %rax
jne 0x20459
movq %r13, %rsi
callq 0x16260
movl $0x52, 0x50(%rax)
movq %r13, 0x98(%rax)
movq %r12, 0xa0(%rax)
movq %r15, 0xa8(%rax)
movq %r14, 0xb0(%rax)
movq %rbx, 0xb8(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2c242(%rip), %rdi # 0x4c613
leaq 0x2c28d(%rip), %rdx # 0x4c665
leaq 0x2cfcb(%rip), %rcx # 0x4d3aa
movl $0x13eb, %esi # imm = 0x13EB
jmp 0x20473
leaq 0x2c223(%rip), %rdi # 0x4c613
leaq 0x2c26e(%rip), %rdx # 0x4c665
leaq 0x2cfc9(%rip), %rcx # 0x4d3c7
movl $0x13ec, %esi # imm = 0x13EC
jmp 0x20473
leaq 0x2c207(%rip), %rdi # 0x4c613
leaq 0x2c252(%rip), %rdx # 0x4c665
leaq 0x2cfc7(%rip), %rcx # 0x4d3e1
movl $0x13ed, %esi # imm = 0x13ED
jmp 0x20473
leaq 0x2c1eb(%rip), %rdi # 0x4c613
leaq 0x2c236(%rip), %rdx # 0x4c665
leaq 0x2cf52(%rip), %rcx # 0x4d388
movl $0x13ea, %esi # imm = 0x13EA
jmp 0x20473
leaq 0x2c1cf(%rip), %rdi # 0x4c613
leaq 0x2c21a(%rip), %rdx # 0x4c665
leaq 0x2cfa9(%rip), %rcx # 0x4d3fb
movl $0x13ee, %esi # imm = 0x13EE
jmp 0x20473
leaq 0x2c1b3(%rip), %rdi # 0x4c613
leaq 0x2c1fe(%rip), %rdx # 0x4c665
leaq 0x2cfb1(%rip), %rcx # 0x4d41f
movl $0x13ef, %esi # imm = 0x13EF
xorl %eax, %eax
callq 0x17cd0
| ggml_opt_step_adamw:
push r15
push r14
push r13
push r12
push rbx
test byte ptr [rsi+94h], 4
jz loc_20421
mov r12, rdx
mov r13, rsi
mov rax, [rsi+10h]
cmp rax, [rdx+10h]
jnz loc_203CA
mov r15, rcx
mov rcx, [r13+18h]
cmp rcx, [r12+18h]
jnz loc_203CA
mov rdx, [r13+20h]
cmp rdx, [r12+20h]
jnz loc_203CA
mov rsi, [r13+28h]
cmp rsi, [r12+28h]
jnz loc_203CA
cmp rax, [r15+10h]
jnz loc_203E9
cmp rcx, [r15+18h]
jnz loc_203E9
cmp rdx, [r15+20h]
jnz loc_203E9
cmp rsi, [r15+28h]
jnz loc_203E9
mov r14, r8
cmp rax, [r8+10h]
jnz loc_20405
cmp rcx, [r14+18h]
jnz loc_20405
cmp rdx, [r14+20h]
jnz loc_20405
cmp rsi, [r14+28h]
jnz loc_20405
mov rbx, r9
cmp dword ptr [r9], 0
jnz loc_2043D
mov rax, [rbx+18h]
imul rax, [rbx+10h]
imul rax, [rbx+20h]
imul rax, [rbx+28h]
cmp rax, 7
jnz loc_20459
mov rsi, r13
call _ggml_view_tensor
mov dword ptr [rax+50h], 52h ; 'R'
mov [rax+98h], r13
mov [rax+0A0h], r12
mov [rax+0A8h], r15
mov [rax+0B0h], r14
mov [rax+0B8h], rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
loc_203CA:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_4; "ggml_are_same_shape(a, grad)"
mov esi, 13EBh
jmp loc_20473
loc_203E9:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_5; "ggml_are_same_shape(a, m)"
mov esi, 13ECh
jmp short loc_20473
loc_20405:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_6; "ggml_are_same_shape(a, v)"
mov esi, 13EDh
jmp short loc_20473
loc_20421:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAFlagsGgmlTens; "a->flags & GGML_TENSOR_FLAG_PARAM"
mov esi, 13EAh
jmp short loc_20473
loc_2043D:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAdamwParamsTyp; "adamw_params->type == GGML_TYPE_F32"
mov esi, 13EEh
jmp short loc_20473
loc_20459:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlNelementsA_6; "ggml_nelements(adamw_params) == 7"
mov esi, 13EFh
loc_20473:
xor eax, eax
call _ggml_abort
| long long ggml_opt_step_adamw(
long long a1,
long long a2,
_QWORD *a3,
_QWORD *a4,
_QWORD *a5,
long long a6,
double a7)
{
long long v9; // rax
long long v11; // rcx
long long v12; // rdx
long long v13; // rsi
long long result; // rax
const char *v17; // rcx
int v18; // esi
if ( (*(_BYTE *)(a2 + 148) & 4) == 0 )
{
v17 = "a->flags & GGML_TENSOR_FLAG_PARAM";
v18 = 5098;
goto LABEL_23;
}
v9 = *(_QWORD *)(a2 + 16);
if ( v9 != a3[2]
|| (v11 = *(_QWORD *)(a2 + 24), v11 != a3[3])
|| (v12 = *(_QWORD *)(a2 + 32), v12 != a3[4])
|| (v13 = *(_QWORD *)(a2 + 40), v13 != a3[5]) )
{
v17 = "ggml_are_same_shape(a, grad)";
v18 = 5099;
goto LABEL_23;
}
if ( v9 != a4[2] || v11 != a4[3] || v12 != a4[4] || v13 != a4[5] )
{
v17 = "ggml_are_same_shape(a, m)";
v18 = 5100;
goto LABEL_23;
}
if ( v9 != a5[2] || v11 != a5[3] || v12 != a5[4] || v13 != a5[5] )
{
v17 = "ggml_are_same_shape(a, v)";
v18 = 5101;
goto LABEL_23;
}
if ( *(_DWORD *)a6 )
{
v17 = "adamw_params->type == GGML_TYPE_F32";
v18 = 5102;
goto LABEL_23;
}
if ( *(_QWORD *)(a6 + 40) * *(_QWORD *)(a6 + 32) * *(_QWORD *)(a6 + 16) * *(_QWORD *)(a6 + 24) != 7LL )
{
v17 = "ggml_nelements(adamw_params) == 7";
v18 = 5103;
LABEL_23:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
v18,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v17,
(_DWORD)a5,
a6);
}
result = ggml_view_tensor(a1, a2, a7);
*(_DWORD *)(result + 80) = 82;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
*(_QWORD *)(result + 168) = a4;
*(_QWORD *)(result + 176) = a5;
*(_QWORD *)(result + 184) = a6;
return result;
}
| ggml_opt_step_adamw:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST byte ptr [RSI + 0x94],0x4
JZ 0x00120421
MOV R12,RDX
MOV R13,RSI
MOV RAX,qword ptr [RSI + 0x10]
CMP RAX,qword ptr [RDX + 0x10]
JNZ 0x001203ca
MOV R15,RCX
MOV RCX,qword ptr [R13 + 0x18]
CMP RCX,qword ptr [R12 + 0x18]
JNZ 0x001203ca
MOV RDX,qword ptr [R13 + 0x20]
CMP RDX,qword ptr [R12 + 0x20]
JNZ 0x001203ca
MOV RSI,qword ptr [R13 + 0x28]
CMP RSI,qword ptr [R12 + 0x28]
JNZ 0x001203ca
CMP RAX,qword ptr [R15 + 0x10]
JNZ 0x001203e9
CMP RCX,qword ptr [R15 + 0x18]
JNZ 0x001203e9
CMP RDX,qword ptr [R15 + 0x20]
JNZ 0x001203e9
CMP RSI,qword ptr [R15 + 0x28]
JNZ 0x001203e9
MOV R14,R8
CMP RAX,qword ptr [R8 + 0x10]
JNZ 0x00120405
CMP RCX,qword ptr [R14 + 0x18]
JNZ 0x00120405
CMP RDX,qword ptr [R14 + 0x20]
JNZ 0x00120405
CMP RSI,qword ptr [R14 + 0x28]
JNZ 0x00120405
MOV RBX,R9
CMP dword ptr [R9],0x0
JNZ 0x0012043d
MOV RAX,qword ptr [RBX + 0x18]
IMUL RAX,qword ptr [RBX + 0x10]
IMUL RAX,qword ptr [RBX + 0x20]
IMUL RAX,qword ptr [RBX + 0x28]
CMP RAX,0x7
JNZ 0x00120459
MOV RSI,R13
CALL 0x00116260
MOV dword ptr [RAX + 0x50],0x52
MOV qword ptr [RAX + 0x98],R13
MOV qword ptr [RAX + 0xa0],R12
MOV qword ptr [RAX + 0xa8],R15
MOV qword ptr [RAX + 0xb0],R14
MOV qword ptr [RAX + 0xb8],RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
LAB_001203ca:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14d3aa]
MOV ESI,0x13eb
JMP 0x00120473
LAB_001203e9:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14d3c7]
MOV ESI,0x13ec
JMP 0x00120473
LAB_00120405:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14d3e1]
MOV ESI,0x13ed
JMP 0x00120473
LAB_00120421:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14d388]
MOV ESI,0x13ea
JMP 0x00120473
LAB_0012043d:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14d3fb]
MOV ESI,0x13ee
JMP 0x00120473
LAB_00120459:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14d41f]
MOV ESI,0x13ef
LAB_00120473:
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_opt_step_adamw(int8 param_1,long param_2,long param_3,long param_4,long param_5,
int *param_6)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
char *pcVar5;
int8 uVar6;
if ((*(byte *)(param_2 + 0x94) & 4) == 0) {
pcVar5 = "a->flags & GGML_TENSOR_FLAG_PARAM";
uVar6 = 0x13ea;
}
else {
lVar4 = *(long *)(param_2 + 0x10);
if ((((lVar4 == *(long *)(param_3 + 0x10)) &&
(lVar1 = *(long *)(param_2 + 0x18), lVar1 == *(long *)(param_3 + 0x18))) &&
(lVar2 = *(long *)(param_2 + 0x20), lVar2 == *(long *)(param_3 + 0x20))) &&
(lVar3 = *(long *)(param_2 + 0x28), lVar3 == *(long *)(param_3 + 0x28))) {
if (((lVar4 == *(long *)(param_4 + 0x10)) && (lVar1 == *(long *)(param_4 + 0x18))) &&
((lVar2 == *(long *)(param_4 + 0x20) && (lVar3 == *(long *)(param_4 + 0x28))))) {
if (((lVar4 == *(long *)(param_5 + 0x10)) && (lVar1 == *(long *)(param_5 + 0x18))) &&
((lVar2 == *(long *)(param_5 + 0x20) && (lVar3 == *(long *)(param_5 + 0x28))))) {
if (*param_6 == 0) {
if (*(long *)(param_6 + 6) * *(long *)(param_6 + 4) * *(long *)(param_6 + 8) *
*(long *)(param_6 + 10) == 7) {
lVar4 = ggml_view_tensor(param_1,param_2);
*(int4 *)(lVar4 + 0x50) = 0x52;
*(long *)(lVar4 + 0x98) = param_2;
*(long *)(lVar4 + 0xa0) = param_3;
*(long *)(lVar4 + 0xa8) = param_4;
*(long *)(lVar4 + 0xb0) = param_5;
*(int **)(lVar4 + 0xb8) = param_6;
return;
}
pcVar5 = "ggml_nelements(adamw_params) == 7";
uVar6 = 0x13ef;
}
else {
pcVar5 = "adamw_params->type == GGML_TYPE_F32";
uVar6 = 0x13ee;
}
}
else {
pcVar5 = "ggml_are_same_shape(a, v)";
uVar6 = 0x13ed;
}
}
else {
pcVar5 = "ggml_are_same_shape(a, m)";
uVar6 = 0x13ec;
}
}
else {
pcVar5 = "ggml_are_same_shape(a, grad)";
uVar6 = 0x13eb;
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
uVar6,"GGML_ASSERT(%s) failed",pcVar5);
}
| |
41,386 | FTB_WORD_cmp | eloqsql/storage/myisam/ft_boolean_search.c | static int FTB_WORD_cmp(my_off_t *v, FTB_WORD *a, FTB_WORD *b)
{
int i;
/* if a==curdoc, take it as a < b */
if (v && a->docid[0] == *v)
return -1;
/* ORDER BY docid, ndepth DESC */
i=CMP_NUM(a->docid[0], b->docid[0]);
if (!i)
i=CMP_NUM(b->ndepth,a->ndepth);
return i;
} | O0 | c | FTB_WORD_cmp:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x9f444
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jne 0x9f444
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9f4cf
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x9f460
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x28(%rbp)
jmp 0x9f480
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rsi
movl $0x1, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jne 0x9f4c9
movq -0x20(%rbp), %rax
movl 0x44(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x44(%rcx), %eax
jae 0x9f4a6
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x2c(%rbp)
jmp 0x9f4c3
movq -0x20(%rbp), %rax
movl 0x44(%rax), %edx
movq -0x18(%rbp), %rax
movl 0x44(%rax), %esi
movl $0x1, %eax
xorl %ecx, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| FTB_WORD_cmp:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_10], 0
jz short loc_9F444
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jnz short loc_9F444
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_9F4CF
loc_9F444:
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov rcx, [rbp+var_20]
cmp rax, [rcx+10h]
jnb short loc_9F460
mov eax, 0FFFFFFFFh
mov [rbp+var_28], eax
jmp short loc_9F480
loc_9F460:
mov rax, [rbp+var_18]
mov rdx, [rax+10h]
mov rax, [rbp+var_20]
mov rsi, [rax+10h]
mov eax, 1
xor ecx, ecx
cmp rdx, rsi
cmovz eax, ecx
mov [rbp+var_28], eax
loc_9F480:
mov eax, [rbp+var_28]
mov [rbp+var_24], eax
cmp [rbp+var_24], 0
jnz short loc_9F4C9
mov rax, [rbp+var_20]
mov eax, [rax+44h]
mov rcx, [rbp+var_18]
cmp eax, [rcx+44h]
jnb short loc_9F4A6
mov eax, 0FFFFFFFFh
mov [rbp+var_2C], eax
jmp short loc_9F4C3
loc_9F4A6:
mov rax, [rbp+var_20]
mov edx, [rax+44h]
mov rax, [rbp+var_18]
mov esi, [rax+44h]
mov eax, 1
xor ecx, ecx
cmp edx, esi
cmovz eax, ecx
mov [rbp+var_2C], eax
loc_9F4C3:
mov eax, [rbp+var_2C]
mov [rbp+var_24], eax
loc_9F4C9:
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
loc_9F4CF:
mov eax, [rbp+var_4]
pop rbp
retn
| long long FTB_WORD_cmp(_QWORD *a1, long long a2, long long a3)
{
int v5; // [rsp+4h] [rbp-28h]
unsigned int v6; // [rsp+8h] [rbp-24h]
if ( a1 && *(_QWORD *)(a2 + 16) == *a1 )
{
return (unsigned int)-1;
}
else
{
if ( *(_QWORD *)(a2 + 16) >= *(_QWORD *)(a3 + 16) )
v5 = *(_QWORD *)(a2 + 16) != *(_QWORD *)(a3 + 16);
else
v5 = -1;
v6 = v5;
if ( !v5 )
{
if ( *(_DWORD *)(a3 + 68) >= *(_DWORD *)(a2 + 68) )
return *(_DWORD *)(a3 + 68) != *(_DWORD *)(a2 + 68);
else
return (unsigned int)-1;
}
return v6;
}
}
| FTB_WORD_cmp:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0019f444
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JNZ 0x0019f444
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019f4cf
LAB_0019f444:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RCX + 0x10]
JNC 0x0019f460
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0019f480
LAB_0019f460:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX + 0x10]
MOV EAX,0x1
XOR ECX,ECX
CMP RDX,RSI
CMOVZ EAX,ECX
MOV dword ptr [RBP + -0x28],EAX
LAB_0019f480:
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x0
JNZ 0x0019f4c9
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x44]
MOV RCX,qword ptr [RBP + -0x18]
CMP EAX,dword ptr [RCX + 0x44]
JNC 0x0019f4a6
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0019f4c3
LAB_0019f4a6:
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RAX + 0x44]
MOV RAX,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RAX + 0x44]
MOV EAX,0x1
XOR ECX,ECX
CMP EDX,ESI
CMOVZ EAX,ECX
MOV dword ptr [RBP + -0x2c],EAX
LAB_0019f4c3:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x24],EAX
LAB_0019f4c9:
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
LAB_0019f4cf:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint FTB_WORD_cmp(long *param_1,long param_2,long param_3)
{
uint local_34;
uint local_30;
uint local_2c;
uint local_c;
if ((param_1 == (long *)0x0) || (*(long *)(param_2 + 0x10) != *param_1)) {
if (*(ulong *)(param_2 + 0x10) < *(ulong *)(param_3 + 0x10)) {
local_30 = 0xffffffff;
}
else {
local_30 = (uint)(*(long *)(param_2 + 0x10) != *(long *)(param_3 + 0x10));
}
local_2c = local_30;
if (local_30 == 0) {
if (*(uint *)(param_3 + 0x44) < *(uint *)(param_2 + 0x44)) {
local_34 = 0xffffffff;
}
else {
local_34 = (uint)(*(int *)(param_3 + 0x44) != *(int *)(param_2 + 0x44));
}
local_2c = local_34;
}
local_c = local_2c;
}
else {
local_c = 0xffffffff;
}
return local_c;
}
| |
41,387 | ft_init_nlq_search | eloqsql/storage/myisam/ft_nlq_search.c | FT_INFO *ft_init_nlq_search(MI_INFO *info, uint keynr, uchar *query,
uint query_len, uint flags, uchar *record)
{
TREE wtree;
ALL_IN_ONE aio;
FT_DOC *dptr;
FT_INFO *dlist=NULL;
my_off_t saved_lastpos=info->lastpos;
struct st_mysql_ftparser *parser;
MYSQL_FTPARSER_PARAM *ftparser_param;
DBUG_ENTER("ft_init_nlq_search");
/* black magic ON */
if ((int) (keynr = _mi_check_index(info,keynr)) < 0)
DBUG_RETURN(NULL);
if (_mi_readinfo(info,F_RDLCK,1))
DBUG_RETURN(NULL);
/* black magic OFF */
aio.info=info;
aio.keynr=keynr;
aio.charset=info->s->keyinfo[keynr].seg->charset;
aio.keybuff=info->lastkey+info->s->base.max_key_length;
parser= info->s->keyinfo[keynr].parser;
if (! (ftparser_param= ftparser_call_initializer(info, keynr, 0)))
goto err;
bzero(&wtree,sizeof(wtree));
init_tree(&aio.dtree,0,0,sizeof(FT_SUPERDOC),(qsort_cmp2)&FT_SUPERDOC_cmp,
NULL, NULL, MYF(0));
ft_parse_init(&wtree, aio.charset);
ftparser_param->flags= 0;
if (ft_parse(&wtree, query, query_len, parser, ftparser_param,
&wtree.mem_root))
goto err;
if (tree_walk(&wtree, (tree_walk_action)&walk_and_match, &aio,
left_root_right))
goto err;
if (flags & FT_EXPAND && ft_query_expansion_limit)
{
QUEUE best;
init_queue(&best,ft_query_expansion_limit,0,0, (queue_compare) &FT_DOC_cmp,
0, 0, 0);
tree_walk(&aio.dtree, (tree_walk_action) &walk_and_push,
&best, left_root_right);
while (best.elements)
{
my_off_t docid= ((FT_DOC *)queue_remove_top(&best))->dpos;
if (!(*info->read_record)(info,docid,record))
{
info->update|= HA_STATE_AKTIV;
ftparser_param->flags= MYSQL_FTFLAGS_NEED_COPY;
if (unlikely(_mi_ft_parse(&wtree, info, keynr, record, ftparser_param,
&wtree.mem_root)))
{
delete_queue(&best);
goto err;
}
}
}
delete_queue(&best);
reset_tree(&aio.dtree);
if (tree_walk(&wtree, (tree_walk_action)&walk_and_match, &aio,
left_root_right))
goto err;
}
/*
If ndocs == 0, this will not allocate RAM for FT_INFO.doc[],
so if ndocs == 0, FT_INFO.doc[] must not be accessed.
*/
dlist=(FT_INFO *)my_malloc(mi_key_memory_FT_INFO, sizeof(FT_INFO)+
sizeof(FT_DOC)*
(int)(aio.dtree.elements_in_tree-1),
MYF(0));
if (!dlist)
goto err;
dlist->please= (struct _ft_vft *) & _ft_vft_nlq;
dlist->ndocs=aio.dtree.elements_in_tree;
dlist->curdoc=-1;
dlist->info=aio.info;
dptr=dlist->doc;
tree_walk(&aio.dtree, (tree_walk_action) &walk_and_copy,
&dptr, left_root_right);
if (flags & FT_SORTED)
my_qsort2(dlist->doc, dlist->ndocs, sizeof(FT_DOC), (qsort2_cmp)&FT_DOC_cmp,
0);
err:
delete_tree(&aio.dtree, 0);
delete_tree(&wtree, 0);
info->lastpos=saved_lastpos;
DBUG_RETURN(dlist);
} | O0 | c | ft_init_nlq_search:
pushq %rbp
movq %rsp, %rbp
subq $0x5f0, %rsp # imm = 0x5F0
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq $0x0, -0x590(%rbp)
movq -0x10(%rbp), %rax
movq 0x170(%rax), %rax
movq %rax, -0x598(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xc0430
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
jge 0xa26a1
jmp 0xa2694
movq $0x0, -0x8(%rbp)
jmp 0xa2ad0
movq -0x10(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xb2e60
cmpl $0x0, %eax
je 0xa26c5
jmp 0xa26b8
movq $0x0, -0x8(%rbp)
jmp 0xa2ad0
movq -0x10(%rbp), %rax
movq %rax, -0x580(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x578(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movq (%rax), %rax
movq %rax, -0x570(%rbp)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movl 0x194(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x568(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x38(%rax), %rax
movq %rax, -0x5a0(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
xorl %edx, %edx
callq 0xa4630
movq %rax, -0x5a8(%rbp)
cmpq $0x0, %rax
jne 0xa2764
jmp 0xa2a93
leaq -0x2c8(%rbp), %rdi
xorl %esi, %esi
movl $0x298, %edx # imm = 0x298
callq 0x2a2c0
leaq -0x580(%rbp), %rdi
addq $0x20, %rdi
xorl %eax, %eax
movl %eax, %r9d
movl $0x20, %ecx
leaq 0x34d(%rip), %r8 # 0xa2ae0
movq %r9, %rsi
movq %r9, %rdx
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x102b80
movq -0x570(%rbp), %rsi
leaq -0x2c8(%rbp), %rdi
callq 0xa42c0
movq -0x5a8(%rbp), %rax
movl $0x0, 0x34(%rax)
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x5a0(%rbp), %rcx
movq -0x5a8(%rbp), %r8
leaq -0x2c8(%rbp), %r9
addq $0x238, %r9 # imm = 0x238
leaq -0x2c8(%rbp), %rdi
callq 0xa4370
cmpl $0x0, %eax
je 0xa2809
jmp 0xa2a93
leaq -0x2c8(%rbp), %rdi
leaq 0x319(%rip), %rsi # 0xa2b30
leaq -0x580(%rbp), %rdx
xorl %ecx, %ecx
callq 0x1044f0
cmpl $0x0, %eax
je 0xa282f
jmp 0xa2a93
movl -0x28(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xa29ab
leaq 0x226b7b(%rip), %rax # 0x2c93c0
cmpq $0x0, (%rax)
je 0xa29ab
leaq 0x226b6a(%rip), %rax # 0x2c93c0
movq (%rax), %rax
movl %eax, %esi
leaq -0x5d8(%rbp), %rdi
xorl %ecx, %ecx
leaq 0xb05(%rip), %r8 # 0xa3370
xorl %eax, %eax
movl %eax, %r9d
movl %ecx, %edx
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0xff750
leaq -0x580(%rbp), %rdi
addq $0x20, %rdi
leaq 0xb48(%rip), %rsi # 0xa33e0
leaq -0x5d8(%rbp), %rdx
xorl %ecx, %ecx
callq 0x1044f0
cmpl $0x0, -0x5c8(%rbp)
je 0xa2967
leaq -0x5d8(%rbp), %rdi
movl $0x1, %esi
callq 0xffb70
movq (%rax), %rax
movq %rax, -0x5e0(%rbp)
movq -0x10(%rbp), %rax
movq 0x140(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x5e0(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq *%rax
cmpl $0x0, %eax
jne 0xa2962
movq -0x10(%rbp), %rax
movl 0x1d0(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0x1d0(%rax)
movq -0x5a8(%rbp), %rax
movl $0x1, 0x34(%rax)
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x30(%rbp), %rcx
movq -0x5a8(%rbp), %r8
leaq -0x2c8(%rbp), %r9
addq $0x238, %r9 # imm = 0x238
leaq -0x2c8(%rbp), %rdi
callq 0xa4b00
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xa2960
leaq -0x5d8(%rbp), %rdi
callq 0xff980
jmp 0xa2a93
jmp 0xa2962
jmp 0xa28a6
leaq -0x5d8(%rbp), %rdi
callq 0xff980
leaq -0x580(%rbp), %rdi
addq $0x20, %rdi
callq 0x102f20
leaq -0x2c8(%rbp), %rdi
leaq 0x19f(%rip), %rsi # 0xa2b30
leaq -0x580(%rbp), %rdx
xorl %ecx, %ecx
callq 0x1044f0
cmpl $0x0, %eax
je 0xa29a9
jmp 0xa2a93
jmp 0xa29ab
leaq 0xbe2b6e(%rip), %rax # 0xc85520
movl (%rax), %edi
movl -0x354(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
shlq $0x4, %rsi
addq $0x28, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xfc020
movq %rax, -0x590(%rbp)
cmpq $0x0, -0x590(%rbp)
jne 0xa29e7
jmp 0xa2a93
movq -0x590(%rbp), %rax
leaq 0x21cb2b(%rip), %rcx # 0x2bf520
movq %rcx, (%rax)
movl -0x354(%rbp), %ecx
movq -0x590(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x590(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
movq -0x580(%rbp), %rcx
movq -0x590(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x590(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x588(%rbp)
leaq -0x580(%rbp), %rdi
addq $0x20, %rdi
leaq 0xa24(%rip), %rsi # 0xa3470
leaq -0x588(%rbp), %rdx
xorl %ecx, %ecx
callq 0x1044f0
movl -0x28(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xa2a91
movq -0x590(%rbp), %rdi
addq $0x18, %rdi
movq -0x590(%rbp), %rax
movslq 0x10(%rax), %rsi
movl $0x10, %edx
leaq 0x8e9(%rip), %rcx # 0xa3370
xorl %eax, %eax
movl %eax, %r8d
callq 0xef4a0
jmp 0xa2a93
leaq -0x580(%rbp), %rdi
addq $0x20, %rdi
xorl %esi, %esi
callq 0x102d80
leaq -0x2c8(%rbp), %rdi
xorl %esi, %esi
callq 0x102d80
movq -0x598(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x170(%rax)
movq -0x590(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x5f0, %rsp # imm = 0x5F0
popq %rbp
retq
nopl (%rax)
| ft_init_nlq_search:
push rbp
mov rbp, rsp
sub rsp, 5F0h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_28], r8d
mov [rbp+var_30], r9
mov [rbp+var_590], 0
mov rax, [rbp+var_10]
mov rax, [rax+170h]
mov [rbp+var_598], rax
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
call _mi_check_index
mov [rbp+var_14], eax
cmp eax, 0
jge short loc_A26A1
jmp short $+2
loc_A2694:
mov [rbp+var_8], 0
jmp loc_A2AD0
loc_A26A1:
mov rdi, [rbp+var_10]
xor esi, esi
mov edx, 1
call _mi_readinfo
cmp eax, 0
jz short loc_A26C5
jmp short $+2
loc_A26B8:
mov [rbp+var_8], 0
jmp loc_A2AD0
loc_A26C5:
mov rax, [rbp+var_10]
mov [rbp+var_580], rax
mov eax, [rbp+var_14]
mov [rbp+var_578], eax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+28h]
mov rax, [rax]
mov [rbp+var_570], rax
mov rax, [rbp+var_10]
mov rax, [rax+108h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov ecx, [rcx+194h]
add rax, rcx
mov [rbp+var_568], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+38h]
mov [rbp+var_5A0], rax
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
xor edx, edx
call ftparser_call_initializer
mov [rbp+var_5A8], rax
cmp rax, 0
jnz short loc_A2764
jmp loc_A2A93
loc_A2764:
lea rdi, [rbp+var_2C8]
xor esi, esi
mov edx, 298h
call _memset
lea rdi, [rbp+var_580]
add rdi, 20h ; ' '
xor eax, eax
mov r9d, eax
mov ecx, 20h ; ' '
lea r8, FT_SUPERDOC_cmp
mov rsi, r9
mov rdx, r9
mov [rsp+5F0h+var_5F0], 0
mov [rsp+5F0h+var_5E8], 0
call init_tree
mov rsi, [rbp+var_570]
lea rdi, [rbp+var_2C8]
call ft_parse_init
mov rax, [rbp+var_5A8]
mov dword ptr [rax+34h], 0
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_5A0]
mov r8, [rbp+var_5A8]
lea r9, [rbp+var_2C8]
add r9, 238h
lea rdi, [rbp+var_2C8]
call ft_parse
cmp eax, 0
jz short loc_A2809
jmp loc_A2A93
loc_A2809:
lea rdi, [rbp+var_2C8]
lea rsi, walk_and_match
lea rdx, [rbp+var_580]
xor ecx, ecx
call tree_walk
cmp eax, 0
jz short loc_A282F
jmp loc_A2A93
loc_A282F:
mov eax, [rbp+var_28]
and eax, 4
cmp eax, 0
jz loc_A29AB
lea rax, ft_query_expansion_limit
cmp qword ptr [rax], 0
jz loc_A29AB
lea rax, ft_query_expansion_limit
mov rax, [rax]
mov esi, eax
lea rdi, [rbp+var_5D8]
xor ecx, ecx
lea r8, FT_DOC_cmp
xor eax, eax
mov r9d, eax
mov edx, ecx
mov dword ptr [rsp+5F0h+var_5F0], 0
mov dword ptr [rsp+5F0h+var_5E8], 0
call init_queue
lea rdi, [rbp+var_580]
add rdi, 20h ; ' '
lea rsi, walk_and_push
lea rdx, [rbp+var_5D8]
xor ecx, ecx
call tree_walk
loc_A28A6:
cmp [rbp+var_5C8], 0
jz loc_A2967
lea rdi, [rbp+var_5D8]
mov esi, 1
call queue_remove
mov rax, [rax]
mov [rbp+var_5E0], rax
mov rax, [rbp+var_10]
mov rax, [rax+140h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_5E0]
mov rdx, [rbp+var_30]
call rax
cmp eax, 0
jnz short loc_A2962
mov rax, [rbp+var_10]
mov ecx, [rax+1D0h]
or ecx, 2
mov [rax+1D0h], ecx
mov rax, [rbp+var_5A8]
mov dword ptr [rax+34h], 1
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
mov rcx, [rbp+var_30]
mov r8, [rbp+var_5A8]
lea r9, [rbp+var_2C8]
add r9, 238h
lea rdi, [rbp+var_2C8]
call _mi_ft_parse
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_A2960
lea rdi, [rbp+var_5D8]
call delete_queue
jmp loc_A2A93
loc_A2960:
jmp short $+2
loc_A2962:
jmp loc_A28A6
loc_A2967:
lea rdi, [rbp+var_5D8]
call delete_queue
lea rdi, [rbp+var_580]
add rdi, 20h ; ' '
call reset_tree
lea rdi, [rbp+var_2C8]
lea rsi, walk_and_match
lea rdx, [rbp+var_580]
xor ecx, ecx
call tree_walk
cmp eax, 0
jz short loc_A29A9
jmp loc_A2A93
loc_A29A9:
jmp short $+2
loc_A29AB:
lea rax, mi_key_memory_FT_INFO
mov edi, [rax]
mov eax, [rbp+var_354]
sub eax, 1
movsxd rsi, eax
shl rsi, 4
add rsi, 28h ; '('
xor eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_590], rax
cmp [rbp+var_590], 0
jnz short loc_A29E7
jmp loc_A2A93
loc_A29E7:
mov rax, [rbp+var_590]
lea rcx, _ft_vft_nlq
mov [rax], rcx
mov ecx, [rbp+var_354]
mov rax, [rbp+var_590]
mov [rax+10h], ecx
mov rax, [rbp+var_590]
mov dword ptr [rax+14h], 0FFFFFFFFh
mov rcx, [rbp+var_580]
mov rax, [rbp+var_590]
mov [rax+8], rcx
mov rax, [rbp+var_590]
add rax, 18h
mov [rbp+var_588], rax
lea rdi, [rbp+var_580]
add rdi, 20h ; ' '
lea rsi, walk_and_copy_0
lea rdx, [rbp+var_588]
xor ecx, ecx
call tree_walk
mov eax, [rbp+var_28]
and eax, 2
cmp eax, 0
jz short loc_A2A91
mov rdi, [rbp+var_590]
add rdi, 18h
mov rax, [rbp+var_590]
movsxd rsi, dword ptr [rax+10h]
mov edx, 10h
lea rcx, FT_DOC_cmp
xor eax, eax
mov r8d, eax
call my_qsort2
loc_A2A91:
jmp short $+2
loc_A2A93:
lea rdi, [rbp+var_580]
add rdi, 20h ; ' '
xor esi, esi
call delete_tree
lea rdi, [rbp+var_2C8]
xor esi, esi
call delete_tree
mov rcx, [rbp+var_598]
mov rax, [rbp+var_10]
mov [rax+170h], rcx
mov rax, [rbp+var_590]
mov [rbp+var_8], rax
loc_A2AD0:
mov rax, [rbp+var_8]
add rsp, 5F0h
pop rbp
retn
| long long ft_init_nlq_search(long long a1, unsigned int a2, long long a3, unsigned int a4, int a5, long long a6)
{
_QWORD *v6; // rax
_BYTE v8[16]; // [rsp+18h] [rbp-5D8h] BYREF
int v9; // [rsp+28h] [rbp-5C8h]
long long v10; // [rsp+48h] [rbp-5A8h]
long long v11; // [rsp+50h] [rbp-5A0h]
long long v12; // [rsp+58h] [rbp-598h]
long long v13; // [rsp+60h] [rbp-590h]
long long v14; // [rsp+68h] [rbp-588h] BYREF
long long v15; // [rsp+70h] [rbp-580h] BYREF
unsigned int v16; // [rsp+78h] [rbp-578h]
long long v17; // [rsp+80h] [rbp-570h]
long long v18; // [rsp+88h] [rbp-568h]
_BYTE v19[524]; // [rsp+90h] [rbp-560h] BYREF
int v20; // [rsp+29Ch] [rbp-354h]
_BYTE v21[568]; // [rsp+328h] [rbp-2C8h] BYREF
_BYTE v22[96]; // [rsp+560h] [rbp-90h] BYREF
long long v23; // [rsp+5C0h] [rbp-30h]
int v24; // [rsp+5C8h] [rbp-28h]
unsigned int v25; // [rsp+5CCh] [rbp-24h]
long long v26; // [rsp+5D0h] [rbp-20h]
unsigned int v27; // [rsp+5DCh] [rbp-14h]
long long v28; // [rsp+5E0h] [rbp-10h]
v28 = a1;
v27 = a2;
v26 = a3;
v25 = a4;
v24 = a5;
v23 = a6;
v13 = 0LL;
v12 = *(_QWORD *)(a1 + 368);
v27 = mi_check_index(a1, a2);
if ( (v27 & 0x80000000) != 0 )
return 0LL;
if ( (unsigned int)mi_readinfo(v28, 0LL, 1LL) )
return 0LL;
v15 = v28;
v16 = v27;
v17 = **(_QWORD **)(112LL * v27 + *(_QWORD *)(*(_QWORD *)v28 + 536LL) + 40);
v18 = *(unsigned int *)(*(_QWORD *)v28 + 404LL) + *(_QWORD *)(v28 + 264);
v11 = *(_QWORD *)(112LL * v27 + *(_QWORD *)(*(_QWORD *)v28 + 536LL) + 56);
v10 = ftparser_call_initializer(v28, v27, 0LL);
if ( v10 )
{
memset(v21, 0LL, 664LL);
init_tree((unsigned int)v19, 0, 0, 32, (unsigned int)FT_SUPERDOC_cmp, 0, 0LL, 0LL);
ft_parse_init(v21, v17);
*(_DWORD *)(v10 + 52) = 0;
if ( !(unsigned int)ft_parse(v21, v26, v25, v11, v10, v22)
&& !(unsigned int)tree_walk(v21, walk_and_match, &v15, 0LL) )
{
if ( (v24 & 4) == 0 || !*(_QWORD *)&ft_query_expansion_limit )
goto LABEL_17;
init_queue((unsigned int)v8, ft_query_expansion_limit, 0, 0, (unsigned int)FT_DOC_cmp, 0, 0, 0);
tree_walk(v19, walk_and_push, v8, 0LL);
while ( v9 )
{
v6 = (_QWORD *)queue_remove(v8, 1LL);
if ( !(*(unsigned int ( **)(long long, _QWORD, long long))(v28 + 320))(v28, *v6, v23) )
{
*(_DWORD *)(v28 + 464) |= 2u;
*(_DWORD *)(v10 + 52) = 1;
if ( (unsigned int)mi_ft_parse(v21, v28, v27, v23, v10, v22) )
{
delete_queue(v8);
goto LABEL_20;
}
}
}
delete_queue(v8);
reset_tree(v19);
if ( !(unsigned int)tree_walk(v21, walk_and_match, &v15, 0LL) )
{
LABEL_17:
v13 = my_malloc(mi_key_memory_FT_INFO, 16LL * (v20 - 1) + 40, 0LL);
if ( v13 )
{
*(_QWORD *)v13 = ft_vft_nlq;
*(_DWORD *)(v13 + 16) = v20;
*(_DWORD *)(v13 + 20) = -1;
*(_QWORD *)(v13 + 8) = v15;
v14 = v13 + 24;
tree_walk(v19, walk_and_copy_0, &v14, 0LL);
if ( (v24 & 2) != 0 )
my_qsort2(v13 + 24, *(int *)(v13 + 16), 16LL, FT_DOC_cmp, 0LL);
}
}
}
}
LABEL_20:
delete_tree(v19, 0LL);
delete_tree(v21, 0LL);
*(_QWORD *)(v28 + 368) = v12;
return v13;
}
| ft_init_nlq_search:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x5f0
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],R8D
MOV qword ptr [RBP + -0x30],R9
MOV qword ptr [RBP + -0x590],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x170]
MOV qword ptr [RBP + -0x598],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x001c0430
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JGE 0x001a26a1
JMP 0x001a2694
LAB_001a2694:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001a2ad0
LAB_001a26a1:
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
MOV EDX,0x1
CALL 0x001b2e60
CMP EAX,0x0
JZ 0x001a26c5
JMP 0x001a26b8
LAB_001a26b8:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001a2ad0
LAB_001a26c5:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x580],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x578],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x570],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x108]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x194]
ADD RAX,RCX
MOV qword ptr [RBP + -0x568],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x5a0],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
XOR EDX,EDX
CALL 0x001a4630
MOV qword ptr [RBP + -0x5a8],RAX
CMP RAX,0x0
JNZ 0x001a2764
JMP 0x001a2a93
LAB_001a2764:
LEA RDI,[RBP + -0x2c8]
XOR ESI,ESI
MOV EDX,0x298
CALL 0x0012a2c0
LEA RDI,[RBP + -0x580]
ADD RDI,0x20
XOR EAX,EAX
MOV R9D,EAX
MOV ECX,0x20
LEA R8,[0x1a2ae0]
MOV RSI,R9
MOV RDX,R9
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
CALL 0x00202b80
MOV RSI,qword ptr [RBP + -0x570]
LEA RDI,[RBP + -0x2c8]
CALL 0x001a42c0
MOV RAX,qword ptr [RBP + -0x5a8]
MOV dword ptr [RAX + 0x34],0x0
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x5a0]
MOV R8,qword ptr [RBP + -0x5a8]
LEA R9,[RBP + -0x2c8]
ADD R9,0x238
LEA RDI,[RBP + -0x2c8]
CALL 0x001a4370
CMP EAX,0x0
JZ 0x001a2809
JMP 0x001a2a93
LAB_001a2809:
LEA RDI,[RBP + -0x2c8]
LEA RSI,[0x1a2b30]
LEA RDX,[RBP + -0x580]
XOR ECX,ECX
CALL 0x002044f0
CMP EAX,0x0
JZ 0x001a282f
JMP 0x001a2a93
LAB_001a282f:
MOV EAX,dword ptr [RBP + -0x28]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001a29ab
LEA RAX,[0x3c93c0]
CMP qword ptr [RAX],0x0
JZ 0x001a29ab
LEA RAX,[0x3c93c0]
MOV RAX,qword ptr [RAX]
MOV ESI,EAX
LEA RDI,[RBP + -0x5d8]
XOR ECX,ECX
LEA R8,[0x1a3370]
XOR EAX,EAX
MOV R9D,EAX
MOV EDX,ECX
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x001ff750
LEA RDI,[RBP + -0x580]
ADD RDI,0x20
LEA RSI,[0x1a33e0]
LEA RDX,[RBP + -0x5d8]
XOR ECX,ECX
CALL 0x002044f0
LAB_001a28a6:
CMP dword ptr [RBP + -0x5c8],0x0
JZ 0x001a2967
LEA RDI,[RBP + -0x5d8]
MOV ESI,0x1
CALL 0x001ffb70
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x5e0],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x140]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x5e0]
MOV RDX,qword ptr [RBP + -0x30]
CALL RAX
CMP EAX,0x0
JNZ 0x001a2962
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1d0]
OR ECX,0x2
MOV dword ptr [RAX + 0x1d0],ECX
MOV RAX,qword ptr [RBP + -0x5a8]
MOV dword ptr [RAX + 0x34],0x1
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + -0x5a8]
LEA R9,[RBP + -0x2c8]
ADD R9,0x238
LEA RDI,[RBP + -0x2c8]
CALL 0x001a4b00
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001a2960
LEA RDI,[RBP + -0x5d8]
CALL 0x001ff980
JMP 0x001a2a93
LAB_001a2960:
JMP 0x001a2962
LAB_001a2962:
JMP 0x001a28a6
LAB_001a2967:
LEA RDI,[RBP + -0x5d8]
CALL 0x001ff980
LEA RDI,[RBP + -0x580]
ADD RDI,0x20
CALL 0x00202f20
LEA RDI,[RBP + -0x2c8]
LEA RSI,[0x1a2b30]
LEA RDX,[RBP + -0x580]
XOR ECX,ECX
CALL 0x002044f0
CMP EAX,0x0
JZ 0x001a29a9
JMP 0x001a2a93
LAB_001a29a9:
JMP 0x001a29ab
LAB_001a29ab:
LEA RAX,[0xd85520]
MOV EDI,dword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x354]
SUB EAX,0x1
MOVSXD RSI,EAX
SHL RSI,0x4
ADD RSI,0x28
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001fc020
MOV qword ptr [RBP + -0x590],RAX
CMP qword ptr [RBP + -0x590],0x0
JNZ 0x001a29e7
JMP 0x001a2a93
LAB_001a29e7:
MOV RAX,qword ptr [RBP + -0x590]
LEA RCX,[0x3bf520]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x354]
MOV RAX,qword ptr [RBP + -0x590]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x590]
MOV dword ptr [RAX + 0x14],0xffffffff
MOV RCX,qword ptr [RBP + -0x580]
MOV RAX,qword ptr [RBP + -0x590]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x590]
ADD RAX,0x18
MOV qword ptr [RBP + -0x588],RAX
LEA RDI,[RBP + -0x580]
ADD RDI,0x20
LEA RSI,[0x1a3470]
LEA RDX,[RBP + -0x588]
XOR ECX,ECX
CALL 0x002044f0
MOV EAX,dword ptr [RBP + -0x28]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001a2a91
MOV RDI,qword ptr [RBP + -0x590]
ADD RDI,0x18
MOV RAX,qword ptr [RBP + -0x590]
MOVSXD RSI,dword ptr [RAX + 0x10]
MOV EDX,0x10
LEA RCX,[0x1a3370]
XOR EAX,EAX
MOV R8D,EAX
CALL 0x001ef4a0
LAB_001a2a91:
JMP 0x001a2a93
LAB_001a2a93:
LEA RDI,[RBP + -0x580]
ADD RDI,0x20
XOR ESI,ESI
CALL 0x00202d80
LEA RDI,[RBP + -0x2c8]
XOR ESI,ESI
CALL 0x00202d80
MOV RCX,qword ptr [RBP + -0x598]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],RCX
MOV RAX,qword ptr [RBP + -0x590]
MOV qword ptr [RBP + -0x8],RAX
LAB_001a2ad0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x5f0
POP RBP
RET
|
int8 *
ft_init_nlq_search(long *param_1,int4 param_2,int8 param_3,int4 param_4,
uint param_5,int8 param_6)
{
int iVar1;
int8 *puVar2;
ulong uVar3;
ulong uVar4;
int1 local_5e0 [16];
int local_5d0;
long local_5b0;
int8 local_5a8;
long local_5a0;
int8 *local_598;
int8 *local_590;
long *local_588;
uint local_580;
int8 local_578;
long local_570;
int1 auStack_568 [524];
int local_35c;
int1 local_2d0 [568];
int1 auStack_98 [96];
int8 local_38;
uint local_30;
int4 local_2c;
int8 local_28;
uint local_1c;
long *local_18;
int8 *local_10;
local_598 = (int8 *)0x0;
local_5a0 = param_1[0x2e];
local_38 = param_6;
local_30 = param_5;
local_2c = param_4;
local_28 = param_3;
local_1c = param_2;
local_18 = param_1;
local_1c = _mi_check_index(param_1,param_2);
if ((int)local_1c < 0) {
local_10 = (int8 *)0x0;
}
else {
iVar1 = _mi_readinfo(local_18,0,1);
if (iVar1 == 0) {
local_588 = local_18;
local_580 = local_1c;
local_578 = **(int8 **)(*(long *)(*local_18 + 0x218) + (ulong)local_1c * 0x70 + 0x28);
local_570 = local_18[0x21] + (ulong)*(uint *)(*local_18 + 0x194);
local_5a8 = *(int8 *)(*(long *)(*local_18 + 0x218) + (ulong)local_1c * 0x70 + 0x38);
local_5b0 = ftparser_call_initializer(local_18,local_1c,0);
if (local_5b0 != 0) {
memset(local_2d0,0,0x298);
uVar3 = 0;
uVar4 = 0;
init_tree(auStack_568,0,0,0x20,FT_SUPERDOC_cmp,0,0,0);
ft_parse_init(local_2d0,local_578);
*(int4 *)(local_5b0 + 0x34) = 0;
iVar1 = ft_parse(local_2d0,local_28,local_2c,local_5a8,local_5b0,auStack_98);
if ((iVar1 == 0) && (iVar1 = tree_walk(local_2d0,walk_and_match,&local_588,0), iVar1 == 0))
{
if (((local_30 & 4) == 0) || (ft_query_expansion_limit == 0)) {
LAB_001a29ab:
local_598 = (int8 *)
my_malloc(mi_key_memory_FT_INFO,(long)(local_35c + -1) * 0x10 + 0x28,0);
if (local_598 != (int8 *)0x0) {
*local_598 = _ft_vft_nlq;
*(int *)(local_598 + 2) = local_35c;
*(int4 *)((long)local_598 + 0x14) = 0xffffffff;
local_598[1] = local_588;
local_590 = local_598 + 3;
tree_walk(auStack_568,walk_and_copy,&local_590,0);
if ((local_30 & 2) != 0) {
my_qsort2(local_598 + 3,(long)*(int *)(local_598 + 2),0x10,FT_DOC_cmp,0);
}
}
}
else {
init_queue(local_5e0,ft_query_expansion_limit & 0xffffffff,0,0,FT_DOC_cmp,0,
uVar3 & 0xffffffff00000000,uVar4 & 0xffffffff00000000);
tree_walk(auStack_568,walk_and_push,local_5e0,0);
do {
do {
if (local_5d0 == 0) {
delete_queue(local_5e0);
reset_tree(auStack_568);
iVar1 = tree_walk(local_2d0,walk_and_match,&local_588,0);
if (iVar1 == 0) goto LAB_001a29ab;
goto LAB_001a2a93;
}
puVar2 = (int8 *)queue_remove(local_5e0,1);
iVar1 = (*(code *)local_18[0x28])(local_18,*puVar2,local_38);
} while (iVar1 != 0);
*(uint *)(local_18 + 0x3a) = *(uint *)(local_18 + 0x3a) | 2;
*(int4 *)(local_5b0 + 0x34) = 1;
iVar1 = _mi_ft_parse(local_2d0,local_18,local_1c,local_38,local_5b0,auStack_98);
} while (iVar1 == 0);
delete_queue(local_5e0);
}
}
}
LAB_001a2a93:
delete_tree(auStack_568,0);
delete_tree(local_2d0,0);
local_18[0x2e] = local_5a0;
local_10 = local_598;
}
else {
local_10 = (int8 *)0x0;
}
}
return local_10;
}
| |
41,388 | Item_param::set_time(st_mysql_time const*, unsigned int, unsigned int) | eloqsql/sql/item.cc | void Item_param::set_time(const MYSQL_TIME *tm,
uint32 max_length_arg, uint decimals_arg)
{
DBUG_ASSERT(value.type_handler()->cmp_type() == TIME_RESULT);
value.time= *tm;
base_flags&= ~item_base_t::MAYBE_NULL;
null_value= 0;
fix_temporal(max_length_arg, decimals_arg);
} | O3 | cpp | Item_param::set_time(st_mysql_time const*, unsigned int, unsigned int):
pushq %rbp
movq %rsp, %rbp
movq 0x20(%rsi), %rax
movq %rax, 0xc8(%rdi)
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0xb8(%rdi)
movups %xmm0, 0xa8(%rdi)
movl $0x2, 0x98(%rdi)
leaq 0x9c369f(%rip), %rax # 0x108c330
movq %rax, 0x10(%rdi)
movabsq $0x100000005, %rax # imm = 0x100000005
movq %rax, 0x18(%rdi)
movl %edx, 0x8(%rdi)
movw %cx, 0xc(%rdi)
andb $-0x2, 0x60(%rdi)
movb $0x0, 0x64(%rdi)
popq %rbp
retq
| _ZN10Item_param8set_timeEPK13st_mysql_timejj:
push rbp
mov rbp, rsp
mov rax, [rsi+20h]
mov [rdi+0C8h], rax
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rdi+0B8h], xmm1
movups xmmword ptr [rdi+0A8h], xmm0
mov dword ptr [rdi+98h], 2
lea rax, my_charset_latin1
mov [rdi+10h], rax
mov rax, 100000005h
mov [rdi+18h], rax
mov [rdi+8], edx
mov [rdi+0Ch], cx
and byte ptr [rdi+60h], 0FEh
mov byte ptr [rdi+64h], 0
pop rbp
retn
| long long Item_param::set_time(long long a1, __int128 *a2, int a3, __int16 a4)
{
__int128 v4; // xmm0
long long result; // rax
*(_QWORD *)(a1 + 200) = *((_QWORD *)a2 + 4);
v4 = *a2;
*(_OWORD *)(a1 + 184) = a2[1];
*(_OWORD *)(a1 + 168) = v4;
*(_DWORD *)(a1 + 152) = 2;
*(_QWORD *)(a1 + 16) = &my_charset_latin1;
result = 0x100000005LL;
*(_QWORD *)(a1 + 24) = 0x100000005LL;
*(_DWORD *)(a1 + 8) = a3;
*(_WORD *)(a1 + 12) = a4;
*(_BYTE *)(a1 + 96) &= ~1u;
*(_BYTE *)(a1 + 100) = 0;
return result;
}
| pos_in_interval:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x450]
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV ECX,EAX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00799ca2
|
/* Field_str::pos_in_interval(Field*, Field*) */
void __thiscall Field_str::pos_in_interval(Field_str *this,Field *param_1,Field *param_2)
{
uint uVar1;
uVar1 = (**(code **)(*(long *)this + 0x450))();
Field::pos_in_interval_val_str((Field *)this,param_1,param_2,uVar1);
return;
}
| |
41,389 | print_profiling_results | tsotchke[P]eshkol/src/backend/codegen/debug.c | static void print_profiling_results(const ProfilingPhase* phase) {
assert(phase != NULL);
double time_seconds = (double)(phase->end_time - phase->start_time) / CLOCKS_PER_SEC;
size_t memory_used = phase->end_memory.active_bytes_allocated - phase->start_memory.active_bytes_allocated;
size_t allocations = phase->end_memory.active_allocations - phase->start_memory.active_allocations;
printf("Phase: %s\n", phase->name);
printf("Time: %.6f seconds\n", time_seconds);
printf("Memory: %zu bytes (%zu allocations)\n", memory_used, allocations);
printf("Peak Memory: %zu bytes\n\n", phase->end_memory.peak_bytes_allocated);
} | O3 | c | print_profiling_results:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0xf529
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
cvtsi2sd %rax, %xmm0
divsd 0xe6b9(%rip), %xmm0 # 0x1db78
movsd %xmm0, 0x8(%rsp)
movq 0x58(%rdi), %r14
subq 0x30(%rdi), %r14
movq (%rdi), %rsi
movq 0x48(%rdi), %r15
subq 0x20(%rdi), %r15
leaq 0xe920(%rip), %rdi # 0x1ddff
xorl %eax, %eax
callq 0x2140
leaq 0xe7e1(%rip), %rdi # 0x1dcce
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x2140
leaq 0xe909(%rip), %rdi # 0x1de0a
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2140
movq 0x60(%rbx), %rsi
leaq 0xe916(%rip), %rdi # 0x1de2f
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x2140
leaq 0xe7e8(%rip), %rdi # 0x1dd18
leaq 0xe649(%rip), %rsi # 0x1db80
leaq 0xe88c(%rip), %rcx # 0x1ddca
movl $0x7e, %edx
callq 0x2180
| print_profiling_results:
push r15
push r14
push rbx
sub rsp, 10h
test rdi, rdi
jz loc_F529
mov rbx, rdi
mov rax, [rdi+10h]
sub rax, [rdi+8]
cvtsi2sd xmm0, rax
divsd xmm0, cs:qword_1DB78
movsd [rsp+28h+var_20], xmm0
mov r14, [rdi+58h]
sub r14, [rdi+30h]
mov rsi, [rdi]
mov r15, [rdi+48h]
sub r15, [rdi+20h]
lea rdi, aPhaseS; "Phase: %s\n"
xor eax, eax
call _printf
lea rdi, aTotalTime6fSec+6; "Time: %.6f seconds\n"
movsd xmm0, [rsp+28h+var_20]
mov al, 1
call _printf
lea rdi, aMemoryZuBytesZ; "Memory: %zu bytes (%zu allocations)\n"
mov rsi, r14
mov rdx, r15
xor eax, eax
call _printf
mov rsi, [rbx+60h]
lea rdi, aPeakMemoryZuBy; "Peak Memory: %zu bytes\n\n"
xor eax, eax
add rsp, 10h
pop rbx
pop r14
pop r15
jmp _printf
loc_F529:
lea rdi, aPhaseNull; "phase != NULL"
lea rsi, aWorkspaceLlm4b_13; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidPrintProfi; "void print_profiling_results(const Prof"...
mov edx, 7Eh ; '~'
call ___assert_fail
| long long print_profiling_results(long long a1)
{
long long v1; // r14
long long v2; // r15
double v4; // [rsp+8h] [rbp-20h]
if ( !a1 )
__assert_fail(
"phase != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/debug.c",
126LL,
"void print_profiling_results(const ProfilingPhase *)");
v4 = (double)(*(_DWORD *)(a1 + 16) - *(_DWORD *)(a1 + 8)) / 1000000.0;
v1 = *(_QWORD *)(a1 + 88) - *(_QWORD *)(a1 + 48);
v2 = *(_QWORD *)(a1 + 72) - *(_QWORD *)(a1 + 32);
printf("Phase: %s\n", *(const char **)a1);
printf("Time: %.6f seconds\n", v4);
printf("Memory: %zu bytes (%zu allocations)\n", v1, v2);
return printf("Peak Memory: %zu bytes\n\n", *(_QWORD *)(a1 + 96));
}
| print_profiling_results:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
TEST RDI,RDI
JZ 0x0010f529
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
SUB RAX,qword ptr [RDI + 0x8]
CVTSI2SD XMM0,RAX
DIVSD XMM0,qword ptr [0x0011db78]
MOVSD qword ptr [RSP + 0x8],XMM0
MOV R14,qword ptr [RDI + 0x58]
SUB R14,qword ptr [RDI + 0x30]
MOV RSI,qword ptr [RDI]
MOV R15,qword ptr [RDI + 0x48]
SUB R15,qword ptr [RDI + 0x20]
LEA RDI,[0x11ddff]
XOR EAX,EAX
CALL 0x00102140
LEA RDI,[0x11dcce]
MOVSD XMM0,qword ptr [RSP + 0x8]
MOV AL,0x1
CALL 0x00102140
LEA RDI,[0x11de0a]
MOV RSI,R14
MOV RDX,R15
XOR EAX,EAX
CALL 0x00102140
MOV RSI,qword ptr [RBX + 0x60]
LEA RDI,[0x11de2f]
XOR EAX,EAX
ADD RSP,0x10
POP RBX
POP R14
POP R15
JMP 0x00102140
LAB_0010f529:
LEA RDI,[0x11dd18]
LEA RSI,[0x11db80]
LEA RCX,[0x11ddca]
MOV EDX,0x7e
CALL 0x00102180
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void print_profiling_results(int8 *param_1)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
double dVar5;
if (param_1 != (int8 *)0x0) {
dVar5 = (double)(long)(param_1[2] - param_1[1]) / _DAT_0011db78;
lVar1 = param_1[0xb];
lVar2 = param_1[6];
lVar3 = param_1[9];
lVar4 = param_1[4];
printf("Phase: %s\n",*param_1);
printf("Time: %.6f seconds\n",dVar5);
printf("Memory: %zu bytes (%zu allocations)\n",lVar1 - lVar2,lVar3 - lVar4);
printf("Peak Memory: %zu bytes\n\n",param_1[0xc]);
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("phase != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/debug.c"
,0x7e,"void print_profiling_results(const ProfilingPhase *)");
}
| |
41,390 | YAML::convert<aimrt::runtime::core::logger::LoggerManager::Options>::encode(aimrt::runtime::core::logger::LoggerManager::Options const&) | aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/logger/logger_manager.cc | static Node encode(const Options& rhs) {
Node node;
node["core_lvl"] = aimrt::runtime::core::logger::LogLevelTool::GetLogLevelName(rhs.core_lvl);
node["default_module_lvl"] = aimrt::runtime::core::logger::LogLevelTool::GetLogLevelName(rhs.default_module_lvl);
node["backends"] = YAML::Node();
for (const auto& backend_options : rhs.backends_options) {
Node backend_options_node;
backend_options_node["type"] = backend_options.type;
backend_options_node["options"] = backend_options.options;
node["backends"].push_back(backend_options_node);
}
return node;
} | O0 | cpp | YAML::convert<aimrt::runtime::core::logger::LoggerManager::Options>::encode(aimrt::runtime::core::logger::LoggerManager::Options const&):
subq $0x2a8, %rsp # imm = 0x2A8
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x2a0(%rsp)
movq %rsi, 0x298(%rsp)
movb $0x0, 0x297(%rsp)
callq 0x354050
movq 0x298(%rsp), %rax
movl (%rax), %edi
callq 0x623fa0
movq %rdx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
jmp 0x623b8c
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, 0x280(%rsp)
movq %rax, 0x288(%rsp)
leaq 0x147444(%rip), %rdx # 0x76aff6
leaq 0x230(%rsp), %rdi
callq 0x5fc810
jmp 0x623bc1
leaq 0x230(%rsp), %rdi
leaq 0x280(%rsp), %rsi
callq 0x623fd0
jmp 0x623bd8
leaq 0x230(%rsp), %rdi
callq 0x3508d0
movq 0x298(%rsp), %rax
movl 0x4(%rax), %edi
callq 0x623fa0
movq %rdx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
jmp 0x623c01
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x220(%rsp)
movq %rax, 0x228(%rsp)
leaq 0x1473d8(%rip), %rdx # 0x76afff
leaq 0x1e0(%rsp), %rdi
callq 0x357780
jmp 0x623c36
leaq 0x1e0(%rsp), %rdi
leaq 0x220(%rsp), %rsi
callq 0x623fd0
jmp 0x623c4d
leaq 0x1e0(%rsp), %rdi
callq 0x3508d0
leaq 0x1a0(%rsp), %rdi
callq 0x354050
jmp 0x623c69
movq 0x20(%rsp), %rsi
leaq 0x145d48(%rip), %rdx # 0x7699bd
leaq 0x160(%rsp), %rdi
callq 0x5fc810
jmp 0x623c84
leaq 0x160(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x3578b0
jmp 0x623c9b
leaq 0x160(%rsp), %rdi
callq 0x3508d0
leaq 0x1a0(%rsp), %rdi
callq 0x3508d0
movq 0x298(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x158(%rsp)
movq 0x158(%rsp), %rdi
callq 0x624000
movq %rax, 0x150(%rsp)
movq 0x158(%rsp), %rdi
callq 0x624030
movq %rax, 0x148(%rsp)
leaq 0x150(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x624060
xorb $-0x1, %al
testb $0x1, %al
jne 0x623d13
jmp 0x623f5d
leaq 0x150(%rsp), %rdi
callq 0x6240a0
movq %rax, 0x140(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x354050
jmp 0x623d37
movq 0x140(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x145720(%rip), %rdx # 0x76946b
leaq 0xc0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x5fc9f0
jmp 0x623d62
movq 0x8(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
callq 0x357af0
jmp 0x623d76
leaq 0xc0(%rsp), %rdi
callq 0x3508d0
movq 0x140(%rsp), %rax
addq $0x20, %rax
movq %rax, (%rsp)
leaq 0xe598e(%rip), %rdx # 0x709728
leaq 0x80(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x5fcb20
jmp 0x623db1
movq (%rsp), %rsi
leaq 0x80(%rsp), %rdi
callq 0x3578b0
jmp 0x623dc4
leaq 0x80(%rsp), %rdi
callq 0x3508d0
movq 0x20(%rsp), %rsi
leaq 0x145be0(%rip), %rdx # 0x7699bd
leaq 0x40(%rsp), %rdi
callq 0x5fc810
jmp 0x623de9
leaq 0x40(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x357c80
jmp 0x623dfd
leaq 0x40(%rsp), %rdi
callq 0x3508d0
leaq 0x100(%rsp), %rdi
callq 0x3508d0
leaq 0x150(%rsp), %rdi
callq 0x6240b0
jmp 0x623cf3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x623f86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x230(%rsp), %rdi
callq 0x3508d0
jmp 0x623f86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0x3508d0
jmp 0x623f86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x623ec2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x160(%rsp), %rdi
callq 0x3508d0
leaq 0x1a0(%rsp), %rdi
callq 0x3508d0
jmp 0x623f86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0x623f4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x3508d0
jmp 0x623f4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x3508d0
jmp 0x623f4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x3508d0
leaq 0x100(%rsp), %rdi
callq 0x3508d0
jmp 0x623f86
movb $0x1, 0x297(%rsp)
testb $0x1, 0x297(%rsp)
jne 0x623f79
movq 0x20(%rsp), %rdi
callq 0x3508d0
movq 0x28(%rsp), %rax
addq $0x2a8, %rsp # imm = 0x2A8
retq
movq 0x20(%rsp), %rdi
callq 0x3508d0
movq 0x278(%rsp), %rdi
callq 0x1d0790
nopl (%rax)
| _ZN4YAML7convertIN5aimrt7runtime4core6logger13LoggerManager7OptionsEE6encodeERKS6_:
sub rsp, 2A8h
mov [rsp+2A8h+var_288], rdi
mov rax, rdi
mov [rsp+2A8h+var_280], rax
mov [rsp+2A8h+var_8], rdi
mov [rsp+2A8h+var_10], rsi
mov [rsp+2A8h+var_11], 0
call _ZN4YAML4NodeC2Ev; YAML::Node::Node(void)
mov rax, [rsp+2A8h+var_10]
mov edi, [rax]
call _ZN5aimrt7runtime4core6logger12LogLevelTool15GetLogLevelNameE17aimrt_log_level_t; aimrt::runtime::core::logger::LogLevelTool::GetLogLevelName(aimrt_log_level_t)
mov [rsp+2A8h+var_278], rdx
mov [rsp+2A8h+var_270], rax
jmp short $+2
loc_623B8C:
mov rsi, [rsp+2A8h+var_288]
mov rax, [rsp+2A8h+var_278]
mov rcx, [rsp+2A8h+var_270]
mov [rsp+2A8h+var_28], rcx
mov [rsp+2A8h+var_20], rax
lea rdx, aCoreLvl; "core_lvl"
lea rdi, [rsp+2A8h+var_78]
call _ZN4YAML4NodeixIA9_cEES0_RKT_; YAML::Node::operator[]<char [9]>(char [9] const&)
jmp short $+2
loc_623BC1:
lea rdi, [rsp+2A8h+var_78]
lea rsi, [rsp+2A8h+var_28]
call _ZN4YAML4NodeaSISt17basic_string_viewIcSt11char_traitsIcEEEERS0_RKT_; YAML::Node::operator=<std::string_view>(std::string_view const&)
jmp short $+2
loc_623BD8:
lea rdi, [rsp+2A8h+var_78]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
mov rax, [rsp+2A8h+var_10]
mov edi, [rax+4]
call _ZN5aimrt7runtime4core6logger12LogLevelTool15GetLogLevelNameE17aimrt_log_level_t; aimrt::runtime::core::logger::LogLevelTool::GetLogLevelName(aimrt_log_level_t)
mov [rsp+2A8h+var_298], rdx
mov [rsp+2A8h+var_290], rax
jmp short $+2
loc_623C01:
mov rsi, [rsp+2A8h+var_288]
mov rax, [rsp+2A8h+var_298]
mov rcx, [rsp+2A8h+var_290]
mov [rsp+2A8h+var_88], rcx
mov [rsp+2A8h+var_80], rax
lea rdx, aDefaultModuleL; "default_module_lvl"
lea rdi, [rsp+2A8h+var_C8]
call _ZN4YAML4NodeixIA19_cEES0_RKT_; YAML::Node::operator[]<char [19]>(char [19] const&)
jmp short $+2
loc_623C36:
lea rdi, [rsp+2A8h+var_C8]
lea rsi, [rsp+2A8h+var_88]
call _ZN4YAML4NodeaSISt17basic_string_viewIcSt11char_traitsIcEEEERS0_RKT_; YAML::Node::operator=<std::string_view>(std::string_view const&)
jmp short $+2
loc_623C4D:
lea rdi, [rsp+2A8h+var_C8]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
lea rdi, [rsp+2A8h+var_108]; this
call _ZN4YAML4NodeC2Ev; YAML::Node::Node(void)
jmp short $+2
loc_623C69:
mov rsi, [rsp+2A8h+var_288]
lea rdx, aEnableBackends+7; "backends"
lea rdi, [rsp+2A8h+var_148]
call _ZN4YAML4NodeixIA9_cEES0_RKT_; YAML::Node::operator[]<char [9]>(char [9] const&)
jmp short $+2
loc_623C84:
lea rdi, [rsp+2A8h+var_148]
lea rsi, [rsp+2A8h+var_108]
call _ZN4YAML4NodeaSERKS0_; YAML::Node::operator=(YAML::Node const&)
jmp short $+2
loc_623C9B:
lea rdi, [rsp+2A8h+var_148]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
lea rdi, [rsp+2A8h+var_108]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
mov rax, [rsp+2A8h+var_10]
add rax, 8
mov [rsp+2A8h+var_150], rax
mov rdi, [rsp+2A8h+var_150]
call _ZNKSt6vectorIN5aimrt7runtime4core6logger13LoggerManager7Options14BackendOptionsESaIS6_EE5beginEv; std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>::begin(void)
mov [rsp+2A8h+var_158], rax
mov rdi, [rsp+2A8h+var_150]
call _ZNKSt6vectorIN5aimrt7runtime4core6logger13LoggerManager7Options14BackendOptionsESaIS6_EE3endEv; std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>::end(void)
mov [rsp+2A8h+var_160], rax
loc_623CF3:
lea rdi, [rsp+2A8h+var_158]
lea rsi, [rsp+2A8h+var_160]
call _ZN9__gnu_cxxeqIPKN5aimrt7runtime4core6logger13LoggerManager7Options14BackendOptionsESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
xor al, 0FFh
test al, 1
jnz short loc_623D13
jmp loc_623F5D
loc_623D13:
lea rdi, [rsp+2A8h+var_158]
call _ZNK9__gnu_cxx17__normal_iteratorIPKN5aimrt7runtime4core6logger13LoggerManager7Options14BackendOptionsESt6vectorIS7_SaIS7_EEEdeEv; __gnu_cxx::__normal_iterator<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions const*,std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>>::operator*(void)
mov [rsp+2A8h+var_168], rax
lea rdi, [rsp+2A8h+var_1A8]; this
call _ZN4YAML4NodeC2Ev; YAML::Node::Node(void)
jmp short $+2
loc_623D37:
mov rax, [rsp+2A8h+var_168]
mov [rsp+2A8h+var_2A0], rax
lea rdx, aMsgType+4; "type"
lea rdi, [rsp+2A8h+var_1E8]
lea rsi, [rsp+2A8h+var_1A8]
call _ZN4YAML4NodeixIA5_cEES0_RKT_; YAML::Node::operator[]<char [5]>(char [5] const&)
jmp short $+2
loc_623D62:
mov rsi, [rsp+2A8h+var_2A0]
lea rdi, [rsp+2A8h+var_1E8]
call _ZN4YAML4NodeaSINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_; YAML::Node::operator=<std::string>(std::string const&)
jmp short $+2
loc_623D76:
lea rdi, [rsp+2A8h+var_1E8]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
mov rax, [rsp+2A8h+var_168]
add rax, 20h ; ' '
mov [rsp+2A8h+var_2A8], rax
lea rdx, aConflictingGra+14h; "options"
lea rdi, [rsp+2A8h+var_228]
lea rsi, [rsp+2A8h+var_1A8]
call _ZN4YAML4NodeixIA8_cEES0_RKT_; YAML::Node::operator[]<char [8]>(char [8] const&)
jmp short $+2
loc_623DB1:
mov rsi, [rsp+2A8h+var_2A8]
lea rdi, [rsp+2A8h+var_228]
call _ZN4YAML4NodeaSERKS0_; YAML::Node::operator=(YAML::Node const&)
jmp short $+2
loc_623DC4:
lea rdi, [rsp+2A8h+var_228]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
mov rsi, [rsp+2A8h+var_288]
lea rdx, aEnableBackends+7; "backends"
lea rdi, [rsp+2A8h+var_268]
call _ZN4YAML4NodeixIA9_cEES0_RKT_; YAML::Node::operator[]<char [9]>(char [9] const&)
jmp short $+2
loc_623DE9:
lea rdi, [rsp+2A8h+var_268]; this
lea rsi, [rsp+2A8h+var_1A8]; YAML::Node *
call _ZN4YAML4Node9push_backERKS0_; YAML::Node::push_back(YAML::Node const&)
jmp short $+2
loc_623DFD:
lea rdi, [rsp+2A8h+var_268]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
lea rdi, [rsp+2A8h+var_1A8]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
lea rdi, [rsp+2A8h+var_158]
call _ZN9__gnu_cxx17__normal_iteratorIPKN5aimrt7runtime4core6logger13LoggerManager7Options14BackendOptionsESt6vectorIS7_SaIS7_EEEppEv; __gnu_cxx::__normal_iterator<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions const*,std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>>::operator++(void)
jmp loc_623CF3
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
jmp loc_623F86
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
lea rdi, [rsp+arg_228]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
jmp loc_623F86
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
lea rdi, [rsp+arg_1D8]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
jmp loc_623F86
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
jmp short loc_623EC2
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
lea rdi, [rsp+arg_158]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
loc_623EC2:
lea rdi, [rsp+arg_198]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
jmp loc_623F86
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
jmp short loc_623F4E
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
lea rdi, [rsp+arg_B8]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
jmp short loc_623F4E
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
lea rdi, [rsp+arg_78]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
jmp short loc_623F4E
mov rcx, rax
mov eax, edx
mov [rsp+arg_270], rcx
mov [rsp+arg_26C], eax
lea rdi, [rsp+arg_38]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
loc_623F4E:
lea rdi, [rsp+arg_F8]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
jmp short loc_623F86
loc_623F5D:
mov [rsp+2A8h+var_11], 1
test [rsp+2A8h+var_11], 1
jnz short loc_623F79
mov rdi, [rsp+2A8h+var_288]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
loc_623F79:
mov rax, [rsp+2A8h+var_280]
add rsp, 2A8h
retn
loc_623F86:
mov rdi, [rsp+arg_18]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
mov rdi, [rsp+arg_270]
call __Unwind_Resume
| YAML::Node * YAML::convert<aimrt::runtime::core::logger::LoggerManager::Options>::encode(
YAML::Node *a1,
unsigned int *a2)
{
long long v2; // rdx
long long v3; // rdx
const YAML::Node *v5; // [rsp+0h] [rbp-2A8h]
long long v6; // [rsp+8h] [rbp-2A0h]
_BYTE v7[64]; // [rsp+40h] [rbp-268h] BYREF
_BYTE v8[64]; // [rsp+80h] [rbp-228h] BYREF
_BYTE v9[64]; // [rsp+C0h] [rbp-1E8h] BYREF
_BYTE v10[64]; // [rsp+100h] [rbp-1A8h] BYREF
long long v11; // [rsp+140h] [rbp-168h]
long long v12; // [rsp+148h] [rbp-160h] BYREF
long long v13; // [rsp+150h] [rbp-158h] BYREF
unsigned int *v14; // [rsp+158h] [rbp-150h]
_BYTE v15[64]; // [rsp+160h] [rbp-148h] BYREF
_BYTE v16[64]; // [rsp+1A0h] [rbp-108h] BYREF
_BYTE v17[64]; // [rsp+1E0h] [rbp-C8h] BYREF
_QWORD v18[2]; // [rsp+220h] [rbp-88h] BYREF
_BYTE v19[80]; // [rsp+230h] [rbp-78h] BYREF
_QWORD v20[2]; // [rsp+280h] [rbp-28h] BYREF
char v21; // [rsp+297h] [rbp-11h]
unsigned int *v22; // [rsp+298h] [rbp-10h]
YAML::Node *v23; // [rsp+2A0h] [rbp-8h]
v23 = a1;
v22 = a2;
v21 = 0;
YAML::Node::Node(a1);
v20[0] = aimrt::runtime::core::logger::LogLevelTool::GetLogLevelName(*a2);
v20[1] = v2;
YAML::Node::operator[]<char [9]>((long long)v19, a1, (long long)"core_lvl");
YAML::Node::operator=<std::string_view>(v19, v20);
YAML::Node::~Node((YAML::Node *)v19);
v18[0] = aimrt::runtime::core::logger::LogLevelTool::GetLogLevelName(v22[1]);
v18[1] = v3;
YAML::Node::operator[]<char [19]>((long long)v17, a1, (long long)"default_module_lvl");
YAML::Node::operator=<std::string_view>(v17, v18);
YAML::Node::~Node((YAML::Node *)v17);
YAML::Node::Node((YAML::Node *)v16);
YAML::Node::operator[]<char [9]>((long long)v15, a1, (long long)"backends");
YAML::Node::operator=((YAML::Node *)v15, (const YAML::Node *)v16);
YAML::Node::~Node((YAML::Node *)v15);
YAML::Node::~Node((YAML::Node *)v16);
v14 = v22 + 2;
v13 = std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>::begin(v22 + 2);
v12 = std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>::end(v14);
while ( (__gnu_cxx::operator==<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions const*,std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>>(
&v13,
&v12) & 1) == 0 )
{
v11 = __gnu_cxx::__normal_iterator<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions const*,std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>>::operator*(&v13);
YAML::Node::Node((YAML::Node *)v10);
v6 = v11;
YAML::Node::operator[]<char [5]>((long long)v9, (YAML::Node *)v10, (long long)"type");
YAML::Node::operator=<std::string>((long long)v9, v6);
YAML::Node::~Node((YAML::Node *)v9);
v5 = (const YAML::Node *)(v11 + 32);
YAML::Node::operator[]<char [8]>((long long)v8, (YAML::Node *)v10, (long long)"options");
YAML::Node::operator=((YAML::Node *)v8, v5);
YAML::Node::~Node((YAML::Node *)v8);
YAML::Node::operator[]<char [9]>((long long)v7, a1, (long long)"backends");
YAML::Node::push_back((YAML::Node *)v7, (const YAML::Node *)v10);
YAML::Node::~Node((YAML::Node *)v7);
YAML::Node::~Node((YAML::Node *)v10);
__gnu_cxx::__normal_iterator<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions const*,std::vector<aimrt::runtime::core::logger::LoggerManager::Options::BackendOptions>>::operator++(&v13);
}
return a1;
}
| use_count:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
ADD RDI,0x8
CALL 0x002dbfd0
POP RCX
RET
|
/* std::__weak_ptr<aimrt::common::net::AsioTcpServer, (__gnu_cxx::_Lock_policy)2>::use_count() const
*/
void __thiscall
std::__weak_ptr<aimrt::common::net::AsioTcpServer,(__gnu_cxx::_Lock_policy)2>::use_count
(__weak_ptr<aimrt::common::net::AsioTcpServer,(__gnu_cxx::_Lock_policy)2> *this)
{
__weak_count<(__gnu_cxx::_Lock_policy)2>::_M_get_use_count
((__weak_count<(__gnu_cxx::_Lock_policy)2> *)(this + 8));
return;
}
| |
41,391 | test_conc496 | eloqsql/libmariadb/unittest/libmariadb/connection.c | static int test_conc496(MYSQL *mysql)
{
int rc;
const char *data;
size_t len;
rc= mysql_query(mysql, "set @@session.session_track_transaction_info=STATE");
if (rc && mysql_errno(mysql) == ER_UNKNOWN_SYSTEM_VARIABLE)
{
diag("session_track_transaction_info not supported");
return SKIP;
}
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "BEGIN");
check_mysql_rc(rc, mysql);
if (!mysql_session_track_get_first(mysql, SESSION_TRACK_TRANSACTION_STATE, &data, &len))
do {
FAIL_IF(len != 8, "expected 8 bytes");
FAIL_IF(data[0] != 'T', "expected transaction");
} while (!mysql_session_track_get_next(mysql, SESSION_TRACK_TRANSACTION_STATE, &data, &len));
rc= mysql_query(mysql, "CREATE TEMPORARY TABLE t1(a int) ENGINE=InnoDB");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "COMMIT");
check_mysql_rc(rc, mysql);
if (!mysql_session_track_get_first(mysql, SESSION_TRACK_TRANSACTION_STATE, &data, &len))
do {
FAIL_IF(len != 8, "expected 8 bytes");
FAIL_IF(data[0] != '_', "expected underscore");
} while (!mysql_session_track_get_next(mysql, SESSION_TRACK_TRANSACTION_STATE, &data, &len));
return OK;
} | O3 | c | test_conc496:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x25865(%rip), %rsi # 0x3bf9b
callq 0x21299
testl %eax, %eax
je 0x1676a
movl %eax, %r14d
movq %rbx, %rdi
callq 0x232fd
cmpl $0x4a9, %eax # imm = 0x4A9
jne 0x167b5
leaq 0x25876(%rip), %rdi # 0x3bfce
xorl %eax, %eax
callq 0x1bb8f
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x167f1
leaq 0x257cf(%rip), %rsi # 0x3bf40
movq %rbx, %rdi
callq 0x21299
testl %eax, %eax
je 0x16801
movl %eax, %r14d
movq %rbx, %rdi
callq 0x23312
movq %rax, %r15
movq %rbx, %rdi
callq 0x232fd
leaq 0x249af(%rip), %rdi # 0x3b14d
leaq 0x24e10(%rip), %r8 # 0x3b5b5
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x406, %r9d # imm = 0x406
jmp 0x167e4
movq %rbx, %rdi
callq 0x23312
movq %rax, %r15
movq %rbx, %rdi
callq 0x232fd
leaq 0x2497e(%rip), %rdi # 0x3b14d
leaq 0x24ddf(%rip), %r8 # 0x3b5b5
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x403, %r9d # imm = 0x403
xorl %eax, %eax
callq 0x1bb8f
movl $0x1, %r14d
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq -0x30(%rbp), %rdx
leaq -0x28(%rbp), %rcx
movq %rbx, %rdi
movl $0x5, %esi
callq 0x2211d
testl %eax, %eax
je 0x16861
leaq 0x25800(%rip), %rsi # 0x3c021
movq %rbx, %rdi
callq 0x21299
testl %eax, %eax
je 0x16892
movl %eax, %r14d
movq %rbx, %rdi
callq 0x23312
movq %rax, %r15
movq %rbx, %rdi
callq 0x232fd
leaq 0x24903(%rip), %rdi # 0x3b14d
leaq 0x24d64(%rip), %r8 # 0x3b5b5
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x40e, %r9d # imm = 0x40E
jmp 0x167e4
leaq -0x30(%rbp), %r14
leaq -0x28(%rbp), %r15
cmpq $0x8, -0x28(%rbp)
jne 0x168dc
movq -0x30(%rbp), %rax
cmpb $0x54, (%rax)
jne 0x168f8
movq %rbx, %rdi
movl $0x5, %esi
movq %r14, %rdx
movq %r15, %rcx
callq 0x220cf
testl %eax, %eax
je 0x16869
jmp 0x1681a
leaq 0x256fb(%rip), %rsi # 0x3bf94
movq %rbx, %rdi
callq 0x21299
testl %eax, %eax
je 0x1691e
movl %eax, %r14d
movq %rbx, %rdi
callq 0x23312
movq %rax, %r15
movq %rbx, %rdi
callq 0x232fd
leaq 0x2488b(%rip), %rdi # 0x3b14d
leaq 0x24cec(%rip), %r8 # 0x3b5b5
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x411, %r9d # imm = 0x411
jmp 0x167e4
leaq 0x24725(%rip), %rdi # 0x3b008
leaq 0x25711(%rip), %rsi # 0x3bffb
leaq 0x24cc4(%rip), %rdx # 0x3b5b5
movl $0x409, %ecx # imm = 0x409
jmp 0x16912
leaq 0x24709(%rip), %rdi # 0x3b008
leaq 0x25706(%rip), %rsi # 0x3c00c
leaq 0x24ca8(%rip), %rdx # 0x3b5b5
movl $0x40a, %ecx # imm = 0x40A
xorl %eax, %eax
callq 0x1bb8f
jmp 0x167eb
leaq -0x30(%rbp), %rdx
leaq -0x28(%rbp), %rcx
movq %rbx, %rdi
movl $0x5, %esi
callq 0x2211d
xorl %r14d, %r14d
testl %eax, %eax
jne 0x167f1
leaq -0x30(%rbp), %r15
leaq -0x28(%rbp), %r12
cmpq $0x8, -0x28(%rbp)
jne 0x16972
movq -0x30(%rbp), %rax
cmpb $0x5f, (%rax)
jne 0x1698e
movq %rbx, %rdi
movl $0x5, %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0x220cf
testl %eax, %eax
je 0x16946
jmp 0x167f1
leaq 0x2468f(%rip), %rdi # 0x3b008
leaq 0x2567b(%rip), %rsi # 0x3bffb
leaq 0x24c2e(%rip), %rdx # 0x3b5b5
movl $0x415, %ecx # imm = 0x415
jmp 0x16912
leaq 0x24673(%rip), %rdi # 0x3b008
leaq 0x256b4(%rip), %rsi # 0x3c050
leaq 0x24c12(%rip), %rdx # 0x3b5b5
movl $0x416, %ecx # imm = 0x416
jmp 0x16912
| test_conc496:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rdi
lea rsi, aSetSessionSess_1; "set @@session.session_track_transaction"...
call mysql_query
test eax, eax
jz short loc_1676A
mov r14d, eax
mov rdi, rbx
call mysql_errno
cmp eax, 4A9h
jnz short loc_167B5
lea rdi, aSessionTrackTr; "session_track_transaction_info not supp"...
xor eax, eax
call diag
mov r14d, 0FFFFFFFFh
jmp loc_167F1
loc_1676A:
lea rsi, aBegin; "BEGIN"
mov rdi, rbx
call mysql_query
test eax, eax
jz loc_16801
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 406h
jmp short loc_167E4
loc_167B5:
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 403h
loc_167E4:
xor eax, eax
call diag
loc_167EB:
mov r14d, 1
loc_167F1:
mov eax, r14d
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_16801:
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_28]
mov rdi, rbx
mov esi, 5
call mysql_session_track_get_first
test eax, eax
jz short loc_16861
loc_1681A:
lea rsi, aCreateTemporar; "CREATE TEMPORARY TABLE t1(a int) ENGINE"...
mov rdi, rbx
call mysql_query
test eax, eax
jz short loc_16892
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 40Eh
jmp short loc_167E4
loc_16861:
lea r14, [rbp+var_30]
lea r15, [rbp+var_28]
loc_16869:
cmp [rbp+var_28], 8
jnz short loc_168DC
mov rax, [rbp+var_30]
cmp byte ptr [rax], 54h ; 'T'
jnz short loc_168F8
mov rdi, rbx
mov esi, 5
mov rdx, r14
mov rcx, r15
call mysql_session_track_get_next
test eax, eax
jz short loc_16869
jmp short loc_1681A
loc_16892:
lea rsi, aCommit; "COMMIT"
mov rdi, rbx
call mysql_query
test eax, eax
jz short loc_1691E
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 411h
jmp loc_167E4
loc_168DC:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aExpected8Bytes; "expected 8 bytes"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 409h
jmp short loc_16912
loc_168F8:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aExpectedTransa; "expected transaction"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 40Ah
loc_16912:
xor eax, eax
call diag
jmp loc_167EB
loc_1691E:
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_28]
mov rdi, rbx
mov esi, 5
call mysql_session_track_get_first
xor r14d, r14d
test eax, eax
jnz loc_167F1
lea r15, [rbp+var_30]
lea r12, [rbp+var_28]
loc_16946:
cmp [rbp+var_28], 8
jnz short loc_16972
mov rax, [rbp+var_30]
cmp byte ptr [rax], 5Fh ; '_'
jnz short loc_1698E
mov rdi, rbx
mov esi, 5
mov rdx, r15
mov rcx, r12
call mysql_session_track_get_next
test eax, eax
jz short loc_16946
jmp loc_167F1
loc_16972:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aExpected8Bytes; "expected 8 bytes"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 415h
jmp short loc_16912
loc_1698E:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aExpectedUnders; "expected underscore"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 416h
jmp loc_16912
| long long test_conc496(long long a1)
{
int v1; // eax
int v2; // r14d
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
unsigned int v7; // r14d
int v8; // eax
int v9; // r14d
int v10; // r15d
int v11; // eax
const char *v12; // rdi
const char *v13; // r8
const char *v14; // rsi
const char *v15; // rdx
int v16; // ecx
int v17; // r9d
int v18; // r15d
int v19; // eax
int v21; // eax
int v22; // r14d
int v23; // r15d
int v24; // eax
int v25; // eax
int v26; // r14d
int v27; // r15d
int v28; // eax
_BYTE *v29; // [rsp+0h] [rbp-30h] BYREF
_QWORD v30[5]; // [rsp+8h] [rbp-28h] BYREF
v1 = mysql_query(a1, "set @@session.session_track_transaction_info=STATE");
if ( !v1 )
{
v8 = mysql_query(a1, "BEGIN");
if ( v8 )
{
v9 = v8;
v10 = mysql_error(a1);
v11 = mysql_errno(a1);
v12 = "Error (%d): %s (%d) in %s line %d";
v13 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
LODWORD(v14) = v9;
LODWORD(v15) = v10;
v16 = v11;
v17 = 1030;
}
else if ( (unsigned int)mysql_session_track_get_first(a1, 5LL, &v29, v30) )
{
LABEL_10:
v21 = mysql_query(a1, "CREATE TEMPORARY TABLE t1(a int) ENGINE=InnoDB");
if ( v21 )
{
v22 = v21;
v23 = mysql_error(a1);
v24 = mysql_errno(a1);
v12 = "Error (%d): %s (%d) in %s line %d";
v13 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
LODWORD(v14) = v22;
LODWORD(v15) = v23;
v16 = v24;
v17 = 1038;
}
else
{
v25 = mysql_query(a1, "COMMIT");
if ( v25 )
{
v26 = v25;
v27 = mysql_error(a1);
v28 = mysql_errno(a1);
v12 = "Error (%d): %s (%d) in %s line %d";
v13 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
LODWORD(v14) = v26;
LODWORD(v15) = v27;
v16 = v28;
v17 = 1041;
}
else
{
v7 = 0;
if ( (unsigned int)mysql_session_track_get_first(a1, 5LL, &v29, v30) )
return v7;
while ( 1 )
{
if ( v30[0] != 8LL )
{
v12 = "Error: %s (%s: %d)";
v14 = "expected 8 bytes";
v15 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
v16 = 1045;
goto LABEL_7;
}
if ( *v29 != 95 )
break;
if ( (unsigned int)mysql_session_track_get_next(a1, 5LL, &v29, v30) )
return v7;
}
v12 = "Error: %s (%s: %d)";
v14 = "expected underscore";
v15 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
v16 = 1046;
}
}
}
else
{
while ( 1 )
{
if ( v30[0] != 8LL )
{
v12 = "Error: %s (%s: %d)";
v14 = "expected 8 bytes";
v15 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
v16 = 1033;
goto LABEL_7;
}
if ( *v29 != 84 )
break;
if ( (unsigned int)mysql_session_track_get_next(a1, 5LL, &v29, v30) )
goto LABEL_10;
}
v12 = "Error: %s (%s: %d)";
v14 = "expected transaction";
v15 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
v16 = 1034;
}
goto LABEL_7;
}
v2 = v1;
if ( (unsigned int)mysql_errno(a1) != 1193 )
{
v18 = mysql_error(a1);
v19 = mysql_errno(a1);
v12 = "Error (%d): %s (%d) in %s line %d";
v13 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c";
LODWORD(v14) = v2;
LODWORD(v15) = v18;
v16 = v19;
v17 = 1027;
LABEL_7:
diag((_DWORD)v12, (_DWORD)v14, (_DWORD)v15, v16, (_DWORD)v13, v17);
return 1;
}
diag(
(unsigned int)"session_track_transaction_info not supported",
(unsigned int)"set @@session.session_track_transaction_info=STATE",
v3,
v4,
v5,
v6);
return (unsigned int)-1;
}
| test_conc496:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
LEA RSI,[0x13bf9b]
CALL 0x00121299
TEST EAX,EAX
JZ 0x0011676a
MOV R14D,EAX
MOV RDI,RBX
CALL 0x001232fd
CMP EAX,0x4a9
JNZ 0x001167b5
LEA RDI,[0x13bfce]
XOR EAX,EAX
CALL 0x0011bb8f
MOV R14D,0xffffffff
JMP 0x001167f1
LAB_0011676a:
LEA RSI,[0x13bf40]
MOV RDI,RBX
CALL 0x00121299
TEST EAX,EAX
JZ 0x00116801
MOV R14D,EAX
MOV RDI,RBX
CALL 0x00123312
MOV R15,RAX
MOV RDI,RBX
CALL 0x001232fd
LEA RDI,[0x13b14d]
LEA R8,[0x13b5b5]
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x406
JMP 0x001167e4
LAB_001167b5:
MOV RDI,RBX
CALL 0x00123312
MOV R15,RAX
MOV RDI,RBX
CALL 0x001232fd
LEA RDI,[0x13b14d]
LEA R8,[0x13b5b5]
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x403
LAB_001167e4:
XOR EAX,EAX
CALL 0x0011bb8f
LAB_001167eb:
MOV R14D,0x1
LAB_001167f1:
MOV EAX,R14D
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00116801:
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x28]
MOV RDI,RBX
MOV ESI,0x5
CALL 0x0012211d
TEST EAX,EAX
JZ 0x00116861
LAB_0011681a:
LEA RSI,[0x13c021]
MOV RDI,RBX
CALL 0x00121299
TEST EAX,EAX
JZ 0x00116892
MOV R14D,EAX
MOV RDI,RBX
CALL 0x00123312
MOV R15,RAX
MOV RDI,RBX
CALL 0x001232fd
LEA RDI,[0x13b14d]
LEA R8,[0x13b5b5]
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x40e
JMP 0x001167e4
LAB_00116861:
LEA R14,[RBP + -0x30]
LEA R15,[RBP + -0x28]
LAB_00116869:
CMP qword ptr [RBP + -0x28],0x8
JNZ 0x001168dc
MOV RAX,qword ptr [RBP + -0x30]
CMP byte ptr [RAX],0x54
JNZ 0x001168f8
MOV RDI,RBX
MOV ESI,0x5
MOV RDX,R14
MOV RCX,R15
CALL 0x001220cf
TEST EAX,EAX
JZ 0x00116869
JMP 0x0011681a
LAB_00116892:
LEA RSI,[0x13bf94]
MOV RDI,RBX
CALL 0x00121299
TEST EAX,EAX
JZ 0x0011691e
MOV R14D,EAX
MOV RDI,RBX
CALL 0x00123312
MOV R15,RAX
MOV RDI,RBX
CALL 0x001232fd
LEA RDI,[0x13b14d]
LEA R8,[0x13b5b5]
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x411
JMP 0x001167e4
LAB_001168dc:
LEA RDI,[0x13b008]
LEA RSI,[0x13bffb]
LEA RDX,[0x13b5b5]
MOV ECX,0x409
JMP 0x00116912
LAB_001168f8:
LEA RDI,[0x13b008]
LEA RSI,[0x13c00c]
LEA RDX,[0x13b5b5]
MOV ECX,0x40a
LAB_00116912:
XOR EAX,EAX
CALL 0x0011bb8f
JMP 0x001167eb
LAB_0011691e:
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x28]
MOV RDI,RBX
MOV ESI,0x5
CALL 0x0012211d
XOR R14D,R14D
TEST EAX,EAX
JNZ 0x001167f1
LEA R15,[RBP + -0x30]
LEA R12,[RBP + -0x28]
LAB_00116946:
CMP qword ptr [RBP + -0x28],0x8
JNZ 0x00116972
MOV RAX,qword ptr [RBP + -0x30]
CMP byte ptr [RAX],0x5f
JNZ 0x0011698e
MOV RDI,RBX
MOV ESI,0x5
MOV RDX,R15
MOV RCX,R12
CALL 0x001220cf
TEST EAX,EAX
JZ 0x00116946
JMP 0x001167f1
LAB_00116972:
LEA RDI,[0x13b008]
LEA RSI,[0x13bffb]
LEA RDX,[0x13b5b5]
MOV ECX,0x415
JMP 0x00116912
LAB_0011698e:
LEA RDI,[0x13b008]
LEA RSI,[0x13c050]
LEA RDX,[0x13b5b5]
MOV ECX,0x416
JMP 0x00116912
|
int8 test_conc496(int8 param_1)
{
int iVar1;
int iVar2;
int4 uVar3;
int8 uVar4;
char *pcVar5;
int8 uVar6;
char *local_38;
long local_30;
iVar1 = mysql_query(param_1,"set @@session.session_track_transaction_info=STATE");
if (iVar1 == 0) {
iVar1 = mysql_query(param_1,"BEGIN");
if (iVar1 == 0) {
iVar1 = mysql_session_track_get_first(param_1,5,&local_38,&local_30);
if (iVar1 == 0) {
do {
if (local_30 != 8) {
pcVar5 = "expected 8 bytes";
uVar4 = 0x409;
goto LAB_00116912;
}
if (*local_38 != 'T') {
pcVar5 = "expected transaction";
uVar4 = 0x40a;
goto LAB_00116912;
}
iVar1 = mysql_session_track_get_next(param_1,5,&local_38,&local_30);
} while (iVar1 == 0);
}
iVar1 = mysql_query(param_1,"CREATE TEMPORARY TABLE t1(a int) ENGINE=InnoDB");
if (iVar1 == 0) {
iVar1 = mysql_query(param_1,"COMMIT");
if (iVar1 == 0) {
iVar1 = mysql_session_track_get_first(param_1,5,&local_38,&local_30);
if (iVar1 != 0) {
return 0;
}
while( true ) {
if (local_30 != 8) {
pcVar5 = "expected 8 bytes";
uVar4 = 0x415;
goto LAB_00116912;
}
if (*local_38 != '_') break;
iVar1 = mysql_session_track_get_next(param_1,5,&local_38,&local_30);
if (iVar1 != 0) {
return 0;
}
}
pcVar5 = "expected underscore";
uVar4 = 0x416;
LAB_00116912:
diag("Error: %s (%s: %d)",pcVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c"
,uVar4);
return 1;
}
uVar4 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
uVar6 = 0x411;
}
else {
uVar4 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
uVar6 = 0x40e;
}
}
else {
uVar4 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
uVar6 = 0x406;
}
}
else {
iVar2 = mysql_errno(param_1);
if (iVar2 == 0x4a9) {
diag("session_track_transaction_info not supported");
return 0xffffffff;
}
uVar4 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
uVar6 = 0x403;
}
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar4,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/connection.c",uVar6)
;
return 1;
}
| |
41,392 | minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | ForNode(const Location & location, std::vector<std::string> && var_names, std::shared_ptr<Expression> && iterable,
std::shared_ptr<Expression> && condition, std::shared_ptr<TemplateNode> && body, bool recursive, std::shared_ptr<TemplateNode> && else_body)
: TemplateNode(location), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {} | O2 | cpp | minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
callq 0x72dec
leaq 0x89c1a(%rip), %rax # 0xfd090
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x39b4a
andq $0x0, 0x40(%rbx)
movups (%r12), %xmm0
andq $0x0, 0x8(%r12)
movups %xmm0, 0x38(%rbx)
andq $0x0, (%r12)
movq 0x38(%rsp), %rax
andq $0x0, 0x50(%rbx)
movups (%r15), %xmm0
andq $0x0, 0x8(%r15)
movups %xmm0, 0x48(%rbx)
andq $0x0, (%r15)
movb 0x30(%rsp), %cl
andq $0x0, 0x60(%rbx)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x58(%rbx)
andq $0x0, (%r14)
movb %cl, 0x68(%rbx)
andq $0x0, 0x78(%rbx)
movups (%rax), %xmm0
andq $0x0, 0x8(%rax)
movups %xmm0, 0x70(%rbx)
andq $0x0, (%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x77a66
movq %r14, %rdi
callq 0x23fd0
| _ZN5minja7ForNodeC2ERKNS_8LocationEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEOSt10shared_ptrINS_10ExpressionEESH_OSE_INS_12TemplateNodeEEbSK_:
push r15
push r14
push r13
push r12
push rbx
mov r14, r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbx, rdi
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
lea rax, _ZTVN5minja7ForNodeE; `vtable for'minja::ForNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
and qword ptr [rbx+40h], 0
movups xmm0, xmmword ptr [r12]
and qword ptr [r12+8], 0
movups xmmword ptr [rbx+38h], xmm0
and qword ptr [r12], 0
mov rax, [rsp+28h+arg_8]
and qword ptr [rbx+50h], 0
movups xmm0, xmmword ptr [r15]
and qword ptr [r15+8], 0
movups xmmword ptr [rbx+48h], xmm0
and qword ptr [r15], 0
mov cl, [rsp+28h+arg_0]
and qword ptr [rbx+60h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [rbx+58h], xmm0
and qword ptr [r14], 0
mov [rbx+68h], cl
and qword ptr [rbx+78h], 0
movups xmm0, xmmword ptr [rax]
and qword ptr [rax+8], 0
movups xmmword ptr [rbx+70h], xmm0
and qword ptr [rax], 0
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
mov rdi, r14
call __Unwind_Resume
| long long minja::ForNode::ForNode(
long long a1,
_QWORD *a2,
_QWORD *a3,
__int128 *a4,
__int128 *a5,
__int128 *a6,
char a7,
__int128 *a8)
{
__int128 v12; // xmm0
long long result; // rax
__int128 v14; // xmm0
__int128 v15; // xmm0
__int128 v16; // xmm0
minja::TemplateNode::TemplateNode((_QWORD *)a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::ForNode + 2;
std::vector<std::string>::vector((_QWORD *)(a1 + 32), a3);
*(_QWORD *)(a1 + 64) = 0LL;
v12 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 56) = v12;
*(_QWORD *)a4 = 0LL;
result = (long long)a8;
*(_QWORD *)(a1 + 80) = 0LL;
v14 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v14;
*(_QWORD *)a5 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v15 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v15;
*(_QWORD *)a6 = 0LL;
*(_BYTE *)(a1 + 104) = a7;
*(_QWORD *)(a1 + 120) = 0LL;
v16 = *a8;
*((_QWORD *)a8 + 1) = 0LL;
*(_OWORD *)(a1 + 112) = v16;
*(_QWORD *)a8 = 0LL;
return result;
}
| ForNode:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBX,RDI
CALL 0x00172dec
LEA RAX,[0x1fd090]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LAB_00173481:
MOV RSI,R13
CALL 0x00139b4a
LAB_00173489:
AND qword ptr [RBX + 0x40],0x0
MOVUPS XMM0,xmmword ptr [R12]
AND qword ptr [R12 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x38],XMM0
AND qword ptr [R12],0x0
MOV RAX,qword ptr [RSP + 0x38]
AND qword ptr [RBX + 0x50],0x0
MOVUPS XMM0,xmmword ptr [R15]
AND qword ptr [R15 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x48],XMM0
AND qword ptr [R15],0x0
MOV CL,byte ptr [RSP + 0x30]
AND qword ptr [RBX + 0x60],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x58],XMM0
AND qword ptr [R14],0x0
MOV byte ptr [RBX + 0x68],CL
AND qword ptr [RBX + 0x78],0x0
MOVUPS XMM0,xmmword ptr [RAX]
AND qword ptr [RAX + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x70],XMM0
AND qword ptr [RAX],0x0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >&&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::ForNode::ForNode
(ForNode *this,Location *param_1,vector *param_2,shared_ptr *param_3,shared_ptr *param_4,
shared_ptr *param_5,bool param_6,shared_ptr *param_7)
{
int8 uVar1;
TemplateNode::TemplateNode((TemplateNode *)this,param_1);
*(int ***)this = &PTR_do_render_001fd0a0;
/* try { // try from 00173481 to 00173488 has its CatchHandler @ 001734f9 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x20),
param_2);
*(int8 *)(this + 0x40) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x38) = *(int8 *)param_3;
*(int8 *)(this + 0x40) = uVar1;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x50) = 0;
uVar1 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar1;
*(int8 *)param_4 = 0;
*(int8 *)(this + 0x60) = 0;
uVar1 = *(int8 *)(param_5 + 8);
*(int8 *)(param_5 + 8) = 0;
*(int8 *)(this + 0x58) = *(int8 *)param_5;
*(int8 *)(this + 0x60) = uVar1;
*(int8 *)param_5 = 0;
this[0x68] = (ForNode)param_6;
*(int8 *)(this + 0x78) = 0;
uVar1 = *(int8 *)(param_7 + 8);
*(int8 *)(param_7 + 8) = 0;
*(int8 *)(this + 0x70) = *(int8 *)param_7;
*(int8 *)(this + 0x78) = uVar1;
*(int8 *)param_7 = 0;
return;
}
| |
41,393 | uf_intervall | eloqsql/storage/myisam/mi_packrec.c | static void uf_intervall(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
reg1 uint field_length=(uint) (end-to);
memcpy(to,rec->huff_tree->intervalls+field_length*decode_pos(bit_buff,
rec->huff_tree),
(size_t) field_length);
} | O0 | c | uf_intervall:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0xbdea0
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdi
movl %eax, %ecx
movl -0x28(%rbp), %eax
imull %ecx, %eax
movl %eax, %eax
addq %rax, %rsi
movl -0x24(%rbp), %eax
movl %eax, %edx
callq 0x2a090
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| uf_intervall_0:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax+28h]
mov rax, [rax+10h]
mov [rbp+var_38], rax
mov eax, [rbp+var_24]
mov [rbp+var_28], eax
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rsi, [rax+28h]
call decode_pos_0
mov rsi, [rbp+var_38]
mov rdi, [rbp+var_30]
mov ecx, eax
mov eax, [rbp+var_28]
imul eax, ecx
mov eax, eax
add rsi, rax
mov eax, [rbp+var_24]
mov edx, eax
call _memcpy
add rsp, 40h
pop rbp
retn
| long long uf_intervall_0(long long a1, long long a2, long long a3, int a4)
{
int v4; // eax
long long v6; // [rsp+8h] [rbp-38h]
int v8; // [rsp+18h] [rbp-28h]
unsigned int v9; // [rsp+1Ch] [rbp-24h]
v9 = a4 - a3;
v6 = *(_QWORD *)(*(_QWORD *)(a1 + 40) + 16LL);
v8 = a4 - a3;
v4 = decode_pos_0(a2, *(_QWORD *)(a1 + 40));
return memcpy(a3, (unsigned int)(v4 * v8) + v6, v9);
}
| uf_intervall:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x28],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x28]
CALL 0x001bdea0
MOV RSI,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RBP + -0x30]
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x28]
IMUL EAX,ECX
MOV EAX,EAX
ADD RSI,RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
CALL 0x0012a090
ADD RSP,0x40
POP RBP
RET
|
void uf_intervall(long param_1,int8 param_2,void *param_3,int param_4)
{
long lVar1;
uint uVar2;
int iVar3;
uVar2 = param_4 - (int)param_3;
lVar1 = *(long *)(*(long *)(param_1 + 0x28) + 0x10);
iVar3 = decode_pos(param_2,*(int8 *)(param_1 + 0x28));
memcpy(param_3,(void *)(lVar1 + (ulong)(uVar2 * iVar3)),(ulong)uVar2);
return;
}
| |
41,394 | my_strdup | eloqsql/mysys/my_malloc.c | char *my_strdup(PSI_memory_key key, const char *from, myf my_flags)
{
char *ptr;
size_t length= strlen(from)+1;
DBUG_ENTER("my_strdup");
if ((ptr= (char*) my_malloc(key, length, my_flags)))
memcpy(ptr, from, length);
DBUG_RETURN(ptr);
} | O3 | c | my_strdup:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movl %edi, %r12d
movq %rsi, %rdi
callq 0x29350
movq %rax, %r14
incq %r14
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x9fc95
testq %rax, %rax
je 0x9ffa3
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x29080
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_strdup:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov rbx, rsi
mov r12d, edi
mov rdi, rsi
call _strlen
mov r14, rax
inc r14
mov edi, r12d
mov rsi, r14
mov rdx, r15
call my_malloc
test rax, rax
jz short loc_9FFA3
mov rdi, rax
mov rsi, rbx
mov rdx, r14
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _memcpy
loc_9FFA3:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_strdup(unsigned int a1, long long a2, int a3)
{
const char *v4; // r14
long long result; // rax
v4 = (const char *)(strlen(a2) + 1);
result = my_malloc(a1, v4, a3);
if ( result )
return memcpy(result, a2, v4);
return result;
}
| my_strdup:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RDX
MOV RBX,RSI
MOV R12D,EDI
MOV RDI,RSI
CALL 0x00129350
MOV R14,RAX
INC R14
MOV EDI,R12D
MOV RSI,R14
MOV RDX,R15
CALL 0x0019fc95
TEST RAX,RAX
JZ 0x0019ffa3
MOV RDI,RAX
MOV RSI,RBX
MOV RDX,R14
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x00129080
LAB_0019ffa3:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void my_strdup(int4 param_1,char *param_2,int8 param_3)
{
size_t sVar1;
void *__dest;
sVar1 = strlen(param_2);
__dest = (void *)my_malloc(param_1,sVar1 + 1,param_3);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,sVar1 + 1);
return;
}
return;
}
| |
41,395 | my_wc_mb_euc_jp | eloqsql/strings/ctype-ujis.c | static int
my_wc_mb_euc_jp(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int jp;
if ((int) wc < 0x80) /* ASCII [00-7F] */
{
if (s >= e)
return MY_CS_TOOSMALL;
*s= (uchar) wc;
return 1;
}
if (wc > 0xFFFF)
return MY_CS_ILUNI;
if ((jp= unicode_to_jisx0208_eucjp[wc])) /* JIS-X-0208 */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, jp);
return 2;
}
if ((jp= unicode_to_jisx0212_eucjp[wc])) /* JIS-X-0212 */
{
if (s + 3 > e)
return MY_CS_TOOSMALL3;
s[0]= 0x8F;
MY_PUT_MB2(s + 1, jp);
return 3;
}
if (wc >= 0xFF61 && wc <= 0xFF9F) /* Half width Katakana */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
s[0]= 0x8E;
s[1]= (uchar) (wc - 0xFEC0);
return 2;
}
return MY_CS_ILUNI;
} | O3 | c | my_wc_mb_euc_jp:
cmpl $0x7f, %esi
jg 0xd25e6
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xd261b
movb %sil, (%rdx)
movl $0x1, %eax
retq
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0xd261b
leaq 0x24da38(%rip), %rdi # 0x320030
movzwl (%rdi,%rsi,2), %edi
testw %di, %di
je 0xd261c
leaq 0x2(%rdx), %rsi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rsi
ja 0xd261b
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq 0x26da08(%rip), %rdi # 0x340030
movzwl (%rdi,%rsi,2), %ebx
testw %bx, %bx
je 0xd264f
leaq 0x3(%rdx), %rsi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rsi
ja 0xd267a
movb $-0x71, (%rdx)
movb %bh, 0x1(%rdx)
movb %bl, 0x2(%rdx)
movl $0x3, %eax
jmp 0xd267a
leaq -0xff61(%rsi), %rdi
cmpq $0x3e, %rdi
ja 0xd267a
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0xd267a
movb $-0x72, (%rdx)
addb $0x40, %sil
movb %sil, 0x1(%rdx)
movl $0x2, %eax
popq %rbx
popq %rbp
retq
| my_wc_mb_euc_jp:
cmp esi, 7Fh
jg short loc_D25E6
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_D261B
mov [rdx], sil
mov eax, 1
retn
loc_D25E6:
xor eax, eax
cmp rsi, 0FFFFh
ja short locret_D261B
lea rdi, unicode_to_jisx0208_eucjp
movzx edi, word ptr [rdi+rsi*2]
test di, di
jz short loc_D261C
lea rsi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rsi, rcx
ja short locret_D261B
rol di, 8
mov [rdx], di
mov eax, 2
locret_D261B:
retn
loc_D261C:
push rbp
mov rbp, rsp
push rbx
lea rdi, unicode_to_jisx0212_eucjp
movzx ebx, word ptr [rdi+rsi*2]
test bx, bx
jz short loc_D264F
lea rsi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rsi, rcx
ja short loc_D267A
mov byte ptr [rdx], 8Fh
mov [rdx+1], bh
mov [rdx+2], bl
mov eax, 3
jmp short loc_D267A
loc_D264F:
lea rdi, [rsi-0FF61h]
cmp rdi, 3Eh ; '>'
ja short loc_D267A
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_D267A
mov byte ptr [rdx], 8Eh
add sil, 40h ; '@'
mov [rdx+1], sil
mov eax, 2
loc_D267A:
pop rbx
pop rbp
retn
| long long my_wc_mb_euc_jp(long long a1, unsigned long long a2, unsigned long long a3, unsigned long long a4)
{
long long result; // rax
__int16 v5; // di
__int16 v6; // bx
if ( (int)a2 > 127 )
{
result = 0LL;
if ( a2 <= 0xFFFF )
{
v5 = unicode_to_jisx0208_eucjp[a2];
if ( v5 )
{
result = 4294967194LL;
if ( a3 + 2 <= a4 )
{
*(_WORD *)a3 = __ROL2__(v5, 8);
return 2LL;
}
}
else
{
v6 = unicode_to_jisx0212_eucjp[a2];
if ( v6 )
{
result = 4294967193LL;
if ( a3 + 3 <= a4 )
{
*(_BYTE *)a3 = -113;
*(_BYTE *)(a3 + 1) = HIBYTE(v6);
*(_BYTE *)(a3 + 2) = v6;
return 3LL;
}
}
else if ( a2 - 65377 <= 0x3E )
{
result = 4294967194LL;
if ( a3 + 2 <= a4 )
{
*(_BYTE *)a3 = -114;
*(_BYTE *)(a3 + 1) = a2 + 64;
return 2LL;
}
}
}
}
}
else
{
result = 4294967195LL;
if ( a3 < a4 )
{
*(_BYTE *)a3 = a2;
return 1LL;
}
}
return result;
}
| my_wc_mb_euc_jp:
CMP ESI,0x7f
JG 0x001d25e6
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001d261b
MOV byte ptr [RDX],SIL
MOV EAX,0x1
RET
LAB_001d25e6:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x001d261b
LEA RDI,[0x420030]
MOVZX EDI,word ptr [RDI + RSI*0x2]
TEST DI,DI
JZ 0x001d261c
LEA RSI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RSI,RCX
JA 0x001d261b
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
LAB_001d261b:
RET
LAB_001d261c:
PUSH RBP
MOV RBP,RSP
PUSH RBX
LEA RDI,[0x440030]
MOVZX EBX,word ptr [RDI + RSI*0x2]
TEST BX,BX
JZ 0x001d264f
LEA RSI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RSI,RCX
JA 0x001d267a
MOV byte ptr [RDX],0x8f
MOV byte ptr [RDX + 0x1],BH
MOV byte ptr [RDX + 0x2],BL
MOV EAX,0x3
JMP 0x001d267a
LAB_001d264f:
LEA RDI,[RSI + -0xff61]
CMP RDI,0x3e
JA 0x001d267a
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x001d267a
MOV byte ptr [RDX],0x8e
ADD SIL,0x40
MOV byte ptr [RDX + 0x1],SIL
MOV EAX,0x2
LAB_001d267a:
POP RBX
POP RBP
RET
|
int8 my_wc_mb_euc_jp(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
short sVar2;
int8 uVar3;
if ((int)param_2 < 0x80) {
uVar3 = 0xffffff9b;
if (param_3 < param_4) {
*(char *)param_3 = (char)param_2;
return 1;
}
}
else {
uVar3 = 0;
if (param_2 < 0x10000) {
uVar1 = *(ushort *)(unicode_to_jisx0208_eucjp + param_2 * 2);
if (uVar1 == 0) {
sVar2 = *(short *)(unicode_to_jisx0212_eucjp + param_2 * 2);
if (sVar2 == 0) {
if ((param_2 - 0xff61 < 0x3f) && (uVar3 = 0xffffff9a, param_3 + 1 <= param_4)) {
*(char *)param_3 = -0x72;
*(char *)((long)param_3 + 1) = (char)param_2 + '@';
uVar3 = 2;
}
}
else {
uVar3 = 0xffffff99;
if ((ushort *)((long)param_3 + 3) <= param_4) {
*(char *)param_3 = -0x71;
*(char *)((long)param_3 + 1) = (char)((ushort)sVar2 >> 8);
*(char *)(param_3 + 1) = (char)sVar2;
uVar3 = 3;
}
}
return uVar3;
}
uVar3 = 0xffffff9a;
if (param_3 + 1 <= param_4) {
*param_3 = uVar1 << 8 | uVar1 >> 8;
uVar3 = 2;
}
}
}
return uVar3;
}
| |
41,396 | my_uca_coll_init_utf8mb3 | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
if (my_coll_init_uca(cs, loader))
return TRUE;
if (my_uca_collation_can_optimize_no_contractions(cs))
my_uca_handler_map(cs, &my_uca_package_utf8mb3,
&my_uca_package_no_contractions_utf8mb3);
return FALSE;
} | O0 | c | my_uca_coll_init_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x120df0
cmpb $0x0, %al
je 0x122287
movb $0x1, -0x1(%rbp)
jmp 0x1222af
movq -0x10(%rbp), %rdi
callq 0x12cde0
cmpb $0x0, %al
je 0x1222ab
movq -0x10(%rbp), %rdi
leaq 0x28fcf1(%rip), %rsi # 0x3b1f90
leaq 0x28fd0a(%rip), %rdx # 0x3b1fb0
callq 0x12ce40
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_uca_coll_init_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call my_coll_init_uca
cmp al, 0
jz short loc_122287
mov [rbp+var_1], 1
jmp short loc_1222AF
loc_122287:
mov rdi, [rbp+var_10]
call my_uca_collation_can_optimize_no_contractions
cmp al, 0
jz short loc_1222AB
mov rdi, [rbp+var_10]
lea rsi, my_uca_package_utf8mb3
lea rdx, my_uca_package_no_contractions_utf8mb3
call my_uca_handler_map
loc_1222AB:
mov [rbp+var_1], 0
loc_1222AF:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char my_uca_coll_init_utf8mb3(long long a1, long long a2)
{
if ( (unsigned __int8)my_coll_init_uca(a1, a2) )
return 1;
if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) )
my_uca_handler_map(a1, my_uca_package_utf8mb3, my_uca_package_no_contractions_utf8mb3);
return 0;
}
| |||
41,397 | my_uca_coll_init_utf8mb3 | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
if (my_coll_init_uca(cs, loader))
return TRUE;
if (my_uca_collation_can_optimize_no_contractions(cs))
my_uca_handler_map(cs, &my_uca_package_utf8mb3,
&my_uca_package_no_contractions_utf8mb3);
return FALSE;
} | O3 | c | my_uca_coll_init_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xb9384
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0xbb298
movzbl 0xb2(%rbx), %ecx
testq %rcx, %rcx
je 0xbb247
movq 0x60(%rbx), %rax
imulq $0x38, %rcx, %rcx
xorl %edx, %edx
cmpq $0x0, 0x18(%rax,%rdx)
jne 0xbb296
addq $0x38, %rdx
cmpq %rdx, %rcx
jne 0xbb236
movq 0xc0(%rbx), %rcx
leaq 0x2fdbdb(%rip), %rdx # 0x3b8e30
cmpq (%rdx), %rcx
je 0xbb279
leaq 0x2fdbef(%rip), %rax # 0x3b8e50
cmpq 0x8(%rdx), %rcx
je 0xbb282
cmpq 0x10(%rdx), %rcx
je 0xbb288
cmpq 0x18(%rdx), %rcx
jne 0xbb296
addq $0x18, %rax
jmp 0xbb28c
leaq 0x2fdbd0(%rip), %rax # 0x3b8e50
jmp 0xbb28c
addq $0x8, %rax
jmp 0xbb28c
addq $0x10, %rax
movq (%rax), %rax
movq %rax, 0xc0(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| my_uca_coll_init_utf8mb3:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
call my_coll_init_uca
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_BB298
movzx ecx, byte ptr [rbx+0B2h]
test rcx, rcx
jz short loc_BB247
mov rax, [rbx+60h]
imul rcx, 38h ; '8'
xor edx, edx
loc_BB236:
cmp qword ptr [rax+rdx+18h], 0
jnz short loc_BB296
add rdx, 38h ; '8'
cmp rcx, rdx
jnz short loc_BB236
loc_BB247:
mov rcx, [rbx+0C0h]
lea rdx, my_uca_package_utf8mb3
cmp rcx, [rdx]
jz short loc_BB279
lea rax, my_uca_package_no_contractions_utf8mb3
cmp rcx, [rdx+8]
jz short loc_BB282
cmp rcx, [rdx+10h]
jz short loc_BB288
cmp rcx, [rdx+18h]
jnz short loc_BB296
add rax, 18h
jmp short loc_BB28C
loc_BB279:
lea rax, my_uca_package_no_contractions_utf8mb3
jmp short loc_BB28C
loc_BB282:
add rax, 8
jmp short loc_BB28C
loc_BB288:
add rax, 10h
loc_BB28C:
mov rax, [rax]
mov [rbx+0C0h], rax
loc_BB296:
xor eax, eax
loc_BB298:
add rsp, 8
pop rbx
pop rbp
retn
| char my_uca_coll_init_utf8mb3(
long long a1,
long long ( **a2)(unsigned long long, unsigned long long, const char *))
{
char inited; // cl
char result; // al
long long v4; // rdx
long long ( **v5)(); // rcx
long long ( ***v6)(); // rax
inited = my_coll_init_uca(a1, a2);
result = 1;
if ( !inited )
{
if ( *(_BYTE *)(a1 + 178) )
{
v4 = 0LL;
while ( !*(_QWORD *)(*(_QWORD *)(a1 + 96) + v4 + 24) )
{
v4 += 56LL;
if ( 56LL * *(unsigned __int8 *)(a1 + 178) == v4 )
goto LABEL_6;
}
return 0;
}
LABEL_6:
v5 = *(long long ( ***)())(a1 + 192);
if ( v5 == my_uca_package_utf8mb3[0] )
{
v6 = my_uca_package_no_contractions_utf8mb3;
}
else if ( v5 == my_uca_package_utf8mb3[1] )
{
v6 = &my_uca_package_no_contractions_utf8mb3[1];
}
else if ( v5 == my_uca_package_utf8mb3[2] )
{
v6 = &my_uca_package_no_contractions_utf8mb3[2];
}
else
{
if ( v5 != my_uca_package_utf8mb3[3] )
return 0;
v6 = &my_uca_package_no_contractions_utf8mb3[3];
}
*(_QWORD *)(a1 + 192) = *v6;
return 0;
}
return result;
}
| my_uca_coll_init_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x001b9384
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x001bb298
MOVZX ECX,byte ptr [RBX + 0xb2]
TEST RCX,RCX
JZ 0x001bb247
MOV RAX,qword ptr [RBX + 0x60]
IMUL RCX,RCX,0x38
XOR EDX,EDX
LAB_001bb236:
CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0
JNZ 0x001bb296
ADD RDX,0x38
CMP RCX,RDX
JNZ 0x001bb236
LAB_001bb247:
MOV RCX,qword ptr [RBX + 0xc0]
LEA RDX,[0x4b8e30]
CMP RCX,qword ptr [RDX]
JZ 0x001bb279
LEA RAX,[0x4b8e50]
CMP RCX,qword ptr [RDX + 0x8]
JZ 0x001bb282
CMP RCX,qword ptr [RDX + 0x10]
JZ 0x001bb288
CMP RCX,qword ptr [RDX + 0x18]
JNZ 0x001bb296
ADD RAX,0x18
JMP 0x001bb28c
LAB_001bb279:
LEA RAX,[0x4b8e50]
JMP 0x001bb28c
LAB_001bb282:
ADD RAX,0x8
JMP 0x001bb28c
LAB_001bb288:
ADD RAX,0x10
LAB_001bb28c:
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xc0],RAX
LAB_001bb296:
XOR EAX,EAX
LAB_001bb298:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 my_uca_coll_init_utf8mb3(long param_1)
{
int *puVar1;
char cVar2;
int **ppuVar3;
long lVar4;
cVar2 = my_coll_init_uca();
if (cVar2 != '\0') {
return 1;
}
if ((ulong)*(byte *)(param_1 + 0xb2) != 0) {
lVar4 = 0;
do {
if (*(long *)(*(long *)(param_1 + 0x60) + 0x18 + lVar4) != 0) {
return 0;
}
lVar4 = lVar4 + 0x38;
} while ((ulong)*(byte *)(param_1 + 0xb2) * 0x38 - lVar4 != 0);
}
puVar1 = *(int **)(param_1 + 0xc0);
if (puVar1 == my_uca_package_utf8mb3) {
ppuVar3 = &my_uca_package_no_contractions_utf8mb3;
}
else if (puVar1 == PTR_my_uca_collation_handler_nopad_utf8mb3_004b8e38) {
ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb3_004b8e58;
}
else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb3_004b8e40) {
ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb3_004b8e60;
}
else {
if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb3_004b8e48) {
return 0;
}
ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb3_004b8e68;
}
*(int **)(param_1 + 0xc0) = *ppuVar3;
return 0;
}
| |
41,398 | my_strxfrm_pad_nweights_unicode | eloqsql/strings/ctype-utf8.c | size_t
my_strxfrm_pad_nweights_unicode(uchar *str, uchar *strend, size_t nweights)
{
uchar *str0;
DBUG_ASSERT(str && str <= strend);
for (str0= str; str < strend && nweights; nweights--)
{
*str++= 0x00;
if (str < strend)
*str++= 0x20;
}
return str - str0;
} | O0 | c | my_strxfrm_pad_nweights_unicode:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0xc2eb2
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x21(%rbp)
jae 0xc2ed4
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0xc2edd
jmp 0xc2f1b
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xc2f0b
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x20, (%rax)
jmp 0xc2f0d
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0xc2eba
movq -0x8(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopl (%rax,%rax)
| my_strxfrm_pad_nweights_unicode:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_C2EB2:
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
loc_C2EBA:
mov rcx, [rbp+var_8]
xor eax, eax
cmp rcx, [rbp+var_10]
mov [rbp+var_21], al
jnb short loc_C2ED4
cmp [rbp+var_18], 0
setnz al
mov [rbp+var_21], al
loc_C2ED4:
mov al, [rbp+var_21]
test al, 1
jnz short loc_C2EDD
jmp short loc_C2F1B
loc_C2EDD:
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_C2F0B
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 20h ; ' '
loc_C2F0B:
jmp short $+2
loc_C2F0D:
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_18], rax
jmp short loc_C2EBA
loc_C2F1B:
mov rax, [rbp+var_8]
mov rcx, [rbp+var_20]
sub rax, rcx
pop rbp
retn
| _BYTE * my_strxfrm_pad_nweights_unicode(_BYTE *a1, unsigned long long a2, long long a3)
{
_BYTE *v3; // rax
_BYTE *v4; // rax
bool v6; // [rsp+1h] [rbp-21h]
_BYTE *v8; // [rsp+1Ah] [rbp-8h]
v8 = a1;
while ( 1 )
{
v6 = 0;
if ( (unsigned long long)v8 < a2 )
v6 = a3 != 0;
if ( !v6 )
break;
v3 = v8++;
*v3 = 0;
if ( (unsigned long long)v8 < a2 )
{
v4 = v8++;
*v4 = 32;
}
--a3;
}
return (_BYTE *)(v8 - a1);
}
| my_strxfrm_pad_nweights_unicode:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x001c2eb2
LAB_001c2eb2:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
LAB_001c2eba:
MOV RCX,qword ptr [RBP + -0x8]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x10]
MOV byte ptr [RBP + -0x21],AL
JNC 0x001c2ed4
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
MOV byte ptr [RBP + -0x21],AL
LAB_001c2ed4:
MOV AL,byte ptr [RBP + -0x21]
TEST AL,0x1
JNZ 0x001c2edd
JMP 0x001c2f1b
LAB_001c2edd:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x001c2f0b
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV byte ptr [RAX],0x20
LAB_001c2f0b:
JMP 0x001c2f0d
LAB_001c2f0d:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001c2eba
LAB_001c2f1b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
SUB RAX,RCX
POP RBP
RET
|
long my_strxfrm_pad_nweights_unicode(int1 *param_1,int1 *param_2,long param_3)
{
int1 *puVar1;
long local_20;
int1 *local_10;
local_10 = param_1;
for (local_20 = param_3; local_10 < param_2 && local_20 != 0; local_20 = local_20 + -1) {
puVar1 = local_10 + 1;
*local_10 = 0;
if (puVar1 < param_2) {
*puVar1 = 0x20;
puVar1 = local_10 + 2;
}
local_10 = puVar1;
}
return (long)local_10 - (long)param_1;
}
| |
41,399 | POINTonE1_affine_on_curve | corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/e1.c | static bool_t POINTonE1_affine_on_curve(const POINTonE1_affine *p)
{
vec384 XXX, YY;
sqr_fp(XXX, p->X);
mul_fp(XXX, XXX, p->X); /* X^3 */
add_fp(XXX, XXX, B_E1); /* X^3 + B */
sqr_fp(YY, p->Y); /* Y^2 */
return vec_is_equal(XXX, YY, sizeof(XXX));
} | O2 | c | POINTonE1_affine_on_curve:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq -0x80(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x582c9
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5aad8
leaq 0x2ee3a(%rip), %rdx # 0x7ffc0
movq %r14, %rdi
movq %r14, %rsi
callq 0x56a78
addq $0x30, %rbx
leaq -0x50(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x582c9
pushq $0x30
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x52f34
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| POINTonE1_affine_on_curve:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 68h
mov rbx, rdi
lea r14, [rbp+var_80]
mov rdi, r14
mov rsi, rbx
call sqr_fp
mov rdi, r14
mov rsi, r14
mov rdx, rbx
call mul_fp
lea rdx, B_E1
mov rdi, r14
mov rsi, r14
call add_fp
add rbx, 30h ; '0'
lea r15, [rbp+var_50]
mov rdi, r15
mov rsi, rbx
call sqr_fp
push 30h ; '0'
pop rdx
mov rdi, r14
mov rsi, r15
call vec_is_equal
add rsp, 68h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long POINTonE1_affine_on_curve(long long a1)
{
_BYTE v2[48]; // [rsp+0h] [rbp-80h] BYREF
_BYTE v3[80]; // [rsp+30h] [rbp-50h] BYREF
sqr_fp(v2, a1);
mul_fp(v2, v2, a1);
add_fp(v2, v2, &B_E1);
sqr_fp(v3, a1 + 48);
return vec_is_equal(v2, v3, 48LL);
}
| POINTonE1_affine_on_curve:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV RBX,RDI
LEA R14,[RBP + -0x80]
MOV RDI,R14
MOV RSI,RBX
CALL 0x001582c9
MOV RDI,R14
MOV RSI,R14
MOV RDX,RBX
CALL 0x0015aad8
LEA RDX,[0x17ffc0]
MOV RDI,R14
MOV RSI,R14
CALL 0x00156a78
ADD RBX,0x30
LEA R15,[RBP + -0x50]
MOV RDI,R15
MOV RSI,RBX
CALL 0x001582c9
PUSH 0x30
POP RDX
MOV RDI,R14
MOV RSI,R15
CALL 0x00152f34
ADD RSP,0x68
POP RBX
POP R14
POP R15
POP RBP
RET
|
void POINTonE1_affine_on_curve(long param_1)
{
int1 local_88 [48];
int1 local_58 [56];
sqr_fp(local_88,param_1);
mul_fp(local_88,local_88,param_1);
add_fp(local_88,local_88,B_E1);
sqr_fp(local_58,param_1 + 0x30);
vec_is_equal(local_88,local_58,0x30);
return;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
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++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
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.