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
|
---|---|---|---|---|---|---|---|---|---|---|---|
11,500 |
bool Diagnostics_information::evaluate<Condition_information_item, Sql_condition const*>(THD*, Condition_information_item*, Sql_condition const*)
|
eloqsql/sql/sql_get_diagnostics.h
|
bool evaluate(THD *thd, Diag_item *diag_item, Context ctx)
{
Item *value;
/* Get this item's value. */
if (! (value= diag_item->get_value(thd, ctx)))
return true;
/* Set variable/parameter value. */
return diag_item->set_value(thd, &value);
}
|
O0
|
c
|
bool Diagnostics_information::evaluate<Condition_information_item, Sql_condition const*>(THD*, Condition_information_item*, Sql_condition const*):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xa87420
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0xa87a29
movb $0x1, -0x1(%rbp)
jmp 0xa87a3f
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0xa86ec0
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ZN23Diagnostics_information8evaluateI26Condition_information_itemPK13Sql_conditionEEbP3THDPT_T0_:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rdi, [rbp+var_20]; this
mov rsi, [rbp+var_18]; THD *
mov rdx, [rbp+var_28]; Sql_condition *
call _ZN26Condition_information_item9get_valueEP3THDPK13Sql_condition; Condition_information_item::get_value(THD *,Sql_condition const*)
mov [rbp+var_30], rax
cmp rax, 0
jnz short loc_A87A29
mov [rbp+var_1], 1
jmp short loc_A87A3F
loc_A87A29:
mov rdi, [rbp+var_20]; this
mov rsi, [rbp+var_18]; THD *
lea rdx, [rbp+var_30]; Item **
call _ZN28Diagnostics_information_item9set_valueEP3THDPP4Item; Diagnostics_information_item::set_value(THD *,Item **)
and al, 1
mov [rbp+var_1], al
loc_A87A3F:
mov al, [rbp+var_1]
and al, 1
add rsp, 30h
pop rbp
retn
|
char Diagnostics_information::evaluate<Condition_information_item,Sql_condition const*>(
long long a1,
THD *a2,
Diagnostics_information_item *a3,
Item *a4)
{
Item *v5[2]; // [rsp+0h] [rbp-30h] BYREF
Diagnostics_information_item *v6; // [rsp+10h] [rbp-20h]
THD *v7; // [rsp+18h] [rbp-18h]
long long v8; // [rsp+20h] [rbp-10h]
v8 = a1;
v7 = a2;
v6 = a3;
v5[1] = a4;
v5[0] = (Item *)Condition_information_item::get_value(a3, a2, a4);
if ( v5[0] )
return Diagnostics_information_item::set_value(v6, v7, v5) & 1;
else
return 1;
}
|
~Item_func_dimension:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00a89e10
ADD RSP,0x10
POP RBP
RET
|
/* Item_func_dimension::~Item_func_dimension() */
void __thiscall Item_func_dimension::~Item_func_dimension(Item_func_dimension *this)
{
Item_long_func_args_geometry::~Item_long_func_args_geometry((Item_long_func_args_geometry *)this);
return;
}
|
|
11,501 |
encodeURI_hex
|
bluesky950520[P]quickjs/quickjs.c
|
static int encodeURI_hex(StringBuffer *b, int c) {
uint8_t buf[6];
int n = 0;
const char *hex = "0123456789ABCDEF";
buf[n++] = '%';
if (c >= 256) {
buf[n++] = 'u';
buf[n++] = hex[(c >> 12) & 15];
buf[n++] = hex[(c >> 8) & 15];
}
buf[n++] = hex[(c >> 4) & 15];
buf[n++] = hex[(c >> 0) & 15];
return string_buffer_write8(b, buf, n);
}
|
O1
|
c
|
encodeURI_hex:
pushq %rax
movb $0x25, 0x2(%rsp)
movl $0x1, %edx
cmpl $0x100, %esi # imm = 0x100
jl 0x79ec3
movb $0x75, 0x3(%rsp)
movl %esi, %eax
shrl $0xc, %eax
andl $0xf, %eax
leaq 0x2802d(%rip), %rcx # 0xa1ed5
movb (%rax,%rcx), %al
movb %al, 0x4(%rsp)
movl %esi, %eax
shrl $0x8, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, 0x5(%rsp)
movl $0x4, %edx
movl %esi, %eax
shrl $0x4, %eax
andl $0xf, %eax
leaq 0x28003(%rip), %rcx # 0xa1ed5
movb (%rax,%rcx), %al
movl %edx, %r8d
movb %al, 0x2(%rsp,%r8)
andl $0xf, %esi
movb (%rsi,%rcx), %al
orl $0x2, %edx
movb %al, 0x3(%rsp,%r8)
leaq 0x2(%rsp), %rsi
callq 0x42038
popq %rax
retq
|
encodeURI_hex:
push rax
mov [rsp+8+var_6], 25h ; '%'
mov edx, 1
cmp esi, 100h
jl short loc_79EC3
mov [rsp+8+var_5], 75h ; 'u'
mov eax, esi
shr eax, 0Ch
and eax, 0Fh
lea rcx, a0123456789abcd; "0123456789ABCDEF"
mov al, [rax+rcx]
mov [rsp+8+var_4], al
mov eax, esi
shr eax, 8
and eax, 0Fh
mov al, [rax+rcx]
mov [rsp+8+var_3], al
mov edx, 4
loc_79EC3:
mov eax, esi
shr eax, 4
and eax, 0Fh
lea rcx, a0123456789abcd; "0123456789ABCDEF"
mov al, [rax+rcx]
mov r8d, edx
mov [rsp+r8+8+var_6], al
and esi, 0Fh
mov al, [rsi+rcx]
or edx, 2
mov [rsp+r8+8+var_5], al
lea rsi, [rsp+8+var_6]
call string_buffer_write8
pop rax
retn
|
long long encodeURI_hex(long long a1, int a2)
{
long long v2; // rax
unsigned int v3; // edx
long long v5; // [rsp-2h] [rbp-8h] BYREF
v5 = v2;
BYTE2(v5) = 37;
v3 = 1;
if ( a2 >= 256 )
{
BYTE3(v5) = 117;
BYTE4(v5) = a0123456789abcd[(unsigned __int16)a2 >> 12];
BYTE5(v5) = a0123456789abcd[((unsigned int)a2 >> 8) & 0xF];
v3 = 4;
}
*((_BYTE *)&v5 + v3 + 2) = a0123456789abcd[(unsigned __int8)a2 >> 4];
*((_BYTE *)&v5 + v3 + 3) = a0123456789abcd[a2 & 0xF];
string_buffer_write8(a1, (long long)&v5 + 2, v3 | 2);
return v5;
}
| |||
11,502 |
encodeURI_hex
|
bluesky950520[P]quickjs/quickjs.c
|
static int encodeURI_hex(StringBuffer *b, int c) {
uint8_t buf[6];
int n = 0;
const char *hex = "0123456789ABCDEF";
buf[n++] = '%';
if (c >= 256) {
buf[n++] = 'u';
buf[n++] = hex[(c >> 12) & 15];
buf[n++] = hex[(c >> 8) & 15];
}
buf[n++] = hex[(c >> 4) & 15];
buf[n++] = hex[(c >> 0) & 15];
return string_buffer_write8(b, buf, n);
}
|
O2
|
c
|
encodeURI_hex:
pushq %rax
movb $0x25, 0x2(%rsp)
cmpl $0x100, %esi # imm = 0x100
jl 0x66751
movb $0x75, 0x3(%rsp)
movl %esi, %eax
shrl $0xc, %eax
andl $0xf, %eax
leaq 0x226d8(%rip), %rcx # 0x88e0f
movb (%rax,%rcx), %al
movb %al, 0x4(%rsp)
movl %esi, %eax
shrl $0x8, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, 0x5(%rsp)
pushq $0x4
jmp 0x66753
pushq $0x1
popq %rdx
movl %esi, %eax
shrl $0x4, %eax
andl $0xf, %eax
leaq 0x226ac(%rip), %rcx # 0x88e0f
movb (%rax,%rcx), %al
movl %edx, %r8d
movb %al, 0x2(%rsp,%r8)
andl $0xf, %esi
movb (%rsi,%rcx), %al
orl $0x2, %edx
movb %al, 0x3(%rsp,%r8)
leaq 0x2(%rsp), %rsi
callq 0x39d2a
popq %rax
retq
|
encodeURI_hex:
push rax
mov [rsp+8+var_6], 25h ; '%'
cmp esi, 100h
jl short loc_66751
mov [rsp+8+var_5], 75h ; 'u'
mov eax, esi
shr eax, 0Ch
and eax, 0Fh
lea rcx, a0123456789abcd; "0123456789ABCDEF"
mov al, [rax+rcx]
mov [rsp+8+var_4], al
mov eax, esi
shr eax, 8
and eax, 0Fh
mov al, [rax+rcx]
mov [rsp+8+var_3], al
push 4
jmp short loc_66753
loc_66751:
push 1
loc_66753:
pop rdx
mov eax, esi
shr eax, 4
and eax, 0Fh
lea rcx, a0123456789abcd; "0123456789ABCDEF"
mov al, [rax+rcx]
mov r8d, edx
mov [rsp+r8+8+var_6], al
and esi, 0Fh
mov al, [rsi+rcx]
or edx, 2
mov [rsp+r8+8+var_5], al
lea rsi, [rsp+8+var_6]
call string_buffer_write8
pop rax
retn
|
long long encodeURI_hex(long long a1, int a2)
{
long long v2; // rax
unsigned int v4; // [rsp-Ah] [rbp-10h]
long long v5; // [rsp-2h] [rbp-8h] BYREF
v5 = v2;
BYTE2(v5) = 37;
if ( a2 < 256 )
{
v4 = 1;
}
else
{
BYTE3(v5) = 117;
BYTE4(v5) = a0123456789abcd[(unsigned __int16)a2 >> 12];
BYTE5(v5) = a0123456789abcd[((unsigned int)a2 >> 8) & 0xF];
v4 = 4;
}
*((_BYTE *)&v5 + v4 + 2) = a0123456789abcd[(unsigned __int8)a2 >> 4];
*((_BYTE *)&v5 + v4 + 3) = a0123456789abcd[a2 & 0xF];
string_buffer_write8(a1, (long long)&v5 + 2, v4 | 2);
return v5;
}
|
encodeURI_hex:
PUSH RAX
MOV byte ptr [RSP + 0x2],0x25
CMP ESI,0x100
JL 0x00166751
MOV byte ptr [RSP + 0x3],0x75
MOV EAX,ESI
SHR EAX,0xc
AND EAX,0xf
LEA RCX,[0x188e0f]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RSP + 0x4],AL
MOV EAX,ESI
SHR EAX,0x8
AND EAX,0xf
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RSP + 0x5],AL
PUSH 0x4
JMP 0x00166753
LAB_00166751:
PUSH 0x1
LAB_00166753:
POP RDX
MOV EAX,ESI
SHR EAX,0x4
AND EAX,0xf
LEA RCX,[0x188e0f]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV R8D,EDX
MOV byte ptr [RSP + R8*0x1 + 0x2],AL
AND ESI,0xf
MOV AL,byte ptr [RSI + RCX*0x1]
OR EDX,0x2
MOV byte ptr [RSP + R8*0x1 + 0x3],AL
LEA RSI,[RSP + 0x2]
CALL 0x00139d2a
POP RAX
RET
|
int8 encodeURI_hex(int8 param_1,uint param_2)
{
uint uVar1;
int8 in_RAX;
int8 uStack_8;
uStack_8._3_5_ = (int5)((ulong)in_RAX >> 0x18);
uStack_8._0_3_ = CONCAT12(0x25,(short)in_RAX);
if ((int)param_2 < 0x100) {
uVar1 = 1;
}
else {
uStack_8._6_2_ = (int2)((ulong)in_RAX >> 0x30);
uStack_8._0_6_ =
CONCAT15("0123456789ABCDEF"[param_2 >> 8 & 0xf],
CONCAT14("0123456789ABCDEF"[param_2 >> 0xc & 0xf],
CONCAT13(0x75,(int3)uStack_8)));
uVar1 = 4;
}
*(char *)((long)&uStack_8 + (ulong)uVar1 + 2) = "0123456789ABCDEF"[param_2 >> 4 & 0xf];
*(char *)((long)&uStack_8 + (ulong)uVar1 + 3) = "0123456789ABCDEF"[param_2 & 0xf];
string_buffer_write8(param_1,(long)&uStack_8 + 2,uVar1 | 2);
return uStack_8;
}
|
|
11,503 |
fmt::v10::detail::bigint::square()
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR20 void square() {
int num_bigits = static_cast<int>(bigits_.size());
int num_result_bigits = 2 * num_bigits;
basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
bigits_.resize(to_unsigned(num_result_bigits));
auto sum = uint128_t();
for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
// Compute bigit at position bigit_index of the result by adding
// cross-product terms n[i] * n[j] such that i + j == bigit_index.
for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
// Most terms are multiplied twice which can be optimized in the future.
sum += static_cast<double_bigit>(n[i]) * n[j];
}
(*this)[bigit_index] = static_cast<bigit>(sum);
sum >>= num_bits<bigit>(); // Compute the carry.
}
// Do the same for the top half.
for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
++bigit_index) {
for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
sum += static_cast<double_bigit>(n[i++]) * n[j--];
(*this)[bigit_index] = static_cast<bigit>(sum);
sum >>= num_bits<bigit>();
}
remove_leading_zeros();
exp_ *= 2;
}
|
O3
|
c
|
fmt::v10::detail::bigint::square():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %r15
leal (%r15,%r15), %r14d
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x2d8c2
movq 0x18(%rbx), %rax
cmpq %r14, %rax
jae 0x2d777
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rax)
movq 0x18(%rbx), %rax
cmpq %r14, %rax
cmovaeq %r14, %rax
movq %rax, 0x10(%rbx)
testl %r15d, %r15d
jle 0x2d7d9
movq 0x10(%rsp), %rdx
movq 0x8(%rbx), %rsi
movl %r15d, %edi
andl $0x7fffffff, %edi # imm = 0x7FFFFFFF
xorl %r8d, %r8d
xorl %eax, %eax
xorl %ecx, %ecx
movq %rdx, %r9
movq %r8, %r10
movl (%r9), %r11d
movl (%rdx,%r10,4), %r12d
imulq %r11, %r12
addq %r12, %rax
adcq $0x0, %rcx
addq $0x4, %r9
addq $-0x1, %r10
jb 0x2d7a6
movl %eax, (%rsi,%r8,4)
shrdq $0x20, %rcx, %rax
shrq $0x20, %rcx
incq %r8
cmpq %rdi, %r8
jne 0x2d7a0
jmp 0x2d7dd
xorl %eax, %eax
xorl %ecx, %ecx
cmpl %r15d, %r14d
jle 0x2d85d
leal -0x1(%r15), %edx
movq 0x10(%rsp), %rsi
movq 0x8(%rbx), %rdi
movslq %r15d, %r8
leaq (%rsi,%r8,4), %r8
movl %r15d, %r9d
negl %r9d
movl $0x1, %r10d
movl %r15d, %r11d
movl %r11d, %ebp
subl %edx, %ebp
cmpl %r15d, %ebp
jge 0x2d83b
movslq %r10d, %r14
leaq (%rsi,%r14,4), %r14
movq $-0x1, %r12
movl (%r14), %r13d
movl (%r8,%r12,4), %ebp
imulq %r13, %rbp
addq %rbp, %rax
adcq $0x0, %rcx
decq %r12
addq $0x4, %r14
cmpl %r12d, %r9d
jne 0x2d81d
movl %r11d, %r14d
movl %eax, (%rdi,%r14,4)
shrdq $0x20, %rcx, %rax
shrq $0x20, %rcx
incl %r11d
leal 0x1(%r10), %ebp
incq %r9
cmpl %r15d, %r10d
movl %ebp, %r10d
jne 0x2d805
movq %rbx, %rdi
callq 0x2d8ec
shll 0xa0(%rbx)
leaq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
cmpq %rax, %rdi
je 0x2d887
movq 0x20(%rsp), %rsi
shlq $0x2, %rsi
callq 0x1f250
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d89b
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
cmpq %rax, %rdi
je 0x2d8ba
movq 0x20(%rsp), %rsi
shlq $0x2, %rsi
callq 0x1f250
movq %rbx, %rdi
callq 0x1ffd0
|
_ZN3fmt3v106detail6bigint6squareEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, rdi
mov r15, [rdi+10h]
lea r14d, [r15+r15]
lea rdi, [rsp+0D8h+var_D0]
mov rsi, rbx
call _ZN3fmt3v1019basic_memory_bufferIjLm32ESaIjEEC2EOS3_; fmt::v10::basic_memory_buffer<uint,32ul,std::allocator<uint>>::basic_memory_buffer(fmt::v10::basic_memory_buffer<uint,32ul,std::allocator<uint>>&&)
mov rax, [rbx+18h]
cmp rax, r14
jnb short loc_2D777
mov rax, [rbx]
mov rdi, rbx
mov rsi, r14
call qword ptr [rax]
mov rax, [rbx+18h]
loc_2D777:
cmp rax, r14
cmovnb rax, r14
mov [rbx+10h], rax
test r15d, r15d
jle short loc_2D7D9
mov rdx, [rsp+0D8h+var_C8]
mov rsi, [rbx+8]
mov edi, r15d
and edi, 7FFFFFFFh
xor r8d, r8d
xor eax, eax
xor ecx, ecx
loc_2D7A0:
mov r9, rdx
mov r10, r8
loc_2D7A6:
mov r11d, [r9]
mov r12d, [rdx+r10*4]
imul r12, r11
add rax, r12
adc rcx, 0
add r9, 4
add r10, 0FFFFFFFFFFFFFFFFh
jb short loc_2D7A6
mov [rsi+r8*4], eax
shrd rax, rcx, 20h
shr rcx, 20h
inc r8
cmp r8, rdi
jnz short loc_2D7A0
jmp short loc_2D7DD
loc_2D7D9:
xor eax, eax
xor ecx, ecx
loc_2D7DD:
cmp r14d, r15d
jle short loc_2D85D
lea edx, [r15-1]
mov rsi, [rsp+0D8h+var_C8]
mov rdi, [rbx+8]
movsxd r8, r15d
lea r8, [rsi+r8*4]
mov r9d, r15d
neg r9d
mov r10d, 1
mov r11d, r15d
loc_2D805:
mov ebp, r11d
sub ebp, edx
cmp ebp, r15d
jge short loc_2D83B
movsxd r14, r10d
lea r14, [rsi+r14*4]
mov r12, 0FFFFFFFFFFFFFFFFh
loc_2D81D:
mov r13d, [r14]
mov ebp, [r8+r12*4]
imul rbp, r13
add rax, rbp
adc rcx, 0
dec r12
add r14, 4
cmp r9d, r12d
jnz short loc_2D81D
loc_2D83B:
mov r14d, r11d
mov [rdi+r14*4], eax
shrd rax, rcx, 20h
shr rcx, 20h
inc r11d
lea ebp, [r10+1]
inc r9
cmp r10d, r15d
mov r10d, ebp
jnz short loc_2D805
loc_2D85D:
mov rdi, rbx; this
call _ZN3fmt3v106detail6bigint20remove_leading_zerosEv; fmt::v10::detail::bigint::remove_leading_zeros(void)
shl dword ptr [rbx+0A0h], 1
lea rax, [rsp+0D8h+var_B0]
mov rdi, [rax-18h]; void *
cmp rdi, rax
jz short loc_2D887
mov rsi, [rsp+0D8h+var_B8]
shl rsi, 2; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2D887:
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_2D89B:
mov rbx, rax
lea rax, [rsp+arg_20]
mov rdi, [rax-18h]; void *
cmp rdi, rax
jz short loc_2D8BA
mov rsi, [rsp+arg_18]
shl rsi, 2; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2D8BA:
mov rdi, rbx
call __Unwind_Resume
|
void fmt::v10::detail::bigint::square(fmt::v10::detail::bigint *this)
{
long long v2; // r15
unsigned long long v3; // r14
unsigned long long v4; // rax
unsigned int *v5; // rdx
long long v6; // rsi
long long v7; // r8
unsigned long long v8; // rax
unsigned long long v9; // rcx
unsigned int *v10; // r9
long long v11; // r10
unsigned long long v12; // kr00_8
char *v14; // rsi
long long v15; // rdi
char *v16; // r8
int v17; // r9d
int v18; // r10d
unsigned int v19; // r11d
char *v20; // r14
long long v21; // r12
__int128 v22; // rt0
char v24[8]; // [rsp+8h] [rbp-D0h] BYREF
char *v25; // [rsp+10h] [rbp-C8h]
long long v26; // [rsp+20h] [rbp-B8h]
char v27; // [rsp+28h] [rbp-B0h] BYREF
v2 = *((_QWORD *)this + 2);
v3 = (unsigned int)(2 * v2);
fmt::v10::basic_memory_buffer<unsigned int,32ul,std::allocator<unsigned int>>::basic_memory_buffer(v24, this);
v4 = *((_QWORD *)this + 3);
if ( v4 < v3 )
{
(**(void ( ***)(fmt::v10::detail::bigint *, _QWORD))this)(this, (unsigned int)(2 * v2));
v4 = *((_QWORD *)this + 3);
}
if ( v4 >= v3 )
v4 = (unsigned int)(2 * v2);
*((_QWORD *)this + 2) = v4;
if ( (int)v2 <= 0 )
{
v8 = 0LL;
v9 = 0LL;
}
else
{
v5 = (unsigned int *)v25;
v6 = *((_QWORD *)this + 1);
v7 = 0LL;
v8 = 0LL;
v9 = 0LL;
do
{
v10 = v5;
v11 = v7;
do
{
v12 = *v10 * (unsigned long long)v5[v11] + v8;
v9 = (__PAIR128__(v9, *v10 * (unsigned long long)v5[v11]) + v8) >> 64;
v8 = v12;
++v10;
}
while ( v11-- != 0 );
*(_DWORD *)(v6 + 4 * v7) = v12;
v8 = (__int128)__PAIR128__(v9, v12) >> 32;
v9 >>= 32;
++v7;
}
while ( v7 != (v2 & 0x7FFFFFFF) );
}
if ( (int)v3 > (int)v2 )
{
v14 = v25;
v15 = *((_QWORD *)this + 1);
v16 = &v25[4 * (int)v2];
v17 = -(int)v2;
v18 = 1;
v19 = v2;
do
{
if ( (int)(v19 - (v2 - 1)) < (int)v2 )
{
v20 = &v14[4 * v18];
v21 = -1LL;
do
{
v9 = (__PAIR128__(v9, *(unsigned int *)v20 * (unsigned long long)*(unsigned int *)&v16[4 * v21]) + v8) >> 64;
v8 += *(unsigned int *)v20 * (unsigned long long)*(unsigned int *)&v16[4 * v21--];
v20 += 4;
}
while ( v17 != (_DWORD)v21 );
}
*(_DWORD *)(v15 + 4LL * v19) = v8;
*(_QWORD *)&v22 = v8;
*((_QWORD *)&v22 + 1) = v9;
v8 = v22 >> 32;
v9 >>= 32;
++v19;
++v17;
}
while ( v18++ != (_DWORD)v2 );
}
fmt::v10::detail::bigint::remove_leading_zeros(this);
*((_DWORD *)this + 40) *= 2;
if ( v25 != &v27 )
operator delete(v25, 4 * v26);
}
|
square:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x10]
LEA R14D,[R15 + R15*0x1]
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x0012d8c2
MOV RAX,qword ptr [RBX + 0x18]
CMP RAX,R14
JNC 0x0012d777
MOV RAX,qword ptr [RBX]
LAB_0012d76b:
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x18]
LAB_0012d777:
CMP RAX,R14
CMOVNC RAX,R14
MOV qword ptr [RBX + 0x10],RAX
TEST R15D,R15D
JLE 0x0012d7d9
MOV RDX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RBX + 0x8]
MOV EDI,R15D
AND EDI,0x7fffffff
XOR R8D,R8D
XOR EAX,EAX
XOR ECX,ECX
LAB_0012d7a0:
MOV R9,RDX
MOV R10,R8
LAB_0012d7a6:
MOV R11D,dword ptr [R9]
MOV R12D,dword ptr [RDX + R10*0x4]
IMUL R12,R11
ADD RAX,R12
ADC RCX,0x0
ADD R9,0x4
ADD R10,-0x1
JC 0x0012d7a6
MOV dword ptr [RSI + R8*0x4],EAX
SHRD RAX,RCX,0x20
SHR RCX,0x20
INC R8
CMP R8,RDI
JNZ 0x0012d7a0
JMP 0x0012d7dd
LAB_0012d7d9:
XOR EAX,EAX
XOR ECX,ECX
LAB_0012d7dd:
CMP R14D,R15D
JLE 0x0012d85d
LEA EDX,[R15 + -0x1]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RBX + 0x8]
MOVSXD R8,R15D
LEA R8,[RSI + R8*0x4]
MOV R9D,R15D
NEG R9D
MOV R10D,0x1
MOV R11D,R15D
LAB_0012d805:
MOV EBP,R11D
SUB EBP,EDX
CMP EBP,R15D
JGE 0x0012d83b
MOVSXD R14,R10D
LEA R14,[RSI + R14*0x4]
MOV R12,-0x1
LAB_0012d81d:
MOV R13D,dword ptr [R14]
MOV EBP,dword ptr [R8 + R12*0x4]
IMUL RBP,R13
ADD RAX,RBP
ADC RCX,0x0
DEC R12
ADD R14,0x4
CMP R9D,R12D
JNZ 0x0012d81d
LAB_0012d83b:
MOV R14D,R11D
MOV dword ptr [RDI + R14*0x4],EAX
SHRD RAX,RCX,0x20
SHR RCX,0x20
INC R11D
LEA EBP,[R10 + 0x1]
INC R9
CMP R10D,R15D
MOV R10D,EBP
JNZ 0x0012d805
LAB_0012d85d:
MOV RDI,RBX
CALL 0x0012d8ec
LAB_0012d865:
SHL dword ptr [RBX + 0xa0],0x1
LEA RAX,[RSP + 0x28]
MOV RDI,qword ptr [RAX + -0x18]
CMP RDI,RAX
JZ 0x0012d887
MOV RSI,qword ptr [RSP + 0x20]
SHL RSI,0x2
CALL 0x0011f250
LAB_0012d887:
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fmt::v10::detail::bigint::square() */
void __thiscall fmt::v10::detail::bigint::square(bigint *this)
{
long lVar1;
uint uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
int iVar6;
uint *puVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
long lVar11;
bool bVar12;
basic_memory_buffer<unsigned_int,32ul,std::allocator<unsigned_int>> local_d0 [8];
uint *local_c8;
long local_b8;
uint local_b0 [32];
uVar10 = *(ulong *)(this + 0x10);
uVar2 = (uint)uVar10;
uVar4 = (ulong)(uVar2 * 2);
basic_memory_buffer<unsigned_int,32ul,std::allocator<unsigned_int>>::basic_memory_buffer
(local_d0,(basic_memory_buffer *)this);
uVar3 = *(ulong *)(this + 0x18);
if (uVar3 < uVar4) {
/* try { // try from 0012d76b to 0012d772 has its CatchHandler @ 0012d899 */
(*(code *)**(int8 **)this)(this,uVar4);
uVar3 = *(ulong *)(this + 0x18);
}
if (uVar4 <= uVar3) {
uVar3 = uVar4;
}
*(ulong *)(this + 0x10) = uVar3;
if ((int)uVar2 < 1) {
uVar3 = 0;
uVar4 = 0;
}
else {
lVar1 = *(long *)(this + 8);
uVar9 = 0;
uVar3 = 0;
uVar4 = 0;
puVar7 = local_c8;
uVar5 = uVar9;
do {
do {
bVar12 = CARRY8(uVar3,(ulong)local_c8[uVar9] * (ulong)*puVar7);
uVar3 = uVar3 + (ulong)local_c8[uVar9] * (ulong)*puVar7;
uVar4 = uVar4 + bVar12;
bVar12 = uVar9 != 0;
uVar9 = uVar9 - 1;
puVar7 = puVar7 + 1;
} while (bVar12);
*(int *)(lVar1 + uVar5 * 4) = (int)uVar3;
uVar3 = uVar3 >> 0x20 | uVar4 << 0x20;
uVar4 = uVar4 >> 0x20;
uVar9 = uVar5 + 1;
puVar7 = local_c8;
uVar5 = uVar9;
} while (uVar9 != (uVar2 & 0x7fffffff));
}
if ((int)uVar2 < (int)(uVar2 * 2)) {
lVar1 = *(long *)(this + 8);
iVar6 = -uVar2;
uVar10 = uVar10 & 0xffffffff;
uVar8 = 1;
do {
if ((int)((int)uVar10 - (uVar2 - 1)) < (int)uVar2) {
puVar7 = local_c8 + (int)uVar8;
lVar11 = -1;
do {
bVar12 = CARRY8(uVar3,(ulong)local_c8[(int)uVar2 + lVar11] * (ulong)*puVar7);
uVar3 = uVar3 + (ulong)local_c8[(int)uVar2 + lVar11] * (ulong)*puVar7;
uVar4 = uVar4 + bVar12;
lVar11 = lVar11 + -1;
puVar7 = puVar7 + 1;
} while (iVar6 != (int)lVar11);
}
*(int *)(lVar1 + uVar10 * 4) = (int)uVar3;
uVar3 = uVar3 >> 0x20 | uVar4 << 0x20;
uVar4 = uVar4 >> 0x20;
uVar10 = (ulong)((int)uVar10 + 1);
iVar6 = iVar6 + 1;
bVar12 = uVar8 != uVar2;
uVar8 = uVar8 + 1;
} while (bVar12);
}
/* try { // try from 0012d85d to 0012d864 has its CatchHandler @ 0012d89b */
remove_leading_zeros(this);
*(int *)(this + 0xa0) = *(int *)(this + 0xa0) << 1;
if (local_c8 != local_b0) {
operator_delete(local_c8,local_b8 << 2);
}
return;
}
|
|
11,504 |
mi_keynr
|
eloqsql/storage/myisam/mi_range.c
|
static uint _mi_keynr(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
uchar *keypos, uint *ret_max_key)
{
uint nod_flag,keynr,max_key;
uchar t_buff[HA_MAX_KEY_BUFF],*end;
end= page+mi_getint(page);
nod_flag=mi_test_if_nod(page);
page+=2+nod_flag;
if (!(keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)))
{
*ret_max_key= (uint) (end-page)/(keyinfo->keylength+nod_flag);
return (uint) (keypos-page)/(keyinfo->keylength+nod_flag);
}
max_key=keynr=0;
t_buff[0]=0; /* Safety */
while (page < end)
{
if (!(*keyinfo->get_key)(keyinfo,nod_flag,&page,t_buff))
return 0; /* Error */
max_key++;
if (page == keypos)
keynr=max_key;
}
*ret_max_key=max_key;
return(keynr);
}
|
O3
|
c
|
mi_keynr:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4e8, %rsp # imm = 0x4E8
movq %rcx, -0x4f8(%rbp)
movq %rdx, %r13
movq %rsi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movzbl 0x1(%rdx), %ecx
movzbl (%rdx), %edx
movl %edx, %eax
andl $0x7f, %eax
shll $0x8, %eax
xorl %r12d, %r12d
testb %dl, %dl
jns 0x3c3cb
movq (%rdi), %rdx
movl 0x17c(%rdx), %r12d
orq %rcx, %rax
leal 0x2(%r12), %edx
leaq (%rdx,%r13), %rcx
movq %rcx, -0x500(%rbp)
testb $0x28, 0xa(%r15)
je 0x3c447
movq %r8, -0x508(%rbp)
movb $0x0, -0x4f0(%rbp)
xorl %r14d, %r14d
movl $0x0, %ebx
cmpl %edx, %eax
jbe 0x3c43c
addq %rax, %r13
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %r15, %rdi
movl %r12d, %esi
leaq -0x500(%rbp), %rdx
leaq -0x4f0(%rbp), %rcx
callq *0x48(%r15)
testl %eax, %eax
je 0x3c472
incl %ebx
movq -0x500(%rbp), %rax
cmpq -0x4f8(%rbp), %rax
cmovel %ebx, %r14d
cmpq %r13, %rax
jb 0x3c407
movq -0x508(%rbp), %rax
movl %ebx, (%rax)
jmp 0x3c475
subl %edx, %eax
movzwl 0x12(%r15), %esi
addl %r12d, %esi
xorl %edx, %edx
divl %esi
movl %eax, (%r8)
movq -0x4f8(%rbp), %rax
subl %ecx, %eax
movzwl 0x12(%r15), %ecx
addl %r12d, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %r14d
jmp 0x3c475
xorl %r14d, %r14d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x3c499
movl %r14d, %eax
addq $0x4e8, %rsp # imm = 0x4E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x283d0
nop
|
_mi_keynr:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 4E8h
mov [rbp+var_4F8], rcx
mov r13, rdx
mov r15, rsi
mov rax, fs:28h
mov [rbp+var_30], rax
movzx ecx, byte ptr [rdx+1]
movzx edx, byte ptr [rdx]
mov eax, edx
and eax, 7Fh
shl eax, 8
xor r12d, r12d
test dl, dl
jns short loc_3C3CB
mov rdx, [rdi]
mov r12d, [rdx+17Ch]
loc_3C3CB:
or rax, rcx
lea edx, [r12+2]
lea rcx, [rdx+r13]
mov [rbp+var_500], rcx
test byte ptr [r15+0Ah], 28h
jz short loc_3C447
mov [rbp+var_508], r8
mov [rbp+var_4F0], 0
xor r14d, r14d
mov ebx, 0
cmp eax, edx
jbe short loc_3C43C
add r13, rax
xor ebx, ebx
xor r14d, r14d
loc_3C407:
mov rdi, r15
mov esi, r12d
lea rdx, [rbp+var_500]
lea rcx, [rbp+var_4F0]
call qword ptr [r15+48h]
test eax, eax
jz short loc_3C472
inc ebx
mov rax, [rbp+var_500]
cmp rax, [rbp+var_4F8]
cmovz r14d, ebx
cmp rax, r13
jb short loc_3C407
loc_3C43C:
mov rax, [rbp+var_508]
mov [rax], ebx
jmp short loc_3C475
loc_3C447:
sub eax, edx
movzx esi, word ptr [r15+12h]
add esi, r12d
xor edx, edx
div esi
mov [r8], eax
mov rax, [rbp+var_4F8]
sub eax, ecx
movzx ecx, word ptr [r15+12h]
add ecx, r12d
xor edx, edx
div ecx
mov r14d, eax
jmp short loc_3C475
loc_3C472:
xor r14d, r14d
loc_3C475:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_3C499
mov eax, r14d
add rsp, 4E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3C499:
call ___stack_chk_fail
|
long long mi_keynr(long long a1, long long a2, char *a3, char *a4, unsigned int *a5)
{
long long v6; // rcx
char v7; // dl
unsigned int v8; // r12d
long long v9; // rax
long long v10; // rdx
unsigned int v11; // r14d
unsigned int v12; // ebx
char *v13; // r13
char *v16; // [rsp+10h] [rbp-500h] BYREF
char *v17; // [rsp+18h] [rbp-4F8h]
char v18[1216]; // [rsp+20h] [rbp-4F0h] BYREF
unsigned long long v19; // [rsp+4E0h] [rbp-30h]
v17 = a4;
v19 = __readfsqword(0x28u);
v6 = (unsigned __int8)a3[1];
v7 = *a3;
v8 = 0;
if ( v7 < 0 )
v8 = *(_DWORD *)(*(_QWORD *)a1 + 380LL);
v9 = v6 | ((unsigned __int8)(v7 & 0x7F) << 8);
v10 = v8 + 2;
v16 = &a3[v10];
if ( (*(_BYTE *)(a2 + 10) & 0x28) != 0 )
{
v18[0] = 0;
v11 = 0;
v12 = 0;
if ( (unsigned int)v9 <= (unsigned int)v10 )
{
LABEL_10:
*a5 = v12;
}
else
{
v13 = &a3[v9];
v12 = 0;
v11 = 0;
while ( (*(unsigned int ( **)(long long, _QWORD, char **, char *))(a2 + 72))(a2, v8, &v16, v18) )
{
++v12;
if ( v16 == v17 )
v11 = v12;
if ( v16 >= v13 )
goto LABEL_10;
}
return 0;
}
}
else
{
*a5 = ((int)v9 - (int)v10) / (v8 + *(unsigned __int16 *)(a2 + 18));
return ((int)v17 - ((int)v10 + (int)a3)) / (v8 + *(unsigned __int16 *)(a2 + 18));
}
return v11;
}
|
_mi_keynr:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x4e8
MOV qword ptr [RBP + -0x4f8],RCX
MOV R13,RDX
MOV R15,RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOVZX ECX,byte ptr [RDX + 0x1]
MOVZX EDX,byte ptr [RDX]
MOV EAX,EDX
AND EAX,0x7f
SHL EAX,0x8
XOR R12D,R12D
TEST DL,DL
JNS 0x0013c3cb
MOV RDX,qword ptr [RDI]
MOV R12D,dword ptr [RDX + 0x17c]
LAB_0013c3cb:
OR RAX,RCX
LEA EDX,[R12 + 0x2]
LEA RCX,[RDX + R13*0x1]
MOV qword ptr [RBP + -0x500],RCX
TEST byte ptr [R15 + 0xa],0x28
JZ 0x0013c447
MOV qword ptr [RBP + -0x508],R8
MOV byte ptr [RBP + -0x4f0],0x0
XOR R14D,R14D
MOV EBX,0x0
CMP EAX,EDX
JBE 0x0013c43c
ADD R13,RAX
XOR EBX,EBX
XOR R14D,R14D
LAB_0013c407:
MOV RDI,R15
MOV ESI,R12D
LEA RDX,[RBP + -0x500]
LEA RCX,[RBP + -0x4f0]
CALL qword ptr [R15 + 0x48]
TEST EAX,EAX
JZ 0x0013c472
INC EBX
MOV RAX,qword ptr [RBP + -0x500]
CMP RAX,qword ptr [RBP + -0x4f8]
CMOVZ R14D,EBX
CMP RAX,R13
JC 0x0013c407
LAB_0013c43c:
MOV RAX,qword ptr [RBP + -0x508]
MOV dword ptr [RAX],EBX
JMP 0x0013c475
LAB_0013c447:
SUB EAX,EDX
MOVZX ESI,word ptr [R15 + 0x12]
ADD ESI,R12D
XOR EDX,EDX
DIV ESI
MOV dword ptr [R8],EAX
MOV RAX,qword ptr [RBP + -0x4f8]
SUB EAX,ECX
MOVZX ECX,word ptr [R15 + 0x12]
ADD ECX,R12D
XOR EDX,EDX
DIV ECX
MOV R14D,EAX
JMP 0x0013c475
LAB_0013c472:
XOR R14D,R14D
LAB_0013c475:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0013c499
MOV EAX,R14D
ADD RSP,0x4e8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013c499:
CALL 0x001283d0
|
uint _mi_keynr(long *param_1,long param_2,byte *param_3,byte *param_4,uint *param_5)
{
uint uVar1;
uint uVar2;
int iVar3;
ulong uVar4;
uint uVar5;
int iVar6;
uint uVar7;
long in_FS_OFFSET;
byte *local_508;
byte *local_500;
int1 local_4f8 [1216];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
iVar6 = 0;
if ((char)*param_3 < '\0') {
iVar6 = *(int *)(*param_1 + 0x17c);
}
uVar4 = (ulong)((*param_3 & 0x7f) << 8) | (ulong)param_3[1];
uVar1 = iVar6 + 2;
local_508 = param_3 + uVar1;
uVar2 = (uint)uVar4;
local_500 = param_4;
if ((*(byte *)(param_2 + 10) & 0x28) == 0) {
*param_5 = (uVar2 - uVar1) / ((uint)*(ushort *)(param_2 + 0x12) + iVar6);
uVar7 = (uint)((int)param_4 - (int)local_508) / ((uint)*(ushort *)(param_2 + 0x12) + iVar6);
}
else {
local_4f8[0] = 0;
uVar7 = 0;
uVar5 = 0;
if (uVar1 < uVar2) {
uVar5 = 0;
uVar7 = 0;
do {
iVar3 = (**(code **)(param_2 + 0x48))(param_2,iVar6,&local_508,local_4f8);
if (iVar3 == 0) {
uVar7 = 0;
goto LAB_0013c475;
}
uVar5 = uVar5 + 1;
if (local_508 == local_500) {
uVar7 = uVar5;
}
} while (local_508 < param_3 + uVar4);
}
*param_5 = uVar5;
}
LAB_0013c475:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar7;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
11,505 |
my_strnxfrm_simple
|
eloqsql/strings/ctype-simple.c
|
size_t my_strnxfrm_simple(CHARSET_INFO * cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
uchar *d0= dst;
dst= d0 + my_strnxfrm_simple_internal(cs, dst, dstlen, &nweights,
src, srclen);
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, d0 + dstlen,
nweights, flags, 0);
}
|
O0
|
c
|
my_strnxfrm_simple:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
leaq -0x1c(%rbp), %rcx
callq 0x48b90
movq %rax, %rcx
movq -0x40(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rcx
addq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x48d30
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
|
my_strnxfrm_simple:
push rbp
mov rbp, rsp
sub rsp, 50h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov r8, [rbp+var_28]
mov r9, [rbp+var_30]
lea rcx, [rbp+var_1C]
call my_strnxfrm_simple_internal
mov rcx, rax
mov rax, [rbp+var_40]
add rax, rcx
mov [rbp+var_10], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_38]
add rcx, [rbp+var_18]
mov r8d, [rbp+var_1C]
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+50h+var_50], 0
call my_strxfrm_pad_desc_and_reverse
add rsp, 50h
pop rbp
retn
|
long long my_strnxfrm_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned int a4,
unsigned __int8 *a5,
unsigned long long a6,
int a7)
{
_BYTE *v7; // rax
unsigned int v9; // [rsp+34h] [rbp-1Ch] BYREF
unsigned long long v10; // [rsp+38h] [rbp-18h]
unsigned __int8 *v11; // [rsp+40h] [rbp-10h]
long long v12; // [rsp+48h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = a4;
v7 = my_strnxfrm_simple_internal(a1, a2, a3, &v9, a5, a6);
v11 = &a2[(_QWORD)v7];
return my_strxfrm_pad_desc_and_reverse(v12, (_DWORD)a2, (int)v7 + (int)a2, (int)v10 + (int)a2, v9, a7, 0);
}
|
my_strnxfrm_simple:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x28]
MOV R9,qword ptr [RBP + -0x30]
LEA RCX,[RBP + -0x1c]
CALL 0x00148b90
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,qword ptr [RBP + -0x18]
MOV R8D,dword ptr [RBP + -0x1c]
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00148d30
ADD RSP,0x50
POP RBP
RET
|
void my_strnxfrm_simple(int8 param_1,long param_2,long param_3,int4 param_4,
int8 param_5,int8 param_6,int4 param_7)
{
int4 local_24;
long local_20;
long local_18;
int8 local_10;
local_24 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_18 = my_strnxfrm_simple_internal(param_1,param_2,param_3,&local_24,param_5,param_6);
local_18 = param_2 + local_18;
my_strxfrm_pad_desc_and_reverse(local_10,param_2,local_18,param_2 + local_20,local_24,param_7,0);
return;
}
|
|
11,506 |
intern_filename
|
eloqsql/mysys/mf_pack.c
|
char *intern_filename(char *to, const char *from)
{
size_t length, to_length;
char buff[FN_REFLEN + 1];
if (from == to)
{ /* Dirname may destroy from */
(void) strnmov(buff, from, FN_REFLEN);
from=buff;
}
length= dirname_part(to, from, &to_length); /* Copy dirname & fix chars */
(void) strnmov(to + to_length, from + length, FN_REFLEN - to_length);
return (to);
}
|
O0
|
c
|
intern_filename:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x220(%rbp), %rax
cmpq -0x218(%rbp), %rax
jne 0x2f48c
leaq -0x210(%rbp), %rdi
movq -0x220(%rbp), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x864b0
leaq -0x210(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x218(%rbp), %rdi
movq -0x220(%rbp), %rsi
leaq -0x230(%rbp), %rdx
callq 0x2e970
movq %rax, -0x228(%rbp)
movq -0x218(%rbp), %rdi
movq -0x230(%rbp), %rax
addq %rax, %rdi
movq -0x220(%rbp), %rsi
movq -0x228(%rbp), %rcx
addq %rcx, %rsi
movl $0x200, %edx # imm = 0x200
subq %rax, %rdx
callq 0x864b0
movq -0x218(%rbp), %rax
movq %rax, -0x238(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2f50c
movq -0x238(%rbp), %rax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x29390
nopw %cs:(%rax,%rax)
|
intern_filename:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rax, [rbp+var_220]
cmp rax, [rbp+var_218]
jnz short loc_2F48C
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_220]
mov edx, 200h
call strnmov
lea rax, [rbp+var_210]
mov [rbp+var_220], rax
loc_2F48C:
mov rdi, [rbp+var_218]
mov rsi, [rbp+var_220]
lea rdx, [rbp+var_230]
call dirname_part
mov [rbp+var_228], rax
mov rdi, [rbp+var_218]
mov rax, [rbp+var_230]
add rdi, rax
mov rsi, [rbp+var_220]
mov rcx, [rbp+var_228]
add rsi, rcx
mov edx, 200h
sub rdx, rax
call strnmov
mov rax, [rbp+var_218]
mov [rbp+var_238], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2F50C
mov rax, [rbp+var_238]
add rsp, 240h
pop rbp
retn
loc_2F50C:
call ___stack_chk_fail
|
long long intern_filename(long long a1, _BYTE *a2)
{
long long v3; // [rsp+10h] [rbp-230h] BYREF
long long v4; // [rsp+18h] [rbp-228h]
_BYTE *v5; // [rsp+20h] [rbp-220h]
long long v6; // [rsp+28h] [rbp-218h]
_BYTE v7[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v8; // [rsp+238h] [rbp-8h]
v8 = __readfsqword(0x28u);
v6 = a1;
v5 = a2;
if ( a2 == (_BYTE *)a1 )
{
strnmov(v7, v5, 512LL);
v5 = v7;
}
v4 = dirname_part(v6, v5, &v3);
strnmov(v3 + v6, &v5[v4], 512 - v3);
return v6;
}
|
intern_filename:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RAX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RBP + -0x218]
JNZ 0x0012f48c
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x220]
MOV EDX,0x200
CALL 0x001864b0
LEA RAX,[RBP + -0x210]
MOV qword ptr [RBP + -0x220],RAX
LAB_0012f48c:
MOV RDI,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RBP + -0x220]
LEA RDX,[RBP + -0x230]
CALL 0x0012e970
MOV qword ptr [RBP + -0x228],RAX
MOV RDI,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RBP + -0x230]
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x220]
MOV RCX,qword ptr [RBP + -0x228]
ADD RSI,RCX
MOV EDX,0x200
SUB RDX,RAX
CALL 0x001864b0
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x238],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012f50c
MOV RAX,qword ptr [RBP + -0x238]
ADD RSP,0x240
POP RBP
RET
LAB_0012f50c:
CALL 0x00129390
|
int1 * intern_filename(int1 *param_1,int1 *param_2)
{
long in_FS_OFFSET;
long local_238;
long local_230;
int1 *local_228;
int1 *local_220;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_228 = param_2;
local_220 = param_1;
if (param_2 == param_1) {
strnmov(local_218,param_2,0x200);
local_228 = local_218;
}
local_230 = dirname_part(local_220,local_228,&local_238);
strnmov(local_220 + local_238,local_228 + local_230,0x200 - local_238);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_220;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
11,507 |
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 0x3f16c
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x41080
movzbl 0xb2(%rbx), %ecx
testq %rcx, %rcx
je 0x4102f
movq 0x60(%rbx), %rax
imulq $0x38, %rcx, %rcx
xorl %edx, %edx
cmpq $0x0, 0x18(%rax,%rdx)
jne 0x4107e
addq $0x38, %rdx
cmpq %rdx, %rcx
jne 0x4101e
movq 0xc0(%rbx), %rcx
leaq 0x2e3833(%rip), %rdx # 0x324870
cmpq (%rdx), %rcx
je 0x41061
leaq 0x2e3847(%rip), %rax # 0x324890
cmpq 0x8(%rdx), %rcx
je 0x4106a
cmpq 0x10(%rdx), %rcx
je 0x41070
cmpq 0x18(%rdx), %rcx
jne 0x4107e
addq $0x18, %rax
jmp 0x41074
leaq 0x2e3828(%rip), %rax # 0x324890
jmp 0x41074
addq $0x8, %rax
jmp 0x41074
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_41080
movzx ecx, byte ptr [rbx+0B2h]
test rcx, rcx
jz short loc_4102F
mov rax, [rbx+60h]
imul rcx, 38h ; '8'
xor edx, edx
loc_4101E:
cmp qword ptr [rax+rdx+18h], 0
jnz short loc_4107E
add rdx, 38h ; '8'
cmp rcx, rdx
jnz short loc_4101E
loc_4102F:
mov rcx, [rbx+0C0h]
lea rdx, my_uca_package_utf8mb3
cmp rcx, [rdx]
jz short loc_41061
lea rax, my_uca_package_no_contractions_utf8mb3
cmp rcx, [rdx+8]
jz short loc_4106A
cmp rcx, [rdx+10h]
jz short loc_41070
cmp rcx, [rdx+18h]
jnz short loc_4107E
add rax, 18h
jmp short loc_41074
loc_41061:
lea rax, my_uca_package_no_contractions_utf8mb3
jmp short loc_41074
loc_4106A:
add rax, 8
jmp short loc_41074
loc_41070:
add rax, 10h
loc_41074:
mov rax, [rax]
mov [rbx+0C0h], rax
loc_4107E:
xor eax, eax
loc_41080:
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 0x0013f16c
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00141080
MOVZX ECX,byte ptr [RBX + 0xb2]
TEST RCX,RCX
JZ 0x0014102f
MOV RAX,qword ptr [RBX + 0x60]
IMUL RCX,RCX,0x38
XOR EDX,EDX
LAB_0014101e:
CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0
JNZ 0x0014107e
ADD RDX,0x38
CMP RCX,RDX
JNZ 0x0014101e
LAB_0014102f:
MOV RCX,qword ptr [RBX + 0xc0]
LEA RDX,[0x424870]
CMP RCX,qword ptr [RDX]
JZ 0x00141061
LEA RAX,[0x424890]
CMP RCX,qword ptr [RDX + 0x8]
JZ 0x0014106a
CMP RCX,qword ptr [RDX + 0x10]
JZ 0x00141070
CMP RCX,qword ptr [RDX + 0x18]
JNZ 0x0014107e
ADD RAX,0x18
JMP 0x00141074
LAB_00141061:
LEA RAX,[0x424890]
JMP 0x00141074
LAB_0014106a:
ADD RAX,0x8
JMP 0x00141074
LAB_00141070:
ADD RAX,0x10
LAB_00141074:
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xc0],RAX
LAB_0014107e:
XOR EAX,EAX
LAB_00141080:
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_00424878) {
ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb3_00424898;
}
else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb3_00424880) {
ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb3_004248a0;
}
else {
if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb3_00424888) {
return 0;
}
ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb3_004248a8;
}
*(int **)(param_1 + 0xc0) = *ppuVar3;
return 0;
}
|
|
11,508 |
uf_endspace
|
eloqsql/storage/myisam/mi_packrec.c
|
static void uf_endspace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill((uchar*) end-spaces,spaces,' ');
}
|
O0
|
c
|
uf_endspace:
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
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0xbcd0b
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 0x209ddd(%rip), %rcx # 0x2c6ae0
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0xbcd1e
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0xba450
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 0xbcd40
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0xbcd93
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0xbcd73
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %eax
movl %eax, %r8d
xorl %eax, %eax
subq %r8, %rax
addq %rax, %rcx
callq 0xbc3b0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2a0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
uf_endspace_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]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_BCD0B
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_BCD1E
loc_BCD0B:
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_BCD1E:
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_BCD40
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_BCD93
loc_BCD40:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_BCD73
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov eax, [rbp+var_24]
mov r8d, eax
xor eax, eax
sub rax, r8
add rcx, rax
call decode_bytes_0
loc_BCD73:
mov rdi, [rbp+var_20]
mov eax, [rbp+var_24]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
loc_BCD93:
add rsp, 30h
pop rbp
retn
|
long long uf_endspace_0(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4)
{
unsigned int v4; // eax
int v5; // ecx
long long result; // rax
unsigned int bits_0; // [rsp+8h] [rbp-28h]
if ( a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v4 = *a2;
v5 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v5;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v4 >> v5);
}
if ( &a3[bits_0] <= a4 )
{
if ( &a3[bits_0] != a4 )
decode_bytes_0(a1, (long long)a2, a3, &a4[-bits_0]);
return memset(&a4[-bits_0], 32LL, bits_0);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
|
uf_endspace:
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]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JC 0x001bcd0b
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,[0x3c6ae0]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001bcd1e
LAB_001bcd0b:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x1c]
CALL 0x001ba450
MOV dword ptr [RBP + -0x28],EAX
LAB_001bcd1e:
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 0x001bcd40
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x001bcd93
LAB_001bcd40:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001bcd73
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x24]
MOV R8D,EAX
XOR EAX,EAX
SUB RAX,R8
ADD RCX,RAX
CALL 0x001bc3b0
LAB_001bcd73:
MOV RDI,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x24]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2a0
LAB_001bcd93:
ADD RSP,0x30
POP RBP
RET
|
void uf_endspace(long param_1,uint *param_2,long param_3,ulong param_4)
{
uint uVar1;
uint local_30;
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 < param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
if (param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 - local_30);
}
memset((void *)(param_4 - local_30),0x20,(ulong)local_30);
}
return;
}
|
|
11,509 |
google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(google::protobuf::Reflection const*, google::protobuf::Message*, google::protobuf::Message*, google::protobuf::FieldDescriptor const*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
void SwapFieldHelper::SwapNonMessageNonStringField(
const Reflection* r, Message* lhs, Message* rhs,
const FieldDescriptor* field) {
switch (field->cpp_type()) {
#define SWAP_VALUES(CPPTYPE, TYPE) \
case FieldDescriptor::CPPTYPE_##CPPTYPE: \
std::swap(*r->MutableRaw<TYPE>(lhs, field), \
*r->MutableRaw<TYPE>(rhs, field)); \
break;
SWAP_VALUES(INT32, int32_t);
SWAP_VALUES(INT64, int64_t);
SWAP_VALUES(UINT32, uint32_t);
SWAP_VALUES(UINT64, uint64_t);
SWAP_VALUES(FLOAT, float);
SWAP_VALUES(DOUBLE, double);
SWAP_VALUES(BOOL, bool);
SWAP_VALUES(ENUM, int);
#undef SWAP_VALUES
default:
GOOGLE_LOG(FATAL) << "Unimplemented type: " << field->cpp_type();
}
}
|
O0
|
cpp
|
google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(google::protobuf::Reflection const*, google::protobuf::Message*, google::protobuf::Message*, google::protobuf::FieldDescriptor const*):
subq $0xd8, %rsp
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rcx, 0xb8(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x759d0
decl %eax
movl %eax, %ecx
movq %rcx, 0x68(%rsp)
subl $0x7, %eax
ja 0x10a9a3
movq 0x68(%rsp), %rax
leaq 0xe7772(%rip), %rcx # 0x1f1e84
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119530
movq %rax, 0x60(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119530
movq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0xd75c0
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119580
movq %rax, 0x58(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119580
movq 0x58(%rsp), %rdi
movq %rax, %rsi
callq 0xde020
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x1195d0
movq %rax, 0x50(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x1195d0
movq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0xd5790
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119660
movq %rax, 0x48(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119660
movq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x119620
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x1196f0
movq %rax, 0x40(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x1196f0
movq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x1196b0
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119780
movq %rax, 0x38(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119780
movq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x119740
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x1197d0
movq %rax, 0x30(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x1197d0
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0xda1f0
jmp 0x10aa24
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119530
movq %rax, 0x28(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x119530
movq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0xd75c0
jmp 0x10aa24
leaq 0xe76da(%rip), %rdx # 0x1f2084
leaq 0x80(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movl $0x3, %esi
movl $0x2c3, %ecx # imm = 0x2C3
callq 0x237e0
movq 0x18(%rsp), %rdi
leaq 0xe772b(%rip), %rsi # 0x1f20fd
callq 0x230a0
movq %rax, 0x20(%rsp)
jmp 0x10a9de
movq 0xb8(%rsp), %rdi
callq 0x759d0
movl %eax, 0x14(%rsp)
jmp 0x10a9f1
movl 0x14(%rsp), %esi
movq 0x20(%rsp), %rdi
callq 0x235b0
movq %rax, 0x8(%rsp)
jmp 0x10aa06
movq 0x8(%rsp), %rsi
leaq 0x73(%rsp), %rdi
callq 0x23250
jmp 0x10aa17
leaq 0x80(%rsp), %rdi
callq 0x23820
addq $0xd8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x23820
movq 0x78(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
|
_ZN6google8protobuf8internal15SwapFieldHelper28SwapNonMessageNonStringFieldEPKNS0_10ReflectionEPNS0_7MessageES7_PKNS0_15FieldDescriptorE:
sub rsp, 0D8h
mov [rsp+0D8h+var_8], rdi
mov [rsp+0D8h+var_10], rsi
mov [rsp+0D8h+var_18], rdx
mov [rsp+0D8h+var_20], rcx
mov rdi, [rsp+0D8h+var_20]; this
call _ZNK6google8protobuf15FieldDescriptor8cpp_typeEv; google::protobuf::FieldDescriptor::cpp_type(void)
dec eax; switch 8 cases
mov ecx, eax
mov [rsp+0D8h+var_70], rcx
sub eax, 7
ja def_10A719; jumptable 000000000010A719 default case
mov rax, [rsp+0D8h+var_70]
lea rcx, jpt_10A719
movsxd rax, ds:(jpt_10A719 - 1F1E84h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_10A71B:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 1
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIiEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<int>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_78], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIiEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<int>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_78]
mov rsi, rax
call _ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A76C:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 2
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIlEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<long>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_80], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIlEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<long>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_80]
mov rsi, rax
call _ZSt4swapIlENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A7BD:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 3
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIjEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<uint>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_88], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIjEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<uint>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_88]
mov rsi, rax
call _ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A80E:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 4
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawImEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<ulong>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_90], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawImEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<ulong>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_90]
mov rsi, rax
call _ZSt4swapImENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A85F:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 6
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIfEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<float>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_98], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIfEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<float>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_98]
mov rsi, rax
call _ZSt4swapIfENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A8B0:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 5
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIdEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<double>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_A0], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIdEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<double>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_A0]
mov rsi, rax
call _ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A901:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 7
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIbEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<bool>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_A8], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIbEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<bool>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_A8]
mov rsi, rax
call _ZSt4swapIbENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
loc_10A952:
mov rdi, [rsp+0D8h+var_8]; jumptable 000000000010A719 case 8
mov rsi, [rsp+0D8h+var_10]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIiEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<int>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov [rsp+0D8h+var_B0], rax
mov rdi, [rsp+0D8h+var_8]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_20]
call _ZNK6google8protobuf10Reflection10MutableRawIiEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<int>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+0D8h+var_B0]
mov rsi, rax
call _ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
jmp loc_10AA24
def_10A719:
lea rdx, aWorkspaceLlm4b_17; jumptable 000000000010A719 default case
lea rdi, [rsp+0D8h+var_58]
mov [rsp+0D8h+var_C0], rdi
mov esi, 3
mov ecx, 2C3h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+0D8h+var_C0]
lea rsi, aUnimplementedT; "Unimplemented type: "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0D8h+var_B8], rax
jmp short $+2
loc_10A9DE:
mov rdi, [rsp+0D8h+var_20]; this
call _ZNK6google8protobuf15FieldDescriptor8cpp_typeEv; google::protobuf::FieldDescriptor::cpp_type(void)
mov [rsp+0D8h+var_C4], eax
jmp short $+2
loc_10A9F1:
mov esi, [rsp+0D8h+var_C4]
mov rdi, [rsp+0D8h+var_B8]
call _ZN6google8protobuf8internal10LogMessagelsEi; google::protobuf::internal::LogMessage::operator<<(int)
mov [rsp+0D8h+var_D0], rax
jmp short $+2
loc_10AA06:
mov rsi, [rsp+0D8h+var_D0]
lea rdi, [rsp+0D8h+var_65]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_10AA17:
lea rdi, [rsp+0D8h+var_58]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_10AA24:
add rsp, 0D8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_78]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, [rsp+arg_70]
call __Unwind_Resume
|
void google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(
google::protobuf::internal::SwapFieldHelper *this,
const google::protobuf::Reflection *a2,
google::protobuf::Message *a3,
google::protobuf::Message *a4,
const google::protobuf::FieldDescriptor *a5)
{
int *v5; // rax
long long *v6; // rax
int *v7; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rax
_BYTE *v11; // rax
int *v12; // rax
google::protobuf::internal::LogMessage *v13; // [rsp+8h] [rbp-D0h]
int v14; // [rsp+14h] [rbp-C4h]
long long v15; // [rsp+20h] [rbp-B8h]
int *v16; // [rsp+28h] [rbp-B0h]
_BYTE *v17; // [rsp+30h] [rbp-A8h]
long long v18; // [rsp+38h] [rbp-A0h]
long long v19; // [rsp+40h] [rbp-98h]
long long v20; // [rsp+48h] [rbp-90h]
int *v21; // [rsp+50h] [rbp-88h]
long long *v22; // [rsp+58h] [rbp-80h]
int *v23; // [rsp+60h] [rbp-78h]
_BYTE v24[13]; // [rsp+73h] [rbp-65h] BYREF
_BYTE v25[56]; // [rsp+80h] [rbp-58h] BYREF
google::protobuf::FieldDescriptor *v26; // [rsp+B8h] [rbp-20h]
google::protobuf::Message *v27; // [rsp+C0h] [rbp-18h]
const google::protobuf::Reflection *v28; // [rsp+C8h] [rbp-10h]
google::protobuf::internal::SwapFieldHelper *v29; // [rsp+D0h] [rbp-8h]
v29 = this;
v28 = a2;
v27 = a3;
v26 = a4;
switch ( (unsigned int)google::protobuf::FieldDescriptor::cpp_type(a4) )
{
case 1u:
v23 = (int *)google::protobuf::Reflection::MutableRaw<int>(v29, v28, v26);
v5 = (int *)google::protobuf::Reflection::MutableRaw<int>(v29, v27, v26);
std::swap<int>(v23, v5);
break;
case 2u:
v22 = (long long *)google::protobuf::Reflection::MutableRaw<long>(v29, v28, v26);
v6 = (long long *)google::protobuf::Reflection::MutableRaw<long>(v29, v27, v26);
std::swap<long>(v22, v6);
break;
case 3u:
v21 = (int *)google::protobuf::Reflection::MutableRaw<unsigned int>(v29, v28, v26);
v7 = (int *)google::protobuf::Reflection::MutableRaw<unsigned int>(v29, v27, v26);
std::swap<unsigned int>(v21, v7);
break;
case 4u:
v20 = google::protobuf::Reflection::MutableRaw<unsigned long>(v29, v28, v26);
v8 = google::protobuf::Reflection::MutableRaw<unsigned long>(v29, v27, v26);
std::swap<unsigned long>(v20, v8);
break;
case 5u:
v18 = google::protobuf::Reflection::MutableRaw<double>(v29, v28, v26);
v10 = google::protobuf::Reflection::MutableRaw<double>(v29, v27, v26);
std::swap<double>(v18, v10);
break;
case 6u:
v19 = google::protobuf::Reflection::MutableRaw<float>(v29, v28, v26);
v9 = google::protobuf::Reflection::MutableRaw<float>(v29, v27, v26);
std::swap<float>(v19, v9);
break;
case 7u:
v17 = (_BYTE *)google::protobuf::Reflection::MutableRaw<bool>(v29, v28, v26);
v11 = (_BYTE *)google::protobuf::Reflection::MutableRaw<bool>(v29, v27, v26);
std::swap<bool>(v17, v11);
break;
case 8u:
v16 = (int *)google::protobuf::Reflection::MutableRaw<int>(v29, v28, v26);
v12 = (int *)google::protobuf::Reflection::MutableRaw<int>(v29, v27, v26);
std::swap<int>(v16, v12);
break;
default:
google::protobuf::internal::LogMessage::LogMessage(
(long long)v25,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_mess"
"age_reflection.cc",
707);
v15 = google::protobuf::internal::LogMessage::operator<<((long long)v25, (long long)"Unimplemented type: ");
v14 = google::protobuf::FieldDescriptor::cpp_type(v26);
v13 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v15, v14);
google::protobuf::internal::LogFinisher::operator=((long long)v24, v13);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v25);
break;
}
}
| |||
11,510 |
google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(google::protobuf::Reflection const*, google::protobuf::Message*, google::protobuf::Message*, google::protobuf::FieldDescriptor const*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
void SwapFieldHelper::SwapNonMessageNonStringField(
const Reflection* r, Message* lhs, Message* rhs,
const FieldDescriptor* field) {
switch (field->cpp_type()) {
#define SWAP_VALUES(CPPTYPE, TYPE) \
case FieldDescriptor::CPPTYPE_##CPPTYPE: \
std::swap(*r->MutableRaw<TYPE>(lhs, field), \
*r->MutableRaw<TYPE>(rhs, field)); \
break;
SWAP_VALUES(INT32, int32_t);
SWAP_VALUES(INT64, int64_t);
SWAP_VALUES(UINT32, uint32_t);
SWAP_VALUES(UINT64, uint64_t);
SWAP_VALUES(FLOAT, float);
SWAP_VALUES(DOUBLE, double);
SWAP_VALUES(BOOL, bool);
SWAP_VALUES(ENUM, int);
#undef SWAP_VALUES
default:
GOOGLE_LOG(FATAL) << "Unimplemented type: " << field->cpp_type();
}
}
|
O3
|
cpp
|
google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(google::protobuf::Reflection const*, google::protobuf::Message*, google::protobuf::Message*, google::protobuf::FieldDescriptor const*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq 0x18(%rcx), %rdi
testq %rdi, %rdi
je 0x64f72
leaq -0x2a33d(%rip), %rax # 0x3ac20
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rsp), %rdx
movq %r15, (%rdx)
callq 0x3fc96
movzbl 0x2(%r15), %eax
leaq 0x50ca2(%rip), %r13 # 0xb5c20
movl (%r13,%rax,4), %eax
decl %eax
cmpl $0x7, %eax
ja 0x650a7
leaq 0x5493b(%rip), %rcx # 0xb98d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
addq $0x8, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
movl (%r14,%r13), %ecx
movl (%rbx,%rax), %edx
movl %edx, (%r14,%r13)
movl %ecx, (%rbx,%rax)
jmp 0x65125
addq $0x8, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
movq (%r14,%r13), %rcx
movq (%rbx,%rax), %rdx
movq %rdx, (%r14,%r13)
movq %rcx, (%rbx,%rax)
jmp 0x65125
addq $0x8, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
movb (%r14,%r13), %cl
movb (%rbx,%rax), %dl
movb %dl, (%r14,%r13)
movb %cl, (%rbx,%rax)
jmp 0x65125
addq $0x8, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
movsd (%r14,%r13), %xmm0
movsd (%rbx,%rax), %xmm1
movsd %xmm1, (%r14,%r13)
movsd %xmm0, (%rbx,%rax)
jmp 0x65125
addq $0x8, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
movss (%r14,%r13), %xmm0
movss (%rbx,%rax), %xmm1
movss %xmm1, (%r14,%r13)
movss %xmm0, (%rbx,%rax)
jmp 0x65125
leaq 0x54a3a(%rip), %rdx # 0xb9ae8
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movl $0x3, %esi
movl $0x2c3, %ecx # imm = 0x2C3
callq 0x169ca
leaq 0x54a95(%rip), %rsi # 0xb9b61
movq %rbx, %rdi
callq 0x164c8
movq %rax, %rbx
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x650fc
leaq -0x2a4c7(%rip), %rax # 0x3ac20
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdx
movq %r15, (%rdx)
callq 0x3fc96
movzbl 0x2(%r15), %eax
movl (%r13,%rax,4), %esi
movq %rbx, %rdi
callq 0x167f0
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x18(%rsp), %rdi
callq 0x169e8
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x65135
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x169e8
movq %rbx, %rdi
callq 0xf570
|
_ZN6google8protobuf8internal15SwapFieldHelper28SwapNonMessageNonStringFieldEPKNS0_10ReflectionEPNS0_7MessageES7_PKNS0_15FieldDescriptorE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 50h
mov r15, rcx
mov rbx, rdx
mov r14, rsi
mov r12, rdi
mov rdi, [rcx+18h]
test rdi, rdi
jz short loc_64F72
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+78h+var_60]
mov [rsi], rax
lea rdx, [rsp+78h+var_70]
mov [rdx], r15
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_64F72:
movzx eax, byte ptr [r15+2]
lea r13, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
mov eax, [r13+rax*4+0]
dec eax; switch 8 cases
cmp eax, 7
ja def_64F9C; jumptable 0000000000064F9C default case
lea rcx, jpt_64F9C
movsxd rax, ds:(jpt_64F9C - 0B98D0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_64F9E:
add r12, 8; jumptable 0000000000064F9C cases 1,3,8
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov r13d, eax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
mov ecx, [r14+r13]
mov edx, [rbx+rax]
mov [r14+r13], edx
mov [rbx+rax], ecx
jmp loc_65125
loc_64FD0:
add r12, 8; jumptable 0000000000064F9C cases 2,4
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov r13d, eax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
mov rcx, [r14+r13]
mov rdx, [rbx+rax]
mov [r14+r13], rdx
mov [rbx+rax], rcx
jmp loc_65125
loc_65004:
add r12, 8; jumptable 0000000000064F9C case 7
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov r13d, eax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
mov cl, [r14+r13]
mov dl, [rbx+rax]
mov [r14+r13], dl
mov [rbx+rax], cl
jmp loc_65125
loc_65036:
add r12, 8; jumptable 0000000000064F9C case 5
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov r13d, eax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
movsd xmm0, qword ptr [r14+r13]
movsd xmm1, qword ptr [rbx+rax]
movsd qword ptr [r14+r13], xmm1
movsd qword ptr [rbx+rax], xmm0
jmp loc_65125
loc_65070:
add r12, 8; jumptable 0000000000064F9C case 6
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov r13d, eax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
movss xmm0, dword ptr [r14+r13]
movss xmm1, dword ptr [rbx+rax]
movss dword ptr [r14+r13], xmm1
movss dword ptr [rbx+rax], xmm0
jmp short loc_65125
def_64F9C:
lea rdx, aWorkspaceLlm4b_9; jumptable 0000000000064F9C default case
lea rbx, [rsp+78h+var_60]
mov rdi, rbx
mov esi, 3
mov ecx, 2C3h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aUnimplementedT; "Unimplemented type: "
mov rdi, rbx
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rbx, rax
mov rdi, [r15+18h]
test rdi, rdi
jz short loc_650FC
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+78h+var_70]
mov [rsi], rax
lea rdx, [rsp+78h+var_68]
mov [rdx], r15
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_650FC:
movzx eax, byte ptr [r15+2]
mov esi, [r13+rax*4+0]
mov rdi, rbx
call _ZN6google8protobuf8internal10LogMessagelsEi; google::protobuf::internal::LogMessage::operator<<(int)
lea rdi, [rsp+78h+var_70]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+78h+var_60]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_65125:
add rsp, 50h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_65135:
mov rbx, rax
lea rdi, [rsp+arg_10]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
|
void google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(
google::protobuf::internal::SwapFieldHelper *this,
const google::protobuf::Reflection *a2,
google::protobuf::Message *a3,
google::protobuf::Message *a4,
const google::protobuf::FieldDescriptor *a5,
long long a6)
{
long long v9; // rdi
google::protobuf::internal::ReflectionSchema *v10; // r12
long long v11; // r13
unsigned int v12; // eax
int v13; // ecx
google::protobuf::internal::ReflectionSchema *v14; // r12
long long v15; // r13
unsigned int v16; // eax
long long v17; // rcx
google::protobuf::internal::ReflectionSchema *v18; // r12
long long v19; // r13
unsigned int v20; // eax
char v21; // cl
google::protobuf::internal::ReflectionSchema *v22; // r12
long long FieldOffset; // r13
unsigned int v24; // eax
long long v25; // xmm0_8
google::protobuf::internal::ReflectionSchema *v26; // r12
long long v27; // r13
unsigned int v28; // eax
int v29; // xmm0_4
char *v30; // rdx
long long v31; // rcx
long long v32; // rbx
long long v33; // r8
long long v34; // r9
long long v35; // rdi
google::protobuf::internal::LogMessage *v36; // rax
long long ( *v37)(google::protobuf::FieldDescriptor *, const google::protobuf::FieldDescriptor *); // [rsp+8h] [rbp-70h] BYREF
google::protobuf::Message *v38; // [rsp+10h] [rbp-68h] BYREF
_QWORD v39[12]; // [rsp+18h] [rbp-60h] BYREF
v9 = *((_QWORD *)a4 + 3);
if ( v9 )
{
v39[0] = google::protobuf::FieldDescriptor::TypeOnceInit;
v37 = (long long ( *)(google::protobuf::FieldDescriptor *, const google::protobuf::FieldDescriptor *))a4;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v9,
(long long)v39,
(long long)&v37,
(long long)a4,
(long long)a5,
a6);
}
switch ( *((_BYTE *)a4 + 2) )
{
case 1:
v22 = (google::protobuf::internal::SwapFieldHelper *)((char *)this + 8);
FieldOffset = (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(v22, a4);
v24 = google::protobuf::internal::ReflectionSchema::GetFieldOffset(v22, a4);
v25 = *(_QWORD *)((char *)a2 + FieldOffset);
*(_QWORD *)((char *)a2 + FieldOffset) = *(_QWORD *)((char *)a3 + v24);
*(_QWORD *)((char *)a3 + v24) = v25;
break;
case 2:
v26 = (google::protobuf::internal::SwapFieldHelper *)((char *)this + 8);
v27 = (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(v26, a4);
v28 = google::protobuf::internal::ReflectionSchema::GetFieldOffset(v26, a4);
v29 = *(_DWORD *)((char *)a2 + v27);
*(_DWORD *)((char *)a2 + v27) = *(_DWORD *)((char *)a3 + v28);
*(_DWORD *)((char *)a3 + v28) = v29;
break;
case 3:
case 4:
case 6:
v14 = (google::protobuf::internal::SwapFieldHelper *)((char *)this + 8);
v15 = (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(v14, a4);
v16 = google::protobuf::internal::ReflectionSchema::GetFieldOffset(v14, a4);
v17 = *(_QWORD *)((char *)a2 + v15);
*(_QWORD *)((char *)a2 + v15) = *(_QWORD *)((char *)a3 + v16);
*(_QWORD *)((char *)a3 + v16) = v17;
break;
case 5:
case 7:
v10 = (google::protobuf::internal::SwapFieldHelper *)((char *)this + 8);
v11 = (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(v10, a4);
v12 = google::protobuf::internal::ReflectionSchema::GetFieldOffset(v10, a4);
v13 = *(_DWORD *)((char *)a2 + v11);
*(_DWORD *)((char *)a2 + v11) = *(_DWORD *)((char *)a3 + v12);
*(_DWORD *)((char *)a3 + v12) = v13;
break;
case 8:
v18 = (google::protobuf::internal::SwapFieldHelper *)((char *)this + 8);
v19 = (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(v18, a4);
v20 = google::protobuf::internal::ReflectionSchema::GetFieldOffset(v18, a4);
v21 = *((_BYTE *)a2 + v19);
*((_BYTE *)a2 + v19) = *((_BYTE *)a3 + v20);
*((_BYTE *)a3 + v20) = v21;
break;
default:
google::protobuf::internal::LogMessage::LogMessage(
(long long)v39,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_mess"
"age_reflection.cc",
707);
v32 = google::protobuf::internal::LogMessage::operator<<((long long)v39, (long long)"Unimplemented type: ");
v35 = *((_QWORD *)a4 + 3);
if ( v35 )
{
v37 = google::protobuf::FieldDescriptor::TypeOnceInit;
v38 = a4;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v35,
(long long)&v37,
(long long)&v38,
v31,
v33,
v34);
}
v36 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v32,
google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*((unsigned __int8 *)a4 + 2)],
v30);
google::protobuf::internal::LogFinisher::operator=((long long)&v37, v36);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v39);
break;
}
}
|
SwapNonMessageNonStringField:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x50
MOV R15,RCX
MOV RBX,RDX
MOV R14,RSI
MOV R12,RDI
MOV RDI,qword ptr [RCX + 0x18]
TEST RDI,RDI
JZ 0x00164f72
LEA RAX,[0x13ac20]
LEA RSI,[RSP + 0x18]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],R15
CALL 0x0013fc96
LAB_00164f72:
MOVZX EAX,byte ptr [R15 + 0x2]
LEA R13,[0x1b5c20]
MOV EAX,dword ptr [R13 + RAX*0x4]
DEC EAX
CMP EAX,0x7
JA 0x001650a7
LEA RCX,[0x1b98d0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
ADD R12,0x8
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV R13D,EAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
MOV ECX,dword ptr [R14 + R13*0x1]
MOV EDX,dword ptr [RBX + RAX*0x1]
MOV dword ptr [R14 + R13*0x1],EDX
MOV dword ptr [RBX + RAX*0x1],ECX
JMP 0x00165125
caseD_2:
ADD R12,0x8
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV R13D,EAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
MOV RCX,qword ptr [R14 + R13*0x1]
MOV RDX,qword ptr [RBX + RAX*0x1]
MOV qword ptr [R14 + R13*0x1],RDX
MOV qword ptr [RBX + RAX*0x1],RCX
JMP 0x00165125
caseD_7:
ADD R12,0x8
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV R13D,EAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
MOV CL,byte ptr [R14 + R13*0x1]
MOV DL,byte ptr [RBX + RAX*0x1]
MOV byte ptr [R14 + R13*0x1],DL
MOV byte ptr [RBX + RAX*0x1],CL
JMP 0x00165125
caseD_5:
ADD R12,0x8
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV R13D,EAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
MOVSD XMM0,qword ptr [R14 + R13*0x1]
MOVSD XMM1,qword ptr [RBX + RAX*0x1]
MOVSD qword ptr [R14 + R13*0x1],XMM1
MOVSD qword ptr [RBX + RAX*0x1],XMM0
JMP 0x00165125
caseD_6:
ADD R12,0x8
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV R13D,EAX
MOV RDI,R12
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
MOVSS XMM0,dword ptr [R14 + R13*0x1]
MOVSS XMM1,dword ptr [RBX + RAX*0x1]
MOVSS dword ptr [R14 + R13*0x1],XMM1
MOVSS dword ptr [RBX + RAX*0x1],XMM0
JMP 0x00165125
default:
LEA RDX,[0x1b9ae8]
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
MOV ESI,0x3
MOV ECX,0x2c3
CALL 0x001169ca
LAB_001650c5:
LEA RSI,[0x1b9b61]
MOV RDI,RBX
CALL 0x001164c8
MOV RBX,RAX
MOV RDI,qword ptr [R15 + 0x18]
TEST RDI,RDI
JZ 0x001650fc
LEA RAX,[0x13ac20]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x10]
MOV qword ptr [RDX],R15
CALL 0x0013fc96
LAB_001650fc:
MOVZX EAX,byte ptr [R15 + 0x2]
MOV ESI,dword ptr [R13 + RAX*0x4]
MOV RDI,RBX
CALL 0x001167f0
LAB_0016510e:
LEA RDI,[RSP + 0x8]
MOV RSI,RAX
CALL 0x001165a2
LAB_0016511b:
LEA RDI,[RSP + 0x18]
CALL 0x001169e8
LAB_00165125:
ADD RSP,0x50
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField(google::protobuf::Reflection
const*, google::protobuf::Message*, google::protobuf::Message*, google::protobuf::FieldDescriptor
const*) */
void google::protobuf::internal::SwapFieldHelper::SwapNonMessageNonStringField
(Reflection *param_1,Message *param_2,Message *param_3,FieldDescriptor *param_4)
{
int8 uVar1;
Message MVar2;
int4 uVar3;
uint uVar4;
uint uVar5;
LogMessage *pLVar6;
FieldDescriptor *local_70;
FieldDescriptor *local_68;
code *local_60 [7];
if (*(once_flag **)(param_4 + 0x18) != (once_flag *)0x0) {
local_60[0] = FieldDescriptor::TypeOnceInit;
local_70 = param_4;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(param_4 + 0x18),(_func_void_FieldDescriptor_ptr *)local_60,&local_70)
;
}
switch(*(int4 *)(FieldDescriptor::kTypeToCppTypeMap + (ulong)(byte)param_4[2] * 4)) {
case 1:
case 3:
case 8:
uVar4 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar5 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar3 = *(int4 *)(param_2 + uVar4);
*(int4 *)(param_2 + uVar4) = *(int4 *)(param_3 + uVar5);
*(int4 *)(param_3 + uVar5) = uVar3;
break;
case 2:
case 4:
uVar4 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar5 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar1 = *(int8 *)(param_2 + uVar4);
*(int8 *)(param_2 + uVar4) = *(int8 *)(param_3 + uVar5);
*(int8 *)(param_3 + uVar5) = uVar1;
break;
case 5:
uVar4 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar5 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar1 = *(int8 *)(param_2 + uVar4);
*(int8 *)(param_2 + uVar4) = *(int8 *)(param_3 + uVar5);
*(int8 *)(param_3 + uVar5) = uVar1;
break;
case 6:
uVar4 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar5 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar3 = *(int4 *)(param_2 + uVar4);
*(int4 *)(param_2 + uVar4) = *(int4 *)(param_3 + uVar5);
*(int4 *)(param_3 + uVar5) = uVar3;
break;
case 7:
uVar4 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
uVar5 = ReflectionSchema::GetFieldOffset((ReflectionSchema *)(param_1 + 8),param_4);
MVar2 = param_2[uVar4];
param_2[uVar4] = param_3[uVar5];
param_3[uVar5] = MVar2;
break;
default:
LogMessage::LogMessage
((LogMessage *)local_60,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc"
,0x2c3);
/* try { // try from 001650c5 to 0016510d has its CatchHandler @ 00165135 */
pLVar6 = (LogMessage *)LogMessage::operator<<((LogMessage *)local_60,"Unimplemented type: ");
if (*(once_flag **)(param_4 + 0x18) != (once_flag *)0x0) {
local_70 = (FieldDescriptor *)FieldDescriptor::TypeOnceInit;
local_68 = param_4;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(param_4 + 0x18),(_func_void_FieldDescriptor_ptr *)&local_70,
&local_68);
}
pLVar6 = (LogMessage *)
LogMessage::operator<<
(pLVar6,*(int *)(FieldDescriptor::kTypeToCppTypeMap +
(ulong)(byte)param_4[2] * 4));
/* try { // try from 0016510e to 0016511a has its CatchHandler @ 00165133 */
LogFinisher::operator=((LogFinisher *)&local_70,pLVar6);
LogMessage::~LogMessage((LogMessage *)local_60);
}
return;
}
|
|
11,511 |
add_compiled_extra_collation
|
eloqsql/mysys/charset.c
|
void add_compiled_extra_collation(struct charset_info_st *cs)
{
DBUG_ASSERT(cs->number < array_elements(all_charsets));
all_charsets[cs->number]= cs;
cs->state|= MY_CS_AVAILABLE;
if ((my_hash_insert(&charset_name_hash, (uchar*) cs)))
{
CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash,
(uchar*) cs->cs_name.str,
cs->cs_name.length);
cs->cs_name= org->cs_name;
}
}
|
O0
|
c
|
add_compiled_extra_collation:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0xdb7ce
movq -0x8(%rbp), %rdx
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
leaq 0xb9eedf(%rip), %rax # 0xc7a6c0
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x200, %ecx # imm = 0x200
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rsi
leaq 0xba2ec0(%rip), %rdi # 0xc7e6c0
callq 0xde460
cmpb $0x0, %al
je 0xdb841
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0xba2ea0(%rip), %rdi # 0xc7e6c0
callq 0xde070
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
add_compiled_extra_collation:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_DB7CE:
mov rdx, [rbp+var_8]
mov rax, [rbp+var_8]
mov eax, [rax]
mov ecx, eax
lea rax, all_charsets
mov [rax+rcx*8], rdx
mov rax, [rbp+var_8]
mov ecx, [rax+0Ch]
or ecx, 200h
mov [rax+0Ch], ecx
mov rsi, [rbp+var_8]
lea rdi, charset_name_hash
call my_hash_insert
cmp al, 0
jz short loc_DB841
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
mov rax, [rbp+var_8]
mov rdx, [rax+18h]
lea rdi, charset_name_hash
call my_hash_search
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
mov rdx, [rcx+10h]
mov [rax+10h], rdx
mov rcx, [rcx+18h]
mov [rax+18h], rcx
loc_DB841:
add rsp, 10h
pop rbp
retn
|
long long add_compiled_extra_collation(unsigned int *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-10h]
all_charsets[*a1] = a1;
a1[3] |= 0x200u;
result = my_hash_insert(&charset_name_hash, a1);
if ( (_BYTE)result )
{
v2 = my_hash_search(&charset_name_hash, *((_QWORD *)a1 + 2), *((_QWORD *)a1 + 3));
result = (long long)a1;
*((_QWORD *)a1 + 2) = *(_QWORD *)(v2 + 16);
*((_QWORD *)a1 + 3) = *(_QWORD *)(v2 + 24);
}
return result;
}
|
add_compiled_extra_collation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001db7ce
LAB_001db7ce:
MOV RDX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
LEA RAX,[0xd7a6c0]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,0x200
MOV dword ptr [RAX + 0xc],ECX
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0xd7e6c0]
CALL 0x001de460
CMP AL,0x0
JZ 0x001db841
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x18]
LEA RDI,[0xd7e6c0]
CALL 0x001de070
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_001db841:
ADD RSP,0x10
POP RBP
RET
|
void add_compiled_extra_collation(uint *param_1)
{
char cVar1;
long lVar2;
(&all_charsets)[*param_1] = param_1;
param_1[3] = param_1[3] | 0x200;
cVar1 = my_hash_insert(charset_name_hash,param_1);
if (cVar1 != '\0') {
lVar2 = my_hash_search(charset_name_hash,*(int8 *)(param_1 + 4),
*(int8 *)(param_1 + 6));
*(int8 *)(param_1 + 4) = *(int8 *)(lVar2 + 0x10);
*(int8 *)(param_1 + 6) = *(int8 *)(lVar2 + 0x18);
}
return;
}
|
|
11,512 |
copyFromParent
|
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_derivative.c
|
static void copyFromParent(const mjModel* m, mjData* d, mjtNum* mat, int n) {
// return if this is world or parent is world
if (n == 0 || m->body_weldid[m->body_parentid[n]] == 0) {
return;
}
// count dofs in ancestors
int ndof = 0;
int np = m->body_weldid[m->body_parentid[n]];
while (np > 0) {
// add self dofs
ndof += m->body_dofnum[np];
// advance to parent
np = m->body_weldid[m->body_parentid[np]];
}
// copy: guaranteed to be at beginning of sparse array, due to sorting
mju_copy(mat + 6*d->B_rowadr[n], mat + 6*d->B_rowadr[m->body_parentid[n]], 6*ndof);
}
|
O0
|
c
|
copyFromParent:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x8a275
movq 0x20(%rsp), %rax
movq 0x540(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x530(%rcx), %rcx
movslq 0xc(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x8a27a
jmp 0x8a357
movl $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x540(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x530(%rcx), %rcx
movslq 0xc(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jle 0x8a2f7
movq 0x20(%rsp), %rax
movq 0x560(%rax), %rax
movslq 0x4(%rsp), %rcx
movl (%rax,%rcx,4), %eax
addl 0x8(%rsp), %eax
movl %eax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x540(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x530(%rcx), %rcx
movslq 0x4(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x4(%rsp)
jmp 0x8a2aa
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x279f0(%rax), %rax
movslq 0xc(%rsp), %rcx
imull $0x6, (%rax,%rcx,4), %eax
cltq
shlq $0x3, %rax
addq %rax, %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
movq 0x279f0(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x530(%rcx), %rcx
movslq 0xc(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
imull $0x6, (%rax,%rcx,4), %eax
cltq
shlq $0x3, %rax
addq %rax, %rsi
imull $0x6, 0x8(%rsp), %edx
callq 0x492d0
addq $0x28, %rsp
retq
nopl (%rax)
|
copyFromParent:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
mov [rsp+28h+var_1C], ecx
cmp [rsp+28h+var_1C], 0
jz short loc_8A275
mov rax, [rsp+28h+var_8]
mov rax, [rax+540h]
mov rcx, [rsp+28h+var_8]
mov rcx, [rcx+530h]
movsxd rdx, [rsp+28h+var_1C]
movsxd rcx, dword ptr [rcx+rdx*4]
cmp dword ptr [rax+rcx*4], 0
jnz short loc_8A27A
loc_8A275:
jmp loc_8A357
loc_8A27A:
mov [rsp+28h+var_20], 0
mov rax, [rsp+28h+var_8]
mov rax, [rax+540h]
mov rcx, [rsp+28h+var_8]
mov rcx, [rcx+530h]
movsxd rdx, [rsp+28h+var_1C]
movsxd rcx, dword ptr [rcx+rdx*4]
mov eax, [rax+rcx*4]
mov [rsp+28h+var_24], eax
loc_8A2AA:
cmp [rsp+28h+var_24], 0
jle short loc_8A2F7
mov rax, [rsp+28h+var_8]
mov rax, [rax+560h]
movsxd rcx, [rsp+28h+var_24]
mov eax, [rax+rcx*4]
add eax, [rsp+28h+var_20]
mov [rsp+28h+var_20], eax
mov rax, [rsp+28h+var_8]
mov rax, [rax+540h]
mov rcx, [rsp+28h+var_8]
mov rcx, [rcx+530h]
movsxd rdx, [rsp+28h+var_24]
movsxd rcx, dword ptr [rcx+rdx*4]
mov eax, [rax+rcx*4]
mov [rsp+28h+var_24], eax
jmp short loc_8A2AA
loc_8A2F7:
mov rdi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_10]
mov rax, [rax+279F0h]
movsxd rcx, [rsp+28h+var_1C]
imul eax, [rax+rcx*4], 6
cdqe
shl rax, 3
add rdi, rax
mov rsi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_10]
mov rax, [rax+279F0h]
mov rcx, [rsp+28h+var_8]
mov rcx, [rcx+530h]
movsxd rdx, [rsp+28h+var_1C]
movsxd rcx, dword ptr [rcx+rdx*4]
imul eax, [rax+rcx*4], 6
cdqe
shl rax, 3
add rsi, rax
imul edx, [rsp+28h+var_20], 6
call _mju_copy
loc_8A357:
add rsp, 28h
retn
|
long long copyFromParent(_QWORD *a1, long long a2, long long a3, int a4)
{
long long result; // rax
int i; // [rsp+4h] [rbp-24h]
int v6; // [rsp+8h] [rbp-20h]
if ( a4 )
{
result = a1[168];
if ( *(_DWORD *)(result + 4LL * *(int *)(a1[166] + 4LL * a4)) )
{
v6 = 0;
for ( i = *(_DWORD *)(a1[168] + 4LL * *(int *)(a1[166] + 4LL * a4));
i > 0;
i = *(_DWORD *)(a1[168] + 4LL * *(int *)(a1[166] + 4LL * i)) )
{
v6 += *(_DWORD *)(a1[172] + 4LL * i);
}
return mju_copy(
48LL * *(_DWORD *)(*(_QWORD *)(a2 + 162288) + 4LL * a4) + a3,
48LL * *(_DWORD *)(*(_QWORD *)(a2 + 162288) + 4LL * *(int *)(a1[166] + 4LL * a4)) + a3,
(unsigned int)(6 * v6));
}
}
return result;
}
|
copyFromParent:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV dword ptr [RSP + 0xc],ECX
CMP dword ptr [RSP + 0xc],0x0
JZ 0x0018a275
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x540]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x530]
MOVSXD RDX,dword ptr [RSP + 0xc]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
CMP dword ptr [RAX + RCX*0x4],0x0
JNZ 0x0018a27a
LAB_0018a275:
JMP 0x0018a357
LAB_0018a27a:
MOV dword ptr [RSP + 0x8],0x0
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x540]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x530]
MOVSXD RDX,dword ptr [RSP + 0xc]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x4],EAX
LAB_0018a2aa:
CMP dword ptr [RSP + 0x4],0x0
JLE 0x0018a2f7
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x560]
MOVSXD RCX,dword ptr [RSP + 0x4]
MOV EAX,dword ptr [RAX + RCX*0x4]
ADD EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x540]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x530]
MOVSXD RDX,dword ptr [RSP + 0x4]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x4],EAX
JMP 0x0018a2aa
LAB_0018a2f7:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x279f0]
MOVSXD RCX,dword ptr [RSP + 0xc]
IMUL EAX,dword ptr [RAX + RCX*0x4],0x6
CDQE
SHL RAX,0x3
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x279f0]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x530]
MOVSXD RDX,dword ptr [RSP + 0xc]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
IMUL EAX,dword ptr [RAX + RCX*0x4],0x6
CDQE
SHL RAX,0x3
ADD RSI,RAX
IMUL EDX,dword ptr [RSP + 0x8],0x6
CALL 0x001492d0
LAB_0018a357:
ADD RSP,0x28
RET
|
void copyFromParent(long param_1,long param_2,long param_3,int param_4)
{
int local_24;
int local_20;
if ((param_4 != 0) &&
(*(int *)(*(long *)(param_1 + 0x540) +
(long)*(int *)(*(long *)(param_1 + 0x530) + (long)param_4 * 4) * 4) != 0)) {
local_20 = 0;
for (local_24 = *(int *)(*(long *)(param_1 + 0x540) +
(long)*(int *)(*(long *)(param_1 + 0x530) + (long)param_4 * 4) * 4);
0 < local_24;
local_24 = *(int *)(*(long *)(param_1 + 0x540) +
(long)*(int *)(*(long *)(param_1 + 0x530) + (long)local_24 * 4) * 4)) {
local_20 = *(int *)(*(long *)(param_1 + 0x560) + (long)local_24 * 4) + local_20;
}
mju_copy(param_3 + (long)(*(int *)(*(long *)(param_2 + 0x279f0) + (long)param_4 * 4) * 6) * 8,
param_3 + (long)(*(int *)(*(long *)(param_2 + 0x279f0) +
(long)*(int *)(*(long *)(param_1 + 0x530) + (long)param_4 * 4)
* 4) * 6) * 8,local_20 * 6);
}
return;
}
|
|
11,513 |
my_vfprintf
|
eloqsql/strings/my_vsnprintf.c
|
int my_vfprintf(FILE *stream, const char* format, va_list args)
{
char cvtbuf[1024];
int alloc= 0;
char *p= cvtbuf;
size_t cur_len= sizeof(cvtbuf), actual;
int ret;
/*
We do not know how much buffer we need.
So start with a reasonably-sized stack-allocated buffer, and increase
it exponentially until it is big enough.
*/
for (;;)
{
size_t new_len;
actual= my_vsnprintf(p, cur_len, format, args);
if (actual < cur_len - 1)
break;
/*
Not enough space (or just enough with nothing to spare - but we cannot
distinguish this case from the return value). Allocate a bigger buffer
and try again.
*/
if (alloc)
my_free(p);
else
alloc= 1;
new_len= cur_len*2;
if (new_len < cur_len)
return 0; /* Overflow */
cur_len= new_len;
p= my_malloc(PSI_INSTRUMENT_ME, cur_len, MYF(MY_FAE));
if (!p)
return 0;
}
ret= (int) actual;
if (fputs(p, stream) < 0)
ret= -1;
if (alloc)
my_free(p);
return ret;
}
|
O3
|
c
|
my_vfprintf:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp # imm = 0x418
movq %rdx, -0x440(%rbp)
movq %rsi, %r12
movq %rdi, -0x438(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movb $0x1, %bl
movl $0x400, %r13d # imm = 0x400
leaq -0x430(%rbp), %r14
leaq 0x2d47c8(%rip), %rdi # 0x3abf20
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq -0x440(%rbp), %r8
callq 0xd64a8
movq %rax, %r15
leaq -0x1(%r13), %rax
cmpq %rax, %r15
jb 0xd77a9
testb $0x1, %bl
jne 0xd7786
movq %r14, %rdi
callq 0xa08ce
testq %r13, %r13
js 0xd77d6
addq %r13, %r13
xorl %ebx, %ebx
movl $0x8, %edx
xorl %edi, %edi
movq %r13, %rsi
callq 0xa06a1
movq %rax, %r14
testq %rax, %rax
jne 0xd7751
jmp 0xd77d8
movq %r14, %rdi
movq -0x438(%rbp), %rsi
callq 0x292d0
testl %eax, %eax
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmovnsl %r15d, %r12d
testb $0x1, %bl
jne 0xd77d1
movq %r14, %rdi
callq 0xa08ce
movl %r12d, %ebx
jmp 0xd77d8
xorl %ebx, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xd77fb
movl %ebx, %eax
addq $0x418, %rsp # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29260
|
my_vfprintf:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 418h
mov [rbp+var_440], rdx
mov r12, rsi
mov [rbp+var_438], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov bl, 1
mov r13d, 400h
lea r14, [rbp+var_430]
loc_D7751:
lea rdi, my_charset_latin1
mov rsi, r14
mov rdx, r13
mov rcx, r12
mov r8, [rbp+var_440]
call my_vsnprintf_ex
mov r15, rax
lea rax, [r13-1]
cmp r15, rax
jb short loc_D77A9
test bl, 1
jnz short loc_D7786
mov rdi, r14
call my_free
loc_D7786:
test r13, r13
js short loc_D77D6
add r13, r13
xor ebx, ebx
mov edx, 8
xor edi, edi
mov rsi, r13
call my_malloc
mov r14, rax
test rax, rax
jnz short loc_D7751
jmp short loc_D77D8
loc_D77A9:
mov rdi, r14
mov rsi, [rbp+var_438]
call _fputs
test eax, eax
mov r12d, 0FFFFFFFFh
cmovns r12d, r15d
test bl, 1
jnz short loc_D77D1
mov rdi, r14
call my_free
loc_D77D1:
mov ebx, r12d
jmp short loc_D77D8
loc_D77D6:
xor ebx, ebx
loc_D77D8:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_D77FB
mov eax, ebx
add rsp, 418h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_D77FB:
call ___stack_chk_fail
|
long long my_vfprintf(long long a1, unsigned __int8 *a2, unsigned int *a3)
{
unsigned int v3; // ebx
long long v4; // r13
char *v5; // r14
unsigned long long v6; // r15
unsigned int v7; // r12d
char v10; // [rsp+10h] [rbp-430h] BYREF
unsigned long long v11; // [rsp+410h] [rbp-30h]
v11 = __readfsqword(0x28u);
LOBYTE(v3) = 1;
v4 = 1024LL;
v5 = &v10;
while ( 1 )
{
v6 = my_vsnprintf_ex((long long)my_charset_latin1, (unsigned long long)v5, v4, a2, a3);
if ( v6 < v4 - 1 )
break;
if ( (v3 & 1) == 0 )
my_free((long long)v5);
if ( v4 < 0 )
return 0;
v4 *= 2LL;
v3 = 0;
v5 = (char *)my_malloc(0, v4, 8);
if ( !v5 )
return v3;
}
v7 = -1;
if ( (int)fputs(v5, a1) >= 0 )
v7 = v6;
if ( (v3 & 1) == 0 )
my_free((long long)v5);
return v7;
}
|
my_vfprintf:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x418
MOV qword ptr [RBP + -0x440],RDX
MOV R12,RSI
MOV qword ptr [RBP + -0x438],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV BL,0x1
MOV R13D,0x400
LEA R14,[RBP + -0x430]
LAB_001d7751:
LEA RDI,[0x4abf20]
MOV RSI,R14
MOV RDX,R13
MOV RCX,R12
MOV R8,qword ptr [RBP + -0x440]
CALL 0x001d64a8
MOV R15,RAX
LEA RAX,[R13 + -0x1]
CMP R15,RAX
JC 0x001d77a9
TEST BL,0x1
JNZ 0x001d7786
MOV RDI,R14
CALL 0x001a08ce
LAB_001d7786:
TEST R13,R13
JS 0x001d77d6
ADD R13,R13
XOR EBX,EBX
MOV EDX,0x8
XOR EDI,EDI
MOV RSI,R13
CALL 0x001a06a1
MOV R14,RAX
TEST RAX,RAX
JNZ 0x001d7751
JMP 0x001d77d8
LAB_001d77a9:
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x438]
CALL 0x001292d0
TEST EAX,EAX
MOV R12D,0xffffffff
CMOVNS R12D,R15D
TEST BL,0x1
JNZ 0x001d77d1
MOV RDI,R14
CALL 0x001a08ce
LAB_001d77d1:
MOV EBX,R12D
JMP 0x001d77d8
LAB_001d77d6:
XOR EBX,EBX
LAB_001d77d8:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001d77fb
MOV EAX,EBX
ADD RSP,0x418
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001d77fb:
CALL 0x00129260
|
ulong my_vfprintf(FILE *param_1,int8 param_2,int8 param_3)
{
int iVar1;
ulong uVar2;
char *__s;
ulong uVar3;
ulong uVar4;
long lVar5;
long in_FS_OFFSET;
char local_438 [1024];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar5 = 0x400;
__s = local_438;
uVar3 = 1;
do {
uVar2 = my_vsnprintf_ex(&my_charset_latin1,__s,lVar5,param_2,param_3);
if (uVar2 < lVar5 - 1U) {
iVar1 = fputs(__s,param_1);
uVar4 = 0xffffffff;
if (-1 < iVar1) {
uVar4 = uVar2 & 0xffffffff;
}
if (uVar3 == 0) {
my_free(__s);
}
break;
}
if ((char)uVar3 == '\0') {
my_free(__s);
}
if (lVar5 < 0) {
uVar4 = 0;
break;
}
lVar5 = lVar5 * 2;
uVar4 = 0;
__s = (char *)my_malloc(0,lVar5,8);
uVar3 = uVar4;
} while (__s != (char *)0x0);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar4;
}
|
|
11,514 |
my_register_filename
|
eloqsql/mysys/my_open.c
|
File my_register_filename(File fd, const char *FileName, enum file_type
type_of_file, uint error_message_number, myf MyFlags)
{
DBUG_ENTER("my_register_filename");
if ((int) fd >= MY_FILE_MIN)
{
my_atomic_add32_explicit(&my_file_opened, 1, MY_MEMORY_ORDER_RELAXED);
if ((uint) fd >= my_file_limit || (MyFlags & MY_NO_REGISTER))
DBUG_RETURN(fd);
my_file_info[fd].name = my_strdup(key_memory_my_file_info, FileName, MyFlags);
statistic_increment(my_file_total_opened,&THR_LOCK_open);
my_file_info[fd].type = type_of_file;
DBUG_PRINT("exit",("fd: %d",fd));
DBUG_RETURN(fd);
}
my_errno= errno;
DBUG_PRINT("error",("Got error %d on open", my_errno));
if (MyFlags & (MY_FFNF | MY_FAE | MY_WME))
{
if (my_errno == EMFILE)
error_message_number= EE_OUT_OF_FILERESOURCES;
my_error(error_message_number,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
FileName, my_errno);
}
DBUG_RETURN(-1);
}
|
O0
|
c
|
my_register_filename:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
cmpl $0x0, -0x8(%rbp)
jl 0x2f736
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
leaq 0x355800(%rip), %rcx # 0x384e94
lock
xaddl %eax, (%rcx)
movl %eax, -0x28(%rbp)
movl -0x8(%rbp), %eax
leaq 0x19dd5b(%rip), %rcx # 0x1cd400
cmpl (%rcx), %eax
jae 0x2f6b9
movq -0x20(%rbp), %rax
andq $0x2004, %rax # imm = 0x2004
cmpq $0x0, %rax
je 0x2f6c6
jmp 0x2f6bb
movl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f7ad
leaq 0x355cf7(%rip), %rax # 0x3853c4
movl (%rax), %edi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x2f450
movq %rax, %rcx
leaq 0x19dd22(%rip), %rax # 0x1cd408
movq (%rax), %rax
movslq -0x8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
leaq 0x355782(%rip), %rax # 0x384e80
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0x355774(%rip), %rax # 0x384e80
movq %rcx, (%rax)
movl -0x14(%rbp), %ecx
leaq 0x19dcef(%rip), %rax # 0x1cd408
movq (%rax), %rax
movslq -0x8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0x2f72c
jmp 0x2f72e
movl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f7ad
callq 0x24050
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
callq 0x26720
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x2f74c
movq -0x20(%rbp), %rax
andq $0x19, %rax
cmpq $0x0, %rax
je 0x2f7a4
callq 0x26720
cmpl $0x18, (%rax)
jne 0x2f76b
movl $0x17, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x26720
movl -0x44(%rbp), %edi
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl (%rax), %ecx
movb $0x0, %al
callq 0x2e060
jmp 0x2f7a6
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_register_filename:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
mov [rbp+var_20], r8
cmp [rbp+var_8], 0
jl loc_2F736
mov [rbp+var_24], 1
mov eax, [rbp+var_24]
lea rcx, my_file_opened
lock xadd [rcx], eax
mov [rbp+var_28], eax
mov eax, [rbp+var_8]
lea rcx, my_file_limit
cmp eax, [rcx]
jnb short loc_2F6B9
mov rax, [rbp+var_20]
and rax, 2004h
cmp rax, 0
jz short loc_2F6C6
loc_2F6B9:
jmp short $+2
loc_2F6BB:
mov eax, [rbp+var_8]
mov [rbp+var_4], eax
jmp loc_2F7AD
loc_2F6C6:
lea rax, key_memory_my_file_info
mov edi, [rax]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_20]
call my_strdup
mov rcx, rax
lea rax, my_file_info
mov rax, [rax]
movsxd rdx, [rbp+var_8]
shl rdx, 4
add rax, rdx
mov [rax], rcx
lea rax, my_file_total_opened
mov rcx, [rax]
add rcx, 1
lea rax, my_file_total_opened
mov [rax], rcx
mov ecx, [rbp+var_14]
lea rax, my_file_info
mov rax, [rax]
movsxd rdx, [rbp+var_8]
shl rdx, 4
add rax, rdx
mov [rax+8], ecx
jmp short $+2
loc_2F72C:
jmp short $+2
loc_2F72E:
mov eax, [rbp+var_8]
mov [rbp+var_4], eax
jmp short loc_2F7AD
loc_2F736:
call ___errno_location
mov eax, [rax]
mov [rbp+var_2C], eax
call _my_thread_var
mov ecx, [rbp+var_2C]
mov [rax], ecx
jmp short $+2
loc_2F74C:
mov rax, [rbp+var_20]
and rax, 19h
cmp rax, 0
jz short loc_2F7A4
call _my_thread_var
cmp dword ptr [rax], 18h
jnz short loc_2F76B
mov [rbp+var_18], 17h
loc_2F76B:
mov eax, [rbp+var_18]
mov [rbp+var_44], eax
mov rax, [rbp+var_20]
and rax, 440h
or rax, 4
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
call _my_thread_var
mov edi, [rbp+var_44]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
mov ecx, [rax]
mov al, 0
call my_error
loc_2F7A4:
jmp short $+2
loc_2F7A6:
mov [rbp+var_4], 0FFFFFFFFh
loc_2F7AD:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
long long my_register_filename(unsigned int a1, long long a2, int a3, unsigned int a4, __int16 a5)
{
unsigned int *v5; // rax
int v7; // [rsp+24h] [rbp-2Ch]
if ( (a1 & 0x80000000) != 0 )
{
v7 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var() = v7;
if ( (a5 & 0x19) != 0 )
{
if ( *(_DWORD *)my_thread_var() == 24 )
a4 = 23;
v5 = (unsigned int *)my_thread_var();
my_error(a4, a5 & 0x440 | 4LL, a2, *v5);
}
return (unsigned int)-1;
}
else
{
_InterlockedExchangeAdd(my_file_opened, 1u);
if ( a1 >= my_file_limit || (a5 & 0x2004) != 0 )
{
return a1;
}
else
{
*((_QWORD *)my_file_info + 2 * (int)a1) = my_strdup(key_memory_my_file_info, a2, a5);
++my_file_total_opened;
*((_DWORD *)my_file_info + 4 * (int)a1 + 2) = a3;
return a1;
}
}
}
|
my_register_filename:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
MOV qword ptr [RBP + -0x20],R8
CMP dword ptr [RBP + -0x8],0x0
JL 0x0012f736
MOV dword ptr [RBP + -0x24],0x1
MOV EAX,dword ptr [RBP + -0x24]
LEA RCX,[0x484e94]
XADD.LOCK dword ptr [RCX],EAX
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x8]
LEA RCX,[0x2cd400]
CMP EAX,dword ptr [RCX]
JNC 0x0012f6b9
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0x2004
CMP RAX,0x0
JZ 0x0012f6c6
LAB_0012f6b9:
JMP 0x0012f6bb
LAB_0012f6bb:
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0012f7ad
LAB_0012f6c6:
LEA RAX,[0x4853c4]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0012f450
MOV RCX,RAX
LEA RAX,[0x2cd408]
MOV RAX,qword ptr [RAX]
MOVSXD RDX,dword ptr [RBP + -0x8]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX],RCX
LEA RAX,[0x484e80]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
LEA RAX,[0x484e80]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x14]
LEA RAX,[0x2cd408]
MOV RAX,qword ptr [RAX]
MOVSXD RDX,dword ptr [RBP + -0x8]
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX + 0x8],ECX
JMP 0x0012f72c
LAB_0012f72c:
JMP 0x0012f72e
LAB_0012f72e:
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0012f7ad
LAB_0012f736:
CALL 0x00124050
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CALL 0x00126720
MOV ECX,dword ptr [RBP + -0x2c]
MOV dword ptr [RAX],ECX
JMP 0x0012f74c
LAB_0012f74c:
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0x19
CMP RAX,0x0
JZ 0x0012f7a4
CALL 0x00126720
CMP dword ptr [RAX],0x18
JNZ 0x0012f76b
MOV dword ptr [RBP + -0x18],0x17
LAB_0012f76b:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
CALL 0x00126720
MOV EDI,dword ptr [RBP + -0x44]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX]
MOV AL,0x0
CALL 0x0012e060
LAB_0012f7a4:
JMP 0x0012f7a6
LAB_0012f7a6:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_0012f7ad:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
uint my_register_filename
(uint param_1,int8 param_2,int4 param_3,int4 param_4,ulong param_5)
{
int iVar1;
int8 uVar2;
int *piVar3;
int4 *puVar4;
int4 local_20;
uint local_c;
if ((int)param_1 < 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_5 & 0x19) != 0) {
piVar3 = (int *)_my_thread_var();
local_20 = param_4;
if (*piVar3 == 0x18) {
local_20 = 0x17;
}
puVar4 = (int4 *)_my_thread_var();
my_error(local_20,param_5 & 0x440 | 4,param_2,*puVar4);
}
local_c = 0xffffffff;
}
else {
LOCK();
my_file_opened = my_file_opened + 1;
UNLOCK();
local_c = param_1;
if ((param_1 < my_file_limit) && ((param_5 & 0x2004) == 0)) {
uVar2 = my_strdup(key_memory_my_file_info,param_2,param_5);
*(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = uVar2;
my_file_total_opened = my_file_total_opened + 1;
*(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = param_3;
}
}
return local_c;
}
|
|
11,515 |
stbi__copyval(int, unsigned char*, unsigned char const*)
|
7CodeWizard[P]stablediffusion/thirdparty/stb_image.h
|
static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)
{
int mask=0x80,i;
for (i=0;i<4; ++i, mask>>=1)
if (channel&mask)
dest[i]=src[i];
}
|
O0
|
c
|
stbi__copyval(int, unsigned char*, unsigned char const*):
movl %edi, -0x4(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movl $0x80, -0x1c(%rsp)
movl $0x0, -0x20(%rsp)
cmpl $0x4, -0x20(%rsp)
jge 0x1ee15
movl -0x4(%rsp), %eax
andl -0x1c(%rsp), %eax
cmpl $0x0, %eax
je 0x1edfc
movq -0x18(%rsp), %rax
movslq -0x20(%rsp), %rcx
movb (%rax,%rcx), %dl
movq -0x10(%rsp), %rax
movslq -0x20(%rsp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x1edfe
movl -0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rsp)
movl -0x1c(%rsp), %eax
sarl %eax
movl %eax, -0x1c(%rsp)
jmp 0x1edce
retq
nopw %cs:(%rax,%rax)
|
_ZL13stbi__copyvaliPhPKh:
mov [rsp+var_4], edi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov [rsp+var_1C], 80h
mov [rsp+var_20], 0
loc_1EDCE:
cmp [rsp+var_20], 4
jge short locret_1EE15
mov eax, [rsp+var_4]
and eax, [rsp+var_1C]
cmp eax, 0
jz short loc_1EDFC
mov rax, [rsp+var_18]
movsxd rcx, [rsp+var_20]
mov dl, [rax+rcx]
mov rax, [rsp+var_10]
movsxd rcx, [rsp+var_20]
mov [rax+rcx], dl
loc_1EDFC:
jmp short $+2
loc_1EDFE:
mov eax, [rsp+var_20]
add eax, 1
mov [rsp+var_20], eax
mov eax, [rsp+var_1C]
sar eax, 1
mov [rsp+var_1C], eax
jmp short loc_1EDCE
locret_1EE15:
retn
|
long long stbi__copyval(int a1, unsigned __int8 *a2, const unsigned __int8 *a3)
{
long long result; // rax
int i; // [rsp+0h] [rbp-20h]
int v5; // [rsp+4h] [rbp-1Ch]
v5 = 128;
for ( i = 0; i < 4; ++i )
{
if ( (v5 & a1) != 0 )
a2[i] = a3[i];
result = (unsigned int)(v5 >> 1);
v5 >>= 1;
}
return result;
}
|
stbi__copyval:
MOV dword ptr [RSP + -0x4],EDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV dword ptr [RSP + -0x1c],0x80
MOV dword ptr [RSP + -0x20],0x0
LAB_0011edce:
CMP dword ptr [RSP + -0x20],0x4
JGE 0x0011ee15
MOV EAX,dword ptr [RSP + -0x4]
AND EAX,dword ptr [RSP + -0x1c]
CMP EAX,0x0
JZ 0x0011edfc
MOV RAX,qword ptr [RSP + -0x18]
MOVSXD RCX,dword ptr [RSP + -0x20]
MOV DL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RSP + -0x10]
MOVSXD RCX,dword ptr [RSP + -0x20]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_0011edfc:
JMP 0x0011edfe
LAB_0011edfe:
MOV EAX,dword ptr [RSP + -0x20]
ADD EAX,0x1
MOV dword ptr [RSP + -0x20],EAX
MOV EAX,dword ptr [RSP + -0x1c]
SAR EAX,0x1
MOV dword ptr [RSP + -0x1c],EAX
JMP 0x0011edce
LAB_0011ee15:
RET
|
/* stbi__copyval(int, unsigned char*, unsigned char const*) */
void stbi__copyval(int param_1,uchar *param_2,uchar *param_3)
{
int local_20;
uint local_1c;
local_1c = 0x80;
for (local_20 = 0; local_20 < 4; local_20 = local_20 + 1) {
if ((param_1 & local_1c) != 0) {
param_2[local_20] = param_3[local_20];
}
local_1c = (int)local_1c >> 1;
}
return;
}
|
|
11,516 |
google::protobuf::stringpiece_internal::StringPiece::ToString[abi:cxx11]() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/stringpiece.h
|
std::string ToString() const {
if (ptr_ == nullptr) return "";
return std::string(data(), static_cast<size_type>(size()));
}
|
O0
|
c
|
google::protobuf::stringpiece_internal::StringPiece::ToString[abi:cxx11]() const:
subq $0x68, %rsp
movq %rdi, 0x28(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, (%rax)
jne 0x23b7b
leaq 0x57(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x13760
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rdx
leaq 0x1c9dde(%rip), %rsi # 0x1ed929
callq 0x135f0
jmp 0x23b52
leaq 0x57(%rsp), %rdi
callq 0x134d0
jmp 0x23be9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
leaq 0x57(%rsp), %rdi
callq 0x134d0
jmp 0x23bf3
movq 0x38(%rsp), %rdi
callq 0x24070
movq 0x38(%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0x24080
movq %rax, 0x10(%rsp)
leaq 0x43(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x13760
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x13500
jmp 0x23bc3
leaq 0x43(%rsp), %rdi
callq 0x134d0
jmp 0x23be9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
leaq 0x43(%rsp), %rdi
callq 0x134d0
jmp 0x23bf3
movq 0x30(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x13750
nopl (%rax)
|
_ZNK6google8protobuf20stringpiece_internal11StringPiece8ToStringB5cxx11Ev:
sub rsp, 68h
mov [rsp+68h+var_40], rdi
mov rax, rdi
mov [rsp+68h+var_38], rax
mov [rsp+68h+var_8], rdi
mov [rsp+68h+var_10], rsi
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_30], rax
cmp qword ptr [rax], 0
jnz short loc_23B7B
lea rdi, [rsp+68h+var_11]
mov [rsp+68h+var_48], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+68h+var_40]
mov rdx, [rsp+68h+var_48]
lea rsi, aSyntax0+10h; ""
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
jmp short $+2
loc_23B52:
lea rdi, [rsp+68h+var_11]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_23BE9
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
lea rdi, [rsp+arg_4F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_23BF3
loc_23B7B:
mov rdi, [rsp+68h+var_30]; this
call _ZNK6google8protobuf20stringpiece_internal11StringPiece4dataEv; google::protobuf::stringpiece_internal::StringPiece::data(void)
mov rdi, [rsp+68h+var_30]; this
mov [rsp+68h+var_60], rax
call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void)
mov [rsp+68h+var_58], rax
lea rdi, [rsp+68h+var_25]
mov [rsp+68h+var_50], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+68h+var_40]
mov rsi, [rsp+68h+var_60]
mov rdx, [rsp+68h+var_58]
mov rcx, [rsp+68h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcmRKS3_; std::string::basic_string(char const*,ulong,std::allocator<char> const&)
jmp short $+2
loc_23BC3:
lea rdi, [rsp+68h+var_25]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_23BE9
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
lea rdi, [rsp+arg_3B]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_23BF3
loc_23BE9:
mov rax, [rsp+68h+var_38]
add rsp, 68h
retn
loc_23BF3:
mov rdi, [rsp+arg_40]
call __Unwind_Resume
|
long long google::protobuf::stringpiece_internal::StringPiece::ToString[abi:cxx11](
long long a1,
google::protobuf::stringpiece_internal::StringPiece *a2)
{
long long v3; // [rsp+8h] [rbp-60h]
long long v4; // [rsp+10h] [rbp-58h]
_BYTE v5[20]; // [rsp+43h] [rbp-25h] BYREF
char v6; // [rsp+57h] [rbp-11h] BYREF
google::protobuf::stringpiece_internal::StringPiece *v7; // [rsp+58h] [rbp-10h]
long long v8; // [rsp+60h] [rbp-8h]
v8 = a1;
v7 = a2;
if ( *(_QWORD *)a2 )
{
v3 = google::protobuf::stringpiece_internal::StringPiece::data(a2);
v4 = google::protobuf::stringpiece_internal::StringPiece::size(a2);
std::allocator<char>::allocator(v5, a2);
std::string::basic_string(a1, v3, v4, v5);
std::allocator<char>::~allocator(v5);
}
else
{
std::allocator<char>::allocator(&v6, a2);
std::string::basic_string(a1, "", &v6);
std::allocator<char>::~allocator(&v6);
}
return a1;
}
|
ToString[abi:cxx11]:
SUB RSP,0x68
MOV qword ptr [RSP + 0x28],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x60],RDI
MOV qword ptr [RSP + 0x58],RSI
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RAX],0x0
JNZ 0x00123b7b
LEA RDI,[RSP + 0x57]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00113760
MOV RDI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x20]
LAB_00123b44:
LEA RSI,[0x2ed929]
CALL 0x001135f0
JMP 0x00123b52
LAB_00123b52:
LEA RDI,[RSP + 0x57]
CALL 0x001134d0
JMP 0x00123be9
LAB_00123b7b:
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x00124070
MOV RDI,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00124080
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x43]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x00113760
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
LAB_00123bbc:
CALL 0x00113500
LAB_00123bc1:
JMP 0x00123bc3
LAB_00123bc3:
LEA RDI,[RSP + 0x43]
CALL 0x001134d0
JMP 0x00123be9
LAB_00123be9:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x68
RET
|
/* google::protobuf::stringpiece_internal::StringPiece::ToString[abi:cxx11]() const */
string * google::protobuf::stringpiece_internal::StringPiece::ToString_abi_cxx11_(void)
{
char *pcVar1;
ulong uVar2;
StringPiece *in_RSI;
string *in_RDI;
allocator local_25 [20];
allocator local_11 [17];
if (*(long *)in_RSI == 0) {
std::allocator<char>::allocator();
/* try { // try from 00123b44 to 00123b4f has its CatchHandler @ 00123b61 */
std::__cxx11::string::string(in_RDI,"",local_11);
std::allocator<char>::~allocator((allocator<char> *)local_11);
}
else {
pcVar1 = (char *)data(in_RSI);
uVar2 = size(in_RSI);
std::allocator<char>::allocator();
/* try { // try from 00123bbc to 00123bc0 has its CatchHandler @ 00123bcf */
std::__cxx11::string::string(in_RDI,pcVar1,uVar2,local_25);
std::allocator<char>::~allocator((allocator<char> *)local_25);
}
return in_RDI;
}
|
|
11,517 |
String::set_int(long long, bool, charset_info_st const*)
|
eloqsql/sql/sql_string.cc
|
bool String::set_int(longlong num, bool unsigned_flag, CHARSET_INFO *cs)
{
/*
This allocates a few bytes extra in the unlikely case that cs->mb_maxlen
> 1, but we can live with that
*/
uint l= LONGLONG_BUFFER_SIZE * cs->mbmaxlen;
int base= unsigned_flag ? 10 : -10;
if (alloc(l))
return TRUE;
str_length=(uint32) (cs->longlong10_to_str)(Ptr,l,base,num);
set_charset(cs);
return FALSE;
}
|
O0
|
cpp
|
String::set_int(long long, bool, charset_info_st const*):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x38(%rbp)
movq -0x28(%rbp), %rax
imull $0x15, 0x9c(%rax), %eax
movl %eax, -0x2c(%rbp)
movb -0x19(%rbp), %dl
movl $0xfffffff6, %eax # imm = 0xFFFFFFF6
movl $0xa, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x30(%rbp)
addq $0x8, %rdi
movl -0x2c(%rbp), %eax
movl %eax, %esi
callq 0x26250
testb $0x1, %al
jne 0x2734b
jmp 0x27351
movb $0x1, -0x1(%rbp)
jmp 0x27382
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rdi
movq 0x8(%rax), %rsi
movl -0x2c(%rbp), %eax
movl %eax, %edx
movl -0x30(%rbp), %ecx
movq -0x18(%rbp), %r8
callq 0x29970
movq -0x38(%rbp), %rdi
movl %eax, 0x10(%rdi)
movq -0x28(%rbp), %rsi
callq 0x299c0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN6String7set_intExbPK15charset_info_st:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, dl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
and al, 1
mov [rbp+var_19], al
mov [rbp+var_2C+4], rcx
mov rdi, [rbp+var_10]
mov [rbp+var_38], rdi
mov rax, [rbp+var_2C+4]
imul eax, [rax+9Ch], 15h
mov dword ptr [rbp+var_2C], eax
mov dl, [rbp+var_19]
mov eax, 0FFFFFFF6h
mov ecx, 0Ah
test dl, 1
cmovnz eax, ecx
mov [rbp+var_30], eax
add rdi, 8; this
mov eax, dword ptr [rbp+var_2C]
mov esi, eax; unsigned __int64
call _ZN13Binary_string5allocEm; Binary_string::alloc(ulong)
test al, 1
jnz short loc_2734B
jmp short loc_27351
loc_2734B:
mov [rbp+var_1], 1
jmp short loc_27382
loc_27351:
mov rax, [rbp+var_38]
mov rdi, [rbp+var_2C+4]; this
mov rsi, [rax+8]; char *
mov eax, dword ptr [rbp+var_2C]
mov edx, eax; unsigned __int64
mov ecx, [rbp+var_30]; int
mov r8, [rbp+var_18]; __int64
call _ZNK15charset_info_st17longlong10_to_strEPcmix; charset_info_st::longlong10_to_str(char *,ulong,int,long long)
mov rdi, [rbp+var_38]; this
mov [rdi+10h], eax
mov rsi, [rbp+var_2C+4]; charset_info_st *
call _ZN7Charset11set_charsetEPK15charset_info_st; Charset::set_charset(charset_info_st const*)
mov [rbp+var_1], 0
loc_27382:
mov al, [rbp+var_1]
and al, 1
add rsp, 40h
pop rbp
retn
|
char String::set_int(String *this, long long a2, char a3, const charset_info_st *a4)
{
int v4; // eax
int v6; // [rsp+10h] [rbp-30h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = 21 * *((_DWORD *)a4 + 39);
v4 = -10;
if ( (a3 & 1) != 0 )
v4 = 10;
v6 = v4;
if ( (Binary_string::alloc((String *)((char *)this + 8), v7) & 1) != 0 )
return 1;
*((_DWORD *)this + 4) = charset_info_st::longlong10_to_str(a4, *((char **)this + 1), v7, v6, a2);
Charset::set_charset(this, a4);
return 0;
}
|
set_int:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,DL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
MOV qword ptr [RBP + -0x28],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RDI
MOV RAX,qword ptr [RBP + -0x28]
IMUL EAX,dword ptr [RAX + 0x9c],0x15
MOV dword ptr [RBP + -0x2c],EAX
MOV DL,byte ptr [RBP + -0x19]
MOV EAX,0xfffffff6
MOV ECX,0xa
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x30],EAX
ADD RDI,0x8
MOV EAX,dword ptr [RBP + -0x2c]
MOV ESI,EAX
CALL 0x00126250
TEST AL,0x1
JNZ 0x0012734b
JMP 0x00127351
LAB_0012734b:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00127382
LAB_00127351:
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + 0x8]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDX,EAX
MOV ECX,dword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + -0x18]
CALL 0x00129970
MOV RDI,qword ptr [RBP + -0x38]
MOV dword ptr [RDI + 0x10],EAX
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001299c0
MOV byte ptr [RBP + -0x1],0x0
LAB_00127382:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x40
POP RBP
RET
|
/* String::set_int(long long, bool, charset_info_st const*) */
bool __thiscall String::set_int(String *this,longlong param_1,bool param_2,charset_info_st *param_3)
{
int iVar1;
int iVar2;
int4 uVar3;
ulong uVar4;
bool bVar5;
iVar1 = *(int *)(param_3 + 0x9c);
iVar2 = -10;
if (param_2) {
iVar2 = 10;
}
uVar4 = Binary_string::alloc((Binary_string *)(this + 8),(ulong)(uint)(iVar1 * 0x15));
bVar5 = (uVar4 & 1) != 0;
if (!bVar5) {
uVar3 = charset_info_st::longlong10_to_str
(param_3,*(char **)(this + 8),(ulong)(uint)(iVar1 * 0x15),iVar2,param_1);
*(int4 *)(this + 0x10) = uVar3;
Charset::set_charset((Charset *)this,param_3);
}
return bVar5;
}
|
|
11,518 |
String::set_int(long long, bool, charset_info_st const*)
|
eloqsql/sql/sql_string.cc
|
bool String::set_int(longlong num, bool unsigned_flag, CHARSET_INFO *cs)
{
/*
This allocates a few bytes extra in the unlikely case that cs->mb_maxlen
> 1, but we can live with that
*/
uint l= LONGLONG_BUFFER_SIZE * cs->mbmaxlen;
int base= unsigned_flag ? 10 : -10;
if (alloc(l))
return TRUE;
str_length=(uint32) (cs->longlong10_to_str)(Ptr,l,base,num);
set_charset(cs);
return FALSE;
}
|
O3
|
cpp
|
String::set_int(long long, bool, charset_info_st const*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r14
movl 0x9c(%rcx), %eax
leal (%rax,%rax,4), %ecx
leal (%rax,%rcx,4), %r12d
movl 0x14(%rdi), %eax
cmpl %r12d, %eax
setae %cl
testl %eax, %eax
setne %al
testb %cl, %al
jne 0x26765
leaq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0x265ec
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x26795
testb %r13b, %r13b
movl $0xa, %eax
movl $0xfffffff6, %ecx # imm = 0xFFFFFFF6
cmovnel %eax, %ecx
movq 0x8(%r14), %rsi
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r12, %rdx
movq %r15, %r8
callq *0x70(%rax)
movl %eax, 0x10(%r14)
movq %rbx, (%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN6String7set_intExbPK15charset_info_st:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r13d, edx
mov r15, rsi
mov r14, rdi
mov eax, [rcx+9Ch]
lea ecx, [rax+rax*4]
lea r12d, [rax+rcx*4]
mov eax, [rdi+14h]
cmp eax, r12d
setnb cl
test eax, eax
setnz al
test al, cl
jnz short loc_26765
lea rdi, [r14+8]; this
mov rsi, r12; unsigned __int64
call _ZN13Binary_string10real_allocEm; Binary_string::real_alloc(ulong)
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_26795
loc_26765:
test r13b, r13b
mov eax, 0Ah
mov ecx, 0FFFFFFF6h
cmovnz ecx, eax
mov rsi, [r14+8]
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rdx, r12
mov r8, r15
call qword ptr [rax+70h]
mov [r14+10h], eax
mov [r14], rbx
xor eax, eax
loc_26795:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char String::set_int(long long a1, long long a2, char a3, long long a4)
{
unsigned long long v6; // r12
char v7; // cl
char result; // al
long long v9; // rcx
v6 = (unsigned int)(21 * *(_DWORD *)(a4 + 156));
if ( *(_DWORD *)(a1 + 20) >= (unsigned int)v6 && *(_DWORD *)(a1 + 20) != 0
|| (v7 = Binary_string::real_alloc((Binary_string *)(a1 + 8), v6), result = 1, !v7) )
{
v9 = 4294967286LL;
if ( a3 )
v9 = 10LL;
*(_DWORD *)(a1 + 16) = (*(long long ( **)(long long, _QWORD, unsigned long long, long long, long long))(*(_QWORD *)(a4 + 184) + 112LL))(
a4,
*(_QWORD *)(a1 + 8),
v6,
v9,
a2);
*(_QWORD *)a1 = a4;
return 0;
}
return result;
}
|
set_int:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R13D,EDX
MOV R15,RSI
MOV R14,RDI
MOV EAX,dword ptr [RCX + 0x9c]
LEA ECX,[RAX + RAX*0x4]
LEA R12D,[RAX + RCX*0x4]
MOV EAX,dword ptr [RDI + 0x14]
CMP EAX,R12D
SETNC CL
TEST EAX,EAX
SETNZ AL
TEST AL,CL
JNZ 0x00126765
LEA RDI,[R14 + 0x8]
MOV RSI,R12
CALL 0x001265ec
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00126795
LAB_00126765:
TEST R13B,R13B
MOV EAX,0xa
MOV ECX,0xfffffff6
CMOVNZ ECX,EAX
MOV RSI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RDX,R12
MOV R8,R15
CALL qword ptr [RAX + 0x70]
MOV dword ptr [R14 + 0x10],EAX
MOV qword ptr [R14],RBX
XOR EAX,EAX
LAB_00126795:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* String::set_int(long long, bool, charset_info_st const*) */
int8 __thiscall
String::set_int(String *this,longlong param_1,bool param_2,charset_info_st *param_3)
{
uint uVar1;
char cVar2;
int4 uVar3;
int8 uVar4;
uVar1 = *(int *)(param_3 + 0x9c) * 0x15;
if (*(uint *)(this + 0x14) == 0 || *(uint *)(this + 0x14) < uVar1) {
cVar2 = Binary_string::real_alloc((Binary_string *)(this + 8),(ulong)uVar1);
if (cVar2 != '\0') {
return 1;
}
}
uVar4 = 0xfffffff6;
if (param_2) {
uVar4 = 10;
}
uVar3 = (**(code **)(*(long *)(param_3 + 0xb8) + 0x70))
(param_3,*(int8 *)(this + 8),(ulong)uVar1,uVar4,param_1);
*(int4 *)(this + 0x10) = uVar3;
*(charset_info_st **)this = param_3;
return 0;
}
|
|
11,519 |
ma_send
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
static ssize_t ma_send(my_socket socket, const uchar *buffer, size_t length, int flags)
{
ssize_t r;
#if !defined(MSG_NOSIGNAL) && !defined(SO_NOSIGPIPE) && !defined(_WIN32)
struct sigaction act, oldact;
act.sa_handler= SIG_IGN;
sigaction(SIGPIPE, &act, &oldact);
#endif
do {
r = send(socket, (const char *)buffer, IF_WIN((int)length,length), flags);
}
while (r == -1 && IS_SOCKET_EINTR(socket_errno));
#if !defined(MSG_NOSIGNAL) && !defined(SO_NOSIGPIPE) && !defined(_WIN32)
sigaction(SIGPIPE, &oldact, NULL);
#endif
return r;
}
|
O0
|
c
|
ma_send:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x37370
movq %rax, -0x28(%rbp)
xorl %eax, %eax
cmpq $-0x1, -0x28(%rbp)
movb %al, -0x29(%rbp)
jne 0x69587
callq 0x379e0
cmpl $0x4, (%rax)
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x69556
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
ma_send:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
loc_69556:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov ecx, [rbp+var_1C]
call _send
mov [rbp+var_28], rax
xor eax, eax
cmp [rbp+var_28], 0FFFFFFFFFFFFFFFFh
mov [rbp+var_29], al
jnz short loc_69587
call ___errno_location
cmp dword ptr [rax], 4
setz al
mov [rbp+var_29], al
loc_69587:
mov al, [rbp+var_29]
test al, 1
jnz short loc_69556
mov rax, [rbp+var_28]
add rsp, 30h
pop rbp
retn
|
long long ma_send(unsigned int a1, long long a2, long long a3, unsigned int a4)
{
bool v5; // [rsp+7h] [rbp-29h]
long long v6; // [rsp+8h] [rbp-28h]
do
{
v6 = send(a1, a2, a3, a4);
v5 = 0;
if ( v6 == -1 )
v5 = *(_DWORD *)__errno_location(a1) == 4;
}
while ( v5 );
return v6;
}
|
ma_send:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
LAB_00169556:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
CALL 0x00137370
MOV qword ptr [RBP + -0x28],RAX
XOR EAX,EAX
CMP qword ptr [RBP + -0x28],-0x1
MOV byte ptr [RBP + -0x29],AL
JNZ 0x00169587
CALL 0x001379e0
CMP dword ptr [RAX],0x4
SETZ AL
MOV byte ptr [RBP + -0x29],AL
LAB_00169587:
MOV AL,byte ptr [RBP + -0x29]
TEST AL,0x1
JNZ 0x00169556
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x30
POP RBP
RET
|
ssize_t ma_send(int param_1,void *param_2,size_t param_3,int param_4)
{
ssize_t sVar1;
int *piVar2;
bool bVar3;
do {
sVar1 = send(param_1,param_2,param_3,param_4);
bVar3 = false;
if (sVar1 == -1) {
piVar2 = __errno_location();
bVar3 = *piVar2 == 4;
}
} while (bVar3);
return sVar1;
}
|
|
11,520 |
add_cfg_dir
|
eloqsql/libmariadb/libmariadb/ma_default.c
|
static int add_cfg_dir(char **cfg_dirs, const char *directory)
{
int i;
for (i = 0; i < MAX_CONFIG_DIRS && cfg_dirs[i]; i++)
if (!strcmp(cfg_dirs[i], directory)) /* already present */
return 0;
if (i < MAX_CONFIG_DIRS) {
cfg_dirs[i]= strdup(directory);
return 0;
}
return 1;
}
|
O0
|
c
|
add_cfg_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
xorl %eax, %eax
cmpl $0x6, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
jge 0x78c15
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
setne %al
movb %al, -0x1d(%rbp)
movb -0x1d(%rbp), %al
testb $0x1, %al
jne 0x78c1e
jmp 0x78c4e
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rsi
callq 0x38880
cmpl $0x0, %eax
jne 0x78c41
movl $0x0, -0x4(%rbp)
jmp 0x78c7c
jmp 0x78c43
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x78bf7
cmpl $0x6, -0x1c(%rbp)
jge 0x78c75
movq -0x18(%rbp), %rdi
callq 0x38030
movq %rax, %rdx
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x4(%rbp)
jmp 0x78c7c
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
add_cfg_dir:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], 0
loc_78BF7:
xor eax, eax
cmp [rbp+var_1C], 6
mov [rbp+var_1D], al
jge short loc_78C15
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
cmp qword ptr [rax+rcx*8], 0
setnz al
mov [rbp+var_1D], al
loc_78C15:
mov al, [rbp+var_1D]
test al, 1
jnz short loc_78C1E
jmp short loc_78C4E
loc_78C1E:
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov rsi, [rbp+var_18]
call _strcmp
cmp eax, 0
jnz short loc_78C41
mov [rbp+var_4], 0
jmp short loc_78C7C
loc_78C41:
jmp short $+2
loc_78C43:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_78BF7
loc_78C4E:
cmp [rbp+var_1C], 6
jge short loc_78C75
mov rdi, [rbp+var_18]
call _strdup
mov rdx, rax
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
mov [rax+rcx*8], rdx
mov [rbp+var_4], 0
jmp short loc_78C7C
loc_78C75:
mov [rbp+var_4], 1
loc_78C7C:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long add_cfg_dir(long long a1, long long a2)
{
bool v3; // [rsp+3h] [rbp-1Dh]
int i; // [rsp+4h] [rbp-1Ch]
for ( i = 0; ; ++i )
{
v3 = 0;
if ( i < 6 )
v3 = *(_QWORD *)(a1 + 8LL * i) != 0LL;
if ( !v3 )
break;
if ( !(unsigned int)strcmp(*(_QWORD *)(a1 + 8LL * i), a2) )
return 0;
}
if ( i >= 6 )
{
return 1;
}
else
{
*(_QWORD *)(a1 + 8LL * i) = strdup(a2);
return 0;
}
}
|
add_cfg_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],0x0
LAB_00178bf7:
XOR EAX,EAX
CMP dword ptr [RBP + -0x1c],0x6
MOV byte ptr [RBP + -0x1d],AL
JGE 0x00178c15
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
CMP qword ptr [RAX + RCX*0x8],0x0
SETNZ AL
MOV byte ptr [RBP + -0x1d],AL
LAB_00178c15:
MOV AL,byte ptr [RBP + -0x1d]
TEST AL,0x1
JNZ 0x00178c1e
JMP 0x00178c4e
LAB_00178c1e:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00138880
CMP EAX,0x0
JNZ 0x00178c41
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00178c7c
LAB_00178c41:
JMP 0x00178c43
LAB_00178c43:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00178bf7
LAB_00178c4e:
CMP dword ptr [RBP + -0x1c],0x6
JGE 0x00178c75
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00138030
MOV RDX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00178c7c
LAB_00178c75:
MOV dword ptr [RBP + -0x4],0x1
LAB_00178c7c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 add_cfg_dir(long param_1,char *param_2)
{
int iVar1;
char *pcVar2;
bool bVar3;
int local_24;
local_24 = 0;
while( true ) {
bVar3 = false;
if (local_24 < 6) {
bVar3 = *(long *)(param_1 + (long)local_24 * 8) != 0;
}
if (!bVar3) break;
iVar1 = strcmp(*(char **)(param_1 + (long)local_24 * 8),param_2);
if (iVar1 == 0) {
return 0;
}
local_24 = local_24 + 1;
}
if (local_24 < 6) {
pcVar2 = strdup(param_2);
*(char **)(param_1 + (long)local_24 * 8) = pcVar2;
return 0;
}
return 1;
}
|
|
11,521 |
add_cfg_dir
|
eloqsql/libmariadb/libmariadb/ma_default.c
|
static int add_cfg_dir(char **cfg_dirs, const char *directory)
{
int i;
for (i = 0; i < MAX_CONFIG_DIRS && cfg_dirs[i]; i++)
if (!strcmp(cfg_dirs[i], directory)) /* already present */
return 0;
if (i < MAX_CONFIG_DIRS) {
cfg_dirs[i]= strdup(directory);
return 0;
}
return 1;
}
|
O3
|
c
|
add_cfg_dir:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
testq %rdi, %rdi
je 0x60b38
movq %r14, %rsi
callq 0x378b0
testl %eax, %eax
je 0x60b44
incq %r15
cmpq $0x6, %r15
jne 0x60b13
movl $0x1, %eax
jmp 0x60b46
movq %r14, %rdi
callq 0x37030
movq %rax, (%rbx,%r15,8)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
add_cfg_dir:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
xor r15d, r15d
loc_60B13:
mov rdi, [rbx+r15*8]
test rdi, rdi
jz short loc_60B38
mov rsi, r14
call _strcmp
test eax, eax
jz short loc_60B44
inc r15
cmp r15, 6
jnz short loc_60B13
mov eax, 1
jmp short loc_60B46
loc_60B38:
mov rdi, r14
call _strdup
mov [rbx+r15*8], rax
loc_60B44:
xor eax, eax
loc_60B46:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long add_cfg_dir(long long a1, long long a2)
{
long long v3; // r15
long long v4; // rdi
v3 = 0LL;
while ( 1 )
{
v4 = *(_QWORD *)(a1 + 8 * v3);
if ( !v4 )
break;
if ( !(unsigned int)strcmp(v4, a2) )
return 0LL;
if ( ++v3 == 6 )
return 1LL;
}
*(_QWORD *)(a1 + 8 * v3) = strdup(a2);
return 0LL;
}
|
add_cfg_dir:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
XOR R15D,R15D
LAB_00160b13:
MOV RDI,qword ptr [RBX + R15*0x8]
TEST RDI,RDI
JZ 0x00160b38
MOV RSI,R14
CALL 0x001378b0
TEST EAX,EAX
JZ 0x00160b44
INC R15
CMP R15,0x6
JNZ 0x00160b13
MOV EAX,0x1
JMP 0x00160b46
LAB_00160b38:
MOV RDI,R14
CALL 0x00137030
MOV qword ptr [RBX + R15*0x8],RAX
LAB_00160b44:
XOR EAX,EAX
LAB_00160b46:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 add_cfg_dir(long param_1,char *param_2)
{
int iVar1;
char *pcVar2;
long lVar3;
lVar3 = 0;
while( true ) {
pcVar2 = *(char **)(param_1 + lVar3 * 8);
if (pcVar2 == (char *)0x0) {
pcVar2 = strdup(param_2);
*(char **)(param_1 + lVar3 * 8) = pcVar2;
return 0;
}
iVar1 = strcmp(pcVar2,param_2);
if (iVar1 == 0) break;
lVar3 = lVar3 + 1;
if (lVar3 == 6) {
return 1;
}
}
return 0;
}
|
|
11,522 |
my_wc_mb_gb2312
|
eloqsql/strings/ctype-gb2312.c
|
static int
my_wc_mb_gb2312(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((uint) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_gb2312_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL2;
code|=0x8080;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
}
|
O0
|
c
|
my_wc_mb_gb2312:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x425ae
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x42632
movq -0x18(%rbp), %rax
cmpl $0x80, %eax
jae 0x425ce
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x42632
movq -0x18(%rbp), %rax
movl %eax, %edi
callq 0x42920
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jne 0x425ea
movl $0x0, -0x4(%rbp)
jmp 0x42632
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x42601
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x42632
movl -0x2c(%rbp), %eax
orl $0x8080, %eax # imm = 0x8080
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl -0x2c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_wc_mb_gb2312:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_425AE
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_42632
loc_425AE:
mov rax, [rbp+var_18]
cmp eax, 80h
jnb short loc_425CE
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 1
jmp short loc_42632
loc_425CE:
mov rax, [rbp+var_18]
mov edi, eax
call func_uni_gb2312_onechar
mov [rbp+var_2C], eax
cmp eax, 0
jnz short loc_425EA
mov [rbp+var_4], 0
jmp short loc_42632
loc_425EA:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_42601
mov [rbp+var_4], 0FFFFFF9Ah
jmp short loc_42632
loc_42601:
mov eax, [rbp+var_2C]
or eax, 8080h
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov eax, [rbp+var_2C]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
loc_42632:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long my_wc_mb_gb2312(long long a1, unsigned int a2, _BYTE *a3, unsigned long long a4)
{
int v5; // [rsp+4h] [rbp-2Ch]
__int16 v6; // [rsp+4h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
if ( a2 >= 0x80 )
{
v5 = func_uni_gb2312_onechar(a2);
if ( v5 )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = v5 | 0x8080;
*a3 = HIBYTE(v6);
a3[1] = v6;
return 2;
}
else
{
return (unsigned int)-102;
}
}
else
{
return 0;
}
}
else
{
*a3 = a2;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
|
my_wc_mb_gb2312:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x001425ae
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00142632
LAB_001425ae:
MOV RAX,qword ptr [RBP + -0x18]
CMP EAX,0x80
JNC 0x001425ce
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00142632
LAB_001425ce:
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,EAX
CALL 0x00142920
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JNZ 0x001425ea
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00142632
LAB_001425ea:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x00142601
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00142632
LAB_00142601:
MOV EAX,dword ptr [RBP + -0x2c]
OR EAX,0x8080
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV dword ptr [RBP + -0x4],0x2
LAB_00142632:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_wc_mb_gb2312(int8 param_1,uint param_2,int1 *param_3,int1 *param_4)
{
uint uVar1;
int4 local_c;
if (param_3 < param_4) {
if (param_2 < 0x80) {
*param_3 = (char)param_2;
local_c = 1;
}
else {
uVar1 = func_uni_gb2312_onechar(param_2);
if (uVar1 == 0) {
local_c = 0;
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else {
*param_3 = (char)((uVar1 | 0x8080) >> 8);
param_3[1] = (char)(uVar1 | 0x8080);
local_c = 2;
}
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
11,523 |
minja::Value::operator<(minja::Value const&) const
|
monkey531[P]llama/common/minja.hpp
|
bool operator<(const Value & other) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_number() && other.is_number()) return get<double>() < other.get<double>();
if (is_string() && other.is_string()) return get<std::string>() < other.get<std::string>();
throw std::runtime_error("Cannot compare values: " + dump() + " < " + other.dump());
}
|
O1
|
cpp
|
minja::Value::operator<(minja::Value const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %r15
cmpq $0x0, 0x20(%rdi)
movb 0x40(%rdi), %al
jne 0x5ac7d
cmpq $0x0, 0x10(%r15)
jne 0x5ac7d
testb %al, %al
jne 0x5ac7d
cmpq $0x0, 0x30(%r15)
je 0x5ad7b
leal -0x5(%rax), %ecx
cmpb $0x2, %cl
ja 0x5acb5
movb 0x40(%r14), %cl
addb $-0x5, %cl
cmpb $0x2, %cl
ja 0x5acb5
movq %r15, %rdi
callq 0x3f9d4
movsd %xmm0, 0x40(%rsp)
movq %r14, %rdi
callq 0x3f9d4
ucomisd 0x40(%rsp), %xmm0
seta %bl
jmp 0x5ad6b
cmpb $0x3, %al
jne 0x5adad
cmpb $0x3, 0x40(%r14)
jne 0x5adad
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x41444
movq %rsp, %rdi
movq %r14, %rsi
callq 0x41444
movq 0x28(%rsp), %r14
movq 0x8(%rsp), %r15
cmpq %r14, %r15
movq %r14, %rdx
cmovbq %r15, %rdx
testq %rdx, %rdx
je 0x5ad0b
movq (%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x18310
movl %eax, %ebx
jmp 0x5ad0d
xorl %ebx, %ebx
testl %ebx, %ebx
jne 0x5ad32
subq %r15, %r14
cmpq $-0x7fffffff, %r14 # imm = 0x80000001
movq $-0x80000000, %rbx # imm = 0x80000000
cmovgeq %r14, %rbx
movl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmpq %rax, %rbx
cmovgeq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ad4d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
shrl $0x1f, %ebx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ad6b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
movl %ebx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x18350
movq %rax, %rbx
leaq 0x52c89(%rip), %rsi # 0xada18
movq %rax, %rdi
callq 0x18260
movq 0x86252(%rip), %rsi # 0xe0ff0
movq 0x861cb(%rip), %rdx # 0xe0f70
movq %rbx, %rdi
callq 0x18b50
movl $0x10, %edi
callq 0x18350
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x3fb0a
leaq 0x54968(%rip), %rsi # 0xaf73d
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x2653f
leaq 0x54967(%rip), %rsi # 0xaf755
leaq 0x88(%rsp), %rdi
callq 0x18ce0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5ae1c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5ae28
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x3fb0a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x48(%rsp), %rdx
callq 0x26610
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x18aa0
xorl %ebp, %ebp
movq 0x86171(%rip), %rsi # 0xe0ff0
movq 0x860ea(%rip), %rdx # 0xe0f70
movq %rbx, %rdi
callq 0x18b50
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aeb4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x5aeb4
movq %rax, %r14
movb $0x1, %bpl
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aed7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x5aed7
movq %rax, %r14
movb $0x1, %bpl
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5aef5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x5aef5
movq %rax, %r14
movb $0x1, %bpl
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5af1e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x5af1e
movq %rax, %r14
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5af41
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x5af41
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
jne 0x5af4b
jmp 0x5af73
movq %rax, %r14
movq %rbx, %rdi
callq 0x184f0
jmp 0x5af73
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5af73
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %r14, %rdi
callq 0x18bc0
nop
|
_ZNK5minja5ValueltERKS0_:
push rbp
push r15
push r14
push rbx
sub rsp, 0A8h
mov r14, rsi
mov r15, rdi
cmp qword ptr [rdi+20h], 0
mov al, [rdi+40h]
jnz short loc_5AC7D
cmp qword ptr [r15+10h], 0
jnz short loc_5AC7D
test al, al
jnz short loc_5AC7D
cmp qword ptr [r15+30h], 0
jz loc_5AD7B
loc_5AC7D:
lea ecx, [rax-5]
cmp cl, 2
ja short loc_5ACB5
mov cl, [r14+40h]
add cl, 0FBh
cmp cl, 2
ja short loc_5ACB5
mov rdi, r15
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+0C8h+var_88], xmm0
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
ucomisd xmm0, [rsp+0C8h+var_88]
setnbe bl
jmp loc_5AD6B
loc_5ACB5:
cmp al, 3
jnz loc_5ADAD
cmp byte ptr [r14+40h], 3
jnz loc_5ADAD
lea rdi, [rsp+0C8h+var_A8]
mov rsi, r15
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov rdi, rsp
mov rsi, r14
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov r14, [rsp+0C8h+var_A0]
mov r15, [rsp+0C8h+var_C0]
cmp r15, r14
mov rdx, r14
cmovb rdx, r15
test rdx, rdx
jz short loc_5AD0B
mov rsi, [rsp+0C8h+var_C8]
mov rdi, [rsp+0C8h+var_A8]
call _memcmp
mov ebx, eax
jmp short loc_5AD0D
loc_5AD0B:
xor ebx, ebx
loc_5AD0D:
test ebx, ebx
jnz short loc_5AD32
sub r14, r15
cmp r14, 0FFFFFFFF80000001h
mov rbx, 0FFFFFFFF80000000h
cmovge rbx, r14
mov eax, 7FFFFFFFh
cmp rbx, rax
cmovge rbx, rax
loc_5AD32:
lea rax, [rsp+0C8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AD4D
mov rsi, [rsp+0C8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AD4D:
shr ebx, 1Fh
lea rax, [rsp+0C8h+var_98]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AD6B
mov rsi, [rsp+0C8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AD6B:
mov eax, ebx
add rsp, 0A8h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_5AD7B:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_5ADAD:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0C8h+var_60]
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aCannotCompareV; "Cannot compare values: "
lea rdi, [rsp+0C8h+var_40]
lea rdx, [rsp+0C8h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rsi, asc_AF755; " < "
lea rdi, [rsp+0C8h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r15, [rsp+0C8h+var_B8]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_5AE1C
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
jmp short loc_5AE28
loc_5AE1C:
mov [rsp+0C8h+var_C8], rdx
mov rdx, [rcx]
mov [rsp+0C8h+var_B8], rdx
loc_5AE28:
mov rdx, [rax+8]
mov [rsp+0C8h+var_C0], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rsp+0C8h+var_80]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rdi, [rsp+0C8h+var_A8]
mov rsi, rsp
lea rdx, [rsp+0C8h+var_80]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
mov bpl, 1
lea rsi, [rsp+0C8h+var_A8]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+0C8h+var_98]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AEB4
mov rsi, [rsp+0C8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AEB4
mov r14, rax
mov bpl, 1
loc_5AEB4:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AED7
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AED7
mov r14, rax
mov bpl, 1
loc_5AED7:
mov rdi, [rsp+0C8h+var_C8]; void *
cmp rdi, r15
jz short loc_5AEF5
mov rsi, [rsp+0C8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AEF5
mov r14, rax
mov bpl, 1
loc_5AEF5:
lea rax, [rsp+0C8h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AF1E
mov rsi, [rsp+0C8h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AF1E
mov r14, rax
mov bpl, 1
loc_5AF1E:
lea rax, [rsp+0C8h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AF41
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AF41
mov r14, rax
mov bpl, 1
loc_5AF41:
test bpl, bpl
jnz short loc_5AF4B
jmp short loc_5AF73
mov r14, rax
loc_5AF4B:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_5AF73
mov r14, rax
lea rax, [rsp+0C8h+var_98]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AF73
mov rsi, [rsp+0C8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AF73:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::operator<(long long a1, long long a2)
{
unsigned int v2; // ebx
char v3; // al
unsigned long long v4; // r14
unsigned long long v5; // r15
unsigned long long v6; // rdx
long long v7; // rbx
long long v8; // r14
std::runtime_error *exception; // rbx
void *v11; // rbx
long long v12; // rax
__int128 *v13; // rcx
void *v14; // [rsp+0h] [rbp-C8h] BYREF
unsigned long long v15; // [rsp+8h] [rbp-C0h]
__int128 v16; // [rsp+10h] [rbp-B8h] BYREF
long long *v17; // [rsp+20h] [rbp-A8h] BYREF
unsigned long long v18; // [rsp+28h] [rbp-A0h]
long long v19; // [rsp+30h] [rbp-98h] BYREF
double v20; // [rsp+40h] [rbp-88h]
_QWORD v21[2]; // [rsp+48h] [rbp-80h] BYREF
_BYTE v22[16]; // [rsp+68h] [rbp-60h] BYREF
_BYTE v23[16]; // [rsp+88h] [rbp-40h] BYREF
v3 = *(_BYTE *)(a1 + 64);
if ( !*(_QWORD *)(a1 + 32) && !*(_QWORD *)(a1 + 16) && !v3 && !*(_QWORD *)(a1 + 48) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( (unsigned __int8)(v3 - 5) > 2u || (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 2u )
{
if ( v3 != 3 || *(_BYTE *)(a2 + 64) != 3 )
{
v11 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v22, a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v23, (long long)"Cannot compare values: ", (long long)v22);
v12 = std::string::append(v23, " < ");
v14 = &v16;
v13 = (__int128 *)(v12 + 16);
if ( *(_QWORD *)v12 == v12 + 16 )
{
v16 = *v13;
}
else
{
v14 = *(void **)v12;
*(_QWORD *)&v16 = *(_QWORD *)v13;
}
v15 = *(_QWORD *)(v12 + 8);
*(_QWORD *)v12 = v13;
*(_QWORD *)(v12 + 8) = 0LL;
*(_BYTE *)(v12 + 16) = 0;
minja::Value::dump[abi:cxx11]((long long)v21, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v17, &v14, v21);
std::runtime_error::runtime_error(v11, &v17);
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Value::get<std::string>((long long)&v17, (_QWORD *)a1);
minja::Value::get<std::string>((long long)&v14, (_QWORD *)a2);
v4 = v18;
v5 = v15;
v6 = v18;
if ( v15 < v18 )
v6 = v15;
if ( v6 )
LODWORD(v7) = memcmp(v17, v14);
else
LODWORD(v7) = 0;
if ( !(_DWORD)v7 )
{
v8 = v4 - v5;
v7 = 0xFFFFFFFF80000000LL;
if ( v8 >= -2147483647 )
v7 = v8;
if ( v7 >= 0x7FFFFFFF )
LODWORD(v7) = 0x7FFFFFFF;
}
if ( v14 != &v16 )
operator delete(v14, v16 + 1);
v2 = (unsigned int)v7 >> 31;
if ( v17 != &v19 )
operator delete(v17, v19 + 1);
}
else
{
v20 = minja::Value::get<double>(a1);
LOBYTE(v2) = minja::Value::get<double>(a2) > v20;
}
return v2;
}
|
operator<:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xa8
MOV R14,RSI
MOV R15,RDI
CMP qword ptr [RDI + 0x20],0x0
MOV AL,byte ptr [RDI + 0x40]
JNZ 0x0015ac7d
CMP qword ptr [R15 + 0x10],0x0
JNZ 0x0015ac7d
TEST AL,AL
JNZ 0x0015ac7d
CMP qword ptr [R15 + 0x30],0x0
JZ 0x0015ad7b
LAB_0015ac7d:
LEA ECX,[RAX + -0x5]
CMP CL,0x2
JA 0x0015acb5
MOV CL,byte ptr [R14 + 0x40]
ADD CL,0xfb
CMP CL,0x2
JA 0x0015acb5
MOV RDI,R15
CALL 0x0013f9d4
MOVSD qword ptr [RSP + 0x40],XMM0
MOV RDI,R14
CALL 0x0013f9d4
UCOMISD XMM0,qword ptr [RSP + 0x40]
SETA BL
JMP 0x0015ad6b
LAB_0015acb5:
CMP AL,0x3
JNZ 0x0015adad
CMP byte ptr [R14 + 0x40],0x3
JNZ 0x0015adad
LEA RDI,[RSP + 0x20]
MOV RSI,R15
CALL 0x00141444
LAB_0015acd5:
MOV RDI,RSP
MOV RSI,R14
CALL 0x00141444
LAB_0015ace0:
MOV R14,qword ptr [RSP + 0x28]
MOV R15,qword ptr [RSP + 0x8]
CMP R15,R14
MOV RDX,R14
CMOVC RDX,R15
TEST RDX,RDX
JZ 0x0015ad0b
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00118310
MOV EBX,EAX
JMP 0x0015ad0d
LAB_0015ad0b:
XOR EBX,EBX
LAB_0015ad0d:
TEST EBX,EBX
JNZ 0x0015ad32
SUB R14,R15
CMP R14,-0x7fffffff
MOV RBX,-0x80000000
CMOVGE RBX,R14
MOV EAX,0x7fffffff
CMP RBX,RAX
CMOVGE RBX,RAX
LAB_0015ad32:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015ad4d
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001186a0
LAB_0015ad4d:
SHR EBX,0x1f
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015ad6b
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001186a0
LAB_0015ad6b:
MOV EAX,EBX
ADD RSP,0xa8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0015ad7b:
MOV EDI,0x10
CALL 0x00118350
MOV RBX,RAX
LAB_0015ad88:
LEA RSI,[0x1ada18]
MOV RDI,RAX
CALL 0x00118260
LAB_0015ad97:
MOV RSI,qword ptr [0x001e0ff0]
MOV RDX,qword ptr [0x001e0f70]
MOV RDI,RBX
CALL 0x00118b50
LAB_0015adad:
MOV EDI,0x10
CALL 0x00118350
MOV RBX,RAX
LAB_0015adba:
LEA RDI,[RSP + 0x68]
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0013fb0a
LAB_0015adce:
LEA RSI,[0x1af73d]
LEA RDI,[RSP + 0x88]
LEA RDX,[RSP + 0x68]
CALL 0x0012653f
LAB_0015ade7:
LEA RSI,[0x1af755]
LEA RDI,[RSP + 0x88]
CALL 0x00118ce0
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x0015ae1c
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
JMP 0x0015ae28
LAB_0015ae1c:
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
LAB_0015ae28:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_0015ae40:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0013fb0a
LAB_0015ae54:
LEA RDI,[RSP + 0x20]
MOV RSI,RSP
LEA RDX,[RSP + 0x48]
CALL 0x00126610
MOV BPL,0x1
LAB_0015ae69:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00118aa0
XOR EBP,EBP
MOV RSI,qword ptr [0x001e0ff0]
MOV RDX,qword ptr [0x001e0f70]
MOV RDI,RBX
CALL 0x00118b50
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
ulong __thiscall minja::Value::operator<(Value *this,Value *param_1)
{
Value VVar1;
double dVar2;
uint uVar3;
runtime_error *prVar4;
long *plVar5;
long *plVar6;
ulong uVar7;
int8 unaff_RBX;
long *local_c8;
ulong local_c0;
long local_b8;
long lStack_b0;
long *local_a8;
ulong local_a0;
long local_98 [2];
double local_88;
int1 local_80 [32];
int1 local_60 [32];
char local_40 [32];
VVar1 = this[0x40];
if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0015ad88 to 0015ad96 has its CatchHandler @ 0015af48 */
std::runtime_error::runtime_error(prVar4,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_001e0ff0,PTR__runtime_error_001e0f70);
}
if (((byte)((char)VVar1 - 5U) < 3) && ((byte)((char)param_1[0x40] - 5U) < 3)) {
local_88 = get<double>(this);
dVar2 = get<double>(param_1);
uVar7 = CONCAT71((int7)((ulong)unaff_RBX >> 8),local_88 < dVar2);
}
else {
if ((VVar1 != (Value)0x3) || (param_1[0x40] != (Value)0x3)) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0015adba to 0015adcd has its CatchHandler @ 0015af3b */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0015adce to 0015ade6 has its CatchHandler @ 0015af18 */
std::operator+(local_40,(string *)"Cannot compare values: ");
/* try { // try from 0015ade7 to 0015adfa has its CatchHandler @ 0015aeef */
plVar5 = (long *)std::__cxx11::string::append(local_40);
local_c8 = (long *)*plVar5;
plVar6 = plVar5 + 2;
if (local_c8 == plVar6) {
local_b8 = *plVar6;
lStack_b0 = plVar5[3];
local_c8 = &local_b8;
}
else {
local_b8 = *plVar6;
}
local_c0 = plVar5[1];
*plVar5 = (long)plVar6;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
/* try { // try from 0015ae40 to 0015ae53 has its CatchHandler @ 0015aed1 */
dump_abi_cxx11_((int)local_80,SUB81(param_1,0));
/* try { // try from 0015ae54 to 0015ae65 has its CatchHandler @ 0015aeae */
std::operator+((string *)&local_a8,(string *)&local_c8);
/* try { // try from 0015ae69 to 0015ae8d has its CatchHandler @ 0015ae8e */
std::runtime_error::runtime_error(prVar4,(string *)&local_a8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_001e0ff0,PTR__runtime_error_001e0f70);
}
get<std::__cxx11::string>();
/* try { // try from 0015acd5 to 0015acdf has its CatchHandler @ 0015af55 */
get<std::__cxx11::string>();
uVar7 = local_a0;
if (local_c0 < local_a0) {
uVar7 = local_c0;
}
if (uVar7 == 0) {
uVar7 = 0;
}
else {
uVar3 = memcmp(local_a8,local_c8,uVar7);
uVar7 = (ulong)uVar3;
}
if ((int)uVar7 == 0) {
uVar7 = 0xffffffff80000000;
if (-0x80000000 < (long)(local_a0 - local_c0)) {
uVar7 = local_a0 - local_c0;
}
if (0x7ffffffe < (long)uVar7) {
uVar7 = 0;
}
}
if (local_c8 != &local_b8) {
operator_delete(local_c8,local_b8 + 1);
}
uVar7 = uVar7 >> 0x1f & 1;
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
}
return uVar7 & 0xffffffff;
}
|
|
11,524 |
main
|
HuaiminNotSleepYet[P]QDevTools/main.cpp
|
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
QDevTool devtool;
devtool.setObject(&devtool);
devtool.show();
return a.exec();
}
|
O0
|
cpp
|
main:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdx
leaq -0x20(%rbp), %rdi
leaq -0x8(%rbp), %rsi
movl $0x60204, %ecx # imm = 0x60204
callq 0xfc30
xorl %eax, %eax
movl %eax, %esi
leaq -0x50(%rbp), %rdi
callq 0x170e0
jmp 0x3ad4b
leaq -0x50(%rbp), %rsi
movq %rsi, %rdi
callq 0x18240
jmp 0x3ad59
leaq -0x50(%rbp), %rdi
callq 0x100a0
jmp 0x3ad64
callq 0xfeb0
movl %eax, -0x60(%rbp)
jmp 0x3ad6e
movl -0x60(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x11250
leaq -0x20(%rbp), %rdi
callq 0xfcb0
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x3adb2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x11250
leaq -0x20(%rbp), %rdi
callq 0xfcb0
movq -0x58(%rbp), %rdi
callq 0xf410
|
main:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_4], 0
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov rdx, [rbp+var_10]; char **
lea rdi, [rbp+var_20]; this
lea rsi, [rbp+var_8]; int *
mov ecx, 60204h; int
call __ZN12QApplicationC1ERiPPci; QApplication::QApplication(int &,char **,int)
xor eax, eax
mov esi, eax; QWidget *
lea rdi, [rbp+var_50]; this
call _ZN8QDevToolC2EP7QWidget; QDevTool::QDevTool(QWidget *)
jmp short $+2
loc_3AD4B:
lea rsi, [rbp+var_50]; QObject *
mov rdi, rsi; this
call _ZN8QDevTool9setObjectEP7QObject; QDevTool::setObject(QObject *)
jmp short $+2
loc_3AD59:
lea rdi, [rbp+var_50]; this
call _ZN7QWidget4showEv; QWidget::show(void)
jmp short $+2
loc_3AD64:
call __ZN12QApplication4execEv; QApplication::exec(void)
mov [rbp+var_60], eax
jmp short $+2
loc_3AD6E:
mov eax, [rbp+var_60]
mov [rbp+var_4], eax
lea rdi, [rbp+var_50]; this
call _ZN8QDevToolD2Ev; QDevTool::~QDevTool()
lea rdi, [rbp+var_20]; this
call __ZN12QApplicationD1Ev; QApplication::~QApplication()
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
mov rcx, rax
mov eax, edx
mov [rbp+var_58], rcx
mov [rbp+var_5C], eax
jmp short loc_3ADB2
mov rcx, rax
mov eax, edx
mov [rbp+var_58], rcx
mov [rbp+var_5C], eax
lea rdi, [rbp+var_50]; this
call _ZN8QDevToolD2Ev; QDevTool::~QDevTool()
loc_3ADB2:
lea rdi, [rbp+var_20]; this
call __ZN12QApplicationD1Ev; QApplication::~QApplication()
mov rdi, [rbp+var_58]
call __Unwind_Resume
|
int main(int argc, const char **argv, const char **envp)
{
_BYTE v4[48]; // [rsp+10h] [rbp-50h] BYREF
_BYTE v5[16]; // [rsp+40h] [rbp-20h] BYREF
char **v6; // [rsp+50h] [rbp-10h]
int v7; // [rsp+58h] [rbp-8h] BYREF
int v8; // [rsp+5Ch] [rbp-4h]
v8 = 0;
v7 = argc;
v6 = (char **)argv;
QApplication::QApplication((QApplication *)v5, &v7, (char **)argv, 393732);
QDevTool::QDevTool((QDevTool *)v4, 0LL);
QDevTool::setObject((QDevTool *)v4, (QObject *)v4);
QWidget::show((QWidget *)v4);
v8 = QApplication::exec((QApplication *)v4);
QDevTool::~QDevTool((QDevTool *)v4);
QApplication::~QApplication((QApplication *)v5);
return v8;
}
|
main:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV dword ptr [RBP + -0x4],0x0
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x20]
LEA RSI,[RBP + -0x8]
MOV ECX,0x60204
CALL 0x0010fc30
LAB_0013ad3c:
XOR EAX,EAX
MOV ESI,EAX
LEA RDI,[RBP + -0x50]
CALL 0x001170e0
JMP 0x0013ad4b
LAB_0013ad4b:
LEA RSI,[RBP + -0x50]
MOV RDI,RSI
CALL 0x00118240
JMP 0x0013ad59
LAB_0013ad59:
LEA RDI,[RBP + -0x50]
CALL 0x001100a0
JMP 0x0013ad64
LAB_0013ad64:
CALL 0x0010feb0
LAB_0013ad69:
MOV dword ptr [RBP + -0x60],EAX
JMP 0x0013ad6e
LAB_0013ad6e:
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x4],EAX
LEA RDI,[RBP + -0x50]
CALL 0x00111250
LEA RDI,[RBP + -0x20]
CALL 0x0010fcb0
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 main(int param_1,char **param_2)
{
QDevTool local_58 [48];
QApplication local_28 [16];
char **local_18;
int local_10;
int4 local_c;
local_c = 0;
local_18 = param_2;
local_10 = param_1;
QApplication::QApplication(local_28,&local_10,param_2,0x60204);
/* try { // try from 0013ad3c to 0013ad48 has its CatchHandler @ 0013ad8f */
QDevTool::QDevTool(local_58,(QWidget *)0x0);
/* try { // try from 0013ad4b to 0013ad68 has its CatchHandler @ 0013ad9d */
QDevTool::setObject(local_58,(QObject *)local_58);
QWidget::show();
local_c = QApplication::exec();
QDevTool::~QDevTool(local_58);
QApplication::~QApplication(local_28);
return local_c;
}
|
|
11,525 |
pre_ecrecover
|
corpus-core[P]colibri-stateless/src/chains/eth/precompiles/precompiles_basic.c
|
static pre_result_t pre_ecrecover(bytes_t input, buffer_t* output, uint64_t* gas_used) {
if (input.len != 128) return PRE_INVALID_INPUT;
bytes_t hash = bytes_slice(input, 0, 32);
uint8_t v = input.data[63];
uint8_t sig[65] = {0};
uint8_t pubkey[64] = {0};
memcpy(sig, input.data + 64, 64); // copy r s
sig[64] = v > 28 ? (v % 2 ? 27 : 28) : v;
if (!secp256k1_recover(hash.data, bytes(sig, 65), pubkey)) return PRE_INVALID_INPUT;
keccak(bytes(pubkey, 64), sig);
memset(sig, 0, 12);
output->data.len = 0;
buffer_append(output, bytes(sig, 32));
*gas_used = 3000;
return PRE_SUCCESS;
}
|
O0
|
c
|
pre_ecrecover:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movl %edi, -0x18(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x80, -0x18(%rbp)
je 0x9d17f
movl $0x3, -0x4(%rbp)
jmp 0x9d2d8
movl $0x20, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movb 0x3f(%rax), %al
movb %al, -0x39(%rbp)
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x41, %edx
callq 0x231c0
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
movl $0x40, %edx
callq 0x231c0
leaq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x40, %rsi
movl $0x40, %edx
callq 0x230a0
movzbl -0x39(%rbp), %eax
cmpl $0x1c, %eax
jle 0x9d1fe
movzbl -0x39(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl $0x1c, %eax
movl $0x1b, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0xf4(%rbp)
jmp 0x9d208
movzbl -0x39(%rbp), %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
movb %al, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movl $0x41, -0xd0(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rcx
movl -0xd0(%rbp), %esi
movq -0xc8(%rbp), %rdx
callq 0xa4d90
testb $0x1, %al
jne 0x9d253
movl $0x3, -0x4(%rbp)
jmp 0x9d2d8
movl $0x40, -0xe0(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0x80(%rbp), %rdx
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0xa4990
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0xc, %edx
callq 0x231c0
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rdi
movl $0x20, -0xf0(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0xe8(%rbp)
movl -0xf0(%rbp), %esi
movq -0xe8(%rbp), %rdx
callq 0x9e080
movq -0x28(%rbp), %rax
movq $0xbb8, (%rax) # imm = 0xBB8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
pre_ecrecover:
push rbp
mov rbp, rsp
sub rsp, 100h
mov [rbp+var_18], edi
mov [rbp+var_10], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
cmp [rbp+var_18], 80h
jz short loc_9D17F
mov [rbp+var_4], 3
jmp loc_9D2D8
loc_9D17F:
mov [rbp+var_38], 20h ; ' '
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov al, [rax+3Fh]
mov [rbp+var_39], al
lea rdi, [rbp+var_80]
xor esi, esi
mov edx, 41h ; 'A'
call _memset
lea rdi, [rbp+var_C0]
xor esi, esi
mov edx, 40h ; '@'
call _memset
lea rdi, [rbp+var_80]
mov rsi, [rbp+var_10]
add rsi, 40h ; '@'
mov edx, 40h ; '@'
call _memcpy
movzx eax, [rbp+var_39]
cmp eax, 1Ch
jle short loc_9D1FE
movzx eax, [rbp+var_39]
mov ecx, 2
cdq
idiv ecx
mov eax, 1Ch
mov ecx, 1Bh
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_F4], eax
jmp short loc_9D208
loc_9D1FE:
movzx eax, [rbp+var_39]
mov [rbp+var_F4], eax
loc_9D208:
mov eax, [rbp+var_F4]
mov [rbp+var_40], al
mov rdi, [rbp+var_30]
mov [rbp+var_D0], 41h ; 'A'
lea rax, [rbp+var_80]
mov [rbp+var_C8], rax
lea rcx, [rbp+var_C0]
mov esi, [rbp+var_D0]
mov rdx, [rbp+var_C8]
call secp256k1_recover
test al, 1
jnz short loc_9D253
mov [rbp+var_4], 3
jmp loc_9D2D8
loc_9D253:
mov [rbp+var_E0], 40h ; '@'
lea rax, [rbp+var_C0]
mov [rbp+var_D8], rax
lea rdx, [rbp+var_80]
mov edi, [rbp+var_E0]
mov rsi, [rbp+var_D8]
call keccak
lea rdi, [rbp+var_80]
xor esi, esi
mov edx, 0Ch
call _memset
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
mov rdi, [rbp+var_20]
mov [rbp+var_F0], 20h ; ' '
lea rax, [rbp+var_80]
mov [rbp+var_E8], rax
mov esi, [rbp+var_F0]
mov rdx, [rbp+var_E8]
call buffer_append
mov rax, [rbp+var_28]
mov qword ptr [rax], 0BB8h
mov [rbp+var_4], 0
loc_9D2D8:
mov eax, [rbp+var_4]
add rsp, 100h
pop rbp
retn
|
long long pre_ecrecover(int a1, long long a2, _DWORD *a3, _QWORD *a4)
{
char v4; // al
char v6; // [rsp+Ch] [rbp-F4h]
_BYTE v7[64]; // [rsp+40h] [rbp-C0h] BYREF
_BYTE v8[71]; // [rsp+80h] [rbp-80h] BYREF
unsigned __int8 v9; // [rsp+C7h] [rbp-39h]
int v10; // [rsp+C8h] [rbp-38h]
long long v11; // [rsp+D0h] [rbp-30h]
_QWORD *v12; // [rsp+D8h] [rbp-28h]
_DWORD *v13; // [rsp+E0h] [rbp-20h]
int v14; // [rsp+E8h] [rbp-18h]
long long v15; // [rsp+F0h] [rbp-10h]
v14 = a1;
v15 = a2;
v13 = a3;
v12 = a4;
if ( a1 == 128 )
{
v10 = 32;
v11 = v15;
v9 = *(_BYTE *)(v15 + 63);
memset(v8, 0LL, 65LL);
memset(v7, 0LL, sizeof(v7));
memcpy(v8, v15 + 64, 64LL);
if ( v9 <= 0x1Cu )
{
v6 = v9;
}
else
{
v4 = 28;
if ( v9 % 2 )
v4 = 27;
v6 = v4;
}
v8[64] = v6;
if ( (secp256k1_recover(v11, 65LL, v8, v7) & 1) != 0 )
{
keccak(64LL, v7, v8);
memset(v8, 0LL, 12LL);
*v13 = 0;
buffer_append(v13, 32LL, v8);
*v12 = 3000LL;
return 0;
}
else
{
return 3;
}
}
else
{
return 3;
}
}
|
pre_ecrecover:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV dword ptr [RBP + -0x18],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
CMP dword ptr [RBP + -0x18],0x80
JZ 0x0019d17f
MOV dword ptr [RBP + -0x4],0x3
JMP 0x0019d2d8
LAB_0019d17f:
MOV dword ptr [RBP + -0x38],0x20
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV AL,byte ptr [RAX + 0x3f]
MOV byte ptr [RBP + -0x39],AL
LEA RDI,[RBP + -0x80]
XOR ESI,ESI
MOV EDX,0x41
CALL 0x001231c0
LEA RDI,[RBP + -0xc0]
XOR ESI,ESI
MOV EDX,0x40
CALL 0x001231c0
LEA RDI,[RBP + -0x80]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x40
MOV EDX,0x40
CALL 0x001230a0
MOVZX EAX,byte ptr [RBP + -0x39]
CMP EAX,0x1c
JLE 0x0019d1fe
MOVZX EAX,byte ptr [RBP + -0x39]
MOV ECX,0x2
CDQ
IDIV ECX
MOV EAX,0x1c
MOV ECX,0x1b
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0xf4],EAX
JMP 0x0019d208
LAB_0019d1fe:
MOVZX EAX,byte ptr [RBP + -0x39]
MOV dword ptr [RBP + -0xf4],EAX
LAB_0019d208:
MOV EAX,dword ptr [RBP + -0xf4]
MOV byte ptr [RBP + -0x40],AL
MOV RDI,qword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0xd0],0x41
LEA RAX,[RBP + -0x80]
MOV qword ptr [RBP + -0xc8],RAX
LEA RCX,[RBP + -0xc0]
MOV ESI,dword ptr [RBP + -0xd0]
MOV RDX,qword ptr [RBP + -0xc8]
CALL 0x001a4d90
TEST AL,0x1
JNZ 0x0019d253
MOV dword ptr [RBP + -0x4],0x3
JMP 0x0019d2d8
LAB_0019d253:
MOV dword ptr [RBP + -0xe0],0x40
LEA RAX,[RBP + -0xc0]
MOV qword ptr [RBP + -0xd8],RAX
LEA RDX,[RBP + -0x80]
MOV EDI,dword ptr [RBP + -0xe0]
MOV RSI,qword ptr [RBP + -0xd8]
CALL 0x001a4990
LEA RDI,[RBP + -0x80]
XOR ESI,ESI
MOV EDX,0xc
CALL 0x001231c0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0xf0],0x20
LEA RAX,[RBP + -0x80]
MOV qword ptr [RBP + -0xe8],RAX
MOV ESI,dword ptr [RBP + -0xf0]
MOV RDX,qword ptr [RBP + -0xe8]
CALL 0x0019e080
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],0xbb8
MOV dword ptr [RBP + -0x4],0x0
LAB_0019d2d8:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x100
POP RBP
RET
|
int4 pre_ecrecover(int param_1,long param_2,int4 *param_3,int8 *param_4)
{
ulong uVar1;
int1 local_c8 [64];
int1 local_88 [64];
byte local_48;
byte local_41;
int4 local_40;
long local_38;
int8 *local_30;
int4 *local_28;
int local_20;
long local_18;
int4 local_c;
if (param_1 == 0x80) {
local_40 = 0x20;
local_41 = *(byte *)(param_2 + 0x3f);
local_38 = param_2;
local_30 = param_4;
local_28 = param_3;
local_20 = param_1;
local_18 = param_2;
memset(local_88,0,0x41);
memset(local_c8,0,0x40);
memcpy(local_88,(void *)(local_18 + 0x40),0x40);
local_48 = local_41;
if ((0x1c < local_41) && (local_48 = 0x1c, (uint)local_41 % 2 != 0)) {
local_48 = 0x1b;
}
uVar1 = secp256k1_recover(local_38,0x41,local_88,local_c8);
if ((uVar1 & 1) == 0) {
local_c = 3;
}
else {
keccak(0x40,local_c8,local_88);
memset(local_88,0,0xc);
*local_28 = 0;
buffer_append(local_28,0x20,local_88);
*local_30 = 3000;
local_c = 0;
}
}
else {
local_c = 3;
}
return local_c;
}
|
|
11,526 |
pre_ecrecover
|
corpus-core[P]colibri-stateless/src/chains/eth/precompiles/precompiles_basic.c
|
static pre_result_t pre_ecrecover(bytes_t input, buffer_t* output, uint64_t* gas_used) {
if (input.len != 128) return PRE_INVALID_INPUT;
bytes_t hash = bytes_slice(input, 0, 32);
uint8_t v = input.data[63];
uint8_t sig[65] = {0};
uint8_t pubkey[64] = {0};
memcpy(sig, input.data + 64, 64); // copy r s
sig[64] = v > 28 ? (v % 2 ? 27 : 28) : v;
if (!secp256k1_recover(hash.data, bytes(sig, 65), pubkey)) return PRE_INVALID_INPUT;
keccak(bytes(pubkey, 64), sig);
memset(sig, 0, 12);
output->data.len = 0;
buffer_append(output, bytes(sig, 32));
*gas_used = 3000;
return PRE_SUCCESS;
}
|
O2
|
c
|
pre_ecrecover:
cmpl $0x80, %edi
jne 0x4ab1a
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movzbl 0x3f(%rsi), %eax
xorps %xmm0, %xmm0
movq %rsp, %rcx
movaps %xmm0, 0x30(%rcx)
movaps %xmm0, 0x20(%rcx)
movaps %xmm0, 0x10(%rcx)
movaps %xmm0, (%rcx)
movups 0x40(%rsi), %xmm0
movups 0x50(%rsi), %xmm1
movups 0x60(%rsi), %xmm2
movups 0x70(%rsi), %xmm3
leaq 0x40(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm1, 0x10(%rdx)
movaps %xmm2, 0x20(%rdx)
movaps %xmm3, 0x30(%rdx)
movl %eax, %edi
andb $0x1, %dil
movb $0x1c, %r8b
subb %dil, %r8b
cmpb $0x1d, %al
movzbl %r8b, %edi
cmovbl %eax, %edi
movb %dil, 0x40(%rdx)
pushq $0x41
popq %rax
movq %rsi, %rdi
movl %eax, %esi
callq 0x4ee9d
testb %al, %al
je 0x4ab1e
pushq $0x40
popq %rdi
movq %rsp, %rsi
leaq 0x40(%rsp), %r15
movq %r15, %rdx
callq 0x4ebe8
andl $0x0, 0x8(%r15)
andq $0x0, (%r15)
andl $0x0, (%r14)
pushq $0x20
popq %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x4b08b
movq $0xbb8, (%rbx) # imm = 0xBB8
xorl %eax, %eax
jmp 0x4ab21
pushq $0x3
popq %rax
retq
pushq $0x3
popq %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
pre_ecrecover:
cmp edi, 80h
jnz loc_4AB1A
push r15
push r14
push rbx
sub rsp, 90h
mov rbx, rcx
mov r14, rdx
movzx eax, byte ptr [rsi+3Fh]
xorps xmm0, xmm0
mov rcx, rsp
movaps xmmword ptr [rcx+30h], xmm0
movaps xmmword ptr [rcx+20h], xmm0
movaps xmmword ptr [rcx+10h], xmm0
movaps xmmword ptr [rcx], xmm0
movups xmm0, xmmword ptr [rsi+40h]
movups xmm1, xmmword ptr [rsi+50h]
movups xmm2, xmmword ptr [rsi+60h]
movups xmm3, xmmword ptr [rsi+70h]
lea rdx, [rsp+0A8h+var_68]
movaps xmmword ptr [rdx], xmm0
movaps xmmword ptr [rdx+10h], xmm1
movaps xmmword ptr [rdx+20h], xmm2
movaps xmmword ptr [rdx+30h], xmm3
mov edi, eax
and dil, 1
mov r8b, 1Ch
sub r8b, dil
cmp al, 1Dh
movzx edi, r8b
cmovb edi, eax
mov [rdx+40h], dil
push 41h ; 'A'
pop rax
mov rdi, rsi
mov esi, eax
call secp256k1_recover
test al, al
jz short loc_4AB1E
push 40h ; '@'
pop rdi
mov rsi, rsp
lea r15, [rsp+0A8h+var_68]
mov rdx, r15
call keccak
and dword ptr [r15+8], 0
and qword ptr [r15], 0
and dword ptr [r14], 0
push 20h ; ' '
pop rsi
mov rdi, r14
mov rdx, r15
call buffer_append
mov qword ptr [rbx], 0BB8h
xor eax, eax
jmp short loc_4AB21
loc_4AB1A:
push 3
pop rax
retn
loc_4AB1E:
push 3
pop rax
loc_4AB21:
add rsp, 90h
pop rbx
pop r14
pop r15
retn
|
long long pre_ecrecover(int a1, long long a2, _DWORD *a3, _QWORD *a4)
{
unsigned __int8 v6; // al
__int128 v7; // xmm1
__int128 v8; // xmm2
__int128 v9; // xmm3
unsigned __int8 v10; // di
_BYTE v12[64]; // [rsp-40h] [rbp-A8h] BYREF
_OWORD v13[4]; // [rsp+0h] [rbp-68h] BYREF
unsigned __int8 v14; // [rsp+40h] [rbp-28h]
if ( a1 != 128 )
return 3LL;
v6 = *(_BYTE *)(a2 + 63);
memset(v12, 0, sizeof(v12));
v7 = *(_OWORD *)(a2 + 80);
v8 = *(_OWORD *)(a2 + 96);
v9 = *(_OWORD *)(a2 + 112);
v13[0] = *(_OWORD *)(a2 + 64);
v13[1] = v7;
v13[2] = v8;
v13[3] = v9;
v10 = 28 - (v6 & 1);
if ( v6 < 0x1Du )
v10 = v6;
v14 = v10;
if ( !(unsigned __int8)secp256k1_recover(a2, 65LL, v13, v12) )
return 3LL;
keccak(64LL, v12, v13);
DWORD2(v13[0]) = 0;
*(_QWORD *)&v13[0] = 0LL;
*a3 = 0;
buffer_append(a3, 32LL, v13);
*a4 = 3000LL;
return 0LL;
}
|
pre_ecrecover:
CMP EDI,0x80
JNZ 0x0014ab1a
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV RBX,RCX
MOV R14,RDX
MOVZX EAX,byte ptr [RSI + 0x3f]
XORPS XMM0,XMM0
MOV RCX,RSP
MOVAPS xmmword ptr [RCX + 0x30],XMM0
MOVAPS xmmword ptr [RCX + 0x20],XMM0
MOVAPS xmmword ptr [RCX + 0x10],XMM0
MOVAPS xmmword ptr [RCX],XMM0
MOVUPS XMM0,xmmword ptr [RSI + 0x40]
MOVUPS XMM1,xmmword ptr [RSI + 0x50]
MOVUPS XMM2,xmmword ptr [RSI + 0x60]
MOVUPS XMM3,xmmword ptr [RSI + 0x70]
LEA RDX,[RSP + 0x40]
MOVAPS xmmword ptr [RDX],XMM0
MOVAPS xmmword ptr [RDX + 0x10],XMM1
MOVAPS xmmword ptr [RDX + 0x20],XMM2
MOVAPS xmmword ptr [RDX + 0x30],XMM3
MOV EDI,EAX
AND DIL,0x1
MOV R8B,0x1c
SUB R8B,DIL
CMP AL,0x1d
MOVZX EDI,R8B
CMOVC EDI,EAX
MOV byte ptr [RDX + 0x40],DIL
PUSH 0x41
POP RAX
MOV RDI,RSI
MOV ESI,EAX
CALL 0x0014ee9d
TEST AL,AL
JZ 0x0014ab1e
PUSH 0x40
POP RDI
MOV RSI,RSP
LEA R15,[RSP + 0x40]
MOV RDX,R15
CALL 0x0014ebe8
AND dword ptr [R15 + 0x8],0x0
AND qword ptr [R15],0x0
AND dword ptr [R14],0x0
PUSH 0x20
POP RSI
MOV RDI,R14
MOV RDX,R15
CALL 0x0014b08b
MOV qword ptr [RBX],0xbb8
XOR EAX,EAX
JMP 0x0014ab21
LAB_0014ab1a:
PUSH 0x3
POP RAX
RET
LAB_0014ab1e:
PUSH 0x3
POP RAX
LAB_0014ab21:
ADD RSP,0x90
POP RBX
POP R14
POP R15
RET
|
int8 pre_ecrecover(int param_1,long param_2,int4 *param_3,int8 *param_4)
{
byte bVar1;
char cVar2;
int8 uVar3;
int8 local_a8;
int8 uStack_a0;
int8 local_98;
int8 uStack_90;
int8 local_88;
int8 uStack_80;
int8 local_78;
int8 uStack_70;
int8 local_68;
int4 uStack_60;
int4 uStack_5c;
int4 local_58;
int4 uStack_54;
int4 uStack_50;
int4 uStack_4c;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int4 local_38;
int4 uStack_34;
int4 uStack_30;
int4 uStack_2c;
byte local_28;
if (param_1 == 0x80) {
bVar1 = *(byte *)(param_2 + 0x3f);
local_78 = 0;
uStack_70 = 0;
local_88 = 0;
uStack_80 = 0;
local_98 = 0;
uStack_90 = 0;
local_a8 = 0;
uStack_a0 = 0;
local_68 = *(int8 *)(param_2 + 0x40);
uStack_60 = *(int4 *)(param_2 + 0x48);
uStack_5c = *(int4 *)(param_2 + 0x4c);
local_58 = *(int4 *)(param_2 + 0x50);
uStack_54 = *(int4 *)(param_2 + 0x54);
uStack_50 = *(int4 *)(param_2 + 0x58);
uStack_4c = *(int4 *)(param_2 + 0x5c);
local_48 = *(int4 *)(param_2 + 0x60);
uStack_44 = *(int4 *)(param_2 + 100);
uStack_40 = *(int4 *)(param_2 + 0x68);
uStack_3c = *(int4 *)(param_2 + 0x6c);
local_38 = *(int4 *)(param_2 + 0x70);
uStack_34 = *(int4 *)(param_2 + 0x74);
uStack_30 = *(int4 *)(param_2 + 0x78);
uStack_2c = *(int4 *)(param_2 + 0x7c);
local_28 = 0x1c - (bVar1 & 1);
if (bVar1 < 0x1d) {
local_28 = bVar1;
}
cVar2 = secp256k1_recover(param_2,0x41);
if (cVar2 == '\0') {
uVar3 = 3;
}
else {
keccak(0x40,&local_a8,&local_68);
uStack_60 = 0;
local_68 = 0;
*param_3 = 0;
buffer_append(param_3,0x20,&local_68);
*param_4 = 3000;
uVar3 = 0;
}
return uVar3;
}
return 3;
}
|
|
11,527 |
pre_ecrecover
|
corpus-core[P]colibri-stateless/src/chains/eth/precompiles/precompiles_basic.c
|
static pre_result_t pre_ecrecover(bytes_t input, buffer_t* output, uint64_t* gas_used) {
if (input.len != 128) return PRE_INVALID_INPUT;
bytes_t hash = bytes_slice(input, 0, 32);
uint8_t v = input.data[63];
uint8_t sig[65] = {0};
uint8_t pubkey[64] = {0};
memcpy(sig, input.data + 64, 64); // copy r s
sig[64] = v > 28 ? (v % 2 ? 27 : 28) : v;
if (!secp256k1_recover(hash.data, bytes(sig, 65), pubkey)) return PRE_INVALID_INPUT;
keccak(bytes(pubkey, 64), sig);
memset(sig, 0, 12);
output->data.len = 0;
buffer_append(output, bytes(sig, 32));
*gas_used = 3000;
return PRE_SUCCESS;
}
|
O3
|
c
|
pre_ecrecover:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movl $0x3, %ebp
cmpl $0x80, %edi
jne 0x52b3e
movq %rcx, %rbx
movq %rdx, %r14
movzbl 0x3f(%rsi), %eax
xorps %xmm0, %xmm0
movq %rsp, %rcx
movaps %xmm0, 0x30(%rcx)
movaps %xmm0, 0x20(%rcx)
movaps %xmm0, 0x10(%rcx)
movaps %xmm0, (%rcx)
movups 0x40(%rsi), %xmm0
movups 0x50(%rsi), %xmm1
movups 0x60(%rsi), %xmm2
movups 0x70(%rsi), %xmm3
leaq 0x40(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm1, 0x10(%rdx)
movaps %xmm2, 0x20(%rdx)
movaps %xmm3, 0x30(%rdx)
movl %eax, %edi
andb $0x1, %dil
movb $0x1c, %r8b
subb %dil, %r8b
cmpb $0x1d, %al
movzbl %r8b, %edi
cmovbl %eax, %edi
movb %dil, 0x40(%rdx)
movq %rsi, %rdi
movl $0x41, %esi
callq 0x5703c
movl $0x3, %ebp
testb %al, %al
je 0x52b3e
movq %rsp, %rsi
leaq 0x40(%rsp), %r15
movl $0x40, %edi
movq %r15, %rdx
callq 0x56d5c
xorl %ebp, %ebp
movl %ebp, 0x8(%r15)
movq $0x0, (%r15)
movl %ebp, (%r14)
movq %r14, %rdi
movl $0x20, %esi
movq %r15, %rdx
callq 0x53029
movq $0xbb8, (%rbx) # imm = 0xBB8
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
pre_ecrecover:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov ebp, 3
cmp edi, 80h
jnz loc_52B3E
mov rbx, rcx
mov r14, rdx
movzx eax, byte ptr [rsi+3Fh]
xorps xmm0, xmm0
mov rcx, rsp
movaps xmmword ptr [rcx+30h], xmm0
movaps xmmword ptr [rcx+20h], xmm0
movaps xmmword ptr [rcx+10h], xmm0
movaps xmmword ptr [rcx], xmm0
movups xmm0, xmmword ptr [rsi+40h]
movups xmm1, xmmword ptr [rsi+50h]
movups xmm2, xmmword ptr [rsi+60h]
movups xmm3, xmmword ptr [rsi+70h]
lea rdx, [rsp+0A8h+var_68]
movaps xmmword ptr [rdx], xmm0
movaps xmmword ptr [rdx+10h], xmm1
movaps xmmword ptr [rdx+20h], xmm2
movaps xmmword ptr [rdx+30h], xmm3
mov edi, eax
and dil, 1
mov r8b, 1Ch
sub r8b, dil
cmp al, 1Dh
movzx edi, r8b
cmovb edi, eax
mov [rdx+40h], dil
mov rdi, rsi
mov esi, 41h ; 'A'
call secp256k1_recover
mov ebp, 3
test al, al
jz short loc_52B3E
mov rsi, rsp
lea r15, [rsp+0A8h+var_68]
mov edi, 40h ; '@'
mov rdx, r15
call keccak
xor ebp, ebp
mov [r15+8], ebp
mov qword ptr [r15], 0
mov [r14], ebp
mov rdi, r14
mov esi, 20h ; ' '
mov rdx, r15
call buffer_append
mov qword ptr [rbx], 0BB8h
loc_52B3E:
mov eax, ebp
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long pre_ecrecover(int a1, long long a2, _DWORD *a3, _QWORD *a4)
{
unsigned int v4; // ebp
unsigned __int8 v7; // al
__int128 v8; // xmm1
__int128 v9; // xmm2
__int128 v10; // xmm3
unsigned __int8 v11; // di
_BYTE v13[64]; // [rsp+0h] [rbp-A8h] BYREF
_OWORD v14[4]; // [rsp+40h] [rbp-68h] BYREF
unsigned __int8 v15; // [rsp+80h] [rbp-28h]
v4 = 3;
if ( a1 == 128 )
{
v7 = *(_BYTE *)(a2 + 63);
memset(v13, 0, sizeof(v13));
v8 = *(_OWORD *)(a2 + 80);
v9 = *(_OWORD *)(a2 + 96);
v10 = *(_OWORD *)(a2 + 112);
v14[0] = *(_OWORD *)(a2 + 64);
v14[1] = v8;
v14[2] = v9;
v14[3] = v10;
v11 = 28 - (v7 & 1);
if ( v7 < 0x1Du )
v11 = v7;
v15 = v11;
v4 = 3;
if ( (unsigned __int8)secp256k1_recover(a2, 65LL, v14, v13) )
{
keccak(64LL, v13, v14);
v4 = 0;
DWORD2(v14[0]) = 0;
*(_QWORD *)&v14[0] = 0LL;
*a3 = 0;
buffer_append(a3, 32LL, v14);
*a4 = 3000LL;
}
}
return v4;
}
|
pre_ecrecover:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV EBP,0x3
CMP EDI,0x80
JNZ 0x00152b3e
MOV RBX,RCX
MOV R14,RDX
MOVZX EAX,byte ptr [RSI + 0x3f]
XORPS XMM0,XMM0
MOV RCX,RSP
MOVAPS xmmword ptr [RCX + 0x30],XMM0
MOVAPS xmmword ptr [RCX + 0x20],XMM0
MOVAPS xmmword ptr [RCX + 0x10],XMM0
MOVAPS xmmword ptr [RCX],XMM0
MOVUPS XMM0,xmmword ptr [RSI + 0x40]
MOVUPS XMM1,xmmword ptr [RSI + 0x50]
MOVUPS XMM2,xmmword ptr [RSI + 0x60]
MOVUPS XMM3,xmmword ptr [RSI + 0x70]
LEA RDX,[RSP + 0x40]
MOVAPS xmmword ptr [RDX],XMM0
MOVAPS xmmword ptr [RDX + 0x10],XMM1
MOVAPS xmmword ptr [RDX + 0x20],XMM2
MOVAPS xmmword ptr [RDX + 0x30],XMM3
MOV EDI,EAX
AND DIL,0x1
MOV R8B,0x1c
SUB R8B,DIL
CMP AL,0x1d
MOVZX EDI,R8B
CMOVC EDI,EAX
MOV byte ptr [RDX + 0x40],DIL
MOV RDI,RSI
MOV ESI,0x41
CALL 0x0015703c
MOV EBP,0x3
TEST AL,AL
JZ 0x00152b3e
MOV RSI,RSP
LEA R15,[RSP + 0x40]
MOV EDI,0x40
MOV RDX,R15
CALL 0x00156d5c
XOR EBP,EBP
MOV dword ptr [R15 + 0x8],EBP
MOV qword ptr [R15],0x0
MOV dword ptr [R14],EBP
MOV RDI,R14
MOV ESI,0x20
MOV RDX,R15
CALL 0x00153029
MOV qword ptr [RBX],0xbb8
LAB_00152b3e:
MOV EAX,EBP
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 pre_ecrecover(int param_1,long param_2,int4 *param_3,int8 *param_4)
{
byte bVar1;
char cVar2;
int4 uVar3;
int8 local_a8;
int8 uStack_a0;
int8 local_98;
int8 uStack_90;
int8 local_88;
int8 uStack_80;
int8 local_78;
int8 uStack_70;
int8 local_68;
int4 uStack_60;
int4 uStack_5c;
int4 local_58;
int4 uStack_54;
int4 uStack_50;
int4 uStack_4c;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int4 local_38;
int4 uStack_34;
int4 uStack_30;
int4 uStack_2c;
byte local_28;
uVar3 = 3;
if (param_1 == 0x80) {
bVar1 = *(byte *)(param_2 + 0x3f);
local_78 = 0;
uStack_70 = 0;
local_88 = 0;
uStack_80 = 0;
local_98 = 0;
uStack_90 = 0;
local_a8 = 0;
uStack_a0 = 0;
local_68 = *(int8 *)(param_2 + 0x40);
uStack_60 = *(int4 *)(param_2 + 0x48);
uStack_5c = *(int4 *)(param_2 + 0x4c);
local_58 = *(int4 *)(param_2 + 0x50);
uStack_54 = *(int4 *)(param_2 + 0x54);
uStack_50 = *(int4 *)(param_2 + 0x58);
uStack_4c = *(int4 *)(param_2 + 0x5c);
local_48 = *(int4 *)(param_2 + 0x60);
uStack_44 = *(int4 *)(param_2 + 100);
uStack_40 = *(int4 *)(param_2 + 0x68);
uStack_3c = *(int4 *)(param_2 + 0x6c);
local_38 = *(int4 *)(param_2 + 0x70);
uStack_34 = *(int4 *)(param_2 + 0x74);
uStack_30 = *(int4 *)(param_2 + 0x78);
uStack_2c = *(int4 *)(param_2 + 0x7c);
local_28 = 0x1c - (bVar1 & 1);
if (bVar1 < 0x1d) {
local_28 = bVar1;
}
cVar2 = secp256k1_recover(param_2,0x41);
uVar3 = 3;
if (cVar2 != '\0') {
keccak(0x40,&local_a8,&local_68);
uVar3 = 0;
uStack_60 = 0;
local_68 = 0;
*param_3 = 0;
buffer_append(param_3,0x20,&local_68);
*param_4 = 3000;
}
}
return uVar3;
}
|
|
11,528 |
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char)
|
monkey531[P]llama/common/json.hpp
|
void dump_integer(NumberType x)
{
static constexpr std::array<std::array<char, 2>, 100> digits_to_99
{
{
{{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
{{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
{{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
{{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
{{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
{{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
{{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
{{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
{{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
{{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
}
};
// special case for "0"
if (x == 0)
{
o->write_character('0');
return;
}
// use a pointer to fill the buffer
auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
number_unsigned_t abs_value;
unsigned int n_chars{};
if (is_negative_number(x))
{
*buffer_ptr = '-';
abs_value = remove_sign(static_cast<number_integer_t>(x));
// account one more byte for the minus sign
n_chars = 1 + count_digits(abs_value);
}
else
{
abs_value = static_cast<number_unsigned_t>(x);
n_chars = count_digits(abs_value);
}
// spare 1 byte for '\0'
JSON_ASSERT(n_chars < number_buffer.size() - 1);
// jump to the end to generate the string from backward,
// so we later avoid reversing the result
buffer_ptr += n_chars;
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
while (abs_value >= 100)
{
const auto digits_index = static_cast<unsigned>((abs_value % 100));
abs_value /= 100;
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
if (abs_value >= 10)
{
const auto digits_index = static_cast<unsigned>(abs_value);
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
else
{
*(--buffer_ptr) = static_cast<char>('0' + abs_value);
}
o->write_characters(number_buffer.data(), n_chars);
}
|
O3
|
cpp
|
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char):
pushq %rbx
testq %rsi, %rsi
je 0xda6a8
movq %rsi, %rcx
leaq 0x10(%rdi), %rsi
cmpq $0xa, %rcx
jae 0xda6b9
leaq 0x11(%rdi), %r9
movl $0x1, %r8d
jmp 0xda784
movq (%rdi), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x30, %esi
popq %rbx
jmpq *%rax
movl $0x4, %r9d
movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B
movq %rcx, %r8
cmpq $0x63, %r8
jbe 0xda704
cmpq $0x3e7, %r8 # imm = 0x3E7
jbe 0xda70a
cmpq $0x2710, %r8 # imm = 0x2710
jb 0xda70d
movq %r8, %rax
mulq %r10
shrq $0xb, %rdx
addl $0x4, %r9d
cmpq $0x1869f, %r8 # imm = 0x1869F
movq %rdx, %r8
ja 0xda6cc
addl $-0x3, %r9d
jmp 0xda70d
addl $-0x2, %r9d
jmp 0xda70d
decl %r9d
cmpl $0x3f, %r9d
jae 0xda79b
movl %r9d, %r8d
leaq (%rsi,%r8), %r9
cmpq $0x64, %rcx
jb 0xda766
movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3
leaq 0x3e7d0(%rip), %r11 # 0x118f05
movq %rcx, %rax
shrq $0x2, %rax
mulq %r10
shrq $0x2, %rdx
imull $0x64, %edx, %eax
movl %ecx, %ebx
subl %eax, %ebx
movzwl (%r11,%rbx,2), %eax
movw %ax, -0x2(%r9)
addq $-0x2, %r9
cmpq $0x270f, %rcx # imm = 0x270F
movq %rdx, %rcx
ja 0xda735
jmp 0xda769
movq %rcx, %rdx
cmpq $0xa, %rdx
jb 0xda781
leaq 0x3e78f(%rip), %rax # 0x118f05
movzwl (%rax,%rdx,2), %eax
movw %ax, -0x2(%r9)
jmp 0xda78b
movq %rdx, %rcx
orb $0x30, %cl
movb %cl, -0x1(%r9)
movq (%rdi), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
movq %r8, %rdx
popq %rbx
jmpq *%rax
leaq 0x37b3a(%rip), %rdi # 0x1122dc
leaq 0x3020a(%rip), %rdx # 0x10a9b3
leaq 0x3c1c7(%rip), %rcx # 0x116977
movl $0x4952, %esi # imm = 0x4952
xorl %eax, %eax
callq 0x1e500
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
push rbx
test rsi, rsi
jz short loc_DA6A8
mov rcx, rsi
lea rsi, [rdi+10h]
cmp rcx, 0Ah
jnb short loc_DA6B9
lea r9, [rdi+11h]
mov r8d, 1
jmp loc_DA784
loc_DA6A8:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax]
mov esi, 30h ; '0'
pop rbx
jmp rax
loc_DA6B9:
mov r9d, 4
mov r10, 346DC5D63886594Bh
mov r8, rcx
loc_DA6CC:
cmp r8, 63h ; 'c'
jbe short loc_DA704
cmp r8, 3E7h
jbe short loc_DA70A
cmp r8, 2710h
jb short loc_DA70D
mov rax, r8
mul r10
shr rdx, 0Bh
add r9d, 4
cmp r8, 1869Fh
mov r8, rdx
ja short loc_DA6CC
add r9d, 0FFFFFFFDh
jmp short loc_DA70D
loc_DA704:
add r9d, 0FFFFFFFEh
jmp short loc_DA70D
loc_DA70A:
dec r9d
loc_DA70D:
cmp r9d, 3Fh ; '?'
jnb loc_DA79B
mov r8d, r9d
lea r9, [rsi+r8]
cmp rcx, 64h ; 'd'
jb short loc_DA766
mov r10, 28F5C28F5C28F5C3h
lea r11, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
loc_DA735:
mov rax, rcx
shr rax, 2
mul r10
shr rdx, 2
imul eax, edx, 64h ; 'd'
mov ebx, ecx
sub ebx, eax
movzx eax, word ptr [r11+rbx*2]
mov [r9-2], ax
add r9, 0FFFFFFFFFFFFFFFEh
cmp rcx, 270Fh
mov rcx, rdx
ja short loc_DA735
jmp short loc_DA769
loc_DA766:
mov rdx, rcx
loc_DA769:
cmp rdx, 0Ah
jb short loc_DA781
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
movzx eax, word ptr [rax+rdx*2]
mov [r9-2], ax
jmp short loc_DA78B
loc_DA781:
mov rcx, rdx
loc_DA784:
or cl, 30h
mov [r9-1], cl
loc_DA78B:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax+8]
mov rdx, r8
pop rbx
jmp rax
loc_DA79B:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1"
mov esi, 4952h
xor eax, eax
call _ggml_abort
|
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
_QWORD *a1,
unsigned long long a2)
{
unsigned long long v2; // rcx
_QWORD *v3; // rsi
char *v4; // r9
long long v5; // r8
unsigned int v7; // r9d
unsigned long long v8; // r8
bool v9; // cc
unsigned long long v10; // rdx
if ( !a2 )
return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL);
v2 = a2;
v3 = a1 + 2;
if ( v2 < 0xA )
{
v4 = (char *)a1 + 17;
v5 = 1LL;
goto LABEL_21;
}
v7 = 4;
v8 = v2;
while ( 1 )
{
if ( v8 <= 0x63 )
{
v7 -= 2;
goto LABEL_13;
}
if ( v8 <= 0x3E7 )
break;
if ( v8 < 0x2710 )
goto LABEL_13;
v7 += 4;
v9 = v8 <= 0x1869F;
v8 /= 0x2710uLL;
if ( v9 )
{
v7 -= 3;
goto LABEL_13;
}
}
--v7;
LABEL_13:
if ( v7 < 0x3F )
{
v5 = v7;
v4 = (char *)v3 + v7;
if ( v2 < 0x64 )
{
v10 = v2;
}
else
{
do
{
v10 = v2 / 0x64;
*((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v2 % 0x64];
v4 -= 2;
v9 = v2 <= 0x270F;
v2 /= 0x64uLL;
}
while ( !v9 );
}
if ( v10 >= 0xA )
{
*((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v10];
return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))(
*a1,
v3,
v5,
v2);
}
v2 = v10;
LABEL_21:
LOBYTE(v2) = v2 | 0x30;
*(v4 - 1) = v2;
return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))(
*a1,
v3,
v5,
v2);
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
18770LL,
"GGML_ASSERT(%s) failed",
"n_chars < number_buffer.size() - 1");
return ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
18770LL);
}
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
PUSH RBX
TEST RSI,RSI
JZ 0x001da6a8
MOV RCX,RSI
LEA RSI,[RDI + 0x10]
CMP RCX,0xa
JNC 0x001da6b9
LEA R9,[RDI + 0x11]
MOV R8D,0x1
JMP 0x001da784
LAB_001da6a8:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV ESI,0x30
POP RBX
JMP RAX
LAB_001da6b9:
MOV R9D,0x4
MOV R10,0x346dc5d63886594b
MOV R8,RCX
LAB_001da6cc:
CMP R8,0x63
JBE 0x001da704
CMP R8,0x3e7
JBE 0x001da70a
CMP R8,0x2710
JC 0x001da70d
MOV RAX,R8
MUL R10
SHR RDX,0xb
ADD R9D,0x4
CMP R8,0x1869f
MOV R8,RDX
JA 0x001da6cc
ADD R9D,-0x3
JMP 0x001da70d
LAB_001da704:
ADD R9D,-0x2
JMP 0x001da70d
LAB_001da70a:
DEC R9D
LAB_001da70d:
CMP R9D,0x3f
JNC 0x001da79b
MOV R8D,R9D
LEA R9,[RSI + R8*0x1]
CMP RCX,0x64
JC 0x001da766
MOV R10,0x28f5c28f5c28f5c3
LEA R11,[0x218f05]
LAB_001da735:
MOV RAX,RCX
SHR RAX,0x2
MUL R10
SHR RDX,0x2
IMUL EAX,EDX,0x64
MOV EBX,ECX
SUB EBX,EAX
MOVZX EAX,word ptr [R11 + RBX*0x2]
MOV word ptr [R9 + -0x2],AX
ADD R9,-0x2
CMP RCX,0x270f
MOV RCX,RDX
JA 0x001da735
JMP 0x001da769
LAB_001da766:
MOV RDX,RCX
LAB_001da769:
CMP RDX,0xa
JC 0x001da781
LEA RAX,[0x218f05]
MOVZX EAX,word ptr [RAX + RDX*0x2]
MOV word ptr [R9 + -0x2],AX
JMP 0x001da78b
LAB_001da781:
MOV RCX,RDX
LAB_001da784:
OR CL,0x30
MOV byte ptr [R9 + -0x1],CL
LAB_001da78b:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,R8
POP RBX
JMP RAX
LAB_001da79b:
LEA RDI,[0x2122dc]
LEA RDX,[0x20a9b3]
LEA RCX,[0x216977]
MOV ESI,0x4952
XOR EAX,EAX
CALL 0x0011e500
|
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_
(int8 *param_1,ulong param_2)
{
bool bVar1;
ulong uVar2;
ulong uVar3;
int iVar4;
long lVar5;
if (param_2 == 0) {
/* WARNING: Could not recover jumptable at 0x001da6b7. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30);
return;
}
if (param_2 < 10) {
lVar5 = (long)param_1 + 0x11;
uVar3 = 1;
}
else {
uVar3 = 4;
uVar2 = param_2;
do {
iVar4 = (int)uVar3;
if (uVar2 < 100) {
uVar3 = (ulong)(iVar4 - 2);
goto LAB_001da70d;
}
if (uVar2 < 1000) {
uVar3 = (ulong)(iVar4 - 1);
goto LAB_001da70d;
}
if (uVar2 < 10000) goto LAB_001da70d;
uVar3 = (ulong)(iVar4 + 4);
bVar1 = 99999 < uVar2;
uVar2 = uVar2 / 10000;
} while (bVar1);
uVar3 = (ulong)(iVar4 + 1);
LAB_001da70d:
if (0x3e < (uint)uVar3) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x4952,
"GGML_ASSERT(%s) failed","n_chars < number_buffer.size() - 1");
}
lVar5 = (long)(param_1 + 2) + uVar3;
if (99 < param_2) {
do {
uVar2 = param_2 / 100;
*(int2 *)(lVar5 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (ulong)(uint)((int)param_2 + (int)uVar2 * -100) * 2);
lVar5 = lVar5 + -2;
bVar1 = 9999 < param_2;
param_2 = uVar2;
} while (bVar1);
}
if (9 < param_2) {
*(int2 *)(lVar5 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ param_2 * 2);
goto LAB_001da78b;
}
}
*(byte *)(lVar5 + -1) = (byte)param_2 | 0x30;
LAB_001da78b:
/* WARNING: Could not recover jumptable at 0x001da799. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(long *)*param_1 + 8))((long *)*param_1,param_1 + 2,uVar3);
return;
}
|
|
11,529 |
compute_nth_derivative
|
tsotchke[P]eshkol/src/core/utils/autodiff.c
|
float compute_nth_derivative(Arena* arena, float (*f)(VectorF*), float x, size_t order) {
assert(arena != NULL);
assert(f != NULL);
assert(order > 0);
// Special case for first derivative
if (order == 1) {
VectorF* x_vec = vector_f_create(arena, 1);
if (!x_vec) return 0.0f;
x_vec->data[0] = x;
VectorF* grad = compute_gradient_autodiff(arena, f, x_vec);
if (!grad) return 0.0f;
return grad->data[0];
}
// Special case for second derivative (Hessian)
if (order == 2) {
VectorF* x_vec = vector_f_create(arena, 1);
if (!x_vec) return 0.0f;
x_vec->data[0] = x;
VectorF** hessian = compute_hessian(arena, f, x_vec);
if (!hessian || !hessian[0]) return 0.0f;
return hessian[0]->data[0];
}
// General case: use finite differences
return compute_derivative_recursive(arena, f, x, order);
}
|
O0
|
c
|
compute_nth_derivative:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movss %xmm0, -0x1c(%rbp)
movq %rdx, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xb7f2
jmp 0xb811
leaq 0xc81(%rip), %rdi # 0xc47a
leaq 0x28dc(%rip), %rsi # 0xe0dc
movl $0x407, %edx # imm = 0x407
leaq 0x329e(%rip), %rcx # 0xeaaa
callq 0x10b0
cmpq $0x0, -0x18(%rbp)
je 0xb81a
jmp 0xb839
leaq 0x23d5(%rip), %rdi # 0xdbf6
leaq 0x28b4(%rip), %rsi # 0xe0dc
movl $0x408, %edx # imm = 0x408
leaq 0x3276(%rip), %rcx # 0xeaaa
callq 0x10b0
cmpq $0x0, -0x28(%rbp)
jbe 0xb842
jmp 0xb861
leaq 0x32ac(%rip), %rdi # 0xeaf5
leaq 0x288c(%rip), %rsi # 0xe0dc
movl $0x409, %edx # imm = 0x409
leaq 0x324e(%rip), %rcx # 0xeaaa
callq 0x10b0
cmpq $0x1, -0x28(%rbp)
jne 0xb8d6
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x3ea0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xb88e
xorps %xmm0, %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0xb96a
movss -0x1c(%rbp), %xmm0
movq -0x30(%rbp), %rax
movss %xmm0, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x9430
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0xb8c4
xorps %xmm0, %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0xb96a
movq -0x38(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0xb96a
cmpq $0x2, -0x28(%rbp)
jne 0xb94f
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x3ea0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0xb900
xorps %xmm0, %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0xb96a
movss -0x1c(%rbp), %xmm0
movq -0x40(%rbp), %rax
movss %xmm0, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x9bb0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0xb933
movq -0x48(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xb93d
xorps %xmm0, %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0xb96a
movq -0x48(%rbp), %rax
movq (%rax), %rax
movss (%rax), %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0xb96a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movss -0x1c(%rbp), %xmm0
movq -0x28(%rbp), %rdx
callq 0xb980
movss %xmm0, -0x4(%rbp)
movss -0x4(%rbp), %xmm0
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
compute_nth_derivative:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
movss [rbp+var_1C], xmm0
mov [rbp+var_28], rdx
cmp [rbp+var_10], 0
jz short loc_B7F2
jmp short loc_B811
loc_B7F2:
lea rdi, aArenaNull; "arena != NULL"
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov edx, 407h
lea rcx, aFloatComputeNt; "float compute_nth_derivative(Arena *, f"...
call ___assert_fail
loc_B811:
cmp [rbp+var_18], 0
jz short loc_B81A
jmp short loc_B839
loc_B81A:
lea rdi, aFNull; "f != NULL"
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov edx, 408h
lea rcx, aFloatComputeNt; "float compute_nth_derivative(Arena *, f"...
call ___assert_fail
loc_B839:
cmp [rbp+var_28], 0
jbe short loc_B842
jmp short loc_B861
loc_B842:
lea rdi, aOrder0; "order > 0"
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov edx, 409h
lea rcx, aFloatComputeNt; "float compute_nth_derivative(Arena *, f"...
call ___assert_fail
loc_B861:
cmp [rbp+var_28], 1
jnz short loc_B8D6
mov rdi, [rbp+var_10]
mov esi, 1
call vector_f_create
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jnz short loc_B88E
xorps xmm0, xmm0
movss [rbp+var_4], xmm0
jmp loc_B96A
loc_B88E:
movss xmm0, [rbp+var_1C]
mov rax, [rbp+var_30]
movss dword ptr [rax], xmm0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
call compute_gradient_autodiff
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jnz short loc_B8C4
xorps xmm0, xmm0
movss [rbp+var_4], xmm0
jmp loc_B96A
loc_B8C4:
mov rax, [rbp+var_38]
movss xmm0, dword ptr [rax]
movss [rbp+var_4], xmm0
jmp loc_B96A
loc_B8D6:
cmp [rbp+var_28], 2
jnz short loc_B94F
mov rdi, [rbp+var_10]
mov esi, 1
call vector_f_create
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
jnz short loc_B900
xorps xmm0, xmm0
movss [rbp+var_4], xmm0
jmp short loc_B96A
loc_B900:
movss xmm0, [rbp+var_1C]
mov rax, [rbp+var_40]
movss dword ptr [rax], xmm0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_40]
call compute_hessian
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz short loc_B933
mov rax, [rbp+var_48]
cmp qword ptr [rax], 0
jnz short loc_B93D
loc_B933:
xorps xmm0, xmm0
movss [rbp+var_4], xmm0
jmp short loc_B96A
loc_B93D:
mov rax, [rbp+var_48]
mov rax, [rax]
movss xmm0, dword ptr [rax]
movss [rbp+var_4], xmm0
jmp short loc_B96A
loc_B94F:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
movss xmm0, [rbp+var_1C]
mov rdx, [rbp+var_28]
call compute_derivative_recursive
movss [rbp+var_4], xmm0
loc_B96A:
movss xmm0, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
float compute_nth_derivative(_QWORD *a1, double ( *a2)(unsigned int *), long long a3, float a4)
{
_QWORD *v5; // [rsp+8h] [rbp-48h]
float *v6; // [rsp+10h] [rbp-40h]
float *v7; // [rsp+18h] [rbp-38h]
unsigned int *v8; // [rsp+20h] [rbp-30h]
if ( !a1 )
__assert_fail(
"arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/autodiff.c",
1031LL,
"float compute_nth_derivative(Arena *, float (*)(VectorF *), float, size_t)");
if ( !a2 )
__assert_fail(
"f != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/autodiff.c",
1032LL,
"float compute_nth_derivative(Arena *, float (*)(VectorF *), float, size_t)");
switch ( a3 )
{
case 0LL:
__assert_fail(
"order > 0",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/autodiff.c",
1033LL,
"float compute_nth_derivative(Arena *, float (*)(VectorF *), float, size_t)");
case 1LL:
v8 = (unsigned int *)vector_f_create(a1, 1uLL);
if ( v8 )
{
*(float *)v8 = a4;
v7 = compute_gradient_autodiff(a1, a2, v8, (__m128i)LODWORD(a4));
if ( v7 )
return *v7;
else
return 0.0;
}
else
{
return 0.0;
}
case 2LL:
v6 = (float *)vector_f_create(a1, 1uLL);
if ( v6 )
{
*v6 = a4;
v5 = compute_hessian(a1, a2, (long long)v6, (__m128i)LODWORD(a4));
if ( v5 && *v5 )
return *(float *)*v5;
else
return 0.0;
}
else
{
return 0.0;
}
default:
return compute_derivative_recursive(a1, a2, a3, a4);
}
}
|
compute_nth_derivative:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOVSS dword ptr [RBP + -0x1c],XMM0
MOV qword ptr [RBP + -0x28],RDX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0010b7f2
JMP 0x0010b811
LAB_0010b7f2:
LEA RDI,[0x10c468]
LEA RSI,[0x10e0ac]
MOV EDX,0x407
LEA RCX,[0x10ea68]
CALL 0x001010b0
LAB_0010b811:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0010b81a
JMP 0x0010b839
LAB_0010b81a:
LEA RDI,[0x10dbbc]
LEA RSI,[0x10e0ac]
MOV EDX,0x408
LEA RCX,[0x10ea68]
CALL 0x001010b0
LAB_0010b839:
CMP qword ptr [RBP + -0x28],0x0
JBE 0x0010b842
JMP 0x0010b861
LAB_0010b842:
LEA RDI,[0x10eab3]
LEA RSI,[0x10e0ac]
MOV EDX,0x409
LEA RCX,[0x10ea68]
CALL 0x001010b0
LAB_0010b861:
CMP qword ptr [RBP + -0x28],0x1
JNZ 0x0010b8d6
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1
CALL 0x00103ea0
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x0010b88e
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0x4],XMM0
JMP 0x0010b96a
LAB_0010b88e:
MOVSS XMM0,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x30]
MOVSS dword ptr [RAX],XMM0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00109430
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0010b8c4
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0x4],XMM0
JMP 0x0010b96a
LAB_0010b8c4:
MOV RAX,qword ptr [RBP + -0x38]
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RBP + -0x4],XMM0
JMP 0x0010b96a
LAB_0010b8d6:
CMP qword ptr [RBP + -0x28],0x2
JNZ 0x0010b94f
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1
CALL 0x00103ea0
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x0010b900
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0x4],XMM0
JMP 0x0010b96a
LAB_0010b900:
MOVSS XMM0,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x40]
MOVSS dword ptr [RAX],XMM0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x40]
CALL 0x00109bb0
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x0010b933
MOV RAX,qword ptr [RBP + -0x48]
CMP qword ptr [RAX],0x0
JNZ 0x0010b93d
LAB_0010b933:
XORPS XMM0,XMM0
MOVSS dword ptr [RBP + -0x4],XMM0
JMP 0x0010b96a
LAB_0010b93d:
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RBP + -0x4],XMM0
JMP 0x0010b96a
LAB_0010b94f:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOVSS XMM0,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x0010b980
MOVSS dword ptr [RBP + -0x4],XMM0
LAB_0010b96a:
MOVSS XMM0,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4 compute_nth_derivative(int4 param_1,long param_2,long param_3,long param_4)
{
int4 *puVar1;
long *plVar2;
int4 local_c;
if (param_2 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("arena != NULL",
"/workspace/llm4binary/github2025/eshkol/src/core/utils/autodiff.c",0x407,
"float compute_nth_derivative(Arena *, float (*)(VectorF *), float, size_t)");
}
if (param_3 != 0) {
if (param_4 != 0) {
if (param_4 == 1) {
puVar1 = (int4 *)vector_f_create(param_2,1);
if (puVar1 == (int4 *)0x0) {
local_c = 0;
}
else {
*puVar1 = param_1;
puVar1 = (int4 *)compute_gradient_autodiff(param_2,param_3,puVar1);
if (puVar1 == (int4 *)0x0) {
local_c = 0;
}
else {
local_c = *puVar1;
}
}
}
else if (param_4 == 2) {
puVar1 = (int4 *)vector_f_create(param_2,1);
if (puVar1 == (int4 *)0x0) {
local_c = 0;
}
else {
*puVar1 = param_1;
plVar2 = (long *)compute_hessian(param_2,param_3,puVar1);
if ((plVar2 == (long *)0x0) || (*plVar2 == 0)) {
local_c = 0;
}
else {
local_c = *(int4 *)*plVar2;
}
}
}
else {
local_c = compute_derivative_recursive(param_1,param_2,param_3,param_4);
}
return local_c;
}
/* WARNING: Subroutine does not return */
__assert_fail("order > 0","/workspace/llm4binary/github2025/eshkol/src/core/utils/autodiff.c",
0x409,"float compute_nth_derivative(Arena *, float (*)(VectorF *), float, size_t)"
);
}
/* WARNING: Subroutine does not return */
__assert_fail("f != NULL","/workspace/llm4binary/github2025/eshkol/src/core/utils/autodiff.c",
0x408,"float compute_nth_derivative(Arena *, float (*)(VectorF *), float, size_t)");
}
|
|
11,530 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> testing::internal::StreamableToString<long>(long const&)
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/include/gtest/gtest-message.h
|
std::string StreamableToString(const T& streamable) {
return (Message() << streamable).GetString();
}
|
O3
|
c
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> testing::internal::StreamableToString<long>(long const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1c968
movq (%rbx), %rbx
leaq 0x10(%rbx), %rdi
movq (%r15), %rsi
callq 0x8480
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1cbbf
testq %rbx, %rbx
je 0x34762
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
testq %rbx, %rbx
je 0x34780
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %r14, %rdi
callq 0x8990
|
_ZN7testing8internal18StreamableToStringIlEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_:
push r15
push r14
push rbx
sub rsp, 10h
mov r15, rsi
mov r14, rdi
lea rbx, [rsp+28h+var_20]
mov rdi, rbx; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rbx, [rbx]
lea rdi, [rbx+10h]
mov rsi, [r15]
call __ZNSo9_M_insertIlEERSoT_; std::ostream::_M_insert<long>(long)
mov rdi, r14
mov rsi, rbx
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
test rbx, rbx
jz short loc_34762
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+8]
loc_34762:
mov rax, r14
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov r14, rax
test rbx, rbx
jz short loc_34780
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+8]
loc_34780:
mov rdi, r14
call __Unwind_Resume
|
long long testing::internal::StreamableToString<long>(long long a1, _QWORD *a2)
{
long long v2; // rbx
long long v4[4]; // [rsp+8h] [rbp-20h] BYREF
testing::Message::Message((testing::Message *)v4);
v2 = v4[0];
std::ostream::_M_insert<long>(v4[0] + 16, *a2);
testing::internal::StringStreamToString(a1, v2);
if ( v2 )
(*(void ( **)(long long))(*(_QWORD *)v2 + 8LL))(v2);
return a1;
}
|
StreamableToString<long>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R15,RSI
MOV R14,RDI
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0011c968
MOV RBX,qword ptr [RBX]
LEA RDI,[RBX + 0x10]
MOV RSI,qword ptr [R15]
LAB_00134744:
CALL 0x00108480
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011cbbf
LAB_00134754:
TEST RBX,RBX
JZ 0x00134762
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x8]
LAB_00134762:
MOV RAX,R14
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* std::__cxx11::string testing::internal::StreamableToString<long>(long const&) */
long * testing::internal::StreamableToString<long>(long *param_1)
{
long *local_20;
Message::Message((Message *)&local_20);
/* try { // try from 00134744 to 00134753 has its CatchHandler @ 0013476f */
std::ostream::_M_insert<long>((long)(local_20 + 2));
StringStreamToString((stringstream *)param_1);
if (local_20 != (long *)0x0) {
(**(code **)(*local_20 + 8))(local_20);
}
return param_1;
}
|
|
11,531 |
translog_put_sector_protection
|
eloqsql/storage/maria/ma_loghandler.c
|
static void translog_put_sector_protection(uchar *page,
struct st_buffer_cursor *cursor)
{
uchar *table= page + log_descriptor.page_overhead -
TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE;
uint i, offset;
uint16 last_protected_sector= ((cursor->previous_offset - 1) /
DISK_DRIVE_SECTOR_SIZE);
uint16 start_sector= cursor->previous_offset / DISK_DRIVE_SECTOR_SIZE;
uint8 value= table[0] + cursor->write_counter;
DBUG_ENTER("translog_put_sector_protection");
if (start_sector == 0)
{
/* First sector is protected by file & page numbers in the page header. */
start_sector= 1;
}
DBUG_PRINT("enter", ("Write counter:%u value:%u offset:%u, "
"last protected:%u start sector:%u",
(uint) cursor->write_counter,
(uint) value,
(uint) cursor->previous_offset,
(uint) last_protected_sector, (uint) start_sector));
if (last_protected_sector == start_sector)
{
i= last_protected_sector;
offset= last_protected_sector * DISK_DRIVE_SECTOR_SIZE;
/* restore data, because we modified sector which was protected */
if (offset < cursor->previous_offset)
page[offset]= table[i];
}
for (i= start_sector, offset= start_sector * DISK_DRIVE_SECTOR_SIZE;
i < TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE;
i++, (offset+= DISK_DRIVE_SECTOR_SIZE))
{
DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x",
i, offset, (uint) page[offset]));
table[i]= page[offset];
page[offset]= value;
DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x",
i, offset, (uint) page[offset]));
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
translog_put_sector_protection:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x45f2fd(%rip), %ecx # 0x4ae764
movslq %ecx, %rcx
addq %rcx, %rax
addq $-0x10, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x34(%rax), %eax
subl $0x1, %eax
shrl $0x9, %eax
movw %ax, -0x22(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x34(%rax), %eax
shrl $0x9, %eax
movw %ax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x32(%rcx), %ecx
addl %ecx, %eax
movb %al, -0x25(%rbp)
movzwl -0x24(%rbp), %eax
cmpl $0x0, %eax
jne 0x4f4b9
movw $0x1, -0x24(%rbp)
jmp 0x4f4bb
jmp 0x4f4bd
movzwl -0x22(%rbp), %eax
movzwl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jne 0x4f4ff
movzwl -0x22(%rbp), %eax
movl %eax, -0x1c(%rbp)
movzwl -0x22(%rbp), %eax
shll $0x9, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x10(%rbp), %rcx
movzwl 0x34(%rcx), %ecx
cmpl %ecx, %eax
jae 0x4f4fd
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x4f4ff
movzwl -0x24(%rbp), %eax
movl %eax, -0x1c(%rbp)
movzwl -0x24(%rbp), %eax
shll $0x9, %eax
movl %eax, -0x20(%rbp)
cmpl $0x10, -0x1c(%rbp)
jae 0x4f555
jmp 0x4f518
jmp 0x4f51a
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
movb (%rax,%rcx), %dl
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movb %dl, (%rax,%rcx)
movb -0x25(%rbp), %dl
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x4f53d
jmp 0x4f53f
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
addl $0x200, %eax # imm = 0x200
movl %eax, -0x20(%rbp)
jmp 0x4f510
jmp 0x4f557
jmp 0x4f559
popq %rbp
retq
nopl (%rax,%rax)
|
translog_put_sector_protection:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
movzx ecx, cs:word_4AE764
movsxd rcx, ecx
add rax, rcx
add rax, 0FFFFFFFFFFFFFFF0h
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
movzx eax, word ptr [rax+34h]
sub eax, 1
shr eax, 9
mov [rbp+var_22], ax
mov rax, [rbp+var_10]
movzx eax, word ptr [rax+34h]
shr eax, 9
mov [rbp+var_24], ax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx+32h]
add eax, ecx
mov [rbp+var_25], al
movzx eax, [rbp+var_24]
cmp eax, 0
jnz short loc_4F4B9
mov [rbp+var_24], 1
loc_4F4B9:
jmp short $+2
loc_4F4BB:
jmp short $+2
loc_4F4BD:
movzx eax, [rbp+var_22]
movzx ecx, [rbp+var_24]
cmp eax, ecx
jnz short loc_4F4FF
movzx eax, [rbp+var_22]
mov [rbp+var_1C], eax
movzx eax, [rbp+var_22]
shl eax, 9
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx+34h]
cmp eax, ecx
jnb short loc_4F4FD
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
mov dl, [rax+rcx]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_20]
mov [rax+rcx], dl
loc_4F4FD:
jmp short $+2
loc_4F4FF:
movzx eax, [rbp+var_24]
mov [rbp+var_1C], eax
movzx eax, [rbp+var_24]
shl eax, 9
mov [rbp+var_20], eax
loc_4F510:
cmp [rbp+var_1C], 10h
jnb short loc_4F555
jmp short $+2
loc_4F518:
jmp short $+2
loc_4F51A:
mov rax, [rbp+var_8]
mov ecx, [rbp+var_20]
mov dl, [rax+rcx]
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
mov [rax+rcx], dl
mov dl, [rbp+var_25]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_20]
mov [rax+rcx], dl
jmp short $+2
loc_4F53D:
jmp short $+2
loc_4F53F:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_20]
add eax, 200h
mov [rbp+var_20], eax
jmp short loc_4F510
loc_4F555:
jmp short $+2
loc_4F557:
jmp short $+2
loc_4F559:
pop rbp
retn
|
long long translog_put_sector_protection(long long a1, long long a2)
{
long long result; // rax
char v3; // [rsp+1h] [rbp-25h]
unsigned __int16 v4; // [rsp+2h] [rbp-24h]
unsigned __int16 v5; // [rsp+4h] [rbp-22h]
unsigned int v6; // [rsp+6h] [rbp-20h]
unsigned int v7; // [rsp+Ah] [rbp-1Ch]
_BYTE *v8; // [rsp+Eh] [rbp-18h]
v8 = (_BYTE *)((unsigned __int16)word_4AE764 + a1 - 16);
v5 = ((unsigned int)*(unsigned __int16 *)(a2 + 52) - 1) >> 9;
v4 = *(_WORD *)(a2 + 52) >> 9;
v3 = *(_WORD *)(a2 + 50) + *v8;
if ( !v4 )
v4 = 1;
if ( v5 == v4 && v5 << 9 < (unsigned int)*(unsigned __int16 *)(a2 + 52) )
*(_BYTE *)(a1 + (v5 << 9)) = v8[v5];
v7 = v4;
result = v4 << 9;
v6 = v4 << 9;
while ( v7 < 0x10 )
{
v8[v7] = *(_BYTE *)(a1 + v6);
*(_BYTE *)(a1 + v6) = v3;
++v7;
result = v6 + 512;
v6 += 512;
}
return result;
}
|
translog_put_sector_protection:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,word ptr [0x005ae764]
MOVSXD RCX,ECX
ADD RAX,RCX
ADD RAX,-0x10
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x34]
SUB EAX,0x1
SHR EAX,0x9
MOV word ptr [RBP + -0x22],AX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x34]
SHR EAX,0x9
MOV word ptr [RBP + -0x24],AX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX + 0x32]
ADD EAX,ECX
MOV byte ptr [RBP + -0x25],AL
MOVZX EAX,word ptr [RBP + -0x24]
CMP EAX,0x0
JNZ 0x0014f4b9
MOV word ptr [RBP + -0x24],0x1
LAB_0014f4b9:
JMP 0x0014f4bb
LAB_0014f4bb:
JMP 0x0014f4bd
LAB_0014f4bd:
MOVZX EAX,word ptr [RBP + -0x22]
MOVZX ECX,word ptr [RBP + -0x24]
CMP EAX,ECX
JNZ 0x0014f4ff
MOVZX EAX,word ptr [RBP + -0x22]
MOV dword ptr [RBP + -0x1c],EAX
MOVZX EAX,word ptr [RBP + -0x22]
SHL EAX,0x9
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX + 0x34]
CMP EAX,ECX
JNC 0x0014f4fd
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
MOV DL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_0014f4fd:
JMP 0x0014f4ff
LAB_0014f4ff:
MOVZX EAX,word ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x1c],EAX
MOVZX EAX,word ptr [RBP + -0x24]
SHL EAX,0x9
MOV dword ptr [RBP + -0x20],EAX
LAB_0014f510:
CMP dword ptr [RBP + -0x1c],0x10
JNC 0x0014f555
JMP 0x0014f518
LAB_0014f518:
JMP 0x0014f51a
LAB_0014f51a:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV DL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
MOV byte ptr [RAX + RCX*0x1],DL
MOV DL,byte ptr [RBP + -0x25]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV byte ptr [RAX + RCX*0x1],DL
JMP 0x0014f53d
LAB_0014f53d:
JMP 0x0014f53f
LAB_0014f53f:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x200
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0014f510
LAB_0014f555:
JMP 0x0014f557
LAB_0014f557:
JMP 0x0014f559
LAB_0014f559:
POP RBP
RET
|
void translog_put_sector_protection(long param_1,long param_2)
{
char cVar1;
int2 uVar2;
uint uVar3;
uint uVar4;
char *pcVar5;
ushort local_2c;
uint local_28;
uint local_24;
pcVar5 = (char *)(param_1 + (int)(uint)DAT_005ae764 + -0x10);
uVar3 = *(ushort *)(param_2 + 0x34) - 1 >> 9;
local_2c = *(ushort *)(param_2 + 0x34) >> 9;
cVar1 = *pcVar5;
uVar2 = *(int2 *)(param_2 + 0x32);
if (local_2c == 0) {
local_2c = 1;
}
if ((uVar3 & 0xffff) == (uint)local_2c) {
uVar4 = (uVar3 & 0xffff) << 9;
if (uVar4 < *(ushort *)(param_2 + 0x34)) {
*(char *)(param_1 + (ulong)uVar4) = pcVar5[uVar3 & 0xffff];
}
}
local_28 = (uint)local_2c << 9;
for (local_24 = (uint)local_2c; local_24 < 0x10; local_24 = local_24 + 1) {
pcVar5[local_24] = *(char *)(param_1 + (ulong)local_28);
*(char *)(param_1 + (ulong)local_28) = cVar1 + (char)uVar2;
local_28 = local_28 + 0x200;
}
return;
}
|
|
11,532 |
translog_put_sector_protection
|
eloqsql/storage/maria/ma_loghandler.c
|
static void translog_put_sector_protection(uchar *page,
struct st_buffer_cursor *cursor)
{
uchar *table= page + log_descriptor.page_overhead -
TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE;
uint i, offset;
uint16 last_protected_sector= ((cursor->previous_offset - 1) /
DISK_DRIVE_SECTOR_SIZE);
uint16 start_sector= cursor->previous_offset / DISK_DRIVE_SECTOR_SIZE;
uint8 value= table[0] + cursor->write_counter;
DBUG_ENTER("translog_put_sector_protection");
if (start_sector == 0)
{
/* First sector is protected by file & page numbers in the page header. */
start_sector= 1;
}
DBUG_PRINT("enter", ("Write counter:%u value:%u offset:%u, "
"last protected:%u start sector:%u",
(uint) cursor->write_counter,
(uint) value,
(uint) cursor->previous_offset,
(uint) last_protected_sector, (uint) start_sector));
if (last_protected_sector == start_sector)
{
i= last_protected_sector;
offset= last_protected_sector * DISK_DRIVE_SECTOR_SIZE;
/* restore data, because we modified sector which was protected */
if (offset < cursor->previous_offset)
page[offset]= table[i];
}
for (i= start_sector, offset= start_sector * DISK_DRIVE_SECTOR_SIZE;
i < TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE;
i++, (offset+= DISK_DRIVE_SECTOR_SIZE))
{
DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x",
i, offset, (uint) page[offset]));
table[i]= page[offset];
page[offset]= value;
DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x",
i, offset, (uint) page[offset]));
}
DBUG_VOID_RETURN;
}
|
O3
|
c
|
translog_put_sector_protection:
movzwl 0x3dd06c(%rip), %eax # 0x426bd4
movl $0xffff, %r9d # imm = 0xFFFF
andl %r9d, %edx
leal 0x1ffffff(%rdx), %ecx
shrl $0x9, %ecx
movl %edx, %r10d
shrl $0x9, %r10d
addb -0x10(%rdi,%rax), %sil
cmpl $0x200, %edx # imm = 0x200
movl $0x1, %r8d
cmovael %r10d, %r8d
cmpw %cx, %r8w
jne 0x49bba
andl %r9d, %ecx
movl %ecx, %r9d
shll $0x9, %r9d
cmpl %edx, %r9d
jae 0x49bba
leaq (%rdi,%rax), %rdx
addq $-0x10, %rdx
movb (%rdx,%rcx), %cl
movb %cl, (%rdi,%r9)
cmpw $0xf, %r8w
ja 0x49bed
pushq %rbp
movq %rsp, %rbp
addq %rdi, %rax
movzwl %r8w, %edx
leaq -0x10(%rdx), %rcx
shll $0x9, %edx
addq %rdi, %rdx
movb (%rdx), %dil
movb %dil, (%rax,%rcx)
movb %sil, (%rdx)
addq $0x200, %rdx # imm = 0x200
incq %rcx
jne 0x49bd6
popq %rbp
retq
|
translog_put_sector_protection:
movzx eax, cs:word_426BD4
mov r9d, 0FFFFh
and edx, r9d
lea ecx, [rdx+1FFFFFFh]
shr ecx, 9
mov r10d, edx
shr r10d, 9
add sil, [rdi+rax-10h]
cmp edx, 200h
mov r8d, 1
cmovnb r8d, r10d
cmp r8w, cx
jnz short loc_49BBA
and ecx, r9d
mov r9d, ecx
shl r9d, 9
cmp r9d, edx
jnb short loc_49BBA
lea rdx, [rdi+rax]
add rdx, 0FFFFFFFFFFFFFFF0h
mov cl, [rdx+rcx]
mov [rdi+r9], cl
loc_49BBA:
cmp r8w, 0Fh
ja short locret_49BED
push rbp
mov rbp, rsp
add rax, rdi
movzx edx, r8w
lea rcx, [rdx-10h]
shl edx, 9
add rdx, rdi
loc_49BD6:
mov dil, [rdx]
mov [rax+rcx], dil
mov [rdx], sil
add rdx, 200h
inc rcx
jnz short loc_49BD6
pop rbp
locret_49BED:
retn
|
long long translog_put_sector_protection(long long a1, char a2, unsigned __int16 a3)
{
long long result; // rax
char v4; // si
unsigned __int16 v5; // r8
long long v6; // rcx
long long v7; // r9
long long v8; // rcx
_BYTE *v9; // rdx
result = (unsigned __int16)word_426BD4;
v4 = *(_BYTE *)(a1 + (unsigned __int16)word_426BD4 - 16) + a2;
v5 = 1;
if ( a3 >= 0x200u )
v5 = a3 >> 9;
if ( v5 == (unsigned __int16)(((unsigned int)a3 + 0x1FFFFFF) >> 9) )
{
v6 = (unsigned __int16)(((unsigned int)a3 + 0x1FFFFFF) >> 9);
v7 = (unsigned int)((_DWORD)v6 << 9);
if ( (unsigned int)v7 < a3 )
*(_BYTE *)(a1 + v7) = *(_BYTE *)(a1 + (unsigned __int16)word_426BD4 - 16 + v6);
}
if ( v5 <= 0xFu )
{
result += a1;
v8 = v5 - 16LL;
v9 = (_BYTE *)(a1 + (v5 << 9));
do
{
*(_BYTE *)(result + v8) = *v9;
*v9 = v4;
v9 += 512;
++v8;
}
while ( v8 );
}
return result;
}
|
translog_put_sector_protection:
MOVZX EAX,word ptr [0x00526bd4]
MOV R9D,0xffff
AND EDX,R9D
LEA ECX,[RDX + 0x1ffffff]
SHR ECX,0x9
MOV R10D,EDX
SHR R10D,0x9
ADD SIL,byte ptr [RDI + RAX*0x1 + -0x10]
CMP EDX,0x200
MOV R8D,0x1
CMOVNC R8D,R10D
CMP R8W,CX
JNZ 0x00149bba
AND ECX,R9D
MOV R9D,ECX
SHL R9D,0x9
CMP R9D,EDX
JNC 0x00149bba
LEA RDX,[RDI + RAX*0x1]
ADD RDX,-0x10
MOV CL,byte ptr [RDX + RCX*0x1]
MOV byte ptr [RDI + R9*0x1],CL
LAB_00149bba:
CMP R8W,0xf
JA 0x00149bed
PUSH RBP
MOV RBP,RSP
ADD RAX,RDI
MOVZX EDX,R8W
LEA RCX,[RDX + -0x10]
SHL EDX,0x9
ADD RDX,RDI
LAB_00149bd6:
MOV DIL,byte ptr [RDX]
MOV byte ptr [RAX + RCX*0x1],DIL
MOV byte ptr [RDX],SIL
ADD RDX,0x200
INC RCX
JNZ 0x00149bd6
POP RBP
LAB_00149bed:
RET
|
void translog_put_sector_protection(long param_1,char param_2,uint param_3)
{
char cVar1;
ulong uVar2;
uint uVar3;
long lVar4;
char *pcVar5;
uint uVar6;
uint uVar7;
uVar2 = (ulong)DAT_00526bd4;
param_3 = param_3 & 0xffff;
uVar3 = param_3 + 0x1ffffff >> 9;
cVar1 = *(char *)(param_1 + -0x10 + uVar2);
uVar6 = 1;
if (0x1ff < param_3) {
uVar6 = param_3 >> 9;
}
if ((ushort)uVar6 == (ushort)uVar3) {
uVar3 = uVar3 & 0xffff;
uVar7 = uVar3 << 9;
if (uVar7 < param_3) {
*(int1 *)(param_1 + (ulong)uVar7) =
*(int1 *)(param_1 + uVar2 + -0x10 + (ulong)uVar3);
}
}
if ((ushort)uVar6 < 0x10) {
lVar4 = (ulong)uVar6 - 0x10;
pcVar5 = (char *)((ulong)(uVar6 << 9) + param_1);
do {
*(char *)(uVar2 + param_1 + lVar4) = *pcVar5;
*pcVar5 = param_2 + cVar1;
pcVar5 = pcVar5 + 0x200;
lVar4 = lVar4 + 1;
} while (lVar4 != 0);
}
return;
}
|
|
11,533 |
google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(void const*, int)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
|
bool CopyingOutputStreamAdaptor::WriteAliasedRaw(const void* data, int size) {
if (size >= buffer_size_) {
if (!Flush() || !copying_stream_->Write(data, size)) {
return false;
}
GOOGLE_DCHECK_EQ(buffer_used_, 0);
position_ += size;
return true;
}
void* out;
int out_size;
while (true) {
if (!Next(&out, &out_size)) {
return false;
}
if (size <= out_size) {
std::memcpy(out, data, size);
BackUp(out_size - size);
return true;
}
std::memcpy(out, data, out_size);
data = static_cast<const char*>(data) + out_size;
size -= out_size;
}
return true;
}
|
O0
|
cpp
|
google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(void const*, int):
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movl %edx, 0x7c(%rsp)
movq 0x88(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movl 0x7c(%rsp), %eax
cmpl 0x28(%rcx), %eax
jl 0x172bbd
movq 0x10(%rsp), %rdi
callq 0x1726a0
testb $0x1, %al
jne 0x172ac5
jmp 0x172ae4
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x80(%rsp), %rsi
movl 0x7c(%rsp), %edx
movq (%rdi), %rax
callq *0x10(%rax)
testb $0x1, %al
jne 0x172af1
movb $0x0, 0x97(%rsp)
jmp 0x172c65
jmp 0x172af3
xorl %eax, %eax
testb $0x1, %al
jne 0x172afe
jmp 0x172b9e
movq 0x10(%rsp), %rax
movl 0x2c(%rax), %eax
movb $0x0, 0x3f(%rsp)
cmpl $0x0, %eax
jne 0x172b12
jmp 0x172b60
leaq 0x2709c3(%rip), %rdx # 0x3e34dc
leaq 0x40(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x3, %esi
movl $0x161, %ecx # imm = 0x161
callq 0x19a670
movq (%rsp), %rdi
movb $0x1, 0x3f(%rsp)
leaq 0x270cc5(%rip), %rsi # 0x3e3806
callq 0x199f30
movq %rax, 0x8(%rsp)
jmp 0x172b4d
movq 0x8(%rsp), %rsi
leaq 0x2b(%rsp), %rdi
callq 0x19a0e0
jmp 0x172b5e
jmp 0x172b60
testb $0x1, 0x3f(%rsp)
jne 0x172b69
jmp 0x172b73
leaq 0x40(%rsp), %rdi
callq 0x19a6b0
jmp 0x172af3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
testb $0x1, 0x3f(%rsp)
jne 0x172b8f
jmp 0x172b99
leaq 0x40(%rsp), %rdi
callq 0x19a6b0
jmp 0x172c76
movq 0x10(%rsp), %rax
movslq 0x7c(%rsp), %rcx
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
movb $0x1, 0x97(%rsp)
jmp 0x172c65
jmp 0x172bbf
movq 0x10(%rsp), %rdi
movq (%rdi), %rax
leaq 0x20(%rsp), %rsi
leaq 0x1c(%rsp), %rdx
callq *0x10(%rax)
testb $0x1, %al
jne 0x172be5
movb $0x0, 0x97(%rsp)
jmp 0x172c65
movl 0x7c(%rsp), %eax
cmpl 0x1c(%rsp), %eax
jg 0x172c23
movq 0x20(%rsp), %rdi
movq 0x80(%rsp), %rsi
movslq 0x7c(%rsp), %rdx
callq 0x8b800
movq 0x10(%rsp), %rdi
movl 0x1c(%rsp), %esi
subl 0x7c(%rsp), %esi
movq (%rdi), %rax
callq *0x18(%rax)
movb $0x1, 0x97(%rsp)
jmp 0x172c65
movq 0x20(%rsp), %rdi
movq 0x80(%rsp), %rsi
movslq 0x1c(%rsp), %rdx
callq 0x8b800
movq 0x80(%rsp), %rax
movslq 0x1c(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x80(%rsp)
movl 0x1c(%rsp), %ecx
movl 0x7c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x7c(%rsp)
jmp 0x172bbf
movb 0x97(%rsp), %al
andb $0x1, %al
addq $0x98, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x90db0
|
_ZN6google8protobuf2io26CopyingOutputStreamAdaptor15WriteAliasedRawEPKvi:
sub rsp, 98h
mov [rsp+98h+var_10], rdi
mov [rsp+98h+var_18], rsi
mov [rsp+98h+var_1C], edx
mov rcx, [rsp+98h+var_10]
mov [rsp+98h+var_88], rcx
mov eax, [rsp+98h+var_1C]
cmp eax, [rcx+28h]
jl loc_172BBD
mov rdi, [rsp+98h+var_88]; this
call _ZN6google8protobuf2io26CopyingOutputStreamAdaptor5FlushEv; google::protobuf::io::CopyingOutputStreamAdaptor::Flush(void)
test al, 1
jnz short loc_172AC5
jmp short loc_172AE4
loc_172AC5:
mov rax, [rsp+98h+var_88]
mov rdi, [rax+8]
mov rsi, [rsp+98h+var_18]
mov edx, [rsp+98h+var_1C]
mov rax, [rdi]
call qword ptr [rax+10h]
test al, 1
jnz short loc_172AF1
loc_172AE4:
mov [rsp+98h+var_1], 0
jmp loc_172C65
loc_172AF1:
jmp short $+2
loc_172AF3:
xor eax, eax
test al, 1
jnz short loc_172AFE
jmp loc_172B9E
loc_172AFE:
mov rax, [rsp+98h+var_88]
mov eax, [rax+2Ch]
mov [rsp+98h+var_59], 0
cmp eax, 0
jnz short loc_172B12
jmp short loc_172B60
loc_172B12:
lea rdx, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+98h+var_58]
mov [rsp+98h+var_98], rdi
mov esi, 3
mov ecx, 161h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+98h+var_98]
mov [rsp+98h+var_59], 1
lea rsi, aCheckFailedBuf_1; "CHECK failed: (buffer_used_) == (0): "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+98h+var_90], rax
jmp short $+2
loc_172B4D:
mov rsi, [rsp+98h+var_90]
lea rdi, [rsp+98h+var_6D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_172B5E:
jmp short $+2
loc_172B60:
test [rsp+98h+var_59], 1
jnz short loc_172B69
jmp short loc_172B73
loc_172B69:
lea rdi, [rsp+98h+var_58]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_172B73:
jmp loc_172AF3
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
test [rsp+arg_37], 1
jnz short loc_172B8F
jmp short loc_172B99
loc_172B8F:
lea rdi, [rsp+arg_38]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_172B99:
jmp loc_172C76
loc_172B9E:
mov rax, [rsp+98h+var_88]
movsxd rcx, [rsp+98h+var_1C]
add rcx, [rax+18h]
mov [rax+18h], rcx
mov [rsp+98h+var_1], 1
jmp loc_172C65
loc_172BBD:
jmp short $+2
loc_172BBF:
mov rdi, [rsp+98h+var_88]
mov rax, [rdi]
lea rsi, [rsp+98h+var_78]
lea rdx, [rsp+98h+var_7C]
call qword ptr [rax+10h]
test al, 1
jnz short loc_172BE5
mov [rsp+98h+var_1], 0
jmp loc_172C65
loc_172BE5:
mov eax, [rsp+98h+var_1C]
cmp eax, [rsp+98h+var_7C]
jg short loc_172C23
mov rdi, [rsp+98h+var_78]
mov rsi, [rsp+98h+var_18]
movsxd rdx, [rsp+98h+var_1C]
call _memcpy
mov rdi, [rsp+98h+var_88]
mov esi, [rsp+98h+var_7C]
sub esi, [rsp+98h+var_1C]
mov rax, [rdi]
call qword ptr [rax+18h]
mov [rsp+98h+var_1], 1
jmp short loc_172C65
loc_172C23:
mov rdi, [rsp+98h+var_78]
mov rsi, [rsp+98h+var_18]
movsxd rdx, [rsp+98h+var_7C]
call _memcpy
mov rax, [rsp+98h+var_18]
movsxd rcx, [rsp+98h+var_7C]
add rax, rcx
mov [rsp+98h+var_18], rax
mov ecx, [rsp+98h+var_7C]
mov eax, [rsp+98h+var_1C]
sub eax, ecx
mov [rsp+98h+var_1C], eax
jmp loc_172BBF
loc_172C65:
mov al, [rsp+98h+var_1]
and al, 1
add rsp, 98h
retn
loc_172C76:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
|
char google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(
google::protobuf::io::CopyingOutputStreamAdaptor *this,
char *a2,
int a3)
{
int v4; // [rsp+1Ch] [rbp-7Ch] BYREF
long long v5; // [rsp+20h] [rbp-78h] BYREF
unsigned int v6; // [rsp+7Ch] [rbp-1Ch]
char *v7; // [rsp+80h] [rbp-18h]
google::protobuf::io::CopyingOutputStreamAdaptor *v8; // [rsp+88h] [rbp-10h]
v8 = this;
v7 = a2;
v6 = a3;
if ( a3 < *((_DWORD *)this + 10) )
{
while ( 1 )
{
if ( ((*(long long ( **)(google::protobuf::io::CopyingOutputStreamAdaptor *, long long *, int *))(*(_QWORD *)this + 16LL))(
this,
&v5,
&v4) & 1) == 0 )
return 0;
if ( (int)v6 <= v4 )
break;
memcpy(v5, v7, v4);
v7 += v4;
v6 -= v4;
}
memcpy(v5, v7, (int)v6);
(*(void ( **)(google::protobuf::io::CopyingOutputStreamAdaptor *, _QWORD))(*(_QWORD *)this + 24LL))(
this,
v4 - v6);
return 1;
}
else if ( (google::protobuf::io::CopyingOutputStreamAdaptor::Flush(this) & 1) != 0
&& ((*(long long ( **)(_QWORD, char *, _QWORD))(**((_QWORD **)this + 1) + 16LL))(
*((_QWORD *)this + 1),
v7,
v6) & 1) != 0 )
{
*((_QWORD *)this + 3) += (int)v6;
return 1;
}
else
{
return 0;
}
}
| |||
11,534 |
google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(void const*, int)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
|
bool CopyingOutputStreamAdaptor::WriteAliasedRaw(const void* data, int size) {
if (size >= buffer_size_) {
if (!Flush() || !copying_stream_->Write(data, size)) {
return false;
}
GOOGLE_DCHECK_EQ(buffer_used_, 0);
position_ += size;
return true;
}
void* out;
int out_size;
while (true) {
if (!Next(&out, &out_size)) {
return false;
}
if (size <= out_size) {
std::memcpy(out, data, size);
BackUp(out_size - size);
return true;
}
std::memcpy(out, data, out_size);
data = static_cast<const char*>(data) + out_size;
size -= out_size;
}
return true;
}
|
O3
|
cpp
|
google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(void const*, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpl %edx, 0x28(%rdi)
jle 0x7b479
movq (%rbx), %rax
leaq 0x8(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq *0x10(%rax)
testb %al, %al
je 0x7b4a1
leaq 0x8(%rsp), %r15
leaq 0x4(%rsp), %r12
movslq 0x4(%rsp), %rdx
movq 0x8(%rsp), %rdi
cmpl %edx, %ebp
jle 0x7b4a5
movq %r14, %rsi
callq 0x2ceb0
movslq 0x4(%rsp), %rax
addq %rax, %r14
subl %eax, %ebp
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *0x10(%rax)
testb %al, %al
jne 0x7b444
jmp 0x7b4a1
movq %rbx, %rdi
callq 0x7b198
testb %al, %al
je 0x7b4a1
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movl %ebp, %edx
callq *0x10(%rax)
testb %al, %al
je 0x7b4a1
movslq %ebp, %rax
addq %rax, 0x18(%rbx)
jmp 0x7b4bf
xorl %eax, %eax
jmp 0x7b4c1
movslq %ebp, %rdx
movq %r14, %rsi
callq 0x2ceb0
movl 0x4(%rsp), %esi
subl %ebp, %esi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ZN6google8protobuf2io26CopyingOutputStreamAdaptor15WriteAliasedRawEPKvi:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
cmp [rdi+28h], edx
jle short loc_7B479
mov rax, [rbx]
lea rsi, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_34]
mov rdi, rbx
call qword ptr [rax+10h]
test al, al
jz short loc_7B4A1
lea r15, [rsp+38h+var_30]
lea r12, [rsp+38h+var_34]
loc_7B444:
movsxd rdx, [rsp+38h+var_34]
mov rdi, [rsp+38h+var_30]
cmp ebp, edx
jle short loc_7B4A5
mov rsi, r14
call _memcpy
movsxd rax, [rsp+38h+var_34]
add r14, rax
sub ebp, eax
mov rax, [rbx]
mov rdi, rbx
mov rsi, r15
mov rdx, r12
call qword ptr [rax+10h]
test al, al
jnz short loc_7B444
jmp short loc_7B4A1
loc_7B479:
mov rdi, rbx; this
call _ZN6google8protobuf2io26CopyingOutputStreamAdaptor11WriteBufferEv; google::protobuf::io::CopyingOutputStreamAdaptor::WriteBuffer(void)
test al, al
jz short loc_7B4A1
mov rdi, [rbx+8]
mov rax, [rdi]
mov rsi, r14
mov edx, ebp
call qword ptr [rax+10h]
test al, al
jz short loc_7B4A1
movsxd rax, ebp
add [rbx+18h], rax
jmp short loc_7B4BF
loc_7B4A1:
xor eax, eax
jmp short loc_7B4C1
loc_7B4A5:
movsxd rdx, ebp
mov rsi, r14
call _memcpy
mov esi, [rsp+38h+var_34]
sub esi, ebp
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+18h]
loc_7B4BF:
mov al, 1
loc_7B4C1:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
char google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(
google::protobuf::io::CopyingOutputStreamAdaptor *this,
char *a2,
int a3)
{
unsigned int v3; // ebp
char *v4; // r14
int v6; // [rsp+4h] [rbp-34h] BYREF
_QWORD v7[6]; // [rsp+8h] [rbp-30h] BYREF
v3 = a3;
v4 = a2;
if ( *((_DWORD *)this + 10) > a3 )
{
if ( (*(unsigned __int8 ( **)(google::protobuf::io::CopyingOutputStreamAdaptor *, _QWORD *, int *))(*(_QWORD *)this + 16LL))(
this,
v7,
&v6) )
{
while ( (int)v3 > v6 )
{
memcpy(v7[0]);
v4 += v6;
v3 -= v6;
if ( !(*(unsigned __int8 ( **)(google::protobuf::io::CopyingOutputStreamAdaptor *, _QWORD *, int *))(*(_QWORD *)this + 16LL))(
this,
v7,
&v6) )
return 0;
}
memcpy(v7[0]);
(*(void ( **)(google::protobuf::io::CopyingOutputStreamAdaptor *, _QWORD))(*(_QWORD *)this + 24LL))(
this,
v6 - v3);
return 1;
}
return 0;
}
if ( !(unsigned __int8)google::protobuf::io::CopyingOutputStreamAdaptor::WriteBuffer(this)
|| !(*(unsigned __int8 ( **)(_QWORD, char *, _QWORD))(**((_QWORD **)this + 1) + 16LL))(
*((_QWORD *)this + 1),
a2,
v3) )
{
return 0;
}
*((_QWORD *)this + 3) += (int)v3;
return 1;
}
|
WriteAliasedRaw:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
CMP dword ptr [RDI + 0x28],EDX
JLE 0x0017b479
MOV RAX,qword ptr [RBX]
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x4]
MOV RDI,RBX
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JZ 0x0017b4a1
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x4]
LAB_0017b444:
MOVSXD RDX,dword ptr [RSP + 0x4]
MOV RDI,qword ptr [RSP + 0x8]
CMP EBP,EDX
JLE 0x0017b4a5
MOV RSI,R14
CALL 0x0012ceb0
MOVSXD RAX,dword ptr [RSP + 0x4]
ADD R14,RAX
SUB EBP,EAX
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JNZ 0x0017b444
JMP 0x0017b4a1
LAB_0017b479:
MOV RDI,RBX
CALL 0x0017b198
TEST AL,AL
JZ 0x0017b4a1
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RDI]
MOV RSI,R14
MOV EDX,EBP
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JZ 0x0017b4a1
MOVSXD RAX,EBP
ADD qword ptr [RBX + 0x18],RAX
JMP 0x0017b4bf
LAB_0017b4a1:
XOR EAX,EAX
JMP 0x0017b4c1
LAB_0017b4a5:
MOVSXD RDX,EBP
MOV RSI,R14
CALL 0x0012ceb0
MOV ESI,dword ptr [RSP + 0x4]
SUB ESI,EBP
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x18]
LAB_0017b4bf:
MOV AL,0x1
LAB_0017b4c1:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw(void const*, int) */
int8 __thiscall
google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw
(CopyingOutputStreamAdaptor *this,void *param_1,int param_2)
{
char cVar1;
int local_34;
void *local_30;
if (param_2 < *(int *)(this + 0x28)) {
cVar1 = (**(code **)(*(long *)this + 0x10))(this,&local_30,&local_34);
if (cVar1 != '\0') {
do {
if (param_2 <= local_34) {
memcpy(local_30,param_1,(long)param_2);
(**(code **)(*(long *)this + 0x18))(this,local_34 - param_2);
return 1;
}
memcpy(local_30,param_1,(long)local_34);
param_1 = (void *)((long)param_1 + (long)local_34);
param_2 = param_2 - local_34;
cVar1 = (**(code **)(*(long *)this + 0x10))(this,&local_30,&local_34);
} while (cVar1 != '\0');
}
}
else {
cVar1 = WriteBuffer(this);
if ((cVar1 != '\0') &&
(cVar1 = (**(code **)(**(long **)(this + 8) + 0x10))(*(long **)(this + 8),param_1,param_2),
cVar1 != '\0')) {
*(long *)(this + 0x18) = *(long *)(this + 0x18) + (long)param_2;
return 1;
}
}
return 0;
}
|
|
11,535 |
Gpio::ReadGpio(int)
|
sp1187[P]veesem/src/core/spg200/gpio.cc
|
word_t Gpio::ReadGpio(int port_index) {
Port& port = ports_[port_index];
uint16_t buf = (port.buffer ^ (port.dir & ~port.attrib));
uint16_t io_out = 0;
switch (port_index) {
case 0:
io_out = io_.GetPortA();
break;
case 1:
io_out = io_.GetPortB();
break;
case 2:
io_out = io_.GetPortC();
break;
}
return (buf & (port.dir & ~port.mask)) | (io_out & (~port.dir & ~port.mask));
}
|
O0
|
cpp
|
Gpio::ReadGpio(int):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
addq $0x2, %rdi
movslq -0xc(%rbp), %rsi
callq 0x1f8e0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdx
movzwl (%rdx), %eax
movzwl 0x2(%rdx), %ecx
movzwl 0x4(%rdx), %edx
notl %edx
andl %edx, %ecx
xorl %ecx, %eax
movw %ax, -0x1a(%rbp)
movw $0x0, -0x1c(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
testl %eax, %eax
je 0x1f537
jmp 0x1f523
movl -0x20(%rbp), %eax
subl $0x1, %eax
je 0x1f54b
jmp 0x1f52d
movl -0x20(%rbp), %eax
subl $0x2, %eax
je 0x1f55f
jmp 0x1f571
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movw %ax, -0x1c(%rbp)
jmp 0x1f571
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x48(%rax)
movw %ax, -0x1c(%rbp)
jmp 0x1f571
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movw %ax, -0x1c(%rbp)
movzwl -0x1a(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x6(%rdx), %edx
xorl $-0x1, %edx
andl %edx, %ecx
andl %ecx, %eax
movzwl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x2(%rdx), %edx
xorl $-0x1, %edx
movq -0x18(%rbp), %rsi
movzwl 0x6(%rsi), %esi
xorl $-0x1, %esi
andl %esi, %edx
andl %edx, %ecx
orl %ecx, %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN4Gpio8ReadGpioEi:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rdi, [rbp+var_8]
mov [rbp+var_28], rdi
add rdi, 2
movsxd rsi, [rbp+var_C]
call _ZNSt5arrayIN4Gpio4PortELm3EEixEm; std::array<Gpio::Port,3ul>::operator[](ulong)
mov [rbp+var_18], rax
mov rdx, [rbp+var_18]
movzx eax, word ptr [rdx]
movzx ecx, word ptr [rdx+2]
movzx edx, word ptr [rdx+4]
not edx
and ecx, edx
xor eax, ecx
mov [rbp+var_1A], ax
mov [rbp+var_1C], 0
mov eax, [rbp+var_C]
mov [rbp+var_20], eax
test eax, eax
jz short loc_1F537
jmp short $+2
loc_1F523:
mov eax, [rbp+var_20]
sub eax, 1
jz short loc_1F54B
jmp short $+2
loc_1F52D:
mov eax, [rbp+var_20]
sub eax, 2
jz short loc_1F55F
jmp short loc_1F571
loc_1F537:
mov rax, [rbp+var_28]
mov rdi, [rax+20h]
mov rax, [rdi]
call qword ptr [rax+38h]
mov [rbp+var_1C], ax
jmp short loc_1F571
loc_1F54B:
mov rax, [rbp+var_28]
mov rdi, [rax+20h]
mov rax, [rdi]
call qword ptr [rax+48h]
mov [rbp+var_1C], ax
jmp short loc_1F571
loc_1F55F:
mov rax, [rbp+var_28]
mov rdi, [rax+20h]
mov rax, [rdi]
call qword ptr [rax+58h]
mov [rbp+var_1C], ax
loc_1F571:
movzx eax, [rbp+var_1A]
mov rcx, [rbp+var_18]
movzx ecx, word ptr [rcx+2]
mov rdx, [rbp+var_18]
movzx edx, word ptr [rdx+6]
xor edx, 0FFFFFFFFh
and ecx, edx
and eax, ecx
movzx ecx, [rbp+var_1C]
mov rdx, [rbp+var_18]
movzx edx, word ptr [rdx+2]
xor edx, 0FFFFFFFFh
mov rsi, [rbp+var_18]
movzx esi, word ptr [rsi+6]
xor esi, 0FFFFFFFFh
and edx, esi
and ecx, edx
or eax, ecx
add rsp, 30h
pop rbp
retn
|
long long Gpio::ReadGpio(Gpio *this, int a2)
{
unsigned __int16 v3; // [rsp+14h] [rbp-1Ch]
__int16 v4; // [rsp+16h] [rbp-1Ah]
_WORD *v5; // [rsp+18h] [rbp-18h]
v5 = (_WORD *)std::array<Gpio::Port,3ul>::operator[]((char *)this + 2, a2);
v4 = ~v5[2] & v5[1] ^ *v5;
v3 = 0;
if ( a2 )
{
if ( a2 == 1 )
{
v3 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 72LL))(*((_QWORD *)this + 4));
}
else if ( a2 == 2 )
{
v3 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 88LL))(*((_QWORD *)this + 4));
}
}
else
{
v3 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 56LL))(*((_QWORD *)this + 4));
}
return ~(unsigned __int16)v5[3] & ~(unsigned __int16)v5[1] & v3 | (unsigned int)(unsigned __int16)(~v5[3] & v5[1] & v4);
}
|
ReadGpio:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RDI
ADD RDI,0x2
MOVSXD RSI,dword ptr [RBP + -0xc]
CALL 0x0011f8e0
MOV qword ptr [RBP + -0x18],RAX
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RDX]
MOVZX ECX,word ptr [RDX + 0x2]
MOVZX EDX,word ptr [RDX + 0x4]
NOT EDX
AND ECX,EDX
XOR EAX,ECX
MOV word ptr [RBP + -0x1a],AX
MOV word ptr [RBP + -0x1c],0x0
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
TEST EAX,EAX
JZ 0x0011f537
JMP 0x0011f523
LAB_0011f523:
MOV EAX,dword ptr [RBP + -0x20]
SUB EAX,0x1
JZ 0x0011f54b
JMP 0x0011f52d
LAB_0011f52d:
MOV EAX,dword ptr [RBP + -0x20]
SUB EAX,0x2
JZ 0x0011f55f
JMP 0x0011f571
LAB_0011f537:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x38]
MOV word ptr [RBP + -0x1c],AX
JMP 0x0011f571
LAB_0011f54b:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x48]
MOV word ptr [RBP + -0x1c],AX
JMP 0x0011f571
LAB_0011f55f:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x58]
MOV word ptr [RBP + -0x1c],AX
LAB_0011f571:
MOVZX EAX,word ptr [RBP + -0x1a]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RCX + 0x2]
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,word ptr [RDX + 0x6]
XOR EDX,0xffffffff
AND ECX,EDX
AND EAX,ECX
MOVZX ECX,word ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,word ptr [RDX + 0x2]
XOR EDX,0xffffffff
MOV RSI,qword ptr [RBP + -0x18]
MOVZX ESI,word ptr [RSI + 0x6]
XOR ESI,0xffffffff
AND EDX,ESI
AND ECX,EDX
OR EAX,ECX
ADD RSP,0x30
POP RBP
RET
|
/* Gpio::ReadGpio(int) */
ushort __thiscall Gpio::ReadGpio(Gpio *this,int param_1)
{
ushort uVar1;
ushort uVar2;
ushort uVar3;
ushort *puVar4;
ushort local_24;
puVar4 = (ushort *)std::array<Gpio::Port,3ul>::operator[]((ulong)(this + 2));
uVar1 = *puVar4;
uVar2 = puVar4[1];
uVar3 = puVar4[2];
local_24 = 0;
if (param_1 == 0) {
local_24 = (**(code **)(**(long **)(this + 0x20) + 0x38))();
}
else if (param_1 == 1) {
local_24 = (**(code **)(**(long **)(this + 0x20) + 0x48))();
}
else if (param_1 == 2) {
local_24 = (**(code **)(**(long **)(this + 0x20) + 0x58))();
}
return (uVar1 ^ uVar2 & ~uVar3) & puVar4[1] & (puVar4[3] ^ 0xffff) |
local_24 & (puVar4[1] ^ 0xffff) & (puVar4[3] ^ 0xffff);
}
|
|
11,536 |
nglog::ErrnoLogMessage::~ErrnoLogMessage()
|
ng-log[P]ng-log/src/logging.cc
|
ErrnoLogMessage::~ErrnoLogMessage() {
// Don't access errno directly because it may have been altered
// while streaming the message.
stream() << ": " << StrError(preserved_errno()) << " [" << preserved_errno()
<< "]";
}
|
O2
|
cpp
|
nglog::ErrnoLogMessage::~ErrnoLogMessage():
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl $0x7538, %edi # imm = 0x7538
addq 0x8(%rbx), %rdi
leaq 0x1456d(%rip), %rsi # 0x1ea0b
callq 0x7580
movq %rax, %r14
movq 0x8(%rbx), %rax
movl (%rax), %esi
leaq 0x8(%rsp), %rdi
callq 0xa535
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x74d0
leaq 0x14253(%rip), %rsi # 0x1e71d
movq %rax, %rdi
callq 0x7580
movq 0x8(%rbx), %rcx
movl (%rcx), %esi
movq %rax, %rdi
callq 0x79e0
leaq 0x1453d(%rip), %rsi # 0x1ea24
movq %rax, %rdi
callq 0x7580
leaq 0x8(%rsp), %rdi
callq 0x7b38
movq %rbx, %rdi
callq 0x9e1a
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0xa50b
movq %rax, %r14
jmp 0xa51d
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x7b38
movq %rbx, %rdi
callq 0x9e1a
movq %r14, %rdi
callq 0x7a00
movq %rax, %rdi
callq 0x8d08
|
_ZN5nglog15ErrnoLogMessageD2Ev:
push r14; Alternative name is 'nglog::ErrnoLogMessage::~ErrnoLogMessage()'
push rbx
sub rsp, 28h
mov rbx, rdi
mov edi, 7538h
add rdi, [rbx+8]
lea rsi, aRunningDuratio+1Ah; ": "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov r14, rax
mov rax, [rbx+8]
mov esi, [rax]
lea rdi, [rsp+38h+var_30]
call _ZN5nglog8StrErrorB5cxx11Ei; nglog::StrError(int)
lea rsi, [rsp+38h+var_30]
mov rdi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
lea rsi, asc_1E71D; " ["
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rcx, [rbx+8]
mov esi, [rcx]
mov rdi, rax
call __ZNSolsEi; std::ostream::operator<<(int)
lea rsi, aLogLineFormatI+16h; "]"
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
lea rdi, [rsp+38h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx; this
call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage()
add rsp, 28h
pop rbx
pop r14
retn
jmp short $+2
loc_A50B:
mov r14, rax
jmp short loc_A51D
mov r14, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_A51D:
mov rdi, rbx; this
call _ZN5nglog10LogMessageD2Ev; nglog::LogMessage::~LogMessage()
mov rdi, r14
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
|
void nglog::ErrnoLogMessage::~ErrnoLogMessage(
nglog::ErrnoLogMessage *this,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
long long v6; // r14
long long v7; // rax
long long v8; // rdx
long long v9; // rcx
long long v10; // r8
long long v11; // r9
long long v12; // rax
long long v13; // rax
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
_BYTE v18[48]; // [rsp+8h] [rbp-30h] BYREF
v6 = std::operator<<<std::char_traits<char>>(*((_QWORD *)this + 1) + 30008LL, ": ", a3, a4, a5, a6);
nglog::StrError[abi:cxx11](v18, **((unsigned int **)this + 1));
v7 = std::operator<<<char>(v6, v18);
v12 = std::operator<<<std::char_traits<char>>(v7, " [", v8, v9, v10, v11);
v13 = std::ostream::operator<<(v12, **((unsigned int **)this + 1));
std::operator<<<std::char_traits<char>>(v13, "]", v14, v15, v16, v17);
std::string::~string(v18);
nglog::LogMessage::~LogMessage(this);
}
|
~ErrnoLogMessage:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV EDI,0x7538
ADD RDI,qword ptr [RBX + 0x8]
LAB_0010a497:
LEA RSI,[0x11ea0b]
CALL 0x00107580
MOV R14,RAX
MOV RAX,qword ptr [RBX + 0x8]
MOV ESI,dword ptr [RAX]
LAB_0010a4ac:
LEA RDI,[RSP + 0x8]
CALL 0x0010a535
LAB_0010a4b6:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x001074d0
LEA RSI,[0x11e71d]
MOV RDI,RAX
CALL 0x00107580
MOV RCX,qword ptr [RBX + 0x8]
MOV ESI,dword ptr [RCX]
MOV RDI,RAX
CALL 0x001079e0
LEA RSI,[0x11ea24]
MOV RDI,RAX
CALL 0x00107580
LAB_0010a4ef:
LEA RDI,[RSP + 0x8]
CALL 0x00107b38
MOV RDI,RBX
CALL 0x00109e1a
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* nglog::ErrnoLogMessage::~ErrnoLogMessage() */
void __thiscall nglog::ErrnoLogMessage::~ErrnoLogMessage(ErrnoLogMessage *this)
{
ostream *poVar1;
nglog local_30 [32];
/* try { // try from 0010a497 to 0010a4a2 has its CatchHandler @ 0010a50b */
poVar1 = std::operator<<((ostream *)(*(long *)(this + 8) + 0x7538),": ");
/* try { // try from 0010a4ac to 0010a4b5 has its CatchHandler @ 0010a509 */
StrError_abi_cxx11_(local_30,**(int **)(this + 8));
/* try { // try from 0010a4b6 to 0010a4ee has its CatchHandler @ 0010a510 */
poVar1 = std::operator<<(poVar1,(string *)local_30);
poVar1 = std::operator<<(poVar1," [");
poVar1 = (ostream *)std::ostream::operator<<(poVar1,**(int **)(this + 8));
std::operator<<(poVar1,"]");
std::__cxx11::string::~string((string *)local_30);
LogMessage::~LogMessage((LogMessage *)this);
return;
}
|
|
11,537 |
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;
}
|
O0
|
c
|
int10_to_str:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x58(%rbp)
movq %rsi, -0x60(%rbp)
movl %edx, -0x64(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpl $0x0, -0x64(%rbp)
jge 0x73c96
cmpq $0x0, -0x58(%rbp)
jge 0x73c94
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
movb $0x2d, (%rax)
xorl %eax, %eax
subq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x73c96
leaq -0x50(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movb $0x0, (%rax)
movq -0x80(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
imulq $0xa, -0x78(%rbp), %rcx
subq %rcx, %rax
movsbl %al, %eax
addl $0x30, %eax
movb %al, %cl
movq -0x70(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x70(%rbp)
movb %cl, -0x1(%rax)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x73d32
movq -0x58(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rax
imulq $0xa, -0x78(%rbp), %rcx
subq %rcx, %rax
movsbl %al, %eax
addl $0x30, %eax
movb %al, %cl
movq -0x70(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x70(%rbp)
movb %cl, -0x1(%rax)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x73ce9
jmp 0x73d34
movq -0x70(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x70(%rbp)
movb (%rax), %al
movq -0x60(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x60(%rbp)
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0x0, %eax
je 0x73d60
jmp 0x73d34
movq -0x60(%rbp), %rax
decq %rax
movq %rax, -0x88(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x73d90
movq -0x88(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
callq 0x24320
nopw %cs:(%rax,%rax)
nop
|
int10_to_str:
push rbp
mov rbp, rsp
sub rsp, 90h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_58], rdi
mov [rbp+var_60], rsi
mov [rbp+var_64], edx
mov rax, [rbp+var_58]
mov [rbp+var_80], rax
cmp [rbp+var_64], 0
jge short loc_73C96
cmp [rbp+var_58], 0
jge short loc_73C94
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 1
mov [rbp+var_60], rcx
mov byte ptr [rax], 2Dh ; '-'
xor eax, eax
sub rax, [rbp+var_80]
mov [rbp+var_80], rax
loc_73C94:
jmp short $+2
loc_73C96:
lea rax, [rbp+var_50]
add rax, 40h ; '@'
mov [rbp+var_70], rax
mov rax, [rbp+var_70]
mov byte ptr [rax], 0
mov rax, [rbp+var_80]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rbp+var_78], rax
mov rax, [rbp+var_80]
imul rcx, [rbp+var_78], 0Ah
sub rax, rcx
movsx eax, al
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_70]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_70], rdx
mov [rax-1], cl
mov rax, [rbp+var_78]
mov [rbp+var_58], rax
loc_73CE9:
cmp [rbp+var_58], 0
jz short loc_73D32
mov rax, [rbp+var_58]
mov ecx, 0Ah
cqo
idiv rcx
mov [rbp+var_78], rax
mov rax, [rbp+var_58]
imul rcx, [rbp+var_78], 0Ah
sub rax, rcx
movsx eax, al
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_70]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_70], rdx
mov [rax-1], cl
mov rax, [rbp+var_78]
mov [rbp+var_58], rax
jmp short loc_73CE9
loc_73D32:
jmp short $+2
loc_73D34:
mov rax, [rbp+var_70]
mov rcx, rax
add rcx, 1
mov [rbp+var_70], rcx
mov al, [rax]
mov rcx, [rbp+var_60]
mov rdx, rcx
add rdx, 1
mov [rbp+var_60], rdx
mov [rcx], al
movsx eax, al
cmp eax, 0
jz short loc_73D60
jmp short loc_73D34
loc_73D60:
mov rax, [rbp+var_60]
dec rax
mov [rbp+var_88], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_73D90
mov rax, [rbp+var_88]
add rsp, 90h
pop rbp
retn
loc_73D90:
call ___stack_chk_fail
|
_BYTE * int10_to_str(long long a1, _BYTE *a2, int a3)
{
_BYTE *v3; // rax
_BYTE *v4; // rax
_BYTE *v5; // rcx
unsigned long long v7; // [rsp+10h] [rbp-80h]
_BYTE *v8; // [rsp+20h] [rbp-70h]
_BYTE *v9; // [rsp+30h] [rbp-60h]
signed long long i; // [rsp+38h] [rbp-58h]
_BYTE v11[9]; // [rsp+7Fh] [rbp-11h] BYREF
unsigned long long v12; // [rsp+88h] [rbp-8h]
v12 = __readfsqword(0x28u);
v9 = a2;
v7 = a1;
if ( a3 < 0 && a1 < 0 )
{
v9 = a2 + 1;
*a2 = 45;
v7 = -a1;
}
v11[1] = 0;
v8 = v11;
v11[0] = v7 % 0xA + 48;
for ( i = v7 / 0xA; i; i /= 10LL )
{
v3 = v8--;
*(v3 - 1) = i % 10 + 48;
}
do
{
v4 = v8++;
LOBYTE(v4) = *v4;
v5 = v9++;
*v5 = (_BYTE)v4;
}
while ( (_BYTE)v4 );
return v9 - 1;
}
|
int10_to_str:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x60],RSI
MOV dword ptr [RBP + -0x64],EDX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x80],RAX
CMP dword ptr [RBP + -0x64],0x0
JGE 0x00173c96
CMP qword ptr [RBP + -0x58],0x0
JGE 0x00173c94
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RAX],0x2d
XOR EAX,EAX
SUB RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x80],RAX
LAB_00173c94:
JMP 0x00173c96
LAB_00173c96:
LEA RAX,[RBP + -0x50]
ADD RAX,0x40
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x70]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x80]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x80]
IMUL RCX,qword ptr [RBP + -0x78],0xa
SUB RAX,RCX
MOVSX EAX,AL
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x70]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x70],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x58],RAX
LAB_00173ce9:
CMP qword ptr [RBP + -0x58],0x0
JZ 0x00173d32
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,0xa
CQO
IDIV RCX
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x58]
IMUL RCX,qword ptr [RBP + -0x78],0xa
SUB RAX,RCX
MOVSX EAX,AL
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x70]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x70],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00173ce9
LAB_00173d32:
JMP 0x00173d34
LAB_00173d34:
MOV RAX,qword ptr [RBP + -0x70]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x70],RCX
MOV AL,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x60]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x60],RDX
MOV byte ptr [RCX],AL
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00173d60
JMP 0x00173d34
LAB_00173d60:
MOV RAX,qword ptr [RBP + -0x60]
DEC RAX
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00173d90
MOV RAX,qword ptr [RBP + -0x88]
ADD RSP,0x90
POP RBP
RET
LAB_00173d90:
CALL 0x00124320
|
char * int10_to_str(ulong param_1,char *param_2,int param_3)
{
char cVar1;
char *pcVar2;
long in_FS_OFFSET;
ulong local_88;
char *local_78;
char *local_68;
ulong local_60;
char local_1a [10];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_88 = param_1;
local_68 = param_2;
if ((param_3 < 0) && ((long)param_1 < 0)) {
local_68 = param_2 + 1;
*param_2 = '-';
local_88 = -param_1;
}
local_1a[2] = 0;
local_1a[1] = (char)local_88 + (char)(local_88 / 10) * -10 + '0';
local_78 = local_1a + 1;
local_60 = local_88 / 10;
while (pcVar2 = local_68, local_60 != 0) {
local_78[-1] = (char)local_60 + (char)((long)local_60 / 10) * -10 + '0';
local_78 = local_78 + -1;
local_60 = (long)local_60 / 10;
}
do {
local_68 = pcVar2;
cVar1 = *local_78;
*local_68 = cVar1;
local_78 = local_78 + 1;
pcVar2 = local_68 + 1;
} while (cVar1 != '\0');
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_68;
}
|
|
11,538 |
ma_tls_version_options
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
static long ma_tls_version_options(const char *version)
{
long protocol_options,
disable_all_protocols;
protocol_options= disable_all_protocols=
SSL_OP_NO_SSLv2 |
SSL_OP_NO_SSLv3 |
SSL_OP_NO_TLSv1 |
SSL_OP_NO_TLSv1_1 |
SSL_OP_NO_TLSv1_2
#ifdef TLS1_3_VERSION
| SSL_OP_NO_TLSv1_3
#endif
;
if (!version)
return 0;
if (strstr(version, "TLSv1.0"))
protocol_options&= ~SSL_OP_NO_TLSv1;
if (strstr(version, "TLSv1.1"))
protocol_options&= ~SSL_OP_NO_TLSv1_1;
if (strstr(version, "TLSv1.2"))
protocol_options&= ~SSL_OP_NO_TLSv1_2;
#ifdef TLS1_3_VERSION
if (strstr(version, "TLSv1.3"))
protocol_options&= ~SSL_OP_NO_TLSv1_3;
#endif
if (protocol_options != disable_all_protocols)
return protocol_options;
return 0;
}
|
O0
|
c
|
ma_tls_version_options:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq $0x3e000000, -0x20(%rbp) # imm = 0x3E000000
movq $0x3e000000, -0x18(%rbp) # imm = 0x3E000000
cmpq $0x0, -0x10(%rbp)
jne 0x5aa10
movq $0x0, -0x8(%rbp)
jmp 0x5aabc
movq -0x10(%rbp), %rdi
leaq 0x706b3(%rip), %rsi # 0xcb0ce
callq 0x36450
cmpq $0x0, %rax
je 0x5aa34
movq -0x18(%rbp), %rax
andq $-0x4000001, %rax # imm = 0xFBFFFFFF
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x70697(%rip), %rsi # 0xcb0d6
callq 0x36450
cmpq $0x0, %rax
je 0x5aa58
movq -0x18(%rbp), %rax
andq $-0x10000001, %rax # imm = 0xEFFFFFFF
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x7067b(%rip), %rsi # 0xcb0de
callq 0x36450
cmpq $0x0, %rax
je 0x5aa7c
movq -0x18(%rbp), %rax
andq $-0x8000001, %rax # imm = 0xF7FFFFFF
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x7065f(%rip), %rsi # 0xcb0e6
callq 0x36450
cmpq $0x0, %rax
je 0x5aaa0
movq -0x18(%rbp), %rax
andq $-0x20000001, %rax # imm = 0xDFFFFFFF
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x5aab4
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x5aabc
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_tls_version_options:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_20], 3E000000h
mov [rbp+var_18], 3E000000h
cmp [rbp+var_10], 0
jnz short loc_5AA10
mov [rbp+var_8], 0
jmp loc_5AABC
loc_5AA10:
mov rdi, [rbp+var_10]
lea rsi, aTlsv10; "TLSv1.0"
call _strstr
cmp rax, 0
jz short loc_5AA34
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFFBFFFFFFh
mov [rbp+var_18], rax
loc_5AA34:
mov rdi, [rbp+var_10]
lea rsi, aTlsv11; "TLSv1.1"
call _strstr
cmp rax, 0
jz short loc_5AA58
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFEFFFFFFFh
mov [rbp+var_18], rax
loc_5AA58:
mov rdi, [rbp+var_10]
lea rsi, aTlsv12; "TLSv1.2"
call _strstr
cmp rax, 0
jz short loc_5AA7C
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFF7FFFFFFh
mov [rbp+var_18], rax
loc_5AA7C:
mov rdi, [rbp+var_10]
lea rsi, aTlsv13; "TLSv1.3"
call _strstr
cmp rax, 0
jz short loc_5AAA0
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFDFFFFFFFh
mov [rbp+var_18], rax
loc_5AAA0:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz short loc_5AAB4
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp short loc_5AABC
loc_5AAB4:
mov [rbp+var_8], 0
loc_5AABC:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
|
long long ma_tls_version_options(long long a1)
{
long long v2; // [rsp+8h] [rbp-18h]
v2 = 1040187392LL;
if ( !a1 )
return 0LL;
if ( strstr(a1, "TLSv1.0") )
v2 = 973078528LL;
if ( strstr(a1, "TLSv1.1") )
v2 &= ~0x10000000uLL;
if ( strstr(a1, "TLSv1.2") )
v2 &= ~0x8000000uLL;
if ( strstr(a1, "TLSv1.3") )
v2 &= ~0x20000000uLL;
if ( v2 == 1040187392 )
return 0LL;
else
return v2;
}
|
ma_tls_version_options:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x20],0x3e000000
MOV qword ptr [RBP + -0x18],0x3e000000
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0015aa10
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0015aabc
LAB_0015aa10:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1cb0ce]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa34
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x4000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa34:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1cb0d6]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa58
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x10000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa58:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1cb0de]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa7c
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x8000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa7c:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1cb0e6]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aaa0
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x20000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aaa0:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0015aab4
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015aabc
LAB_0015aab4:
MOV qword ptr [RBP + -0x8],0x0
LAB_0015aabc:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
ulong ma_tls_version_options(char *param_1)
{
char *pcVar1;
ulong local_20;
ulong local_10;
local_20 = 0x3e000000;
if (param_1 == (char *)0x0) {
local_10 = 0;
}
else {
pcVar1 = strstr(param_1,"TLSv1.0");
if (pcVar1 != (char *)0x0) {
local_20 = 0x3a000000;
}
pcVar1 = strstr(param_1,"TLSv1.1");
if (pcVar1 != (char *)0x0) {
local_20 = local_20 & 0xffffffffefffffff;
}
pcVar1 = strstr(param_1,"TLSv1.2");
if (pcVar1 != (char *)0x0) {
local_20 = local_20 & 0xfffffffff7ffffff;
}
pcVar1 = strstr(param_1,"TLSv1.3");
if (pcVar1 != (char *)0x0) {
local_20 = local_20 & 0xffffffffdfffffff;
}
if (local_20 == 0x3e000000) {
local_10 = 0;
}
else {
local_10 = local_20;
}
}
return local_10;
}
|
|
11,539 |
dynstr_append_os_quoted
|
eloqsql/mysys/string.c
|
my_bool dynstr_append_os_quoted(DYNAMIC_STRING *str, const char *append, ...)
{
#ifdef _WIN32
LEX_CSTRING quote= { C_STRING_WITH_LEN("\"") };
LEX_CSTRING replace= { C_STRING_WITH_LEN("\\\"") };
#else
LEX_CSTRING quote= { C_STRING_WITH_LEN("\'") };
LEX_CSTRING replace= { C_STRING_WITH_LEN("'\"'\"'") };
#endif /* _WIN32 */
my_bool ret= TRUE;
va_list dirty_text;
ret&= dynstr_append_mem(str, quote.str, quote.length); /* Leading quote */
va_start(dirty_text, append);
while (append != NullS)
{
const char *cur_pos= append;
const char *next_pos= cur_pos;
/* Search for quote in each string and replace with escaped quote */
while(*(next_pos= strcend(cur_pos, quote.str[0])) != '\0')
{
ret&= dynstr_append_mem(str, cur_pos, (uint) (next_pos - cur_pos));
ret&= dynstr_append_mem(str, replace.str, replace.length);
cur_pos= next_pos + 1;
}
ret&= dynstr_append_mem(str, cur_pos, (uint) (next_pos - cur_pos));
append= va_arg(dirty_text, char *);
}
va_end(dirty_text);
ret&= dynstr_append_mem(str, quote.str, quote.length); /* Trailing quote */
return ret;
}
|
O3
|
c
|
dynstr_append_os_quoted:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r12
movq %rdi, %rbx
leaq -0x100(%rbp), %r14
movq %rdx, 0x10(%r14)
movq %rcx, 0x18(%r14)
movq %r8, 0x20(%r14)
movq %r9, 0x28(%r14)
testb %al, %al
je 0x9ee1d
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
movaps %xmm3, -0xa0(%rbp)
movaps %xmm4, -0x90(%rbp)
movaps %xmm5, -0x80(%rbp)
movaps %xmm6, -0x70(%rbp)
movaps %xmm7, -0x60(%rbp)
leaq 0x523e8(%rip), %rsi # 0xf120c
movl $0x1, %edx
callq 0x9ed13
movl %eax, %r15d
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, -0x50(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, -0x40(%rbp)
testq %r12, %r12
je 0x9ef0d
movq %rbx, -0x30(%rbp)
movq %r12, %rdi
movl $0x27, %esi
callq 0xee694
movq %rax, %r14
cmpb $0x0, (%rax)
je 0x9eebf
movq -0x30(%rbp), %rbx
movl %r14d, %edx
subl %r12d, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9ed13
movl %eax, %r13d
movl $0x5, %edx
movq %rbx, %rdi
leaq 0x747d9(%rip), %rsi # 0x11366d
callq 0x9ed13
andb %r15b, %r13b
andb %al, %r13b
movq %r14, %r12
incq %r12
movq %r12, %rdi
movl $0x27, %esi
callq 0xee694
movq %rax, %r14
cmpb $0x0, (%rax)
movl %r13d, %r15d
jne 0x9ee71
jmp 0x9eec6
movl %r15d, %r13d
movq -0x30(%rbp), %rbx
subl %r12d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x9ed13
movl %eax, %r15d
movl -0x50(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x9eef2
movq %rcx, %rax
addq -0x40(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x50(%rbp)
jmp 0x9eefe
movq -0x48(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x48(%rbp)
andb %r13b, %r15b
movq (%rax), %r12
testq %r12, %r12
jne 0x9ee58
leaq 0x522f8(%rip), %rsi # 0xf120c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9ed13
andb %r15b, %al
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
dynstr_append_os_quoted:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov r12, rsi
mov rbx, rdi
lea r14, [rbp+var_100]
mov [r14+10h], rdx
mov [r14+18h], rcx
mov [r14+20h], r8
mov [r14+28h], r9
test al, al
jz short loc_9EE1D
movaps [rbp+var_D0], xmm0
movaps [rbp+var_C0], xmm1
movaps [rbp+var_B0], xmm2
movaps [rbp+var_A0], xmm3
movaps [rbp+var_90], xmm4
movaps [rbp+var_80], xmm5
movaps [rbp+var_70], xmm6
movaps [rbp+var_60], xmm7
loc_9EE1D:
lea rsi, aSystemCommand+0Fh; "'"
mov edx, 1
call dynstr_append_mem
mov r15d, eax
mov rax, 3000000010h
mov [rbp+var_50], rax
lea rax, [rbp+arg_0]
mov [rbp+var_48], rax
mov [rbp+var_40], r14
test r12, r12
jz loc_9EF0D
mov [rbp+var_30], rbx
loc_9EE58:
mov rdi, r12
mov esi, 27h ; '''
call strcend
mov r14, rax
cmp byte ptr [rax], 0
jz short loc_9EEBF
mov rbx, [rbp+var_30]
loc_9EE71:
mov edx, r14d
sub edx, r12d
mov rdi, rbx
mov rsi, r12
call dynstr_append_mem
mov r13d, eax
mov edx, 5
mov rdi, rbx
lea rsi, asc_11366D; "'\"'\"'"
call dynstr_append_mem
and r13b, r15b
and r13b, al
mov r12, r14
inc r12
mov rdi, r12
mov esi, 27h ; '''
call strcend
mov r14, rax
cmp byte ptr [rax], 0
mov r15d, r13d
jnz short loc_9EE71
jmp short loc_9EEC6
loc_9EEBF:
mov r13d, r15d
mov rbx, [rbp+var_30]
loc_9EEC6:
sub r14d, r12d
mov rdi, rbx
mov rsi, r12
mov rdx, r14
call dynstr_append_mem
mov r15d, eax
mov ecx, dword ptr [rbp+var_50]
cmp rcx, 28h ; '('
ja short loc_9EEF2
mov rax, rcx
add rax, [rbp+var_40]
add ecx, 8
mov dword ptr [rbp+var_50], ecx
jmp short loc_9EEFE
loc_9EEF2:
mov rax, [rbp+var_48]
lea rcx, [rax+8]
mov [rbp+var_48], rcx
loc_9EEFE:
and r15b, r13b
mov r12, [rax]
test r12, r12
jnz loc_9EE58
loc_9EF0D:
lea rsi, aSystemCommand+0Fh; "'"
mov edx, 1
mov rdi, rbx
call dynstr_append_mem
and al, r15b
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char dynstr_append_os_quoted(
long long *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
long long v15; // r12
long long *v16; // rbx
char appended; // r15
_BYTE *v18; // r14
char v19; // r13
char v20; // r13
char v21; // r15
long long *v22; // rax
char v24; // [rsp+0h] [rbp-100h] BYREF
long long v25; // [rsp+10h] [rbp-F0h]
long long v26; // [rsp+18h] [rbp-E8h]
long long v27; // [rsp+20h] [rbp-E0h]
long long v28; // [rsp+28h] [rbp-D8h]
__m128 v29; // [rsp+30h] [rbp-D0h]
__m128 v30; // [rsp+40h] [rbp-C0h]
__m128 v31; // [rsp+50h] [rbp-B0h]
__m128 v32; // [rsp+60h] [rbp-A0h]
__m128 v33; // [rsp+70h] [rbp-90h]
__m128 v34; // [rsp+80h] [rbp-80h]
__m128 v35; // [rsp+90h] [rbp-70h]
__m128 v36; // [rsp+A0h] [rbp-60h]
long long v37; // [rsp+B0h] [rbp-50h]
long long *v38; // [rsp+B8h] [rbp-48h]
char *v39; // [rsp+C0h] [rbp-40h]
long long *v40; // [rsp+D0h] [rbp-30h]
v29 = a7;
v30 = a8;
v31 = a9;
v32 = a10;
v33 = a11;
v34 = a12;
v35 = a13;
v36 = a14;
v15 = a2;
v16 = a1;
v25 = a3;
v26 = a4;
v27 = a5;
v28 = a6;
appended = dynstr_append_mem(a1, (long long)"'", 1LL);
v37 = 0x3000000010LL;
v38 = (long long *)&a15;
v39 = &v24;
if ( a2 )
{
v40 = a1;
do
{
v18 = (_BYTE *)strcend(v15, 39LL);
if ( *v18 )
{
v16 = v40;
do
{
v19 = dynstr_append_mem(v16, v15, (unsigned int)((_DWORD)v18 - v15));
v20 = dynstr_append_mem(v16, (long long)"'\"'\"'", 5LL) & appended & v19;
v15 = (long long)(v18 + 1);
v18 = (_BYTE *)strcend(v18 + 1, 39LL);
appended = v20;
}
while ( *v18 );
}
else
{
v20 = appended;
v16 = v40;
}
v21 = dynstr_append_mem(v16, v15, (unsigned int)((_DWORD)v18 - v15));
if ( (unsigned int)v37 > 0x28uLL )
{
v22 = v38++;
}
else
{
v22 = (long long *)&v39[(unsigned int)v37];
LODWORD(v37) = v37 + 8;
}
appended = v20 & v21;
v15 = *v22;
}
while ( *v22 );
}
return appended & dynstr_append_mem(v16, (long long)"'", 1LL);
}
|
dynstr_append_os_quoted:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV R12,RSI
MOV RBX,RDI
LEA R14,[RBP + -0x100]
MOV qword ptr [R14 + 0x10],RDX
MOV qword ptr [R14 + 0x18],RCX
MOV qword ptr [R14 + 0x20],R8
MOV qword ptr [R14 + 0x28],R9
TEST AL,AL
JZ 0x0019ee1d
MOVAPS xmmword ptr [RBP + -0xd0],XMM0
MOVAPS xmmword ptr [RBP + -0xc0],XMM1
MOVAPS xmmword ptr [RBP + -0xb0],XMM2
MOVAPS xmmword ptr [RBP + -0xa0],XMM3
MOVAPS xmmword ptr [RBP + -0x90],XMM4
MOVAPS xmmword ptr [RBP + -0x80],XMM5
MOVAPS xmmword ptr [RBP + -0x70],XMM6
MOVAPS xmmword ptr [RBP + -0x60],XMM7
LAB_0019ee1d:
LEA RSI,[0x1f120c]
MOV EDX,0x1
CALL 0x0019ed13
MOV R15D,EAX
MOV RAX,0x3000000010
MOV qword ptr [RBP + -0x50],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x48],RAX
MOV qword ptr [RBP + -0x40],R14
TEST R12,R12
JZ 0x0019ef0d
MOV qword ptr [RBP + -0x30],RBX
LAB_0019ee58:
MOV RDI,R12
MOV ESI,0x27
CALL 0x001ee694
MOV R14,RAX
CMP byte ptr [RAX],0x0
JZ 0x0019eebf
MOV RBX,qword ptr [RBP + -0x30]
LAB_0019ee71:
MOV EDX,R14D
SUB EDX,R12D
MOV RDI,RBX
MOV RSI,R12
CALL 0x0019ed13
MOV R13D,EAX
MOV EDX,0x5
MOV RDI,RBX
LEA RSI,[0x21366d]
CALL 0x0019ed13
AND R13B,R15B
AND R13B,AL
MOV R12,R14
INC R12
MOV RDI,R12
MOV ESI,0x27
CALL 0x001ee694
MOV R14,RAX
CMP byte ptr [RAX],0x0
MOV R15D,R13D
JNZ 0x0019ee71
JMP 0x0019eec6
LAB_0019eebf:
MOV R13D,R15D
MOV RBX,qword ptr [RBP + -0x30]
LAB_0019eec6:
SUB R14D,R12D
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
CALL 0x0019ed13
MOV R15D,EAX
MOV ECX,dword ptr [RBP + -0x50]
CMP RCX,0x28
JA 0x0019eef2
MOV RAX,RCX
ADD RAX,qword ptr [RBP + -0x40]
ADD ECX,0x8
MOV dword ptr [RBP + -0x50],ECX
JMP 0x0019eefe
LAB_0019eef2:
MOV RAX,qword ptr [RBP + -0x48]
LEA RCX,[RAX + 0x8]
MOV qword ptr [RBP + -0x48],RCX
LAB_0019eefe:
AND R15B,R13B
MOV R12,qword ptr [RAX]
TEST R12,R12
JNZ 0x0019ee58
LAB_0019ef0d:
LEA RSI,[0x1f120c]
MOV EDX,0x1
MOV RDI,RBX
CALL 0x0019ed13
AND AL,R15B
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
byte dynstr_append_os_quoted
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,char *param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char cVar1;
int8 uVar2;
char in_AL;
byte bVar3;
byte bVar4;
byte bVar5;
char *pcVar6;
int8 *puVar7;
ulong uVar8;
int1 local_108 [16];
int8 local_f8;
int8 local_f0;
int8 local_e8;
int8 local_e0;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
ulong local_58;
int8 *local_50;
int1 *local_48;
int8 local_38;
if (in_AL != '\0') {
local_d8 = param_1;
local_c8 = param_2;
local_b8 = param_3;
local_a8 = param_4;
local_98 = param_5;
local_88 = param_6;
local_78 = param_7;
local_68 = param_8;
}
local_f8 = param_11;
local_f0 = param_12;
local_e8 = param_13;
local_e0 = param_14;
bVar3 = dynstr_append_mem(param_9,"\'",1);
local_58 = 0x3000000010;
local_50 = (int8 *)&stack0x00000008;
local_48 = local_108;
uVar2 = param_9;
if (param_10 != (char *)0x0) {
do {
local_38 = uVar2;
pcVar6 = (char *)strcend(param_10,0x27);
param_9 = local_38;
cVar1 = *pcVar6;
while( true ) {
if (cVar1 == '\0') break;
bVar4 = dynstr_append_mem(param_9,param_10,(int)pcVar6 - (int)param_10);
bVar5 = dynstr_append_mem(param_9,"\'\"\'\"\'",5);
bVar3 = bVar4 & bVar3 & bVar5;
param_10 = pcVar6 + 1;
pcVar6 = (char *)strcend(param_10,0x27);
cVar1 = *pcVar6;
}
bVar4 = dynstr_append_mem(param_9,param_10,(int)pcVar6 - (int)param_10);
uVar8 = local_58 & 0xffffffff;
if (uVar8 < 0x29) {
local_58 = CONCAT44(local_58._4_4_,(int)local_58 + 8);
puVar7 = (int8 *)(local_48 + uVar8);
}
else {
puVar7 = local_50;
local_50 = local_50 + 1;
}
bVar3 = bVar4 & bVar3;
param_10 = (char *)*puVar7;
uVar2 = local_38;
} while (param_10 != (char *)0x0);
}
bVar4 = dynstr_append_mem(param_9,"\'",1);
return bVar4 & bVar3;
}
|
|
11,540 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> intx::to_string<256u>(intx::uint<256u>, int)
|
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
|
inline std::string to_string(uint<N> x, int base = 10)
{
if (base < 2 || base > 36)
throw_<std::invalid_argument>("invalid base");
if (x == 0)
return "0";
auto s = std::string{};
while (x != 0)
{
// TODO: Use constexpr udivrem_1?
const auto res = udivrem(x, uint<N>{base});
const auto d = int(res.rem);
const auto c = d < 10 ? '0' + d : 'a' + d - 10;
s.push_back(char(c));
x = res.quot;
}
std::reverse(s.begin(), s.end());
return s;
}
|
O2
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> intx::to_string<256u>(intx::uint<256u>, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, %r15d
leal -0x25(%r15), %eax
cmpl $-0x24, %eax
jbe 0x462af
movq %rdi, %rbx
leaq 0xa0(%rsp), %r14
leaq 0x8(%rsp), %rsi
andl $0x0, (%rsi)
movq %r14, %rdi
callq 0x3ab42
testb %al, %al
je 0x46208
leaq 0x3bb76(%rip), %rsi # 0x81d6c
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x45b32
jmp 0x4629d
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq 0x50(%rsp), %r13
movl %r15d, %ebp
leaq 0x8(%rsp), %r15
leaq 0x48(%rsp), %r12
andl $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x38f0c
testb %al, %al
je 0x4628e
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
andq $0x0, 0x10(%r13)
movq %rbp, 0x48(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x38f8e
movl 0x28(%rsp), %eax
leal 0x57(%rax), %ecx
leal 0x30(%rax), %edx
cmpl $0xa, %eax
cmovgel %ecx, %edx
movsbl %dl, %esi
movq %rbx, %rdi
callq 0x46316
movups 0x8(%rsp), %xmm0
movups 0x18(%rsp), %xmm1
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
jmp 0x4622a
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
addq %rdi, %rsi
callq 0x46376
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x36745(%rip), %rdi # 0x7c9fb
callq 0x462d0
jmp 0x462bd
movq %rax, %r14
movq %rbx, %rdi
callq 0x45b22
movq %r14, %rdi
callq 0x22330
|
_ZN4intx9to_stringILj256EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_4uintIXT_EEEi:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15d, esi
lea eax, [r15-25h]
cmp eax, 0FFFFFFDCh
jbe loc_462AF
mov rbx, rdi
lea r14, [rsp+98h+arg_0]
lea rsi, [rsp+98h+var_90]
and dword ptr [rsi], 0
mov rdi, r14
call _ZN4intxeqILj256EivEEbRKNS_4uintIXT_EEERKT0_; intx::operator==<256u,int,void>(intx::uint<256u> const&,int const&)
test al, al
jz short loc_46208
lea rsi, aAVal010+12h; "0"
lea rdx, [rsp+98h+var_90]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp loc_4629D
loc_46208:
lea rax, [rbx+10h]
mov [rbx], rax
and qword ptr [rbx+8], 0
mov byte ptr [rbx+10h], 0
lea r13, [rsp+98h+var_48]
mov ebp, r15d
lea r15, [rsp+98h+var_90]
lea r12, [rsp+98h+var_50]
loc_4622A:
and dword ptr [rsp+98h+var_90], 0
mov rdi, r14
mov rsi, r15
call _ZN4intxneILj256EivEEbRKNS_4uintIXT_EEERKT0_; intx::operator!=<256u,int,void>(intx::uint<256u> const&,int const&)
test al, al
jz short loc_4628E
xorps xmm0, xmm0
movups xmmword ptr [r13+0], xmm0
and qword ptr [r13+10h], 0
mov [rsp+98h+var_50], rbp
mov rdi, r15
mov rsi, r14
mov rdx, r12
call _ZN4intx7udivremILj256ELj256EEENS_10div_resultINS_4uintIXT_EEENS2_IXT0_EEEEERKS3_RKS4_; intx::udivrem<256u,256u>(intx::uint<256u> const&,intx::uint<256u> const&)
mov eax, [rsp+98h+var_70]
lea ecx, [rax+57h]
lea edx, [rax+30h]
cmp eax, 0Ah
cmovge edx, ecx
movsx esi, dl
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
movups xmm0, [rsp+98h+var_90]
movups xmm1, [rsp+98h+var_80]
movups xmmword ptr [r14+10h], xmm1
movups xmmword ptr [r14], xmm0
jmp short loc_4622A
loc_4628E:
mov rdi, [rbx]
mov rsi, [rbx+8]
add rsi, rdi
call _ZSt9__reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_St26random_access_iterator_tag; std::__reverse<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,std::random_access_iterator_tag)
loc_4629D:
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_462AF:
lea rdi, aInvalidBase; "invalid base"
call _ZN4intx6throw_ISt16invalid_argumentEEvPKc; intx::throw_<std::invalid_argument>(char const*)
jmp short $+2
loc_462BD:
mov r14, rax
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14
call __Unwind_Resume
|
_QWORD * intx::to_string<256u>(
_QWORD *a1,
unsigned int a2,
_DWORD a3,
_DWORD a4,
_DWORD a5,
_DWORD a6,
__int128 a7,
__int128 a8)
{
char v8; // dl
_OWORD v10[2]; // [rsp+8h] [rbp-90h] BYREF
int v11; // [rsp+28h] [rbp-70h]
long long v12; // [rsp+48h] [rbp-50h] BYREF
__int128 v13; // [rsp+50h] [rbp-48h]
long long v14; // [rsp+60h] [rbp-38h]
if ( a2 - 37 <= 0xFFFFFFDC )
intx::throw_<std::invalid_argument>("invalid base");
LODWORD(v10[0]) = 0;
if ( intx::operator==<256u,int,void>((long long)&a7, (int *)v10) )
{
std::string::basic_string<std::allocator<char>>(a1, (long long)"0");
}
else
{
*a1 = a1 + 2;
a1[1] = 0LL;
*((_BYTE *)a1 + 16) = 0;
while ( 1 )
{
LODWORD(v10[0]) = 0;
if ( !(unsigned __int8)intx::operator!=<256u,int,void>() )
break;
v13 = 0LL;
v14 = 0LL;
v12 = a2;
intx::udivrem<256u,256u>((long long)v10, (unsigned long long)&a7, (__int128 *)&v12);
v8 = v11 + 48;
if ( v11 >= 10 )
v8 = v11 + 87;
std::string::push_back(a1, (unsigned int)v8);
a8 = v10[1];
a7 = v10[0];
}
std::__reverse<__gnu_cxx::__normal_iterator<char *,std::string>>(*a1, *a1 + a1[1]);
}
return a1;
}
|
to_string<256u>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15D,ESI
LEA EAX,[R15 + -0x25]
CMP EAX,-0x24
JBE 0x001462af
MOV RBX,RDI
LEA R14,[RSP + 0xa0]
LEA RSI,[RSP + 0x8]
AND dword ptr [RSI],0x0
MOV RDI,R14
CALL 0x0013ab42
TEST AL,AL
JZ 0x00146208
LEA RSI,[0x181d6c]
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00145b32
JMP 0x0014629d
LAB_00146208:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
AND qword ptr [RBX + 0x8],0x0
MOV byte ptr [RBX + 0x10],0x0
LEA R13,[RSP + 0x50]
MOV EBP,R15D
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x48]
LAB_0014622a:
AND dword ptr [RSP + 0x8],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x00138f0c
TEST AL,AL
JZ 0x0014628e
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R13],XMM0
AND qword ptr [R13 + 0x10],0x0
MOV qword ptr [RSP + 0x48],RBP
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
CALL 0x00138f8e
MOV EAX,dword ptr [RSP + 0x28]
LEA ECX,[RAX + 0x57]
LEA EDX,[RAX + 0x30]
CMP EAX,0xa
CMOVGE EDX,ECX
MOVSX ESI,DL
LAB_00146271:
MOV RDI,RBX
CALL 0x00146316
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
MOVUPS XMM1,xmmword ptr [RSP + 0x18]
MOVUPS xmmword ptr [R14 + 0x10],XMM1
MOVUPS xmmword ptr [R14],XMM0
JMP 0x0014622a
LAB_0014628e:
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x8]
ADD RSI,RDI
LAB_00146298:
CALL 0x00146376
LAB_0014629d:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001462af:
LEA RDI,[0x17c9fb]
CALL 0x001462d0
LAB_001462bb:
JMP 0x001462bd
LAB_001462bd:
MOV R14,RAX
MOV RDI,RBX
CALL 0x00145b22
MOV RDI,R14
CALL 0x00122330
|
/* std::__cxx11::string intx::to_string<256u>(intx::uint<256u>, int) */
string * intx::to_string<256u>(string *param_1,uint param_2)
{
bool bVar1;
int8 extraout_RAX;
char cVar2;
string *unaff_RBX;
int8 in_stack_00000008;
int8 in_stack_00000010;
int8 in_stack_00000018;
int8 in_stack_00000020;
int local_90;
int4 uStack_8c;
int8 uStack_88;
int8 local_80;
int8 uStack_78;
int local_70;
ulong local_50 [4];
if (0xffffffdc < param_2 - 0x25) {
local_90 = 0;
bVar1 = operator==((uint *)&stack0x00000008,&local_90);
if (bVar1) {
std::__cxx11::string::string<std::allocator<char>>(param_1,"0",(allocator *)&local_90);
}
else {
*(string **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (string)0x0;
while( true ) {
local_90 = 0;
bVar1 = operator!=((uint *)&stack0x00000008,&local_90);
if (!bVar1) break;
local_50[1] = 0;
local_50[2] = 0;
local_50[3] = 0;
local_50[0] = (ulong)param_2;
udivrem<256u,256u>((intx *)&local_90,(uint *)&stack0x00000008,(uint *)local_50);
cVar2 = (char)local_70 + '0';
if (9 < local_70) {
cVar2 = (char)local_70 + 'W';
}
/* try { // try from 00146271 to 00146278 has its CatchHandler @ 001462bd */
std::__cxx11::string::push_back(param_1,cVar2);
in_stack_00000008 = CONCAT44(uStack_8c,local_90);
in_stack_00000010 = uStack_88;
in_stack_00000018 = local_80;
in_stack_00000020 = uStack_78;
}
/* try { // try from 00146298 to 0014629c has its CatchHandler @ 001462bb */
std::__reverse<__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>>
(*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
}
return param_1;
}
throw_<std::invalid_argument>("invalid base");
/* catch() { ... } // from try @ 00146298 with catch @ 001462bb */
/* catch() { ... } // from try @ 00146271 with catch @ 001462bd */
std::__cxx11::string::~string(unaff_RBX);
/* WARNING: Subroutine does not return */
_Unwind_Resume(extraout_RAX);
}
|
|
11,541 |
OpenGL_Init_4_4
|
SDL3Lite/dependencies/OpenGL.h
|
void OpenGL_Init_4_4()
{
glBufferStorage = (PFNGLBUFFERSTORAGEPROC)OpenGL_Load("glBufferStorage");
glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)OpenGL_Load("glClearTexImage");
glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)OpenGL_Load("glClearTexSubImage");
glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)OpenGL_Load("glBindBuffersBase");
glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)OpenGL_Load("glBindBuffersRange");
glBindTextures = (PFNGLBINDTEXTURESPROC)OpenGL_Load("glBindTextures");
glBindSamplers = (PFNGLBINDSAMPLERSPROC)OpenGL_Load("glBindSamplers");
glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)OpenGL_Load("glBindImageTextures");
glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)OpenGL_Load("glBindVertexBuffers");
}
|
O0
|
c
|
OpenGL_Init_4_4:
pushq %rbp
movq %rsp, %rbp
leaq 0x5560(%rip), %rdi # 0x18dcb
callq 0xf380
movq %rax, 0xa4b9(%rip) # 0x1dd30
leaq 0x555d(%rip), %rdi # 0x18ddb
callq 0xf380
movq %rax, 0xa4ae(%rip) # 0x1dd38
leaq 0x555a(%rip), %rdi # 0x18deb
callq 0xf380
movq %rax, 0xa4a3(%rip) # 0x1dd40
leaq 0x555a(%rip), %rdi # 0x18dfe
callq 0xf380
movq %rax, 0xa498(%rip) # 0x1dd48
leaq 0x5559(%rip), %rdi # 0x18e10
callq 0xf380
movq %rax, 0xa48d(%rip) # 0x1dd50
leaq 0x5559(%rip), %rdi # 0x18e23
callq 0xf380
movq %rax, 0xa482(%rip) # 0x1dd58
leaq 0x5555(%rip), %rdi # 0x18e32
callq 0xf380
movq %rax, 0xa477(%rip) # 0x1dd60
leaq 0x5551(%rip), %rdi # 0x18e41
callq 0xf380
movq %rax, 0xa46c(%rip) # 0x1dd68
leaq 0x5552(%rip), %rdi # 0x18e55
callq 0xf380
movq %rax, 0xa461(%rip) # 0x1dd70
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
OpenGL_Init_4_4:
push rbp
mov rbp, rsp
lea rdi, aGlbufferstorag_0; "glBufferStorage"
call OpenGL_Load
mov cs:glBufferStorage, rax
lea rdi, aGlclearteximag_0; "glClearTexImage"
call OpenGL_Load
mov cs:glClearTexImage, rax
lea rdi, aGlcleartexsubi_0; "glClearTexSubImage"
call OpenGL_Load
mov cs:glClearTexSubImage, rax
lea rdi, aGlbindbuffersb_0; "glBindBuffersBase"
call OpenGL_Load
mov cs:glBindBuffersBase, rax
lea rdi, aGlbindbuffersr_0; "glBindBuffersRange"
call OpenGL_Load
mov cs:glBindBuffersRange, rax
lea rdi, aGlbindtextures_0; "glBindTextures"
call OpenGL_Load
mov cs:glBindTextures, rax
lea rdi, aGlbindsamplers_0; "glBindSamplers"
call OpenGL_Load
mov cs:glBindSamplers, rax
lea rdi, aGlbindimagetex_2; "glBindImageTextures"
call OpenGL_Load
mov cs:glBindImageTextures, rax
lea rdi, aGlbindvertexbu_2; "glBindVertexBuffers"
call OpenGL_Load
mov cs:glBindVertexBuffers, rax
pop rbp
retn
|
long long OpenGL_Init_4_4()
{
long long result; // rax
glBufferStorage = OpenGL_Load("glBufferStorage");
glClearTexImage = OpenGL_Load("glClearTexImage");
glClearTexSubImage = OpenGL_Load("glClearTexSubImage");
glBindBuffersBase = OpenGL_Load("glBindBuffersBase");
glBindBuffersRange = OpenGL_Load("glBindBuffersRange");
glBindTextures = OpenGL_Load("glBindTextures");
glBindSamplers = OpenGL_Load("glBindSamplers");
glBindImageTextures = OpenGL_Load("glBindImageTextures");
result = OpenGL_Load("glBindVertexBuffers");
glBindVertexBuffers = result;
return result;
}
|
OpenGL_Init_4_4:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x118dcb]
CALL 0x0010f380
MOV qword ptr [0x0011dd30],RAX
LEA RDI,[0x118ddb]
CALL 0x0010f380
MOV qword ptr [0x0011dd38],RAX
LEA RDI,[0x118deb]
CALL 0x0010f380
MOV qword ptr [0x0011dd40],RAX
LEA RDI,[0x118dfe]
CALL 0x0010f380
MOV qword ptr [0x0011dd48],RAX
LEA RDI,[0x118e10]
CALL 0x0010f380
MOV qword ptr [0x0011dd50],RAX
LEA RDI,[0x118e23]
CALL 0x0010f380
MOV qword ptr [0x0011dd58],RAX
LEA RDI,[0x118e32]
CALL 0x0010f380
MOV qword ptr [0x0011dd60],RAX
LEA RDI,[0x118e41]
CALL 0x0010f380
MOV qword ptr [0x0011dd68],RAX
LEA RDI,[0x118e55]
CALL 0x0010f380
MOV qword ptr [0x0011dd70],RAX
POP RBP
RET
|
void OpenGL_Init_4_4(void)
{
glBufferStorage = OpenGL_Load("glBufferStorage");
glClearTexImage = OpenGL_Load("glClearTexImage");
glClearTexSubImage = OpenGL_Load("glClearTexSubImage");
glBindBuffersBase = OpenGL_Load("glBindBuffersBase");
glBindBuffersRange = OpenGL_Load("glBindBuffersRange");
glBindTextures = OpenGL_Load("glBindTextures");
glBindSamplers = OpenGL_Load("glBindSamplers");
glBindImageTextures = OpenGL_Load("glBindImageTextures");
glBindVertexBuffers = OpenGL_Load("glBindVertexBuffers");
return;
}
|
|
11,542 |
minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&)
|
monkey531[P]llama/common/minja.hpp
|
Parser(const std::shared_ptr<std::string>& template_str, const Options & options) : template_str(template_str), options(options) {
if (!template_str) throw std::runtime_error("Template string is null");
start = it = this->template_str->begin();
end = this->template_str->end();
}
|
O2
|
cpp
|
minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x60468
andq $0x0, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movb 0x2(%r14), %al
movb %al, 0x2a(%rbx)
movzwl (%r14), %eax
movw %ax, 0x28(%rbx)
cmpq $0x0, (%r15)
je 0x5d5d5
movq (%rbx), %rax
movq (%rax), %rcx
movq %rcx, 0x20(%rbx)
movq %rcx, 0x10(%rbx)
movq (%rax), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %r14
leaq 0x56978(%rip), %rsi # 0xb3f5f
movq %rax, %rdi
callq 0x23330
movq 0xa09fa(%rip), %rsi # 0xfdff0
movq 0xa095b(%rip), %rdx # 0xfdf58
movq %r14, %rdi
callq 0x23f30
movq %rax, %r15
jmp 0x5d615
movq %rax, %r15
movq %r14, %rdi
callq 0x236b0
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x4fa78
movq %r15, %rdi
callq 0x23fb0
nop
|
_ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
call _ZNSt12__shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELN9__gnu_cxx12_Lock_policyE2EEC2ERKS8_; std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2> const&)
and qword ptr [rbx+20h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx+10h], xmm0
mov al, [r14+2]
mov [rbx+2Ah], al
movzx eax, word ptr [r14]
mov [rbx+28h], ax
cmp qword ptr [r15], 0
jz short loc_5D5D5
mov rax, [rbx]
mov rcx, [rax]
mov [rbx+20h], rcx
mov [rbx+10h], rcx
mov rcx, [rax]
add rcx, [rax+8]
mov [rbx+18h], rcx
pop rbx
pop r14
pop r15
retn
loc_5D5D5:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aTemplateString; "Template string is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov r15, rax
jmp short loc_5D615
mov r15, rax
mov rdi, r14; void *
call ___cxa_free_exception
loc_5D615:
add rbx, 8
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r15
call __Unwind_Resume
|
long long * minja::Parser::Parser(long long **a1, _QWORD *a2, long long a3)
{
long long *result; // rax
long long *v5; // rcx
std::runtime_error *exception; // r14
std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::__shared_ptr();
a1[4] = 0LL;
*((_OWORD *)a1 + 1) = 0LL;
*((_BYTE *)a1 + 42) = *(_BYTE *)(a3 + 2);
*((_WORD *)a1 + 20) = *(_WORD *)a3;
if ( !*a2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Template string is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
result = *a1;
v5 = (long long *)**a1;
a1[4] = v5;
a1[2] = v5;
a1[3] = (long long *)(result[1] + *result);
return result;
}
|
Parser:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
CALL 0x00160468
AND qword ptr [RBX + 0x20],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV AL,byte ptr [R14 + 0x2]
MOV byte ptr [RBX + 0x2a],AL
MOVZX EAX,word ptr [R14]
MOV word ptr [RBX + 0x28],AX
CMP qword ptr [R15],0x0
JZ 0x0015d5d5
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBX + 0x20],RCX
MOV qword ptr [RBX + 0x10],RCX
MOV RCX,qword ptr [RAX]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x18],RCX
POP RBX
POP R14
POP R15
RET
LAB_0015d5d5:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV R14,RAX
LAB_0015d5e0:
LEA RSI,[0x1b3f5f]
MOV RDI,RAX
CALL 0x00123330
LAB_0015d5ef:
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,R14
CALL 0x00123f30
|
/* minja::Parser::Parser(std::shared_ptr<std::__cxx11::string > const&, minja::Options const&) */
void __thiscall minja::Parser::Parser(Parser *this,shared_ptr *param_1,Options *param_2)
{
long *plVar1;
long lVar2;
runtime_error *this_00;
std::__shared_ptr<std::__cxx11::string,(__gnu_cxx::_Lock_policy)2>::__shared_ptr
((__shared_ptr<std::__cxx11::string,(__gnu_cxx::_Lock_policy)2> *)this,
(__shared_ptr *)param_1);
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(Options *)(this + 0x2a) = param_2[2];
*(int2 *)(this + 0x28) = *(int2 *)param_2;
if (*(long *)param_1 != 0) {
plVar1 = *(long **)this;
lVar2 = *plVar1;
*(long *)(this + 0x20) = lVar2;
*(long *)(this + 0x10) = lVar2;
*(long *)(this + 0x18) = *plVar1 + plVar1[1];
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0015d5e0 to 0015d5ee has its CatchHandler @ 0015d60a */
std::runtime_error::runtime_error(this_00,"Template string is null");
/* try { // try from 0015d5ef to 0015d604 has its CatchHandler @ 0015d605 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
|
|
11,543 |
minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&)
|
monkey531[P]llama/common/minja.hpp
|
Parser(const std::shared_ptr<std::string>& template_str, const Options & options) : template_str(template_str), options(options) {
if (!template_str) throw std::runtime_error("Template string is null");
start = it = this->template_str->begin();
end = this->template_str->end();
}
|
O3
|
cpp
|
minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
testq %rax, %rax
je 0x7fce0
movq 0xac2b6(%rip), %rcx # 0x12bf88
cmpb $0x0, (%rcx)
je 0x7fcdc
incl 0x8(%rax)
jmp 0x7fce0
lock
incl 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
movb 0x2(%rdx), %al
movb %al, 0x2a(%rbx)
movzwl (%rdx), %eax
movw %ax, 0x28(%rbx)
cmpq $0x0, (%rsi)
je 0x7fd21
movq (%rbx), %rax
movq (%rax), %rcx
movq %rcx, 0x20(%rbx)
movq %rcx, 0x10(%rbx)
movq (%rax), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x1a450
movq %rax, %r15
leaq 0x7023a(%rip), %rsi # 0xeff6f
movq %rax, %rdi
callq 0x1a330
movq 0xac2ac(%rip), %rsi # 0x12bff0
movq 0xac215(%rip), %rdx # 0x12bf60
movq %r15, %rdi
callq 0x1af30
movq %rax, %r14
jmp 0x7fd63
movq %rax, %r14
movq %r15, %rdi
callq 0x1a690
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x7fd71
callq 0x6d9b6
movq %r14, %rdi
callq 0x1afb0
nop
|
_ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE:
push r15
push r14
push rbx
mov rbx, rdi
mov rax, [rsi]
mov [rdi], rax
mov rax, [rsi+8]
mov [rdi+8], rax
test rax, rax
jz short loc_7FCE0
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_7FCDC
inc dword ptr [rax+8]
jmp short loc_7FCE0
loc_7FCDC:
lock inc dword ptr [rax+8]
loc_7FCE0:
xorps xmm0, xmm0
movups xmmword ptr [rbx+10h], xmm0
mov qword ptr [rbx+20h], 0
mov al, [rdx+2]
mov [rbx+2Ah], al
movzx eax, word ptr [rdx]
mov [rbx+28h], ax
cmp qword ptr [rsi], 0
jz short loc_7FD21
mov rax, [rbx]
mov rcx, [rax]
mov [rbx+20h], rcx
mov [rbx+10h], rcx
mov rcx, [rax]
add rcx, [rax+8]
mov [rbx+18h], rcx
pop rbx
pop r14
pop r15
retn
loc_7FD21:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aTemplateString; "Template string is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
mov r14, rax
jmp short loc_7FD63
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
loc_7FD63:
mov rdi, [rbx+8]
test rdi, rdi
jz short loc_7FD71
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7FD71:
mov rdi, r14
call __Unwind_Resume
|
long long * minja::Parser::Parser(long long **a1, long long **a2, long long a3)
{
long long *v3; // rax
long long *result; // rax
long long *v5; // rcx
std::runtime_error *exception; // r15
*a1 = *a2;
v3 = a2[1];
a1[1] = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v3 + 2);
else
_InterlockedIncrement((volatile signed __int32 *)v3 + 2);
}
*((_OWORD *)a1 + 1) = 0LL;
a1[4] = 0LL;
*((_BYTE *)a1 + 42) = *(_BYTE *)(a3 + 2);
*((_WORD *)a1 + 20) = *(_WORD *)a3;
if ( !*a2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Template string is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
result = *a1;
v5 = (long long *)**a1;
a1[4] = v5;
a1[2] = v5;
a1[3] = (long long *)(result[1] + *result);
return result;
}
|
Parser:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x8],RAX
TEST RAX,RAX
JZ 0x0017fce0
MOV RCX,qword ptr [0x0022bf88]
CMP byte ptr [RCX],0x0
JZ 0x0017fcdc
INC dword ptr [RAX + 0x8]
JMP 0x0017fce0
LAB_0017fcdc:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0017fce0:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV qword ptr [RBX + 0x20],0x0
MOV AL,byte ptr [RDX + 0x2]
MOV byte ptr [RBX + 0x2a],AL
MOVZX EAX,word ptr [RDX]
MOV word ptr [RBX + 0x28],AX
CMP qword ptr [RSI],0x0
JZ 0x0017fd21
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBX + 0x20],RCX
MOV qword ptr [RBX + 0x10],RCX
MOV RCX,qword ptr [RAX]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x18],RCX
POP RBX
POP R14
POP R15
RET
LAB_0017fd21:
MOV EDI,0x10
CALL 0x0011a450
MOV R15,RAX
LAB_0017fd2e:
LEA RSI,[0x1eff6f]
MOV RDI,RAX
CALL 0x0011a330
LAB_0017fd3d:
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,R15
CALL 0x0011af30
|
/* minja::Parser::Parser(std::shared_ptr<std::__cxx11::string > const&, minja::Options const&) */
void __thiscall minja::Parser::Parser(Parser *this,shared_ptr *param_1,Options *param_2)
{
long lVar1;
long *plVar2;
runtime_error *this_00;
*(int8 *)this = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 8) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(Options *)(this + 0x2a) = param_2[2];
*(int2 *)(this + 0x28) = *(int2 *)param_2;
if (*(long *)param_1 != 0) {
plVar2 = *(long **)this;
lVar1 = *plVar2;
*(long *)(this + 0x20) = lVar1;
*(long *)(this + 0x10) = lVar1;
*(long *)(this + 0x18) = *plVar2 + plVar2[1];
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0017fd2e to 0017fd3c has its CatchHandler @ 0017fd58 */
std::runtime_error::runtime_error(this_00,"Template string is null");
/* try { // try from 0017fd3d to 0017fd52 has its CatchHandler @ 0017fd53 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
|
|
11,544 |
diff
|
eloqsql/libmariadb/libmariadb/ma_dtoa.c
|
static Bigint *diff(Bigint *a, Bigint *b, Stack_alloc *alloc)
{
Bigint *c;
int i, wa, wb;
ULong *xa, *xae, *xb, *xbe, *xc;
ULLong borrow, y;
i= cmp(a,b);
if (!i)
{
c= Balloc(0, alloc);
c->wds= 1;
c->p.x[0]= 0;
return c;
}
if (i < 0)
{
c= a;
a= b;
b= c;
i= 1;
}
else
i= 0;
c= Balloc(a->k, alloc);
c->sign= i;
wa= a->wds;
xa= a->p.x;
xae= xa + wa;
wb= b->wds;
xb= b->p.x;
xbe= xb + wb;
xc= c->p.x;
borrow= 0;
do
{
y= (ULLong)*xa++ - *xb++ - borrow;
borrow= y >> 32 & (ULong)1;
*xc++= (ULong) (y & FFFFFFFF);
}
while (xb < xbe);
while (xa < xae)
{
y= *xa++ - borrow;
borrow= y >> 32 & (ULong)1;
*xc++= (ULong) (y & FFFFFFFF);
}
while (!*--xc)
wa--;
c->wds= wa;
return c;
}
|
O0
|
c
|
diff:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xbd3c0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0xbda0e
movq -0x20(%rbp), %rsi
xorl %edi, %edi
callq 0xbd5d0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl $0x1, 0x14(%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl $0x0, (%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xbdbba
cmpl $0x0, -0x2c(%rbp)
jge 0xbda35
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x1, -0x2c(%rbp)
jmp 0xbda3c
movl $0x0, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edi
movq -0x20(%rbp), %rsi
callq 0xbd5d0
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movslq -0x34(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x40(%rbp)
movl (%rax), %eax
movq -0x50(%rbp), %rcx
movq %rcx, %rdx
addq $0x4, %rdx
movq %rdx, -0x50(%rbp)
movl (%rcx), %ecx
subq %rcx, %rax
subq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
shrq $0x20, %rax
andq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x70(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x60(%rbp)
movl %ecx, (%rax)
movq -0x50(%rbp), %rax
cmpq -0x58(%rbp), %rax
jb 0xbdabd
jmp 0xbdb27
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0xbdb7d
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x40(%rbp)
movl (%rax), %eax
subq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
shrq $0x20, %rax
andq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x70(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x60(%rbp)
movl %ecx, (%rax)
jmp 0xbdb27
jmp 0xbdb7f
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x60(%rbp)
cmpl $0x0, -0x4(%rax)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xbdb9d
jmp 0xbdba8
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xbdb7f
movl -0x30(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
diff:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call cmp
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jnz short loc_BDA0E
mov rsi, [rbp+var_20]
xor edi, edi
call Balloc
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov dword ptr [rax+14h], 1
mov rax, [rbp+var_28]
mov rax, [rax]
mov dword ptr [rax], 0
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp loc_BDBBA
loc_BDA0E:
cmp [rbp+var_2C], 0
jge short loc_BDA35
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
mov rax, [rbp+var_28]
mov [rbp+var_18], rax
mov [rbp+var_2C], 1
jmp short loc_BDA3C
loc_BDA35:
mov [rbp+var_2C], 0
loc_BDA3C:
mov rax, [rbp+var_10]
mov edi, [rax+8]
mov rsi, [rbp+var_20]
call Balloc
mov [rbp+var_28], rax
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_28]
mov [rax+10h], ecx
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
movsxd rcx, [rbp+var_30]
shl rcx, 2
add rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
mov eax, [rax+14h]
mov [rbp+var_34], eax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
movsxd rcx, [rbp+var_34]
shl rcx, 2
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_60], rax
mov [rbp+var_68], 0
loc_BDABD:
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 4
mov [rbp+var_40], rcx
mov eax, [rax]
mov rcx, [rbp+var_50]
mov rdx, rcx
add rdx, 4
mov [rbp+var_50], rdx
mov ecx, [rcx]
sub rax, rcx
sub rax, [rbp+var_68]
mov [rbp+var_70], rax
mov rax, [rbp+var_70]
shr rax, 20h
and rax, 1
mov [rbp+var_68], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_70]
mov ecx, eax
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 4
mov [rbp+var_60], rdx
mov [rax], ecx
mov rax, [rbp+var_50]
cmp rax, [rbp+var_58]
jb short loc_BDABD
jmp short $+2
loc_BDB27:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_48]
jnb short loc_BDB7D
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 4
mov [rbp+var_40], rcx
mov eax, [rax]
sub rax, [rbp+var_68]
mov [rbp+var_70], rax
mov rax, [rbp+var_70]
shr rax, 20h
and rax, 1
mov [rbp+var_68], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_70]
mov ecx, eax
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 4
mov [rbp+var_60], rdx
mov [rax], ecx
jmp short loc_BDB27
loc_BDB7D:
jmp short $+2
loc_BDB7F:
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_60], rcx
cmp dword ptr [rax-4], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_BDB9D
jmp short loc_BDBA8
loc_BDB9D:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
jmp short loc_BDB7F
loc_BDBA8:
mov ecx, [rbp+var_30]
mov rax, [rbp+var_28]
mov [rax+14h], ecx
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_BDBBA:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
long long diff(long long a1, long long a2, long long a3)
{
unsigned int *v3; // rax
unsigned int *v4; // rcx
_DWORD *v5; // rax
unsigned int *v6; // rax
_DWORD *v7; // rax
_DWORD *v8; // rax
unsigned long long v10; // [rsp+0h] [rbp-70h]
unsigned long long v11; // [rsp+0h] [rbp-70h]
long long v12; // [rsp+8h] [rbp-68h]
_DWORD *v13; // [rsp+10h] [rbp-60h]
unsigned long long v14; // [rsp+18h] [rbp-58h]
unsigned int *v15; // [rsp+20h] [rbp-50h]
unsigned long long v16; // [rsp+28h] [rbp-48h]
unsigned int *v17; // [rsp+30h] [rbp-40h]
int v18; // [rsp+40h] [rbp-30h]
int v19; // [rsp+44h] [rbp-2Ch]
int v20; // [rsp+44h] [rbp-2Ch]
long long v21; // [rsp+48h] [rbp-28h]
long long v22; // [rsp+48h] [rbp-28h]
long long v24; // [rsp+58h] [rbp-18h]
long long v25; // [rsp+60h] [rbp-10h]
v25 = a1;
v24 = a2;
v19 = cmp(a1, a2);
if ( v19 )
{
if ( v19 >= 0 )
{
v20 = 0;
}
else
{
v25 = a2;
v24 = a1;
v20 = 1;
}
v22 = Balloc(*(_DWORD *)(v25 + 8), a3);
*(_DWORD *)(v22 + 16) = v20;
v18 = *(_DWORD *)(v25 + 20);
v17 = *(unsigned int **)v25;
v16 = 4LL * v18 + *(_QWORD *)v25;
v15 = *(unsigned int **)v24;
v14 = 4LL * *(int *)(v24 + 20) + *(_QWORD *)v24;
v13 = *(_DWORD **)v22;
v12 = 0LL;
do
{
v3 = v17++;
v4 = v15++;
v10 = *v3 - (unsigned long long)*v4 - v12;
v12 = HIDWORD(v10) & 1;
v5 = v13++;
*v5 = v10;
}
while ( (unsigned long long)v15 < v14 );
while ( (unsigned long long)v17 < v16 )
{
v6 = v17++;
v11 = *v6 - v12;
v12 = HIDWORD(v11) & 1;
v7 = v13++;
*v7 = v11;
}
while ( 1 )
{
v8 = v13--;
if ( *(v8 - 1) )
break;
--v18;
}
*(_DWORD *)(v22 + 20) = v18;
return v22;
}
else
{
v21 = Balloc(0, a3);
*(_DWORD *)(v21 + 20) = 1;
**(_DWORD **)v21 = 0;
return v21;
}
}
|
diff:
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 RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001bd3c0
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x001bda0e
MOV RSI,qword ptr [RBP + -0x20]
XOR EDI,EDI
CALL 0x001bd5d0
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x14],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001bdbba
LAB_001bda0e:
CMP dword ptr [RBP + -0x2c],0x0
JGE 0x001bda35
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV dword ptr [RBP + -0x2c],0x1
JMP 0x001bda3c
LAB_001bda35:
MOV dword ptr [RBP + -0x2c],0x0
LAB_001bda3c:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001bd5d0
MOV qword ptr [RBP + -0x28],RAX
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOVSXD RCX,dword ptr [RBP + -0x30]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOVSXD RCX,dword ptr [RBP + -0x34]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV qword ptr [RBP + -0x68],0x0
LAB_001bdabd:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x40],RCX
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,RCX
ADD RDX,0x4
MOV qword ptr [RBP + -0x50],RDX
MOV ECX,dword ptr [RCX]
SUB RAX,RCX
SUB RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x70]
SHR RAX,0x20
AND RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x70]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x60],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x58]
JC 0x001bdabd
JMP 0x001bdb27
LAB_001bdb27:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x48]
JNC 0x001bdb7d
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x40],RCX
MOV EAX,dword ptr [RAX]
SUB RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x70]
SHR RAX,0x20
AND RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x70]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x60],RDX
MOV dword ptr [RAX],ECX
JMP 0x001bdb27
LAB_001bdb7d:
JMP 0x001bdb7f
LAB_001bdb7f:
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x60],RCX
CMP dword ptr [RAX + -0x4],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001bdb9d
JMP 0x001bdba8
LAB_001bdb9d:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001bdb7f
LAB_001bdba8:
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x14],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_001bdbba:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
int8 * diff(int8 *param_1,int8 *param_2,int8 param_3)
{
uint *puVar1;
uint *puVar2;
int iVar3;
ulong uVar4;
uint *puVar5;
uint *puVar6;
int4 *puVar7;
ulong local_70;
int4 *local_68;
uint *local_58;
uint *local_48;
int local_38;
uint local_34;
int8 *local_20;
int8 *local_18;
int8 *local_10;
iVar3 = cmp(param_1,param_2);
if (iVar3 == 0) {
local_10 = (int8 *)Balloc(0,param_3);
*(int4 *)((long)local_10 + 0x14) = 1;
*(int4 *)*local_10 = 0;
}
else {
local_20 = param_2;
local_18 = param_1;
if (iVar3 < 0) {
local_20 = param_1;
local_18 = param_2;
}
local_34 = (uint)(iVar3 < 0);
local_10 = (int8 *)Balloc(*(int4 *)(local_18 + 1),param_3);
*(uint *)(local_10 + 2) = local_34;
local_38 = *(int *)((long)local_18 + 0x14);
puVar1 = (uint *)*local_18;
iVar3 = *(int *)((long)local_20 + 0x14);
puVar2 = (uint *)*local_20;
local_70 = 0;
local_68 = (int4 *)*local_10;
local_58 = puVar2;
local_48 = puVar1;
do {
puVar5 = local_48 + 1;
puVar6 = local_58 + 1;
uVar4 = ((ulong)*local_48 - (ulong)*local_58) - local_70;
local_70 = uVar4 >> 0x20 & 1;
puVar7 = local_68 + 1;
*local_68 = (int)uVar4;
local_68 = puVar7;
local_58 = puVar6;
local_48 = puVar5;
} while (puVar6 < puVar2 + iVar3);
while (local_48 < puVar1 + local_38) {
uVar4 = *local_48 - local_70;
local_70 = uVar4 >> 0x20 & 1;
*local_68 = (int)uVar4;
local_68 = local_68 + 1;
local_48 = local_48 + 1;
}
while (local_68[-1] == 0) {
local_38 = local_38 + -1;
local_68 = local_68 + -1;
}
*(int *)((long)local_10 + 0x14) = local_38;
}
return local_10;
}
|
|
11,545 |
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool)
|
monkey531[P]llama/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O0
|
cpp
|
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0xb1880
testb $0x1, %al
jne 0xbb9ee
jmp 0xbba0f
leaq 0x15a7eb(%rip), %rdi # 0x2161e0
movl $0x1c28, %esi # imm = 0x1C28
leaq 0x15a829(%rip), %rdx # 0x21622a
leaq 0x15b76f(%rip), %rcx # 0x217177
movb $0x0, %al
callq 0x5df00
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
callq 0xb1900
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xaf8f0
xorb $-0x1, %al
testb $0x1, %al
jne 0xbba42
jmp 0xbba78
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xb2410
jmp 0xbbee1
movq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xbbf10
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xbbae0
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xb1a00
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xb19a0
movb %al, 0x3e(%rsp)
jmp 0xbbad6
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xbbae0
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xbbb60
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xb2410
jmp 0xbbb2a
movl $0x1, 0xcc(%rsp)
jmp 0xbbed4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa31e0
jmp 0xbbef8
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb2440
testb $0x1, %al
jne 0xbbb74
jmp 0xbbbf1
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xb2490
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xac420
movq 0x28(%rsp), %rdi
callq 0xa31e0
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xb2510
jmp 0xbbbe1
movl $0x1, 0xcc(%rsp)
jmp 0xbbed4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb1ff0
cmpq $0x0, (%rax)
jne 0xbbc48
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xb2410
jmp 0xbbc38
movl $0x1, 0xcc(%rsp)
jmp 0xbbed4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb1ff0
movq (%rax), %rdi
callq 0xb2540
testb $0x1, %al
jne 0xbbc9f
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb1ff0
movq (%rax), %rdi
callq 0xb2560
testb $0x1, %al
jne 0xbbc9f
leaq 0x15a55d(%rip), %rdi # 0x2161e0
leaq 0x15a5a0(%rip), %rdx # 0x21622a
leaq 0x15b4fa(%rip), %rcx # 0x21718b
xorl %eax, %eax
movl $0x1c4b, %esi # imm = 0x1C4B
callq 0x5df00
jmp 0xbbc9f
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb1ff0
movq (%rax), %rdi
callq 0xb2540
testb $0x1, %al
jne 0xbbcbb
jmp 0xbbd38
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb1ff0
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xb2580
jmp 0xbbcdf
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xb1ff0
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0xb2600
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xb2510
jmp 0xbbd28
movl $0x1, 0xcc(%rsp)
jmp 0xbbed4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb1ff0
movq (%rax), %rdi
callq 0xb2560
testb $0x1, %al
jne 0xbbd75
leaq 0x15a487(%rip), %rdi # 0x2161e0
leaq 0x15a4ca(%rip), %rdx # 0x21622a
leaq 0x15b444(%rip), %rcx # 0x2171ab
xorl %eax, %eax
movl $0x1c55, %esi # imm = 0x1C55
callq 0x5df00
jmp 0xbbd75
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb1880
testb $0x1, %al
jne 0xbbd89
jmp 0xbbdac
leaq 0x15a450(%rip), %rdi # 0x2161e0
leaq 0x15a493(%rip), %rdx # 0x21622a
leaq 0x15b42b(%rip), %rcx # 0x2171c9
xorl %eax, %eax
movl $0x1c57, %esi # imm = 0x1C57
callq 0x5df00
jmp 0xbbdac
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb1900
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0xbbdc6
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xaf8f0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0xb1980
jmp 0xbbdfb
testb $0x1, 0x87(%rsp)
jne 0xbbe3c
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xb2410
jmp 0xbbe2c
movl $0x1, 0xcc(%rsp)
jmp 0xbbed4
movq 0x40(%rsp), %rax
cmpq $0x0, 0x70(%rax)
jne 0xbbe6b
leaq 0x15a391(%rip), %rdi # 0x2161e0
leaq 0x15a3d4(%rip), %rdx # 0x21622a
leaq 0x15b384(%rip), %rcx # 0x2171e1
xorl %eax, %eax
movl $0x1c60, %esi # imm = 0x1C60
callq 0x5df00
jmp 0xbbe6b
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xb2490
movq 0x40(%rsp), %rax
movq 0x8(%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x10(%rsp)
movq 0x70(%rax), %rdi
callq 0xac420
movq 0x8(%rsp), %rdi
callq 0xa31e0
movq 0x10(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xb2640
jmp 0xbbec9
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa31e0
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0x5dbc0
nopw %cs:(%rax,%rax)
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRbEESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_BB9EE
jmp short loc_BBA0F
loc_BB9EE:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1C28h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov al, 0
call _ggml_abort
loc_BBA0F:
mov rdi, [rsp+148h+var_108]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_BBA42
jmp short loc_BBA78
loc_BBA42:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_BBEE1
loc_BBA78:
mov rsi, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_BBAE0
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_BBAD6:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_BBAE0:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_BBB60
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BBB2A:
mov [rsp+148h+var_7C], 1
jmp loc_BBED4
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_BBEF8
loc_BBB60:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_BBB74
jmp short loc_BBBF1
loc_BBB74:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BBBE1:
mov [rsp+148h+var_7C], 1
jmp loc_BBED4
loc_BBBF1:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_BBC48
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BBC38:
mov [rsp+148h+var_7C], 1
jmp loc_BBED4
loc_BBC48:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_BBC9F
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_BBC9F
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
xor eax, eax
mov esi, 1C4Bh
call _ggml_abort
jmp short $+2
loc_BBC9F:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_BBCBB
jmp short loc_BBD38
loc_BBCBB:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
jmp short $+2
loc_BBCDF:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BBD28:
mov [rsp+148h+var_7C], 1
jmp loc_BBED4
loc_BBD38:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_BBD75
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
xor eax, eax
mov esi, 1C55h
call _ggml_abort
jmp short $+2
loc_BBD75:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_BBD89
jmp short loc_BBDAC
loc_BBD89:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
xor eax, eax
mov esi, 1C57h
call _ggml_abort
jmp short $+2
loc_BBDAC:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_130], rdx
mov [rsp+148h+var_128], rax
jmp short $+2
loc_BBDC6:
mov rax, [rsp+148h+var_130]
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_BBDFB:
test [rsp+148h+var_C1], 1
jnz short loc_BBE3C
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BBE2C:
mov [rsp+148h+var_7C], 1
jmp loc_BBED4
loc_BBE3C:
mov rax, [rsp+148h+var_108]
cmp qword ptr [rax+70h], 0
jnz short loc_BBE6B
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
xor eax, eax
mov esi, 1C60h
call _ggml_abort
jmp short $+2
loc_BBE6B:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_140], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_140]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_138], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_140]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdx, [rsp+148h+var_138]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_BBEC9:
mov [rsp+148h+var_7C], 1
loc_BBED4:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_BBEE1:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_BBEF8:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
|
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<bool &>(
long long a1,
long long a2,
char a3)
{
long long v3; // rdx
int v4; // eax
_BYTE **v5; // rax
_BYTE **v6; // rax
_BYTE **v7; // rax
long long v8; // rax
long long v9; // rax
_BYTE **v10; // rax
long long v11; // rdx
char v13; // [rsp+3Fh] [rbp-109h]
char v14; // [rsp+4Fh] [rbp-F9h] BYREF
__int128 v15; // [rsp+50h] [rbp-F8h] BYREF
long long v16; // [rsp+60h] [rbp-E8h]
char v17; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v18[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v19; // [rsp+87h] [rbp-C1h]
long long v20; // [rsp+88h] [rbp-C0h] BYREF
char v21; // [rsp+97h] [rbp-B1h] BYREF
long long v22; // [rsp+98h] [rbp-B0h]
char v23; // [rsp+A7h] [rbp-A1h] BYREF
long long v24; // [rsp+A8h] [rbp-A0h] BYREF
char v25; // [rsp+B7h] [rbp-91h] BYREF
__int128 v26; // [rsp+B8h] [rbp-90h] BYREF
int v27; // [rsp+CCh] [rbp-7Ch]
long long v28; // [rsp+D0h] [rbp-78h]
_BYTE v29[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v30[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v31; // [rsp+100h] [rbp-48h]
char v32; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v33[2]; // [rsp+110h] [rbp-38h] BYREF
char v34; // [rsp+127h] [rbp-21h]
long long v35; // [rsp+128h] [rbp-20h]
long long v36; // [rsp+130h] [rbp-18h]
_BYTE v37[8]; // [rsp+138h] [rbp-10h] BYREF
v36 = a1;
v35 = a2;
v34 = a3 & 1;
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
v33[0] = std::vector<bool>::back(a1 + 32);
v33[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v33) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v30,
v35);
v13 = 1;
if ( (v34 & 1) == 0 )
{
v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8));
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> &)>::operator()(
(std::_Function_base *)(a1 + 128),
v4,
5,
(long long)v30);
}
v29[20] = v13 & 1;
if ( (v13 & 1) != 0 )
{
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v26,
(long long)v30);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
*(_QWORD *)a1,
(long long)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v26);
v25 = 1;
v24 = *(_QWORD *)a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v25,
&v24);
v27 = 1;
}
else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) )
{
v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7243LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) )
{
v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(*(_QWORD *)v8 + 8LL),
(long long)v30);
v21 = 1;
v9 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v20 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v9 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v21,
&v20);
v27 = 1;
}
else
{
v10 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v10) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7253LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_object()");
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7255LL,
"GGML_ASSERT(%s) failed",
"!key_keep_stack.empty()");
v18[0] = std::vector<bool>::back(a1 + 72);
v18[1] = v11;
v19 = std::_Bit_reference::operator bool((long long)v18);
std::vector<bool>::pop_back(a1 + 72);
if ( v19 )
{
if ( !*(_QWORD *)(a1 + 112) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
&v15,
(long long)v30);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
*(_QWORD *)(a1 + 112),
(long long)&v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v15);
v14 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
(long long)v37,
&v14,
(_QWORD *)(a1 + 112));
v27 = 1;
}
else
{
v17 = 0;
v16 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v17);
v27 = 1;
}
}
}
else
{
v23 = 0;
v22 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v23);
v27 = 1;
}
}
else
{
v29[0] = 0;
v28 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
v29);
v27 = 1;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v30);
}
else
{
v32 = 0;
v31 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v32);
}
return v37[0];
}
|
handle_value<bool&>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001b1880
TEST AL,0x1
JNZ 0x001bb9ee
JMP 0x001bba0f
LAB_001bb9ee:
LEA RDI,[0x3161e0]
MOV ESI,0x1c28
LEA RDX,[0x31622a]
LEA RCX,[0x317177]
MOV AL,0x0
CALL 0x0015df00
LAB_001bba0f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x20
CALL 0x001b1900
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x001af8f0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001bba42
JMP 0x001bba78
LAB_001bba42:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001b2410
JMP 0x001bbee1
LAB_001bba78:
MOV RSI,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
CALL 0x001bbf10
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001bbae0
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001b1a00
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001bbabe:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001b19a0
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001bbad6
LAB_001bbad6:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001bbae0
LAB_001bbae0:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001bbb60
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001b2410
JMP 0x001bbb2a
LAB_001bbb2a:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bbed4
LAB_001bbb60:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b2440
TEST AL,0x1
JNZ 0x001bbb74
JMP 0x001bbbf1
LAB_001bbb74:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001b2490
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x001ac420
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001a31e0
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001b2510
JMP 0x001bbbe1
LAB_001bbbe1:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bbed4
LAB_001bbbf1:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b1ff0
CMP qword ptr [RAX],0x0
JNZ 0x001bbc48
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001b2410
JMP 0x001bbc38
LAB_001bbc38:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bbed4
LAB_001bbc48:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b1ff0
MOV RDI,qword ptr [RAX]
CALL 0x001b2540
TEST AL,0x1
JNZ 0x001bbc9f
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b1ff0
MOV RDI,qword ptr [RAX]
CALL 0x001b2560
TEST AL,0x1
JNZ 0x001bbc9f
LEA RDI,[0x3161e0]
LEA RDX,[0x31622a]
LEA RCX,[0x31718b]
XOR EAX,EAX
MOV ESI,0x1c4b
CALL 0x0015df00
JMP 0x001bbc9f
LAB_001bbc9f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b1ff0
MOV RDI,qword ptr [RAX]
CALL 0x001b2540
TEST AL,0x1
JNZ 0x001bbcbb
JMP 0x001bbd38
LAB_001bbcbb:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b1ff0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x001b2580
JMP 0x001bbcdf
LAB_001bbcdf:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001b1ff0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001b2600
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001b2510
JMP 0x001bbd28
LAB_001bbd28:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bbed4
LAB_001bbd38:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b1ff0
MOV RDI,qword ptr [RAX]
CALL 0x001b2560
TEST AL,0x1
JNZ 0x001bbd75
LEA RDI,[0x3161e0]
LEA RDX,[0x31622a]
LEA RCX,[0x3171ab]
XOR EAX,EAX
MOV ESI,0x1c55
CALL 0x0015df00
JMP 0x001bbd75
LAB_001bbd75:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b1880
TEST AL,0x1
JNZ 0x001bbd89
JMP 0x001bbdac
LAB_001bbd89:
LEA RDI,[0x3161e0]
LEA RDX,[0x31622a]
LEA RCX,[0x3171c9]
XOR EAX,EAX
MOV ESI,0x1c57
CALL 0x0015df00
JMP 0x001bbdac
LAB_001bbdac:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b1900
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001bbdc6
LAB_001bbdc6:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001af8f0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x001b1980
JMP 0x001bbdfb
LAB_001bbdfb:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001bbe3c
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001b2410
JMP 0x001bbe2c
LAB_001bbe2c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001bbed4
LAB_001bbe3c:
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x70],0x0
JNZ 0x001bbe6b
LEA RDI,[0x3161e0]
LEA RDX,[0x31622a]
LEA RCX,[0x3171e1]
XOR EAX,EAX
MOV ESI,0x1c60
CALL 0x0015df00
JMP 0x001bbe6b
LAB_001bbe6b:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001b2490
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x001ac420
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001a31e0
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001b2640
LAB_001bbec7:
JMP 0x001bbec9
LAB_001bbec9:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001bbed4:
LEA RDI,[RSP + 0xf0]
CALL 0x001a31e0
LAB_001bbee1:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<bool&>(bool&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<bool&>
(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,bool *param_1,bool param_2)
{
bool bVar1;
int4 uVar2;
ulong uVar3;
long *plVar4;
int8 *puVar5;
int8 uVar6;
int1 auVar7 [16];
byte local_109;
int1 local_f9;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_58 [16];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
bool *local_20;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar1 ^ 0xffU) & 1) == 0) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58,local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001bbabe to 001bbec6 has its CatchHandler @ 001bbb3a */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),uVar2,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
uVar3 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar3 & 1) == 0) {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar4 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c4b,"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
}
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c55,"GGML_ASSERT(%s) failed","ref_stack.back()->is_object()");
}
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c57,"GGML_ASSERT(%s) failed","!key_keep_stack.empty()");
}
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
if (*(long *)(this + 0x70) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_f8,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_f8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8),local_58);
local_b1 = 1;
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_c0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_90,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_90);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar7._1_7_ = (int7)((ulong)uVar6 >> 8);
auVar7[0] = local_10[0];
auVar7._8_8_ = local_8;
return auVar7;
}
|
|
11,546 |
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool)
|
monkey531[P]llama/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O1
|
cpp
|
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movq 0x30(%rdi), %rax
movl 0x38(%rdi), %ecx
cmpq %rax, 0x20(%rdi)
sete %dl
testl %ecx, %ecx
sete %dil
andb %dl, %dil
cmpb $0x1, %dil
je 0x6095e
movl %ecx, %ecx
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
leaq -0x1(%rcx), %rdx
addq $0x3e, %rcx
testq %rdx, %rdx
cmovnsq %rdx, %rcx
sarq $0x6, %rcx
leaq (%rax,%rcx,8), %rax
leaq 0x3f(%r14), %rcx
andq %rdx, %rcx
xorl %edi, %edi
cmpq %r14, %rcx
setbe %dil
movq -0x8(%rax,%rdi,8), %rax
btq %rdx, %rax
jae 0x607f1
leaq 0x10(%rsp), %rdi
callq 0x5f444
testb %bpl, %bpl
jne 0x6079e
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x5, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x6097f
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x60932
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x607fb
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x60932
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x60855
cmpl $0x2, %ecx
jne 0x60984
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5d4d0
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x6092e
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x6094e
leaq 0x10(%rsp), %r14
movups (%r14), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x5869e
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x5869e
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x5b03a
movq %r15, %rdi
xorl %esi, %esi
callq 0x5869e
movq %r15, %rdi
callq 0x5de8a
movq (%rbx), %r14
jmp 0x6092e
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %ecx
cmpq %rax, 0x48(%rbx)
sete %dl
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x60992
movl %ecx, %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r14, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x608c7
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x60932
cmpq $0x0, 0x70(%rbx)
je 0x609b3
leaq 0x10(%rsp), %r14
movups (%r14), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x5869e
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x5869e
movq 0x70(%rbx), %rdi
movq %r15, %rsi
callq 0x5b03a
movq %r15, %rdi
xorl %esi, %esi
callq 0x5869e
movq %r15, %rdi
callq 0x5de8a
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x60937
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x5869e
movq %r15, %rdi
callq 0x5de8a
movl %ebx, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8f2d4(%rip), %rdi # 0xefc39
leaq 0x8f317(%rip), %rdx # 0xefc83
leaq 0x90242(%rip), %rcx # 0xf0bb5
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x1be90
callq 0x1b310
leaq 0x9023e(%rip), %rcx # 0xf0bc9
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x6099e
leaq 0x9026e(%rip), %rcx # 0xf0c07
movl $0x1c57, %esi # imm = 0x1C57
leaq 0x8f294(%rip), %rdi # 0xefc39
leaq 0x8f2d7(%rip), %rdx # 0xefc83
xorl %eax, %eax
callq 0x1be90
leaq 0x8f27f(%rip), %rdi # 0xefc39
leaq 0x8f2c2(%rip), %rdx # 0xefc83
leaq 0x90257(%rip), %rcx # 0xf0c1f
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x1be90
jmp 0x609d6
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5869e
movq %r14, %rdi
callq 0x5de8a
movq %rbx, %rdi
callq 0x1bf90
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov ebp, edx
mov rbx, rdi
mov rax, [rdi+30h]
mov ecx, [rdi+38h]
cmp [rdi+20h], rax
setz dl
test ecx, ecx
setz dil
and dil, dl
cmp dil, 1
jz loc_6095E
mov ecx, ecx
mov r14, 8000000000000000h
lea rdx, [rcx-1]
add rcx, 3Eh ; '>'
test rdx, rdx
cmovns rcx, rdx
sar rcx, 6
lea rax, [rax+rcx*8]
lea rcx, [r14+3Fh]
and rcx, rdx
xor edi, edi
cmp rcx, r14
setbe dil
mov rax, [rax+rdi*8-8]
bt rax, rdx
jnb loc_607F1
lea rdi, [rsp+68h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
test bpl, bpl
jnz short loc_6079E
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+68h+var_5C], eax
mov [rsp+68h+var_5D], 5
cmp qword ptr [rbx+90h], 0
jz loc_6097F
lea rdi, [rbx+80h]
lea rsi, [rsp+68h+var_5C]
lea rdx, [rsp+68h+var_5D]
lea rcx, [rsp+68h+var_58]
call qword ptr [rbx+98h]
test al, al
jz loc_60932
loc_6079E:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_607FB
mov rax, [rax-8]
test rax, rax
jz loc_60932
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz loc_60855
cmp ecx, 2
jnz loc_60984
mov rdi, [rax+8]
lea rsi, [rsp+68h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_6092E
loc_607F1:
xor ebx, ebx
xor r14d, r14d
jmp loc_6094E
loc_607FB:
lea r14, [rsp+68h+var_58]
movups xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_38]
movaps xmmword ptr [r15], xmm0
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 byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx]
jmp loc_6092E
loc_60855:
mov rax, [rbx+58h]
mov ecx, [rbx+60h]
cmp [rbx+48h], rax
setz dl
test ecx, ecx
setz sil
and sil, dl
cmp sil, 1
jz loc_60992
mov esi, ecx
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r14+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r14
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_608C7
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_608C7:
test rdx, rdx
jz short loc_60932
cmp qword ptr [rbx+70h], 0
jz loc_609B3
lea r14, [rsp+68h+var_58]
movups xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_48]
movaps xmmword ptr [r15], xmm0
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 byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx+70h]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx+70h]
loc_6092E:
mov bl, 1
jmp short loc_60937
loc_60932:
xor ebx, ebx
xor r14d, r14d
loc_60937:
lea r15, [rsp+68h+var_58]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_6094E:
mov eax, ebx
mov rdx, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_6095E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1C28h
xor eax, eax
call _ggml_abort
loc_6097F:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_60984:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_6099E
loc_60992:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_6099E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_609B3:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
mov esi, 1C60h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_609D6:
mov rbx, rax
lea r14, [rsp+68h+var_58]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<std::string&>(
long long a1,
long long a2,
char a3)
{
unsigned int v4; // ebx
long long v5; // rax
unsigned int v6; // ecx
signed long long v7; // rdx
long long v8; // rcx
long long v9; // rax
long long v10; // rax
unsigned __int8 *v11; // rax
int v12; // ecx
long long v13; // rax
unsigned int v14; // ecx
long long v15; // rsi
long long v16; // rcx
long long v17; // rdx
long long v18; // rdx
const char *v20; // rcx
long long v21; // rsi
long long v22; // rbx
char v23; // [rsp+Bh] [rbp-5Dh] BYREF
int v24; // [rsp+Ch] [rbp-5Ch] BYREF
__int128 v25; // [rsp+10h] [rbp-58h] BYREF
__int128 v26; // [rsp+20h] [rbp-48h] BYREF
_OWORD v27[3]; // [rsp+30h] [rbp-38h] BYREF
v4 = a1;
v5 = *(_QWORD *)(a1 + 48);
v6 = *(_DWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
goto LABEL_28;
}
v7 = v6 - 1LL;
v8 = v6 + 62LL;
if ( v7 >= 0 )
v8 = v7;
v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8);
if ( _bittest64(&v9, v7) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_((char *)&v25);
if ( a3 )
{
LABEL_8:
v10 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v10 )
{
v27[0] = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 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 *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v27);
goto LABEL_23;
}
v11 = *(unsigned __int8 **)(v10 - 8);
if ( v11 )
{
v12 = *v11;
if ( v12 != 1 )
{
if ( v12 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*((_QWORD *)v11 + 1),
(long long)&v25);
LABEL_23:
LOBYTE(v4) = 1;
LABEL_25:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25);
return v4;
}
v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
v21 = 7243LL;
goto LABEL_31;
}
v13 = *(_QWORD *)(a1 + 88);
v14 = *(_DWORD *)(a1 + 96);
if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 )
{
v20 = "!key_keep_stack.empty()";
v21 = 7255LL;
LABEL_31:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v21,
"GGML_ASSERT(%s) failed",
v20);
goto LABEL_32;
}
v15 = v14;
v16 = v14 - 1LL;
v17 = v15 + 62;
if ( v16 >= 0 )
v17 = v16;
v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16);
*(_DWORD *)(a1 + 96) = v15 - 1;
if ( !(_DWORD)v15 )
{
*(_DWORD *)(a1 + 96) = 63;
*(_QWORD *)(a1 + 88) = v13 - 8;
}
if ( v18 )
{
if ( *(_QWORD *)(a1 + 112) )
{
v26 = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 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 *)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26);
goto LABEL_23;
}
LABEL_32:
v22 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25);
_Unwind_Resume(v22);
}
}
LABEL_24:
v4 = 0;
goto LABEL_25;
}
v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v23 = 5;
if ( *(_QWORD *)(a1 + 144) )
{
if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))(
a1 + 128,
&v24,
&v23,
&v25) )
goto LABEL_24;
goto LABEL_8;
}
LABEL_28:
std::__throw_bad_function_call();
}
return 0;
}
|
handle_value<std::__cxx11::string&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV ECX,dword ptr [RDI + 0x38]
CMP qword ptr [RDI + 0x20],RAX
SETZ DL
TEST ECX,ECX
SETZ DIL
AND DIL,DL
CMP DIL,0x1
JZ 0x0016095e
MOV ECX,ECX
MOV R14,-0x8000000000000000
LEA RDX,[RCX + -0x1]
ADD RCX,0x3e
TEST RDX,RDX
CMOVNS RCX,RDX
SAR RCX,0x6
LEA RAX,[RAX + RCX*0x8]
LEA RCX,[R14 + 0x3f]
AND RCX,RDX
XOR EDI,EDI
CMP RCX,R14
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RDX
JNC 0x001607f1
LEA RDI,[RSP + 0x10]
CALL 0x0015f444
TEST BPL,BPL
JNZ 0x0016079e
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV byte ptr [RSP + 0xb],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x0016097f
LEA RDI,[RBX + 0x80]
LAB_00160781:
LEA RSI,[RSP + 0xc]
LEA RDX,[RSP + 0xb]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x00160932
LAB_0016079e:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x001607fb
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x00160932
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x00160855
CMP ECX,0x2
JNZ 0x00160984
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x0015d4d0
LAB_001607d8:
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x0016092e
LAB_001607f1:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x0016094e
LAB_001607fb:
LEA R14,[RSP + 0x10]
MOVUPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x30]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015869e
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x0015869e
MOV RDI,qword ptr [RBX]
MOV RSI,R15
CALL 0x0015b03a
MOV RDI,R15
XOR ESI,ESI
CALL 0x0015869e
MOV RDI,R15
CALL 0x0015de8a
MOV R14,qword ptr [RBX]
JMP 0x0016092e
LAB_00160855:
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,dword ptr [RBX + 0x60]
CMP qword ptr [RBX + 0x48],RAX
SETZ DL
TEST ECX,ECX
SETZ SIL
AND SIL,DL
CMP SIL,0x1
JZ 0x00160992
MOV ESI,ECX
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R14
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x001608c7
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_001608c7:
TEST RDX,RDX
JZ 0x00160932
CMP qword ptr [RBX + 0x70],0x0
JZ 0x001609b3
LEA R14,[RSP + 0x10]
MOVUPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x20]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015869e
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x0015869e
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R15
CALL 0x0015b03a
MOV RDI,R15
XOR ESI,ESI
CALL 0x0015869e
MOV RDI,R15
CALL 0x0015de8a
MOV R14,qword ptr [RBX + 0x70]
LAB_0016092e:
MOV BL,0x1
JMP 0x00160937
LAB_00160932:
XOR EBX,EBX
XOR R14D,R14D
LAB_00160937:
LEA R15,[RSP + 0x10]
MOV RDI,R15
XOR ESI,ESI
CALL 0x0015869e
MOV RDI,R15
CALL 0x0015de8a
LAB_0016094e:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0016095e:
LEA RDI,[0x1efc39]
LEA RDX,[0x1efc83]
LEA RCX,[0x1f0bb5]
MOV ESI,0x1c28
XOR EAX,EAX
CALL 0x0011be90
LAB_0016097f:
CALL 0x0011b310
LAB_00160984:
LEA RCX,[0x1f0bc9]
MOV ESI,0x1c4b
JMP 0x0016099e
LAB_00160992:
LEA RCX,[0x1f0c07]
MOV ESI,0x1c57
LAB_0016099e:
LEA RDI,[0x1efc39]
LEA RDX,[0x1efc83]
XOR EAX,EAX
CALL 0x0011be90
LAB_001609b3:
LEA RDI,[0x1efc39]
LEA RDX,[0x1efc83]
LEA RCX,[0x1f0c1f]
MOV ESI,0x1c60
XOR EAX,EAX
CALL 0x0011be90
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<std::__cxx11::string&>(std::__cxx11::string&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<std::__cxx11::string&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,string *param_1,bool param_2)
{
uint uVar1;
char cVar2;
ulong uVar3;
char *pcVar4;
ulong uVar5;
int8 uVar6;
bool bVar7;
long lVar8;
int1 auVar9 [16];
int1 local_5d;
int4 local_5c;
basic_json local_58 [8];
int8 uStack_50;
data local_48 [8];
int8 uStack_40;
data local_38 [8];
int8 uStack_30;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) &
1) == 0) {
uVar5 = 0;
lVar8 = 0;
goto LAB_0016094e;
}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58);
if (param_2) {
LAB_0016079e:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
uStack_30 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_58,0));
local_58[0] = (basic_json)0x0;
uStack_50 = 0;
bVar7 = SUB81(local_38,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>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_38);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_38);
lVar8 = *(long *)this;
}
else {
pcVar4 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar4 == (char *)0x0) goto LAB_00160932;
if (*pcVar4 == '\x01') {
lVar8 = *(long *)(this + 0x58);
uVar1 = *(uint *)(this + 0x60);
if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) {
pcVar4 = "!key_keep_stack.empty()";
uVar6 = 0x1c57;
goto LAB_0016099e;
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar1 - 1;
if (uVar1 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = lVar8 + -8;
}
if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_00160932;
if (*(long *)(this + 0x70) == 0) {
/* try { // try from 001609b3 to 001609d3 has its CatchHandler @ 001609d4 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
uStack_40 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_58,0));
local_58[0] = (basic_json)0x0;
uStack_50 = 0;
bVar7 = SUB81(local_48,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>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_48);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_48);
lVar8 = *(long *)(this + 0x70);
}
else {
if (*pcVar4 != '\x02') {
pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
uVar6 = 0x1c4b;
LAB_0016099e:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
uVar6,"GGML_ASSERT(%s) failed",pcVar4);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar4 + 8),local_58);
lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar5 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_5d = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 0016097f to 001609b2 has its CatchHandler @ 001609d6 */
std::__throw_bad_function_call();
}
/* try { // try from 00160781 to 001607d7 has its CatchHandler @ 001609d6 */
cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,local_58);
if (cVar2 != '\0') goto LAB_0016079e;
LAB_00160932:
uVar5 = 0;
lVar8 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)local_58,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_58);
LAB_0016094e:
auVar9._0_8_ = uVar5 & 0xffffffff;
auVar9._8_8_ = lVar8;
return auVar9;
}
|
|
11,547 |
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool)
|
monkey531[P]llama/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O3
|
cpp
|
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq 0x30(%rdi), %rax
movl 0x38(%rdi), %ecx
cmpq %rax, 0x20(%rdi)
sete %dl
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x609ff
movl %ecx, %ecx
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leaq -0x1(%rcx), %rdx
addq $0x3e, %rcx
testq %rdx, %rdx
cmovnsq %rdx, %rcx
sarq $0x6, %rcx
leaq (%rax,%rcx,8), %rax
leaq 0x3f(%r15), %rcx
andq %rdx, %rcx
xorl %esi, %esi
cmpq %r15, %rcx
setbe %sil
movq -0x8(%rax,%rsi,8), %rax
btq %rdx, %rax
jae 0x60892
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x590b4
movq %r14, %rdi
movl $0x1, %esi
callq 0x590b4
testb %bpl, %bpl
jne 0x6083f
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x5, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x60a20
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x609d3
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x6089c
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x609d3
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x608f6
cmpl $0x2, %ecx
jne 0x60a25
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5dc76
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x609cf
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x609ef
leaq 0x10(%rsp), %r14
movups (%r14), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x590b4
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x590b4
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x5b856
movq %r15, %rdi
xorl %esi, %esi
callq 0x590b4
movq %r15, %rdi
callq 0x5e5a2
movq (%rbx), %r14
jmp 0x609cf
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %ecx
cmpq %rax, 0x48(%rbx)
sete %dl
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x60a33
movl %ecx, %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r15), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r15, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x60968
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x609d3
cmpq $0x0, 0x70(%rbx)
je 0x60a54
leaq 0x10(%rsp), %r14
movups (%r14), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x590b4
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x590b4
movq 0x70(%rbx), %rdi
movq %r15, %rsi
callq 0x5b856
movq %r15, %rdi
xorl %esi, %esi
callq 0x590b4
movq %r15, %rdi
callq 0x5e5a2
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x609d8
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x590b4
movq %r15, %rdi
callq 0x5e5a2
movl %ebx, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8d233(%rip), %rdi # 0xedc39
leaq 0x8d276(%rip), %rdx # 0xedc83
leaq 0x8e1a1(%rip), %rcx # 0xeebb5
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x1be90
callq 0x1b310
leaq 0x8e19d(%rip), %rcx # 0xeebc9
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x60a3f
leaq 0x8e1cd(%rip), %rcx # 0xeec07
movl $0x1c57, %esi # imm = 0x1C57
leaq 0x8d1f3(%rip), %rdi # 0xedc39
leaq 0x8d236(%rip), %rdx # 0xedc83
xorl %eax, %eax
callq 0x1be90
leaq 0x8d1de(%rip), %rdi # 0xedc39
leaq 0x8d221(%rip), %rdx # 0xedc83
leaq 0x8e1b6(%rip), %rcx # 0xeec1f
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x1be90
jmp 0x60a77
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x590b4
movq %r14, %rdi
callq 0x5e5a2
movq %rbx, %rdi
callq 0x1bf90
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIDnEESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov ebp, edx
mov rax, [rdi+30h]
mov ecx, [rdi+38h]
cmp [rdi+20h], rax
setz dl
test ecx, ecx
setz sil
and sil, dl
cmp sil, 1
jz loc_609FF
mov ecx, ecx
mov r15, 8000000000000000h
lea rdx, [rcx-1]
add rcx, 3Eh ; '>'
test rdx, rdx
cmovns rcx, rdx
sar rcx, 6
lea rax, [rax+rcx*8]
lea rcx, [r15+3Fh]
and rcx, rdx
xor esi, esi
cmp rcx, r15
setbe sil
mov rax, [rax+rsi*8-8]
bt rax, rdx
jnb loc_60892
mov rbx, rdi
lea r14, [rsp+68h+var_58]
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
test bpl, bpl
jnz short loc_6083F
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+68h+var_5C], eax
mov [rsp+68h+var_5D], 5
cmp qword ptr [rbx+90h], 0
jz loc_60A20
lea rdi, [rbx+80h]
lea rsi, [rsp+68h+var_5C]
lea rdx, [rsp+68h+var_5D]
lea rcx, [rsp+68h+var_58]
call qword ptr [rbx+98h]
test al, al
jz loc_609D3
loc_6083F:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_6089C
mov rax, [rax-8]
test rax, rax
jz loc_609D3
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz loc_608F6
cmp ecx, 2
jnz loc_60A25
mov rdi, [rax+8]
lea rsi, [rsp+68h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_609CF
loc_60892:
xor ebx, ebx
xor r14d, r14d
jmp loc_609EF
loc_6089C:
lea r14, [rsp+68h+var_58]
movups xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_38]
movaps xmmword ptr [r15], xmm0
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 byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx]
jmp loc_609CF
loc_608F6:
mov rax, [rbx+58h]
mov ecx, [rbx+60h]
cmp [rbx+48h], rax
setz dl
test ecx, ecx
setz sil
and sil, dl
cmp sil, 1
jz loc_60A33
mov esi, ecx
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r15+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r15
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_60968
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_60968:
test rdx, rdx
jz short loc_609D3
cmp qword ptr [rbx+70h], 0
jz loc_60A54
lea r14, [rsp+68h+var_58]
movups xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_48]
movaps xmmword ptr [r15], xmm0
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 byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx+70h]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx+70h]
loc_609CF:
mov bl, 1
jmp short loc_609D8
loc_609D3:
xor ebx, ebx
xor r14d, r14d
loc_609D8:
lea r15, [rsp+68h+var_58]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_609EF:
mov eax, ebx
mov rdx, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_609FF:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1C28h
xor eax, eax
call _ggml_abort
loc_60A20:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_60A25:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_60A3F
loc_60A33:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_60A3F:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_60A54:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
mov esi, 1C60h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_60A77:
mov rbx, rax
lea r14, [rsp+68h+var_58]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<decltype(nullptr)>(
long long a1,
long long a2,
char a3)
{
long long v4; // rax
unsigned int v5; // ecx
signed long long v6; // rdx
long long v7; // rcx
long long v8; // rax
unsigned int v9; // ebx
long long v10; // rax
unsigned __int8 *v11; // rax
int v12; // ecx
long long v13; // rax
unsigned int v14; // ecx
long long v15; // rsi
long long v16; // rcx
long long v17; // rdx
long long v18; // rdx
const char *v20; // rcx
long long v21; // rsi
long long v22; // rbx
char v23; // [rsp+Bh] [rbp-5Dh] BYREF
int v24; // [rsp+Ch] [rbp-5Ch] BYREF
__int128 v25; // [rsp+10h] [rbp-58h] BYREF
__int128 v26; // [rsp+20h] [rbp-48h] BYREF
_OWORD v27[3]; // [rsp+30h] [rbp-38h] BYREF
v4 = *(_QWORD *)(a1 + 48);
v5 = *(_DWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) == v4 && v5 == 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
goto LABEL_28;
}
v6 = v5 - 1LL;
v7 = v5 + 62LL;
if ( v6 >= 0 )
v7 = v6;
v8 = *(_QWORD *)(v4 + 8 * (v7 >> 6) + 8LL * ((v6 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8);
if ( _bittest64(&v8, v6) )
{
v9 = a1;
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 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 *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
if ( a3 )
{
LABEL_8:
v10 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v10 )
{
v27[0] = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 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 *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v27);
goto LABEL_23;
}
v11 = *(unsigned __int8 **)(v10 - 8);
if ( v11 )
{
v12 = *v11;
if ( v12 != 1 )
{
if ( v12 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*((_QWORD *)v11 + 1),
(long long)&v25);
LABEL_23:
LOBYTE(v9) = 1;
LABEL_25:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25);
return v9;
}
v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
v21 = 7243LL;
goto LABEL_31;
}
v13 = *(_QWORD *)(a1 + 88);
v14 = *(_DWORD *)(a1 + 96);
if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 )
{
v20 = "!key_keep_stack.empty()";
v21 = 7255LL;
LABEL_31:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v21,
"GGML_ASSERT(%s) failed",
v20);
goto LABEL_32;
}
v15 = v14;
v16 = v14 - 1LL;
v17 = v15 + 62;
if ( v16 >= 0 )
v17 = v16;
v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16);
*(_DWORD *)(a1 + 96) = v15 - 1;
if ( !(_DWORD)v15 )
{
*(_DWORD *)(a1 + 96) = 63;
*(_QWORD *)(a1 + 88) = v13 - 8;
}
if ( v18 )
{
if ( *(_QWORD *)(a1 + 112) )
{
v26 = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 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 *)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26);
goto LABEL_23;
}
LABEL_32:
v22 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25);
_Unwind_Resume(v22);
}
}
LABEL_24:
v9 = 0;
goto LABEL_25;
}
v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v23 = 5;
if ( *(_QWORD *)(a1 + 144) )
{
if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))(
a1 + 128,
&v24,
&v23,
&v25) )
goto LABEL_24;
goto LABEL_8;
}
LABEL_28:
std::__throw_bad_function_call();
}
return 0;
}
|
handle_value<decltype(nullptr)>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV RAX,qword ptr [RDI + 0x30]
MOV ECX,dword ptr [RDI + 0x38]
CMP qword ptr [RDI + 0x20],RAX
SETZ DL
TEST ECX,ECX
SETZ SIL
AND SIL,DL
CMP SIL,0x1
JZ 0x001609ff
MOV ECX,ECX
MOV R15,-0x8000000000000000
LEA RDX,[RCX + -0x1]
ADD RCX,0x3e
TEST RDX,RDX
CMOVNS RCX,RDX
SAR RCX,0x6
LEA RAX,[RAX + RCX*0x8]
LEA RCX,[R15 + 0x3f]
AND RCX,RDX
XOR ESI,ESI
CMP RCX,R15
SETBE SIL
MOV RAX,qword ptr [RAX + RSI*0x8 + -0x8]
BT RAX,RDX
JNC 0x00160892
MOV RBX,RDI
LEA R14,[RSP + 0x10]
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x001590b4
MOV RDI,R14
MOV ESI,0x1
CALL 0x001590b4
TEST BPL,BPL
JNZ 0x0016083f
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV byte ptr [RSP + 0xb],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x00160a20
LEA RDI,[RBX + 0x80]
LAB_00160822:
LEA RSI,[RSP + 0xc]
LEA RDX,[RSP + 0xb]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x001609d3
LAB_0016083f:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x0016089c
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x001609d3
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x001608f6
CMP ECX,0x2
JNZ 0x00160a25
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x0015dc76
LAB_00160879:
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x001609cf
LAB_00160892:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x001609ef
LAB_0016089c:
LEA R14,[RSP + 0x10]
MOVUPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x30]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x001590b4
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001590b4
MOV RDI,qword ptr [RBX]
MOV RSI,R15
CALL 0x0015b856
MOV RDI,R15
XOR ESI,ESI
CALL 0x001590b4
MOV RDI,R15
CALL 0x0015e5a2
MOV R14,qword ptr [RBX]
JMP 0x001609cf
LAB_001608f6:
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,dword ptr [RBX + 0x60]
CMP qword ptr [RBX + 0x48],RAX
SETZ DL
TEST ECX,ECX
SETZ SIL
AND SIL,DL
CMP SIL,0x1
JZ 0x00160a33
MOV ESI,ECX
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R15 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R15
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x00160968
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_00160968:
TEST RDX,RDX
JZ 0x001609d3
CMP qword ptr [RBX + 0x70],0x0
JZ 0x00160a54
LEA R14,[RSP + 0x10]
MOVUPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x20]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x001590b4
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001590b4
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R15
CALL 0x0015b856
MOV RDI,R15
XOR ESI,ESI
CALL 0x001590b4
MOV RDI,R15
CALL 0x0015e5a2
MOV R14,qword ptr [RBX + 0x70]
LAB_001609cf:
MOV BL,0x1
JMP 0x001609d8
LAB_001609d3:
XOR EBX,EBX
XOR R14D,R14D
LAB_001609d8:
LEA R15,[RSP + 0x10]
MOV RDI,R15
XOR ESI,ESI
CALL 0x001590b4
MOV RDI,R15
CALL 0x0015e5a2
LAB_001609ef:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001609ff:
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
LEA RCX,[0x1eebb5]
MOV ESI,0x1c28
XOR EAX,EAX
CALL 0x0011be90
LAB_00160a20:
CALL 0x0011b310
LAB_00160a25:
LEA RCX,[0x1eebc9]
MOV ESI,0x1c4b
JMP 0x00160a3f
LAB_00160a33:
LEA RCX,[0x1eec07]
MOV ESI,0x1c57
LAB_00160a3f:
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
XOR EAX,EAX
CALL 0x0011be90
LAB_00160a54:
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
LEA RCX,[0x1eec1f]
MOV ESI,0x1c60
XOR EAX,EAX
CALL 0x0011be90
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<decltype(nullptr)>(decltype(nullptr)&&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<decltype(nullptr)>
(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,_func_decltype_nullptr **param_1,bool param_2)
{
uint uVar1;
char cVar2;
ulong uVar3;
char *pcVar4;
ulong uVar5;
int8 uVar6;
bool bVar7;
long lVar8;
int1 auVar9 [16];
int1 local_5d;
int4 local_5c;
basic_json local_58;
int7 uStack_57;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
int8 uStack_30;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) &
1) == 0) {
uVar5 = 0;
lVar8 = 0;
goto LAB_001609ef;
}
local_58 = (basic_json)0x0;
uStack_50 = 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>
::assert_invariant(SUB81(&local_58,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>
::assert_invariant(SUB81(&local_58,0));
if (param_2) {
LAB_0016083f:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_38 = CONCAT71(uStack_57,local_58);
uStack_30 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = (basic_json)0x0;
uStack_50 = 0;
bVar7 = SUB81((data *)&local_38,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>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,(data *)&local_38);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
lVar8 = *(long *)this;
}
else {
pcVar4 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar4 == (char *)0x0) goto LAB_001609d3;
if (*pcVar4 == '\x01') {
lVar8 = *(long *)(this + 0x58);
uVar1 = *(uint *)(this + 0x60);
if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) {
pcVar4 = "!key_keep_stack.empty()";
uVar6 = 0x1c57;
goto LAB_00160a3f;
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar1 - 1;
if (uVar1 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = lVar8 + -8;
}
if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_001609d3;
if (*(long *)(this + 0x70) == 0) {
/* try { // try from 00160a54 to 00160a74 has its CatchHandler @ 00160a75 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
local_48 = CONCAT71(uStack_57,local_58);
uStack_40 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = (basic_json)0x0;
uStack_50 = 0;
bVar7 = SUB81((data *)&local_48,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>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),(data *)&local_48);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_48);
lVar8 = *(long *)(this + 0x70);
}
else {
if (*pcVar4 != '\x02') {
pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
uVar6 = 0x1c4b;
LAB_00160a3f:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
uVar6,"GGML_ASSERT(%s) failed",pcVar4);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar4 + 8),&local_58);
lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar5 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_5d = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 00160a20 to 00160a53 has its CatchHandler @ 00160a77 */
std::__throw_bad_function_call();
}
/* try { // try from 00160822 to 00160878 has its CatchHandler @ 00160a77 */
cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58);
if (cVar2 != '\0') goto LAB_0016083f;
LAB_001609d3:
uVar5 = 0;
lVar8 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_58,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_58);
LAB_001609ef:
auVar9._0_8_ = uVar5 & 0xffffffff;
auVar9._8_8_ = lVar8;
return auVar9;
}
|
|
11,548 |
my_thread_global_reinit
|
eloqsql/mysys/my_thr_init.c
|
void my_thread_global_reinit(void)
{
struct st_my_thread_var *tmp;
DBUG_ASSERT(my_thread_global_init_done);
#ifdef HAVE_PSI_INTERFACE
my_init_mysys_psi_keys();
#endif
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
tmp= my_thread_var;
DBUG_ASSERT(tmp);
my_thread_destory_thr_mutex(tmp);
my_thread_init_thr_mutex(tmp);
}
|
O0
|
c
|
my_thread_global_reinit:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
jmp 0xbc86a
callq 0xba0d0
callq 0xbc710
callq 0xbc8b0
callq 0xbc7c0
callq 0xbc980
callq 0xbc9e0
movq %rax, -0x8(%rbp)
jmp 0xbc88e
movq -0x8(%rbp), %rdi
callq 0xbca00
movq -0x8(%rbp), %rdi
callq 0xbca30
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_thread_global_reinit:
push rbp
mov rbp, rsp
sub rsp, 10h
jmp short $+2
loc_BC86A:
call my_init_mysys_psi_keys
call my_thread_destroy_common_mutex
call my_thread_init_common_mutex
call my_thread_destroy_internal_mutex
call my_thread_init_internal_mutex
call _my_thread_var
mov [rbp+var_8], rax
jmp short $+2
loc_BC88E:
mov rdi, [rbp+var_8]
call my_thread_destory_thr_mutex
mov rdi, [rbp+var_8]
call my_thread_init_thr_mutex
add rsp, 10h
pop rbp
retn
|
long long my_thread_global_reinit()
{
long long v1; // [rsp+8h] [rbp-8h]
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
v1 = my_thread_var();
my_thread_destory_thr_mutex(v1);
return my_thread_init_thr_mutex(v1);
}
|
my_thread_global_reinit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
JMP 0x001bc86a
LAB_001bc86a:
CALL 0x001ba0d0
CALL 0x001bc710
CALL 0x001bc8b0
CALL 0x001bc7c0
CALL 0x001bc980
CALL 0x001bc9e0
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001bc88e
LAB_001bc88e:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001bca00
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001bca30
ADD RSP,0x10
POP RBP
RET
|
void my_thread_global_reinit(void)
{
int8 uVar1;
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
uVar1 = _my_thread_var();
my_thread_destory_thr_mutex(uVar1);
my_thread_init_thr_mutex(uVar1);
return;
}
|
|
11,549 |
mysql_load_plugin
|
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
|
struct st_mysql_client_plugin * STDCALL
mysql_load_plugin(MYSQL *mysql, const char *name, int type, int argc, ...)
{
struct st_mysql_client_plugin *p;
va_list args;
va_start(args, argc);
p= mysql_load_plugin_v(mysql, name, type, argc, args);
va_end(args);
return p;
}
|
O0
|
c
|
mysql_load_plugin:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
testb %al, %al
je 0x3600b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x30, -0x3c(%rbp)
movl $0x20, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
leaq -0x40(%rbp), %r8
callq 0x35be0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
|
mysql_load_plugin:
push rbp
mov rbp, rsp
sub rsp, 0F0h
test al, al
jz short loc_3600B
movaps [rbp+var_C0], xmm0
movaps [rbp+var_B0], xmm1
movaps [rbp+var_A0], xmm2
movaps [rbp+var_90], xmm3
movaps [rbp+var_80], xmm4
movaps [rbp+var_70], xmm5
movaps [rbp+var_60], xmm6
movaps [rbp+var_50], xmm7
loc_3600B:
mov [rbp+var_C8], r9
mov [rbp+var_D0], r8
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
lea rax, [rbp+var_F0]
mov [rbp+var_30], rax
lea rax, [rbp+arg_0]
mov [rbp+var_38], rax
mov [rbp+var_3C], 30h ; '0'
mov [rbp+var_40], 20h ; ' '
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
mov ecx, [rbp+var_18]
lea r8, [rbp+var_40]
call mysql_load_plugin_v
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rsp, 0F0h
pop rbp
retn
|
void (**mysql_load_plugin(long long a1, const char *a2, signed int a3, unsigned int a4, ...))(void)
{
va_list va; // [rsp+B0h] [rbp-40h] BYREF
unsigned int v6; // [rsp+D8h] [rbp-18h]
signed int v7; // [rsp+DCh] [rbp-14h]
const char *v8; // [rsp+E0h] [rbp-10h]
long long v9; // [rsp+E8h] [rbp-8h]
va_start(va, a4);
v9 = a1;
v8 = a2;
v7 = a3;
v6 = a4;
return mysql_load_plugin_v(a1, a2, a3, a4, (long long)va);
}
|
mysql_load_plugin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
TEST AL,AL
JZ 0x0013600b
MOVAPS xmmword ptr [RBP + -0xc0],XMM0
MOVAPS xmmword ptr [RBP + -0xb0],XMM1
MOVAPS xmmword ptr [RBP + -0xa0],XMM2
MOVAPS xmmword ptr [RBP + -0x90],XMM3
MOVAPS xmmword ptr [RBP + -0x80],XMM4
MOVAPS xmmword ptr [RBP + -0x70],XMM5
MOVAPS xmmword ptr [RBP + -0x60],XMM6
MOVAPS xmmword ptr [RBP + -0x50],XMM7
LAB_0013600b:
MOV qword ptr [RBP + -0xc8],R9
MOV qword ptr [RBP + -0xd0],R8
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
LEA RAX,[RBP + -0xf0]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],0x30
MOV dword ptr [RBP + -0x40],0x20
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
LEA R8,[RBP + -0x40]
CALL 0x00135be0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0xf0
POP RBP
RET
|
int8
mysql_load_plugin(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int4 param_11,int4 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int8 uVar1;
int1 local_f8 [32];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int4 local_48;
int4 local_44;
int1 *local_40;
int1 *local_38;
int4 local_20;
int4 local_1c;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_c8 = param_1;
local_b8 = param_2;
local_a8 = param_3;
local_98 = param_4;
local_88 = param_5;
local_78 = param_6;
local_68 = param_7;
local_58 = param_8;
}
local_38 = local_f8;
local_40 = &stack0x00000008;
local_44 = 0x30;
local_48 = 0x20;
local_d8 = param_13;
local_d0 = param_14;
local_20 = param_12;
local_1c = param_11;
local_18 = param_10;
local_10 = param_9;
uVar1 = mysql_load_plugin_v(param_9,param_10,param_11,param_12,&local_48);
return uVar1;
}
|
|
11,550 |
my_hash_sort_utf32_nopad
|
eloqsql/strings/ctype-ucs2.c
|
static void
my_hash_sort_utf32_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
my_wc_t wc;
int res;
const uchar *e= s + slen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
register ulong m1= *nr1, m2= *nr2;
while ((res= my_utf32_uni(cs, &wc, (uchar*) s, (uchar*) e)) > 0)
{
my_tosort_utf32(uni_plane, &wc);
MY_HASH_ADD(m1, m2, (uint) (wc >> 24));
MY_HASH_ADD(m1, m2, (uint) (wc >> 16) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc >> 8) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc & 0xFF));
s+= res;
}
*nr1= m1;
*nr2= m2;
}
|
O0
|
c
|
my_hash_sort_utf32_nopad:
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 -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0x5af80
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jle 0x60077
movq -0x48(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x600a0
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
shrq $0x18, %rcx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x5ffa3
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
shrq $0x10, %rcx
andl $0xff, %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x5ffe4
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
shrq $0x8, %rcx
andl $0xff, %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x60025
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
andq $0xff, %rcx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x5ff3a
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_hash_sort_utf32_nopad:
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_8]
mov rax, [rax+78h]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_58], rax
loc_5FF3A:
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf32_uni
mov [rbp+var_34], eax
cmp eax, 0
jle loc_60077
mov rdi, [rbp+var_48]
lea rsi, [rbp+var_30]
call my_tosort_utf32
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
shr rcx, 18h
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
jmp short $+2
loc_5FFA3:
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
shr rcx, 10h
and ecx, 0FFh
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
jmp short $+2
loc_5FFE4:
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
shr rcx, 8
and ecx, 0FFh
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
jmp short $+2
loc_60025:
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
and rcx, 0FFh
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp loc_5FF3A
loc_60077:
mov rcx, [rbp+var_50]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_58]
mov rax, [rbp+var_28]
mov [rax], rcx
add rsp, 60h
pop rbp
retn
|
_QWORD * my_hash_sort_utf32_nopad(long long a1, long long a2, long long a3, long long *a4, _QWORD *a5, long long a6)
{
_QWORD *result; // rax
long long v7; // [rsp+8h] [rbp-58h]
long long v8; // [rsp+8h] [rbp-58h]
long long v9; // [rsp+10h] [rbp-50h]
long long v10; // [rsp+10h] [rbp-50h]
long long v11; // [rsp+10h] [rbp-50h]
long long v12; // [rsp+10h] [rbp-50h]
long long v13; // [rsp+18h] [rbp-48h]
long long v14; // [rsp+20h] [rbp-40h]
int v15; // [rsp+2Ch] [rbp-34h]
unsigned long long v16; // [rsp+30h] [rbp-30h] BYREF
_QWORD *v17; // [rsp+38h] [rbp-28h]
long long *v18; // [rsp+40h] [rbp-20h]
long long v19; // [rsp+48h] [rbp-18h]
long long v20; // [rsp+50h] [rbp-10h]
long long v21; // [rsp+58h] [rbp-8h]
v21 = a1;
v20 = a2;
v19 = a3;
v18 = a4;
v17 = a5;
v14 = a3 + a2;
v13 = *(_QWORD *)(a1 + 120);
v9 = *a4;
v7 = *a5;
while ( 1 )
{
v15 = my_utf32_uni(v21, (long long)&v16, v20, v14, (long long)a5, a6);
if ( v15 <= 0 )
break;
my_tosort_utf32(v13, &v16);
v10 = v9 ^ ((v9 << 8) + (unsigned int)(v16 >> 24) * (v7 + (v9 & 0x3F)));
v8 = v7 + 3;
v11 = v10 ^ ((v10 << 8) + BYTE2(v16) * (v8 + (v10 & 0x3F)));
v8 += 3LL;
v12 = v11 ^ ((v11 << 8) + BYTE1(v16) * (v8 + (v11 & 0x3F)));
v8 += 3LL;
v9 = v12 ^ ((v12 << 8) + (unsigned __int8)v16 * (v8 + (v12 & 0x3F)));
v7 = v8 + 3;
v20 += v15;
}
*v18 = v9;
result = v17;
*v17 = v7;
return result;
}
|
my_hash_sort_utf32_nopad:
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 + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
LAB_0015ff3a:
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x30]
CALL 0x0015af80
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JLE 0x00160077
MOV RDI,qword ptr [RBP + -0x48]
LEA RSI,[RBP + -0x30]
CALL 0x001600a0
MOV RAX,qword ptr [RBP + -0x50]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x30]
SHR RCX,0x18
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x50]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x3
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0015ffa3
LAB_0015ffa3:
MOV RAX,qword ptr [RBP + -0x50]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x30]
SHR RCX,0x10
AND ECX,0xff
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x50]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x3
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0015ffe4
LAB_0015ffe4:
MOV RAX,qword ptr [RBP + -0x50]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x30]
SHR RCX,0x8
AND ECX,0xff
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x50]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x3
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00160025
LAB_00160025:
MOV RAX,qword ptr [RBP + -0x50]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x30]
AND RCX,0xff
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x50]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x3
MOV qword ptr [RBP + -0x58],RAX
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0015ff3a
LAB_00160077:
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
ADD RSP,0x60
POP RBP
RET
|
void my_hash_sort_utf32_nopad(long param_1,long param_2,long param_3,ulong *param_4,long *param_5)
{
int8 uVar1;
int iVar2;
long local_60;
ulong local_58;
ulong local_38;
long *local_30;
ulong *local_28;
long local_20;
long local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_58 = *param_4;
local_60 = *param_5;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
iVar2 = my_utf32_uni(local_10,&local_38,local_18,param_2 + param_3);
if (iVar2 < 1) break;
my_tosort_utf32(uVar1,&local_38);
local_58 = ((local_58 & 0x3f) + local_60) * (local_38 >> 0x18 & 0xffffffff) + local_58 * 0x100 ^
local_58;
local_58 = ((local_58 & 0x3f) + local_60 + 3) * (ulong)((uint)(local_38 >> 0x10) & 0xff) +
local_58 * 0x100 ^ local_58;
local_58 = ((local_58 & 0x3f) + local_60 + 6) * (ulong)((uint)(local_38 >> 8) & 0xff) +
local_58 * 0x100 ^ local_58;
local_58 = ((local_58 & 0x3f) + local_60 + 9) * (ulong)((uint)local_38 & 0xff) +
local_58 * 0x100 ^ local_58;
local_60 = local_60 + 0xc;
local_18 = local_18 + iVar2;
}
*local_28 = local_58;
*local_30 = local_60;
return;
}
|
|
11,551 |
DefaultReportBadAccess(unsigned long, BadAccessGuardState, bool, char const*)
|
BadAccessGuards/src/BadAccessGuards.cpp
|
bool DefaultReportBadAccess(StateAndStackAddr previousOperation, BadAccessGuardState toState, bool assertionOrWarning, const char* message)
{
const BadAccessGuardState previousState = BadAccessGuardShadow::GetState(previousOperation);
const bool fromSameThread = IsAddressInCurrentStack(BadAccessGuardShadow::GetInStackAddr(previousOperation));
if (message)
{
return BadAccessGuardReport(assertionOrWarning, message);
}
else if (previousState >= BAGuard_StatesCount)
{
return BadAccessGuardReport(assertionOrWarning, "Shadow value was corrupted! This could be due to use after-free, out of bounds writes, etc...");
}
else
{
const char* stateToStr[] = {
toState == BAGuard_Writing ? "Writing" : "Reading", // The only cases when we can see this state are when we try to read, or in the writing guard destructor which means another write ended before. So we know that it can only be due to a write (or corruption).
"Writing",
"Destroyed"
};
static_assert(sizeof(stateToStr) / sizeof(stateToStr[0]) == BAGuard_StatesCount, "Mismatch, new state added ?");
if (fromSameThread)
{
return BadAccessGuardReport(assertionOrWarning, "Recursion detected: This may lead to invalid operations\n- Parent operation: %s.\n- This operation: %s.", stateToStr[previousState], stateToStr[toState]);
}
else
{
ThreadDescBuffer outDescription;
uint64_t otherThreadId = FindThreadWithPtrInStack(BadAccessGuardShadow::GetInStackAddr(previousOperation), outDescription);
return BadAccessGuardReport(assertionOrWarning,
"Race condition: Multiple threads are reading/writing to the data at the same time, potentially corrupting it!\n- Other thread: %s (Desc=%s Id=%llu)\n- This thread: %s.",
stateToStr[previousState],
outDescription[0] != '\0' ? outDescription : "<Unknown>",
otherThreadId,
stateToStr[toState]
);
}
}
}
|
O0
|
cpp
|
DefaultReportBadAccess(unsigned long, BadAccessGuardState, bool, char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x2a0, %rsp # imm = 0x2A0
movb %dl, %al
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
andb $0x1, %al
movb %al, -0x31(%rbp)
movq %rcx, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x3, %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
andq $-0x4, %rdi
callq 0x11c10
andb $0x1, %al
movb %al, -0x49(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x11d30
movb -0x31(%rbp), %al
movq -0x40(%rbp), %rsi
andb $0x1, %al
movzbl %al, %edi
movb $0x0, %al
callq 0x11ef0
andb $0x1, %al
movb %al, -0x19(%rbp)
jmp 0x11e7c
cmpq $0x3, -0x48(%rbp)
jb 0x11d57
movb -0x31(%rbp), %al
leaq 0x2346f(%rip), %rsi # 0x351b0
andb $0x1, %al
movzbl %al, %edi
movb $0x0, %al
callq 0x11ef0
andb $0x1, %al
movb %al, -0x19(%rbp)
jmp 0x11e7c
cmpq $0x1, -0x30(%rbp)
jne 0x11d6e
leaq 0x234a9(%rip), %rax # 0x3520e
movq %rax, -0x280(%rbp)
jmp 0x11d7e
leaq 0x234a1(%rip), %rax # 0x35216
movq %rax, -0x280(%rbp)
jmp 0x11d7e
movq -0x280(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x2347e(%rip), %rax # 0x3520e
movq %rax, -0x68(%rbp)
leaq 0x23483(%rip), %rax # 0x3521e
movq %rax, -0x60(%rbp)
testb $0x1, -0x49(%rbp)
je 0x11dd7
movb -0x31(%rbp), %al
movq -0x48(%rbp), %rcx
movq -0x70(%rbp,%rcx,8), %rdx
movq -0x30(%rbp), %rcx
movq -0x70(%rbp,%rcx,8), %rcx
leaq 0x23467(%rip), %rsi # 0x35228
andb $0x1, %al
movzbl %al, %edi
movb $0x0, %al
callq 0x11ef0
andb $0x1, %al
movb %al, -0x19(%rbp)
jmp 0x11e7c
movq -0x28(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
andq $-0x4, %rdi
leaq -0x270(%rbp), %rsi
callq 0x11ca0
movq %rax, -0x278(%rbp)
movb -0x31(%rbp), %al
movb %al, -0x289(%rbp)
movq -0x48(%rbp), %rax
movq -0x70(%rbp,%rax,8), %rax
movq %rax, -0x288(%rbp)
movsbl -0x270(%rbp), %eax
cmpl $0x0, %eax
je 0x11e2f
leaq -0x270(%rbp), %rax
movq %rax, -0x298(%rbp)
jmp 0x11e3f
leaq 0x234fe(%rip), %rax # 0x35334
movq %rax, -0x298(%rbp)
jmp 0x11e3f
movq -0x288(%rbp), %rdx
movb -0x289(%rbp), %al
movq -0x298(%rbp), %rcx
movq -0x278(%rbp), %r8
movq -0x30(%rbp), %rsi
movq -0x70(%rbp,%rsi,8), %r9
movzbl %al, %edi
andl $0x1, %edi
leaq 0x2341e(%rip), %rsi # 0x3528e
xorl %eax, %eax
callq 0x11ef0
andb $0x1, %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
andb $0x1, %al
addq $0x2a0, %rsp # imm = 0x2A0
popq %rbp
retq
nopw (%rax,%rax)
|
_Z22DefaultReportBadAccessm19BadAccessGuardStatebPKc:
push rbp
mov rbp, rsp
sub rsp, 2A0h
mov al, dl
mov [rbp+var_28], rdi
mov [rbp+var_30], rsi
and al, 1
mov [rbp+var_31], al
mov [rbp+var_40], rcx
mov rax, [rbp+var_28]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
and rax, 3
mov [rbp+var_48], rax
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
mov rdi, [rbp+var_8]
and rdi, 0FFFFFFFFFFFFFFFCh; void *
call _Z23IsAddressInCurrentStackPv; IsAddressInCurrentStack(void *)
and al, 1
mov [rbp+var_49], al
cmp [rbp+var_40], 0
jz short loc_11D30
mov al, [rbp+var_31]
mov rsi, [rbp+var_40]; char *
and al, 1
movzx edi, al; bool
mov al, 0
call _Z20BadAccessGuardReportbPKcz; BadAccessGuardReport(bool,char const*,...)
and al, 1
mov [rbp+var_19], al
jmp loc_11E7C
loc_11D30:
cmp [rbp+var_48], 3
jb short loc_11D57
mov al, [rbp+var_31]
lea rsi, aShadowValueWas; "Shadow value was corrupted! This could "...
and al, 1
movzx edi, al; bool
mov al, 0
call _Z20BadAccessGuardReportbPKcz; BadAccessGuardReport(bool,char const*,...)
and al, 1
mov [rbp+var_19], al
jmp loc_11E7C
loc_11D57:
cmp [rbp+var_30], 1
jnz short loc_11D6E
lea rax, aWriting; "Writing"
mov [rbp+var_280], rax
jmp short loc_11D7E
loc_11D6E:
lea rax, aReading; "Reading"
mov [rbp+var_280], rax
jmp short $+2
loc_11D7E:
mov rax, [rbp+var_280]
mov [rbp+var_70], rax
lea rax, aWriting; "Writing"
mov [rbp+var_68], rax
lea rax, aDestroyed; "Destroyed"
mov [rbp+var_60], rax
test [rbp+var_49], 1
jz short loc_11DD7
mov al, [rbp+var_31]
mov rcx, [rbp+var_48]
mov rdx, [rbp+rcx*8+var_70]
mov rcx, [rbp+var_30]
mov rcx, [rbp+rcx*8+var_70]
lea rsi, aRecursionDetec; "Recursion detected: This may lead to in"...
and al, 1
movzx edi, al; bool
mov al, 0
call _Z20BadAccessGuardReportbPKcz; BadAccessGuardReport(bool,char const*,...)
and al, 1
mov [rbp+var_19], al
jmp loc_11E7C
loc_11DD7:
mov rax, [rbp+var_28]
mov [rbp+var_10], rax
mov rdi, [rbp+var_10]
and rdi, 0FFFFFFFFFFFFFFFCh; void *
lea rsi, [rbp+var_270]; char *
call _Z24FindThreadWithPtrInStackPvPc; FindThreadWithPtrInStack(void *,char *)
mov [rbp+var_278], rax
mov al, [rbp+var_31]
mov [rbp+var_289], al
mov rax, [rbp+var_48]
mov rax, [rbp+rax*8+var_70]
mov [rbp+var_288], rax
movsx eax, [rbp+var_270]
cmp eax, 0
jz short loc_11E2F
lea rax, [rbp+var_270]
mov [rbp+var_298], rax
jmp short loc_11E3F
loc_11E2F:
lea rax, aUnknown; "<Unknown>"
mov [rbp+var_298], rax
jmp short $+2
loc_11E3F:
mov rdx, [rbp+var_288]
mov al, [rbp+var_289]
mov rcx, [rbp+var_298]
mov r8, [rbp+var_278]
mov rsi, [rbp+var_30]
mov r9, [rbp+rsi*8+var_70]
movzx edi, al
and edi, 1; bool
lea rsi, aRaceConditionM; "Race condition: Multiple threads are re"...
xor eax, eax
call _Z20BadAccessGuardReportbPKcz; BadAccessGuardReport(bool,char const*,...)
and al, 1
mov [rbp+var_19], al
loc_11E7C:
mov al, [rbp+var_19]
and al, 1
add rsp, 2A0h
pop rbp
retn
|
char DefaultReportBadAccess(long long a1, long long a2, char a3, char *a4)
{
char v4; // al
const char *v6; // [rsp+18h] [rbp-288h]
const char *v7; // [rsp+20h] [rbp-280h]
long long ThreadWithPtrInStack; // [rsp+28h] [rbp-278h]
char v9[512]; // [rsp+30h] [rbp-270h] BYREF
_QWORD v10[4]; // [rsp+230h] [rbp-70h]
bool v11; // [rsp+257h] [rbp-49h]
unsigned long long v12; // [rsp+258h] [rbp-48h]
char *v13; // [rsp+260h] [rbp-40h]
char v14; // [rsp+26Fh] [rbp-31h]
long long v15; // [rsp+270h] [rbp-30h]
long long v16; // [rsp+278h] [rbp-28h]
long long v18; // [rsp+288h] [rbp-18h]
long long v19; // [rsp+290h] [rbp-10h]
long long v20; // [rsp+298h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3 & 1;
v13 = a4;
v18 = a1;
v12 = a1 & 3;
v20 = a1;
v11 = IsAddressInCurrentStack(a1 & 0xFFFFFFFFFFFFFFFCLL);
if ( v13 )
return BadAccessGuardReport(v14 & 1, v13) & 1;
if ( v12 >= 3 )
return BadAccessGuardReport(
v14 & 1,
"Shadow value was corrupted! This could be due to use after-free, out of bounds writes, etc...") & 1;
if ( v15 == 1 )
v7 = "Writing";
else
v7 = "Reading";
v10[0] = v7;
v10[1] = "Writing";
v10[2] = "Destroyed";
if ( v11 )
return BadAccessGuardReport(
v14 & 1,
"Recursion detected: This may lead to invalid operations\n- Parent operation: %s.\n- This operation: %s.",
(const char *)v10[v12],
(const char *)v10[v15]) & 1;
v19 = v16;
ThreadWithPtrInStack = FindThreadWithPtrInStack((void *)(v16 & 0xFFFFFFFFFFFFFFFCLL), v9);
v6 = (const char *)v10[v12];
if ( v9[0] )
v4 = BadAccessGuardReport(
v14 & 1,
"Race condition: Multiple threads are reading/writing to the data at the same time, potentially corrupting it!"
"\n"
"- Other thread: %s (Desc=%s Id=%llu)\n"
"- This thread: %s.",
v6,
v9,
ThreadWithPtrInStack,
(const char *)v10[v15]);
else
v4 = BadAccessGuardReport(
v14 & 1,
"Race condition: Multiple threads are reading/writing to the data at the same time, potentially corrupting it!"
"\n"
"- Other thread: %s (Desc=%s Id=%llu)\n"
"- This thread: %s.",
v6,
"<Unknown>",
ThreadWithPtrInStack,
(const char *)v10[v15]);
return v4 & 1;
}
|
DefaultReportBadAccess:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x2a0
MOV AL,DL
MOV qword ptr [RBP + -0x28],RDI
MOV qword ptr [RBP + -0x30],RSI
AND AL,0x1
MOV byte ptr [RBP + -0x31],AL
MOV qword ptr [RBP + -0x40],RCX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV RDI,qword ptr [RBP + -0x8]
AND RDI,-0x4
CALL 0x00111c10
AND AL,0x1
MOV byte ptr [RBP + -0x49],AL
CMP qword ptr [RBP + -0x40],0x0
JZ 0x00111d30
MOV AL,byte ptr [RBP + -0x31]
MOV RSI,qword ptr [RBP + -0x40]
AND AL,0x1
MOVZX EDI,AL
MOV AL,0x0
CALL 0x00111ef0
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
JMP 0x00111e7c
LAB_00111d30:
CMP qword ptr [RBP + -0x48],0x3
JC 0x00111d57
MOV AL,byte ptr [RBP + -0x31]
LEA RSI,[0x1351b0]
AND AL,0x1
MOVZX EDI,AL
MOV AL,0x0
CALL 0x00111ef0
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
JMP 0x00111e7c
LAB_00111d57:
CMP qword ptr [RBP + -0x30],0x1
JNZ 0x00111d6e
LEA RAX,[0x13520e]
MOV qword ptr [RBP + -0x280],RAX
JMP 0x00111d7e
LAB_00111d6e:
LEA RAX,[0x135216]
MOV qword ptr [RBP + -0x280],RAX
JMP 0x00111d7e
LAB_00111d7e:
MOV RAX,qword ptr [RBP + -0x280]
MOV qword ptr [RBP + -0x70],RAX
LEA RAX,[0x13520e]
MOV qword ptr [RBP + -0x68],RAX
LEA RAX,[0x13521e]
MOV qword ptr [RBP + -0x60],RAX
TEST byte ptr [RBP + -0x49],0x1
JZ 0x00111dd7
MOV AL,byte ptr [RBP + -0x31]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + RCX*0x8 + -0x70]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + RCX*0x8 + -0x70]
LEA RSI,[0x135228]
AND AL,0x1
MOVZX EDI,AL
MOV AL,0x0
CALL 0x00111ef0
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
JMP 0x00111e7c
LAB_00111dd7:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x10],RAX
MOV RDI,qword ptr [RBP + -0x10]
AND RDI,-0x4
LEA RSI,[RBP + -0x270]
CALL 0x00111ca0
MOV qword ptr [RBP + -0x278],RAX
MOV AL,byte ptr [RBP + -0x31]
MOV byte ptr [RBP + -0x289],AL
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + RAX*0x8 + -0x70]
MOV qword ptr [RBP + -0x288],RAX
MOVSX EAX,byte ptr [RBP + -0x270]
CMP EAX,0x0
JZ 0x00111e2f
LEA RAX,[RBP + -0x270]
MOV qword ptr [RBP + -0x298],RAX
JMP 0x00111e3f
LAB_00111e2f:
LEA RAX,[0x135334]
MOV qword ptr [RBP + -0x298],RAX
JMP 0x00111e3f
LAB_00111e3f:
MOV RDX,qword ptr [RBP + -0x288]
MOV AL,byte ptr [RBP + -0x289]
MOV RCX,qword ptr [RBP + -0x298]
MOV R8,qword ptr [RBP + -0x278]
MOV RSI,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + RSI*0x8 + -0x70]
MOVZX EDI,AL
AND EDI,0x1
LEA RSI,[0x13528e]
XOR EAX,EAX
CALL 0x00111ef0
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
LAB_00111e7c:
MOV AL,byte ptr [RBP + -0x19]
AND AL,0x1
ADD RSP,0x2a0
POP RBP
RET
|
/* DefaultReportBadAccess(unsigned long, BadAccessGuardState, bool, char const*) */
int8 DefaultReportBadAccess(ulong param_1,long param_2,byte param_3,char *param_4)
{
byte bVar1;
ulong uVar2;
int8 uVar3;
char *local_2a0;
char *local_288;
char local_278 [512];
char *local_78 [4];
byte local_51;
ulong local_50;
char *local_48;
byte local_39;
long local_38;
ulong local_30;
int1 local_21;
ulong local_20;
ulong local_18;
ulong local_10;
local_39 = param_3 & 1;
local_50 = param_1 & 3;
local_48 = param_4;
local_38 = param_2;
local_30 = param_1;
local_20 = param_1;
local_10 = param_1;
bVar1 = IsAddressInCurrentStack((void *)(param_1 & 0xfffffffffffffffc));
local_51 = bVar1 & 1;
if (local_48 == (char *)0x0) {
if (local_50 < 3) {
if (local_38 == 1) {
local_288 = "Writing";
}
else {
local_288 = "Reading";
}
local_78[0] = local_288;
local_78[1] = "Writing";
local_78[2] = "Destroyed";
if ((bVar1 & 1) == 0) {
local_18 = local_30;
uVar3 = FindThreadWithPtrInStack((void *)(local_30 & 0xfffffffffffffffc),local_278);
if (local_278[0] == '\0') {
local_2a0 = "<Unknown>";
}
else {
local_2a0 = local_278;
}
uVar2 = BadAccessGuardReport
((bool)(local_39 & 1),
"Race condition: Multiple threads are reading/writing to the data at the same time, potentially corrupting it!\n- Other thread: %s (Desc=%s Id=%llu)\n- This thread: %s."
,local_78[local_50],local_2a0,uVar3,local_78[local_38]);
uVar2 = uVar2 & 0xffffffffffffff01;
local_21 = (int1)uVar2;
}
else {
uVar2 = BadAccessGuardReport
((bool)(local_39 & 1),
"Recursion detected: This may lead to invalid operations\n- Parent operation: %s.\n- This operation: %s."
,local_78[local_50],local_78[local_38]);
uVar2 = uVar2 & 0xffffffffffffff01;
local_21 = (int1)uVar2;
}
}
else {
uVar2 = BadAccessGuardReport
((bool)(local_39 & 1),
"Shadow value was corrupted! This could be due to use after-free, out of bounds writes, etc..."
);
uVar2 = uVar2 & 0xffffffffffffff01;
local_21 = (int1)uVar2;
}
}
else {
uVar2 = BadAccessGuardReport((bool)(local_39 & 1),local_48);
uVar2 = uVar2 & 0xffffffffffffff01;
local_21 = (int1)uVar2;
}
return CONCAT71((int7)(uVar2 >> 8),local_21);
}
|
|
11,552 |
minja::Parser::parseVarNames[abi:cxx11]()
|
monkey531[P]llama/common/minja.hpp
|
std::vector<std::string> parseVarNames() {
static std::regex varnames_regex(R"(((?:\w+)(?:[\r\n\s]*,[\r\n\s]*(?:\w+))*)[\r\n\s]*)");
std::vector<std::string> group;
if ((group = consumeTokenGroups(varnames_regex)).empty()) throw std::runtime_error("Expected variable names");
std::vector<std::string> varnames;
std::istringstream iss(group[1]);
std::string varname;
while (std::getline(iss, varname, ',')) {
varnames.push_back(strip(varname));
}
return varnames;
}
|
O1
|
cpp
|
minja::Parser::parseVarNames[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp # imm = 0x1E8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xaa912(%rip), %rax # 0x1301d0
movb (%rax), %al
testb %al, %al
je 0x85a3e
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0xaa8d1(%rip), %rdx # 0x1301b0
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x85240
leaq 0x60(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movaps (%rsp), %xmm0
movq 0x10(%rsp), %rax
leaq 0x20(%rsp), %r14
movaps (%r14), %xmm1
movaps %xmm1, (%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r14)
movq $0x0, 0x10(%r14)
callq 0x22fba
movq (%rsp), %r15
movq 0x8(%rsp), %r12
movq %r14, %rdi
callq 0x22fba
cmpq %r12, %r15
je 0x85a95
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq (%rsp), %rsi
addq $0x20, %rsi
leaq 0x60(%rsp), %rdi
movl $0x8, %edx
callq 0x1bec0
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x50(%rsp), %rbp
leaq 0x60(%rsp), %r14
leaq 0x20(%rsp), %r15
leaq 0x40(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
movl $0x2c, %edx
callq 0x1c080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x859ec
movq %r12, %rdi
movq %r15, %rsi
callq 0x79251
movq %rbx, %rdi
movq %r12, %rsi
callq 0x56b2a
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8599f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x8599f
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x85a03
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq 0xa954e(%rip), %rsi # 0x12ef58
leaq 0x60(%rsp), %rdi
callq 0x1bc90
leaq 0xd8(%rsp), %rdi
callq 0x1b2a0
movq %rsp, %rdi
callq 0x22fba
movq %rbx, %rax
addq $0x1e8, %rsp # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xaa78b(%rip), %rdi # 0x1301d0
callq 0x1c010
testl %eax, %eax
je 0x858c8
leaq 0xaa757(%rip), %rdi # 0x1301b0
leaq 0x6de0c(%rip), %rsi # 0xf386c
movl $0x10, %edx
callq 0x63988
leaq -0x21de1(%rip), %rdi # 0x63c90
leaq 0xaa738(%rip), %rsi # 0x1301b0
leaq 0xa9e59(%rip), %rdx # 0x12f8d8
callq 0x1b7b0
leaq 0xaa745(%rip), %rdi # 0x1301d0
callq 0x1b5b0
jmp 0x858c8
movl $0x10, %edi
callq 0x1b430
movq %rax, %rbx
leaq 0x6ddf5(%rip), %rsi # 0xf389e
movq %rax, %rdi
callq 0x1b310
movq 0xa9538(%rip), %rsi # 0x12eff0
movq 0xa94a1(%rip), %rdx # 0x12ef60
movq %rbx, %rdi
callq 0x1bf20
movq %rax, %r14
leaq 0xaa6ff(%rip), %rdi # 0x1301d0
callq 0x1b5a0
jmp 0x85b57
jmp 0x85aec
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b670
jmp 0x85b4f
movq %rax, %r14
jmp 0x85b47
movq %rax, %r14
jmp 0x85b4f
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x85b12
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x85b12
jmp 0x85b0f
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x85b29
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq 0xa9428(%rip), %rsi # 0x12ef58
leaq 0x60(%rsp), %rdi
callq 0x1bc90
leaq 0xd8(%rsp), %rdi
callq 0x1b2a0
movq %rbx, %rdi
callq 0x22fba
movq %rsp, %rdi
callq 0x22fba
movq %r14, %rdi
callq 0x1bfb0
nop
|
_ZN5minja6Parser13parseVarNamesB5cxx11Ev:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1E8h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; `guard variable for'minja::Parser::parseVarNames(void)::varnames_regex
mov al, [rax]
test al, al
jz loc_85A3E
loc_858C8:
xorps xmm0, xmm0
movaps xmmword ptr [rsp+218h+var_218], xmm0; int
mov qword ptr [rsp+218h+var_208], 0; int
lea rdx, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; int
lea rdi, [rsp+218h+var_1F8]; int
mov rsi, r14; int
mov ecx, 1; int
call _ZN5minja6Parser18consumeTokenGroupsERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeTokenGroups(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+218h+var_1B8]
xorps xmm0, xmm0
movaps xmmword ptr [rdi], xmm0
movaps xmm0, xmmword ptr [rsp+218h+var_218]
mov rax, qword ptr [rsp+218h+var_208]
lea r14, [rsp+218h+var_1F8]
movaps xmm1, xmmword ptr [r14]
movaps xmmword ptr [rsp+218h+var_218], xmm1
mov rcx, [r14+10h]
mov qword ptr [rsp+218h+var_208], rcx
mov [rdi+10h], rax
movaps xmm1, xmmword ptr [rdi]
movaps xmmword ptr [rdi], xmm0
movaps xmmword ptr [r14], xmm1
mov qword ptr [r14+10h], 0
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov r15, qword ptr [rsp+218h+var_218]
mov r12, qword ptr [rsp+218h+var_218+8]
mov rdi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
cmp r15, r12
jz loc_85A95
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
mov rsi, qword ptr [rsp+218h+var_218]
add rsi, 20h ; ' '
lea rdi, [rsp+218h+var_1B8]
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
lea r13, [rsp+218h+var_1E8]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
lea rbp, [rsp+218h+var_1C8]
lea r14, [rsp+218h+var_1B8]
lea r15, [rsp+218h+var_1F8]
lea r12, [rsp+218h+var_1D8]
loc_8599F:
mov rdi, r14
mov rsi, r15
mov edx, 2Ch ; ','
call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char)
mov rcx, [rax]
mov rcx, [rcx-18h]
test byte ptr [rax+rcx+20h], 5
jnz short loc_859EC
mov rdi, r12
mov rsi, r15
call _ZN5minjaL5stripERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::strip(std::string const&)
mov rdi, rbx
mov rsi, r12
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+218h+var_1D8]; void *
cmp rdi, rbp
jz short loc_8599F
mov rsi, [rsp+218h+var_1C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8599F
loc_859EC:
mov rdi, [rsp+218h+var_1F8]; void *
cmp rdi, r13
jz short loc_85A03
mov rsi, [rsp+218h+var_1E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_85A03:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+218h+var_140]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rsp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, rbx
add rsp, 1E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_85A3E:
lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_858C8
lea rdi, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; minja::Parser::parseVarNames(void)::varnames_regex
lea rsi, aWRNSRNSWRNS; "((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?"...
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_858C8
loc_85A95:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aExpectedVariab; "Expected variable names"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_85B57
jmp short loc_85AEC
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_85B4F
mov r14, rax
jmp short loc_85B47
loc_85AEC:
mov r14, rax
jmp short loc_85B4F
mov r14, rax
mov rdi, [rsp+218h+var_1D8]; void *
cmp rdi, rbp
jz short loc_85B12
mov rsi, [rsp+218h+var_1C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_85B12
jmp short $+2
loc_85B0F:
mov r14, rax
loc_85B12:
mov rdi, [rsp+218h+var_1F8]; void *
cmp rdi, r13
jz short loc_85B29
mov rsi, [rsp+218h+var_1E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_85B29:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+218h+var_1B8]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+218h+var_140]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_85B47:
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_85B4F:
mov rdi, rsp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_85B57:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Parser::parseVarNames[abi:cxx11](long long a1, long long a2)
{
_QWORD *v2; // rax
std::runtime_error *exception; // rbx
int v5[4]; // [rsp+0h] [rbp-218h] BYREF
int v6[2]; // [rsp+10h] [rbp-208h]
__int128 v7; // [rsp+20h] [rbp-1F8h] BYREF
_QWORD v8[2]; // [rsp+30h] [rbp-1E8h] BYREF
void *v9[2]; // [rsp+40h] [rbp-1D8h] BYREF
long long v10; // [rsp+50h] [rbp-1C8h] BYREF
__int128 v11; // [rsp+60h] [rbp-1B8h] BYREF
long long v12; // [rsp+70h] [rbp-1A8h]
_BYTE v13[320]; // [rsp+D8h] [rbp-140h] BYREF
if ( !(_BYTE)`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11],
(long long)"((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?:\\w+))*)[\\r\\n\\s]*",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]);
}
minja::Parser::consumeTokenGroups(
(long long)&v7,
a2,
(long long)&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11],
1u);
*(_OWORD *)v5 = v7;
*(_QWORD *)v6 = v8[0];
v12 = 0LL;
v11 = 0LL;
v7 = 0LL;
v8[0] = 0LL;
std::vector<std::string>::~vector(&v11);
std::vector<std::string>::~vector(&v7);
if ( *(_QWORD *)v5 == *(_QWORD *)&v5[2] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected variable names");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
std::istringstream::basic_istringstream(&v11, *(_QWORD *)v5 + 32LL, 8LL);
*(_QWORD *)&v7 = v8;
*((_QWORD *)&v7 + 1) = 0LL;
LOBYTE(v8[0]) = 0;
while ( 1 )
{
v2 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(&v11, &v7, 44LL);
if ( (*((_BYTE *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) & 5) != 0 )
break;
minja::strip(v9, (long long)&v7);
std::vector<std::string>::emplace_back<std::string>(a1, (long long)v9);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
}
if ( (_QWORD *)v7 != v8 )
operator delete((void *)v7, v8[0] + 1LL);
std::istringstream::~istringstream(&v11, &`VTT for'std::istringstream);
std::ios_base::~ios_base((std::ios_base *)v13);
std::vector<std::string>::~vector(v5);
return a1;
}
|
parseVarNames[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1e8
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x2301d0]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00185a3e
LAB_001858c8:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
LAB_001858d8:
LEA RDX,[0x2301b0]
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV ECX,0x1
CALL 0x00185240
LEA RDI,[RSP + 0x60]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RDI],XMM0
MOVAPS XMM0,xmmword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x10]
LEA R14,[RSP + 0x20]
MOVAPS XMM1,xmmword ptr [R14]
MOVAPS xmmword ptr [RSP],XMM1
MOV RCX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RDI + 0x10],RAX
MOVAPS XMM1,xmmword ptr [RDI]
MOVAPS xmmword ptr [RDI],XMM0
MOVAPS xmmword ptr [R14],XMM1
MOV qword ptr [R14 + 0x10],0x0
CALL 0x00122fba
MOV R15,qword ptr [RSP]
MOV R12,qword ptr [RSP + 0x8]
MOV RDI,R14
CALL 0x00122fba
CMP R15,R12
JZ 0x00185a95
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
MOV RSI,qword ptr [RSP]
ADD RSI,0x20
LAB_00185966:
LEA RDI,[RSP + 0x60]
MOV EDX,0x8
CALL 0x0011bec0
LEA R13,[RSP + 0x30]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
LEA RBP,[RSP + 0x50]
LEA R14,[RSP + 0x60]
LEA R15,[RSP + 0x20]
LEA R12,[RSP + 0x40]
LAB_0018599f:
MOV RDI,R14
MOV RSI,R15
MOV EDX,0x2c
CALL 0x0011c080
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JNZ 0x001859ec
LAB_001859bd:
MOV RDI,R12
MOV RSI,R15
CALL 0x00179251
LAB_001859c8:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00156b2a
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,RBP
JZ 0x0018599f
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011b8e0
JMP 0x0018599f
LAB_001859ec:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R13
JZ 0x00185a03
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8e0
LAB_00185a03:
MOV RSI,qword ptr [0x0022ef58]
LEA RDI,[RSP + 0x60]
CALL 0x0011bc90
LEA RDI,[RSP + 0xd8]
CALL 0x0011b2a0
MOV RDI,RSP
CALL 0x00122fba
MOV RAX,RBX
ADD RSP,0x1e8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00185a3e:
LEA RDI,[0x2301d0]
CALL 0x0011c010
TEST EAX,EAX
JZ 0x001858c8
LAB_00185a52:
LEA RDI,[0x2301b0]
LEA RSI,[0x1f386c]
MOV EDX,0x10
CALL 0x00163988
LAB_00185a6a:
LEA RDI,[0x163c90]
LEA RSI,[0x2301b0]
LEA RDX,[0x22f8d8]
CALL 0x0011b7b0
LEA RDI,[0x2301d0]
CALL 0x0011b5b0
JMP 0x001858c8
LAB_00185a95:
MOV EDI,0x10
CALL 0x0011b430
MOV RBX,RAX
LAB_00185aa2:
LEA RSI,[0x1f389e]
MOV RDI,RAX
CALL 0x0011b310
LAB_00185ab1:
MOV RSI,qword ptr [0x0022eff0]
MOV RDX,qword ptr [0x0022ef60]
MOV RDI,RBX
CALL 0x0011bf20
|
/* minja::Parser::parseVarNames[abi:cxx11]() */
void minja::Parser::parseVarNames_abi_cxx11_(void)
{
ulong *puVar1;
ulong *puVar2;
int iVar3;
istream *piVar4;
runtime_error *this;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *in_RDI;
ulong *local_218;
ulong *puStack_210;
ulong local_208;
ulong *local_1f8;
ulong *puStack_1f0;
ulong local_1e8 [2];
long *local_1d8 [2];
long local_1c8 [2];
int8 local_1b8;
int8 uStack_1b0;
int8 local_1a8;
ios_base local_140 [272];
if (parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_ == '\0') {
iVar3 = __cxa_guard_acquire(&parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_);
if (iVar3 != 0) {
/* try { // try from 00185a52 to 00185a69 has its CatchHandler @ 00185ac7 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_,
"((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?:\\w+))*)[\\r\\n\\s]*",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_);
}
}
local_218 = (ulong *)0x0;
puStack_210 = (ulong *)0x0;
local_208 = 0;
/* try { // try from 001858d8 to 001858f0 has its CatchHandler @ 00185aec */
consumeTokenGroups(&local_1f8);
local_1a8 = local_208;
uStack_1b0 = puStack_210;
local_1b8 = local_218;
local_218 = local_1f8;
puStack_210 = puStack_1f0;
local_208 = local_1e8[0];
local_1f8 = (ulong *)0x0;
puStack_1f0 = (ulong *)0x0;
local_1e8[0] = 0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_1b8);
puVar2 = puStack_210;
puVar1 = local_218;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_1f8);
if (puVar1 != puVar2) {
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
*(int8 *)(in_RDI + 0x10) = 0;
/* try { // try from 00185966 to 00185974 has its CatchHandler @ 00185ae7 */
std::__cxx11::istringstream::istringstream((istringstream *)&local_1b8,local_218 + 4,8);
puStack_1f0 = (ulong *)0x0;
local_1e8[0] = local_1e8[0] & 0xffffffffffffff00;
local_1f8 = local_1e8;
while( true ) {
/* try { // try from 0018599f to 001859ae has its CatchHandler @ 00185b0f */
piVar4 = std::getline<char,std::char_traits<char>,std::allocator<char>>
((istream *)&local_1b8,(string *)&local_1f8,',');
if (((byte)piVar4[*(long *)(*(long *)piVar4 + -0x18) + 0x20] & 5) != 0) break;
/* try { // try from 001859bd to 001859c7 has its CatchHandler @ 00185b0d */
strip((minja *)local_1d8,(string *)&local_1f8);
/* try { // try from 001859c8 to 001859d2 has its CatchHandler @ 00185af1 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>(in_RDI,(string *)local_1d8);
if (local_1d8[0] != local_1c8) {
operator_delete(local_1d8[0],local_1c8[0] + 1);
}
}
if (local_1f8 != local_1e8) {
operator_delete(local_1f8,local_1e8[0] + 1);
}
std::__cxx11::istringstream::~istringstream((istringstream *)&local_1b8);
std::ios_base::~ios_base(local_140);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_218);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00185aa2 to 00185ab0 has its CatchHandler @ 00185ada */
std::runtime_error::runtime_error(this,"Expected variable names");
/* try { // try from 00185ab1 to 00185ac6 has its CatchHandler @ 00185ad8 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60);
}
|
|
11,553 |
nglog::base_logging::LogStreamBuf::~LogStreamBuf()
|
ng-log[P]ng-log/src/ng-log/logging.h
|
class NGLOG_EXPORT LogStreamBuf : public std::streambuf {
public:
// REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\0'.
LogStreamBuf(char* buf, int len) { setp(buf, buf + len - 2); }
// This effectively ignores overflow.
int_type overflow(int_type ch) { return ch; }
// Legacy public ostrstream method.
size_t pcount() const { return static_cast<size_t>(pptr() - pbase()); }
char* pbase() const { return std::streambuf::pbase(); }
}
|
O3
|
c
|
nglog::base_logging::LogStreamBuf::~LogStreamBuf():
pushq %rbx
movq %rdi, %rbx
movq 0x2767d(%rip), %rax # 0x30f38
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x38, %rdi
callq 0x77b0
movq %rbx, %rdi
popq %rbx
jmp 0x7670
|
_ZN5nglog12base_logging12LogStreamBufD0Ev:
push rbx
mov rbx, rdi
mov rax, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr
add rax, 10h
mov [rdi], rax
add rdi, 38h ; '8'; this
call __ZNSt6localeD1Ev; std::locale::~locale()
mov rdi, rbx
pop rbx
jmp _free
|
void nglog::base_logging::LogStreamBuf::~LogStreamBuf(nglog::base_logging::LogStreamBuf *this)
{
*(_QWORD *)this = (char *)&`vtable for'std::streambuf + 16;
std::locale::~locale((nglog::base_logging::LogStreamBuf *)((char *)this + 56));
free(this);
}
|
~LogStreamBuf:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [0x00130f38]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
ADD RDI,0x38
CALL 0x001077b0
MOV RDI,RBX
POP RBX
JMP 0x00107670
|
/* nglog::base_logging::LogStreamBuf::~LogStreamBuf() */
void __thiscall nglog::base_logging::LogStreamBuf::~LogStreamBuf(LogStreamBuf *this)
{
*(int **)this = PTR_vtable_00130f38 + 0x10;
std::locale::~locale((locale *)(this + 0x38));
free(this);
return;
}
|
|
11,554 |
fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, double, 0>(fmt::v10::appender, double)
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
if (is_constant_evaluated()) return write(out, value, format_specs<Char>());
if (const_check(!is_supported_floating_point(value))) return out;
auto fspecs = float_specs();
if (detail::signbit(value)) {
fspecs.sign = sign::minus;
value = -value;
}
constexpr auto specs = format_specs<Char>();
using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
using floaty_uint = typename dragonbox::float_info<floaty>::carrier_uint;
floaty_uint mask = exponent_mask<floaty>();
if ((bit_cast<floaty_uint>(value) & mask) == mask)
return write_nonfinite(out, std::isnan(value), specs, fspecs);
auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
return write_float(out, dec, specs, fspecs, {});
}
|
O3
|
c
|
fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, double, 0>(fmt::v10::appender, double):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
movq %xmm0, %rax
testq %rax, %rax
jns 0x2ab69
movl $0x100, 0xc(%rsp) # imm = 0x100
pxor 0x584d7(%rip), %xmm0 # 0x83040
movups 0x58530(%rip), %xmm1 # 0x830a0
movaps %xmm1, 0x10(%rsp)
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x2abbb
xorl %esi, %esi
ucomisd %xmm0, %xmm0
setp %sil
movabsq $-0x100000000, %rdx # imm = 0xFFFFFFFF00000000
movabsq $0x100000020000000, %rcx # imm = 0x100000020000000
leaq 0x8(%rsp), %r8
movq %rbx, %rdi
callq 0x293d3
jmp 0x2abe0
callq 0x2abe6
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq 0x8(%rsp), %rcx
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x2b049
addq $0x30, %rsp
popq %rbx
retq
|
_ZN3fmt3v106detail5writeIcNS0_8appenderEdTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_:
push rbx; char
sub rsp, 30h
mov rbx, rdi
mov qword ptr [rsp+38h+var_30], 0; int
movq rax, xmm0
test rax, rax
jns short loc_2AB69
mov [rsp+38h+var_30+4], 100h
pxor xmm0, cs:xmmword_83040
loc_2AB69:
movups xmm1, cs:xmmword_830A0
movaps xmmword ptr [rsp+38h+var_28], xmm1; int
movq rax, xmm0
btr rax, 3Fh ; '?'
mov rcx, 7FF0000000000000h
cmp rax, rcx
jl short loc_2ABBB
xor esi, esi
ucomisd xmm0, xmm0
setp sil
mov rdx, 0FFFFFFFF00000000h
mov rcx, 100000020000000h
lea r8, [rsp+38h+var_30]
mov rdi, rbx
call _ZN3fmt3v106detail15write_nonfiniteIcNS0_8appenderEEET0_S4_bNS0_12format_specsIT_EERKNS1_11float_specsE; fmt::v10::detail::write_nonfinite<char,fmt::v10::appender>(fmt::v10::appender,bool,fmt::v10::format_specs<char>,fmt::v10::detail::float_specs const&)
jmp short loc_2ABE0
loc_2ABBB:
call _ZN3fmt3v106detail9dragonbox10to_decimalIdEENS2_10decimal_fpIT_EES5_; fmt::v10::detail::dragonbox::to_decimal<double>(double)
lea rsi, [rsp+38h+var_18]; int
mov [rsi], rax
mov [rsi+8], edx
mov rcx, qword ptr [rsp+38h+var_30]
lea rdx, [rsp+38h+var_28]; int
mov rdi, rbx; int
xor r8d, r8d
call _ZN3fmt3v106detail14do_write_floatINS0_8appenderENS1_9dragonbox10decimal_fpIdEEcNS1_14digit_groupingIcEEEET_S9_RKT0_RKNS0_12format_specsIT1_EENS1_11float_specsENS1_10locale_refE; fmt::v10::detail::do_write_float<fmt::v10::appender,fmt::v10::detail::dragonbox::decimal_fp<double>,char,fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender,fmt::v10::detail::dragonbox::decimal_fp<double> const&,fmt::v10::format_specs<char> const&,fmt::v10::detail::float_specs,fmt::v10::detail::locale_ref)
loc_2ABE0:
add rsp, 30h
pop rbx
retn
|
_ZN3fmt3v106detail5writeIcNS0_8appenderEdTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],0x0
MOVQ RAX,XMM0
TEST RAX,RAX
JNS 0x0012ab69
MOV dword ptr [RSP + 0xc],0x100
PXOR XMM0,xmmword ptr [0x00183040]
LAB_0012ab69:
MOVUPS XMM1,xmmword ptr [0x001830a0]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOVQ RAX,XMM0
BTR RAX,0x3f
MOV RCX,0x7ff0000000000000
CMP RAX,RCX
JL 0x0012abbb
XOR ESI,ESI
UCOMISD XMM0,XMM0
SETP SIL
MOV RDX,-0x100000000
MOV RCX,0x100000020000000
LEA R8,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001293d3
JMP 0x0012abe0
LAB_0012abbb:
CALL 0x0012abe6
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RCX,qword ptr [RSP + 0x8]
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
XOR R8D,R8D
CALL 0x0012b049
LAB_0012abe0:
ADD RSP,0x30
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _ZN3fmt3v106detail5writeIcNS0_8appenderEdTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_
(double param_1,detail *param_2)
{
int8 local_30;
int4 local_28;
int4 uStack_24;
int4 uStack_20;
int4 uStack_1c;
int1 local_18 [12];
local_30 = 0;
if ((long)param_1 < 0) {
local_30 = 0x10000000000;
param_1 = (double)((ulong)param_1 ^ SUB168(_DAT_00183040,0));
}
local_28 = _DAT_001830a0;
uStack_24 = _UNK_001830a4;
uStack_20 = _UNK_001830a8;
uStack_1c = _UNK_001830ac;
if ((ulong)ABS(param_1) < 0x7ff0000000000000) {
local_18 = fmt::v10::detail::dragonbox::to_decimal<double>(param_1);
fmt::v10::detail::
do_write_float<fmt::v10::appender,fmt::v10::detail::dragonbox::decimal_fp<double>,char,fmt::v10::detail::digit_grouping<char>>
(param_2,local_18,&local_28,local_30,0);
}
else {
fmt::v10::detail::write_nonfinite<char,fmt::v10::appender>
(param_2,NAN(param_1),0xffffffff00000000,0x100000020000000,&local_30);
}
return;
}
|
||
11,555 |
Catch::TestSpec::matches(Catch::TestCaseInfo const&) const
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
|
bool TestSpec::matches( TestCaseInfo const& testCase ) const {
return std::any_of( m_filters.begin(), m_filters.end(), [&]( Filter const& f ){ return f.matches( testCase ); } );
}
|
O3
|
cpp
|
Catch::TestSpec::matches(Catch::TestCaseInfo const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq (%rdi), %rbx
movq 0x8(%rdi), %rbp
movq %rbp, %r12
subq %rbx, %r12
movq %r12, %r13
sarq $0x4, %r13
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r13
sarq $0x2, %r13
testq %r13, %r13
jle 0x5799c
incq %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
jne 0x579fa
leaq 0x30(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
jne 0x579fd
leaq 0x60(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
jne 0x579fd
leaq 0x90(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
jne 0x579fd
addq $0xc0, %rbx
decq %r13
addq $-0xc0, %r12
cmpq $0x1, %r13
jg 0x5792e
sarq $0x4, %r12
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r12
cmpq $0x1, %r12
je 0x579e9
cmpq $0x2, %r12
je 0x579d6
movq %rbp, %r15
cmpq $0x3, %r12
jne 0x579fd
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
jne 0x579fa
addq $0x30, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
jne 0x579fa
addq $0x30, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5776c
testb %al, %al
cmoveq %rbp, %rbx
movq %rbx, %r15
cmpq %rbp, %r15
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZNK5Catch8TestSpec7matchesERKNS_12TestCaseInfoE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov rbx, [rdi]
mov rbp, [rdi+8]
mov r12, rbp
sub r12, rbx
mov r13, r12
sar r13, 4
mov rax, 0AAAAAAAAAAAAAAABh
imul r13, rax
sar r13, 2
test r13, r13
jle short loc_5799C
inc r13
loc_5792E:
mov rdi, rbx; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
jnz loc_579FA
lea r15, [rbx+30h]
mov rdi, r15; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
jnz loc_579FD
lea r15, [rbx+60h]
mov rdi, r15; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
jnz loc_579FD
lea r15, [rbx+90h]
mov rdi, r15; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
jnz short loc_579FD
add rbx, 0C0h
dec r13
add r12, 0FFFFFFFFFFFFFF40h
cmp r13, 1
jg short loc_5792E
loc_5799C:
sar r12, 4
mov rax, 0AAAAAAAAAAAAAAABh
imul r12, rax
cmp r12, 1
jz short loc_579E9
cmp r12, 2
jz short loc_579D6
mov r15, rbp
cmp r12, 3
jnz short loc_579FD
mov rdi, rbx; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
jnz short loc_579FA
add rbx, 30h ; '0'
loc_579D6:
mov rdi, rbx; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
jnz short loc_579FA
add rbx, 30h ; '0'
loc_579E9:
mov rdi, rbx; this
mov rsi, r14; Catch::TestCaseInfo *
call _ZNK5Catch8TestSpec6Filter7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::Filter::matches(Catch::TestCaseInfo const&)
test al, al
cmovz rbx, rbp
loc_579FA:
mov r15, rbx
loc_579FD:
cmp r15, rbp
setnz al
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
bool Catch::TestSpec::matches(Catch::TestSpec *this, const Catch::TestCaseInfo *a2)
{
long long v2; // rbx
long long v3; // rbp
long long v4; // r12
long long v5; // r13
long long v6; // r13
long long v7; // r15
unsigned long long v8; // r12
v2 = *(_QWORD *)this;
v3 = *((_QWORD *)this + 1);
v4 = v3 - *(_QWORD *)this;
v5 = (long long)(0xAAAAAAAAAAAAAAABLL * (v4 >> 4)) >> 2;
if ( v5 > 0 )
{
v6 = v5 + 1;
while ( !(unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)v2, a2) )
{
v7 = v2 + 48;
if ( (unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)(v2 + 48), a2) )
return v7 != v3;
v7 = v2 + 96;
if ( (unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)(v2 + 96), a2) )
return v7 != v3;
v7 = v2 + 144;
if ( (unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)(v2 + 144), a2) )
return v7 != v3;
v2 += 192LL;
--v6;
v4 -= 192LL;
if ( v6 <= 1 )
goto LABEL_8;
}
goto LABEL_17;
}
LABEL_8:
v8 = 0xAAAAAAAAAAAAAAABLL * (v4 >> 4);
if ( v8 == 1 )
goto LABEL_15;
if ( v8 == 2 )
goto LABEL_13;
v7 = v3;
if ( v8 == 3 )
{
if ( (unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)v2, a2) )
goto LABEL_17;
v2 += 48LL;
LABEL_13:
if ( !(unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)v2, a2) )
{
v2 += 48LL;
LABEL_15:
if ( !(unsigned __int8)Catch::TestSpec::Filter::matches((Catch::TestSpec::Filter *)v2, a2) )
v2 = v3;
}
LABEL_17:
v7 = v2;
}
return v7 != v3;
}
|
matches:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,qword ptr [RDI]
MOV RBP,qword ptr [RDI + 0x8]
MOV R12,RBP
SUB R12,RBX
MOV R13,R12
SAR R13,0x4
MOV RAX,-0x5555555555555555
IMUL R13,RAX
SAR R13,0x2
TEST R13,R13
JLE 0x0015799c
INC R13
LAB_0015792e:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
JNZ 0x001579fa
LEA R15,[RBX + 0x30]
MOV RDI,R15
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
JNZ 0x001579fd
LEA R15,[RBX + 0x60]
MOV RDI,R15
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
JNZ 0x001579fd
LEA R15,[RBX + 0x90]
MOV RDI,R15
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
JNZ 0x001579fd
ADD RBX,0xc0
DEC R13
ADD R12,-0xc0
CMP R13,0x1
JG 0x0015792e
LAB_0015799c:
SAR R12,0x4
MOV RAX,-0x5555555555555555
IMUL R12,RAX
CMP R12,0x1
JZ 0x001579e9
CMP R12,0x2
JZ 0x001579d6
MOV R15,RBP
CMP R12,0x3
JNZ 0x001579fd
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
JNZ 0x001579fa
ADD RBX,0x30
LAB_001579d6:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
JNZ 0x001579fa
ADD RBX,0x30
LAB_001579e9:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015776c
TEST AL,AL
CMOVZ RBX,RBP
LAB_001579fa:
MOV R15,RBX
LAB_001579fd:
CMP R15,RBP
SETNZ AL
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Catch::TestSpec::matches(Catch::TestCaseInfo const&) const */
bool __thiscall Catch::TestSpec::matches(TestSpec *this,TestCaseInfo *param_1)
{
Filter *pFVar1;
char cVar2;
Filter *this_00;
long lVar3;
long lVar4;
Filter *pFVar5;
this_00 = *(Filter **)this;
pFVar1 = *(Filter **)(this + 8);
lVar3 = (long)pFVar1 - (long)this_00;
lVar4 = (lVar3 >> 4) * -0x5555555555555555 >> 2;
if (0 < lVar4) {
lVar4 = lVar4 + 1;
do {
cVar2 = Filter::matches(this_00,param_1);
pFVar5 = this_00;
if (cVar2 != '\0') goto LAB_001579fd;
cVar2 = Filter::matches(this_00 + 0x30,param_1);
pFVar5 = this_00 + 0x30;
if (cVar2 != '\0') goto LAB_001579fd;
cVar2 = Filter::matches(this_00 + 0x60,param_1);
pFVar5 = this_00 + 0x60;
if (cVar2 != '\0') goto LAB_001579fd;
cVar2 = Filter::matches(this_00 + 0x90,param_1);
pFVar5 = this_00 + 0x90;
if (cVar2 != '\0') goto LAB_001579fd;
this_00 = this_00 + 0xc0;
lVar4 = lVar4 + -1;
lVar3 = lVar3 + -0xc0;
} while (1 < lVar4);
}
lVar3 = (lVar3 >> 4) * -0x5555555555555555;
if (lVar3 != 1) {
if (lVar3 != 2) {
pFVar5 = pFVar1;
if ((lVar3 != 3) ||
(cVar2 = Filter::matches(this_00,param_1), pFVar5 = this_00, cVar2 != '\0'))
goto LAB_001579fd;
this_00 = this_00 + 0x30;
}
cVar2 = Filter::matches(this_00,param_1);
pFVar5 = this_00;
if (cVar2 != '\0') goto LAB_001579fd;
this_00 = this_00 + 0x30;
}
cVar2 = Filter::matches(this_00,param_1);
pFVar5 = this_00;
if (cVar2 == '\0') {
pFVar5 = pFVar1;
}
LAB_001579fd:
return pFVar5 != pFVar1;
}
|
|
11,556 |
my_sync_dir_by_file
|
eloqsql/mysys/my_sync.c
|
int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
char dir_name[FN_REFLEN];
size_t dir_name_length;
dirname_part(dir_name, file_name, &dir_name_length);
return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS);
#else
return 0;
#endif
}
|
O3
|
c
|
my_sync_dir_by_file:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rsi, %rbx
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq -0x220(%rbp), %r14
leaq -0x228(%rbp), %rdx
movq %r14, %rdi
callq 0xb47e5
andl $0xfffffdff, %ebx # imm = 0xFFFFFDFF
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc574d
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0xc581e
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2b280
nop
|
my_sync_dir_by_file:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 220h
mov rbx, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea r14, [rbp+var_220]
lea rdx, [rbp+var_228]
mov rdi, r14
call dirname_part
and ebx, 0FFFFFDFFh
mov rdi, r14
mov rsi, rbx
call my_sync_dir
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_C581E
add rsp, 220h
pop rbx
pop r14
pop rbp
retn
loc_C581E:
call ___stack_chk_fail
|
long long my_sync_dir_by_file(_BYTE *a1, int a2)
{
long long v3; // [rsp+8h] [rbp-228h] BYREF
_BYTE v4[520]; // [rsp+10h] [rbp-220h] BYREF
unsigned long long v5; // [rsp+218h] [rbp-18h]
v5 = __readfsqword(0x28u);
dirname_part((long long)v4, a1, &v3);
return my_sync_dir(v4, a2 & 0xFFFFFDFF);
}
|
my_sync_dir_by_file:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x220
MOV RBX,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA R14,[RBP + -0x220]
LEA RDX,[RBP + -0x228]
MOV RDI,R14
CALL 0x001b47e5
AND EBX,0xfffffdff
MOV RDI,R14
MOV RSI,RBX
CALL 0x001c574d
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x001c581e
ADD RSP,0x220
POP RBX
POP R14
POP RBP
RET
LAB_001c581e:
CALL 0x0012b280
|
void my_sync_dir_by_file(int8 param_1,uint param_2)
{
long in_FS_OFFSET;
int1 local_230 [8];
int1 local_228 [520];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
dirname_part(local_228,param_1,local_230);
my_sync_dir(local_228,param_2 & 0xfffffdff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
11,557 |
ma_store_length
|
eloqsql/storage/maria/ma_blockrec.c
|
uchar *ma_store_length(uchar *to, ulong nr)
{
if (nr < 251)
{
*to=(uchar) nr;
return to+1;
}
if (nr < 65536)
{
if (nr <= 255)
{
to[0]= (uchar) 251;
to[1]= (uchar) nr;
return to+2;
}
to[0]= (uchar) 252;
int2store(to+1, nr);
return to+3;
}
if (nr < 16777216)
{
*to++= (uchar) 253;
int3store(to, nr);
return to+3;
}
*to++= (uchar) 254;
int4store(to, nr);
return to+4;
}
|
O3
|
c
|
ma_store_length:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rdi, %rax
cmpq $0xfa, %rsi
ja 0x4d241
movb %cl, (%rax)
movl $0x1, %ecx
addq %rcx, %rax
popq %rbp
retq
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x4d260
cmpq $0xff, %rcx
ja 0x4d27f
movb $-0x5, (%rax)
movb %cl, 0x1(%rax)
movl $0x2, %ecx
jmp 0x4d23c
cmpq $0xffffff, %rcx # imm = 0xFFFFFF
ja 0x4d28d
movb $-0x3, (%rax)
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
shrl $0x10, %ecx
movb %cl, 0x3(%rax)
movl $0x4, %ecx
jmp 0x4d23c
movb $-0x4, (%rax)
movw %cx, 0x1(%rax)
movl $0x3, %ecx
jmp 0x4d23c
movb $-0x2, (%rax)
movl %ecx, 0x1(%rax)
movl $0x5, %ecx
jmp 0x4d23c
|
ma_store_length:
push rbp
mov rbp, rsp
mov rcx, rsi
mov rax, rdi
cmp rsi, 0FAh
ja short loc_4D241
mov [rax], cl
mov ecx, 1
loc_4D23C:
add rax, rcx
pop rbp
retn
loc_4D241:
cmp rcx, 0FFFFh
ja short loc_4D260
cmp rcx, 0FFh
ja short loc_4D27F
mov byte ptr [rax], 0FBh
mov [rax+1], cl
mov ecx, 2
jmp short loc_4D23C
loc_4D260:
cmp rcx, 0FFFFFFh
ja short loc_4D28D
mov byte ptr [rax], 0FDh
mov [rax+1], cl
mov [rax+2], ch
shr ecx, 10h
mov [rax+3], cl
mov ecx, 4
jmp short loc_4D23C
loc_4D27F:
mov byte ptr [rax], 0FCh
mov [rax+1], cx
mov ecx, 3
jmp short loc_4D23C
loc_4D28D:
mov byte ptr [rax], 0FEh
mov [rax+1], ecx
mov ecx, 5
jmp short loc_4D23C
|
long long ma_store_length(long long a1, unsigned long long a2)
{
long long v2; // rcx
if ( a2 > 0xFA )
{
if ( a2 > 0xFFFF )
{
if ( a2 > 0xFFFFFF )
{
*(_BYTE *)a1 = -2;
*(_DWORD *)(a1 + 1) = a2;
v2 = 5LL;
}
else
{
*(_BYTE *)a1 = -3;
*(_WORD *)(a1 + 1) = a2;
*(_BYTE *)(a1 + 3) = BYTE2(a2);
v2 = 4LL;
}
}
else if ( a2 > 0xFF )
{
*(_BYTE *)a1 = -4;
*(_WORD *)(a1 + 1) = a2;
v2 = 3LL;
}
else
{
*(_BYTE *)a1 = -5;
*(_BYTE *)(a1 + 1) = a2;
v2 = 2LL;
}
}
else
{
*(_BYTE *)a1 = a2;
v2 = 1LL;
}
return v2 + a1;
}
|
ma_store_length:
PUSH RBP
MOV RBP,RSP
MOV RCX,RSI
MOV RAX,RDI
CMP RSI,0xfa
JA 0x0014d241
MOV byte ptr [RAX],CL
MOV ECX,0x1
LAB_0014d23c:
ADD RAX,RCX
POP RBP
RET
LAB_0014d241:
CMP RCX,0xffff
JA 0x0014d260
CMP RCX,0xff
JA 0x0014d27f
MOV byte ptr [RAX],0xfb
MOV byte ptr [RAX + 0x1],CL
MOV ECX,0x2
JMP 0x0014d23c
LAB_0014d260:
CMP RCX,0xffffff
JA 0x0014d28d
MOV byte ptr [RAX],0xfd
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
SHR ECX,0x10
MOV byte ptr [RAX + 0x3],CL
MOV ECX,0x4
JMP 0x0014d23c
LAB_0014d27f:
MOV byte ptr [RAX],0xfc
MOV word ptr [RAX + 0x1],CX
MOV ECX,0x3
JMP 0x0014d23c
LAB_0014d28d:
MOV byte ptr [RAX],0xfe
MOV dword ptr [RAX + 0x1],ECX
MOV ECX,0x5
JMP 0x0014d23c
|
int1 * ma_store_length(int1 *param_1,ulong param_2)
{
int1 uVar1;
long lVar2;
uVar1 = (int1)param_2;
if (param_2 < 0xfb) {
*param_1 = uVar1;
lVar2 = 1;
}
else if (param_2 < 0x10000) {
if (param_2 < 0x100) {
*param_1 = 0xfb;
param_1[1] = uVar1;
lVar2 = 2;
}
else {
*param_1 = 0xfc;
*(short *)(param_1 + 1) = (short)param_2;
lVar2 = 3;
}
}
else if (param_2 < 0x1000000) {
*param_1 = 0xfd;
param_1[1] = uVar1;
param_1[2] = (char)(param_2 >> 8);
param_1[3] = (char)(param_2 >> 0x10);
lVar2 = 4;
}
else {
*param_1 = 0xfe;
*(int *)(param_1 + 1) = (int)param_2;
lVar2 = 5;
}
return param_1 + lVar2;
}
|
|
11,558 |
ma_multi_malloc
|
eloqsql/libmariadb/libmariadb/ma_alloc.c
|
void *ma_multi_malloc(myf myFlags, ...)
{
va_list args;
char **ptr,*start,*res;
size_t tot_length,length;
va_start(args,myFlags);
tot_length=0;
while ((ptr=va_arg(args, char **)))
{
length=va_arg(args, size_t);
tot_length+=ALIGN_SIZE(length);
}
va_end(args);
if (!(start=(char *)malloc(tot_length)))
return 0;
va_start(args,myFlags);
res=start;
while ((ptr=va_arg(args, char **)))
{
*ptr=res;
length=va_arg(args,size_t);
res+=ALIGN_SIZE(length);
}
va_end(args);
return start;
}
|
O0
|
c
|
ma_multi_malloc:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
testb %al, %al
je 0x24f41
movaps %xmm0, -0xe0(%rbp)
movaps %xmm1, -0xd0(%rbp)
movaps %xmm2, -0xc0(%rbp)
movaps %xmm3, -0xb0(%rbp)
movaps %xmm4, -0xa0(%rbp)
movaps %xmm5, -0x90(%rbp)
movaps %xmm6, -0x80(%rbp)
movaps %xmm7, -0x70(%rbp)
movq %r9, -0xe8(%rbp)
movq %r8, -0xf0(%rbp)
movq %rcx, -0xf8(%rbp)
movq %rdx, -0x100(%rbp)
movq %rsi, -0x108(%rbp)
movl %edi, -0xc(%rbp)
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x8, (%rax)
movq $0x0, -0x50(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x114(%rbp)
cmpl $0x28, %eax
ja 0x24fce
movq -0x120(%rbp), %rcx
movl -0x114(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x128(%rbp)
jmp 0x24feb
movq -0x120(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x25086
leaq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x12c(%rbp)
cmpl $0x28, %eax
ja 0x2503e
movq -0x138(%rbp), %rcx
movl -0x12c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x140(%rbp)
jmp 0x2505b
movq -0x138(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x24f93
leaq -0x30(%rbp), %rax
movq -0x50(%rbp), %rdi
callq 0x135b0
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x250aa
movq $0x0, -0x8(%rbp)
jmp 0x251e0
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x8, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x150(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x144(%rbp)
cmpl $0x28, %eax
ja 0x25111
movq -0x150(%rbp), %rcx
movl -0x144(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x158(%rbp)
jmp 0x2512e
movq -0x150(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x251d4
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
leaq -0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x15c(%rbp)
cmpl $0x28, %eax
ja 0x2518c
movq -0x168(%rbp), %rcx
movl -0x15c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x170(%rbp)
jmp 0x251a9
movq -0x168(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x250d6
leaq -0x30(%rbp), %rax
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
nopl (%rax)
|
ma_multi_malloc:
push rbp
mov rbp, rsp
sub rsp, 170h
test al, al
jz short loc_24F41
movaps [rbp+var_E0], xmm0
movaps [rbp+var_D0], xmm1
movaps [rbp+var_C0], xmm2
movaps [rbp+var_B0], xmm3
movaps [rbp+var_A0], xmm4
movaps [rbp+var_90], xmm5
movaps [rbp+var_80], xmm6
movaps [rbp+var_70], xmm7
loc_24F41:
mov [rbp+var_E8], r9
mov [rbp+var_F0], r8
mov [rbp+var_F8], rcx
mov [rbp+var_100], rdx
mov [rbp+var_108], rsi
mov [rbp+var_C], edi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 8
mov [rbp+var_50], 0
loc_24F93:
lea rax, [rbp+var_30]
mov [rbp+var_120], rax
mov eax, [rbp+var_30]
mov [rbp+var_114], eax
cmp eax, 28h ; '('
ja short loc_24FCE
mov rcx, [rbp+var_120]
mov edx, [rbp+var_114]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_128], rax
jmp short loc_24FEB
loc_24FCE:
mov rcx, [rbp+var_120]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_128], rax
loc_24FEB:
mov rax, [rbp+var_128]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_25086
lea rax, [rbp+var_30]
mov [rbp+var_138], rax
mov eax, [rbp+var_30]
mov [rbp+var_12C], eax
cmp eax, 28h ; '('
ja short loc_2503E
mov rcx, [rbp+var_138]
mov edx, [rbp+var_12C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_140], rax
jmp short loc_2505B
loc_2503E:
mov rcx, [rbp+var_138]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_140], rax
loc_2505B:
mov rax, [rbp+var_140]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_50]
mov [rbp+var_50], rax
jmp loc_24F93
loc_25086:
lea rax, [rbp+var_30]
mov rdi, [rbp+var_50]
call _malloc
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_250AA
mov [rbp+var_8], 0
jmp loc_251E0
loc_250AA:
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 8
mov rax, [rbp+var_40]
mov [rbp+var_48], rax
loc_250D6:
lea rax, [rbp+var_30]
mov [rbp+var_150], rax
mov eax, [rbp+var_30]
mov [rbp+var_144], eax
cmp eax, 28h ; '('
ja short loc_25111
mov rcx, [rbp+var_150]
mov edx, [rbp+var_144]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_158], rax
jmp short loc_2512E
loc_25111:
mov rcx, [rbp+var_150]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_158], rax
loc_2512E:
mov rax, [rbp+var_158]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_251D4
mov rcx, [rbp+var_48]
mov rax, [rbp+var_38]
mov [rax], rcx
lea rax, [rbp+var_30]
mov [rbp+var_168], rax
mov eax, [rbp+var_30]
mov [rbp+var_15C], eax
cmp eax, 28h ; '('
ja short loc_2518C
mov rcx, [rbp+var_168]
mov edx, [rbp+var_15C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_170], rax
jmp short loc_251A9
loc_2518C:
mov rcx, [rbp+var_168]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_170], rax
loc_251A9:
mov rax, [rbp+var_170]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_48]
mov [rbp+var_48], rax
jmp loc_250D6
loc_251D4:
lea rax, [rbp+var_30]
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_251E0:
mov rax, [rbp+var_8]
add rsp, 170h
pop rbp
retn
|
long long ma_multi_malloc(int a1, ...)
{
_QWORD *overflow_arg_area; // rax
_QWORD *v2; // rax
_QWORD *v3; // rax
_QWORD *v4; // rax
long long i; // [rsp+120h] [rbp-50h]
long long j; // [rsp+128h] [rbp-48h]
long long v8; // [rsp+130h] [rbp-40h]
va_list va; // [rsp+140h] [rbp-30h] BYREF
int v10; // [rsp+164h] [rbp-Ch]
va_start(va, a1);
v10 = a1;
for ( i = 0LL; ; i += (*v2 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( va[0].gp_offset > 0x28 )
{
overflow_arg_area = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
overflow_arg_area = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
if ( !*overflow_arg_area )
break;
if ( va[0].gp_offset > 0x28 )
{
v2 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v2 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
}
v8 = malloc(i);
if ( !v8 )
return 0LL;
va_end(va);
va_start(va, a1);
for ( j = v8; ; j += (*v4 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( va[0].gp_offset > 0x28 )
{
v3 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v3 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
if ( !*v3 )
break;
*(_QWORD *)*v3 = j;
if ( va[0].gp_offset > 0x28 )
{
v4 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
}
return v8;
}
|
ma_multi_malloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
TEST AL,AL
JZ 0x00124f41
MOVAPS xmmword ptr [RBP + -0xe0],XMM0
MOVAPS xmmword ptr [RBP + -0xd0],XMM1
MOVAPS xmmword ptr [RBP + -0xc0],XMM2
MOVAPS xmmword ptr [RBP + -0xb0],XMM3
MOVAPS xmmword ptr [RBP + -0xa0],XMM4
MOVAPS xmmword ptr [RBP + -0x90],XMM5
MOVAPS xmmword ptr [RBP + -0x80],XMM6
MOVAPS xmmword ptr [RBP + -0x70],XMM7
LAB_00124f41:
MOV qword ptr [RBP + -0xe8],R9
MOV qword ptr [RBP + -0xf0],R8
MOV qword ptr [RBP + -0xf8],RCX
MOV qword ptr [RBP + -0x100],RDX
MOV qword ptr [RBP + -0x108],RSI
MOV dword ptr [RBP + -0xc],EDI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x8
MOV qword ptr [RBP + -0x50],0x0
LAB_00124f93:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x120],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x114],EAX
CMP EAX,0x28
JA 0x00124fce
MOV RCX,qword ptr [RBP + -0x120]
MOV EDX,dword ptr [RBP + -0x114]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x128],RAX
JMP 0x00124feb
LAB_00124fce:
MOV RCX,qword ptr [RBP + -0x120]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x128],RAX
LAB_00124feb:
MOV RAX,qword ptr [RBP + -0x128]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x00125086
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x138],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x12c],EAX
CMP EAX,0x28
JA 0x0012503e
MOV RCX,qword ptr [RBP + -0x138]
MOV EDX,dword ptr [RBP + -0x12c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x140],RAX
JMP 0x0012505b
LAB_0012503e:
MOV RCX,qword ptr [RBP + -0x138]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x140],RAX
LAB_0012505b:
MOV RAX,qword ptr [RBP + -0x140]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00124f93
LAB_00125086:
LEA RAX,[RBP + -0x30]
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001135b0
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x001250aa
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001251e0
LAB_001250aa:
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x8
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x48],RAX
LAB_001250d6:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x150],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x144],EAX
CMP EAX,0x28
JA 0x00125111
MOV RCX,qword ptr [RBP + -0x150]
MOV EDX,dword ptr [RBP + -0x144]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x158],RAX
JMP 0x0012512e
LAB_00125111:
MOV RCX,qword ptr [RBP + -0x150]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x158],RAX
LAB_0012512e:
MOV RAX,qword ptr [RBP + -0x158]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001251d4
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x168],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x15c],EAX
CMP EAX,0x28
JA 0x0012518c
MOV RCX,qword ptr [RBP + -0x168]
MOV EDX,dword ptr [RBP + -0x15c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x170],RAX
JMP 0x001251a9
LAB_0012518c:
MOV RCX,qword ptr [RBP + -0x168]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x170],RAX
LAB_001251a9:
MOV RAX,qword ptr [RBP + -0x170]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001250d6
LAB_001251d4:
LEA RAX,[RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001251e0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x170
POP RBP
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void * ma_multi_malloc(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int4 param_9,int8 param_10,int8 param_11,int8 param_12
,int8 param_13,int8 param_14)
{
char in_AL;
long *local_178;
long *local_160;
long *local_148;
long *local_130;
long local_118 [4];
int8 local_f8;
int8 local_f0;
int8 local_e8;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
long local_60;
size_t local_58;
void *local_50;
long local_40;
uint local_38;
int4 local_34;
long *local_30;
long *local_28;
int4 local_14;
void *local_10;
if (in_AL != '\0') {
local_e8 = param_1;
local_d8 = param_2;
local_c8 = param_3;
local_b8 = param_4;
local_a8 = param_5;
local_98 = param_6;
local_88 = param_7;
local_78 = param_8;
}
local_28 = local_118;
local_30 = (long *)&stack0x00000008;
local_34 = 0x30;
local_38 = 8;
local_58 = 0;
while( true ) {
if (local_38 < 0x29) {
local_130 = (long *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_130 = local_30;
local_30 = local_30 + 1;
}
local_40 = *local_130;
if (local_40 == 0) break;
if (local_38 < 0x29) {
local_148 = (long *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_148 = local_30;
local_30 = local_30 + 1;
}
local_60 = *local_148;
local_58 = (local_60 + 7U & 0xfffffffffffffff8) + local_58;
}
local_118[1] = param_10;
local_118[2] = param_11;
local_118[3] = param_12;
local_f8 = param_13;
local_f0 = param_14;
local_14 = param_9;
local_10 = malloc(local_58);
if (local_10 == (void *)0x0) {
local_10 = (void *)0x0;
}
else {
local_30 = (long *)&stack0x00000008;
local_38 = 8;
local_50 = local_10;
while( true ) {
if (local_38 < 0x29) {
local_160 = (long *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_160 = local_30;
local_30 = local_30 + 1;
}
if ((int8 *)*local_160 == (int8 *)0x0) break;
*(int8 *)*local_160 = local_50;
if (local_38 < 0x29) {
local_178 = (long *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_178 = local_30;
local_30 = local_30 + 1;
}
local_50 = (void *)((*local_178 + 7U & 0xfffffffffffffff8) + (long)local_50);
}
}
return local_10;
}
|
|
11,559 |
ma_multi_malloc
|
eloqsql/libmariadb/libmariadb/ma_alloc.c
|
void *ma_multi_malloc(myf myFlags, ...)
{
va_list args;
char **ptr,*start,*res;
size_t tot_length,length;
va_start(args,myFlags);
tot_length=0;
while ((ptr=va_arg(args, char **)))
{
length=va_arg(args, size_t);
tot_length+=ALIGN_SIZE(length);
}
va_end(args);
if (!(start=(char *)malloc(tot_length)))
return 0;
va_start(args,myFlags);
res=start;
while ((ptr=va_arg(args, char **)))
{
*ptr=res;
length=va_arg(args,size_t);
res+=ALIGN_SIZE(length);
}
va_end(args);
return start;
}
|
O3
|
c
|
ma_multi_malloc:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
leaq -0xe0(%rbp), %rbx
movq %rsi, 0x8(%rbx)
movq %rdx, 0x10(%rbx)
movq %rcx, 0x18(%rbx)
movq %r8, 0x20(%rbx)
movq %r9, 0x28(%rbx)
testb %al, %al
je 0x1dfa2
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %rbx, -0x20(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movabsq $0x3000000008, %r14 # imm = 0x3000000008
movq %r14, -0x30(%rbp)
movl $0x8, %eax
xorl %edi, %edi
cmpl $0x28, %eax
ja 0x1dfd8
movq %rcx, %rdx
movl %eax, %ecx
addq %rbx, %rcx
addl $0x8, %eax
movl %eax, -0x30(%rbp)
jmp 0x1dfe0
leaq 0x8(%rcx), %rdx
movq %rdx, -0x28(%rbp)
cmpq $0x0, (%rcx)
je 0x1e013
cmpl $0x28, %eax
ja 0x1dffb
movq %rdx, %rcx
movl %eax, %edx
addq %rbx, %rdx
addl $0x8, %eax
movl %eax, -0x30(%rbp)
jmp 0x1e003
leaq 0x8(%rdx), %rcx
movq %rcx, -0x28(%rbp)
movq (%rdx), %rdx
addq $0x7, %rdx
andq $-0x8, %rdx
addq %rdx, %rdi
jmp 0x1dfc3
callq 0x13600
testq %rax, %rax
je 0x1e093
movq %rbx, -0x20(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq %r14, -0x30(%rbp)
movl $0x8, %edx
movq %rax, %rcx
cmpl $0x28, %edx
ja 0x1e048
movl %edx, %esi
addq -0x20(%rbp), %rsi
addl $0x8, %edx
movl %edx, -0x30(%rbp)
jmp 0x1e054
movq -0x28(%rbp), %rsi
leaq 0x8(%rsi), %rdx
movq %rdx, -0x28(%rbp)
movq (%rsi), %rdx
testq %rdx, %rdx
je 0x1e093
movq %rcx, (%rdx)
movl -0x30(%rbp), %edx
cmpq $0x28, %rdx
ja 0x1e077
movq %rdx, %rsi
addq -0x20(%rbp), %rsi
addl $0x8, %edx
movl %edx, -0x30(%rbp)
jmp 0x1e083
movq -0x28(%rbp), %rsi
leaq 0x8(%rsi), %rdi
movq %rdi, -0x28(%rbp)
movq (%rsi), %rsi
addq $0x7, %rsi
andq $-0x8, %rsi
addq %rsi, %rcx
jmp 0x1e035
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
|
ma_multi_malloc:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 0D0h
lea rbx, [rbp+var_E0]
mov [rbx+8], rsi
mov [rbx+10h], rdx
mov [rbx+18h], rcx
mov [rbx+20h], r8
mov [rbx+28h], r9
test al, al
jz short loc_1DFA2
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_1DFA2:
mov [rbp+var_20], rbx
lea rcx, [rbp+arg_0]
mov [rbp+var_28], rcx
mov r14, 3000000008h
mov [rbp+var_30], r14
mov eax, 8
xor edi, edi
loc_1DFC3:
cmp eax, 28h ; '('
ja short loc_1DFD8
mov rdx, rcx
mov ecx, eax
add rcx, rbx
add eax, 8
mov dword ptr [rbp+var_30], eax
jmp short loc_1DFE0
loc_1DFD8:
lea rdx, [rcx+8]
mov [rbp+var_28], rdx
loc_1DFE0:
cmp qword ptr [rcx], 0
jz short loc_1E013
cmp eax, 28h ; '('
ja short loc_1DFFB
mov rcx, rdx
mov edx, eax
add rdx, rbx
add eax, 8
mov dword ptr [rbp+var_30], eax
jmp short loc_1E003
loc_1DFFB:
lea rcx, [rdx+8]
mov [rbp+var_28], rcx
loc_1E003:
mov rdx, [rdx]
add rdx, 7
and rdx, 0FFFFFFFFFFFFFFF8h
add rdi, rdx
jmp short loc_1DFC3
loc_1E013:
call _malloc
test rax, rax
jz short loc_1E093
mov [rbp+var_20], rbx
lea rcx, [rbp+arg_0]
mov [rbp+var_28], rcx
mov [rbp+var_30], r14
mov edx, 8
mov rcx, rax
loc_1E035:
cmp edx, 28h ; '('
ja short loc_1E048
mov esi, edx
add rsi, [rbp+var_20]
add edx, 8
mov dword ptr [rbp+var_30], edx
jmp short loc_1E054
loc_1E048:
mov rsi, [rbp+var_28]
lea rdx, [rsi+8]
mov [rbp+var_28], rdx
loc_1E054:
mov rdx, [rsi]
test rdx, rdx
jz short loc_1E093
mov [rdx], rcx
mov edx, dword ptr [rbp+var_30]
cmp rdx, 28h ; '('
ja short loc_1E077
mov rsi, rdx
add rsi, [rbp+var_20]
add edx, 8
mov dword ptr [rbp+var_30], edx
jmp short loc_1E083
loc_1E077:
mov rsi, [rbp+var_28]
lea rdi, [rsi+8]
mov [rbp+var_28], rdi
loc_1E083:
mov rsi, [rsi]
add rsi, 7
and rsi, 0FFFFFFFFFFFFFFF8h
add rcx, rsi
jmp short loc_1E035
loc_1E093:
add rsp, 0D0h
pop rbx
pop r14
pop rbp
retn
|
long long ma_multi_malloc(
_DWORD a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char *v15; // rcx
unsigned int v16; // eax
long long i; // rdi
char *v18; // rdx
long long result; // rax
unsigned int v20; // edx
long long j; // rcx
char *v22; // rsi
char *v23; // rsi
_BYTE v24[8]; // [rsp+0h] [rbp-E0h] BYREF
long long v25; // [rsp+8h] [rbp-D8h]
long long v26; // [rsp+10h] [rbp-D0h]
long long v27; // [rsp+18h] [rbp-C8h]
long long v28; // [rsp+20h] [rbp-C0h]
long long v29; // [rsp+28h] [rbp-B8h]
__m128 v30; // [rsp+30h] [rbp-B0h]
__m128 v31; // [rsp+40h] [rbp-A0h]
__m128 v32; // [rsp+50h] [rbp-90h]
__m128 v33; // [rsp+60h] [rbp-80h]
__m128 v34; // [rsp+70h] [rbp-70h]
__m128 v35; // [rsp+80h] [rbp-60h]
__m128 v36; // [rsp+90h] [rbp-50h]
__m128 v37; // [rsp+A0h] [rbp-40h]
long long v38; // [rsp+B0h] [rbp-30h]
char *v39; // [rsp+B8h] [rbp-28h]
_BYTE *v40; // [rsp+C0h] [rbp-20h]
v30 = a7;
v31 = a8;
v32 = a9;
v33 = a10;
v34 = a11;
v35 = a12;
v36 = a13;
v37 = a14;
v25 = a2;
v26 = a3;
v27 = a4;
v28 = a5;
v29 = a6;
v40 = v24;
v15 = &a15;
v39 = &a15;
v38 = 0x3000000008LL;
v16 = 8;
for ( i = 0LL; ; i += (*(_QWORD *)v18 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( v16 > 0x28 )
{
v18 = v15 + 8;
v39 = v15 + 8;
}
else
{
v18 = v15;
v15 = &v24[v16];
v16 += 8;
LODWORD(v38) = v16;
}
if ( !*(_QWORD *)v15 )
break;
if ( v16 > 0x28 )
{
v15 = v18 + 8;
v39 = v18 + 8;
}
else
{
v15 = v18;
v18 = &v24[v16];
v16 += 8;
LODWORD(v38) = v16;
}
}
result = malloc(i);
if ( result )
{
v40 = v24;
v39 = &a15;
v38 = 0x3000000008LL;
v20 = 8;
for ( j = result; ; j += (*(_QWORD *)v23 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( v20 > 0x28 )
{
v22 = v39;
v39 += 8;
}
else
{
v22 = &v40[v20];
LODWORD(v38) = v20 + 8;
}
if ( !*(_QWORD *)v22 )
break;
**(_QWORD **)v22 = j;
v20 = v38;
if ( (unsigned int)v38 > 0x28uLL )
{
v23 = v39;
v39 += 8;
}
else
{
v23 = &v40[(unsigned int)v38];
v20 = v38 + 8;
LODWORD(v38) = v38 + 8;
}
}
}
return result;
}
|
ma_multi_malloc:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0xd0
LEA RBX,[RBP + -0xe0]
MOV qword ptr [RBX + 0x8],RSI
MOV qword ptr [RBX + 0x10],RDX
MOV qword ptr [RBX + 0x18],RCX
MOV qword ptr [RBX + 0x20],R8
MOV qword ptr [RBX + 0x28],R9
TEST AL,AL
JZ 0x0011dfa2
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_0011dfa2:
MOV qword ptr [RBP + -0x20],RBX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RCX
MOV R14,0x3000000008
MOV qword ptr [RBP + -0x30],R14
MOV EAX,0x8
XOR EDI,EDI
LAB_0011dfc3:
CMP EAX,0x28
JA 0x0011dfd8
MOV RDX,RCX
MOV ECX,EAX
ADD RCX,RBX
ADD EAX,0x8
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0011dfe0
LAB_0011dfd8:
LEA RDX,[RCX + 0x8]
MOV qword ptr [RBP + -0x28],RDX
LAB_0011dfe0:
CMP qword ptr [RCX],0x0
JZ 0x0011e013
CMP EAX,0x28
JA 0x0011dffb
MOV RCX,RDX
MOV EDX,EAX
ADD RDX,RBX
ADD EAX,0x8
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0011e003
LAB_0011dffb:
LEA RCX,[RDX + 0x8]
MOV qword ptr [RBP + -0x28],RCX
LAB_0011e003:
MOV RDX,qword ptr [RDX]
ADD RDX,0x7
AND RDX,-0x8
ADD RDI,RDX
JMP 0x0011dfc3
LAB_0011e013:
CALL 0x00113600
TEST RAX,RAX
JZ 0x0011e093
MOV qword ptr [RBP + -0x20],RBX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R14
MOV EDX,0x8
MOV RCX,RAX
LAB_0011e035:
CMP EDX,0x28
JA 0x0011e048
MOV ESI,EDX
ADD RSI,qword ptr [RBP + -0x20]
ADD EDX,0x8
MOV dword ptr [RBP + -0x30],EDX
JMP 0x0011e054
LAB_0011e048:
MOV RSI,qword ptr [RBP + -0x28]
LEA RDX,[RSI + 0x8]
MOV qword ptr [RBP + -0x28],RDX
LAB_0011e054:
MOV RDX,qword ptr [RSI]
TEST RDX,RDX
JZ 0x0011e093
MOV qword ptr [RDX],RCX
MOV EDX,dword ptr [RBP + -0x30]
CMP RDX,0x28
JA 0x0011e077
MOV RSI,RDX
ADD RSI,qword ptr [RBP + -0x20]
ADD EDX,0x8
MOV dword ptr [RBP + -0x30],EDX
JMP 0x0011e083
LAB_0011e077:
MOV RSI,qword ptr [RBP + -0x28]
LEA RDI,[RSI + 0x8]
MOV qword ptr [RBP + -0x28],RDI
LAB_0011e083:
MOV RSI,qword ptr [RSI]
ADD RSI,0x7
AND RSI,-0x8
ADD RCX,RSI
JMP 0x0011e035
LAB_0011e093:
ADD RSP,0xd0
POP RBX
POP R14
POP RBP
RET
|
void ma_multi_malloc(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
uint uVar1;
void *pvVar2;
long *plVar3;
long *plVar4;
ulong uVar5;
long *plVar6;
size_t __size;
long local_e8 [4];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
uint local_38;
int4 uStack_34;
long *local_30;
long *local_28;
local_e8[1] = param_10;
local_e8[2] = param_11;
local_e8[3] = param_12;
local_c8 = param_13;
local_c0 = param_14;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
plVar6 = (long *)&stack0x00000008;
local_30 = plVar6;
local_38 = 8;
uStack_34 = 0x30;
uVar1 = 8;
__size = 0;
while( true ) {
if (uVar1 < 0x29) {
uVar5 = (ulong)uVar1;
uVar1 = uVar1 + 8;
local_38 = uVar1;
plVar3 = (long *)((long)local_e8 + uVar5);
plVar4 = plVar6;
}
else {
plVar4 = plVar6 + 1;
local_30 = plVar4;
plVar3 = plVar6;
}
if (*plVar3 == 0) break;
if (uVar1 < 0x29) {
uVar5 = (ulong)uVar1;
uVar1 = uVar1 + 8;
local_38 = uVar1;
plVar6 = plVar4;
plVar4 = (long *)((long)local_e8 + uVar5);
}
else {
plVar6 = plVar4 + 1;
local_30 = plVar6;
}
__size = __size + (*plVar4 + 7U & 0xfffffffffffffff8);
}
pvVar2 = malloc(__size);
if (pvVar2 != (void *)0x0) {
local_30 = (long *)&stack0x00000008;
uVar1 = 8;
uVar5 = 8;
while( true ) {
if ((uint)uVar5 < 0x29) {
uVar1 = (uint)uVar5 + 8;
plVar6 = (long *)((long)local_e8 + uVar5);
}
else {
plVar6 = local_30;
local_30 = local_30 + 1;
}
if ((int8 *)*plVar6 == (int8 *)0x0) break;
*(int8 *)*plVar6 = pvVar2;
uVar5 = (ulong)uVar1;
if (uVar5 < 0x29) {
plVar6 = (long *)((long)local_e8 + uVar5);
uVar1 = uVar1 + 8;
uVar5 = (ulong)uVar1;
}
else {
plVar6 = local_30;
local_30 = local_30 + 1;
}
pvVar2 = (void *)((long)pvVar2 + (*plVar6 + 7U & 0xfffffffffffffff8));
}
}
return;
}
|
|
11,560 |
my_thread_global_reinit
|
eloqsql/mysys/my_thr_init.c
|
void my_thread_global_reinit(void)
{
struct st_my_thread_var *tmp;
DBUG_ASSERT(my_thread_global_init_done);
#ifdef HAVE_PSI_INTERFACE
my_init_mysys_psi_keys();
#endif
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
tmp= my_thread_var;
DBUG_ASSERT(tmp);
my_thread_destory_thr_mutex(tmp);
my_thread_init_thr_mutex(tmp);
}
|
O0
|
c
|
my_thread_global_reinit:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
jmp 0x5e8ca
callq 0x5d2a0
callq 0x5e770
callq 0x5e910
callq 0x5e820
callq 0x5e9e0
callq 0x5ea40
movq %rax, -0x8(%rbp)
jmp 0x5e8ee
movq -0x8(%rbp), %rdi
callq 0x5ea60
movq -0x8(%rbp), %rdi
callq 0x5ea90
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_thread_global_reinit:
push rbp
mov rbp, rsp
sub rsp, 10h
jmp short $+2
loc_5E8CA:
call my_init_mysys_psi_keys
call my_thread_destroy_common_mutex
call my_thread_init_common_mutex
call my_thread_destroy_internal_mutex
call my_thread_init_internal_mutex
call _my_thread_var
mov [rbp+var_8], rax
jmp short $+2
loc_5E8EE:
mov rdi, [rbp+var_8]
call my_thread_destory_thr_mutex
mov rdi, [rbp+var_8]
call my_thread_init_thr_mutex
add rsp, 10h
pop rbp
retn
|
long long my_thread_global_reinit()
{
long long v1; // [rsp+8h] [rbp-8h]
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
v1 = my_thread_var();
my_thread_destory_thr_mutex(v1);
return my_thread_init_thr_mutex(v1);
}
|
my_thread_global_reinit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
JMP 0x0015e8ca
LAB_0015e8ca:
CALL 0x0015d2a0
CALL 0x0015e770
CALL 0x0015e910
CALL 0x0015e820
CALL 0x0015e9e0
CALL 0x0015ea40
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015e8ee
LAB_0015e8ee:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015ea60
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015ea90
ADD RSP,0x10
POP RBP
RET
|
void my_thread_global_reinit(void)
{
int8 uVar1;
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
uVar1 = _my_thread_var();
my_thread_destory_thr_mutex(uVar1);
my_thread_init_thr_mutex(uVar1);
return;
}
|
|
11,561 |
OpenSubdiv::v3_6_0::Sdc::Crease::DetermineVertexVertexRule(float, int, float const*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/sdc/crease.cpp
|
Crease::Rule
Crease::DetermineVertexVertexRule(float vertexSharpness,
int incidentEdgeCount,
float const* incidentEdgeSharpness) const {
if (IsSharp(vertexSharpness)) return Crease::RULE_CORNER;
int sharpEdgeCount = 0;
for (int i = 0; i < incidentEdgeCount; ++i) {
sharpEdgeCount += IsSharp(incidentEdgeSharpness[i]);
}
return (sharpEdgeCount > 2) ? Crease::RULE_CORNER : (Crease::Rule)(1 << sharpEdgeCount);
}
|
O3
|
cpp
|
OpenSubdiv::v3_6_0::Sdc::Crease::DetermineVertexVertexRule(float, int, float const*) const:
movl $0x8, %eax
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
ja 0x3d20e
testl %esi, %esi
jle 0x3d20f
movl %esi, %eax
xorl %esi, %esi
xorps %xmm0, %xmm0
xorl %ecx, %ecx
movss (%rdx,%rsi,4), %xmm1
xorl %edi, %edi
ucomiss %xmm0, %xmm1
seta %dil
addl %edi, %ecx
incq %rsi
cmpq %rsi, %rax
jne 0x3d1e4
movl $0x1, %edx
shll %cl, %edx
cmpl $0x3, %ecx
movl $0x8, %eax
cmovbl %edx, %eax
retq
movl $0x1, %eax
retq
nop
|
_ZNK10OpenSubdiv6v3_6_03Sdc6Crease25DetermineVertexVertexRuleEfiPKf:
mov eax, 8
xorps xmm1, xmm1
ucomiss xmm0, xmm1
ja short locret_3D20E
test esi, esi
jle short loc_3D20F
mov eax, esi
xor esi, esi
xorps xmm0, xmm0
xor ecx, ecx
loc_3D1E4:
movss xmm1, dword ptr [rdx+rsi*4]
xor edi, edi
ucomiss xmm1, xmm0
setnbe dil
add ecx, edi
inc rsi
cmp rax, rsi
jnz short loc_3D1E4
mov edx, 1
shl edx, cl
cmp ecx, 3
mov eax, 8
cmovb eax, edx
locret_3D20E:
retn
loc_3D20F:
mov eax, 1
retn
|
long long OpenSubdiv::v3_6_0::Sdc::Crease::DetermineVertexVertexRule(
OpenSubdiv::v3_6_0::Sdc::Crease *this,
float a2,
int a3,
const float *a4)
{
long long result; // rax
long long v5; // rax
long long v6; // rsi
unsigned int v7; // ecx
result = 8LL;
if ( a2 <= 0.0 )
{
if ( a3 <= 0 )
{
return 1LL;
}
else
{
v5 = (unsigned int)a3;
v6 = 0LL;
v7 = 0;
do
v7 += a4[v6++] > 0.0;
while ( v5 != v6 );
result = 8LL;
if ( v7 < 3 )
return (unsigned int)(1 << v7);
}
}
return result;
}
|
DetermineVertexVertexRule:
MOV EAX,0x8
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JA 0x0013d20e
TEST ESI,ESI
JLE 0x0013d20f
MOV EAX,ESI
XOR ESI,ESI
XORPS XMM0,XMM0
XOR ECX,ECX
LAB_0013d1e4:
MOVSS XMM1,dword ptr [RDX + RSI*0x4]
XOR EDI,EDI
UCOMISS XMM1,XMM0
SETA DIL
ADD ECX,EDI
INC RSI
CMP RAX,RSI
JNZ 0x0013d1e4
MOV EDX,0x1
SHL EDX,CL
CMP ECX,0x3
MOV EAX,0x8
CMOVC EAX,EDX
LAB_0013d20e:
RET
LAB_0013d20f:
MOV EAX,0x1
RET
|
/* OpenSubdiv::v3_6_0::Sdc::Crease::DetermineVertexVertexRule(float, int, float const*) const */
int __thiscall
OpenSubdiv::v3_6_0::Sdc::Crease::DetermineVertexVertexRule
(Crease *this,float param_1,int param_2,float *param_3)
{
int iVar1;
uint uVar2;
ulong uVar3;
iVar1 = 8;
if (param_1 <= 0.0) {
if (param_2 < 1) {
return 1;
}
uVar3 = 0;
uVar2 = 0;
do {
uVar2 = uVar2 + (0.0 < param_3[uVar3]);
uVar3 = uVar3 + 1;
} while ((uint)param_2 != uVar3);
iVar1 = 8;
if (uVar2 < 3) {
iVar1 = 1 << ((byte)uVar2 & 0x1f);
}
}
return iVar1;
}
|
|
11,562 |
my_mb_wc_utf8mb3_quick
|
eloqsql/strings/ctype-utf8.h
|
static inline int
my_mb_wc_utf8mb3_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;
}
return MY_CS_ILSEQ;
}
|
O0
|
c
|
my_mb_wc_utf8mb3_quick:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jb 0x65fc6
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x66143
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
cmpl $0x80, %eax
jge 0x65ff3
movzbl -0x21(%rbp), %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x66143
movzbl -0x21(%rbp), %eax
cmpl $0xc2, %eax
jge 0x6600a
movl $0x0, -0x4(%rbp)
jmp 0x66143
movzbl -0x21(%rbp), %eax
cmpl $0xe0, %eax
jge 0x66080
movq -0x18(%rbp), %rax
addq $0x2, %rax
cmpq -0x20(%rbp), %rax
jbe 0x6602f
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x66143
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jl 0x6604d
movl $0x0, -0x4(%rbp)
jmp 0x66143
movzbl -0x21(%rbp), %eax
andl $0x1f, %eax
movslq %eax, %rcx
shlq $0x6, %rcx
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0x66143
movzbl -0x21(%rbp), %eax
cmpl $0xf0, %eax
jge 0x66136
movq -0x18(%rbp), %rax
addq $0x3, %rax
cmpq -0x20(%rbp), %rax
jbe 0x660a9
movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99
jmp 0x66143
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x660e7
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x660e7
movzbl -0x21(%rbp), %eax
cmpl $0xe1, %eax
jge 0x660f0
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xa0, %eax
jge 0x660f0
movl $0x0, -0x4(%rbp)
jmp 0x66143
movzbl -0x21(%rbp), %eax
andl $0xf, %eax
movslq %eax, %rcx
shlq $0xc, %rcx
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
shlq $0x6, %rax
orq %rax, %rcx
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0x66143
jmp 0x66138
jmp 0x6613a
jmp 0x6613c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
my_mb_wc_utf8mb3_quick_0:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jb short loc_65FC6
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_66143
loc_65FC6:
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_21], al
movzx eax, [rbp+var_21]
cmp eax, 80h
jge short loc_65FF3
movzx eax, [rbp+var_21]
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_66143
loc_65FF3:
movzx eax, [rbp+var_21]
cmp eax, 0C2h
jge short loc_6600A
mov [rbp+var_4], 0
jmp loc_66143
loc_6600A:
movzx eax, [rbp+var_21]
cmp eax, 0E0h
jge short loc_66080
mov rax, [rbp+var_18]
add rax, 2
cmp rax, [rbp+var_20]
jbe short loc_6602F
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_66143
loc_6602F:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jl short loc_6604D
mov [rbp+var_4], 0
jmp loc_66143
loc_6604D:
movzx eax, [rbp+var_21]
and eax, 1Fh
movsxd rcx, eax
shl rcx, 6
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 2
jmp loc_66143
loc_66080:
movzx eax, [rbp+var_21]
cmp eax, 0F0h
jge loc_66136
mov rax, [rbp+var_18]
add rax, 3
cmp rax, [rbp+var_20]
jbe short loc_660A9
mov [rbp+var_4], 0FFFFFF99h
jmp loc_66143
loc_660A9:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_660E7
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_660E7
movzx eax, [rbp+var_21]
cmp eax, 0E1h
jge short loc_660F0
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
cmp eax, 0A0h
jge short loc_660F0
loc_660E7:
mov [rbp+var_4], 0
jmp short loc_66143
loc_660F0:
movzx eax, [rbp+var_21]
and eax, 0Fh
movsxd rcx, eax
shl rcx, 0Ch
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
shl rax, 6
or rcx, rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 3
jmp short loc_66143
loc_66136:
jmp short $+2
loc_66138:
jmp short $+2
loc_6613A:
jmp short $+2
loc_6613C:
mov [rbp+var_4], 0
loc_66143:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_mb_wc_utf8mb3_quick_0(unsigned long long *a1, unsigned __int8 *a2, unsigned long long a3)
{
unsigned __int8 v4; // [rsp+1h] [rbp-21h]
if ( (unsigned long long)a2 < a3 )
{
v4 = *a2;
if ( *a2 >= 0x80u )
{
if ( v4 >= 0xC2u )
{
if ( v4 >= 0xE0u )
{
if ( v4 >= 0xF0u )
{
return 0;
}
else if ( (unsigned long long)(a2 + 3) <= a3 )
{
if ( (a2[1] ^ 0x80) < 64 && (a2[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a2[1] >= 0xA0u) )
{
*a1 = a2[2] ^ 0x80u | ((long long)(a2[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12);
return 3;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-103;
}
}
else if ( (unsigned long long)(a2 + 2) <= a3 )
{
if ( (a2[1] ^ 0x80) < 64 )
{
*a1 = a2[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6);
return 2;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
return 0;
}
}
else
{
*a1 = v4;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
|
my_mb_wc_utf8mb3_quick:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x00165fc6
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00166143
LAB_00165fc6:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x21],AL
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0x80
JGE 0x00165ff3
MOVZX EAX,byte ptr [RBP + -0x21]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00166143
LAB_00165ff3:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xc2
JGE 0x0016600a
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00166143
LAB_0016600a:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe0
JGE 0x00166080
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x0016602f
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00166143
LAB_0016602f:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JL 0x0016604d
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00166143
LAB_0016604d:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0x1f
MOVSXD RCX,EAX
SHL RCX,0x6
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00166143
LAB_00166080:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf0
JGE 0x00166136
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001660a9
MOV dword ptr [RBP + -0x4],0xffffff99
JMP 0x00166143
LAB_001660a9:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x001660e7
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x001660e7
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe1
JGE 0x001660f0
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xa0
JGE 0x001660f0
LAB_001660e7:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00166143
LAB_001660f0:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0xf
MOVSXD RCX,EAX
SHL RCX,0xc
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
SHL RAX,0x6
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x3
JMP 0x00166143
LAB_00166136:
JMP 0x00166138
LAB_00166138:
JMP 0x0016613a
LAB_0016613a:
JMP 0x0016613c
LAB_0016613c:
MOV dword ptr [RBP + -0x4],0x0
LAB_00166143:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_utf8mb3_quick(ulong *param_1,byte *param_2,byte *param_3)
{
byte bVar1;
int4 local_c;
if (param_2 < param_3) {
bVar1 = *param_2;
if (bVar1 < 0x80) {
*param_1 = (ulong)bVar1;
local_c = 1;
}
else if (bVar1 < 0xc2) {
local_c = 0;
}
else if (bVar1 < 0xe0) {
if (param_3 < param_2 + 2) {
local_c = 0xffffff9a;
}
else if ((param_2[1] ^ 0x80) < 0x40) {
*param_1 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_2[1] ^ 0x80);
local_c = 2;
}
else {
local_c = 0;
}
}
else if (bVar1 < 0xf0) {
if (param_3 < param_2 + 3) {
local_c = 0xffffff99;
}
else if ((((param_2[1] ^ 0x80) < 0x40) && ((param_2[2] ^ 0x80) < 0x40)) &&
((0xe0 < bVar1 || (0x9f < param_2[1])))) {
*param_1 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_2[1] ^ 0x80) << 6 |
(long)(int)(param_2[2] ^ 0x80);
local_c = 3;
}
else {
local_c = 0;
}
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
11,563 |
test_conc512
|
eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c
|
static int test_conc512(MYSQL *mysql)
{
int rc;
MYSQL_STMT *stmt;
MYSQL_BIND bind;
float f;
rc= mysql_query(mysql, "drop table if exists t1");
rc= mysql_real_query(mysql, SL("CREATE TABLE t1 (a int)"));
rc= mysql_real_query(mysql, SL("INSERT INTO t1 VALUES (1073741825)"));
stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, SL("SELECT a FROM t1"));
check_stmt_rc(rc, stmt);
memset(&bind, 0, sizeof(MYSQL_BIND));
bind.buffer= &f;
bind.buffer_type= MYSQL_TYPE_FLOAT;
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_bind_result(stmt, &bind);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_fetch(stmt);
FAIL_IF(rc != 101, "Truncation expected");
mysql_stmt_close(stmt);
rc= mysql_query(mysql, "DROP TABLE t1");
check_mysql_rc(rc, mysql);
return OK;
}
|
O0
|
c
|
test_conc512:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x4f7f8(%rip), %rsi # 0x664d2
callq 0x38a70
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x4f7fd(%rip), %rsi # 0x664ea
movl $0x17, %edx
callq 0x377f0
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x4f7fd(%rip), %rsi # 0x66502
movl $0x22, %edx
callq 0x377f0
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rdi
callq 0x44950
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
leaq 0x4f7fb(%rip), %rsi # 0x66525
movl $0x10, %edx
callq 0x45070
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16d6f
movq -0x20(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4e840(%rip), %rdi # 0x65590
leaq 0x4f316(%rip), %rdx # 0x6606d
movl $0x14ce, %ecx # imm = 0x14CE
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16eed
jmp 0x16d71
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x70, %edx
callq 0x14260
leaq -0x94(%rbp), %rax
movq %rax, -0x80(%rbp)
movl $0x4, -0x30(%rbp)
movq -0x20(%rbp), %rdi
callq 0x46580
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16dda
movq -0x20(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4e7d5(%rip), %rdi # 0x65590
leaq 0x4f2ab(%rip), %rdx # 0x6606d
movl $0x14d5, %ecx # imm = 0x14D5
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16eed
jmp 0x16ddc
movq -0x20(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43940
movsbl %al, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16e2a
movq -0x20(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4e785(%rip), %rdi # 0x65590
leaq 0x4f25b(%rip), %rdx # 0x6606d
movl $0x14d8, %ecx # imm = 0x14D8
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16eed
jmp 0x16e2c
movq -0x20(%rbp), %rdi
callq 0x44020
movl %eax, -0x14(%rbp)
cmpl $0x65, -0x14(%rbp)
je 0x16e6b
leaq 0x4e74b(%rip), %rdi # 0x65590
leaq 0x4f6ea(%rip), %rsi # 0x66536
leaq 0x4f21a(%rip), %rdx # 0x6606d
movl $0x14db, %ecx # imm = 0x14DB
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16eed
jmp 0x16e6d
movq -0x20(%rbp), %rdi
callq 0x43eb0
movq -0x10(%rbp), %rdi
leaq 0x4f6c9(%rip), %rsi # 0x6654a
callq 0x38a70
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x16ee4
movl -0x14(%rbp), %eax
movl %eax, -0xa4(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0xa0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0xa4(%rbp), %esi
movq -0xa0(%rbp), %rdx
movl %eax, %ecx
leaq 0x4e80e(%rip), %rdi # 0x656d5
leaq 0x4f19f(%rip), %r8 # 0x6606d
movl $0x14e0, %r9d # imm = 0x14E0
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x16eed
jmp 0x16ee6
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)
|
test_conc512:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
lea rsi, aDropTableIfExi; "drop table if exists t1"
call mysql_query
mov [rbp+var_14], eax
mov rdi, [rbp+var_10]
lea rsi, aCreateTableT1A; "CREATE TABLE t1 (a int)"
mov edx, 17h
call mysql_real_query
mov [rbp+var_14], eax
mov rdi, [rbp+var_10]
lea rsi, aInsertIntoT1Va; "INSERT INTO t1 VALUES (1073741825)"
mov edx, 22h ; '"'
call mysql_real_query
mov [rbp+var_14], eax
mov rdi, [rbp+var_10]
call mysql_stmt_init
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
lea rsi, aSelectAFromT1; "SELECT a FROM t1"
mov edx, 10h
call mysql_stmt_prepare
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16D6F
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 14CEh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16EED
loc_16D6F:
jmp short $+2
loc_16D71:
lea rdi, [rbp+var_90]
xor esi, esi
mov edx, 70h ; 'p'
call _memset
lea rax, [rbp+var_94]
mov [rbp+var_80], rax
mov [rbp+var_30], 4
mov rdi, [rbp+var_20]
call mysql_stmt_execute
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16DDA
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 14D5h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16EED
loc_16DDA:
jmp short $+2
loc_16DDC:
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_90]
call mysql_stmt_bind_result
movsx eax, al
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16E2A
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 14D8h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16EED
loc_16E2A:
jmp short $+2
loc_16E2C:
mov rdi, [rbp+var_20]
call mysql_stmt_fetch
mov [rbp+var_14], eax
cmp [rbp+var_14], 65h ; 'e'
jz short loc_16E6B
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aTruncationExpe; "Truncation expected"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 14DBh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_16EED
loc_16E6B:
jmp short $+2
loc_16E6D:
mov rdi, [rbp+var_20]
call mysql_stmt_close
mov rdi, [rbp+var_10]
lea rsi, aDropTableT1; "DROP TABLE t1"
call mysql_query
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_16EE4
mov eax, [rbp+var_14]
mov [rbp+var_A4], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_A0], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_A4]
mov rdx, [rbp+var_A0]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 14E0h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_16EED
loc_16EE4:
jmp short $+2
loc_16EE6:
mov [rbp+var_4], 0
loc_16EED:
mov eax, [rbp+var_4]
add rsp, 0B0h
pop rbp
retn
|
long long test_conc512(long long a1)
{
int v1; // eax
int v2; // r8d
int v3; // r9d
int v4; // eax
int v5; // r8d
int v6; // r9d
char v7; // al
int v8; // eax
int v9; // r8d
int v10; // r9d
int v11; // r8d
int v12; // r9d
int v13; // eax
int v15; // [rsp+Ch] [rbp-A4h]
int v16; // [rsp+10h] [rbp-A0h]
char v17; // [rsp+1Ch] [rbp-94h] BYREF
_BYTE v18[16]; // [rsp+20h] [rbp-90h] BYREF
char *v19; // [rsp+30h] [rbp-80h]
int v20; // [rsp+80h] [rbp-30h]
long long v21; // [rsp+90h] [rbp-20h]
int v22; // [rsp+9Ch] [rbp-14h]
long long v23; // [rsp+A0h] [rbp-10h]
v23 = a1;
mysql_query(a1, "drop table if exists t1");
mysql_real_query(a1, "CREATE TABLE t1 (a int)", 23LL);
mysql_real_query(a1, "INSERT INTO t1 VALUES (1073741825)", 34LL);
v21 = mysql_stmt_init(a1);
v22 = mysql_stmt_prepare(v21, "SELECT a FROM t1", 16LL);
if ( v22 )
{
v1 = mysql_stmt_error(v21);
diag(
(unsigned int)"Error: %s (%s: %d)",
v1,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5326,
v2,
v3);
return 1;
}
else
{
memset(v18, 0LL, 112LL);
v19 = &v17;
v20 = 4;
v22 = mysql_stmt_execute(v21);
if ( v22 )
{
v4 = mysql_stmt_error(v21);
diag(
(unsigned int)"Error: %s (%s: %d)",
v4,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5333,
v5,
v6);
return 1;
}
else
{
v7 = mysql_stmt_bind_result(v21, v18);
v22 = v7;
if ( v7 )
{
v8 = mysql_stmt_error(v21);
diag(
(unsigned int)"Error: %s (%s: %d)",
v8,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5336,
v9,
v10);
return 1;
}
else
{
v22 = mysql_stmt_fetch(v21);
if ( v22 == 101 )
{
mysql_stmt_close(v21);
v22 = mysql_query(v23, "DROP TABLE t1");
if ( v22 )
{
v15 = v22;
v16 = mysql_error(v23);
v13 = mysql_errno(v23);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v15,
v16,
v13,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5344);
return 1;
}
else
{
return 0;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"Truncation expected",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
5339,
v11,
v12);
return 1;
}
}
}
}
}
|
test_conc512:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1664d2]
CALL 0x00138a70
MOV dword ptr [RBP + -0x14],EAX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1664ea]
MOV EDX,0x17
CALL 0x001377f0
MOV dword ptr [RBP + -0x14],EAX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x166502]
MOV EDX,0x22
CALL 0x001377f0
MOV dword ptr [RBP + -0x14],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00144950
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[0x166525]
MOV EDX,0x10
CALL 0x00145070
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116d6f
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x14ce
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116eed
LAB_00116d6f:
JMP 0x00116d71
LAB_00116d71:
LEA RDI,[RBP + -0x90]
XOR ESI,ESI
MOV EDX,0x70
CALL 0x00114260
LEA RAX,[RBP + -0x94]
MOV qword ptr [RBP + -0x80],RAX
MOV dword ptr [RBP + -0x30],0x4
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00146580
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116dda
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x14d5
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116eed
LAB_00116dda:
JMP 0x00116ddc
LAB_00116ddc:
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x90]
CALL 0x00143940
MOVSX EAX,AL
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116e2a
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x14d8
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116eed
LAB_00116e2a:
JMP 0x00116e2c
LAB_00116e2c:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00144020
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x65
JZ 0x00116e6b
LEA RDI,[0x165590]
LEA RSI,[0x166536]
LEA RDX,[0x16606d]
MOV ECX,0x14db
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116eed
LAB_00116e6b:
JMP 0x00116e6d
LAB_00116e6d:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00143eb0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x16654a]
CALL 0x00138a70
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00116ee4
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0xa4],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0xa0],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0xa4]
MOV RDX,qword ptr [RBP + -0xa0]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x14e0
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00116eed
LAB_00116ee4:
JMP 0x00116ee6
LAB_00116ee6:
MOV dword ptr [RBP + -0x4],0x0
LAB_00116eed:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xb0
POP RBP
RET
|
int4 test_conc512(int8 param_1)
{
char cVar1;
int iVar2;
int4 uVar3;
int8 uVar4;
int1 local_9c [4];
int1 local_98 [16];
int1 *local_88;
int4 local_38;
int8 local_28;
int local_1c;
int8 local_18;
int4 local_c;
local_18 = param_1;
local_1c = mysql_query(param_1,"drop table if exists t1");
local_1c = mysql_real_query(local_18,"CREATE TABLE t1 (a int)",0x17);
local_1c = mysql_real_query(local_18,"INSERT INTO t1 VALUES (1073741825)",0x22);
local_28 = mysql_stmt_init(local_18);
local_1c = mysql_stmt_prepare(local_28,"SELECT a FROM t1",0x10);
if (local_1c == 0) {
memset(local_98,0,0x70);
local_88 = local_9c;
local_38 = 4;
local_1c = mysql_stmt_execute(local_28);
if (local_1c == 0) {
cVar1 = mysql_stmt_bind_result(local_28,local_98);
local_1c = (int)cVar1;
if (local_1c == 0) {
local_1c = mysql_stmt_fetch(local_28);
if (local_1c == 0x65) {
mysql_stmt_close(local_28);
iVar2 = mysql_query(local_18,"DROP TABLE t1");
if (iVar2 == 0) {
local_c = 0;
}
else {
local_1c = iVar2;
uVar4 = mysql_error(local_18);
uVar3 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar4,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x14e0);
local_c = 1;
}
}
else {
diag("Error: %s (%s: %d)","Truncation expected",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x14db);
local_c = 1;
}
}
else {
uVar4 = mysql_stmt_error(local_28);
diag("Error: %s (%s: %d)",uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x14d8);
local_c = 1;
}
}
else {
uVar4 = mysql_stmt_error(local_28);
diag("Error: %s (%s: %d)",uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x14d5);
local_c = 1;
}
}
else {
uVar4 = mysql_stmt_error(local_28);
diag("Error: %s (%s: %d)",uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",0x14ce)
;
local_c = 1;
}
return local_c;
}
|
|
11,564 |
google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase(google::protobuf::stringpiece_internal::StringPiece) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
|
bool DescriptorPool::TryFindFileInFallbackDatabase(
StringPiece name) const {
if (fallback_database_ == nullptr) return false;
auto name_string = std::string(name);
if (tables_->known_bad_files_.count(name_string) > 0) return false;
FileDescriptorProto file_proto;
if (!fallback_database_->FindFileByName(name_string, &file_proto) ||
BuildFileFromDatabase(file_proto) == nullptr) {
tables_->known_bad_files_.insert(std::move(name_string));
return false;
}
return true;
}
|
O0
|
cpp
|
google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase(google::protobuf::stringpiece_internal::StringPiece) const:
subq $0x178, %rsp # imm = 0x178
movq %rsi, 0x160(%rsp)
movq %rdx, 0x168(%rsp)
movq %rdi, 0x158(%rsp)
movq 0x158(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x8(%rax)
jne 0x34f30
movb $0x0, 0x177(%rsp)
jmp 0x350b7
leaq 0x138(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0x160(%rsp), %rsi
callq 0x30e20
movq 0x38(%rsp), %rdi
addq $0x20, %rdi
callq 0x732b0
movq 0x28(%rsp), %rsi
movq %rax, %rdi
addq $0x18, %rdi
callq 0x758b0
movq %rax, 0x30(%rsp)
jmp 0x34f70
movq 0x30(%rsp), %rax
cmpq $0x0, %rax
jbe 0x34fac
movb $0x0, 0x177(%rsp)
movl $0x1, 0x128(%rsp)
jmp 0x35099
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x130(%rsp)
movl %eax, 0x12c(%rsp)
jmp 0x350a8
leaq 0x50(%rsp), %rdi
callq 0x758e0
jmp 0x34fb8
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
leaq 0x138(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq *%rax
movb %al, 0x27(%rsp)
jmp 0x34fdd
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x34fe7
jmp 0x35008
movq 0x38(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x37040
movq %rax, 0x18(%rsp)
jmp 0x34ffd
movq 0x18(%rsp), %rax
cmpq $0x0, %rax
jne 0x3507c
movq 0x38(%rsp), %rdi
addq $0x20, %rdi
callq 0x732b0
movq %rax, %rdi
addq $0x18, %rdi
leaq 0x138(%rsp), %rsi
callq 0x75900
movb %dl, 0xf(%rsp)
movq %rax, 0x10(%rsp)
jmp 0x35035
movb 0xf(%rsp), %al
movq 0x10(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movb %al, 0x48(%rsp)
movb $0x0, 0x177(%rsp)
movl $0x1, 0x128(%rsp)
jmp 0x3508f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x130(%rsp)
movl %eax, 0x12c(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xa9790
jmp 0x350a8
movb $0x1, 0x177(%rsp)
movl $0x1, 0x128(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xa9790
leaq 0x138(%rsp), %rdi
callq 0x13290
jmp 0x350b7
leaq 0x138(%rsp), %rdi
callq 0x13290
jmp 0x350c8
movb 0x177(%rsp), %al
andb $0x1, %al
addq $0x178, %rsp # imm = 0x178
retq
movq 0x130(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
|
_ZNK6google8protobuf14DescriptorPool29TryFindFileInFallbackDatabaseENS0_20stringpiece_internal11StringPieceE:
sub rsp, 178h
mov [rsp+178h+var_18], rsi
mov [rsp+178h+var_10], rdx
mov [rsp+178h+var_20], rdi
mov rax, [rsp+178h+var_20]
mov [rsp+178h+var_140], rax
cmp qword ptr [rax+8], 0
jnz short loc_34F30
mov [rsp+178h+var_1], 0
jmp loc_350B7
loc_34F30:
lea rdi, [rsp+178h+var_40]
mov [rsp+178h+var_150], rdi
lea rsi, [rsp+178h+var_18]
call _ZNK6google8protobuf20stringpiece_internal11StringPiececvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv; google::protobuf::stringpiece_internal::StringPiece::operator std::string(void)
mov rdi, [rsp+178h+var_140]
add rdi, 20h ; ' '
call _ZNKSt10unique_ptrIN6google8protobuf14DescriptorPool6TablesESt14default_deleteIS3_EEptEv; std::unique_ptr<google::protobuf::DescriptorPool::Tables>::operator->(void)
mov rsi, [rsp+178h+var_150]
mov rdi, rax
add rdi, 18h
call _ZNKSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE5countERKS5_; std::unordered_set<std::string>::count(std::string const&)
mov [rsp+178h+var_148], rax
jmp short $+2
loc_34F70:
mov rax, [rsp+178h+var_148]
cmp rax, 0
jbe short loc_34FAC
mov [rsp+178h+var_1], 0
mov [rsp+178h+var_50], 1
jmp loc_35099
mov rcx, rax
mov eax, edx
mov [rsp+arg_128], rcx
mov [rsp+arg_124], eax
jmp loc_350A8
loc_34FAC:
lea rdi, [rsp+178h+var_128]; this
call _ZN6google8protobuf19FileDescriptorProtoC2Ev; google::protobuf::FileDescriptorProto::FileDescriptorProto(void)
jmp short $+2
loc_34FB8:
mov rax, [rsp+178h+var_140]
mov rdi, [rax+8]
mov rax, [rdi]
mov rax, [rax+10h]
lea rsi, [rsp+178h+var_40]
lea rdx, [rsp+178h+var_128]
call rax
mov [rsp+178h+var_151], al
jmp short $+2
loc_34FDD:
mov al, [rsp+178h+var_151]
test al, 1
jnz short loc_34FE7
jmp short loc_35008
loc_34FE7:
mov rdi, [rsp+178h+var_140]; this
lea rsi, [rsp+178h+var_128]; google::protobuf::FileDescriptorProto *
call _ZNK6google8protobuf14DescriptorPool21BuildFileFromDatabaseERKNS0_19FileDescriptorProtoE; google::protobuf::DescriptorPool::BuildFileFromDatabase(google::protobuf::FileDescriptorProto const&)
mov [rsp+178h+var_160], rax
jmp short $+2
loc_34FFD:
mov rax, [rsp+178h+var_160]
cmp rax, 0
jnz short loc_3507C
loc_35008:
mov rdi, [rsp+178h+var_140]
add rdi, 20h ; ' '
call _ZNKSt10unique_ptrIN6google8protobuf14DescriptorPool6TablesESt14default_deleteIS3_EEptEv; std::unique_ptr<google::protobuf::DescriptorPool::Tables>::operator->(void)
mov rdi, rax
add rdi, 18h
lea rsi, [rsp+178h+var_40]
call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertEOS5_; std::unordered_set<std::string>::insert(std::string&&)
mov [rsp+178h+var_169], dl
mov [rsp+178h+var_168], rax
jmp short $+2
loc_35035:
mov al, [rsp+178h+var_169]
mov rcx, [rsp+178h+var_168]
mov [rsp+178h+var_138], rcx
mov [rsp+178h+var_130], al
mov [rsp+178h+var_1], 0
mov [rsp+178h+var_50], 1
jmp short loc_3508F
mov rcx, rax
mov eax, edx
mov [rsp+arg_128], rcx
mov [rsp+arg_124], eax
lea rdi, [rsp+arg_48]; this
call _ZN6google8protobuf19FileDescriptorProtoD2Ev; google::protobuf::FileDescriptorProto::~FileDescriptorProto()
jmp short loc_350A8
loc_3507C:
mov [rsp+178h+var_1], 1
mov [rsp+178h+var_50], 1
loc_3508F:
lea rdi, [rsp+178h+var_128]; this
call _ZN6google8protobuf19FileDescriptorProtoD2Ev; google::protobuf::FileDescriptorProto::~FileDescriptorProto()
loc_35099:
lea rdi, [rsp+178h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_350B7
loc_350A8:
lea rdi, [rsp+arg_130]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_350C8
loc_350B7:
mov al, [rsp+178h+var_1]
and al, 1
add rsp, 178h
retn
loc_350C8:
mov rdi, [rsp+arg_128]
call __Unwind_Resume
|
char google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase(
google::protobuf::DescriptorPool *a1,
long long a2,
long long a3)
{
long long v3; // rax
long long v4; // rax
_BYTE v6[216]; // [rsp+50h] [rbp-128h] BYREF
int v7; // [rsp+128h] [rbp-50h]
_BYTE v8[32]; // [rsp+138h] [rbp-40h] BYREF
google::protobuf::DescriptorPool *v9; // [rsp+158h] [rbp-20h]
_QWORD v10[2]; // [rsp+160h] [rbp-18h] BYREF
char v11; // [rsp+177h] [rbp-1h]
v10[0] = a2;
v10[1] = a3;
v9 = a1;
if ( *((_QWORD *)a1 + 1) )
{
google::protobuf::stringpiece_internal::StringPiece::operator std::string(
(long long)v8,
(google::protobuf::stringpiece_internal::StringPiece *)v10);
v3 = std::unique_ptr<google::protobuf::DescriptorPool::Tables>::operator->((char *)a1 + 32);
if ( std::unordered_set<std::string>::count(v3 + 24, v8) )
{
v11 = 0;
v7 = 1;
}
else
{
google::protobuf::FileDescriptorProto::FileDescriptorProto((google::protobuf::FileDescriptorProto *)v6);
if ( ((*(long long ( **)(_QWORD *, _BYTE *, _BYTE *))(**((_QWORD **)a1 + 1) + 16LL))(
*((_QWORD **)a1 + 1),
v8,
v6) & 1) != 0
&& google::protobuf::DescriptorPool::BuildFileFromDatabase(
a1,
(const google::protobuf::FileDescriptorProto *)v6) )
{
v11 = 1;
v7 = 1;
}
else
{
v4 = std::unique_ptr<google::protobuf::DescriptorPool::Tables>::operator->((char *)a1 + 32);
std::unordered_set<std::string>::insert(v4 + 24, v8);
v11 = 0;
v7 = 1;
}
google::protobuf::FileDescriptorProto::~FileDescriptorProto((google::protobuf::FileDescriptorProto *)v6);
}
std::string::~string(v8);
}
else
{
v11 = 0;
}
return v11 & 1;
}
|
TryFindFileInFallbackDatabase:
SUB RSP,0x178
MOV qword ptr [RSP + 0x160],RSI
MOV qword ptr [RSP + 0x168],RDX
MOV qword ptr [RSP + 0x158],RDI
MOV RAX,qword ptr [RSP + 0x158]
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00134f30
MOV byte ptr [RSP + 0x177],0x0
JMP 0x001350b7
LAB_00134f30:
LEA RDI,[RSP + 0x138]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0x160]
CALL 0x00130e20
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0x20
CALL 0x001732b0
MOV RSI,qword ptr [RSP + 0x28]
MOV RDI,RAX
ADD RDI,0x18
LAB_00134f64:
CALL 0x001758b0
MOV qword ptr [RSP + 0x30],RAX
JMP 0x00134f70
LAB_00134f70:
MOV RAX,qword ptr [RSP + 0x30]
CMP RAX,0x0
JBE 0x00134fac
MOV byte ptr [RSP + 0x177],0x0
MOV dword ptr [RSP + 0x128],0x1
JMP 0x00135099
LAB_00134fac:
LEA RDI,[RSP + 0x50]
CALL 0x001758e0
JMP 0x00134fb8
LAB_00134fb8:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_00134fc8:
LEA RSI,[RSP + 0x138]
LEA RDX,[RSP + 0x50]
CALL RAX
MOV byte ptr [RSP + 0x27],AL
JMP 0x00134fdd
LAB_00134fdd:
MOV AL,byte ptr [RSP + 0x27]
TEST AL,0x1
JNZ 0x00134fe7
JMP 0x00135008
LAB_00134fe7:
MOV RDI,qword ptr [RSP + 0x38]
LEA RSI,[RSP + 0x50]
CALL 0x00137040
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00134ffd
LAB_00134ffd:
MOV RAX,qword ptr [RSP + 0x18]
CMP RAX,0x0
JNZ 0x0013507c
LAB_00135008:
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0x20
CALL 0x001732b0
MOV RDI,RAX
ADD RDI,0x18
LEA RSI,[RSP + 0x138]
CALL 0x00175900
LAB_0013502a:
MOV byte ptr [RSP + 0xf],DL
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00135035
LAB_00135035:
MOV AL,byte ptr [RSP + 0xf]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x40],RCX
MOV byte ptr [RSP + 0x48],AL
MOV byte ptr [RSP + 0x177],0x0
MOV dword ptr [RSP + 0x128],0x1
JMP 0x0013508f
LAB_0013507c:
MOV byte ptr [RSP + 0x177],0x1
MOV dword ptr [RSP + 0x128],0x1
LAB_0013508f:
LEA RDI,[RSP + 0x50]
CALL 0x001a9790
LAB_00135099:
LEA RDI,[RSP + 0x138]
CALL 0x00113290
JMP 0x001350b7
LAB_001350b7:
MOV AL,byte ptr [RSP + 0x177]
AND AL,0x1
ADD RSP,0x178
RET
|
/* google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase(google::protobuf::stringpiece_internal::StringPiece)
const */
ulong google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase
(DescriptorPool *param_1,int8 param_2,int8 param_3)
{
byte bVar1;
long lVar2;
FileDescriptorProto local_128 [216];
int4 local_50;
StringPiece local_40 [32];
DescriptorPool *local_20;
int8 local_18;
int8 local_10;
int1 local_1;
if (*(long *)(param_1 + 8) == 0) {
local_1 = 0;
}
else {
local_20 = param_1;
local_18 = param_2;
local_10 = param_3;
stringpiece_internal::StringPiece::operator_cast_to_string(local_40);
lVar2 = std::
unique_ptr<google::protobuf::DescriptorPool::Tables,std::default_delete<google::protobuf::DescriptorPool::Tables>>
::operator->((unique_ptr<google::protobuf::DescriptorPool::Tables,std::default_delete<google::protobuf::DescriptorPool::Tables>>
*)(param_1 + 0x20));
/* try { // try from 00134f64 to 00134fb5 has its CatchHandler @ 00134f93 */
lVar2 = std::
unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::count((unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)(lVar2 + 0x18),(string *)local_40);
if (lVar2 == 0) {
FileDescriptorProto::FileDescriptorProto(local_128);
/* try { // try from 00134fc8 to 00135029 has its CatchHandler @ 0013505c */
bVar1 = (**(code **)(**(long **)(param_1 + 8) + 0x10))
(*(long **)(param_1 + 8),local_40,local_128);
if (((bVar1 & 1) == 0) || (lVar2 = BuildFileFromDatabase(param_1,local_128), lVar2 == 0)) {
lVar2 = std::
unique_ptr<google::protobuf::DescriptorPool::Tables,std::default_delete<google::protobuf::DescriptorPool::Tables>>
::operator->((unique_ptr<google::protobuf::DescriptorPool::Tables,std::default_delete<google::protobuf::DescriptorPool::Tables>>
*)(param_1 + 0x20));
std::
unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::insert((unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)(lVar2 + 0x18),(string *)local_40);
local_1 = 0;
}
else {
local_1 = 1;
}
local_50 = 1;
FileDescriptorProto::~FileDescriptorProto(local_128);
}
else {
local_1 = 0;
local_50 = 1;
}
param_1 = (DescriptorPool *)std::__cxx11::string::~string((string *)local_40);
}
return CONCAT71((int7)((ulong)param_1 >> 8),local_1) & 0xffffffffffffff01;
}
|
|
11,565 |
js_map_iterator_finalizer
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_map_iterator_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p;
JSMapIteratorData *it;
p = JS_VALUE_GET_OBJ(val);
it = p->u.map_iterator_data;
if (it) {
/* During the GC sweep phase the Map finalizer may be
called before the Map iterator finalizer */
if (JS_IsLiveObject(rt, it->obj) && it->cur_record) {
map_decref_record(rt, it->cur_record);
}
JS_FreeValueRT(rt, it->obj);
js_free_rt(rt, it);
}
}
|
O0
|
c
|
js_map_iterator_finalizer:
subq $0x28, %rsp
movq %rsi, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x5aadb
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x29c50
cmpl $0x0, %eax
je 0x5aab8
movq (%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x5aab8
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x5aec0
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x22a50
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x206a0
addq $0x28, %rsp
retq
|
js_map_iterator_finalizer:
sub rsp, 28h
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_8], rdx
mov [rsp+28h+var_18], rdi
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_20], rax
mov rax, [rsp+28h+var_20]
mov rax, [rax+30h]
mov [rsp+28h+var_28], rax
cmp [rsp+28h+var_28], 0
jz short loc_5AADB
mov rdi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_28]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_IsLiveObject
cmp eax, 0
jz short loc_5AAB8
mov rax, [rsp+28h+var_28]
cmp qword ptr [rax+18h], 0
jz short loc_5AAB8
mov rdi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_28]
mov rsi, [rax+18h]
call map_decref_record
loc_5AAB8:
mov rdi, [rsp+28h+var_18]
mov rax, [rsp+28h+var_28]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_FreeValueRT
mov rdi, [rsp+28h+var_18]
mov rsi, [rsp+28h+var_28]
call js_free_rt
loc_5AADB:
add rsp, 28h
retn
|
void js_map_iterator_finalizer(long long a1, long long a2)
{
long long *v2; // [rsp+0h] [rbp-28h]
v2 = *(long long **)(a2 + 48);
if ( v2 )
{
if ( JS_IsLiveObject(a1, *v2, v2[1]) )
{
if ( v2[3] )
map_decref_record(a1, v2[3]);
}
JS_FreeValueRT(a1, (_DWORD *)*v2, v2[1]);
js_free_rt(a1, (long long)v2);
}
}
|
js_map_iterator_finalizer:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP],RAX
CMP qword ptr [RSP],0x0
JZ 0x0015aadb
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00129c50
CMP EAX,0x0
JZ 0x0015aab8
MOV RAX,qword ptr [RSP]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x0015aab8
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RAX + 0x18]
CALL 0x0015aec0
LAB_0015aab8:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00122a50
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP]
CALL 0x001206a0
LAB_0015aadb:
ADD RSP,0x28
RET
|
void js_map_iterator_finalizer(int8 param_1,long param_2)
{
int8 *puVar1;
int iVar2;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
iVar2 = JS_IsLiveObject(param_1,*puVar1,puVar1[1]);
if ((iVar2 != 0) && (puVar1[3] != 0)) {
map_decref_record(param_1,puVar1[3]);
}
JS_FreeValueRT(param_1,*puVar1,puVar1[1]);
js_free_rt(param_1,puVar1);
}
return;
}
|
|
11,566 |
js_map_iterator_finalizer
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_map_iterator_finalizer(JSRuntime *rt, JSValue val)
{
JSObject *p;
JSMapIteratorData *it;
p = JS_VALUE_GET_OBJ(val);
it = p->u.map_iterator_data;
if (it) {
/* During the GC sweep phase the Map finalizer may be
called before the Map iterator finalizer */
if (JS_IsLiveObject(rt, it->obj) && it->cur_record) {
map_decref_record(rt, it->cur_record);
}
JS_FreeValueRT(rt, it->obj);
js_free_rt(rt, it);
}
}
|
O3
|
c
|
js_map_iterator_finalizer:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsi), %rbx
testq %rbx, %rbx
je 0x3bba5
movq %rdi, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
cmpl $-0x1, %edx
jne 0x3bb5e
testb $0x2, 0x5(%rsi)
jne 0x3bb5e
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x3bb5e
movq %r14, %rdi
movq %rax, %rsi
callq 0x3be2d
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
cmpl $-0x9, %edx
jb 0x3bb77
movl (%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rsi)
cmpl $0x1, %eax
jg 0x3bb77
movq %r14, %rdi
callq 0x20d90
decq 0x28(%r14)
movq %rbx, %rdi
callq *0x20(%r14)
movq 0x10(%r14), %rcx
movq 0x30(%r14), %rdx
subq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x30(%r14)
movq 0x40(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_map_iterator_finalizer:
push r14
push rbx
push rax
mov rbx, [rsi+30h]
test rbx, rbx
jz short loc_3BBA5
mov r14, rdi
mov rsi, [rbx]
mov rdx, [rbx+8]
cmp edx, 0FFFFFFFFh
jnz short loc_3BB5E
test byte ptr [rsi+5], 2
jnz short loc_3BB5E
mov rax, [rbx+18h]
test rax, rax
jz short loc_3BB5E
mov rdi, r14
mov rsi, rax
call map_decref_record
mov rsi, [rbx]
mov rdx, [rbx+8]
loc_3BB5E:
cmp edx, 0FFFFFFF7h
jb short loc_3BB77
mov eax, [rsi]
lea ecx, [rax-1]
mov [rsi], ecx
cmp eax, 1
jg short loc_3BB77
mov rdi, r14
call js_free_value_rt
loc_3BB77:
dec qword ptr [r14+28h]
mov rdi, rbx
call qword ptr [r14+20h]
mov rcx, [r14+10h]
mov rdx, [r14+30h]
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF8h
mov [r14+30h], rdx
mov rdi, [r14+40h]
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
jmp rcx
loc_3BBA5:
add rsp, 8
pop rbx
pop r14
retn
|
long long js_map_iterator_finalizer(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6)
{
long long *v6; // rbx
long long v7; // rsi
long long v8; // rdx
int v9; // eax
long long v10; // rcx
long long v11; // rax
long long ( *v12)(_QWORD, long long *); // rcx
long long result; // rax
v6 = *(long long **)(a2 + 48);
if ( v6 )
{
v7 = *v6;
v8 = v6[1];
if ( (_DWORD)v8 == -1 && (*(_BYTE *)(v7 + 5) & 2) == 0 && v6[3] )
{
map_decref_record(a1, v6[3]);
v7 = *v6;
v8 = v6[1];
}
if ( (unsigned int)v8 >= 0xFFFFFFF7 )
{
v9 = *(_DWORD *)v7;
v10 = (unsigned int)(*(_DWORD *)v7 - 1);
*(_DWORD *)v7 = v10;
if ( v9 <= 1 )
js_free_value_rt(a1, (_QWORD *)v7, v8, v10, a5, a6);
}
--*(_QWORD *)(a1 + 40);
v11 = (*(long long ( **)(long long *, long long))(a1 + 32))(v6, v7);
v12 = *(long long ( **)(_QWORD, long long *))(a1 + 16);
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v11 - 8;
return v12(*(_QWORD *)(a1 + 64), v6);
}
return result;
}
|
js_map_iterator_finalizer:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RSI + 0x30]
TEST RBX,RBX
JZ 0x0013bba5
MOV R14,RDI
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
CMP EDX,-0x1
JNZ 0x0013bb5e
TEST byte ptr [RSI + 0x5],0x2
JNZ 0x0013bb5e
MOV RAX,qword ptr [RBX + 0x18]
TEST RAX,RAX
JZ 0x0013bb5e
MOV RDI,R14
MOV RSI,RAX
CALL 0x0013be2d
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
LAB_0013bb5e:
CMP EDX,-0x9
JC 0x0013bb77
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RSI],ECX
CMP EAX,0x1
JG 0x0013bb77
MOV RDI,R14
CALL 0x00120d90
LAB_0013bb77:
DEC qword ptr [R14 + 0x28]
MOV RDI,RBX
CALL qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x30]
SUB RDX,RAX
ADD RDX,-0x8
MOV qword ptr [R14 + 0x30],RDX
MOV RDI,qword ptr [R14 + 0x40]
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
LAB_0013bba5:
ADD RSP,0x8
POP RBX
POP R14
RET
|
void js_map_iterator_finalizer(long param_1,long param_2)
{
int iVar1;
int8 *puVar2;
long lVar3;
uint uVar4;
int *piVar5;
puVar2 = *(int8 **)(param_2 + 0x30);
if (puVar2 != (int8 *)0x0) {
piVar5 = (int *)*puVar2;
uVar4 = (uint)puVar2[1];
if (((uVar4 == 0xffffffff) && ((*(byte *)((long)piVar5 + 5) & 2) == 0)) && (puVar2[3] != 0)) {
map_decref_record(param_1,puVar2[3]);
piVar5 = (int *)*puVar2;
uVar4 = (uint)puVar2[1];
}
if (0xfffffff6 < uVar4) {
iVar1 = *piVar5;
*piVar5 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(param_1);
}
}
*(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1;
lVar3 = (**(code **)(param_1 + 0x20))(puVar2);
lVar3 = (*(long *)(param_1 + 0x30) - lVar3) + -8;
*(long *)(param_1 + 0x30) = lVar3;
/* WARNING: Could not recover jumptable at 0x0013bba3. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x10))
(*(int8 *)(param_1 + 0x40),puVar2,lVar3,*(code **)(param_1 + 0x10));
return;
}
return;
}
|
|
11,567 |
Catch::list(Catch::IEventListener&, Catch::Config const&)
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
|
bool list( IEventListener& reporter, Config const& config ) {
bool listed = false;
if (config.listTests()) {
listed = true;
listTests(reporter, config);
}
if (config.listTags()) {
listed = true;
listTags(reporter, config);
}
if (config.listReporters()) {
listed = true;
listReporters(reporter);
}
if ( config.listListeners() ) {
listed = true;
listListeners( reporter );
}
return listed;
}
|
O3
|
cpp
|
Catch::list(Catch::IEventListener&, Catch::Config const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %r15
movq %rdi, %r12
movb 0x8(%rsi), %bpl
cmpb $0x1, %bpl
jne 0x55ebc
movq (%r15), %rax
movq %r15, %rdi
callq *0x68(%rax)
movq %rax, %rbx
callq 0x735c6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
movq (%rax), %rcx
movq %rax, %rdi
movq %r15, %rsi
callq *0x20(%rcx)
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x6217c
movq (%r12), %rax
movq %r12, %rdi
movq %r14, %rsi
callq *0xb0(%rax)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x55ebc
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x17150
cmpb $0x1, 0x9(%r15)
movq %r12, 0x58(%rsp)
jne 0x560de
movq (%r15), %rax
movq %r15, %rdi
callq *0x68(%rax)
movq %rax, %rbx
callq 0x735c6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
movq (%rax), %rcx
movq %rax, %rdi
movq %r15, %rsi
callq *0x20(%rcx)
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x6217c
leaq 0xd0(%rsp), %rax
movl $0x0, (%rax)
xorl %esi, %esi
movq %rsi, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rsi, 0x20(%rax)
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq %rcx, 0xa0(%rsp)
cmpq %rcx, %rax
je 0x56047
movq %r15, 0x50(%rsp)
leaq 0x18(%rsp), %rbp
leaq 0xc8(%rsp), %r12
movq %rsp, %r13
movq %rax, 0xa8(%rsp)
movq (%rax), %rax
movq 0x50(%rax), %rbx
movq 0x58(%rax), %r15
cmpq %r15, %rbx
je 0x5601b
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7e948
movq %rax, %r14
leaq 0xd0(%rsp), %rax
cmpq %rax, %r14
jne 0x55ff8
xorl %ecx, %ecx
movq %rcx, 0x70(%rsp)
xorps %xmm1, %xmm1
movaps %xmm1, 0x60(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movups %xmm1, 0x20(%rax)
movups (%rbx), %xmm0
movaps %xmm0, (%rsp)
movq %rcx, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movq %rbp, 0x30(%rsp)
movl $0x0, 0x18(%rsp)
movups %xmm1, 0x20(%rbp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x7e9de
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x7eba8
leaq 0x60(%rsp), %rdi
callq 0x7eba8
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
incq 0x60(%r14)
addq $0x30, %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x85ada
addq $0x10, %rbx
jmp 0x55f6b
movq 0xa8(%rsp), %rax
addq $0x10, %rax
cmpq 0xa0(%rsp), %rax
jne 0x55f58
movq 0xf0(%rsp), %rsi
movq 0x58(%rsp), %r12
movq 0x50(%rsp), %r15
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x7e854
movq 0xe0(%rsp), %rbx
leaq 0xd0(%rsp), %rax
cmpq %rax, %rbx
je 0x56099
movq %rsp, %r14
leaq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x7ec60
movq %rbx, %rdi
callq 0x17bd0
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
cmpq %rax, %rbx
jne 0x56075
movq (%r12), %rax
movq %rsp, %rsi
movq %r12, %rdi
callq *0xb8(%rax)
movq %rsp, %rdi
callq 0x7e900
leaq 0xc8(%rsp), %rdi
callq 0x7edf0
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x560db
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x17150
movb $0x1, %bpl
cmpb $0x1, 0xa(%r15)
jne 0x561e7
movq %r15, 0x50(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
callq 0x735c6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
movq %rax, %r15
movq 0x28(%rax), %rsi
leaq 0x60(%rsp), %rdi
callq 0x7ee48
movq 0x18(%r15), %r12
addq $0x8, %r15
cmpq %r15, %r12
je 0x561be
leaq 0x10(%rsp), %r14
leaq 0x20(%rsp), %r13
movq %rsp, %rbx
leaq 0x60(%rsp), %rbp
movq %r14, (%rsp)
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x251d8
movq 0x40(%r12), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x18(%rax)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x7f060
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x56198
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x17150
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x561ae
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x17150
movq %r12, %rdi
callq 0x17ae0
movq %rax, %r12
cmpq %r15, %rax
jne 0x5614a
movq 0x58(%rsp), %r12
movq (%r12), %rax
leaq 0x60(%rsp), %rsi
movq %r12, %rdi
callq *0xa0(%rax)
leaq 0x60(%rsp), %rdi
callq 0x7ef12
movb $0x1, %bpl
movq 0x50(%rsp), %r15
cmpb $0x1, 0xb(%r15)
jne 0x562bb
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
callq 0x735c6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x20(%rcx)
movq %rax, %rbx
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x3, %rsi
leaq 0x60(%rsp), %rdi
callq 0x7f206
movq (%rbx), %r12
movq 0x8(%rbx), %r13
cmpq %r13, %r12
je 0x5629b
leaq 0x10(%rsp), %rbx
leaq 0x20(%rsp), %rbp
leaq 0x60(%rsp), %r14
movq %rsp, %r15
movq (%r12), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq (%r12), %rsi
movq (%rsi), %rax
movq %rbx, %rdi
callq *0x20(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x7f392
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x56292
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x17150
addq $0x8, %r12
cmpq %r13, %r12
jne 0x56250
movq 0x58(%rsp), %rdi
movq (%rdi), %rax
leaq 0x60(%rsp), %rsi
callq *0xa8(%rax)
leaq 0x60(%rsp), %rdi
callq 0x7f30e
movb $0x1, %bpl
movl %ebp, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x563a4
movq 0x10(%rsp), %rsi
jmp 0x5639c
jmp 0x562ef
jmp 0x5634f
jmp 0x56318
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7e900
jmp 0x5637a
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x56352
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x17150
jmp 0x56352
movq %rax, %rbx
jmp 0x56343
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x56343
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x17150
jmp 0x56343
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7eedc
leaq 0x60(%rsp), %rdi
callq 0x7ef12
jmp 0x563a4
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x7f30e
jmp 0x563a4
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7eba8
leaq 0x60(%rsp), %rdi
callq 0x7eba8
jmp 0x5637a
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x7edf0
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x563a4
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x17150
movq %rbx, %rdi
callq 0x17740
|
_ZN5Catch4listERNS_14IEventListenerERKNS_6ConfigE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov r15, rsi
mov r12, rdi
mov bpl, [rsi+8]
cmp bpl, 1
jnz short loc_55EBC
mov rax, [r15]
mov rdi, r15
call qword ptr [rax+68h]
mov rbx, rax
call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void)
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+18h]
mov rcx, [rax]
mov rdi, rax
mov rsi, r15
call qword ptr [rcx+20h]
mov r14, rsp
mov rdi, r14
mov rsi, rax
mov rdx, rbx
mov rcx, r15
call _ZN5Catch11filterTestsERKSt6vectorINS_14TestCaseHandleESaIS1_EERKNS_8TestSpecERKNS_7IConfigE; Catch::filterTests(std::vector<Catch::TestCaseHandle> const&,Catch::TestSpec const&,Catch::IConfig const&)
mov rax, [r12]
mov rdi, r12
mov rsi, r14
call qword ptr [rax+0B0h]
mov rdi, [rsp+128h+var_128]; void *
test rdi, rdi
jz short loc_55EBC
mov rsi, [rsp+128h+var_118]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_55EBC:
cmp byte ptr [r15+9], 1
mov [rsp+128h+var_D0], r12
jnz loc_560DE
mov rax, [r15]
mov rdi, r15
call qword ptr [rax+68h]
mov rbx, rax
call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void)
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+18h]
mov rcx, [rax]
mov rdi, rax
mov rsi, r15
call qword ptr [rcx+20h]
lea r14, [rsp+128h+var_78]
mov rdi, r14
mov rsi, rax
mov rdx, rbx
mov rcx, r15
call _ZN5Catch11filterTestsERKSt6vectorINS_14TestCaseHandleESaIS1_EERKNS_8TestSpecERKNS_7IConfigE; Catch::filterTests(std::vector<Catch::TestCaseHandle> const&,Catch::TestSpec const&,Catch::IConfig const&)
lea rax, [rsp+128h+var_58]
mov dword ptr [rax], 0
xor esi, esi
mov [rax+8], rsi
mov [rax+10h], rax
mov [rax+18h], rax
mov [rax+20h], rsi
mov rax, [r14]
mov rcx, [r14+8]
mov [rsp+128h+var_88], rcx
cmp rax, rcx
jz loc_56047
mov [rsp+128h+var_D8], r15
lea rbp, [rsp+128h+var_110]
lea r12, [rsp+128h+var_60]
mov r13, rsp
loc_55F58:
mov [rsp+128h+var_80], rax
mov rax, [rax]
mov rbx, [rax+50h]
mov r15, [rax+58h]
loc_55F6B:
cmp rbx, r15
jz loc_5601B
mov rdi, r12
mov rsi, rbx
call _ZNSt8_Rb_treeIN5Catch9StringRefESt4pairIKS1_NS0_7TagInfoEESt10_Select1stIS5_ENS0_6Detail19CaseInsensitiveLessESaIS5_EE4findERS3_; std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::find(Catch::StringRef const&)
mov r14, rax
lea rax, [rsp+128h+var_58]
cmp r14, rax
jnz short loc_55FF8
xor ecx, ecx
mov [rsp+128h+var_B8], rcx
xorps xmm1, xmm1
movaps [rsp+128h+var_C8], xmm1
lea rax, [rsp+128h+var_C8+8]
mov [rsp+128h+var_B0], rax
mov [rsp+128h+var_A8], rax
movups xmmword ptr [rax+20h], xmm1
movups xmm0, xmmword ptr [rbx]
movaps xmmword ptr [rsp+128h+var_128], xmm0
mov [rsp+128h+var_108], rcx
mov [rsp+128h+var_100], rbp
mov [rsp+128h+var_F8], rbp
mov [rsp+128h+var_110], 0
movups xmmword ptr [rbp+20h], xmm1
mov rdi, r12
mov rsi, r13
call _ZNSt8_Rb_treeIN5Catch9StringRefESt4pairIKS1_NS0_7TagInfoEESt10_Select1stIS5_ENS0_6Detail19CaseInsensitiveLessESaIS5_EE17_M_emplace_uniqueIJS2_IS1_S4_EEEES2_ISt17_Rb_tree_iteratorIS5_EbEDpOT_; std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::_M_emplace_unique<std::pair<Catch::StringRef,Catch::TagInfo>>(std::pair<Catch::StringRef,Catch::TagInfo> &&)
mov r14, rax
lea rdi, [rsp+128h+var_118]
call _ZNSt8_Rb_treeIN5Catch9StringRefES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EED2Ev; std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::~_Rb_tree()
lea rdi, [rsp+128h+var_C8]
call _ZNSt8_Rb_treeIN5Catch9StringRefES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EED2Ev; std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::~_Rb_tree()
loc_55FF8:
movups xmm0, xmmword ptr [rbx]
movups xmmword ptr [rsp+128h+var_128], xmm0
inc qword ptr [r14+60h]
add r14, 30h ; '0'
mov rdi, r14
mov rsi, r13
call _ZNSt8_Rb_treeIN5Catch9StringRefES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE16_M_insert_uniqueIRKS1_EESt4pairISt17_Rb_tree_iteratorIS1_EbEOT_; std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::_M_insert_unique<Catch::StringRef const&>(Catch::StringRef const&)
add rbx, 10h
jmp loc_55F6B
loc_5601B:
mov rax, [rsp+128h+var_80]
add rax, 10h
cmp rax, [rsp+128h+var_88]
jnz loc_55F58
mov rsi, [rsp+128h+var_38]
mov r12, [rsp+128h+var_D0]
mov r15, [rsp+128h+var_D8]
loc_56047:
xorps xmm0, xmm0
mov rdi, rsp
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
call _ZNSt6vectorIN5Catch7TagInfoESaIS1_EE7reserveEm; std::vector<Catch::TagInfo>::reserve(ulong)
mov rbx, [rsp+128h+var_48]
lea rax, [rsp+128h+var_58]
cmp rbx, rax
jz short loc_56099
mov r14, rsp
loc_56075:
lea rsi, [rbx+30h]
mov rdi, r14
call _ZNSt6vectorIN5Catch7TagInfoESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<Catch::TagInfo>::emplace_back<Catch::TagInfo>(Catch::TagInfo &&)
mov rdi, rbx
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov rbx, rax
lea rax, [rsp+128h+var_58]
cmp rbx, rax
jnz short loc_56075
loc_56099:
mov rax, [r12]
mov rsi, rsp
mov rdi, r12
call qword ptr [rax+0B8h]
mov rdi, rsp
call _ZNSt6vectorIN5Catch7TagInfoESaIS1_EED2Ev; std::vector<Catch::TagInfo>::~vector()
lea rdi, [rsp+128h+var_60]
call _ZNSt8_Rb_treeIN5Catch9StringRefESt4pairIKS1_NS0_7TagInfoEESt10_Select1stIS5_ENS0_6Detail19CaseInsensitiveLessESaIS5_EED2Ev; std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::~_Rb_tree()
mov rdi, [rsp+128h+var_78]; void *
test rdi, rdi
jz short loc_560DB
mov rsi, [rsp+128h+var_68]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_560DB:
mov bpl, 1
loc_560DE:
cmp byte ptr [r15+0Ah], 1
jnz loc_561E7
mov [rsp+128h+var_D8], r15
xorps xmm0, xmm0
movaps [rsp+128h+var_C8], xmm0
mov [rsp+128h+var_B8], 0
call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void)
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+10h]
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+18h]
mov r15, rax
mov rsi, [rax+28h]
lea rdi, [rsp+128h+var_C8]
call _ZNSt6vectorIN5Catch19ReporterDescriptionESaIS1_EE7reserveEm; std::vector<Catch::ReporterDescription>::reserve(ulong)
mov r12, [r15+18h]
add r15, 8
cmp r12, r15
jz loc_561BE
lea r14, [rsp+128h+var_118]
lea r13, [rsp+128h+var_108]
mov rbx, rsp
lea rbp, [rsp+128h+var_C8]
loc_5614A:
mov [rsp+128h+var_128], r14
mov rsi, [r12+20h]
mov rdx, [r12+28h]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rsi, [r12+40h]
mov rax, [rsi]
mov rdi, r13
call qword ptr [rax+18h]
mov rdi, rbp
mov rsi, rbx
call _ZNSt6vectorIN5Catch19ReporterDescriptionESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<Catch::ReporterDescription>::emplace_back<Catch::ReporterDescription>(Catch::ReporterDescription &&)
mov rdi, [rsp+128h+var_108]; void *
lea rax, [rsp+128h+var_F8]
cmp rdi, rax
jz short loc_56198
mov rsi, [rsp+128h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_56198:
mov rdi, [rsp+128h+var_128]; void *
cmp rdi, r14
jz short loc_561AE
mov rsi, [rsp+128h+var_118]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_561AE:
mov rdi, r12
call __ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base const*)
mov r12, rax
cmp rax, r15
jnz short loc_5614A
loc_561BE:
mov r12, [rsp+128h+var_D0]
mov rax, [r12]
lea rsi, [rsp+128h+var_C8]
mov rdi, r12
call qword ptr [rax+0A0h]
lea rdi, [rsp+128h+var_C8]
call _ZNSt6vectorIN5Catch19ReporterDescriptionESaIS1_EED2Ev; std::vector<Catch::ReporterDescription>::~vector()
mov bpl, 1
mov r15, [rsp+128h+var_D8]
loc_561E7:
cmp byte ptr [r15+0Bh], 1
jnz loc_562BB
xorps xmm0, xmm0
movaps [rsp+128h+var_C8], xmm0
mov [rsp+128h+var_B8], 0
call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void)
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+10h]
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+20h]
mov rbx, rax
mov rsi, [rax+8]
sub rsi, [rax]
sar rsi, 3
lea rdi, [rsp+128h+var_C8]
call _ZNSt6vectorIN5Catch19ListenerDescriptionESaIS1_EE7reserveEm; std::vector<Catch::ListenerDescription>::reserve(ulong)
mov r12, [rbx]
mov r13, [rbx+8]
cmp r12, r13
jz short loc_5629B
lea rbx, [rsp+128h+var_118]
lea rbp, [rsp+128h+var_108]
lea r14, [rsp+128h+var_C8]
mov r15, rsp
loc_56250:
mov rdi, [r12]
mov rax, [rdi]
call qword ptr [rax+18h]
mov [rsp+128h+var_128], rax
mov [rsp+128h+var_128+8], rdx
mov rsi, [r12]
mov rax, [rsi]
mov rdi, rbx
call qword ptr [rax+20h]
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorIN5Catch19ListenerDescriptionESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<Catch::ListenerDescription>::emplace_back<Catch::ListenerDescription>(Catch::ListenerDescription &&)
mov rdi, [rsp+128h+var_118]; void *
cmp rdi, rbp
jz short loc_56292
mov rsi, [rsp+128h+var_108]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_56292:
add r12, 8
cmp r12, r13
jnz short loc_56250
loc_5629B:
mov rdi, [rsp+128h+var_D0]
mov rax, [rdi]
lea rsi, [rsp+128h+var_C8]
call qword ptr [rax+0A8h]
lea rdi, [rsp+128h+var_C8]
call _ZNSt6vectorIN5Catch19ListenerDescriptionESaIS1_EED2Ev; std::vector<Catch::ListenerDescription>::~vector()
mov bpl, 1
loc_562BB:
mov eax, ebp
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+0]
test rdi, rdi
jz loc_563A4
mov rsi, [rsp+arg_8]
jmp loc_5639C
jmp short loc_562EF
jmp short loc_5634F
jmp short loc_56318
loc_562EF:
mov rbx, rax
mov rdi, rsp
call _ZNSt6vectorIN5Catch7TagInfoESaIS1_EED2Ev; std::vector<Catch::TagInfo>::~vector()
jmp short loc_5637A
mov rbx, rax
mov rdi, [rsp+arg_8]; void *
cmp rdi, rbp
jz short loc_56352
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_56352
loc_56318:
mov rbx, rax
jmp short loc_56343
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r14
jz short loc_56343
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_56343
mov rbx, rax
mov rdi, rsp; this
call _ZN5Catch19ReporterDescriptionD2Ev; Catch::ReporterDescription::~ReporterDescription()
loc_56343:
lea rdi, [rsp+arg_58]
call _ZNSt6vectorIN5Catch19ReporterDescriptionESaIS1_EED2Ev; std::vector<Catch::ReporterDescription>::~vector()
jmp short loc_563A4
loc_5634F:
mov rbx, rax
loc_56352:
lea rdi, [rsp+arg_58]
call _ZNSt6vectorIN5Catch19ListenerDescriptionESaIS1_EED2Ev; std::vector<Catch::ListenerDescription>::~vector()
jmp short loc_563A4
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt8_Rb_treeIN5Catch9StringRefES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EED2Ev; std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::~_Rb_tree()
lea rdi, [rsp+arg_58]
call _ZNSt8_Rb_treeIN5Catch9StringRefES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EED2Ev; std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::~_Rb_tree()
jmp short loc_5637A
mov rbx, rax
loc_5637A:
lea rdi, [rsp+arg_C0]
call _ZNSt8_Rb_treeIN5Catch9StringRefESt4pairIKS1_NS0_7TagInfoEESt10_Select1stIS5_ENS0_6Detail19CaseInsensitiveLessESaIS5_EED2Ev; std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::~_Rb_tree()
mov rdi, [rsp+arg_A8]; void *
test rdi, rdi
jz short loc_563A4
mov rsi, [rsp+arg_B8]
loc_5639C:
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_563A4:
mov rdi, rbx
call __Unwind_Resume
|
long long Catch::list(Catch *this, void **a2, const Catch::Config *a3)
{
void **v3; // rbp
void **v4; // r15
Catch *v5; // r12
long long v6; // rbx
long long Internal; // rax
long long v8; // rax
long long v9; // rax
bool v10; // zf
long long v11; // rbx
long long v12; // rax
long long v13; // rax
long long v14; // rax
_QWORD *v15; // rax
long long v16; // rax
_OWORD *v17; // rbx
_OWORD *v18; // r15
long long v19; // r14
int *i; // rbx
long long v21; // rax
long long v22; // rax
long long v23; // r15
long long v24; // r12
long long v25; // r15
long long v26; // rax
long long v27; // rax
_QWORD *v28; // rbx
_QWORD *v29; // r12
_QWORD *v30; // r13
void *v31; // rdx
void *v33[2]; // [rsp+0h] [rbp-128h] BYREF
void *v34; // [rsp+10h] [rbp-118h] BYREF
int v35; // [rsp+18h] [rbp-110h] BYREF
void *v36[2]; // [rsp+20h] [rbp-108h] BYREF
int *v37; // [rsp+30h] [rbp-F8h] BYREF
__int128 v38; // [rsp+38h] [rbp-F0h]
void **v39; // [rsp+50h] [rbp-D8h]
Catch *v40; // [rsp+58h] [rbp-D0h]
__int128 v41; // [rsp+60h] [rbp-C8h] BYREF
long long v42; // [rsp+70h] [rbp-B8h]
char *v43; // [rsp+78h] [rbp-B0h]
char *v44; // [rsp+80h] [rbp-A8h]
__int128 v45; // [rsp+88h] [rbp-A0h]
_QWORD *v46; // [rsp+A0h] [rbp-88h]
_QWORD *v47; // [rsp+A8h] [rbp-80h]
void *v48; // [rsp+B0h] [rbp-78h] BYREF
_QWORD *v49; // [rsp+B8h] [rbp-70h]
long long v50; // [rsp+C0h] [rbp-68h]
char v51[8]; // [rsp+C8h] [rbp-60h] BYREF
int v52; // [rsp+D0h] [rbp-58h] BYREF
long long v53; // [rsp+D8h] [rbp-50h]
int *v54; // [rsp+E0h] [rbp-48h]
int *v55; // [rsp+E8h] [rbp-40h]
long long v56; // [rsp+F0h] [rbp-38h]
v4 = a2;
v5 = this;
LOBYTE(v3) = *((_BYTE *)a2 + 8);
if ( (_BYTE)v3 == 1 )
{
v6 = (*((long long ( **)(void **, void **, const Catch::Config *))*a2 + 13))(a2, a2, a3);
Internal = Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(a2);
v8 = (*(long long ( **)(long long))(*(_QWORD *)Internal + 24LL))(Internal);
v9 = (*(long long ( **)(long long, void **))(*(_QWORD *)v8 + 32LL))(v8, a2);
Catch::filterTests(v33, v9, v6, a2);
a2 = v33;
(*(void ( **)(Catch *, void **))(*(_QWORD *)this + 176LL))(this, v33);
this = (Catch *)v33[0];
if ( v33[0] )
{
a2 = (void **)((_BYTE *)v34 - (char *)v33[0]);
operator delete(v33[0], (unsigned long long)v34 - (unsigned long long)v33[0]);
}
}
v10 = *((_BYTE *)v4 + 9) == 1;
v40 = v5;
if ( v10 )
{
v11 = (*((long long ( **)(void **, void **, const Catch::Config *))*v4 + 13))(v4, a2, a3);
v12 = Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(v4);
v13 = (*(long long ( **)(long long))(*(_QWORD *)v12 + 24LL))(v12);
v14 = (*(long long ( **)(long long, void **))(*(_QWORD *)v13 + 32LL))(v13, v4);
Catch::filterTests(&v48, v14, v11, v4);
v52 = 0;
v53 = 0LL;
v54 = &v52;
v55 = &v52;
v56 = 0LL;
v15 = v48;
v46 = v49;
if ( v48 != v49 )
{
v39 = v4;
v3 = (void **)&v35;
do
{
v47 = v15;
v16 = *v15;
v17 = *(_OWORD **)(v16 + 80);
v18 = *(_OWORD **)(v16 + 88);
while ( v17 != v18 )
{
v19 = std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::find(
v51,
v17);
if ( (int *)v19 == &v52 )
{
v42 = 0LL;
v41 = 0LL;
v43 = (char *)&v41 + 8;
v44 = (char *)&v41 + 8;
v45 = 0LL;
*(_OWORD *)v33 = *v17;
v36[0] = 0LL;
v36[1] = &v35;
v37 = &v35;
v35 = 0;
v38 = 0LL;
v19 = std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::_M_emplace_unique<std::pair<Catch::StringRef,Catch::TagInfo>>(
v51,
v33);
std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::~_Rb_tree(&v34);
std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::~_Rb_tree(&v41);
}
*(_OWORD *)v33 = *v17;
++*(_QWORD *)(v19 + 96);
std::_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>::_M_insert_unique<Catch::StringRef const&>(
v19 + 48,
v33);
++v17;
}
v15 = v47 + 2;
}
while ( v47 + 2 != v46 );
v5 = v40;
v4 = v39;
}
*(_OWORD *)v33 = 0LL;
v34 = 0LL;
std::vector<Catch::TagInfo>::reserve(v33);
for ( i = v54; i != &v52; i = (int *)std::_Rb_tree_increment(i) )
std::vector<Catch::TagInfo>::emplace_back<Catch::TagInfo>(v33, i + 12);
(*(void ( **)(Catch *, void **))(*(_QWORD *)v5 + 184LL))(v5, v33);
std::vector<Catch::TagInfo>::~vector(v33);
std::_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef const,Catch::TagInfo>>>::~_Rb_tree(v51);
this = (Catch *)v48;
if ( v48 )
operator delete(v48, v50 - (_QWORD)v48);
LOBYTE(v3) = 1;
}
if ( *((_BYTE *)v4 + 10) == 1 )
{
v39 = v4;
v41 = 0LL;
v42 = 0LL;
v21 = Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(this);
v22 = (*(long long ( **)(long long))(*(_QWORD *)v21 + 16LL))(v21);
v23 = (*(long long ( **)(long long))(*(_QWORD *)v22 + 24LL))(v22);
std::vector<Catch::ReporterDescription>::reserve(&v41, *(_QWORD *)(v23 + 40));
v24 = *(_QWORD *)(v23 + 24);
v25 = v23 + 8;
if ( v24 != v25 )
{
v3 = (void **)&v41;
do
{
v33[0] = &v34;
std::string::_M_construct<char *>(v33, *(_BYTE **)(v24 + 32), *(_QWORD *)(v24 + 32) + *(_QWORD *)(v24 + 40));
(*(void ( **)(void **))(**(_QWORD **)(v24 + 64) + 24LL))(v36);
std::vector<Catch::ReporterDescription>::emplace_back<Catch::ReporterDescription>(&v41, v33);
if ( v36[0] != &v37 )
operator delete(v36[0], (unsigned long long)v37 + 1);
if ( v33[0] != &v34 )
operator delete(v33[0], (unsigned long long)v34 + 1);
v24 = std::_Rb_tree_increment(v24);
}
while ( v24 != v25 );
}
(*(void ( **)(Catch *, __int128 *))(*(_QWORD *)v40 + 160LL))(v40, &v41);
this = (Catch *)&v41;
std::vector<Catch::ReporterDescription>::~vector(&v41);
LOBYTE(v3) = 1;
v4 = v39;
}
if ( *((_BYTE *)v4 + 11) == 1 )
{
v41 = 0LL;
v42 = 0LL;
v26 = Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(this);
v27 = (*(long long ( **)(long long))(*(_QWORD *)v26 + 16LL))(v26);
v28 = (_QWORD *)(*(long long ( **)(long long))(*(_QWORD *)v27 + 32LL))(v27);
std::vector<Catch::ListenerDescription>::reserve(&v41, (long long)(v28[1] - *v28) >> 3);
v29 = (_QWORD *)*v28;
v30 = (_QWORD *)v28[1];
if ( (_QWORD *)*v28 != v30 )
{
v3 = v36;
do
{
v33[0] = (void *)(*(long long ( **)(_QWORD))(*(_QWORD *)*v29 + 24LL))(*v29);
v33[1] = v31;
(*(void ( **)(void **))(*(_QWORD *)*v29 + 32LL))(&v34);
std::vector<Catch::ListenerDescription>::emplace_back<Catch::ListenerDescription>(&v41, v33);
if ( v34 != v36 )
operator delete(v34, (unsigned long long)v36[0] + 1);
++v29;
}
while ( v29 != v30 );
}
(*(void ( **)(Catch *, __int128 *))(*(_QWORD *)v40 + 168LL))(v40, &v41);
std::vector<Catch::ListenerDescription>::~vector(&v41);
LOBYTE(v3) = 1;
}
return (unsigned int)v3;
}
|
list:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOV R15,RSI
MOV R12,RDI
MOV BPL,byte ptr [RSI + 0x8]
CMP BPL,0x1
JNZ 0x00155ebc
MOV RAX,qword ptr [R15]
MOV RDI,R15
CALL qword ptr [RAX + 0x68]
MOV RBX,RAX
CALL 0x001735c6
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [RCX + 0x18]
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
MOV RSI,R15
CALL qword ptr [RCX + 0x20]
MOV R14,RSP
MOV RDI,R14
MOV RSI,RAX
MOV RDX,RBX
MOV RCX,R15
CALL 0x0016217c
MOV RAX,qword ptr [R12]
LAB_00155e9a:
MOV RDI,R12
MOV RSI,R14
CALL qword ptr [RAX + 0xb0]
LAB_00155ea6:
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x00155ebc
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x00117150
LAB_00155ebc:
CMP byte ptr [R15 + 0x9],0x1
MOV qword ptr [RSP + 0x58],R12
JNZ 0x001560de
MOV RAX,qword ptr [R15]
MOV RDI,R15
CALL qword ptr [RAX + 0x68]
MOV RBX,RAX
CALL 0x001735c6
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [RCX + 0x18]
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
MOV RSI,R15
CALL qword ptr [RCX + 0x20]
LEA R14,[RSP + 0xb0]
MOV RDI,R14
MOV RSI,RAX
MOV RDX,RBX
MOV RCX,R15
CALL 0x0016217c
LEA RAX,[RSP + 0xd0]
MOV dword ptr [RAX],0x0
XOR ESI,ESI
MOV qword ptr [RAX + 0x8],RSI
MOV qword ptr [RAX + 0x10],RAX
MOV qword ptr [RAX + 0x18],RAX
MOV qword ptr [RAX + 0x20],RSI
MOV RAX,qword ptr [R14]
MOV RCX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0xa0],RCX
CMP RAX,RCX
JZ 0x00156047
MOV qword ptr [RSP + 0x50],R15
LEA RBP,[RSP + 0x18]
LEA R12,[RSP + 0xc8]
MOV R13,RSP
LAB_00155f58:
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RAX]
MOV RBX,qword ptr [RAX + 0x50]
MOV R15,qword ptr [RAX + 0x58]
LAB_00155f6b:
CMP RBX,R15
JZ 0x0015601b
LAB_00155f74:
MOV RDI,R12
MOV RSI,RBX
CALL 0x0017e948
MOV R14,RAX
LEA RAX,[RSP + 0xd0]
CMP R14,RAX
JNZ 0x00155ff8
XOR ECX,ECX
MOV qword ptr [RSP + 0x70],RCX
XORPS XMM1,XMM1
MOVAPS xmmword ptr [RSP + 0x60],XMM1
LEA RAX,[RSP + 0x68]
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RAX
MOVUPS xmmword ptr [RAX + 0x20],XMM1
MOVUPS XMM0,xmmword ptr [RBX]
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x20],RCX
MOV qword ptr [RSP + 0x28],RBP
MOV qword ptr [RSP + 0x30],RBP
MOV dword ptr [RSP + 0x18],0x0
MOVUPS xmmword ptr [RBP + 0x20],XMM1
LAB_00155fd6:
MOV RDI,R12
MOV RSI,R13
CALL 0x0017e9de
MOV R14,RAX
LEA RDI,[RSP + 0x10]
CALL 0x0017eba8
LEA RDI,[RSP + 0x60]
CALL 0x0017eba8
LAB_00155ff8:
MOVUPS XMM0,xmmword ptr [RBX]
MOVUPS xmmword ptr [RSP],XMM0
INC qword ptr [R14 + 0x60]
ADD R14,0x30
LAB_00156007:
MOV RDI,R14
MOV RSI,R13
CALL 0x00185ada
ADD RBX,0x10
JMP 0x00155f6b
LAB_0015601b:
MOV RAX,qword ptr [RSP + 0xa8]
ADD RAX,0x10
CMP RAX,qword ptr [RSP + 0xa0]
JNZ 0x00155f58
MOV RSI,qword ptr [RSP + 0xf0]
MOV R12,qword ptr [RSP + 0x58]
MOV R15,qword ptr [RSP + 0x50]
LAB_00156047:
XORPS XMM0,XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
LAB_00156058:
CALL 0x0017e854
MOV RBX,qword ptr [RSP + 0xe0]
LEA RAX,[RSP + 0xd0]
CMP RBX,RAX
JZ 0x00156099
MOV R14,RSP
LAB_00156075:
LEA RSI,[RBX + 0x30]
LAB_00156079:
MOV RDI,R14
CALL 0x0017ec60
MOV RDI,RBX
CALL 0x00117bd0
MOV RBX,RAX
LEA RAX,[RSP + 0xd0]
CMP RBX,RAX
JNZ 0x00156075
LAB_00156099:
MOV RAX,qword ptr [R12]
LAB_0015609d:
MOV RSI,RSP
MOV RDI,R12
CALL qword ptr [RAX + 0xb8]
MOV RDI,RSP
CALL 0x0017e900
LEA RDI,[RSP + 0xc8]
CALL 0x0017edf0
MOV RDI,qword ptr [RSP + 0xb0]
TEST RDI,RDI
JZ 0x001560db
MOV RSI,qword ptr [RSP + 0xc0]
SUB RSI,RDI
CALL 0x00117150
LAB_001560db:
MOV BPL,0x1
LAB_001560de:
CMP byte ptr [R15 + 0xa],0x1
JNZ 0x001561e7
MOV qword ptr [RSP + 0x50],R15
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM0
MOV qword ptr [RSP + 0x70],0x0
LAB_001560ff:
CALL 0x001735c6
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [RCX + 0x18]
MOV R15,RAX
MOV RSI,qword ptr [RAX + 0x28]
LEA RDI,[RSP + 0x60]
CALL 0x0017ee48
MOV R12,qword ptr [R15 + 0x18]
ADD R15,0x8
CMP R12,R15
JZ 0x001561be
LEA R14,[RSP + 0x10]
LEA R13,[RSP + 0x20]
MOV RBX,RSP
LEA RBP,[RSP + 0x60]
LAB_0015614a:
MOV qword ptr [RSP],R14
MOV RSI,qword ptr [R12 + 0x20]
MOV RDX,qword ptr [R12 + 0x28]
ADD RDX,RSI
LAB_0015615b:
MOV RDI,RBX
CALL 0x001251d8
MOV RSI,qword ptr [R12 + 0x40]
MOV RAX,qword ptr [RSI]
LAB_0015616b:
MOV RDI,R13
CALL qword ptr [RAX + 0x18]
LAB_00156171:
MOV RDI,RBP
MOV RSI,RBX
CALL 0x0017f060
MOV RDI,qword ptr [RSP + 0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x00156198
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00117150
LAB_00156198:
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JZ 0x001561ae
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00117150
LAB_001561ae:
MOV RDI,R12
CALL 0x00117ae0
MOV R12,RAX
CMP RAX,R15
JNZ 0x0015614a
LAB_001561be:
MOV R12,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [R12]
LAB_001561c7:
LEA RSI,[RSP + 0x60]
MOV RDI,R12
CALL qword ptr [RAX + 0xa0]
LEA RDI,[RSP + 0x60]
CALL 0x0017ef12
MOV BPL,0x1
MOV R15,qword ptr [RSP + 0x50]
LAB_001561e7:
CMP byte ptr [R15 + 0xb],0x1
JNZ 0x001562bb
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM0
MOV qword ptr [RSP + 0x70],0x0
LAB_00156203:
CALL 0x001735c6
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RAX]
MOV RDI,RAX
CALL qword ptr [RCX + 0x20]
MOV RBX,RAX
MOV RSI,qword ptr [RAX + 0x8]
SUB RSI,qword ptr [RAX]
SAR RSI,0x3
LEA RDI,[RSP + 0x60]
CALL 0x0017f206
MOV R12,qword ptr [RBX]
MOV R13,qword ptr [RBX + 0x8]
CMP R12,R13
JZ 0x0015629b
LEA RBX,[RSP + 0x10]
LEA RBP,[RSP + 0x20]
LEA R14,[RSP + 0x60]
MOV R15,RSP
LAB_00156250:
MOV RDI,qword ptr [R12]
MOV RAX,qword ptr [RDI]
LAB_00156257:
CALL qword ptr [RAX + 0x18]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV RSI,qword ptr [R12]
MOV RAX,qword ptr [RSI]
MOV RDI,RBX
CALL qword ptr [RAX + 0x20]
LAB_00156270:
MOV RDI,R14
MOV RSI,R15
CALL 0x0017f392
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,RBP
JZ 0x00156292
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00117150
LAB_00156292:
ADD R12,0x8
CMP R12,R13
JNZ 0x00156250
LAB_0015629b:
MOV RDI,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RDI]
LAB_001562a3:
LEA RSI,[RSP + 0x60]
CALL qword ptr [RAX + 0xa8]
LAB_001562ae:
LEA RDI,[RSP + 0x60]
CALL 0x0017f30e
MOV BPL,0x1
LAB_001562bb:
MOV EAX,EBP
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Catch::list(Catch::IEventListener&, Catch::Config const&) */
ulong Catch::list(IEventListener *param_1,Config *param_2)
{
int8 *puVar1;
TestSpec *pTVar2;
long *plVar3;
vector *pvVar4;
int4 *puVar5;
_Rb_tree_node_base *p_Var6;
long lVar7;
int8 *puVar8;
int8 unaff_RBP;
vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *this;
int1 auVar9 [16];
int1 local_128 [16];
vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *local_118;
int4 local_110 [2];
vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> **local_108;
vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *local_100;
vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *local_f8;
int8 local_f0;
int8 uStack_e8;
Config *local_d8;
IEventListener *local_d0;
int8 local_c8;
int8 uStack_c0;
int8 local_b8;
int8 *local_b0;
int8 *local_a8;
int8 local_a0;
int8 uStack_98;
long *local_88;
long *local_80;
long *local_78;
long *local_70;
long local_68;
_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef_const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef_const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef_const,Catch::TagInfo>>>
local_60 [8];
int4 local_58 [2];
int8 local_50;
_Rb_tree_node_base *local_48;
_Rb_tree_node_base *local_40;
ulong local_38;
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
CONCAT71((int7)((ulong)unaff_RBP >> 8),param_2[8]);
if (param_2[8] == (Config)0x1) {
pTVar2 = (TestSpec *)(**(code **)(*(long *)param_2 + 0x68))(param_2);
plVar3 = (long *)Singleton<Catch::(anonymous_namespace)::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>
::getInternal();
plVar3 = (long *)(**(code **)(*plVar3 + 0x18))(plVar3);
pvVar4 = (vector *)(**(code **)(*plVar3 + 0x20))(plVar3,param_2);
filterTests((Catch *)local_128,pvVar4,pTVar2,(IConfig *)param_2);
/* try { // try from 00155e9a to 00155ea5 has its CatchHandler @ 001562cf */
(**(code **)(*(long *)param_1 + 0xb0))(param_1,local_128);
if ((vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> **)
local_128._0_8_ !=
(vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> **)0x0) {
operator_delete((void *)local_128._0_8_,(long)local_118 - local_128._0_8_);
}
}
local_d0 = param_1;
if (param_2[9] == (Config)0x1) {
pTVar2 = (TestSpec *)(**(code **)(*(long *)param_2 + 0x68))(param_2);
plVar3 = (long *)Singleton<Catch::(anonymous_namespace)::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>
::getInternal();
plVar3 = (long *)(**(code **)(*plVar3 + 0x18))(plVar3);
pvVar4 = (vector *)(**(code **)(*plVar3 + 0x20))(plVar3,param_2);
filterTests((Catch *)&local_78,pvVar4,pTVar2,(IConfig *)param_2);
local_48 = (_Rb_tree_node_base *)local_58;
local_58[0] = 0;
local_50 = 0;
local_38 = 0;
local_88 = local_70;
local_40 = local_48;
if (local_78 != local_70) {
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
local_110;
plVar3 = local_78;
local_d8 = param_2;
do {
puVar1 = *(int8 **)(*plVar3 + 0x58);
local_80 = plVar3;
for (puVar8 = *(int8 **)(*plVar3 + 0x50); puVar8 != puVar1; puVar8 = puVar8 + 2) {
/* try { // try from 00155f74 to 00155f7e has its CatchHandler @ 00156377 */
puVar5 = (int4 *)
std::
_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef_const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef_const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef_const,Catch::TagInfo>>>
::find(local_60,(StringRef *)puVar8);
if (puVar5 == local_58) {
local_b8 = 0;
local_c8 = 0;
uStack_c0 = 0;
local_b0 = &uStack_c0;
local_a0 = 0;
uStack_98 = 0;
local_128._0_8_ = *puVar8;
local_128._8_8_ = puVar8[1];
local_108 = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>>
**)0x0;
local_110[0] = 0;
local_f0 = 0;
uStack_e8 = 0;
local_100 = this;
local_f8 = this;
local_a8 = local_b0;
/* try { // try from 00155fd6 to 00155fe0 has its CatchHandler @ 0015635e */
puVar5 = (int4 *)
std::
_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef_const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef_const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef_const,Catch::TagInfo>>>
::_M_emplace_unique<std::pair<Catch::StringRef,Catch::TagInfo>>
(local_60,(pair *)local_128);
std::
_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>
::~_Rb_tree((_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>
*)&local_118);
std::
_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>
::~_Rb_tree((_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>
*)&local_c8);
}
local_128._0_8_ = *puVar8;
local_128._8_8_ = puVar8[1];
*(long *)(puVar5 + 0x18) = *(long *)(puVar5 + 0x18) + 1;
/* try { // try from 00156007 to 00156011 has its CatchHandler @ 00156377 */
std::
_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>
::_M_insert_unique<Catch::StringRef_const&>
((_Rb_tree<Catch::StringRef,Catch::StringRef,std::_Identity<Catch::StringRef>,std::less<Catch::StringRef>,std::allocator<Catch::StringRef>>
*)(puVar5 + 0xc),local_128);
}
plVar3 = local_80 + 2;
param_1 = local_d0;
param_2 = local_d8;
} while (plVar3 != local_88);
}
local_128._0_8_ =
(vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> **)0x0;
local_128._8_8_ = 0;
local_118 = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)0x0
;
/* try { // try from 00156058 to 0015605c has its CatchHandler @ 001562e9 */
std::vector<Catch::TagInfo,std::allocator<Catch::TagInfo>>::reserve
((vector<Catch::TagInfo,std::allocator<Catch::TagInfo>> *)local_128,local_38);
p_Var6 = local_48;
if (local_48 != (_Rb_tree_node_base *)local_58) {
do {
/* try { // try from 00156079 to 00156080 has its CatchHandler @ 001562ef */
std::vector<Catch::TagInfo,std::allocator<Catch::TagInfo>>::emplace_back<Catch::TagInfo>
((vector<Catch::TagInfo,std::allocator<Catch::TagInfo>> *)local_128,
(TagInfo *)(p_Var6 + 0x30));
p_Var6 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var6);
} while (p_Var6 != (_Rb_tree_node_base *)local_58);
}
/* try { // try from 0015609d to 001560a8 has its CatchHandler @ 001562e9 */
(**(code **)(*(long *)param_1 + 0xb8))(param_1,local_128);
std::vector<Catch::TagInfo,std::allocator<Catch::TagInfo>>::~vector
((vector<Catch::TagInfo,std::allocator<Catch::TagInfo>> *)local_128);
std::
_Rb_tree<Catch::StringRef,std::pair<Catch::StringRef_const,Catch::TagInfo>,std::_Select1st<std::pair<Catch::StringRef_const,Catch::TagInfo>>,Catch::Detail::CaseInsensitiveLess,std::allocator<std::pair<Catch::StringRef_const,Catch::TagInfo>>>
::~_Rb_tree(local_60);
if (local_78 != (long *)0x0) {
operator_delete(local_78,local_68 - (long)local_78);
}
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
CONCAT71((int7)((ulong)this >> 8),1);
}
if (param_2[10] == (Config)0x1) {
local_c8 = 0;
uStack_c0 = 0;
local_b8 = 0;
local_d8 = param_2;
/* try { // try from 001560ff to 00156126 has its CatchHandler @ 001562ed */
plVar3 = (long *)Singleton<Catch::(anonymous_namespace)::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>
::getInternal();
plVar3 = (long *)(**(code **)(*plVar3 + 0x10))(plVar3);
lVar7 = (**(code **)(*plVar3 + 0x18))(plVar3);
std::vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>>::reserve
((vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
&local_c8,*(ulong *)(lVar7 + 0x28));
p_Var6 = *(_Rb_tree_node_base **)(lVar7 + 0x18);
if (p_Var6 != (_Rb_tree_node_base *)(lVar7 + 8)) {
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
&local_c8;
do {
local_128._0_8_ = &local_118;
/* try { // try from 0015615b to 00156162 has its CatchHandler @ 00156318 */
std::__cxx11::string::_M_construct<char*>
(local_128,*(long *)(p_Var6 + 0x20),
*(long *)(p_Var6 + 0x28) + *(long *)(p_Var6 + 0x20));
/* try { // try from 0015616b to 00156170 has its CatchHandler @ 0015631d */
(**(code **)(**(long **)(p_Var6 + 0x40) + 0x18))(&local_108);
/* try { // try from 00156171 to 0015617b has its CatchHandler @ 00156338 */
std::vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>>::
emplace_back<Catch::ReporterDescription>(this,(ReporterDescription *)local_128);
if (local_108 != &local_f8) {
operator_delete(local_108,(ulong)(local_f8 + 1));
}
if ((vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> **)
local_128._0_8_ != &local_118) {
operator_delete((void *)local_128._0_8_,(ulong)(local_118 + 1));
}
p_Var6 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var6);
} while (p_Var6 != (_Rb_tree_node_base *)(lVar7 + 8));
}
/* try { // try from 001561c7 to 001561d4 has its CatchHandler @ 001562ed */
(**(code **)(*(long *)local_d0 + 0xa0))(local_d0,&local_c8);
std::vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>>::~vector
((vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
&local_c8);
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
CONCAT71((int7)((ulong)this >> 8),1);
param_2 = local_d8;
}
if (param_2[0xb] == (Config)0x1) {
local_c8 = 0;
uStack_c0 = 0;
local_b8 = 0;
/* try { // try from 00156203 to 00156231 has its CatchHandler @ 001562eb */
plVar3 = (long *)Singleton<Catch::(anonymous_namespace)::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>
::getInternal();
plVar3 = (long *)(**(code **)(*plVar3 + 0x10))(plVar3);
plVar3 = (long *)(**(code **)(*plVar3 + 0x20))(plVar3);
std::vector<Catch::ListenerDescription,std::allocator<Catch::ListenerDescription>>::reserve
((vector<Catch::ListenerDescription,std::allocator<Catch::ListenerDescription>> *)
&local_c8,plVar3[1] - *plVar3 >> 3);
puVar8 = (int8 *)*plVar3;
puVar1 = (int8 *)plVar3[1];
if (puVar8 != puVar1) {
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
&local_108;
do {
/* try { // try from 00156257 to 0015626f has its CatchHandler @ 0015634f */
auVar9 = (**(code **)(*(long *)*puVar8 + 0x18))();
local_128 = auVar9;
(**(code **)(*(long *)*puVar8 + 0x20))(&local_118);
/* try { // try from 00156270 to 0015627a has its CatchHandler @ 001562fc */
std::vector<Catch::ListenerDescription,std::allocator<Catch::ListenerDescription>>::
emplace_back<Catch::ListenerDescription>
((vector<Catch::ListenerDescription,std::allocator<Catch::ListenerDescription>> *)
&local_c8,(ListenerDescription *)local_128);
if (local_118 != this) {
operator_delete(local_118,(long)local_108 + 1);
}
puVar8 = puVar8 + 1;
} while (puVar8 != puVar1);
}
/* try { // try from 001562a3 to 001562ad has its CatchHandler @ 001562eb */
(**(code **)(*(long *)local_d0 + 0xa8))(local_d0,&local_c8);
std::vector<Catch::ListenerDescription,std::allocator<Catch::ListenerDescription>>::~vector
((vector<Catch::ListenerDescription,std::allocator<Catch::ListenerDescription>> *)
&local_c8);
this = (vector<Catch::ReporterDescription,std::allocator<Catch::ReporterDescription>> *)
CONCAT71((int7)((ulong)this >> 8),1);
}
return (ulong)this & 0xffffffff;
}
|
|
11,568 |
fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
llama.cpp/common/common.cpp
|
bool fs_create_directory_with_parents(const std::string & path) {
#ifdef _WIN32
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
std::wstring wpath = converter.from_bytes(path);
// if the path already exists, check whether it's a directory
const DWORD attributes = GetFileAttributesW(wpath.c_str());
if ((attributes != INVALID_FILE_ATTRIBUTES) && (attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return true;
}
size_t pos_slash = 0;
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('\\', pos_slash)) != std::string::npos) {
const std::wstring subpath = wpath.substr(0, pos_slash);
const wchar_t * test = subpath.c_str();
const bool success = CreateDirectoryW(test, NULL);
if (!success) {
const DWORD error = GetLastError();
// if the path already exists, ensure that it's a directory
if (error == ERROR_ALREADY_EXISTS) {
const DWORD attributes = GetFileAttributesW(subpath.c_str());
if (attributes == INVALID_FILE_ATTRIBUTES || !(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return false;
}
} else {
return false;
}
}
pos_slash += 1;
}
return true;
#else
// if the path already exists, check whether it's a directory
struct stat info;
if (stat(path.c_str(), &info) == 0) {
return S_ISDIR(info.st_mode);
}
size_t pos_slash = 1; // skip leading slashes for directory creation
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('/', pos_slash)) != std::string::npos) {
const std::string subpath = path.substr(0, pos_slash);
struct stat info;
// if the path already exists, ensure that it's a directory
if (stat(subpath.c_str(), &info) == 0) {
if (!S_ISDIR(info.st_mode)) {
return false;
}
} else {
// create parent directories
const int ret = mkdir(subpath.c_str(), 0755);
if (ret != 0) {
return false;
}
}
pos_slash += 1;
}
return true;
#endif // _WIN32
}
|
O3
|
cpp
|
fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x20140
testl %eax, %eax
je 0xfc0df
movl $0x1, %r14d
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movl $0x2f, %esi
movq %r14, %rdx
callq 0x21290
cmpq $-0x1, %rax
sete %bpl
je 0xfc0f4
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x21140
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x20140
testl %eax, %eax
je 0xfc0a0
movq 0x8(%rsp), %rdi
movl $0x1ed, %esi # imm = 0x1ED
callq 0x204a0
testl %eax, %eax
je 0xfc0b2
xorl %r13d, %r13d
jmp 0xfc0b8
movl 0x40(%rsp), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax # imm = 0x4000
jne 0xfc09b
incq %r14
movb $0x1, %r13b
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xfc0d4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20180
testb %r13b, %r13b
jne 0xfc046
jmp 0xfc0f4
movl $0xf000, %eax # imm = 0xF000
andl 0xd0(%rsp), %eax
cmpl $0x4000, %eax # imm = 0x4000
sete %bpl
movl %ebp, %eax
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_Z32fs_create_directory_with_parentsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov rbx, rdi
mov rdi, [rdi]
lea rsi, [rsp+178h+var_C0]
call _stat
test eax, eax
jz loc_FC0DF
mov r14d, 1
lea r15, [rsp+178h+var_170]
lea r12, [rsp+178h+var_150]
loc_FC046:
mov rdi, rbx
mov esi, 2Fh ; '/'
mov rdx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
setz bpl
jz loc_FC0F4
mov r14, rax
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, [rsp+178h+var_170]
mov rsi, r12
call _stat
test eax, eax
jz short loc_FC0A0
mov rdi, [rsp+178h+var_170]
mov esi, 1EDh
call _mkdir
test eax, eax
jz short loc_FC0B2
loc_FC09B:
xor r13d, r13d
jmp short loc_FC0B8
loc_FC0A0:
mov eax, [rsp+178h+var_138]
mov ecx, 0F000h
and eax, ecx
cmp eax, 4000h
jnz short loc_FC09B
loc_FC0B2:
inc r14
mov r13b, 1
loc_FC0B8:
mov rdi, [rsp+178h+var_170]; void *
lea rax, [rsp+178h+var_160]
cmp rdi, rax
jz short loc_FC0D4
mov rsi, [rsp+178h+var_160]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_FC0D4:
test r13b, r13b
jnz loc_FC046
jmp short loc_FC0F4
loc_FC0DF:
mov eax, 0F000h
and eax, [rsp+178h+var_A8]
cmp eax, 4000h
setz bpl
loc_FC0F4:
mov eax, ebp
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long fs_create_directory_with_parents(_QWORD *a1)
{
unsigned int v1; // ebp
long long v2; // r14
long long v3; // rax
char v4; // r13
void *v6; // [rsp+8h] [rbp-170h] BYREF
long long v7; // [rsp+18h] [rbp-160h] BYREF
_BYTE v8[24]; // [rsp+28h] [rbp-150h] BYREF
int v9; // [rsp+40h] [rbp-138h]
_BYTE v10[24]; // [rsp+B8h] [rbp-C0h] BYREF
int v11; // [rsp+D0h] [rbp-A8h]
if ( (unsigned int)stat(*a1, v10) )
{
v2 = 1LL;
while ( 1 )
{
v3 = std::string::find(a1, 47LL, v2);
LOBYTE(v1) = v3 == -1;
if ( v3 == -1 )
return v1;
v2 = v3;
std::string::substr(&v6, a1, 0LL, v3);
if ( (unsigned int)stat(v6, v8) )
{
if ( !(unsigned int)mkdir(v6, 493LL) )
goto LABEL_8;
}
else if ( (v9 & 0xF000) == 0x4000 )
{
LABEL_8:
++v2;
v4 = 1;
goto LABEL_9;
}
v4 = 0;
LABEL_9:
if ( v6 != &v7 )
operator delete(v6, v7 + 1);
if ( !v4 )
return v1;
}
}
LOBYTE(v1) = (v11 & 0xF000) == 0x4000;
return v1;
}
|
fs_create_directory_with_parents:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[RSP + 0xb8]
CALL 0x00120140
TEST EAX,EAX
JZ 0x001fc0df
MOV R14D,0x1
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x28]
LAB_001fc046:
MOV RDI,RBX
MOV ESI,0x2f
MOV RDX,R14
CALL 0x00121290
CMP RAX,-0x1
SETZ BPL
JZ 0x001fc0f4
MOV R14,RAX
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,RAX
CALL 0x00121140
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x00120140
TEST EAX,EAX
JZ 0x001fc0a0
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1ed
CALL 0x001204a0
TEST EAX,EAX
JZ 0x001fc0b2
LAB_001fc09b:
XOR R13D,R13D
JMP 0x001fc0b8
LAB_001fc0a0:
MOV EAX,dword ptr [RSP + 0x40]
MOV ECX,0xf000
AND EAX,ECX
CMP EAX,0x4000
JNZ 0x001fc09b
LAB_001fc0b2:
INC R14
MOV R13B,0x1
LAB_001fc0b8:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001fc0d4
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00120180
LAB_001fc0d4:
TEST R13B,R13B
JNZ 0x001fc046
JMP 0x001fc0f4
LAB_001fc0df:
MOV EAX,0xf000
AND EAX,dword ptr [RSP + 0xd0]
CMP EAX,0x4000
SETZ BPL
LAB_001fc0f4:
MOV EAX,EBP
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fs_create_directory_with_parents(std::__cxx11::string const&) */
ulong fs_create_directory_with_parents(string *param_1)
{
bool bVar1;
int iVar2;
long lVar3;
ulong unaff_RBP;
long *local_170 [2];
long local_160 [2];
stat local_150;
stat local_c0;
iVar2 = stat(*(char **)param_1,&local_c0);
if (iVar2 == 0) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),(local_c0.st_mode & 0xf000) == 0x4000);
}
else {
do {
lVar3 = std::__cxx11::string::find((char)param_1,0x2f);
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),lVar3 == -1);
if (lVar3 == -1) break;
std::__cxx11::string::substr((ulong)local_170,(ulong)param_1);
iVar2 = stat((char *)local_170[0],&local_150);
if (iVar2 == 0) {
if ((local_150.st_mode & 0xf000) != 0x4000) goto LAB_001fc09b;
LAB_001fc0b2:
bVar1 = true;
}
else {
iVar2 = mkdir((char *)local_170[0],0x1ed);
if (iVar2 == 0) goto LAB_001fc0b2;
LAB_001fc09b:
bVar1 = false;
}
if (local_170[0] != local_160) {
operator_delete(local_170[0],local_160[0] + 1);
}
} while (bVar1);
}
return unaff_RBP & 0xffffffff;
}
|
|
11,569 |
testing::internal::FloatingPoint<double>::AlmostEquals(testing::internal::FloatingPoint<double> const&) const
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h
|
bool AlmostEquals(const FloatingPoint& rhs) const {
// The IEEE standard says that any comparison operation involving
// a NAN must return false.
if (is_nan() || rhs.is_nan()) return false;
return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) <=
kMaxUlps;
}
|
O3
|
c
|
testing::internal::FloatingPoint<double>::AlmostEquals(testing::internal::FloatingPoint<double> const&) const:
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
movq (%rdi), %rax
movq %rax, %rcx
notq %rcx
testq %rdx, %rcx
sete %cl
movq %rax, %rdi
shlq $0xc, %rdi
setne %dil
testb %dil, %cl
jne 0xe172
movabsq $0xfffffffffffff, %rdi # imm = 0xFFFFFFFFFFFFF
movq (%rsi), %rcx
movq %rcx, %rsi
notq %rsi
testq %rsi, %rdx
sete %dl
testq %rdi, %rcx
setne %sil
testb %sil, %dl
je 0xe175
xorl %eax, %eax
retq
movq %rax, %rdx
negq %rdx
movq %rax, %rsi
btsq $0x3f, %rsi
testq %rax, %rax
cmovsq %rdx, %rsi
movq %rcx, %rax
negq %rax
movq %rcx, %rdx
btsq $0x3f, %rdx
testq %rcx, %rcx
cmovsq %rax, %rdx
movq %rsi, %rax
subq %rdx, %rax
negq %rax
subq %rdx, %rsi
cmovbq %rax, %rsi
cmpq $0x5, %rsi
setb %al
retq
|
_ZNK7testing8internal13FloatingPointIdE12AlmostEqualsERKS2_:
mov rdx, 7FF0000000000000h
mov rax, [rdi]
mov rcx, rax
not rcx
test rcx, rdx
setz cl
mov rdi, rax
shl rdi, 0Ch
setnz dil
test cl, dil
jnz short loc_E172
mov rdi, 0FFFFFFFFFFFFFh
mov rcx, [rsi]
mov rsi, rcx
not rsi
test rdx, rsi
setz dl
test rcx, rdi
setnz sil
test dl, sil
jz short loc_E175
loc_E172:
xor eax, eax
retn
loc_E175:
mov rdx, rax
neg rdx
mov rsi, rax
bts rsi, 3Fh ; '?'
test rax, rax
cmovs rsi, rdx
mov rax, rcx
neg rax
mov rdx, rcx
bts rdx, 3Fh ; '?'
test rcx, rcx
cmovs rdx, rax
mov rax, rsi
sub rax, rdx
neg rax
sub rsi, rdx
cmovb rsi, rax
cmp rsi, 5
setb al
retn
|
bool testing::internal::FloatingPoint<double>::AlmostEquals(long long *a1, long long *a2)
{
long long v2; // rax
long long v3; // rcx
unsigned long long v5; // rsi
unsigned long long v6; // rdx
unsigned long long v7; // rax
bool v8; // cf
unsigned long long v9; // rsi
v2 = *a1;
if ( *a1 << 12 != 0 && (~*a1 & 0x7FF0000000000000LL) == 0 )
return 0;
v3 = *a2;
if ( (*a2 & 0xFFFFFFFFFFFFFLL) != 0 && (~*a2 & 0x7FF0000000000000LL) == 0 )
return 0;
v5 = v2 | 0x8000000000000000LL;
if ( v2 < 0 )
v5 = -v2;
v6 = v3 | 0x8000000000000000LL;
if ( v3 < 0 )
v6 = -v3;
v7 = v6 - v5;
v8 = v5 < v6;
v9 = v5 - v6;
if ( v8 )
v9 = v7;
return v9 < 5;
}
|
AlmostEquals:
MOV RDX,0x7ff0000000000000
MOV RAX,qword ptr [RDI]
MOV RCX,RAX
NOT RCX
TEST RCX,RDX
SETZ CL
MOV RDI,RAX
SHL RDI,0xc
SETNZ DIL
TEST CL,DIL
JNZ 0x0010e172
MOV RDI,0xfffffffffffff
MOV RCX,qword ptr [RSI]
MOV RSI,RCX
NOT RSI
TEST RDX,RSI
SETZ DL
TEST RCX,RDI
SETNZ SIL
TEST DL,SIL
JZ 0x0010e175
LAB_0010e172:
XOR EAX,EAX
RET
LAB_0010e175:
MOV RDX,RAX
NEG RDX
MOV RSI,RAX
BTS RSI,0x3f
TEST RAX,RAX
CMOVS RSI,RDX
MOV RAX,RCX
NEG RAX
MOV RDX,RCX
BTS RDX,0x3f
TEST RCX,RCX
CMOVS RDX,RAX
MOV RAX,RSI
SUB RAX,RDX
NEG RAX
SUB RSI,RDX
CMOVC RSI,RAX
CMP RSI,0x5
SETC AL
RET
|
/* testing::internal::FloatingPoint<double>::AlmostEquals(testing::internal::FloatingPoint<double>
const&) const */
int8 __thiscall
testing::internal::FloatingPoint<double>::AlmostEquals
(FloatingPoint<double> *this,FloatingPoint *param_1)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
uVar1 = *(ulong *)this;
if (((~uVar1 & 0x7ff0000000000000) != 0 || (uVar1 & 0xfffffffffffff) == 0) &&
(uVar3 = *(ulong *)param_1,
(~uVar3 & 0x7ff0000000000000) != 0 || (uVar3 & 0xfffffffffffff) == 0)) {
uVar2 = uVar1 | 0x8000000000000000;
if ((long)uVar1 < 0) {
uVar2 = -uVar1;
}
uVar1 = uVar3 | 0x8000000000000000;
if ((long)uVar3 < 0) {
uVar1 = -uVar3;
}
uVar3 = uVar2 - uVar1;
if (uVar2 < uVar1) {
uVar3 = -(uVar2 - uVar1);
}
return CONCAT71((int7)(-(uVar2 - uVar1) >> 8),uVar3 < 5);
}
return 0;
}
|
|
11,570 |
LefDefParser::lefiViaRule::propValue(int) const
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiViaRule.cpp
|
const char *
lefiViaRule::propValue(int i) const
{
char msg[160];
if (i < 0 || i >= numProps_) {
sprintf(msg, "ERROR (LEFPARS-1431): The index number %d given for the VIARULE PROPERTY is invalid.\nValid index is from 0 to %d", i, numProps_);
lefiError(0, 1431, msg);
return 0;
}
return values_[i];
}
|
O3
|
cpp
|
LefDefParser::lefiViaRule::propValue(int) const:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movl %esi, %edx
testl %esi, %esi
setns %al
movl 0x1d8(%rdi), %ecx
cmpl %esi, %ecx
setg %sil
testb %sil, %al
je 0x2dfef
movq 0x1e8(%rdi), %rax
movl %edx, %ecx
movq (%rax,%rcx,8), %rbx
jmp 0x2e014
leaq 0x30b43(%rip), %rsi # 0x5eb39
xorl %ebx, %ebx
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2050
xorl %edi, %edi
movl $0x597, %esi # imm = 0x597
movq %r14, %rdx
callq 0x33d78
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
|
_ZNK12LefDefParser11lefiViaRule9propValueEi:
push r14
push rbx
sub rsp, 0A8h
mov edx, esi
test esi, esi
setns al
mov ecx, [rdi+1D8h]
cmp ecx, esi
setnle sil
test al, sil
jz short loc_2DFEF
mov rax, [rdi+1E8h]
mov ecx, edx
mov rbx, [rax+rcx*8]
jmp short loc_2E014
loc_2DFEF:
lea rsi, aErrorLefpars14_11; "ERROR (LEFPARS-1431): The index number "...
xor ebx, ebx
mov r14, rsp
mov rdi, r14
xor eax, eax
call _sprintf
xor edi, edi; this
mov esi, 597h; int
mov rdx, r14; int
call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*)
loc_2E014:
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r14
retn
|
long long LefDefParser::lefiViaRule::propValue(LefDefParser::lefiViaRule *this, signed int a2)
{
int v2; // ecx
long long v3; // rbx
const char *v4; // rcx
_BYTE v6[184]; // [rsp+0h] [rbp-B8h] BYREF
v2 = *((_DWORD *)this + 118);
if ( v2 > a2 && a2 >= 0 )
return *(_QWORD *)(*((_QWORD *)this + 61) + 8LL * (unsigned int)a2);
v3 = 0LL;
sprintf(
v6,
"ERROR (LEFPARS-1431): The index number %d given for the VIARULE PROPERTY is invalid.\nValid index is from 0 to %d",
a2,
v2);
LefDefParser::lefiError(0LL, 1431, (int)v6, v4);
return v3;
}
|
propValue:
PUSH R14
PUSH RBX
SUB RSP,0xa8
MOV EDX,ESI
TEST ESI,ESI
SETNS AL
MOV ECX,dword ptr [RDI + 0x1d8]
CMP ECX,ESI
SETG SIL
TEST AL,SIL
JZ 0x0012dfef
MOV RAX,qword ptr [RDI + 0x1e8]
MOV ECX,EDX
MOV RBX,qword ptr [RAX + RCX*0x8]
JMP 0x0012e014
LAB_0012dfef:
LEA RSI,[0x15eb39]
XOR EBX,EBX
MOV R14,RSP
MOV RDI,R14
XOR EAX,EAX
CALL 0x00102050
XOR EDI,EDI
MOV ESI,0x597
MOV RDX,R14
CALL 0x00133d78
LAB_0012e014:
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R14
RET
|
/* LefDefParser::lefiViaRule::propValue(int) const */
int8 __thiscall LefDefParser::lefiViaRule::propValue(lefiViaRule *this,int param_1)
{
int8 uVar1;
char acStack_b8 [168];
if (param_1 < 0 || *(int *)(this + 0x1d8) <= param_1) {
uVar1 = 0;
sprintf(acStack_b8,
"ERROR (LEFPARS-1431): The index number %d given for the VIARULE PROPERTY is invalid.\nValid index is from 0 to %d"
);
lefiError(0,0x597,acStack_b8);
}
else {
uVar1 = *(int8 *)(*(long *)(this + 0x1e8) + (ulong)(uint)param_1 * 8);
}
return uVar1;
}
|
|
11,571 |
nglog::tools::ShutdownLoggingUtilities()
|
ng-log[P]ng-log/src/utilities.cc
|
void ShutdownLoggingUtilities() {
CHECK(IsLoggingInitialized())
<< "You called ShutdownLogging() without calling "
"InitializeLogging() first!";
g_program_invocation_short_name = nullptr;
#ifdef HAVE_SYSLOG_H
closelog();
#endif
}
|
O0
|
cpp
|
nglog::tools::ShutdownLoggingUtilities():
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
callq 0x4f6f0
xorb $-0x1, %al
movb $0x0, -0x69(%rbp)
testb $0x1, %al
jne 0x4fa0c
jmp 0x4fa89
leaq 0x37fb(%rip), %rsi # 0x5320e
leaq -0x68(%rbp), %rdi
movq %rdi, -0x90(%rbp)
movl $0x134, %edx # imm = 0x134
callq 0x18db0
movq -0x90(%rbp), %rdi
movb $0x1, -0x69(%rbp)
callq 0x148e0
movq %rax, -0x88(%rbp)
jmp 0x4fa41
movq -0x88(%rbp), %rdi
leaq 0x3855(%rip), %rsi # 0x532a4
callq 0x9700
movq %rax, -0x98(%rbp)
jmp 0x4fa5d
movq -0x98(%rbp), %rdi
leaq 0x385f(%rip), %rsi # 0x532ca
callq 0x9700
movq %rax, -0xa0(%rbp)
jmp 0x4fa79
movq -0xa0(%rbp), %rsi
leaq -0x1(%rbp), %rdi
callq 0xec60
testb $0x1, -0x69(%rbp)
jne 0x4fa91
jmp 0x4faae
leaq -0x68(%rbp), %rdi
callq 0x18e20
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
testb $0x1, -0x69(%rbp)
jne 0x4fac7
jmp 0x4fad2
movq $0x0, 0x3826f(%rip) # 0x87d28
callq 0x96f0
addq $0xa0, %rsp
popq %rbp
retq
leaq -0x68(%rbp), %rdi
callq 0x18e20
jmp 0x4fad2
jmp 0x4fad4
movq -0x78(%rbp), %rdi
callq 0x9d40
movq %rax, %rdi
callq 0xcb80
nopw %cs:(%rax,%rax)
|
_ZN5nglog5tools24ShutdownLoggingUtilitiesEv:
push rbp
mov rbp, rsp
sub rsp, 0A0h
call _ZN5nglog20IsLoggingInitializedEv; nglog::IsLoggingInitialized(void)
xor al, 0FFh
mov [rbp+var_69], 0
test al, 1
jnz short loc_4FA0C
jmp short loc_4FA89
loc_4FA0C:
lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rbp+var_68]; this
mov [rbp+var_90], rdi
mov edx, 134h; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, [rbp+var_90]; this
mov [rbp+var_69], 1
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov [rbp+var_88], rax
jmp short $+2
loc_4FA41:
mov rdi, [rbp+var_88]
lea rsi, aCheckFailedIsl_0; "Check failed: IsLoggingInitialized() "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_98], rax
jmp short $+2
loc_4FA5D:
mov rdi, [rbp+var_98]
lea rsi, aYouCalledShutd; "You called ShutdownLogging() without ca"...
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_A0], rax
jmp short $+2
loc_4FA79:
mov rsi, [rbp+var_A0]
lea rdi, [rbp+var_1]
call _ZNK5nglog8internal17LogMessageVoidifyanERSo; nglog::internal::LogMessageVoidify::operator&(std::ostream &)
loc_4FA89:
test [rbp+var_69], 1
jnz short loc_4FA91
jmp short loc_4FAAE
loc_4FA91:
lea rdi, [rbp+var_68]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rcx, rax
mov eax, edx
mov [rbp+var_78], rcx
mov [rbp+var_7C], eax
test [rbp+var_69], 1
jnz short loc_4FAC7
jmp short loc_4FAD2
loc_4FAAE:
mov cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
call _closelog
add rsp, 0A0h
pop rbp
retn
loc_4FAC7:
lea rdi, [rbp+var_68]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short $+2
loc_4FAD2:
jmp short $+2
loc_4FAD4:
mov rdi, [rbp+var_78]
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
|
long long nglog::tools::ShutdownLoggingUtilities(nglog::tools *this, long long a2)
{
long long v3; // [rsp+8h] [rbp-98h]
long long v4; // [rsp+18h] [rbp-88h]
char v5; // [rsp+37h] [rbp-69h]
nglog::LogDestination *v6[12]; // [rsp+38h] [rbp-68h] BYREF
char v7; // [rsp+9Fh] [rbp-1h] BYREF
v5 = 0;
if ( !nglog::IsLoggingInitialized(this) )
{
nglog::LogMessageFatal::LogMessageFatal(
v6,
(std::this_thread *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
0x134u);
v5 = 1;
v4 = nglog::LogMessage::stream((nglog::LogMessage *)v6);
v3 = std::operator<<<std::char_traits<char>>(v4, "Check failed: IsLoggingInitialized() ");
a2 = std::operator<<<std::char_traits<char>>(
v3,
"You called ShutdownLogging() without calling InitializeLogging() first!");
this = (nglog::tools *)&v7;
nglog::internal::LogMessageVoidify::operator&();
}
if ( (v5 & 1) != 0 )
nglog::LogMessageFatal::~LogMessageFatal(v6);
nglog::g_program_invocation_short_name = 0LL;
return closelog(this, a2);
}
|
ShutdownLoggingUtilities:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
CALL 0x0014f6f0
XOR AL,0xff
MOV byte ptr [RBP + -0x69],0x0
TEST AL,0x1
JNZ 0x0014fa0c
JMP 0x0014fa89
LAB_0014fa0c:
LEA RSI,[0x15320e]
LEA RDI,[RBP + -0x68]
MOV qword ptr [RBP + -0x90],RDI
MOV EDX,0x134
CALL 0x00118db0
MOV RDI,qword ptr [RBP + -0x90]
MOV byte ptr [RBP + -0x69],0x1
LAB_0014fa33:
CALL 0x001148e0
MOV qword ptr [RBP + -0x88],RAX
JMP 0x0014fa41
LAB_0014fa41:
MOV RDI,qword ptr [RBP + -0x88]
LEA RSI,[0x1532a4]
CALL 0x00109700
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0014fa5d
LAB_0014fa5d:
MOV RDI,qword ptr [RBP + -0x98]
LEA RSI,[0x1532ca]
CALL 0x00109700
LAB_0014fa70:
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0014fa79
LAB_0014fa79:
MOV RSI,qword ptr [RBP + -0xa0]
LEA RDI,[RBP + -0x1]
CALL 0x0010ec60
LAB_0014fa89:
TEST byte ptr [RBP + -0x69],0x1
JNZ 0x0014fa91
JMP 0x0014faae
LAB_0014fa91:
LEA RDI,[RBP + -0x68]
CALL 0x00118e20
LAB_0014fa9a:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RBP + -0x78],RCX
MOV dword ptr [RBP + -0x7c],EAX
TEST byte ptr [RBP + -0x69],0x1
JNZ 0x0014fac7
JMP 0x0014fad2
LAB_0014faae:
MOV qword ptr [0x00187d28],0x0
CALL 0x001096f0
ADD RSP,0xa0
POP RBP
RET
LAB_0014fac7:
LEA RDI,[RBP + -0x68]
CALL 0x00118e20
LAB_0014fad0:
JMP 0x0014fad2
LAB_0014fad2:
JMP 0x0014fad4
LAB_0014fad4:
MOV RDI,qword ptr [RBP + -0x78]
CALL 0x00109d40
|
/* nglog::tools::ShutdownLoggingUtilities() */
void nglog::tools::ShutdownLoggingUtilities(void)
{
byte bVar1;
ostream *poVar2;
int8 uVar3;
bool bVar4;
LogMessageFatal local_70 [103];
LogMessageVoidify local_9;
bVar1 = IsLoggingInitialized();
bVar4 = ((bVar1 ^ 0xff) & 1) != 0;
if (bVar4) {
LogMessageFatal::LogMessageFatal
(local_70,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/utilities.cc",
0x134);
/* try { // try from 0014fa33 to 0014fa6f has its CatchHandler @ 0014fa9a */
poVar2 = (ostream *)LogMessage::stream((LogMessage *)local_70);
poVar2 = std::operator<<(poVar2,"Check failed: IsLoggingInitialized() ");
poVar2 = std::operator<<(poVar2,
"You called ShutdownLogging() without calling InitializeLogging() first!"
);
internal::LogMessageVoidify::operator&(&local_9,poVar2);
uVar3 = LogMessageFatal::~LogMessageFatal(local_70);
/* catch(type#1 @ 00000000) { ... } // from try @ 0014fa33 with catch @ 0014fa9a
*/
if (bVar4) {
/* try { // try from 0014fac7 to 0014facf has its CatchHandler @ 0014fadd */
LogMessageFatal::~LogMessageFatal(local_70);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar3);
}
g_program_invocation_short_name = 0;
closelog();
return;
}
|
|
11,572 |
ftb_phrase_add_word
|
eloqsql/storage/myisam/ft_boolean_search.c
|
static int ftb_phrase_add_word(MYSQL_FTPARSER_PARAM *param,
const char *word, int word_len,
MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused)))
{
MY_FTB_PHRASE_PARAM *phrase_param= param->mysql_ftparam;
FT_WORD *w= (FT_WORD *)phrase_param->document->data;
LIST *phrase, *document;
w->pos= (uchar*) word;
w->len= word_len;
phrase_param->document= phrase_param->document->prev;
if (phrase_param->phrase_length > phrase_param->document_length)
{
phrase_param->document_length++;
return 0;
}
/* TODO: rewrite phrase search to avoid
comparing the same word twice. */
for (phrase= phrase_param->phrase, document= phrase_param->document->next;
phrase; phrase= phrase->next, document= document->next)
{
FT_WORD *phrase_word= (FT_WORD *)phrase->data;
FT_WORD *document_word= (FT_WORD *)document->data;
if (my_strnncoll(phrase_param->cs, (uchar*) phrase_word->pos,
phrase_word->len,
(uchar*) document_word->pos, document_word->len))
return 0;
}
phrase_param->match++;
return 0;
}
|
O3
|
c
|
ftb_phrase_add_word:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rbx
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rax
movq %rsi, (%rax)
movslq %edx, %rcx
movq %rcx, 0x10(%rax)
movq 0x8(%rbx), %rax
movq (%rax), %r14
movq %r14, 0x8(%rbx)
movl 0x1c(%rbx), %eax
cmpl %eax, 0x18(%rbx)
jbe 0x72a1e
incl %eax
movl %eax, 0x1c(%rbx)
jmp 0x72a5f
movq (%rbx), %r15
testq %r15, %r15
je 0x72a5c
movq 0x8(%r14), %r14
movq 0x10(%r15), %rax
movq 0x10(%r14), %r8
movq 0x10(%rbx), %rdi
movq 0xc0(%rdi), %r10
movq (%rax), %rsi
movq 0x10(%rax), %rdx
movq (%r8), %rcx
movq 0x10(%r8), %r8
xorl %r9d, %r9d
callq *0x8(%r10)
testl %eax, %eax
jne 0x72a5f
movq 0x8(%r15), %r15
jmp 0x72a21
incl 0x20(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
ftb_phrase_add_word:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, [rdi+18h]
mov rax, [rbx+8]
mov rax, [rax+10h]
mov [rax], rsi
movsxd rcx, edx
mov [rax+10h], rcx
mov rax, [rbx+8]
mov r14, [rax]
mov [rbx+8], r14
mov eax, [rbx+1Ch]
cmp [rbx+18h], eax
jbe short loc_72A1E
inc eax
mov [rbx+1Ch], eax
jmp short loc_72A5F
loc_72A1E:
mov r15, [rbx]
loc_72A21:
test r15, r15
jz short loc_72A5C
mov r14, [r14+8]
mov rax, [r15+10h]
mov r8, [r14+10h]
mov rdi, [rbx+10h]
mov r10, [rdi+0C0h]
mov rsi, [rax]
mov rdx, [rax+10h]
mov rcx, [r8]
mov r8, [r8+10h]
xor r9d, r9d
call qword ptr [r10+8]
test eax, eax
jnz short loc_72A5F
mov r15, [r15+8]
jmp short loc_72A21
loc_72A5C:
inc dword ptr [rbx+20h]
loc_72A5F:
xor eax, eax
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long ftb_phrase_add_word(long long a1, long long a2, int a3)
{
long long v3; // rax
long long *v4; // rbx
_QWORD *v5; // rax
long long v6; // r14
unsigned int v7; // eax
long long i; // r15
long long v10; // [rsp-8h] [rbp-20h]
v10 = v3;
v4 = *(long long **)(a1 + 24);
v5 = *(_QWORD **)(v4[1] + 16);
*v5 = a2;
v5[2] = a3;
v6 = *(_QWORD *)v4[1];
v4[1] = v6;
v7 = *((_DWORD *)v4 + 7);
if ( *((_DWORD *)v4 + 6) <= v7 )
{
for ( i = *v4; i; i = *(_QWORD *)(i + 8) )
{
v6 = *(_QWORD *)(v6 + 8);
if ( (*(unsigned int ( **)(long long, _QWORD, _QWORD, _QWORD, _QWORD, _QWORD, long long))(*(_QWORD *)(v4[2] + 192) + 8LL))(
v4[2],
**(_QWORD **)(i + 16),
*(_QWORD *)(*(_QWORD *)(i + 16) + 16LL),
**(_QWORD **)(v6 + 16),
*(_QWORD *)(*(_QWORD *)(v6 + 16) + 16LL),
0LL,
v10) )
{
return 0LL;
}
}
++*((_DWORD *)v4 + 8);
}
else
{
*((_DWORD *)v4 + 7) = v7 + 1;
}
return 0LL;
}
|
ftb_phrase_add_word:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RDI + 0x18]
MOV RAX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX],RSI
MOVSXD RCX,EDX
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBX + 0x8]
MOV R14,qword ptr [RAX]
MOV qword ptr [RBX + 0x8],R14
MOV EAX,dword ptr [RBX + 0x1c]
CMP dword ptr [RBX + 0x18],EAX
JBE 0x00172a1e
INC EAX
MOV dword ptr [RBX + 0x1c],EAX
JMP 0x00172a5f
LAB_00172a1e:
MOV R15,qword ptr [RBX]
LAB_00172a21:
TEST R15,R15
JZ 0x00172a5c
MOV R14,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [R15 + 0x10]
MOV R8,qword ptr [R14 + 0x10]
MOV RDI,qword ptr [RBX + 0x10]
MOV R10,qword ptr [RDI + 0xc0]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [R8]
MOV R8,qword ptr [R8 + 0x10]
XOR R9D,R9D
CALL qword ptr [R10 + 0x8]
TEST EAX,EAX
JNZ 0x00172a5f
MOV R15,qword ptr [R15 + 0x8]
JMP 0x00172a21
LAB_00172a5c:
INC dword ptr [RBX + 0x20]
LAB_00172a5f:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 ftb_phrase_add_word(long param_1,int8 param_2,int param_3)
{
long *plVar1;
int8 *puVar2;
int iVar3;
long lVar4;
long lVar5;
plVar1 = *(long **)(param_1 + 0x18);
puVar2 = *(int8 **)(plVar1[1] + 0x10);
*puVar2 = param_2;
puVar2[2] = (long)param_3;
lVar4 = *(long *)plVar1[1];
plVar1[1] = lVar4;
if (*(uint *)((long)plVar1 + 0x1c) < *(uint *)(plVar1 + 3)) {
*(uint *)((long)plVar1 + 0x1c) = *(uint *)((long)plVar1 + 0x1c) + 1;
}
else {
for (lVar5 = *plVar1; lVar5 != 0; lVar5 = *(long *)(lVar5 + 8)) {
lVar4 = *(long *)(lVar4 + 8);
iVar3 = (**(code **)(*(long *)(plVar1[2] + 0xc0) + 8))
(plVar1[2],**(int8 **)(lVar5 + 0x10),
(*(int8 **)(lVar5 + 0x10))[2],**(int8 **)(lVar4 + 0x10),
(*(int8 **)(lVar4 + 0x10))[2],0);
if (iVar3 != 0) {
return 0;
}
}
*(int *)(plVar1 + 4) = (int)plVar1[4] + 1;
}
return 0;
}
|
|
11,573 |
convert_fast_array_to_array
|
bluesky950520[P]quickjs/quickjs.c
|
int convert_fast_array_to_array(JSContext *ctx,
JSObject *p)
{
JSProperty *pr;
JSShape *sh;
JSValue *tab;
uint32_t i, len, new_count;
if (js_shape_prepare_update(ctx, p, NULL))
return -1;
len = p->u.array.count;
/* resize the properties once to simplify the error handling */
sh = p->shape;
new_count = sh->prop_count + len;
if (new_count > sh->prop_size) {
if (resize_properties(ctx, &p->shape, p, new_count))
return -1;
}
tab = p->u.array.u.values;
for(i = 0; i < len; i++) {
/* add_property cannot fail here but
__JS_AtomFromUInt32(i) fails for i > INT32_MAX */
pr = add_property(ctx, p, __JS_AtomFromUInt32(i), JS_PROP_C_W_E);
pr->u.value = *tab++;
}
js_free(ctx, p->u.array.u.values);
p->u.array.count = 0;
p->u.array.u.values = NULL; /* fail safe */
p->u.array.u1.size = 0;
p->fast_array = 0;
return 0;
}
|
O2
|
c
|
convert_fast_array_to_array:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %edx, %edx
callq 0x1fe35
pushq $-0x1
popq %rbp
testl %eax, %eax
jne 0x202d1
movl 0x40(%rbx), %r15d
movq 0x18(%rbx), %rax
movl 0x28(%rax), %ecx
addl %r15d, %ecx
cmpl 0x24(%rax), %ecx
jbe 0x2027c
leaq 0x18(%rbx), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3509c
testl %eax, %eax
jne 0x202d1
movq 0x38(%rbx), %r12
xorl %r13d, %r13d
pushq $0x7
popq %rbp
cmpl %r13d, %r15d
je 0x202b2
movl %r13d, %edx
orl $0x80000000, %edx # imm = 0x80000000
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %ecx
callq 0x34d1a
movups (%r12), %xmm0
addq $0x10, %r12
movups %xmm0, (%rax)
incl %r13d
jmp 0x20286
movq 0x38(%rbx), %rsi
movq %r14, %rdi
callq 0x1726e
andl $0x0, 0x40(%rbx)
andq $0x0, 0x38(%rbx)
andl $0x0, 0x30(%rbx)
andb $-0x9, 0x5(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
convert_fast_array_to_array:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
xor edx, edx
call js_shape_prepare_update
push 0FFFFFFFFFFFFFFFFh
pop rbp
test eax, eax
jnz short loc_202D1
mov r15d, [rbx+40h]
mov rax, [rbx+18h]
mov ecx, [rax+28h]
add ecx, r15d
cmp ecx, [rax+24h]
jbe short loc_2027C
lea rsi, [rbx+18h]
mov rdi, r14
mov rdx, rbx
call resize_properties
test eax, eax
jnz short loc_202D1
loc_2027C:
mov r12, [rbx+38h]
xor r13d, r13d
push 7
pop rbp
loc_20286:
cmp r15d, r13d
jz short loc_202B2
mov edx, r13d
or edx, 80000000h
mov rdi, r14
mov rsi, rbx
mov ecx, ebp
call add_property
movups xmm0, xmmword ptr [r12]
add r12, 10h
movups xmmword ptr [rax], xmm0
inc r13d
jmp short loc_20286
loc_202B2:
mov rsi, [rbx+38h]
mov rdi, r14
call js_free
and dword ptr [rbx+40h], 0
and qword ptr [rbx+38h], 0
and dword ptr [rbx+30h], 0
and byte ptr [rbx+5], 0F7h
xor ebp, ebp
loc_202D1:
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long convert_fast_array_to_array(long long a1, long long a2)
{
unsigned int v2; // ebp
int v3; // r15d
__int128 *v4; // r12
int i; // r13d
_OWORD *v6; // rax
__int128 v7; // xmm0
v2 = -1;
if ( !(unsigned int)js_shape_prepare_update(a1, a2, 0LL) )
{
v3 = *(_DWORD *)(a2 + 64);
if ( (unsigned int)(v3 + *(_DWORD *)(*(_QWORD *)(a2 + 24) + 40LL)) <= *(_DWORD *)(*(_QWORD *)(a2 + 24) + 36LL)
|| !(unsigned int)resize_properties(a1, a2 + 24, a2) )
{
v4 = *(__int128 **)(a2 + 56);
for ( i = 0; v3 != i; ++i )
{
v6 = (_OWORD *)add_property(a1, a2, i | 0x80000000, 7LL);
v7 = *v4++;
*v6 = v7;
}
js_free(a1, *(_QWORD *)(a2 + 56));
*(_DWORD *)(a2 + 64) = 0;
*(_QWORD *)(a2 + 56) = 0LL;
*(_DWORD *)(a2 + 48) = 0;
*(_BYTE *)(a2 + 5) &= ~8u;
return 0;
}
}
return v2;
}
|
convert_fast_array_to_array:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
XOR EDX,EDX
CALL 0x0011fe35
PUSH -0x1
POP RBP
TEST EAX,EAX
JNZ 0x001202d1
MOV R15D,dword ptr [RBX + 0x40]
MOV RAX,qword ptr [RBX + 0x18]
MOV ECX,dword ptr [RAX + 0x28]
ADD ECX,R15D
CMP ECX,dword ptr [RAX + 0x24]
JBE 0x0012027c
LEA RSI,[RBX + 0x18]
MOV RDI,R14
MOV RDX,RBX
CALL 0x0013509c
TEST EAX,EAX
JNZ 0x001202d1
LAB_0012027c:
MOV R12,qword ptr [RBX + 0x38]
XOR R13D,R13D
PUSH 0x7
POP RBP
LAB_00120286:
CMP R15D,R13D
JZ 0x001202b2
MOV EDX,R13D
OR EDX,0x80000000
MOV RDI,R14
MOV RSI,RBX
MOV ECX,EBP
CALL 0x00134d1a
MOVUPS XMM0,xmmword ptr [R12]
ADD R12,0x10
MOVUPS xmmword ptr [RAX],XMM0
INC R13D
JMP 0x00120286
LAB_001202b2:
MOV RSI,qword ptr [RBX + 0x38]
MOV RDI,R14
CALL 0x0011726e
AND dword ptr [RBX + 0x40],0x0
AND qword ptr [RBX + 0x38],0x0
AND dword ptr [RBX + 0x30],0x0
AND byte ptr [RBX + 0x5],0xf7
XOR EBP,EBP
LAB_001202d1:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 convert_fast_array_to_array(int8 param_1,long param_2)
{
uint uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int iVar5;
int4 *puVar6;
int4 uVar7;
int4 *puVar8;
uint uVar9;
iVar5 = js_shape_prepare_update(param_1,param_2,0);
uVar7 = 0xffffffff;
if (iVar5 == 0) {
uVar1 = *(uint *)(param_2 + 0x40);
if ((*(uint *)(*(long *)(param_2 + 0x18) + 0x24) <
*(int *)(*(long *)(param_2 + 0x18) + 0x28) + uVar1) &&
(iVar5 = resize_properties(param_1,param_2 + 0x18,param_2), iVar5 != 0)) {
return 0xffffffff;
}
puVar8 = *(int4 **)(param_2 + 0x38);
for (uVar9 = 0; uVar1 != uVar9; uVar9 = uVar9 + 1) {
puVar6 = (int4 *)add_property(param_1,param_2,uVar9 | 0x80000000,7);
uVar7 = *puVar8;
uVar2 = puVar8[1];
uVar3 = puVar8[2];
uVar4 = puVar8[3];
puVar8 = puVar8 + 4;
*puVar6 = uVar7;
puVar6[1] = uVar2;
puVar6[2] = uVar3;
puVar6[3] = uVar4;
}
js_free(param_1,*(int8 *)(param_2 + 0x38));
*(int4 *)(param_2 + 0x40) = 0;
*(int8 *)(param_2 + 0x38) = 0;
*(int4 *)(param_2 + 0x30) = 0;
*(byte *)(param_2 + 5) = *(byte *)(param_2 + 5) & 0xf7;
uVar7 = 0;
}
return uVar7;
}
|
|
11,574 |
testing::Message::operator<<(wchar_t const*)
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
|
Message& Message::operator<<(const wchar_t* wide_c_str) {
return *this << internal::String::ShowWideCString(wide_c_str);
}
|
O1
|
cpp
|
testing::Message::operator<<(wchar_t const*):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1ce2a
movq (%rbx), %rdi
addq $0x10, %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x85b0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1cdf9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ce22
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing7MessagelsEPKw:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
mov rdi, r14; int
call _ZN7testing8internal6String15ShowWideCStringB5cxx11EPKw; testing::internal::String::ShowWideCString(wchar_t const*)
mov rdi, [rbx]
add rdi, 10h
mov rsi, [r14]
mov rdx, [r14+8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1CDF9
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1CDF9:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1CE22
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1CE22:
mov rdi, rbx
call __Unwind_Resume
|
_QWORD * testing::Message::operator<<(_QWORD *a1)
{
void *v2[2]; // [rsp+8h] [rbp-30h] BYREF
long long v3; // [rsp+18h] [rbp-20h] BYREF
testing::internal::String::ShowWideCString[abi:cxx11]((int)v2);
std::__ostream_insert<char,std::char_traits<char>>(*a1 + 16LL, v2[0], v2[1]);
if ( v2[0] != &v3 )
operator delete(v2[0], v3 + 1);
return a1;
}
|
operator<<:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0011ce2a
MOV RDI,qword ptr [RBX]
ADD RDI,0x10
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0011cdd9:
CALL 0x001085b0
LAB_0011cdde:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011cdf9
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_0011cdf9:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* testing::Message::TEMPNAMEPLACEHOLDERVALUE(wchar_t const*) */
Message * __thiscall testing::Message::operator<<(Message *this,wchar_t *param_1)
{
long *local_30;
long local_28;
long local_20 [2];
internal::String::ShowWideCString_abi_cxx11_((String *)&local_30,param_1);
/* try { // try from 0011cdd9 to 0011cddd has its CatchHandler @ 0011ce04 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(*(long *)this + 0x10),(char *)local_30,local_28);
if (local_30 != local_20) {
operator_delete(local_30,local_20[0] + 1);
}
return this;
}
|
|
11,575 |
init_one_value
|
eloqsql/mysys/my_getopt.c
|
static void init_one_value(const struct my_option *option, void *variable,
longlong value)
{
DBUG_ENTER("init_one_value");
switch ((option->var_type & GET_TYPE_MASK)) {
case GET_BOOL:
*((my_bool*) variable)= (my_bool) value;
break;
case GET_INT:
*((int*) variable)= (int) getopt_ll_limit_value((int) value, option, NULL);
break;
case GET_ENUM:
*((ulong*) variable)= (ulong) value;
break;
case GET_UINT:
*((uint*) variable)= (uint) getopt_ull_limit_value((uint) value, option, NULL);
break;
case GET_LONG:
*((long*) variable)= (long) getopt_ll_limit_value((long) value, option, NULL);
break;
case GET_ULONG:
*((ulong*) variable)= (ulong) getopt_ull_limit_value((ulong) value, option, NULL);
break;
case GET_LL:
*((longlong*) variable)= (longlong) getopt_ll_limit_value((longlong) value, option, NULL);
break;
case GET_ULL:
*((ulonglong*) variable)= (ulonglong) getopt_ull_limit_value((ulonglong) value, option, NULL);
break;
case GET_SET:
case GET_FLAGSET:
*((ulonglong*) variable)= (ulonglong) value;
break;
case GET_BIT:
{
ulonglong bit= (option->block_size >= 0 ?
option->block_size :
-option->block_size);
if (option->block_size < 0)
value= !value;
if (value)
(*(ulonglong*)variable)|= bit;
else
(*(ulonglong*)variable)&= ~bit;
break;
}
case GET_DOUBLE:
*((double*) variable)= getopt_ulonglong2double(value);
break;
case GET_STR:
/*
Do not clear variable value if it has no default value.
The default value may already be set.
NOTE: To avoid compiler warnings, we first cast longlong to intptr,
so that the value has the same size as a pointer.
*/
if ((char*) (intptr) value)
*((char**) variable)= (char*) (intptr) value;
break;
case GET_STR_ALLOC:
/*
Do not clear variable value if it has no default value.
The default value may already be set.
NOTE: To avoid compiler warnings, we first cast longlong to intptr,
so that the value has the same size as a pointer.
*/
if ((char*) (intptr) value)
{
char **pstr= (char **) variable;
my_free(*pstr);
*pstr= my_strdup(key_memory_defaults, (char*) (intptr) value, MYF(MY_WME));
}
break;
default: /* dummy default to avoid compiler warnings */
break;
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
init_one_value:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
andl $0x3f, %eax
addq $-0x2, %rax
movq %rax, -0x30(%rbp)
subq $0xe, %rax
ja 0x797ce
movq -0x30(%rbp), %rax
leaq 0x57c04(%rip), %rcx # 0xd11f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rax
movslq %eax, %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x79f90
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rax
movl %eax, %eax
movl %eax, %edi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x7a210
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x79f90
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x7a210
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x79f90
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x7a210
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jl 0x79702
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x79710
movq -0x8(%rbp), %rcx
xorl %eax, %eax
subq 0x60(%rcx), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jge 0x79738
cmpq $0x0, -0x18(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x7974f
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
orq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x79761
movq -0x20(%rbp), %rcx
xorq $-0x1, %rcx
movq -0x10(%rbp), %rax
andq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rdi
callq 0x781b0
movq -0x10(%rbp), %rax
movsd %xmm0, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rax
cmpq $0x0, %rax
je 0x7978b
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
movq -0x18(%rbp), %rax
cmpq $0x0, %rax
je 0x797cc
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rdi
callq 0x7cd70
leaq 0x37aa66(%rip), %rax # 0x3f4218
movl (%rax), %edi
movq -0x18(%rbp), %rsi
movl $0x10, %edx
callq 0x7ce70
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0x797d0
jmp 0x797d0
jmp 0x797d2
jmp 0x797d4
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
init_one_value:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov rax, [rax+30h]
and eax, 3Fh
add rax, 0FFFFFFFFFFFFFFFEh; switch 15 cases
mov [rbp+var_30], rax
sub rax, 0Eh
ja def_795F3; jumptable 00000000000795F3 default case, case 11
mov rax, [rbp+var_30]
lea rcx, jpt_795F3
movsxd rax, ds:(jpt_795F3 - 0D11F0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_795F5:
mov rax, [rbp+var_18]; jumptable 00000000000795F3 case 2
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_797D0
loc_79606:
mov rax, [rbp+var_18]; jumptable 00000000000795F3 case 3
movsxd rdi, eax
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call getopt_ll_limit_value
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], ecx
jmp loc_797D0
loc_79627:
mov rcx, [rbp+var_18]; jumptable 00000000000795F3 case 12
mov rax, [rbp+var_10]
mov [rax], rcx
jmp loc_797D0
loc_79637:
mov rax, [rbp+var_18]; jumptable 00000000000795F3 case 4
mov eax, eax
mov edi, eax
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call getopt_ull_limit_value
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], ecx
jmp loc_797D0
loc_79659:
mov rdi, [rbp+var_18]; jumptable 00000000000795F3 case 5
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call getopt_ll_limit_value
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
jmp loc_797D0
loc_79679:
mov rdi, [rbp+var_18]; jumptable 00000000000795F3 case 6
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call getopt_ull_limit_value
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
jmp loc_797D0
loc_79699:
mov rdi, [rbp+var_18]; jumptable 00000000000795F3 case 7
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call getopt_ll_limit_value
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
jmp loc_797D0
loc_796B9:
mov rdi, [rbp+var_18]; jumptable 00000000000795F3 case 8
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call getopt_ull_limit_value
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
jmp loc_797D0
loc_796D9:
mov rcx, [rbp+var_18]; jumptable 00000000000795F3 cases 13,15
mov rax, [rbp+var_10]
mov [rax], rcx
jmp loc_797D0
loc_796E9:
mov rax, [rbp+var_8]; jumptable 00000000000795F3 case 16
cmp qword ptr [rax+60h], 0
jl short loc_79702
mov rax, [rbp+var_8]
mov rax, [rax+60h]
mov [rbp+var_38], rax
jmp short loc_79710
loc_79702:
mov rcx, [rbp+var_8]
xor eax, eax
sub rax, [rcx+60h]
mov [rbp+var_38], rax
loc_79710:
mov rax, [rbp+var_38]
mov [rbp+var_20], rax
mov rax, [rbp+var_8]
cmp qword ptr [rax+60h], 0
jge short loc_79738
cmp [rbp+var_18], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
mov [rbp+var_18], rax
loc_79738:
cmp [rbp+var_18], 0
jz short loc_7974F
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
or rcx, [rax]
mov [rax], rcx
jmp short loc_79761
loc_7974F:
mov rcx, [rbp+var_20]
xor rcx, 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
and rcx, [rax]
mov [rax], rcx
loc_79761:
jmp short loc_797D0
loc_79763:
mov rdi, [rbp+var_18]; jumptable 00000000000795F3 case 14
call getopt_ulonglong2double
mov rax, [rbp+var_10]
movsd qword ptr [rax], xmm0
jmp short loc_797D0
loc_79776:
mov rax, [rbp+var_18]; jumptable 00000000000795F3 case 9
cmp rax, 0
jz short loc_7978B
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
loc_7978B:
jmp short loc_797D0
loc_7978D:
mov rax, [rbp+var_18]; jumptable 00000000000795F3 case 10
cmp rax, 0
jz short loc_797CC
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rdi, [rax]
call my_free
lea rax, key_memory_defaults
mov edi, [rax]
mov rsi, [rbp+var_18]
mov edx, 10h
call my_strdup
mov rcx, rax
mov rax, [rbp+var_28]
mov [rax], rcx
loc_797CC:
jmp short loc_797D0
def_795F3:
jmp short $+2; jumptable 00000000000795F3 default case, case 11
loc_797D0:
jmp short $+2
loc_797D2:
jmp short $+2
loc_797D4:
add rsp, 40h
pop rbp
retn
|
long long init_one_value(long long a1, long long *a2, long long a3)
{
long long result; // rax
int v4; // ecx
int v5; // ecx
long long v6; // rcx
long long v7; // rcx
long long v8; // rcx
double v9; // xmm0_8
long long v10; // rcx
long long v11; // [rsp+8h] [rbp-38h]
_BOOL8 v12; // [rsp+28h] [rbp-18h]
v12 = a3;
result = (*(_QWORD *)(a1 + 48) & 0x3FLL) - 2;
switch ( *(_QWORD *)(a1 + 48) & 0x3FLL )
{
case 2LL:
result = (long long)a2;
*(_BYTE *)a2 = a3;
break;
case 3LL:
v4 = getopt_ll_limit_value((int)a3, a1, 0LL);
result = (long long)a2;
*(_DWORD *)a2 = v4;
break;
case 4LL:
v5 = getopt_ull_limit_value((unsigned int)a3, a1, 0LL);
result = (long long)a2;
*(_DWORD *)a2 = v5;
break;
case 5LL:
case 7LL:
v6 = getopt_ll_limit_value(a3, a1, 0LL);
result = (long long)a2;
*a2 = v6;
break;
case 6LL:
case 8LL:
v7 = getopt_ull_limit_value(a3, a1, 0LL);
result = (long long)a2;
*a2 = v7;
break;
case 9LL:
result = a3;
if ( a3 )
{
result = (long long)a2;
*a2 = a3;
}
break;
case 0xALL:
result = a3;
if ( a3 )
{
my_free(*a2);
v10 = my_strdup(key_memory_defaults, v12, 16LL);
result = (long long)a2;
*a2 = v10;
}
break;
case 0xCLL:
result = (long long)a2;
*a2 = a3;
break;
case 0xDLL:
case 0xFLL:
result = (long long)a2;
*a2 = a3;
break;
case 0xELL:
v9 = getopt_ulonglong2double(a3);
result = (long long)a2;
*(double *)a2 = v9;
break;
case 0x10LL:
if ( *(long long *)(a1 + 96) < 0 )
v11 = -*(_QWORD *)(a1 + 96);
else
v11 = *(_QWORD *)(a1 + 96);
if ( *(long long *)(a1 + 96) < 0 )
v12 = a3 == 0;
result = (long long)a2;
if ( v12 )
v8 = *a2 | v11;
else
v8 = *a2 & ~v11;
*a2 = v8;
break;
default:
return result;
}
return result;
}
|
init_one_value:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x30]
AND EAX,0x3f
ADD RAX,-0x2
MOV qword ptr [RBP + -0x30],RAX
SUB RAX,0xe
JA 0x001797ce
MOV RAX,qword ptr [RBP + -0x30]
LEA RCX,[0x1d11f0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001797d0
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RDI,EAX
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00179f90
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
JMP 0x001797d0
caseD_c:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001797d0
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,EAX
MOV EDI,EAX
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0017a210
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
JMP 0x001797d0
caseD_5:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00179f90
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001797d0
caseD_6:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0017a210
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001797d0
caseD_7:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00179f90
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001797d0
caseD_8:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0017a210
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001797d0
caseD_d:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x001797d0
caseD_10:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x60],0x0
JL 0x00179702
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00179710
LAB_00179702:
MOV RCX,qword ptr [RBP + -0x8]
XOR EAX,EAX
SUB RAX,qword ptr [RCX + 0x60]
MOV qword ptr [RBP + -0x38],RAX
LAB_00179710:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x60],0x0
JGE 0x00179738
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
MOV qword ptr [RBP + -0x18],RAX
LAB_00179738:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0017974f
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
OR RCX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
JMP 0x00179761
LAB_0017974f:
MOV RCX,qword ptr [RBP + -0x20]
XOR RCX,-0x1
MOV RAX,qword ptr [RBP + -0x10]
AND RCX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
LAB_00179761:
JMP 0x001797d0
caseD_e:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001781b0
MOV RAX,qword ptr [RBP + -0x10]
MOVSD qword ptr [RAX],XMM0
JMP 0x001797d0
caseD_9:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,0x0
JZ 0x0017978b
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
LAB_0017978b:
JMP 0x001797d0
caseD_a:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,0x0
JZ 0x001797cc
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX]
CALL 0x0017cd70
LEA RAX,[0x4f4218]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,0x10
CALL 0x0017ce70
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_001797cc:
JMP 0x001797d0
caseD_b:
JMP 0x001797d0
LAB_001797d0:
JMP 0x001797d2
LAB_001797d2:
JMP 0x001797d4
LAB_001797d4:
ADD RSP,0x40
POP RBP
RET
|
void init_one_value(long param_1,ulong *param_2,ulong param_3)
{
int4 uVar1;
ulong uVar2;
ulong local_40;
ulong local_20;
switch((uint)*(int8 *)(param_1 + 0x30) & 0x3f) {
case 2:
*(char *)param_2 = (char)param_3;
break;
case 3:
uVar1 = getopt_ll_limit_value((long)(int)param_3,param_1,0);
*(int4 *)param_2 = uVar1;
break;
case 4:
uVar1 = getopt_ull_limit_value(param_3 & 0xffffffff,param_1,0);
*(int4 *)param_2 = uVar1;
break;
case 5:
uVar2 = getopt_ll_limit_value(param_3,param_1,0);
*param_2 = uVar2;
break;
case 6:
uVar2 = getopt_ull_limit_value(param_3,param_1,0);
*param_2 = uVar2;
break;
case 7:
uVar2 = getopt_ll_limit_value(param_3,param_1,0);
*param_2 = uVar2;
break;
case 8:
uVar2 = getopt_ull_limit_value(param_3,param_1,0);
*param_2 = uVar2;
break;
case 9:
if (param_3 != 0) {
*param_2 = param_3;
}
break;
case 10:
if (param_3 != 0) {
my_free(*param_2);
uVar2 = my_strdup(key_memory_defaults,param_3,0x10);
*param_2 = uVar2;
}
break;
default:
break;
case 0xc:
*param_2 = param_3;
break;
case 0xd:
case 0xf:
*param_2 = param_3;
break;
case 0xe:
uVar2 = getopt_ulonglong2double(param_3);
*param_2 = uVar2;
break;
case 0x10:
if (*(long *)(param_1 + 0x60) < 0) {
local_40 = -*(long *)(param_1 + 0x60);
}
else {
local_40 = *(ulong *)(param_1 + 0x60);
}
local_20 = param_3;
if (*(long *)(param_1 + 0x60) < 0) {
local_20 = (ulong)(int)(uint)((param_3 != 0 ^ 0xffU) & 1);
}
if (local_20 == 0) {
*param_2 = (local_40 ^ 0xffffffffffffffff) & *param_2;
}
else {
*param_2 = local_40 | *param_2;
}
}
return;
}
|
|
11,576 |
check_skipped_lsn
|
eloqsql/storage/maria/ma_loghandler.c
|
void check_skipped_lsn(MARIA_HA *info, LSN lsn, my_bool index_file,
pgcache_page_no_t page)
{
if (lsn <= log_descriptor.horizon)
{
DBUG_PRINT("info", ("Page is up to date, skipping redo"));
}
else
{
/* Give error, but don't flood the log */
if (skipped_lsn_err_count++ < MAX_LSN_ERRORS &&
! info->s->redo_error_given++)
{
eprint(tracef, "Table %s has wrong LSN: " LSN_FMT " on page: %llu",
(index_file ? info->s->data_file_name.str :
info->s->index_file_name.str),
LSN_IN_PARTS(lsn), (ulonglong) page);
recovery_found_crashed_tables++;
}
}
}
|
O3
|
c
|
check_skipped_lsn:
cmpq %rsi, 0xbb2c2c(%rip) # 0xbff408
jge 0x4c80e
movq %rcx, %r9
movq %rsi, %r8
leaq 0xbb301d(%rip), %rax # 0xbff808
movl (%rax), %ecx
leal 0x1(%rcx), %esi
movl %esi, (%rax)
cmpl $0x9, %ecx
ja 0x4c80e
movq (%rdi), %rax
movb 0x7eb(%rax), %cl
leal 0x1(%rcx), %esi
movb %sil, 0x7eb(%rax)
testb %cl, %cl
je 0x4c80f
retq
pushq %rbp
movq %rsp, %rbp
leaq 0xbb2fde(%rip), %rax # 0xbff7f8
movq (%rax), %rax
xorl %ecx, %ecx
testb %dl, %dl
sete %cl
movq (%rdi), %rdx
shll $0x4, %ecx
movq 0x5c0(%rdx,%rcx), %rdx
movq %r8, %rcx
shrq $0x20, %rcx
leaq 0x8d6e0(%rip), %rsi # 0xd9f20
movq %rax, %rdi
xorl %eax, %eax
callq 0x50690
leaq 0xbb2faf(%rip), %rax # 0xbff800
incq (%rax)
popq %rbp
retq
|
check_skipped_lsn:
cmp cs:qword_BFF408, rsi
jge short locret_4C80E
mov r9, rcx
mov r8, rsi
lea rax, skipped_lsn_err_count
mov ecx, [rax]
lea esi, [rcx+1]
mov [rax], esi
cmp ecx, 9
ja short locret_4C80E
mov rax, [rdi]
mov cl, [rax+7EBh]
lea esi, [rcx+1]
mov [rax+7EBh], sil
test cl, cl
jz short loc_4C80F
locret_4C80E:
retn
loc_4C80F:
push rbp
mov rbp, rsp
lea rax, tracef
mov rax, [rax]
xor ecx, ecx
test dl, dl
setz cl
mov rdx, [rdi]
shl ecx, 4
mov rdx, [rdx+rcx+5C0h]
mov rcx, r8
shr rcx, 20h
lea rsi, aTableSHasWrong; "Table %s has wrong LSN: (%u,0x%x) on pa"...
mov rdi, rax
xor eax, eax
call eprint
lea rax, recovery_found_crashed_tables
inc qword ptr [rax]
pop rbp
retn
|
_QWORD * check_skipped_lsn(long long a1, long long a2, char a3, int a4)
{
char v4; // bp
_QWORD *result; // rax
unsigned int v7; // ecx
char v8; // cl
if ( qword_BFF408 < a2 )
{
result = &skipped_lsn_err_count;
v7 = skipped_lsn_err_count++;
if ( v7 <= 9 )
{
result = *(_QWORD **)a1;
v8 = *(_BYTE *)(*(_QWORD *)a1 + 2027LL);
*(_BYTE *)(*(_QWORD *)a1 + 2027LL) = v8 + 1;
if ( !v8 )
{
eprint(
tracef,
(unsigned int)"Table %s has wrong LSN: (%u,0x%x) on page: %llu",
*(_QWORD *)(*(_QWORD *)a1 + 16 * (unsigned int)(a3 == 0) + 1472LL),
HIDWORD(a2),
a2,
a4,
v4);
result = &recovery_found_crashed_tables;
++recovery_found_crashed_tables;
}
}
}
return result;
}
|
check_skipped_lsn:
CMP qword ptr [0x00cff408],RSI
JGE 0x0014c80e
MOV R9,RCX
MOV R8,RSI
LEA RAX,[0xcff808]
MOV ECX,dword ptr [RAX]
LEA ESI,[RCX + 0x1]
MOV dword ptr [RAX],ESI
CMP ECX,0x9
JA 0x0014c80e
MOV RAX,qword ptr [RDI]
MOV CL,byte ptr [RAX + 0x7eb]
LEA ESI,[RCX + 0x1]
MOV byte ptr [RAX + 0x7eb],SIL
TEST CL,CL
JZ 0x0014c80f
LAB_0014c80e:
RET
LAB_0014c80f:
PUSH RBP
MOV RBP,RSP
LEA RAX,[0xcff7f8]
MOV RAX,qword ptr [RAX]
XOR ECX,ECX
TEST DL,DL
SETZ CL
MOV RDX,qword ptr [RDI]
SHL ECX,0x4
MOV RDX,qword ptr [RDX + RCX*0x1 + 0x5c0]
MOV RCX,R8
SHR RCX,0x20
LEA RSI,[0x1d9f20]
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00150690
LEA RAX,[0xcff800]
INC qword ptr [RAX]
POP RBP
RET
|
void check_skipped_lsn(long *param_1,ulong param_2,char param_3,int8 param_4)
{
char cVar1;
bool bVar2;
uint uVar3;
if (((DAT_00cff408 < (long)param_2) &&
(uVar3 = skipped_lsn_err_count + 1, bVar2 = skipped_lsn_err_count < 10,
skipped_lsn_err_count = uVar3, bVar2)) &&
(cVar1 = *(char *)(*param_1 + 0x7eb), *(char *)(*param_1 + 0x7eb) = cVar1 + '\x01',
cVar1 == '\0')) {
eprint(tracef,"Table %s has wrong LSN: (%u,0x%x) on page: %llu",
*(int8 *)(*param_1 + 0x5c0 + (ulong)(param_3 == '\0') * 0x10),param_2 >> 0x20,
param_2,param_4);
recovery_found_crashed_tables = recovery_found_crashed_tables + 1;
return;
}
return;
}
|
|
11,577 |
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&, OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../far/../far/topologyRefinerFactory.h
|
TopologyRefiner*
TopologyRefinerFactory<MESH>::Create(MESH const& mesh, Options options) {
TopologyRefiner * refiner = new TopologyRefiner(options.schemeType, options.schemeOptions);
if (! populateBaseLevel(*refiner, mesh, options)) {
delete refiner;
return 0;
}
// Eventually want to move the Refiner's inventory initialization here. Currently it
// is handled after topology assignment, but if the inventory is to include additional
// features (e.g. holes, etc.) it is better off deferred to here.
return refiner;
}
|
O2
|
c
|
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&, OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %r12
shrq $0x20, %r12
pushq $0x78
popq %rdi
callq 0x52790
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0x50520
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x54e80
testb %al, %al
jne 0x99ba7
movq %rbx, %rdi
callq 0x55380
pushq $0x78
popq %rsi
movq %rbx, %rdi
callq 0x528b0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
pushq $0x78
popq %rsi
movq %rbx, %rdi
callq 0x528b0
movq %r14, %rdi
callq 0x55300
nop
|
_ZN10OpenSubdiv6v3_6_03Far22TopologyRefinerFactoryINS1_18TopologyDescriptorEE6CreateERKS3_NS4_7OptionsE:
push rbp
push r15
push r14
push r12
push rbx
mov ebp, edx
mov r14, rsi
mov r15, rdi
mov r12, rsi
shr r12, 20h
push 78h ; 'x'
pop rdi; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax; this
mov esi, r14d
mov edx, r12d
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefinerC2ENS0_3Sdc10SchemeTypeENS3_7OptionsE; OpenSubdiv::v3_6_0::Far::TopologyRefiner::TopologyRefiner(OpenSubdiv::v3_6_0::Sdc::SchemeType,OpenSubdiv::v3_6_0::Sdc::Options)
mov rdi, rbx; this
mov rsi, r15; OpenSubdiv::v3_6_0::Far::TopologyRefiner *
mov rdx, r14
mov ecx, ebp
call __ZN10OpenSubdiv6v3_6_03Far22TopologyRefinerFactoryINS1_18TopologyDescriptorEE17populateBaseLevelERNS1_15TopologyRefinerERKS3_NS4_7OptionsE; OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::populateBaseLevel(OpenSubdiv::v3_6_0::Far::TopologyRefiner &,OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&,OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
test al, al
jnz short loc_99BA7
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefinerD2Ev; OpenSubdiv::v3_6_0::Far::TopologyRefiner::~TopologyRefiner()
push 78h ; 'x'
pop rsi; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
xor ebx, ebx
loc_99BA7:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov r14, rax
push 78h ; 'x'
pop rsi; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
|
OpenSubdiv::v3_6_0::Far::TopologyRefiner * OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(
OpenSubdiv::v3_6_0::Far::TopologyRefiner *a1)
{
OpenSubdiv::v3_6_0::Far::TopologyRefiner *v1; // rbx
v1 = (OpenSubdiv::v3_6_0::Far::TopologyRefiner *)operator new(0x78uLL);
OpenSubdiv::v3_6_0::Far::TopologyRefiner::TopologyRefiner(v1);
if ( !(unsigned __int8)OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::populateBaseLevel(
v1,
a1) )
{
OpenSubdiv::v3_6_0::Far::TopologyRefiner::~TopologyRefiner(v1);
operator delete(v1, 0x78uLL);
return 0LL;
}
return v1;
}
|
Create:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV EBP,EDX
MOV R14,RSI
MOV R15,RDI
MOV R12,RSI
SHR R12,0x20
PUSH 0x78
POP RDI
CALL 0x00152790
MOV RBX,RAX
LAB_00199b70:
MOV RDI,RAX
MOV ESI,R14D
MOV EDX,R12D
CALL 0x00150520
LAB_00199b7e:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
CALL 0x00154e80
TEST AL,AL
JNZ 0x00199ba7
MOV RDI,RBX
CALL 0x00155380
PUSH 0x78
POP RSI
MOV RDI,RBX
CALL 0x001528b0
XOR EBX,EBX
LAB_00199ba7:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor
const&,
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
*/
TopologyRefiner * __thiscall
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create
(TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor> *this,ulong param_1,
int4 param_3)
{
char cVar1;
TopologyRefiner *this_00;
this_00 = (TopologyRefiner *)operator_new(0x78);
/* try { // try from 00199b70 to 00199b7d has its CatchHandler @ 00199bb3 */
TopologyRefiner::TopologyRefiner(this_00,param_1 & 0xffffffff,param_1 >> 0x20);
cVar1 = populateBaseLevel((TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor> *)
this_00,this,param_1,param_3);
if (cVar1 == '\0') {
TopologyRefiner::~TopologyRefiner(this_00);
operator_delete(this_00,0x78);
this_00 = (TopologyRefiner *)0x0;
}
return this_00;
}
|
|
11,578 |
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&, OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../far/../far/topologyRefinerFactory.h
|
TopologyRefiner*
TopologyRefinerFactory<MESH>::Create(MESH const& mesh, Options options) {
TopologyRefiner * refiner = new TopologyRefiner(options.schemeType, options.schemeOptions);
if (! populateBaseLevel(*refiner, mesh, options)) {
delete refiner;
return 0;
}
// Eventually want to move the Refiner's inventory initialization here. Currently it
// is handled after topology assignment, but if the inventory is to include additional
// features (e.g. holes, etc.) it is better off deferred to here.
return refiner;
}
|
O3
|
c
|
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&, OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %r12
shrq $0x20, %r12
movl $0x78, %edi
callq 0x3a210
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0x38d90
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x3ba30
testb %al, %al
jne 0x8dd6b
movq %rbx, %rdi
callq 0x3bd90
movl $0x78, %esi
movq %rbx, %rdi
callq 0x3a2b0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x78, %esi
movq %rbx, %rdi
callq 0x3a2b0
movq %r14, %rdi
callq 0x3bd30
nop
|
_ZN10OpenSubdiv6v3_6_03Far22TopologyRefinerFactoryINS1_18TopologyDescriptorEE6CreateERKS3_NS4_7OptionsE:
push rbp
push r15
push r14
push r12
push rbx
mov ebp, edx
mov r14, rsi
mov r15, rdi
mov r12, rsi
shr r12, 20h
mov edi, 78h ; 'x'; unsigned __int64
call __Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax; this
mov esi, r14d
mov edx, r12d
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefinerC2ENS0_3Sdc10SchemeTypeENS3_7OptionsE; OpenSubdiv::v3_6_0::Far::TopologyRefiner::TopologyRefiner(OpenSubdiv::v3_6_0::Sdc::SchemeType,OpenSubdiv::v3_6_0::Sdc::Options)
mov rdi, rbx; this
mov rsi, r15; OpenSubdiv::v3_6_0::Far::TopologyRefiner *
mov rdx, r14
mov ecx, ebp
call __ZN10OpenSubdiv6v3_6_03Far22TopologyRefinerFactoryINS1_18TopologyDescriptorEE17populateBaseLevelERNS1_15TopologyRefinerERKS3_NS4_7OptionsE; OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::populateBaseLevel(OpenSubdiv::v3_6_0::Far::TopologyRefiner &,OpenSubdiv::v3_6_0::Far::TopologyDescriptor const&,OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
test al, al
jnz short loc_8DD6B
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Far15TopologyRefinerD2Ev; OpenSubdiv::v3_6_0::Far::TopologyRefiner::~TopologyRefiner()
mov esi, 78h ; 'x'; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
xor ebx, ebx
loc_8DD6B:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov esi, 78h ; 'x'; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
|
OpenSubdiv::v3_6_0::Far::TopologyRefiner * OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(
OpenSubdiv::v3_6_0::Far::TopologyRefiner *a1)
{
OpenSubdiv::v3_6_0::Far::TopologyRefiner *v1; // rbx
v1 = (OpenSubdiv::v3_6_0::Far::TopologyRefiner *)operator new(0x78uLL);
OpenSubdiv::v3_6_0::Far::TopologyRefiner::TopologyRefiner(v1);
if ( !(unsigned __int8)OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::populateBaseLevel(
v1,
a1) )
{
OpenSubdiv::v3_6_0::Far::TopologyRefiner::~TopologyRefiner(v1);
operator delete(v1, 0x78uLL);
return 0LL;
}
return v1;
}
|
Create:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV EBP,EDX
MOV R14,RSI
MOV R15,RDI
MOV R12,RSI
SHR R12,0x20
MOV EDI,0x78
CALL 0x0013a210
MOV RBX,RAX
LAB_0018dd32:
MOV RDI,RAX
MOV ESI,R14D
MOV EDX,R12D
CALL 0x00138d90
LAB_0018dd40:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
CALL 0x0013ba30
TEST AL,AL
JNZ 0x0018dd6b
MOV RDI,RBX
CALL 0x0013bd90
MOV ESI,0x78
MOV RDI,RBX
CALL 0x0013a2b0
XOR EBX,EBX
LAB_0018dd6b:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create(OpenSubdiv::v3_6_0::Far::TopologyDescriptor
const&,
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Options)
*/
TopologyRefiner * __thiscall
OpenSubdiv::v3_6_0::Far::TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor>::Create
(TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor> *this,ulong param_1,
int4 param_3)
{
char cVar1;
TopologyRefiner *this_00;
this_00 = (TopologyRefiner *)operator_new(0x78);
/* try { // try from 0018dd32 to 0018dd3f has its CatchHandler @ 0018dd77 */
TopologyRefiner::TopologyRefiner(this_00,param_1 & 0xffffffff,param_1 >> 0x20);
cVar1 = populateBaseLevel((TopologyRefinerFactory<OpenSubdiv::v3_6_0::Far::TopologyDescriptor> *)
this_00,this,param_1,param_3);
if (cVar1 == '\0') {
TopologyRefiner::~TopologyRefiner(this_00);
operator_delete(this_00,0x78);
this_00 = (TopologyRefiner *)0x0;
}
return this_00;
}
|
|
11,579 |
nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*)
|
ng-log[P]ng-log/src/logging.cc
|
void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
}
|
O1
|
cpp
|
nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xc8(%rdi), %rdi
cmpq %rsi, %rdi
je 0x9c85
movq %rsi, %rbx
testq %rdi, %rdi
sete %al
cmpq %r14, %rdi
sete %cl
orb %al, %cl
jne 0x9c7e
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN5nglog14LogDestination13SetLoggerImplEPNS_4base6LoggerE:
push r14
push rbx
push rax
mov r14, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rsi
jz short loc_9C85
mov rbx, rsi
test rdi, rdi
setz al
cmp rdi, r14
setz cl
or cl, al
jnz short loc_9C7E
mov rax, [rdi]
call qword ptr [rax+8]
loc_9C7E:
mov [r14+0C8h], rbx
loc_9C85:
add rsp, 8
pop rbx
pop r14
retn
|
char nglog::LogDestination::SetLoggerImpl(nglog::LogDestination *this, nglog::base::Logger *a2)
{
nglog::base::Logger *v3; // rdi
char result; // al
v3 = (nglog::base::Logger *)*((_QWORD *)this + 25);
if ( v3 != a2 )
{
result = v3 == 0LL;
if ( v3 != 0LL && v3 != this )
result = (*(long long ( **)(nglog::base::Logger *))(*(_QWORD *)v3 + 8LL))(v3);
*((_QWORD *)this + 25) = a2;
}
return result;
}
|
SetLoggerImpl:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RSI
JZ 0x00109c85
MOV RBX,RSI
TEST RDI,RDI
SETZ AL
CMP RDI,R14
SETZ CL
OR CL,AL
JNZ 0x00109c7e
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00109c7e:
MOV qword ptr [R14 + 0xc8],RBX
LAB_00109c85:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*) */
void __thiscall nglog::LogDestination::SetLoggerImpl(LogDestination *this,Logger *param_1)
{
Logger *pLVar1;
pLVar1 = *(Logger **)(this + 200);
if (pLVar1 != param_1) {
if (pLVar1 != (Logger *)this && pLVar1 != (Logger *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(Logger **)(this + 200) = param_1;
}
return;
}
|
|
11,580 |
nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*)
|
ng-log[P]ng-log/src/logging.cc
|
void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
}
|
O2
|
cpp
|
nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xc8(%rdi), %rdi
cmpq %rsi, %rdi
je 0x96b1
movq %rsi, %rbx
testq %rdi, %rdi
sete %al
cmpq %r14, %rdi
sete %cl
orb %al, %cl
jne 0x96aa
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN5nglog14LogDestination13SetLoggerImplEPNS_4base6LoggerE:
push r14
push rbx
push rax
mov r14, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rsi
jz short loc_96B1
mov rbx, rsi
test rdi, rdi
setz al
cmp rdi, r14
setz cl
or cl, al
jnz short loc_96AA
mov rax, [rdi]
call qword ptr [rax+8]
loc_96AA:
mov [r14+0C8h], rbx
loc_96B1:
add rsp, 8
pop rbx
pop r14
retn
|
char nglog::LogDestination::SetLoggerImpl(nglog::LogDestination *this, nglog::base::Logger *a2)
{
nglog::base::Logger *v3; // rdi
char result; // al
v3 = (nglog::base::Logger *)*((_QWORD *)this + 25);
if ( v3 != a2 )
{
result = v3 == 0LL;
if ( v3 != 0LL && v3 != this )
result = (*(long long ( **)(nglog::base::Logger *))(*(_QWORD *)v3 + 8LL))(v3);
*((_QWORD *)this + 25) = a2;
}
return result;
}
|
SetLoggerImpl:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RSI
JZ 0x001096b1
MOV RBX,RSI
TEST RDI,RDI
SETZ AL
CMP RDI,R14
SETZ CL
OR CL,AL
JNZ 0x001096aa
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_001096aa:
MOV qword ptr [R14 + 0xc8],RBX
LAB_001096b1:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*) */
void __thiscall nglog::LogDestination::SetLoggerImpl(LogDestination *this,Logger *param_1)
{
Logger *pLVar1;
pLVar1 = *(Logger **)(this + 200);
if (pLVar1 != param_1) {
if (pLVar1 != (Logger *)this && pLVar1 != (Logger *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(Logger **)(this + 200) = param_1;
}
return;
}
|
|
11,581 |
nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*)
|
ng-log[P]ng-log/src/logging.cc
|
void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
}
|
O3
|
cpp
|
nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*):
pushq %rbx
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
cmpq %rbx, %rdi
je 0x9a2e
testq %rdi, %rdi
je 0x9a27
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x9a34
|
_ZN5nglog14LogDestinationD2Ev:
push rbx; Alternative name is 'nglog::LogDestination::~LogDestination()'
mov rbx, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rbx
jz short loc_9A2E
test rdi, rdi
jz short loc_9A27
mov rax, [rdi]
call qword ptr [rax+8]
loc_9A27:
mov [rbx+0C8h], rbx
loc_9A2E:
mov rdi, rbx; this
pop rbx
jmp short $+2; nglog::`anonymous namespace'::LogFileObject::~LogFileObject()
|
void nglog::LogDestination::~LogDestination(nglog::LogDestination *this)
{
nglog::LogDestination *v2; // rdi
v2 = (nglog::LogDestination *)*((_QWORD *)this + 25);
if ( v2 != this )
{
if ( v2 )
(*(void ( **)(nglog::LogDestination *))(*(_QWORD *)v2 + 8LL))(v2);
*((_QWORD *)this + 25) = this;
}
nglog::`anonymous namespace'::LogFileObject::~LogFileObject(this);
}
|
~LogDestination:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RBX
JZ 0x00109a2e
TEST RDI,RDI
JZ 0x00109a27
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00109a27:
MOV qword ptr [RBX + 0xc8],RBX
LAB_00109a2e:
MOV RDI,RBX
POP RBX
JMP 0x00109a34
|
/* nglog::LogDestination::~LogDestination() */
void __thiscall nglog::LogDestination::~LogDestination(LogDestination *this)
{
LogDestination *pLVar1;
pLVar1 = *(LogDestination **)(this + 200);
if (pLVar1 != this) {
if (pLVar1 != (LogDestination *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(LogDestination **)(this + 200) = this;
}
(anonymous_namespace)::LogFileObject::~LogFileObject((LogFileObject *)this);
return;
}
|
|
11,582 |
HKDF_Expand
|
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/keygen.c
|
static void HKDF_Expand(unsigned char *OKM, size_t L,
const unsigned char PRK[32],
const void *info, size_t info_len,
#ifndef __BLST_HKDF_TESTMODE__
int info_fixup,
#endif
HMAC_SHA256_CTX *ctx)
{
#if !defined(__STDC_VERSION__) || __STDC_VERSION__<199901 \
|| defined(__STDC_NO_VLA__)
unsigned char *info_prime = alloca(info_len + 2 + 1);
#else
unsigned char info_prime[info_len + 2 + 1];
#endif
HMAC_init(ctx, PRK, 32);
if (info_len != 0)
sha256_bcopy(info_prime, info, info_len);
#ifndef __BLST_HKDF_TESTMODE__
if (info_fixup) {
/* Section 2.3 KeyGen in BLS-signature draft */
info_prime[info_len + 0] = (unsigned char)(L >> 8);
info_prime[info_len + 1] = (unsigned char)(L);
info_len += 2;
}
#endif
info_prime[info_len] = 1; /* counter */
HMAC_update(ctx, info_prime, info_len + 1);
HMAC_final(ctx->tail.c, ctx);
while (L > 32) {
sha256_hcopy((unsigned int *)OKM, (const unsigned int *)ctx->tail.c);
OKM += 32; L -= 32;
++info_prime[info_len]; /* counter */
HMAC_init(ctx, NULL, 0);
HMAC_update(ctx, ctx->tail.c, 32);
HMAC_update(ctx, info_prime, info_len + 1);
HMAC_final(ctx->tail.c, ctx);
}
sha256_bcopy(OKM, ctx->tail.c, L);
}
|
O2
|
c
|
HKDF_Expand:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, -0x38(%rbp)
movq %r8, %r14
movq %rcx, -0x30(%rbp)
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rbp), %r12
movq %rsp, %r13
leaq 0x12(%r8), %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
pushq $0x20
popq %rax
movq %r12, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x5b893
testq %r14, %r14
je 0x5b7e3
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %r14, %rdx
callq 0x61470
cmpl $0x0, -0x38(%rbp)
je 0x5b7f9
movl %ebx, %eax
rolw $0x8, %ax
movw %ax, (%r13,%r14)
addq $0x2, %r14
movb $0x1, (%r13,%r14)
movq %r14, -0x38(%rbp)
leaq 0x1(%r14), %rdx
movq %r12, %rdi
movq %r13, %rsi
movq %rdx, -0x30(%rbp)
callq 0x5b25b
leaq 0xb0(%r12), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x5b9b9
cmpq $0x21, %rbx
jb 0x5b876
movq %r15, %rdi
movq %r14, %rsi
callq 0x61490
addq $0x20, %r15
addq $-0x20, %rbx
movq -0x38(%rbp), %rax
incb (%r13,%rax)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5b893
movq %r12, %rdi
movq %r14, %rsi
pushq $0x20
popq %rdx
callq 0x5b25b
movq %r12, %rdi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
callq 0x5b25b
jmp 0x5b81e
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x61470
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
HKDF_Expand:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov dword ptr [rbp+var_38], r9d
mov r14, r8
mov [rbp+var_30], rcx
mov rbx, rsi
mov r15, rdi
mov r12, [rbp+arg_0]
mov r13, rsp
lea rax, [r8+12h]
and rax, 0FFFFFFFFFFFFFFF0h
sub r13, rax
mov rsp, r13
push 20h ; ' '
pop rax
mov rdi, r12
mov rsi, rdx
mov rdx, rax
call HMAC_init
test r14, r14
jz short loc_5B7E3
mov rdi, r13
mov rsi, [rbp+var_30]
mov rdx, r14
call blst_sha256_bcopy
loc_5B7E3:
cmp dword ptr [rbp+var_38], 0
jz short loc_5B7F9
mov eax, ebx
rol ax, 8
mov [r13+r14+0], ax
add r14, 2
loc_5B7F9:
mov byte ptr [r13+r14+0], 1
mov [rbp+var_38], r14
lea rdx, [r14+1]
mov rdi, r12
mov rsi, r13
mov [rbp+var_30], rdx
call sha256_update
lea r14, [r12+0B0h]
loc_5B81E:
mov rdi, r14
mov rsi, r12
call HMAC_final
cmp rbx, 21h ; '!'
jb short loc_5B876
mov rdi, r15
mov rsi, r14
call blst_sha256_hcopy
add r15, 20h ; ' '
add rbx, 0FFFFFFFFFFFFFFE0h
mov rax, [rbp+var_38]
inc byte ptr [r13+rax+0]
mov rdi, r12
xor esi, esi
xor edx, edx
call HMAC_init
mov rdi, r12
mov rsi, r14
push 20h ; ' '
pop rdx
call sha256_update
mov rdi, r12
mov rsi, r13
mov rdx, [rbp+var_30]
call sha256_update
jmp short loc_5B81E
loc_5B876:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call blst_sha256_bcopy
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long HKDF_Expand(long long a1, unsigned long long a2, long long a3, long long a4, long long a5, int a6, long long a7)
{
long long v7; // r14
unsigned long long v8; // rbx
char *v10; // r13
long long v12; // [rsp+0h] [rbp-40h] BYREF
long long v13; // [rsp+8h] [rbp-38h]
long long v14; // [rsp+10h] [rbp-30h]
LODWORD(v13) = a6;
v7 = a5;
v14 = a4;
v8 = a2;
v10 = (char *)&v12 - ((a5 + 18) & 0xFFFFFFFFFFFFFFF0LL);
HMAC_init(a7, a3);
if ( v7 )
blst_sha256_bcopy(v10, v14, v7);
if ( (_DWORD)v13 )
{
*(_WORD *)&v10[v7] = __ROL2__(a2, 8);
v7 += 2LL;
}
v10[v7] = 1;
v13 = v7;
v14 = v7 + 1;
sha256_update(a7, v10, v7 + 1);
while ( 1 )
{
HMAC_final(a7 + 176, a7);
if ( v8 < 0x21 )
break;
blst_sha256_hcopy(a1, a7 + 176);
a1 += 32LL;
v8 -= 32LL;
++v10[v13];
HMAC_init(a7, 0LL);
sha256_update(a7, a7 + 176, 32LL);
sha256_update(a7, v10, v14);
}
return blst_sha256_bcopy(a1, a7 + 176, v8);
}
|
HKDF_Expand:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RBP + -0x38],R9D
MOV R14,R8
MOV qword ptr [RBP + -0x30],RCX
MOV RBX,RSI
MOV R15,RDI
MOV R12,qword ptr [RBP + 0x10]
MOV R13,RSP
LEA RAX,[R8 + 0x12]
AND RAX,-0x10
SUB R13,RAX
MOV RSP,R13
PUSH 0x20
POP RAX
MOV RDI,R12
MOV RSI,RDX
MOV RDX,RAX
CALL 0x0015b893
TEST R14,R14
JZ 0x0015b7e3
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R14
CALL 0x00161470
LAB_0015b7e3:
CMP dword ptr [RBP + -0x38],0x0
JZ 0x0015b7f9
MOV EAX,EBX
ROL AX,0x8
MOV word ptr [R13 + R14*0x1],AX
ADD R14,0x2
LAB_0015b7f9:
MOV byte ptr [R13 + R14*0x1],0x1
MOV qword ptr [RBP + -0x38],R14
LEA RDX,[R14 + 0x1]
MOV RDI,R12
MOV RSI,R13
MOV qword ptr [RBP + -0x30],RDX
CALL 0x0015b25b
LEA R14,[R12 + 0xb0]
LAB_0015b81e:
MOV RDI,R14
MOV RSI,R12
CALL 0x0015b9b9
CMP RBX,0x21
JC 0x0015b876
MOV RDI,R15
MOV RSI,R14
CALL 0x00161490
ADD R15,0x20
ADD RBX,-0x20
MOV RAX,qword ptr [RBP + -0x38]
INC byte ptr [R13 + RAX*0x1]
MOV RDI,R12
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0015b893
MOV RDI,R12
MOV RSI,R14
PUSH 0x20
POP RDX
CALL 0x0015b25b
MOV RDI,R12
MOV RSI,R13
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x0015b25b
JMP 0x0015b81e
LAB_0015b876:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x00161470
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void HKDF_Expand(long param_1,ulong param_2,int8 param_3,int8 param_4,long param_5,
int4 param_6,long param_7)
{
long lVar1;
int8 uVar2;
long lVar3;
long lVar4;
long lVar5;
int8 uStack_50;
ushort auStack_48 [4];
long local_40;
long local_38;
local_40 = CONCAT44(local_40._4_4_,param_6);
local_38 = param_4;
lVar3 = -(param_5 + 0x12U & 0xfffffffffffffff0);
lVar5 = (long)auStack_48 + lVar3;
*(int8 *)((long)&uStack_50 + lVar3) = 0x20;
uVar2 = *(int8 *)((long)&uStack_50 + lVar3);
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b7cf;
HMAC_init(param_7,param_3,uVar2);
lVar1 = local_38;
if (param_5 != 0) {
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b7e3;
blst_sha256_bcopy(lVar5,lVar1,param_5);
}
if ((int)local_40 != 0) {
*(ushort *)(lVar5 + param_5) = (ushort)param_2 << 8 | (ushort)param_2 >> 8;
param_5 = param_5 + 2;
}
*(int1 *)(lVar5 + param_5) = 1;
local_38 = param_5 + 1;
local_40 = param_5;
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b816;
sha256_update(param_7,lVar5);
lVar1 = param_7 + 0xb0;
while( true ) {
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b829;
HMAC_final(lVar1,param_7);
if (param_2 < 0x21) break;
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b83a;
blst_sha256_hcopy(param_1,lVar1);
param_1 = param_1 + 0x20;
param_2 = param_2 - 0x20;
*(char *)(lVar5 + local_40) = *(char *)(lVar5 + local_40) + '\x01';
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b857;
HMAC_init(param_7,0,0);
*(int8 *)((long)&uStack_50 + lVar3) = 0x20;
uVar2 = *(int8 *)((long)&uStack_50 + lVar3);
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b865;
sha256_update(param_7,lVar1,uVar2);
lVar4 = local_38;
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b874;
sha256_update(param_7,lVar5,lVar4);
}
*(int8 *)((long)&uStack_50 + lVar3) = 0x15b884;
blst_sha256_bcopy(param_1,lVar1,param_2);
return;
}
|
|
11,583 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [12], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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>>&&, char const (&) [12], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
llama.cpp/common/./json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O3
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [12], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [3], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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>>&&, char const (&) [12], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const (&) [3], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r13
movq %r8, %r14
movq %rcx, %r12
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rsi), %r15
movq %rdx, 0x10(%rsp)
movq %rdx, %rdi
callq 0x1c490
addq %rax, %r15
addq 0x8(%r12), %r15
movq %r14, 0x8(%rsp)
movq %r14, %rdi
callq 0x1c490
addq %rax, %r15
addq 0x8(%r13), %r15
movq 0x50(%rsp), %rax
addq 0x8(%rax), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ca10
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq %rbx, %rdi
callq 0x1c3a0
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x1c810
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1c3a0
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x1c810
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %rbx, %rdi
callq 0x1c3a0
movq 0x50(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x1c3a0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x3278c
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x1c110
movq %r14, %rdi
callq 0x1c7d0
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, r9
mov r14, r8
mov r12, rcx
mov rbp, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+48h+var_48], rax
mov [rdi], rax
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov r15, [rsi+8]
mov [rsp+48h+var_38], rdx
mov rdi, rdx
call _strlen
add r15, rax
add r15, [r12+8]
mov [rsp+48h+var_40], r14
mov rdi, r14
call _strlen
add r15, rax
add r15, [r13+8]
mov rax, [rsp+48h+arg_0]
add r15, [rax+8]
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, [rbp+0]
mov rdx, [rbp+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rdi, rbx
mov rsi, [rsp+48h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rdi, rbx
mov rsi, [rsp+48h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r13+0]
mov rdx, [r13+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rax, [rsp+48h+arg_0]
mov rsi, [rax]
mov rdx, [rax+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, [rsp+0]
jz short loc_3278C
mov rax, [rsp+0]
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3278C:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(
long long a1,
_QWORD *a2,
long long a3,
_QWORD *a4,
long long a5,
_QWORD *a6,
_QWORD *a7)
{
long long v10; // r15
long long v11; // r15
long long v12; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v10 = a2[1];
v11 = a4[1] + strlen(a3) + v10;
v12 = strlen(a5);
std::string::reserve(a1, a7[1] + a6[1] + v12 + v11);
std::string::append(a1, *a2, a2[1]);
std::string::append(a1, a3);
std::string::append(a1, *a4, a4[1]);
std::string::append(a1, a5);
std::string::append(a1, *a6, a6[1]);
std::string::append(a1, *a7, a7[1]);
return a1;
}
|
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,R9
MOV R14,R8
MOV R12,RCX
MOV RBP,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV R15,qword ptr [RSI + 0x8]
MOV qword ptr [RSP + 0x10],RDX
MOV RDI,RDX
CALL 0x0011c490
ADD R15,RAX
ADD R15,qword ptr [R12 + 0x8]
MOV qword ptr [RSP + 0x8],R14
MOV RDI,R14
CALL 0x0011c490
ADD R15,RAX
ADD R15,qword ptr [R13 + 0x8]
MOV RAX,qword ptr [RSP + 0x50]
ADD R15,qword ptr [RAX + 0x8]
LAB_001326f5:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011ca10
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
MOV RDI,RBX
CALL 0x0011c3a0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x0011c810
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x0011c3a0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x0011c810
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
MOV RDI,RBX
CALL 0x0011c3a0
MOV RAX,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x0011c3a0
LAB_0013275f:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,
std::__cxx11::string, char const (&) [12], std::__cxx11::string, char const (&) [3],
std::__cxx11::string, std::__cxx11::string const&>(std::__cxx11::string&&, char const (&) [12],
std::__cxx11::string&&, char const (&) [3], std::__cxx11::string&&, std::__cxx11::string const&)
*/
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>
(detail *this,string *param_1,char *param_2,string *param_3,char *param_4,string *param_5,
string *param_6)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_2);
strlen(param_4);
/* try { // try from 001326f5 to 0013275e has its CatchHandler @ 00132771 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this,*(ulong *)param_1);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this,*(ulong *)param_3);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this,*(ulong *)param_5);
std::__cxx11::string::append((char *)this,*(ulong *)param_6);
return this;
}
|
|
11,584 |
to_nfd_rec
|
bluesky950520[P]quickjs/libunicode.c
|
static void to_nfd_rec(DynBuf *dbuf,
const int *src, int src_len, int is_compat)
{
uint32_t c, v;
int i, l;
uint32_t res[UNICODE_DECOMP_LEN_MAX];
for(i = 0; i < src_len; i++) {
c = src[i];
if (c >= 0xac00 && c < 0xd7a4) {
/* Hangul decomposition */
c -= 0xac00;
dbuf_put_u32(dbuf, 0x1100 + c / 588);
dbuf_put_u32(dbuf, 0x1161 + (c % 588) / 28);
v = c % 28;
if (v != 0)
dbuf_put_u32(dbuf, 0x11a7 + v);
} else {
l = unicode_decomp_char(res, c, is_compat);
if (l) {
to_nfd_rec(dbuf, (int *)res, l, is_compat);
} else {
dbuf_put_u32(dbuf, c);
}
}
}
}
|
O2
|
c
|
to_nfd_rec:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0x4(%rsp)
movq %rsi, 0x10(%rsp)
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
pushq $0x2
popq %rbx
leaq 0xe16e(%rip), %r15 # 0x8dc50
xorl %r14d, %r14d
movq 0x8(%rsp), %r12
cmpq 0x18(%rsp), %r14
je 0x7fc07
movq 0x10(%rsp), %rax
movl (%rax,%r14,4), %ebp
leal -0xac00(%rbp), %r13d
cmpl $0x2ba4, %r13d # imm = 0x2BA4
jae 0x7fb76
movl %r13d, %eax
xorl %edx, %edx
movw $0x24c, %cx # imm = 0x24C
divw %cx
movl %edx, %ebp
orl $0x1100, %eax # imm = 0x1100
movl $0xffff, %ecx # imm = 0xFFFF
andl %ecx, %eax
movq %r12, %rdi
movl %eax, %esi
callq 0x80e49
movl %ebp, %eax
xorl %edx, %edx
movw $0x1c, %bp
divw %bp
leal 0x1161(%rax), %esi
movl $0xffff, %eax # imm = 0xFFFF
andl %eax, %esi
movq %r12, %rdi
callq 0x80e49
movl %r13d, %eax
xorl %edx, %edx
divw %bp
testw %dx, %dx
je 0x7fbff
addl $0x11a7, %edx # imm = 0x11A7
movzwl %dx, %esi
movq 0x8(%rsp), %rdi
jmp 0x7fbfa
movl $0x2c4, %esi # imm = 0x2C4
xorl %edi, %edi
cmpl %esi, %edi
jg 0x7fbf3
leal (%rsi,%rdi), %eax
cltd
idivl %ebx
movslq %eax, %rcx
movl (%r15,%rcx,4), %r9d
movl %r9d, %ecx
shrl $0xe, %ecx
cmpl %ebp, %ecx
jbe 0x7fb9e
decl %eax
movl %eax, %esi
jmp 0x7fb7d
movl %r9d, %r8d
shrl $0x7, %r8d
andl $0x7f, %r8d
leal (%r8,%rcx), %edx
cmpl %ebp, %edx
ja 0x7fbb7
incl %eax
movl %eax, %edi
jmp 0x7fb7d
movl %r9d, %edx
andl $0x1, %edx
cmpl 0x4(%rsp), %edx
ja 0x7fbf3
shrl %r9d
andl $0x3f, %r9d
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
movl %eax, %edx
callq 0x80e5e
testl %eax, %eax
je 0x7fbf3
movq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl %eax, %edx
movl 0x4(%rsp), %ecx
callq 0x7fab0
jmp 0x7fbff
movq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x80e49
incq %r14
jmp 0x7faea
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
to_nfd_rec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov [rsp+98h+var_94], ecx
mov [rsp+98h+var_88], rsi
xor eax, eax
test edx, edx
cmovle edx, eax
mov [rsp+98h+var_80], rdx
mov [rsp+98h+var_90], rdi
push 2
pop rbx
lea r15, unicode_decomp_table1
xor r14d, r14d
mov r12, [rsp+98h+var_90]
loc_7FAEA:
cmp r14, [rsp+98h+var_80]
jz loc_7FC07
mov rax, [rsp+98h+var_88]
mov ebp, [rax+r14*4]
lea r13d, [rbp-0AC00h]
cmp r13d, 2BA4h
jnb short loc_7FB76
mov eax, r13d
xor edx, edx
mov cx, 24Ch
div cx
mov ebp, edx
or eax, 1100h
mov ecx, 0FFFFh
and eax, ecx
mov rdi, r12
mov esi, eax
call dbuf_put_u32_1
mov eax, ebp
xor edx, edx
mov bp, 1Ch
div bp
lea esi, [rax+1161h]
mov eax, 0FFFFh
and esi, eax
mov rdi, r12
call dbuf_put_u32_1
mov eax, r13d
xor edx, edx
div bp
test dx, dx
jz loc_7FBFF
add edx, 11A7h
movzx esi, dx
mov rdi, [rsp+98h+var_90]
jmp loc_7FBFA
loc_7FB76:
mov esi, 2C4h
xor edi, edi
loc_7FB7D:
cmp edi, esi
jg short loc_7FBF3
lea eax, [rsi+rdi]
cdq
idiv ebx
movsxd rcx, eax
mov r9d, [r15+rcx*4]
mov ecx, r9d
shr ecx, 0Eh
cmp ecx, ebp
jbe short loc_7FB9E
dec eax
mov esi, eax
jmp short loc_7FB7D
loc_7FB9E:
mov r8d, r9d
shr r8d, 7
and r8d, 7Fh
lea edx, [r8+rcx]
cmp edx, ebp
ja short loc_7FBB7
inc eax
mov edi, eax
jmp short loc_7FB7D
loc_7FBB7:
mov edx, r9d
and edx, 1
cmp edx, [rsp+98h+var_94]
ja short loc_7FBF3
shr r9d, 1
and r9d, 3Fh
lea rdi, [rsp+98h+var_78]
mov esi, ebp
mov edx, eax
call unicode_decomp_entry
test eax, eax
jz short loc_7FBF3
mov rdi, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_78]
mov edx, eax
mov ecx, [rsp+98h+var_94]
call to_nfd_rec
jmp short loc_7FBFF
loc_7FBF3:
mov rdi, [rsp+98h+var_90]
mov esi, ebp
loc_7FBFA:
call dbuf_put_u32_1
loc_7FBFF:
inc r14
jmp loc_7FAEA
loc_7FC07:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
__int16 to_nfd_rec(long long a1, long long a2, long long a3, unsigned int a4)
{
__int16 result; // ax
long long i; // r14
unsigned int v7; // ebp
unsigned __int16 v8; // r13
long long v9; // rsi
long long v10; // rdi
int v11; // esi
int v12; // edi
unsigned int v13; // eax
unsigned int v14; // r9d
long long v15; // rcx
long long v16; // r8
unsigned int v17; // eax
long long v21; // [rsp+18h] [rbp-80h]
_BYTE v22[120]; // [rsp+20h] [rbp-78h] BYREF
result = 0;
if ( (int)a3 <= 0 )
a3 = 0LL;
v21 = a3;
for ( i = 0LL; i != v21; ++i )
{
v7 = *(_DWORD *)(a2 + 4 * i);
v8 = v7 + 21504;
if ( v7 - 44032 >= 0x2BA4 )
{
v11 = 708;
v12 = 0;
while ( v12 <= v11 )
{
v13 = (v11 + v12) / 2;
v14 = unicode_decomp_table1[v13];
v15 = v14 >> 14;
if ( (unsigned int)v15 <= v7 )
{
v16 = (v14 >> 7) & 0x7F;
if ( (int)v16 + (int)v15 > v7 )
{
if ( (v14 & 1) <= a4 )
{
v17 = unicode_decomp_entry(v22, v7, v13, v15, v16, (v14 >> 1) & 0x3F);
if ( v17 )
{
result = to_nfd_rec(a1, v22, v17, a4);
goto LABEL_19;
}
}
break;
}
v12 = v13 + 1;
}
else
{
v11 = v13 - 1;
}
}
v10 = a1;
v9 = v7;
}
else
{
dbuf_put_u32_1(a1, (v8 / 0x24Cu) | 0x1100);
dbuf_put_u32_1(a1, (unsigned __int16)(v8 % 0x24Cu / 0x1C + 4449));
result = v8 / 0x1Cu;
if ( !(v8 % 0x1Cu) )
continue;
v9 = (unsigned __int16)(v8 % 0x1Cu + 4519);
v10 = a1;
}
result = dbuf_put_u32_1(v10, v9);
LABEL_19:
;
}
return result;
}
|
to_nfd_rec:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV dword ptr [RSP + 0x4],ECX
MOV qword ptr [RSP + 0x10],RSI
XOR EAX,EAX
TEST EDX,EDX
CMOVLE EDX,EAX
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x8],RDI
PUSH 0x2
POP RBX
LEA R15,[0x18dc50]
XOR R14D,R14D
MOV R12,qword ptr [RSP + 0x8]
LAB_0017faea:
CMP R14,qword ptr [RSP + 0x18]
JZ 0x0017fc07
MOV RAX,qword ptr [RSP + 0x10]
MOV EBP,dword ptr [RAX + R14*0x4]
LEA R13D,[RBP + -0xac00]
CMP R13D,0x2ba4
JNC 0x0017fb76
MOV EAX,R13D
XOR EDX,EDX
MOV CX,0x24c
DIV CX
MOV EBP,EDX
OR EAX,0x1100
MOV ECX,0xffff
AND EAX,ECX
MOV RDI,R12
MOV ESI,EAX
CALL 0x00180e49
MOV EAX,EBP
XOR EDX,EDX
MOV BP,0x1c
DIV BP
LEA ESI,[RAX + 0x1161]
MOV EAX,0xffff
AND ESI,EAX
MOV RDI,R12
CALL 0x00180e49
MOV EAX,R13D
XOR EDX,EDX
DIV BP
TEST DX,DX
JZ 0x0017fbff
ADD EDX,0x11a7
MOVZX ESI,DX
MOV RDI,qword ptr [RSP + 0x8]
JMP 0x0017fbfa
LAB_0017fb76:
MOV ESI,0x2c4
XOR EDI,EDI
LAB_0017fb7d:
CMP EDI,ESI
JG 0x0017fbf3
LEA EAX,[RSI + RDI*0x1]
CDQ
IDIV EBX
MOVSXD RCX,EAX
MOV R9D,dword ptr [R15 + RCX*0x4]
MOV ECX,R9D
SHR ECX,0xe
CMP ECX,EBP
JBE 0x0017fb9e
DEC EAX
MOV ESI,EAX
JMP 0x0017fb7d
LAB_0017fb9e:
MOV R8D,R9D
SHR R8D,0x7
AND R8D,0x7f
LEA EDX,[R8 + RCX*0x1]
CMP EDX,EBP
JA 0x0017fbb7
INC EAX
MOV EDI,EAX
JMP 0x0017fb7d
LAB_0017fbb7:
MOV EDX,R9D
AND EDX,0x1
CMP EDX,dword ptr [RSP + 0x4]
JA 0x0017fbf3
SHR R9D,0x1
AND R9D,0x3f
LEA RDI,[RSP + 0x20]
MOV ESI,EBP
MOV EDX,EAX
CALL 0x00180e5e
TEST EAX,EAX
JZ 0x0017fbf3
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x20]
MOV EDX,EAX
MOV ECX,dword ptr [RSP + 0x4]
CALL 0x0017fab0
JMP 0x0017fbff
LAB_0017fbf3:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,EBP
LAB_0017fbfa:
CALL 0x00180e49
LAB_0017fbff:
INC R14
JMP 0x0017faea
LAB_0017fc07:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 to_nfd_rec(int8 param_1,long param_2,uint param_3,uint param_4)
{
uint uVar1;
ulong uVar2;
int1 auVar3 [16];
int iVar4;
int iVar5;
int iVar6;
uint uVar7;
short sVar8;
uint uVar9;
uint uVar10;
ulong uVar11;
ulong extraout_RDX;
uint uVar13;
ulong uVar14;
int1 auVar15 [16];
int1 local_78 [72];
ulong uVar12;
uVar11 = (ulong)param_3;
if ((int)param_3 < 1) {
uVar11 = 0;
}
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar11;
auVar15 = auVar3 << 0x40;
uVar14 = 0;
do {
uVar12 = auVar15._8_8_;
if (uVar14 == uVar11) {
return auVar15._0_8_;
}
uVar9 = *(uint *)(param_2 + uVar14 * 4);
uVar1 = uVar9 - 0xac00;
if (uVar1 < 0x2ba4) {
uVar9 = (uVar1 & 0xffff) % 0x24c;
dbuf_put_u32(param_1,(uVar1 & 0xffff) / 0x24c | 0x1100);
dbuf_put_u32(param_1,uVar9 / 0x1c + 0x1161,(short)(uVar9 % 0x1c));
auVar15._2_2_ = (short)(uVar1 >> 0x10);
auVar15._0_2_ = (short)((uVar1 & 0xffff) / 0x1c);
auVar15._4_4_ = 0;
uVar9 = (uVar1 & 0xffff) % 0x1c;
sVar8 = (short)uVar9;
auVar15._8_2_ = sVar8;
auVar15._10_6_ = 0;
if (sVar8 != 0) {
uVar9 = uVar9 + 0x11a7;
uVar12 = (ulong)uVar9;
goto LAB_0017fbfa;
}
}
else {
iVar5 = 0x2c4;
iVar6 = 0;
while (iVar6 <= iVar5) {
uVar2 = (long)(iVar5 + iVar6) / 2;
uVar12 = (long)(iVar5 + iVar6) % 2 & 0xffffffff;
iVar4 = (int)uVar2;
uVar1 = *(uint *)(unicode_decomp_table1 + (long)iVar4 * 4);
uVar7 = uVar1 >> 0xe;
if (uVar9 < uVar7) {
iVar5 = iVar4 + -1;
}
else {
uVar13 = uVar1 >> 7 & 0x7f;
uVar10 = uVar13 + uVar7;
uVar12 = (ulong)uVar10;
if (uVar9 < uVar10) {
uVar12 = (ulong)(uVar1 & 1);
if (((uVar1 & 1) <= param_4) &&
(iVar5 = unicode_decomp_entry
(local_78,uVar9,uVar2 & 0xffffffff,uVar7,uVar13,uVar1 >> 1 & 0x3f)
, uVar12 = extraout_RDX, iVar5 != 0)) {
auVar15 = to_nfd_rec(param_1,local_78,iVar5,param_4);
goto LAB_0017fbff;
}
break;
}
iVar6 = iVar4 + 1;
}
}
LAB_0017fbfa:
auVar15 = dbuf_put_u32(param_1,uVar9,uVar12);
}
LAB_0017fbff:
uVar14 = uVar14 + 1;
} while( true );
}
|
|
11,585 |
to_nfd_rec
|
bluesky950520[P]quickjs/libunicode.c
|
static void to_nfd_rec(DynBuf *dbuf,
const int *src, int src_len, int is_compat)
{
uint32_t c, v;
int i, l;
uint32_t res[UNICODE_DECOMP_LEN_MAX];
for(i = 0; i < src_len; i++) {
c = src[i];
if (c >= 0xac00 && c < 0xd7a4) {
/* Hangul decomposition */
c -= 0xac00;
dbuf_put_u32(dbuf, 0x1100 + c / 588);
dbuf_put_u32(dbuf, 0x1161 + (c % 588) / 28);
v = c % 28;
if (v != 0)
dbuf_put_u32(dbuf, 0x11a7 + v);
} else {
l = unicode_decomp_char(res, c, is_compat);
if (l) {
to_nfd_rec(dbuf, (int *)res, l, is_compat);
} else {
dbuf_put_u32(dbuf, c);
}
}
}
}
|
O3
|
c
|
to_nfd_rec:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0x4(%rsp)
movq %rdi, 0x8(%rsp)
testl %edx, %edx
jle 0x9b82f
movq %rsi, %r14
movl %edx, %r15d
xorl %ebx, %ebx
leaq 0xe628(%rip), %r12 # 0xa9cf0
movq %rsi, 0x18(%rsp)
movq %r15, 0x10(%rsp)
movl (%r14,%rbx,4), %ebp
leal -0xac00(%rbp), %r13d
cmpl $0x2ba4, %r13d # imm = 0x2BA4
jae 0x9b78d
movl %r13d, %ebp
movl $0xffff, %eax # imm = 0xFFFF
andl %eax, %ebp
imull $0x6f75, %ebp, %r14d # imm = 0x6F75
shrl $0x18, %r14d
leal 0x1100(%r14), %eax
movl %eax, (%rsp)
movl $0x4, %edx
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rsp, %rsi
callq 0x1bd52
imull $0x24c, %r14d, %eax # imm = 0x24C
movq 0x18(%rsp), %r14
movl %r13d, %ecx
subl %eax, %ecx
movl $0xffff, %eax # imm = 0xFFFF
andl %eax, %ecx
imull $0x925, %ecx, %eax # imm = 0x925
shrl $0x10, %eax
addl $0x1161, %eax # imm = 0x1161
movl %eax, (%rsp)
movl $0x4, %edx
movq %r15, %rdi
movq 0x10(%rsp), %r15
movq %rsp, %rsi
callq 0x1bd52
shrl $0x2, %ebp
imull $0x4925, %ebp, %eax # imm = 0x4925
shrl $0x11, %eax
leal (%rax,%rax,8), %ecx
leal (%rcx,%rcx,2), %ecx
addl %eax, %ecx
subw %cx, %r13w
je 0x9b823
addl $0x11a7, %r13d # imm = 0x11A7
movzwl %r13w, %eax
movl %eax, (%rsp)
jmp 0x9b811
xorl %esi, %esi
movl $0x2c4, %eax # imm = 0x2C4
leal (%rsi,%rax), %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
movslq %edx, %rcx
movl (%r12,%rcx,4), %r9d
movl %r9d, %ecx
shrl $0xe, %ecx
cmpl %ebp, %ecx
jbe 0x9b7b7
decl %edx
movl %edx, %eax
jmp 0x9b7ce
movl %r9d, %r8d
shrl $0x7, %r8d
andl $0x7f, %r8d
leal (%r8,%rcx), %esi
cmpl %ebp, %esi
ja 0x9b7d4
incl %edx
movl %edx, %esi
cmpl %eax, %esi
jle 0x9b794
jmp 0x9b80e
movl %r9d, %eax
andl $0x1, %eax
cmpl 0x4(%rsp), %eax
ja 0x9b80e
shrl %r9d
andl $0x3f, %r9d
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x9cf71
testl %eax, %eax
je 0x9b80e
movq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl %eax, %edx
movl 0x4(%rsp), %ecx
callq 0x9b69a
jmp 0x9b823
movl %ebp, (%rsp)
movl $0x4, %edx
movq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x1bd52
incq %rbx
cmpq %r15, %rbx
jne 0x9b6d2
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
to_nfd_rec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov [rsp+98h+var_94], ecx
mov [rsp+98h+var_90], rdi
test edx, edx
jle loc_9B82F
mov r14, rsi
mov r15d, edx
xor ebx, ebx
lea r12, unicode_decomp_table1
mov [rsp+98h+var_80], rsi
mov [rsp+98h+var_88], r15
loc_9B6D2:
mov ebp, [r14+rbx*4]
lea r13d, [rbp-0AC00h]
cmp r13d, 2BA4h
jnb loc_9B78D
mov ebp, r13d
mov eax, 0FFFFh
and ebp, eax
imul r14d, ebp, 6F75h
shr r14d, 18h
lea eax, [r14+1100h]
mov [rsp+98h+var_98], eax
mov edx, 4
mov r15, [rsp+98h+var_90]
mov rdi, r15
mov rsi, rsp
call dbuf_put
imul eax, r14d, 24Ch
mov r14, [rsp+98h+var_80]
mov ecx, r13d
sub ecx, eax
mov eax, 0FFFFh
and ecx, eax
imul eax, ecx, 925h
shr eax, 10h
add eax, 1161h
mov [rsp+98h+var_98], eax
mov edx, 4
mov rdi, r15
mov r15, [rsp+98h+var_88]
mov rsi, rsp
call dbuf_put
shr ebp, 2
imul eax, ebp, 4925h
shr eax, 11h
lea ecx, [rax+rax*8]
lea ecx, [rcx+rcx*2]
add ecx, eax
sub r13w, cx
jz loc_9B823
add r13d, 11A7h
movzx eax, r13w
mov [rsp+98h+var_98], eax
jmp loc_9B811
loc_9B78D:
xor esi, esi
mov eax, 2C4h
loc_9B794:
lea ecx, [rsi+rax]
mov edx, ecx
shr edx, 1Fh
add edx, ecx
sar edx, 1
movsxd rcx, edx
mov r9d, [r12+rcx*4]
mov ecx, r9d
shr ecx, 0Eh
cmp ecx, ebp
jbe short loc_9B7B7
dec edx
mov eax, edx
jmp short loc_9B7CE
loc_9B7B7:
mov r8d, r9d
shr r8d, 7
and r8d, 7Fh
lea esi, [r8+rcx]
cmp esi, ebp
ja short loc_9B7D4
inc edx
mov esi, edx
loc_9B7CE:
cmp esi, eax
jle short loc_9B794
jmp short loc_9B80E
loc_9B7D4:
mov eax, r9d
and eax, 1
cmp eax, [rsp+98h+var_94]
ja short loc_9B80E
shr r9d, 1
and r9d, 3Fh
lea rdi, [rsp+98h+var_78]
mov esi, ebp
call unicode_decomp_entry
test eax, eax
jz short loc_9B80E
mov rdi, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_78]
mov edx, eax
mov ecx, [rsp+98h+var_94]
call to_nfd_rec
jmp short loc_9B823
loc_9B80E:
mov [rsp+98h+var_98], ebp
loc_9B811:
mov edx, 4
mov rdi, [rsp+98h+var_90]
mov rsi, rsp
call dbuf_put
loc_9B823:
inc rbx
cmp rbx, r15
jnz loc_9B6D2
loc_9B82F:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
void to_nfd_rec(_QWORD *a1, long long a2, int a3, unsigned int a4)
{
long long v4; // r14
long long v5; // r15
long long v6; // rbx
unsigned int v7; // ebp
__int16 v8; // r13
int v9; // ebp
_QWORD *v10; // r15
_QWORD *v11; // rdi
__int16 v12; // r13
int v13; // esi
int v14; // eax
long long v15; // rdx
unsigned int v16; // r9d
long long v17; // rcx
long long v18; // r8
unsigned int v19; // eax
unsigned int v20; // [rsp+0h] [rbp-98h] BYREF
unsigned int v21; // [rsp+4h] [rbp-94h]
_QWORD *v22; // [rsp+8h] [rbp-90h]
long long v23; // [rsp+10h] [rbp-88h]
long long v24; // [rsp+18h] [rbp-80h]
_BYTE v25[120]; // [rsp+20h] [rbp-78h] BYREF
v21 = a4;
v22 = a1;
if ( a3 <= 0 )
return;
v4 = a2;
v5 = (unsigned int)a3;
v6 = 0LL;
v24 = a2;
v23 = (unsigned int)a3;
do
{
v7 = *(_DWORD *)(v4 + 4 * v6);
v8 = v7 + 21504;
if ( v7 - 44032 < 0x2BA4 )
{
v9 = (unsigned __int16)(v7 + 21504);
v20 = ((unsigned int)(28533 * v9) >> 24) + 4352;
v10 = v22;
dbuf_put(v22, (long long)&v20, 4LL);
v4 = v24;
v20 = ((2341 * (unsigned int)(unsigned __int16)(v8 - 588 * ((unsigned __int16)v9 / 0x24Cu))) >> 16) + 4449;
v11 = v10;
v5 = v23;
dbuf_put(v11, (long long)&v20, 4LL);
v12 = v8 - 28 * ((unsigned __int16)v9 / 0x1Cu);
if ( v12 )
{
v20 = (unsigned __int16)(v12 + 4519);
goto LABEL_17;
}
goto LABEL_18;
}
v13 = 0;
v14 = 708;
while ( 1 )
{
v15 = (unsigned int)((v13 + v14) / 2);
v16 = unicode_decomp_table1[(int)v15];
v17 = v16 >> 14;
if ( (unsigned int)v17 <= v7 )
break;
v14 = v15 - 1;
LABEL_11:
if ( v13 > v14 )
goto LABEL_16;
}
v18 = (v16 >> 7) & 0x7F;
if ( (int)v18 + (int)v17 <= v7 )
{
v13 = v15 + 1;
goto LABEL_11;
}
if ( (v16 & 1) <= v21 )
{
v19 = unicode_decomp_entry(v25, v7, v15, v17, v18, (v16 >> 1) & 0x3F);
if ( v19 )
{
to_nfd_rec(v22, v25, v19, v21);
goto LABEL_18;
}
}
LABEL_16:
v20 = v7;
LABEL_17:
dbuf_put(v22, (long long)&v20, 4LL);
LABEL_18:
++v6;
}
while ( v6 != v5 );
}
|
to_nfd_rec:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV dword ptr [RSP + 0x4],ECX
MOV qword ptr [RSP + 0x8],RDI
TEST EDX,EDX
JLE 0x0019b82f
MOV R14,RSI
MOV R15D,EDX
XOR EBX,EBX
LEA R12,[0x1a9cf0]
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],R15
LAB_0019b6d2:
MOV EBP,dword ptr [R14 + RBX*0x4]
LEA R13D,[RBP + -0xac00]
CMP R13D,0x2ba4
JNC 0x0019b78d
MOV EBP,R13D
MOV EAX,0xffff
AND EBP,EAX
IMUL R14D,EBP,0x6f75
SHR R14D,0x18
LEA EAX,[R14 + 0x1100]
MOV dword ptr [RSP],EAX
MOV EDX,0x4
MOV R15,qword ptr [RSP + 0x8]
MOV RDI,R15
MOV RSI,RSP
CALL 0x0011bd52
IMUL EAX,R14D,0x24c
MOV R14,qword ptr [RSP + 0x18]
MOV ECX,R13D
SUB ECX,EAX
MOV EAX,0xffff
AND ECX,EAX
IMUL EAX,ECX,0x925
SHR EAX,0x10
ADD EAX,0x1161
MOV dword ptr [RSP],EAX
MOV EDX,0x4
MOV RDI,R15
MOV R15,qword ptr [RSP + 0x10]
MOV RSI,RSP
CALL 0x0011bd52
SHR EBP,0x2
IMUL EAX,EBP,0x4925
SHR EAX,0x11
LEA ECX,[RAX + RAX*0x8]
LEA ECX,[RCX + RCX*0x2]
ADD ECX,EAX
SUB R13W,CX
JZ 0x0019b823
ADD R13D,0x11a7
MOVZX EAX,R13W
MOV dword ptr [RSP],EAX
JMP 0x0019b811
LAB_0019b78d:
XOR ESI,ESI
MOV EAX,0x2c4
LAB_0019b794:
LEA ECX,[RSI + RAX*0x1]
MOV EDX,ECX
SHR EDX,0x1f
ADD EDX,ECX
SAR EDX,0x1
MOVSXD RCX,EDX
MOV R9D,dword ptr [R12 + RCX*0x4]
MOV ECX,R9D
SHR ECX,0xe
CMP ECX,EBP
JBE 0x0019b7b7
DEC EDX
MOV EAX,EDX
JMP 0x0019b7ce
LAB_0019b7b7:
MOV R8D,R9D
SHR R8D,0x7
AND R8D,0x7f
LEA ESI,[R8 + RCX*0x1]
CMP ESI,EBP
JA 0x0019b7d4
INC EDX
MOV ESI,EDX
LAB_0019b7ce:
CMP ESI,EAX
JLE 0x0019b794
JMP 0x0019b80e
LAB_0019b7d4:
MOV EAX,R9D
AND EAX,0x1
CMP EAX,dword ptr [RSP + 0x4]
JA 0x0019b80e
SHR R9D,0x1
AND R9D,0x3f
LEA RDI,[RSP + 0x20]
MOV ESI,EBP
CALL 0x0019cf71
TEST EAX,EAX
JZ 0x0019b80e
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x20]
MOV EDX,EAX
MOV ECX,dword ptr [RSP + 0x4]
CALL 0x0019b69a
JMP 0x0019b823
LAB_0019b80e:
MOV dword ptr [RSP],EBP
LAB_0019b811:
MOV EDX,0x4
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RSP
CALL 0x0011bd52
LAB_0019b823:
INC RBX
CMP RBX,R15
JNZ 0x0019b6d2
LAB_0019b82f:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void to_nfd_rec(int8 param_1,long param_2,uint param_3,uint param_4)
{
uint uVar1;
int8 uVar2;
int iVar3;
int iVar4;
int iVar5;
ulong uVar6;
short sVar7;
uint uVar8;
ulong uVar9;
uint local_98;
uint local_94;
int8 local_90;
ulong local_88;
long local_80;
int1 local_78 [72];
if (0 < (int)param_3) {
uVar9 = (ulong)param_3;
uVar6 = 0;
local_94 = param_4;
local_90 = param_1;
local_88 = uVar9;
local_80 = param_2;
do {
uVar2 = local_90;
uVar8 = *(uint *)(param_2 + uVar6 * 4);
uVar1 = uVar8 - 0xac00;
if (uVar1 < 0x2ba4) {
uVar8 = (uVar1 & 0xffff) / 0x24c;
local_98 = uVar8 + 0x1100;
dbuf_put(local_90,&local_98,4);
param_2 = local_80;
uVar9 = local_88;
local_98 = ((uVar1 + uVar8 * -0x24c & 0xffff) * 0x925 >> 0x10) + 0x1161;
dbuf_put(uVar2,&local_98,4);
uVar8 = (uVar1 & 0xffff) >> 2;
sVar7 = (short)uVar1 - ((short)(uVar8 / 7) * 0x1b + (short)(uVar8 / 7));
if (sVar7 != 0) {
uVar8 = (uint)(ushort)(sVar7 + 0x11a7);
goto LAB_0019b811;
}
}
else {
iVar5 = 0;
iVar4 = 0x2c4;
do {
iVar3 = (iVar5 + iVar4) / 2;
uVar1 = *(uint *)(unicode_decomp_table1 + (long)iVar3 * 4);
if (uVar8 < uVar1 >> 0xe) {
iVar4 = iVar3 + -1;
}
else {
if (uVar8 < (uVar1 >> 7 & 0x7f) + (uVar1 >> 0xe)) {
if (((uVar1 & 1) <= local_94) &&
(iVar4 = unicode_decomp_entry(local_78,uVar8), iVar4 != 0)) {
to_nfd_rec(local_90,local_78,iVar4,local_94);
goto LAB_0019b823;
}
break;
}
iVar5 = iVar3 + 1;
}
} while (iVar5 <= iVar4);
LAB_0019b811:
local_98 = uVar8;
dbuf_put(local_90,&local_98,4);
}
LAB_0019b823:
uVar6 = uVar6 + 1;
} while (uVar6 != uVar9);
}
return;
}
|
|
11,586 |
ma_read_static_record
|
eloqsql/storage/maria/ma_statrec.c
|
int _ma_read_static_record(register MARIA_HA *info, register uchar *record,
MARIA_RECORD_POS pos)
{
int error;
DBUG_ENTER("_ma_read_static_record");
if (pos != HA_OFFSET_ERROR)
{
if (info->opt_flag & WRITE_CACHE_USED &&
info->rec_cache.pos_in_file <= pos &&
flush_io_cache(&info->rec_cache))
DBUG_RETURN(my_errno);
info->rec_cache.seek_not_done=1; /* We have done a seek */
error= (int) info->s->file_read(info, record,info->s->base.reclength,
pos, MYF(MY_NABP));
if (! error)
{
fast_ma_writeinfo(info);
if (!*record)
{
/* Record is deleted */
DBUG_PRINT("warning", ("Record is deleted"));
DBUG_RETURN((my_errno=HA_ERR_RECORD_DELETED));
}
info->update|= HA_STATE_AKTIV; /* Record is read */
DBUG_RETURN(0);
}
}
fast_ma_writeinfo(info); /* No such record */
DBUG_RETURN(my_errno);
}
|
O3
|
c
|
ma_read_static_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $-0x1, %rdx
je 0x63a13
movq %rdx, %r15
movq %rsi, %r14
testb $0x10, 0x61c(%rbx)
je 0x639e6
cmpq %r15, 0x4b8(%rbx)
ja 0x639e6
leaq 0x4b8(%rbx), %rdi
movl $0x1, %esi
callq 0xb0e3d
testl %eax, %eax
jne 0x63a29
movl $0x1, 0x598(%rbx)
movq (%rbx), %rax
movq 0x398(%rax), %rdx
movl $0x4, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq *0x6e0(%rax)
testl %eax, %eax
je 0x63a3b
movq (%rbx), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x63a29
movq %rbx, %rdi
xorl %esi, %esi
callq 0x62f86
callq 0xc14ee
movl (%rax), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x63a51
movq %rbx, %rdi
xorl %esi, %esi
callq 0x62f86
cmpb $0x0, (%r14)
je 0x63a62
orb $0x2, 0x624(%rbx)
xorl %eax, %eax
jmp 0x63a30
callq 0xc14ee
movl $0x86, (%rax)
movl $0x86, %eax
jmp 0x63a30
|
_ma_read_static_record:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
cmp rdx, 0FFFFFFFFFFFFFFFFh
jz short loc_63A13
mov r15, rdx
mov r14, rsi
test byte ptr [rbx+61Ch], 10h
jz short loc_639E6
cmp [rbx+4B8h], r15
ja short loc_639E6
lea rdi, [rbx+4B8h]
mov esi, 1
call my_b_flush_io_cache
test eax, eax
jnz short loc_63A29
loc_639E6:
mov dword ptr [rbx+598h], 1
mov rax, [rbx]
mov rdx, [rax+398h]
mov r8d, 4
mov rdi, rbx
mov rsi, r14
mov rcx, r15
call qword ptr [rax+6E0h]
test eax, eax
jz short loc_63A3B
loc_63A13:
mov rax, [rbx]
cmp dword ptr [rax+7B8h], 0
jnz short loc_63A29
mov rdi, rbx
xor esi, esi
call _ma_writeinfo
loc_63A29:
call _my_thread_var
mov eax, [rax]
loc_63A30:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_63A3B:
mov rax, [rbx]
cmp dword ptr [rax+7B8h], 0
jnz short loc_63A51
mov rdi, rbx
xor esi, esi
call _ma_writeinfo
loc_63A51:
cmp byte ptr [r14], 0
jz short loc_63A62
or byte ptr [rbx+624h], 2
xor eax, eax
jmp short loc_63A30
loc_63A62:
call _my_thread_var
mov dword ptr [rax], 86h
mov eax, 86h
jmp short loc_63A30
|
long long ma_read_static_record(long long a1, _BYTE *a2, unsigned long long a3)
{
long long v3; // rbx
v3 = a1;
if ( a3 == -1LL )
goto LABEL_17;
if ( (*(_BYTE *)(a1 + 1564) & 0x10) != 0 && *(_QWORD *)(a1 + 1208) <= a3 )
{
a1 += 1208LL;
if ( (unsigned int)my_b_flush_io_cache(a1, 1LL) )
return *(unsigned int *)my_thread_var(a1);
}
*(_DWORD *)(v3 + 1432) = 1;
a1 = v3;
if ( (*(unsigned int ( **)(long long, _BYTE *, _QWORD, unsigned long long, long long))(*(_QWORD *)v3 + 1760LL))(
v3,
a2,
*(_QWORD *)(*(_QWORD *)v3 + 920LL),
a3,
4LL) )
{
LABEL_17:
if ( !*(_DWORD *)(*(_QWORD *)v3 + 1976LL) )
{
a1 = v3;
ma_writeinfo((long long *)v3, 0);
}
return *(unsigned int *)my_thread_var(a1);
}
if ( !*(_DWORD *)(*(_QWORD *)v3 + 1976LL) )
{
a1 = v3;
ma_writeinfo((long long *)v3, 0);
}
if ( *a2 )
{
*(_BYTE *)(v3 + 1572) |= 2u;
return 0LL;
}
else
{
*(_DWORD *)my_thread_var(a1) = 134;
return 134LL;
}
}
|
_ma_read_static_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP RDX,-0x1
JZ 0x00163a13
MOV R15,RDX
MOV R14,RSI
TEST byte ptr [RBX + 0x61c],0x10
JZ 0x001639e6
CMP qword ptr [RBX + 0x4b8],R15
JA 0x001639e6
LEA RDI,[RBX + 0x4b8]
MOV ESI,0x1
CALL 0x001b0e3d
TEST EAX,EAX
JNZ 0x00163a29
LAB_001639e6:
MOV dword ptr [RBX + 0x598],0x1
MOV RAX,qword ptr [RBX]
MOV RDX,qword ptr [RAX + 0x398]
MOV R8D,0x4
MOV RDI,RBX
MOV RSI,R14
MOV RCX,R15
CALL qword ptr [RAX + 0x6e0]
TEST EAX,EAX
JZ 0x00163a3b
LAB_00163a13:
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x00163a29
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00162f86
LAB_00163a29:
CALL 0x001c14ee
MOV EAX,dword ptr [RAX]
LAB_00163a30:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00163a3b:
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x00163a51
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00162f86
LAB_00163a51:
CMP byte ptr [R14],0x0
JZ 0x00163a62
OR byte ptr [RBX + 0x624],0x2
XOR EAX,EAX
JMP 0x00163a30
LAB_00163a62:
CALL 0x001c14ee
MOV dword ptr [RAX],0x86
MOV EAX,0x86
JMP 0x00163a30
|
int4 _ma_read_static_record(long *param_1,char *param_2,ulong param_3)
{
int iVar1;
int4 *puVar2;
if (param_3 != 0xffffffffffffffff) {
if ((((*(byte *)((long)param_1 + 0x61c) & 0x10) != 0) && ((ulong)param_1[0x97] <= param_3)) &&
(iVar1 = my_b_flush_io_cache(param_1 + 0x97,1), iVar1 != 0)) goto LAB_00163a29;
*(int4 *)(param_1 + 0xb3) = 1;
iVar1 = (**(code **)(*param_1 + 0x6e0))
(param_1,param_2,*(int8 *)(*param_1 + 0x398),param_3,4);
if (iVar1 == 0) {
if (*(int *)(*param_1 + 0x7b8) == 0) {
_ma_writeinfo(param_1,0);
}
if (*param_2 != '\0') {
*(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) | 2;
return 0;
}
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x86;
return 0x86;
}
}
if (*(int *)(*param_1 + 0x7b8) == 0) {
_ma_writeinfo(param_1,0);
}
LAB_00163a29:
puVar2 = (int4 *)_my_thread_var();
return *puVar2;
}
|
|
11,587 |
my_strtod
|
eloqsql/strings/dtoa.c
|
double my_strtod(const char *str, char **end, int *error)
{
char buf[DTOA_BUFF_SIZE];
double res;
DBUG_ASSERT(end != NULL && ((str != NULL && *end != NULL) ||
(str == NULL && *end == NULL)) &&
error != NULL);
res= my_strtod_int(str, end, error, buf, sizeof(buf));
return (*error == 0) ? res : (res < 0 ? -DBL_MAX : DBL_MAX);
}
|
O0
|
c
|
my_strtod:
pushq %rbp
movq %rsp, %rbp
subq $0xea0, %rsp # imm = 0xEA0
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0xe78(%rbp)
movq %rsi, -0xe80(%rbp)
movq %rdx, -0xe88(%rbp)
jmp 0x8289f
movq -0xe78(%rbp), %rdi
movq -0xe80(%rbp), %rsi
movq -0xe88(%rbp), %rdx
leaq -0xe70(%rbp), %rcx
movl $0xe60, %r8d # imm = 0xE60
callq 0x82960
movsd %xmm0, -0xe90(%rbp)
movq -0xe88(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x828ec
movsd -0xe90(%rbp), %xmm0
movsd %xmm0, -0xe98(%rbp)
jmp 0x82923
movsd -0xe90(%rbp), %xmm0
movsd 0xe914(%rip), %xmm3 # 0x91210
movsd 0xe914(%rip), %xmm2 # 0x91218
xorps %xmm1, %xmm1
cmpltsd %xmm1, %xmm0
movaps %xmm0, %xmm1
andpd %xmm3, %xmm1
andnpd %xmm2, %xmm0
orpd %xmm1, %xmm0
movsd %xmm0, -0xe98(%rbp)
movsd -0xe98(%rbp), %xmm0
movsd %xmm0, -0xea0(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x82956
movsd -0xea0(%rbp), %xmm0
addq $0xea0, %rsp # imm = 0xEA0
popq %rbp
retq
callq 0x253b0
nopl (%rax,%rax)
|
my_strtod:
push rbp
mov rbp, rsp
sub rsp, 0EA0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_E78], rdi
mov [rbp+var_E80], rsi
mov [rbp+var_E88], rdx
jmp short $+2
loc_8289F:
mov rdi, [rbp+var_E78]
mov rsi, [rbp+var_E80]
mov rdx, [rbp+var_E88]
lea rcx, [rbp+var_E70]
mov r8d, 0E60h
call my_strtod_int
movsd [rbp+var_E90], xmm0
mov rax, [rbp+var_E88]
cmp dword ptr [rax], 0
jnz short loc_828EC
movsd xmm0, [rbp+var_E90]
movsd [rbp+var_E98], xmm0
jmp short loc_82923
loc_828EC:
movsd xmm0, [rbp+var_E90]
movsd xmm3, cs:qword_91210
movsd xmm2, cs:qword_91218
xorps xmm1, xmm1
cmpltsd xmm0, xmm1
movaps xmm1, xmm0
andpd xmm1, xmm3
andnpd xmm0, xmm2
orpd xmm0, xmm1
movsd [rbp+var_E98], xmm0
loc_82923:
movsd xmm0, [rbp+var_E98]
movsd [rbp+var_EA0], xmm0
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_82956
movsd xmm0, [rbp+var_EA0]
add rsp, 0EA0h
pop rbp
retn
loc_82956:
call ___stack_chk_fail
|
double my_strtod(long long a1, long long a2, _DWORD *a3)
{
__m128d v3; // xmm1
double v4; // xmm0_8
double v6; // [rsp+8h] [rbp-E98h]
double v7; // [rsp+10h] [rbp-E90h]
_BYTE v9[3688]; // [rsp+30h] [rbp-E70h] BYREF
unsigned long long v10; // [rsp+E98h] [rbp-8h]
v10 = __readfsqword(0x28u);
v7 = my_strtod_int(a1, a2, a3, v9, 3680LL);
if ( !*a3 )
return v7;
v3.m128d_f64[0] = 0.0;
v4 = _mm_cmplt_sd((__m128d)*(unsigned long long *)&v7, v3).m128d_f64[0];
*(_QWORD *)&v6 = ~*(_QWORD *)&v4 & 0x7FEFFFFFFFFFFFFFLL | *(_QWORD *)&v4 & 0xFFEFFFFFFFFFFFFFLL;
return v6;
}
|
my_strtod:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xea0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0xe78],RDI
MOV qword ptr [RBP + -0xe80],RSI
MOV qword ptr [RBP + -0xe88],RDX
JMP 0x0018289f
LAB_0018289f:
MOV RDI,qword ptr [RBP + -0xe78]
MOV RSI,qword ptr [RBP + -0xe80]
MOV RDX,qword ptr [RBP + -0xe88]
LEA RCX,[RBP + -0xe70]
MOV R8D,0xe60
CALL 0x00182960
MOVSD qword ptr [RBP + -0xe90],XMM0
MOV RAX,qword ptr [RBP + -0xe88]
CMP dword ptr [RAX],0x0
JNZ 0x001828ec
MOVSD XMM0,qword ptr [RBP + -0xe90]
MOVSD qword ptr [RBP + -0xe98],XMM0
JMP 0x00182923
LAB_001828ec:
MOVSD XMM0,qword ptr [RBP + -0xe90]
MOVSD XMM3,qword ptr [0x00191210]
MOVSD XMM2,qword ptr [0x00191218]
XORPS XMM1,XMM1
CMPLTSD XMM0,XMM1
MOVAPS XMM1,XMM0
ANDPD XMM1,XMM3
ANDNPD XMM0,XMM2
ORPD XMM0,XMM1
MOVSD qword ptr [RBP + -0xe98],XMM0
LAB_00182923:
MOVSD XMM0,qword ptr [RBP + -0xe98]
MOVSD qword ptr [RBP + -0xea0],XMM0
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00182956
MOVSD XMM0,qword ptr [RBP + -0xea0]
ADD RSP,0xea0
POP RBP
RET
LAB_00182956:
CALL 0x001253b0
|
double my_strtod(int8 param_1,int8 param_2,int *param_3)
{
long in_FS_OFFSET;
double local_ea0;
int1 local_e78 [3688];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_ea0 = (double)my_strtod_int(param_1,param_2,param_3,local_e78,0xe60);
if (*param_3 != 0) {
local_ea0 = (double)(~-(ulong)(local_ea0 < 0.0) & DAT_00191218 |
-(ulong)(local_ea0 < 0.0) & DAT_00191210);
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_ea0;
}
|
|
11,588 |
mp_sub
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_sub(limb_t *res, const limb_t *op1, const limb_t *op2,
mp_size_t n, limb_t carry)
{
int i;
limb_t k, a, v, k1;
k = carry;
for(i=0;i<n;i++) {
v = op1[i];
a = v - op2[i];
k1 = a > v;
v = a - k;
k = (v > a) | k1;
res[i] = v;
}
return k;
}
|
O0
|
c
|
mp_sub:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq %r8, -0x28(%rsp)
movq -0x28(%rsp), %rax
movq %rax, -0x38(%rsp)
movl $0x0, -0x2c(%rsp)
movslq -0x2c(%rsp), %rax
cmpq -0x20(%rsp), %rax
jge 0xe623f
movq -0x10(%rsp), %rax
movslq -0x2c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rsp)
movq -0x48(%rsp), %rax
movq -0x18(%rsp), %rcx
movslq -0x2c(%rsp), %rdx
subq (%rcx,%rdx,8), %rax
movq %rax, -0x40(%rsp)
movq -0x40(%rsp), %rax
cmpq -0x48(%rsp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x50(%rsp)
movq -0x40(%rsp), %rax
subq -0x38(%rsp), %rax
movq %rax, -0x48(%rsp)
movq -0x48(%rsp), %rax
cmpq -0x40(%rsp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
orq -0x50(%rsp), %rax
movq %rax, -0x38(%rsp)
movq -0x48(%rsp), %rdx
movq -0x8(%rsp), %rax
movslq -0x2c(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rsp)
jmp 0xe619b
movq -0x38(%rsp), %rax
retq
nopw %cs:(%rax,%rax)
|
mp_sub:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov [rsp+var_20], rcx
mov [rsp+var_28], r8
mov rax, [rsp+var_28]
mov [rsp+var_38], rax
mov [rsp+var_2C], 0
loc_E619B:
movsxd rax, [rsp+var_2C]
cmp rax, [rsp+var_20]
jge loc_E623F
mov rax, [rsp+var_10]
movsxd rcx, [rsp+var_2C]
mov rax, [rax+rcx*8]
mov [rsp+var_48], rax
mov rax, [rsp+var_48]
mov rcx, [rsp+var_18]
movsxd rdx, [rsp+var_2C]
sub rax, [rcx+rdx*8]
mov [rsp+var_40], rax
mov rax, [rsp+var_40]
cmp rax, [rsp+var_48]
setnbe al
and al, 1
movzx eax, al
cdqe
mov [rsp+var_50], rax
mov rax, [rsp+var_40]
sub rax, [rsp+var_38]
mov [rsp+var_48], rax
mov rax, [rsp+var_48]
cmp rax, [rsp+var_40]
setnbe al
and al, 1
movzx eax, al
cdqe
or rax, [rsp+var_50]
mov [rsp+var_38], rax
mov rdx, [rsp+var_48]
mov rax, [rsp+var_8]
movsxd rcx, [rsp+var_2C]
mov [rax+rcx*8], rdx
mov eax, [rsp+var_2C]
add eax, 1
mov [rsp+var_2C], eax
jmp loc_E619B
loc_E623F:
mov rax, [rsp+var_38]
retn
|
_BOOL8 mp_sub(long long a1, long long a2, long long a3, long long a4, _BOOL8 a5)
{
_BOOL8 v6; // [rsp+0h] [rbp-50h]
unsigned long long v7; // [rsp+8h] [rbp-48h]
unsigned long long v8; // [rsp+8h] [rbp-48h]
unsigned long long v9; // [rsp+10h] [rbp-40h]
int i; // [rsp+24h] [rbp-2Ch]
for ( i = 0; i < a4; ++i )
{
v7 = *(_QWORD *)(a2 + 8LL * i);
v9 = v7 - *(_QWORD *)(a3 + 8LL * i);
v6 = v9 > v7;
v8 = v9 - a5;
a5 = v6 || v9 - a5 > v9;
*(_QWORD *)(a1 + 8LL * i) = v8;
}
return a5;
}
|
mp_sub:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV qword ptr [RSP + -0x20],RCX
MOV qword ptr [RSP + -0x28],R8
MOV RAX,qword ptr [RSP + -0x28]
MOV qword ptr [RSP + -0x38],RAX
MOV dword ptr [RSP + -0x2c],0x0
LAB_001e619b:
MOVSXD RAX,dword ptr [RSP + -0x2c]
CMP RAX,qword ptr [RSP + -0x20]
JGE 0x001e623f
MOV RAX,qword ptr [RSP + -0x10]
MOVSXD RCX,dword ptr [RSP + -0x2c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + -0x48],RAX
MOV RAX,qword ptr [RSP + -0x48]
MOV RCX,qword ptr [RSP + -0x18]
MOVSXD RDX,dword ptr [RSP + -0x2c]
SUB RAX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP + -0x40],RAX
MOV RAX,qword ptr [RSP + -0x40]
CMP RAX,qword ptr [RSP + -0x48]
SETA AL
AND AL,0x1
MOVZX EAX,AL
CDQE
MOV qword ptr [RSP + -0x50],RAX
MOV RAX,qword ptr [RSP + -0x40]
SUB RAX,qword ptr [RSP + -0x38]
MOV qword ptr [RSP + -0x48],RAX
MOV RAX,qword ptr [RSP + -0x48]
CMP RAX,qword ptr [RSP + -0x40]
SETA AL
AND AL,0x1
MOVZX EAX,AL
CDQE
OR RAX,qword ptr [RSP + -0x50]
MOV qword ptr [RSP + -0x38],RAX
MOV RDX,qword ptr [RSP + -0x48]
MOV RAX,qword ptr [RSP + -0x8]
MOVSXD RCX,dword ptr [RSP + -0x2c]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EAX,dword ptr [RSP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + -0x2c],EAX
JMP 0x001e619b
LAB_001e623f:
MOV RAX,qword ptr [RSP + -0x38]
RET
|
long mp_sub(long param_1,long param_2,long param_3,long param_4,long param_5)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
int8 local_38;
int4 local_2c;
local_38 = param_5;
for (local_2c = 0; local_2c < param_4; local_2c = local_2c + 1) {
uVar1 = *(ulong *)(param_2 + (long)local_2c * 8);
uVar2 = uVar1 - *(long *)(param_3 + (long)local_2c * 8);
uVar3 = uVar2 - local_38;
local_38 = (long)(int)(uint)(uVar2 < uVar3 || uVar1 < uVar2);
*(ulong *)(param_1 + (long)local_2c * 8) = uVar3;
}
return local_38;
}
|
|
11,589 |
mp_sub
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_sub(limb_t *res, const limb_t *op1, const limb_t *op2,
mp_size_t n, limb_t carry)
{
int i;
limb_t k, a, v, k1;
k = carry;
for(i=0;i<n;i++) {
v = op1[i];
a = v - op2[i];
k1 = a > v;
v = a - k;
k = (v > a) | k1;
res[i] = v;
}
return k;
}
|
O1
|
c
|
mp_sub:
movq %r8, %rax
testq %rcx, %rcx
jle 0x849cb
xorl %r8d, %r8d
movq (%rsi,%r8,8), %r9
subq (%rdx,%r8,8), %r9
setb %r10b
subq %rax, %r9
setb %al
orb %r10b, %al
movzbl %al, %eax
movq %r9, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x849a7
retq
|
mp_sub:
mov rax, r8
test rcx, rcx
jle short locret_849CB
xor r8d, r8d
loc_849A7:
mov r9, [rsi+r8*8]
sub r9, [rdx+r8*8]
setb r10b
sub r9, rax
setb al
or al, r10b
movzx eax, al
mov [rdi+r8*8], r9
inc r8
cmp rcx, r8
jnz short loc_849A7
locret_849CB:
retn
|
unsigned long long mp_sub(long long a1, long long a2, long long a3, long long a4, unsigned long long a5)
{
unsigned long long result; // rax
long long i; // r8
unsigned long long v7; // r9
bool v8; // cf
unsigned long long v9; // r9
bool v10; // r10
unsigned long long v11; // r9
result = a5;
if ( a4 > 0 )
{
for ( i = 0LL; i != a4; ++i )
{
v7 = *(_QWORD *)(a2 + 8 * i);
v8 = v7 < *(_QWORD *)(a3 + 8 * i);
v9 = v7 - *(_QWORD *)(a3 + 8 * i);
v10 = v8;
v8 = v9 < result;
v11 = v9 - result;
result = v10 | (unsigned __int8)v8;
*(_QWORD *)(a1 + 8 * i) = v11;
}
}
return result;
}
|
mp_sub:
MOV RAX,R8
TEST RCX,RCX
JLE 0x001849cb
XOR R8D,R8D
LAB_001849a7:
MOV R9,qword ptr [RSI + R8*0x8]
SUB R9,qword ptr [RDX + R8*0x8]
SETC R10B
SUB R9,RAX
SETC AL
OR AL,R10B
MOVZX EAX,AL
MOV qword ptr [RDI + R8*0x8],R9
INC R8
CMP RCX,R8
JNZ 0x001849a7
LAB_001849cb:
RET
|
void mp_sub(long param_1,long param_2,long param_3,long param_4,ulong param_5)
{
ulong *puVar1;
ulong uVar2;
long lVar3;
ulong uVar4;
long lVar5;
if (0 < param_4) {
lVar3 = 0;
do {
uVar2 = *(ulong *)(param_2 + lVar3 * 8);
puVar1 = (ulong *)(param_3 + lVar3 * 8);
uVar4 = uVar2 - *puVar1;
lVar5 = uVar4 - param_5;
param_5 = (ulong)(uVar4 < param_5 || uVar2 < *puVar1);
*(long *)(param_1 + lVar3 * 8) = lVar5;
lVar3 = lVar3 + 1;
} while (param_4 != lVar3);
}
return;
}
|
|
11,590 |
mp_sub
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_sub(limb_t *res, const limb_t *op1, const limb_t *op2,
mp_size_t n, limb_t carry)
{
int i;
limb_t k, a, v, k1;
k = carry;
for(i=0;i<n;i++) {
v = op1[i];
a = v - op2[i];
k1 = a > v;
v = a - k;
k = (v > a) | k1;
res[i] = v;
}
return k;
}
|
O3
|
c
|
mp_sub:
movq %r8, %rax
testq %rcx, %rcx
jle 0x873e3
xorl %r8d, %r8d
movq (%rsi,%r8,8), %r9
subq (%rdx,%r8,8), %r9
setb %r10b
subq %rax, %r9
setb %al
orb %r10b, %al
movzbl %al, %eax
movq %r9, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x873bf
retq
|
mp_sub:
mov rax, r8
test rcx, rcx
jle short locret_873E3
xor r8d, r8d
loc_873BF:
mov r9, [rsi+r8*8]
sub r9, [rdx+r8*8]
setb r10b
sub r9, rax
setb al
or al, r10b
movzx eax, al
mov [rdi+r8*8], r9
inc r8
cmp rcx, r8
jnz short loc_873BF
locret_873E3:
retn
|
unsigned long long mp_sub(long long a1, long long a2, long long a3, long long a4, unsigned long long a5)
{
unsigned long long result; // rax
long long i; // r8
unsigned long long v7; // r9
bool v8; // cf
unsigned long long v9; // r9
bool v10; // r10
unsigned long long v11; // r9
result = a5;
if ( a4 > 0 )
{
for ( i = 0LL; i != a4; ++i )
{
v7 = *(_QWORD *)(a2 + 8 * i);
v8 = v7 < *(_QWORD *)(a3 + 8 * i);
v9 = v7 - *(_QWORD *)(a3 + 8 * i);
v10 = v8;
v8 = v9 < result;
v11 = v9 - result;
result = v10 | (unsigned __int8)v8;
*(_QWORD *)(a1 + 8 * i) = v11;
}
}
return result;
}
|
mp_sub:
MOV RAX,R8
TEST RCX,RCX
JLE 0x001873e3
XOR R8D,R8D
LAB_001873bf:
MOV R9,qword ptr [RSI + R8*0x8]
SUB R9,qword ptr [RDX + R8*0x8]
SETC R10B
SUB R9,RAX
SETC AL
OR AL,R10B
MOVZX EAX,AL
MOV qword ptr [RDI + R8*0x8],R9
INC R8
CMP RCX,R8
JNZ 0x001873bf
LAB_001873e3:
RET
|
void mp_sub(long param_1,long param_2,long param_3,long param_4,ulong param_5)
{
ulong *puVar1;
ulong uVar2;
long lVar3;
ulong uVar4;
long lVar5;
if (0 < param_4) {
lVar3 = 0;
do {
uVar2 = *(ulong *)(param_2 + lVar3 * 8);
puVar1 = (ulong *)(param_3 + lVar3 * 8);
uVar4 = uVar2 - *puVar1;
lVar5 = uVar4 - param_5;
param_5 = (ulong)(uVar4 < param_5 || uVar2 < *puVar1);
*(long *)(param_1 + lVar3 * 8) = lVar5;
lVar3 = lVar3 + 1;
} while (param_4 != lVar3);
}
return;
}
|
|
11,591 |
minja::ExpressionTemplateToken::ExpressionTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
|
monkey531[P]llama/common/minja.hpp
|
ExpressionTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && e) : TemplateToken(Type::Expression, location, pre, post), expr(std::move(e)) {}
|
O2
|
cpp
|
minja::ExpressionTemplateToken::ExpressionTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&):
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %r8d
movl %edx, %ecx
movq %rsi, %rdx
movq %rdi, %r14
pushq $0x1
popq %rsi
callq 0x5e744
leaq 0x6d77d(%rip), %rax # 0xdac88
addq $0x10, %rax
movq %rax, (%r14)
andq $0x0, 0x38(%r14)
movups (%rbx), %xmm0
andq $0x0, 0x8(%rbx)
movups %xmm0, 0x30(%r14)
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_ZN5minja23ExpressionTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE:
push r14
push rbx
push rax
mov rbx, r8
mov r8d, ecx
mov ecx, edx
mov rdx, rsi
mov r14, rdi
push 1
pop rsi
call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling)
lea rax, _ZTVN5minja23ExpressionTemplateTokenE; `vtable for'minja::ExpressionTemplateToken
add rax, 10h
mov [r14], rax
and qword ptr [r14+38h], 0
movups xmm0, xmmword ptr [rbx]
and qword ptr [rbx+8], 0
movups xmmword ptr [r14+30h], xmm0
and qword ptr [rbx], 0
add rsp, 8
pop rbx
pop r14
retn
|
long long * minja::ExpressionTemplateToken::ExpressionTemplateToken(
long long a1,
long long a2,
int a3,
int a4,
__int128 *a5)
{
long long *result; // rax
__int128 v7; // xmm0
minja::TemplateToken::TemplateToken(a1, 1, a2, a3, a4);
result = &`vtable for'minja::ExpressionTemplateToken + 2;
*(_QWORD *)a1 = &`vtable for'minja::ExpressionTemplateToken + 2;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a5 = 0LL;
return result;
}
|
ExpressionTemplateToken:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,R8
MOV R8D,ECX
MOV ECX,EDX
MOV RDX,RSI
MOV R14,RDI
PUSH 0x1
POP RSI
CALL 0x0015e744
LEA RAX,[0x1dac88]
ADD RAX,0x10
MOV qword ptr [R14],RAX
AND qword ptr [R14 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [RBX]
AND qword ptr [RBX + 0x8],0x0
MOVUPS xmmword ptr [R14 + 0x30],XMM0
AND qword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* minja::ExpressionTemplateToken::ExpressionTemplateToken(minja::Location const&,
minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::ExpressionTemplateToken::ExpressionTemplateToken
(ExpressionTemplateToken *this,int8 param_1,int4 param_3,int4 param_4,
int8 *param_5)
{
int8 uVar1;
TemplateToken::TemplateToken((TemplateToken *)this,1,param_1,param_3,param_4);
*(int ***)this = &PTR__ExpressionTemplateToken_001dac98;
*(int8 *)(this + 0x38) = 0;
uVar1 = param_5[1];
param_5[1] = 0;
*(int8 *)(this + 0x30) = *param_5;
*(int8 *)(this + 0x38) = uVar1;
*param_5 = 0;
return;
}
|
|
11,592 |
LefDefParser::lefiArray::Destroy()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiArray.cpp
|
void
lefiArray::Destroy()
{
clear();
lefFree((char*) (name_));
lefFree((char*) (caps_));
lefFree((char*) (minPins_));
lefFree((char*) (floors_));
lefFree((char*) (track_));
lefFree((char*) (gcell_));
lefFree((char*) (cannotOccupy_));
lefFree((char*) (canPlace_));
lefFree((char*) (pattern_));
}
|
O3
|
cpp
|
LefDefParser::lefiArray::Destroy():
pushq %rbx
movq %rdi, %rbx
callq 0xaf8a
movq 0x8(%rbx), %rdi
callq 0x322d0
movq 0x78(%rbx), %rdi
callq 0x322d0
movq 0x70(%rbx), %rdi
callq 0x322d0
movq 0x88(%rbx), %rdi
callq 0x322d0
movq 0x48(%rbx), %rdi
callq 0x322d0
movq 0x58(%rbx), %rdi
callq 0x322d0
movq 0x38(%rbx), %rdi
callq 0x322d0
movq 0x28(%rbx), %rdi
callq 0x322d0
movq 0x18(%rbx), %rdi
popq %rbx
jmp 0x322d0
|
_ZN12LefDefParser9lefiArray7DestroyEv:
push rbx
mov rbx, rdi
call _ZN12LefDefParser9lefiArray5clearEv; LefDefParser::lefiArray::clear(void)
mov rdi, [rbx+8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+78h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+70h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+88h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+48h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+58h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+38h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+28h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+18h]; this
pop rbx
jmp _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
|
long long LefDefParser::lefiArray::Destroy(LefDefParser **this, void *a2)
{
LefDefParser::lefiArray::clear((LefDefParser::lefiArray *)this);
LefDefParser::lefFree(this[1], a2);
LefDefParser::lefFree(this[15], a2);
LefDefParser::lefFree(this[14], a2);
LefDefParser::lefFree(this[17], a2);
LefDefParser::lefFree(this[9], a2);
LefDefParser::lefFree(this[11], a2);
LefDefParser::lefFree(this[7], a2);
LefDefParser::lefFree(this[5], a2);
return LefDefParser::lefFree(this[3], a2);
}
|
Destroy:
PUSH RBX
MOV RBX,RDI
CALL 0x0010af8a
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x78]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x70]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x88]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x48]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x58]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x38]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x28]
CALL 0x001322d0
MOV RDI,qword ptr [RBX + 0x18]
POP RBX
JMP 0x001322d0
|
/* LefDefParser::lefiArray::Destroy() */
void __thiscall LefDefParser::lefiArray::Destroy(lefiArray *this)
{
clear(this);
lefFree(*(void **)(this + 8));
lefFree(*(void **)(this + 0x78));
lefFree(*(void **)(this + 0x70));
lefFree(*(void **)(this + 0x88));
lefFree(*(void **)(this + 0x48));
lefFree(*(void **)(this + 0x58));
lefFree(*(void **)(this + 0x38));
lefFree(*(void **)(this + 0x28));
lefFree(*(void **)(this + 0x18));
return;
}
|
|
11,593 |
testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-matchers.cc
|
Matcher<internal::StringView>::Matcher(const std::string& s) { *this = Eq(s); }
|
O0
|
cpp
|
testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xe3c00
movq 0x8(%rsp), %rax
leaq 0xbf3c6(%rip), %rcx # 0x177488
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x78(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x39160
jmp 0xb80da
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe39b0
jmp 0xb80eb
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xe3c50
jmp 0xb80fc
movq 0x8(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xe3c90
jmp 0xb810d
leaq 0x60(%rsp), %rdi
callq 0xe3cc0
leaq 0x40(%rsp), %rdi
callq 0xe3a50
leaq 0x20(%rsp), %rdi
callq 0x1aac0
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0xb818f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0xb8185
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0xb817b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x60(%rsp), %rdi
callq 0xe3cc0
leaq 0x40(%rsp), %rdi
callq 0xe3a50
leaq 0x20(%rsp), %rdi
callq 0x1aac0
movq 0x8(%rsp), %rdi
callq 0xfa150
movq 0x18(%rsp), %rdi
callq 0x14c80
nopw %cs:(%rax,%rax)
|
_ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEEC2ERKNSt7__cxx1112basic_stringIcS3_SaIcEEE:
sub rsp, 88h; Alternative name is 'testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)'
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov rdi, [rsp+88h+var_8]
mov [rsp+88h+var_80], rdi
call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEEC2Ev; testing::internal::MatcherBase<std::string_view>::MatcherBase(void)
mov rax, [rsp+88h+var_80]
lea rcx, _ZTVN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEEE; `vtable for'testing::Matcher<std::string_view>
add rcx, 10h
mov [rax], rcx
mov rsi, [rsp+88h+var_10]
lea rdi, [rsp+88h+var_68]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_B80DA:
lea rdi, [rsp+88h+var_48]
lea rsi, [rsp+88h+var_68]
call _ZN7testing2EqINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_8internal9EqMatcherIT_EES9_; testing::Eq<std::string>(std::string)
jmp short $+2
loc_B80EB:
lea rdi, [rsp+88h+var_28]
lea rsi, [rsp+88h+var_48]
call _ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEEC2INS_8internal9EqMatcherINSt7__cxx1112basic_stringIcS3_SaIcEEEEEvEEOT_; testing::Matcher<std::string_view>::Matcher<testing::internal::EqMatcher<std::string>,void>(testing::internal::EqMatcher<std::string> &&)
jmp short $+2
loc_B80FC:
mov rdi, [rsp+88h+var_80]
lea rsi, [rsp+88h+var_28]
call _ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEEaSEOS5_; testing::Matcher<std::string_view>::operator=(testing::Matcher<std::string_view>&&)
jmp short $+2
loc_B810D:
lea rdi, [rsp+88h+var_28]
call _ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::Matcher<std::string_view>::~Matcher()
lea rdi, [rsp+88h+var_48]
call _ZN7testing8internal9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::EqMatcher<std::string>::~EqMatcher()
lea rdi, [rsp+88h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
jmp short loc_B818F
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
jmp short loc_B8185
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
jmp short loc_B817B
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
lea rdi, [rsp+arg_58]
call _ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::Matcher<std::string_view>::~Matcher()
loc_B817B:
lea rdi, [rsp+arg_38]
call _ZN7testing8internal9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::EqMatcher<std::string>::~EqMatcher()
loc_B8185:
lea rdi, [rsp+arg_18]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_B818F:
mov rdi, [rsp+arg_0]
call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view>::~MatcherBase()
mov rdi, [rsp+arg_10]
call __Unwind_Resume
|
void testing::Matcher<std::string_view>::Matcher(_QWORD *a1, long long a2)
{
_QWORD v2[4]; // [rsp+20h] [rbp-68h] BYREF
_BYTE v3[32]; // [rsp+40h] [rbp-48h] BYREF
_BYTE v4[24]; // [rsp+60h] [rbp-28h] BYREF
long long v5; // [rsp+78h] [rbp-10h]
_QWORD *v6; // [rsp+80h] [rbp-8h]
v6 = a1;
v5 = a2;
testing::internal::MatcherBase<std::string_view>::MatcherBase();
*a1 = &`vtable for'testing::Matcher<std::string_view> + 2;
std::string::basic_string(v2, v5);
testing::Eq<std::string>(v3, v2);
testing::Matcher<std::string_view>::Matcher<testing::internal::EqMatcher<std::string>,void>(v4, v3);
testing::Matcher<std::string_view>::operator=(a1, v4);
testing::Matcher<std::string_view>::~Matcher(v4);
testing::internal::EqMatcher<std::string>::~EqMatcher(v3);
std::string::~string(v2);
}
|
Matcher:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RSI
MOV RDI,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001e3c00
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x277488]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RSI,qword ptr [RSP + 0x78]
LAB_001b80ce:
LEA RDI,[RSP + 0x20]
CALL 0x00139160
JMP 0x001b80da
LAB_001b80da:
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x20]
CALL 0x001e39b0
JMP 0x001b80eb
LAB_001b80eb:
LEA RDI,[RSP + 0x60]
LEA RSI,[RSP + 0x40]
CALL 0x001e3c50
JMP 0x001b80fc
LAB_001b80fc:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x60]
CALL 0x001e3c90
LAB_001b810b:
JMP 0x001b810d
LAB_001b810d:
LEA RDI,[RSP + 0x60]
CALL 0x001e3cc0
LEA RDI,[RSP + 0x40]
CALL 0x001e3a50
LEA RDI,[RSP + 0x20]
CALL 0x0011aac0
ADD RSP,0x88
RET
|
/* testing::Matcher<std::basic_string_view<char, std::char_traits<char> >
>::Matcher(std::__cxx11::string const&) */
void __thiscall
testing::Matcher<std::basic_string_view<char,std::char_traits<char>>>::Matcher
(Matcher<std::basic_string_view<char,std::char_traits<char>>> *this,string *param_1)
{
string local_68 [32];
testing local_48 [32];
Matcher<std::basic_string_view<char,std::char_traits<char>>> local_28 [24];
string *local_10;
Matcher<std::basic_string_view<char,std::char_traits<char>>> *local_8;
local_10 = param_1;
local_8 = this;
internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>>::MatcherBase
((MatcherBase<std::basic_string_view<char,std::char_traits<char>>> *)this);
*(int ***)this = &PTR__Matcher_00277498;
/* try { // try from 001b80ce to 001b80d7 has its CatchHandler @ 001b8133 */
std::__cxx11::string::string(local_68,local_10);
/* try { // try from 001b80da to 001b80e8 has its CatchHandler @ 001b8143 */
Eq<std::__cxx11::string>(local_48,local_68);
/* try { // try from 001b80eb to 001b80f9 has its CatchHandler @ 001b8153 */
Matcher<testing::internal::EqMatcher<std::__cxx11::string>,void>(local_28,local_48);
/* try { // try from 001b80fc to 001b810a has its CatchHandler @ 001b8163 */
operator=(this,local_28);
~Matcher(local_28);
internal::EqMatcher<std::__cxx11::string>::~EqMatcher((EqMatcher<std::__cxx11::string> *)local_48)
;
std::__cxx11::string::~string(local_68);
return;
}
|
|
11,594 |
my_read_charset_file
|
eloqsql/mysys/charset.c
|
static my_bool
my_read_charset_file(MY_CHARSET_LOADER *loader,
const char *filename,
myf myflags)
{
uchar *buf;
int fd;
size_t len, tmp_len;
MY_STAT stat_info;
if (!my_stat(filename, &stat_info, MYF(myflags)) ||
((len= (uint)stat_info.st_size) > MY_MAX_ALLOWED_BUF) ||
!(buf= (uchar*) my_malloc(key_memory_charset_loader,len,myflags)))
return TRUE;
if ((fd= mysql_file_open(key_file_charset, filename, O_RDONLY, myflags)) < 0)
goto error;
tmp_len= mysql_file_read(fd, buf, len, myflags);
mysql_file_close(fd, myflags);
if (tmp_len != len)
goto error;
if (my_parse_charset_xml(loader, (char *) buf, len))
{
my_printf_error(EE_UNKNOWN_CHARSET, "Error while parsing '%s': %s\n",
MYF(0), filename, loader->error);
goto error;
}
my_free(buf);
return FALSE;
error:
my_free(buf);
return TRUE;
}
|
O0
|
c
|
my_read_charset_file:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0xd0(%rbp), %rsi
callq 0x655f0
cmpq $0x0, %rax
je 0x61876
movq -0xa0(%rbp), %rax
movl %eax, %eax
movq %rax, -0x38(%rbp)
cmpq $0x100000, %rax # imm = 0x100000
ja 0x61876
leaq 0x3aeaa7(%rip), %rax # 0x410304
movl (%rax), %edi
movq -0x38(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x58f20
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0x6187f
movb $0x1, -0x1(%rbp)
jmp 0x6194b
leaq 0x3ae11a(%rip), %rax # 0x40f9a0
movl (%rax), %edi
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r9
leaq 0x4dfc8(%rip), %rsi # 0xaf85f
movl $0x223, %edx # imm = 0x223
xorl %r8d, %r8d
callq 0x61960
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jge 0x618b1
jmp 0x6193e
movl -0x2c(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %r8
movq -0x20(%rbp), %r9
leaq 0x4df98(%rip), %rdi # 0xaf85f
movl $0x225, %esi # imm = 0x225
callq 0x61a50
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %edx
movq -0x20(%rbp), %rcx
leaq 0x4df7c(%rip), %rdi # 0xaf85f
movl $0x226, %esi # imm = 0x226
callq 0x61bc0
movq -0x40(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x618f9
jmp 0x6193e
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xa0b10
cmpb $0x0, %al
je 0x6192f
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %r8
movl $0x16, %edi
leaq 0x4df76(%rip), %rsi # 0xaf898
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0x64a60
jmp 0x6193e
movq -0x28(%rbp), %rdi
callq 0x592a0
movb $0x0, -0x1(%rbp)
jmp 0x6194b
movq -0x28(%rbp), %rdi
callq 0x592a0
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0xd0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
my_read_charset_file:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_20]
lea rsi, [rbp+var_D0]
call my_stat
cmp rax, 0
jz short loc_61876
mov rax, [rbp+var_A0]
mov eax, eax
mov [rbp+var_38], rax
cmp rax, offset unk_100000
ja short loc_61876
lea rax, key_memory_charset_loader
mov edi, [rax]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_20]
call my_malloc
mov [rbp+var_28], rax
cmp rax, 0
jnz short loc_6187F
loc_61876:
mov [rbp+var_1], 1
jmp loc_6194B
loc_6187F:
lea rax, key_file_charset
mov edi, [rax]
mov rcx, [rbp+var_18]
mov r9, [rbp+var_20]
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 223h
xor r8d, r8d
call inline_mysql_file_open
mov [rbp+var_2C], eax
cmp eax, 0
jge short loc_618B1
jmp loc_6193E
loc_618B1:
mov edx, [rbp+var_2C]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_38]
mov r9, [rbp+var_20]
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 225h
call inline_mysql_file_read
mov [rbp+var_40], rax
mov edx, [rbp+var_2C]
mov rcx, [rbp+var_20]
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 226h
call inline_mysql_file_close
mov rax, [rbp+var_40]
cmp rax, [rbp+var_38]
jz short loc_618F9
jmp short loc_6193E
loc_618F9:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
call my_parse_charset_xml
cmp al, 0
jz short loc_6192F
mov rcx, [rbp+var_18]
mov r8, [rbp+var_10]
mov edi, 16h
lea rsi, aErrorWhilePars; "Error while parsing '%s': %s\n"
xor eax, eax
mov edx, eax
mov al, 0
call my_printf_error
jmp short loc_6193E
loc_6192F:
mov rdi, [rbp+var_28]
call my_free
mov [rbp+var_1], 0
jmp short loc_6194B
loc_6193E:
mov rdi, [rbp+var_28]
call my_free
mov [rbp+var_1], 1
loc_6194B:
mov al, [rbp+var_1]
add rsp, 0D0h
pop rbp
retn
|
char my_read_charset_file(long long a1, long long a2, long long a3)
{
int v3; // r9d
char v5[48]; // [rsp+0h] [rbp-D0h] BYREF
long long v6; // [rsp+30h] [rbp-A0h]
long long v7; // [rsp+90h] [rbp-40h]
unsigned long long v8; // [rsp+98h] [rbp-38h]
int v9; // [rsp+A4h] [rbp-2Ch]
long long v10; // [rsp+A8h] [rbp-28h]
long long v11; // [rsp+B0h] [rbp-20h]
long long v12; // [rsp+B8h] [rbp-18h]
long long v13; // [rsp+C0h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = a3;
if ( my_stat(a2, v5, a3) )
{
v8 = (unsigned int)v6;
if ( (unsigned int)v6 <= (unsigned long long)&unk_100000 )
{
v10 = my_malloc(key_memory_charset_loader, v8, v11);
if ( v10 )
{
v9 = inline_mysql_file_open(
key_file_charset,
"/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",
547LL,
v12,
0LL,
v11);
if ( v9 >= 0 )
{
v7 = inline_mysql_file_read(
"/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",
549LL,
(unsigned int)v9,
v10,
v8,
v11);
inline_mysql_file_close(
"/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",
550LL,
(unsigned int)v9,
v11);
if ( v7 == v8 )
{
if ( !(unsigned __int8)my_parse_charset_xml(v13, v10, v8) )
{
my_free(v10);
return 0;
}
my_printf_error(22, (unsigned int)"Error while parsing '%s': %s\n", 0, v12, v13, v3, v5[0]);
}
}
my_free(v10);
return 1;
}
}
}
return 1;
}
|
my_read_charset_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd0]
CALL 0x001655f0
CMP RAX,0x0
JZ 0x00161876
MOV RAX,qword ptr [RBP + -0xa0]
MOV EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x100000
JA 0x00161876
LEA RAX,[0x510304]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00158f20
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JNZ 0x0016187f
LAB_00161876:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0016194b
LAB_0016187f:
LEA RAX,[0x50f9a0]
MOV EDI,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV R9,qword ptr [RBP + -0x20]
LEA RSI,[0x1af85f]
MOV EDX,0x223
XOR R8D,R8D
CALL 0x00161960
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JGE 0x001618b1
JMP 0x0016193e
LAB_001618b1:
MOV EDX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x38]
MOV R9,qword ptr [RBP + -0x20]
LEA RDI,[0x1af85f]
MOV ESI,0x225
CALL 0x00161a50
MOV qword ptr [RBP + -0x40],RAX
MOV EDX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[0x1af85f]
MOV ESI,0x226
CALL 0x00161bc0
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x38]
JZ 0x001618f9
JMP 0x0016193e
LAB_001618f9:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001a0b10
CMP AL,0x0
JZ 0x0016192f
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x10]
MOV EDI,0x16
LEA RSI,[0x1af898]
XOR EAX,EAX
MOV EDX,EAX
MOV AL,0x0
CALL 0x00164a60
JMP 0x0016193e
LAB_0016192f:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x001592a0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0016194b
LAB_0016193e:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x001592a0
MOV byte ptr [RBP + -0x1],0x1
LAB_0016194b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0xd0
POP RBP
RET
|
int1 my_read_charset_file(int8 param_1,int8 param_2,int8 param_3)
{
char cVar1;
long lVar2;
int1 local_d8 [48];
ulong local_a8;
ulong local_48;
ulong local_40;
int local_34;
long local_30;
int8 local_28;
int8 local_20;
int8 local_18;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
lVar2 = my_stat(param_2,local_d8,param_3);
if (((lVar2 != 0) && (local_40 = local_a8 & 0xffffffff, local_40 < 0x100001)) &&
(local_30 = my_malloc(key_memory_charset_loader,local_40,local_28), local_30 != 0)) {
local_34 = inline_mysql_file_open
(key_file_charset,
"/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",0x223,local_20,
0,local_28);
if (-1 < local_34) {
local_48 = inline_mysql_file_read
("/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",0x225,
local_34,local_30,local_40,local_28);
inline_mysql_file_close
("/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",0x226,local_34,local_28)
;
if (local_48 == local_40) {
cVar1 = my_parse_charset_xml(local_18,local_30,local_40);
if (cVar1 == '\0') {
my_free(local_30);
return 0;
}
my_printf_error(0x16,"Error while parsing \'%s\': %s\n",0,local_20,local_18);
}
}
my_free(local_30);
}
return 1;
}
|
|
11,595 |
my_realpath
|
eloqsql/mysys/my_symlink.c
|
int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
}
|
O3
|
c
|
my_realpath:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1010, %rsp # imm = 0x1010
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq -0x1030(%rbp), %rsi
movq %r14, %rdi
callq 0x365d0
testq %rax, %rax
je 0x62b05
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9292c
xorl %eax, %eax
jmp 0x62b54
callq 0x36a30
movl (%rax), %r12d
callq 0x6337a
movl %r12d, (%rax)
testb $0x10, %r15b
je 0x62b33
callq 0x6337a
movl (%rax), %ecx
movl $0x1a, %edi
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5e6bb
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x65a20
callq 0x6337a
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
leal -0x1(,%rcx,2), %eax
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0x62b73
addq $0x1010, %rsp # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x362b0
|
my_realpath:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 1010h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea rsi, [rbp+var_1030]
mov rdi, r14
call _realpath
test rax, rax
jz short loc_62B05
mov edx, 1FFh
mov rdi, rbx
mov rsi, rax
call strmake
xor eax, eax
jmp short loc_62B54
loc_62B05:
call ___errno_location
mov r12d, [rax]
call _my_thread_var
mov [rax], r12d
test r15b, 10h
jz short loc_62B33
call _my_thread_var
mov ecx, [rax]
mov edi, 1Ah
xor esi, esi
mov rdx, r14
xor eax, eax
call my_error
loc_62B33:
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_load_path
call _my_thread_var
xor ecx, ecx
cmp dword ptr [rax], 2
setz cl
lea eax, ds:0FFFFFFFFFFFFFFFFh[rcx*2]
loc_62B54:
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_62B73
add rsp, 1010h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_62B73:
call ___stack_chk_fail
|
long long my_realpath(long long a1, long long a2, char a3)
{
long long v4; // rax
int v6; // r12d
unsigned int *v7; // rax
_BYTE v8[4104]; // [rsp+0h] [rbp-1030h] BYREF
unsigned long long v9; // [rsp+1008h] [rbp-28h]
v9 = __readfsqword(0x28u);
v4 = realpath(a2, v8);
if ( v4 )
{
strmake(a1, v4, 511LL);
return 0LL;
}
else
{
v6 = *(_DWORD *)__errno_location(a2);
*(_DWORD *)my_thread_var(a2) = v6;
if ( (a3 & 0x10) != 0 )
{
v7 = (unsigned int *)my_thread_var(a2);
my_error(0x1Au, 0LL, a2, *v7);
}
my_load_path(a1, a2, 0LL);
return 2 * (unsigned int)(*(_DWORD *)my_thread_var(a1) == 2) - 1;
}
}
|
my_realpath:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1010
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA RSI,[RBP + -0x1030]
MOV RDI,R14
CALL 0x001365d0
TEST RAX,RAX
JZ 0x00162b05
MOV EDX,0x1ff
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0019292c
XOR EAX,EAX
JMP 0x00162b54
LAB_00162b05:
CALL 0x00136a30
MOV R12D,dword ptr [RAX]
CALL 0x0016337a
MOV dword ptr [RAX],R12D
TEST R15B,0x10
JZ 0x00162b33
CALL 0x0016337a
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR ESI,ESI
MOV RDX,R14
XOR EAX,EAX
CALL 0x0015e6bb
LAB_00162b33:
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x00165a20
CALL 0x0016337a
XOR ECX,ECX
CMP dword ptr [RAX],0x2
SETZ CL
LEA EAX,[-0x1 + RCX*0x2]
LAB_00162b54:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x00162b73
ADD RSP,0x1010
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00162b73:
CALL 0x001362b0
|
int my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
char local_1038 [4104];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
pcVar2 = realpath(param_2,local_1038);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
iVar1 = (uint)(*piVar3 == 2) * 2 + -1;
}
else {
strmake(param_1,pcVar2,0x1ff);
iVar1 = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return iVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
11,596 |
js_object_isSealed
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_object_isSealed(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_frozen)
{
JSValue obj = argv[0];
JSObject *p;
JSPropertyEnum *props;
uint32_t len, i;
int flags, res;
if (!JS_IsObject(obj))
return JS_TRUE;
p = JS_VALUE_GET_OBJ(obj);
flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK;
if (JS_GetOwnPropertyNamesInternal(ctx, &props, &len, p, flags))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
JSPropertyDescriptor desc;
JSAtom prop = props[i].atom;
res = JS_GetOwnPropertyInternal(ctx, &desc, p, prop);
if (res < 0)
goto exception;
if (res) {
js_free_desc(ctx, &desc);
if ((desc.flags & JS_PROP_CONFIGURABLE)
|| (is_frozen && (desc.flags & JS_PROP_WRITABLE))) {
res = FALSE;
goto done;
}
}
}
res = JS_IsExtensible(ctx, obj);
if (res < 0)
return JS_EXCEPTION;
res ^= 1;
done:
js_free_prop_enum(ctx, props, len);
return js_bool(res);
exception:
js_free_prop_enum(ctx, props, len);
return JS_EXCEPTION;
}
|
O0
|
c
|
js_object_isSealed:
subq $0xb8, %rsp
movq %rsi, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rdi, 0x90(%rsp)
movl %ecx, 0x8c(%rsp)
movq %r8, 0x80(%rsp)
movl %r9d, 0x7c(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x68(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x29cb0
cmpl $0x0, %eax
jne 0xbecdc
movl $0x1, 0xa8(%rsp)
movq $0x1, 0xb0(%rsp)
jmp 0xbee7c
movq 0x68(%rsp), %rax
movq %rax, 0x60(%rsp)
movl $0x3, 0x4c(%rsp)
movq 0x90(%rsp), %rdi
movq 0x60(%rsp), %rcx
movl 0x4c(%rsp), %r8d
leaq 0x58(%rsp), %rsi
leaq 0x54(%rsp), %rdx
callq 0x2e320
cmpl $0x0, %eax
je 0xbed30
movl $0x0, 0xa8(%rsp)
movq $0x6, 0xb0(%rsp)
jmp 0xbee7c
movl $0x0, 0x50(%rsp)
movl 0x50(%rsp), %eax
cmpl 0x54(%rsp), %eax
jae 0xbedd8
movq 0x58(%rsp), %rax
movl 0x50(%rsp), %ecx
movl 0x4(%rax,%rcx,8), %eax
movl %eax, 0xc(%rsp)
movq 0x90(%rsp), %rdi
movq 0x60(%rsp), %rdx
movl 0xc(%rsp), %ecx
leaq 0x10(%rsp), %rsi
callq 0x2ef00
movl %eax, 0x48(%rsp)
cmpl $0x0, 0x48(%rsp)
jge 0xbed82
jmp 0xbee4f
cmpl $0x0, 0x48(%rsp)
je 0xbedc6
movq 0x90(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5f740
movl 0x10(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xbedba
cmpl $0x0, 0x7c(%rsp)
je 0xbedc4
movl 0x10(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xbedc4
movl $0x0, 0x48(%rsp)
jmp 0xbee1e
jmp 0xbedc6
jmp 0xbedc8
movl 0x50(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x50(%rsp)
jmp 0xbed38
movq 0x90(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x2f7e0
movl %eax, 0x48(%rsp)
cmpl $0x0, 0x48(%rsp)
jge 0xbee13
movl $0x0, 0xa8(%rsp)
movq $0x6, 0xb0(%rsp)
jmp 0xbee7c
movl 0x48(%rsp), %eax
xorl $0x1, %eax
movl %eax, 0x48(%rsp)
movq 0x90(%rsp), %rdi
movq 0x58(%rsp), %rsi
movl 0x54(%rsp), %edx
callq 0x2f780
movl 0x48(%rsp), %edi
callq 0x55f90
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
jmp 0xbee7c
movq 0x90(%rsp), %rdi
movq 0x58(%rsp), %rsi
movl 0x54(%rsp), %edx
callq 0x2f780
movl $0x0, 0xa8(%rsp)
movq $0x6, 0xb0(%rsp)
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rdx
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
|
js_object_isSealed:
sub rsp, 0B8h
mov [rsp+0B8h+var_20], rsi
mov [rsp+0B8h+var_18], rdx
mov [rsp+0B8h+var_28], rdi
mov [rsp+0B8h+var_2C], ecx
mov [rsp+0B8h+var_38], r8
mov [rsp+0B8h+var_3C], r9d
mov rax, [rsp+0B8h+var_38]
mov rcx, [rax]
mov [rsp+0B8h+var_50], rcx
mov rax, [rax+8]
mov [rsp+0B8h+var_48], rax
mov rdi, [rsp+0B8h+var_50]
mov rsi, [rsp+0B8h+var_48]
call JS_IsObject
cmp eax, 0
jnz short loc_BECDC
mov dword ptr [rsp+0B8h+var_10], 1
mov [rsp+0B8h+var_8], 1
jmp loc_BEE7C
loc_BECDC:
mov rax, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_58], rax
mov [rsp+0B8h+var_6C], 3
mov rdi, [rsp+0B8h+var_28]
mov rcx, [rsp+0B8h+var_58]
mov r8d, [rsp+0B8h+var_6C]
lea rsi, [rsp+0B8h+var_60]
lea rdx, [rsp+0B8h+var_64]
call JS_GetOwnPropertyNamesInternal
cmp eax, 0
jz short loc_BED30
mov dword ptr [rsp+0B8h+var_10], 0
mov [rsp+0B8h+var_8], 6
jmp loc_BEE7C
loc_BED30:
mov [rsp+0B8h+var_68], 0
loc_BED38:
mov eax, [rsp+0B8h+var_68]
cmp eax, [rsp+0B8h+var_64]
jnb loc_BEDD8
mov rax, [rsp+0B8h+var_60]
mov ecx, [rsp+0B8h+var_68]
mov eax, [rax+rcx*8+4]
mov [rsp+0B8h+var_AC], eax
mov rdi, [rsp+0B8h+var_28]
mov rdx, [rsp+0B8h+var_58]
mov ecx, [rsp+0B8h+var_AC]
lea rsi, [rsp+0B8h+var_A8]
call JS_GetOwnPropertyInternal
mov [rsp+0B8h+var_70], eax
cmp [rsp+0B8h+var_70], 0
jge short loc_BED82
jmp loc_BEE4F
loc_BED82:
cmp [rsp+0B8h+var_70], 0
jz short loc_BEDC6
mov rdi, [rsp+0B8h+var_28]
lea rsi, [rsp+0B8h+var_A8]
call js_free_desc
mov eax, [rsp+0B8h+var_A8]
and eax, 1
cmp eax, 0
jnz short loc_BEDBA
cmp [rsp+0B8h+var_3C], 0
jz short loc_BEDC4
mov eax, [rsp+0B8h+var_A8]
and eax, 2
cmp eax, 0
jz short loc_BEDC4
loc_BEDBA:
mov [rsp+0B8h+var_70], 0
jmp short loc_BEE1E
loc_BEDC4:
jmp short $+2
loc_BEDC6:
jmp short $+2
loc_BEDC8:
mov eax, [rsp+0B8h+var_68]
add eax, 1
mov [rsp+0B8h+var_68], eax
jmp loc_BED38
loc_BEDD8:
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_50]
mov rdx, [rsp+0B8h+var_48]
call JS_IsExtensible
mov [rsp+0B8h+var_70], eax
cmp [rsp+0B8h+var_70], 0
jge short loc_BEE13
mov dword ptr [rsp+0B8h+var_10], 0
mov [rsp+0B8h+var_8], 6
jmp short loc_BEE7C
loc_BEE13:
mov eax, [rsp+0B8h+var_70]
xor eax, 1
mov [rsp+0B8h+var_70], eax
loc_BEE1E:
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_60]
mov edx, [rsp+0B8h+var_64]
call js_free_prop_enum
mov edi, [rsp+0B8h+var_70]
call js_bool
mov [rsp+0B8h+var_10], rax
mov [rsp+0B8h+var_8], rdx
jmp short loc_BEE7C
loc_BEE4F:
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_60]
mov edx, [rsp+0B8h+var_64]
call js_free_prop_enum
mov dword ptr [rsp+0B8h+var_10], 0
mov [rsp+0B8h+var_8], 6
loc_BEE7C:
mov rax, [rsp+0B8h+var_10]
mov rdx, [rsp+0B8h+var_8]
add rsp, 0B8h
retn
|
long long js_object_isSealed(long long a1, long long a2, long long a3, int a4, long long *a5, int a6)
{
long long v6; // rdx
long long v8[7]; // [rsp+10h] [rbp-A8h] BYREF
int IsExtensible; // [rsp+48h] [rbp-70h]
int v10; // [rsp+4Ch] [rbp-6Ch]
unsigned int i; // [rsp+50h] [rbp-68h]
unsigned int v12; // [rsp+54h] [rbp-64h] BYREF
long long v13; // [rsp+58h] [rbp-60h] BYREF
long long v14; // [rsp+60h] [rbp-58h]
long long v15; // [rsp+68h] [rbp-50h]
long long v16; // [rsp+70h] [rbp-48h]
int v17; // [rsp+7Ch] [rbp-3Ch]
long long *v18; // [rsp+80h] [rbp-38h]
int v19; // [rsp+8Ch] [rbp-2Ch]
long long v20; // [rsp+90h] [rbp-28h]
long long v21; // [rsp+98h] [rbp-20h]
long long v22; // [rsp+A0h] [rbp-18h]
long long v23; // [rsp+A8h] [rbp-10h]
long long v24; // [rsp+B0h] [rbp-8h]
v21 = a2;
v22 = a3;
v20 = a1;
v19 = a4;
v18 = a5;
v17 = a6;
v15 = *a5;
v16 = a5[1];
if ( JS_IsObject(v15, v16) )
{
v14 = v15;
v10 = 3;
if ( (unsigned int)JS_GetOwnPropertyNamesInternal(v20, &v13, &v12, v15, 3) )
{
LODWORD(v23) = 0;
v24 = 6LL;
}
else
{
for ( i = 0; ; ++i )
{
if ( i >= v12 )
{
IsExtensible = JS_IsExtensible(v20, v15, v16);
if ( IsExtensible < 0 )
{
LODWORD(v23) = 0;
v24 = 6LL;
return v23;
}
IsExtensible ^= 1u;
goto LABEL_17;
}
IsExtensible = JS_GetOwnPropertyInternal(v20, (long long)v8, v14, *(_DWORD *)(v13 + 8LL * i + 4));
if ( IsExtensible < 0 )
break;
if ( IsExtensible )
{
js_free_desc(v20, v8);
if ( (v8[0] & 1) != 0 || v17 && (v8[0] & 2) != 0 )
{
IsExtensible = 0;
LABEL_17:
js_free_prop_enum(v20, v13, v12);
v23 = js_bool(IsExtensible);
v24 = v6;
return v23;
}
}
}
js_free_prop_enum(v20, v13, v12);
LODWORD(v23) = 0;
v24 = 6LL;
}
}
else
{
LODWORD(v23) = 1;
v24 = 1LL;
}
return v23;
}
|
js_object_isSealed:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV qword ptr [RSP + 0x90],RDI
MOV dword ptr [RSP + 0x8c],ECX
MOV qword ptr [RSP + 0x80],R8
MOV dword ptr [RSP + 0x7c],R9D
MOV RAX,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x68],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x00129cb0
CMP EAX,0x0
JNZ 0x001becdc
MOV dword ptr [RSP + 0xa8],0x1
MOV qword ptr [RSP + 0xb0],0x1
JMP 0x001bee7c
LAB_001becdc:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x60],RAX
MOV dword ptr [RSP + 0x4c],0x3
MOV RDI,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x60]
MOV R8D,dword ptr [RSP + 0x4c]
LEA RSI,[RSP + 0x58]
LEA RDX,[RSP + 0x54]
CALL 0x0012e320
CMP EAX,0x0
JZ 0x001bed30
MOV dword ptr [RSP + 0xa8],0x0
MOV qword ptr [RSP + 0xb0],0x6
JMP 0x001bee7c
LAB_001bed30:
MOV dword ptr [RSP + 0x50],0x0
LAB_001bed38:
MOV EAX,dword ptr [RSP + 0x50]
CMP EAX,dword ptr [RSP + 0x54]
JNC 0x001bedd8
MOV RAX,qword ptr [RSP + 0x58]
MOV ECX,dword ptr [RSP + 0x50]
MOV EAX,dword ptr [RAX + RCX*0x8 + 0x4]
MOV dword ptr [RSP + 0xc],EAX
MOV RDI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x60]
MOV ECX,dword ptr [RSP + 0xc]
LEA RSI,[RSP + 0x10]
CALL 0x0012ef00
MOV dword ptr [RSP + 0x48],EAX
CMP dword ptr [RSP + 0x48],0x0
JGE 0x001bed82
JMP 0x001bee4f
LAB_001bed82:
CMP dword ptr [RSP + 0x48],0x0
JZ 0x001bedc6
MOV RDI,qword ptr [RSP + 0x90]
LEA RSI,[RSP + 0x10]
CALL 0x0015f740
MOV EAX,dword ptr [RSP + 0x10]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x001bedba
CMP dword ptr [RSP + 0x7c],0x0
JZ 0x001bedc4
MOV EAX,dword ptr [RSP + 0x10]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001bedc4
LAB_001bedba:
MOV dword ptr [RSP + 0x48],0x0
JMP 0x001bee1e
LAB_001bedc4:
JMP 0x001bedc6
LAB_001bedc6:
JMP 0x001bedc8
LAB_001bedc8:
MOV EAX,dword ptr [RSP + 0x50]
ADD EAX,0x1
MOV dword ptr [RSP + 0x50],EAX
JMP 0x001bed38
LAB_001bedd8:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x0012f7e0
MOV dword ptr [RSP + 0x48],EAX
CMP dword ptr [RSP + 0x48],0x0
JGE 0x001bee13
MOV dword ptr [RSP + 0xa8],0x0
MOV qword ptr [RSP + 0xb0],0x6
JMP 0x001bee7c
LAB_001bee13:
MOV EAX,dword ptr [RSP + 0x48]
XOR EAX,0x1
MOV dword ptr [RSP + 0x48],EAX
LAB_001bee1e:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x58]
MOV EDX,dword ptr [RSP + 0x54]
CALL 0x0012f780
MOV EDI,dword ptr [RSP + 0x48]
CALL 0x00155f90
MOV qword ptr [RSP + 0xa8],RAX
MOV qword ptr [RSP + 0xb0],RDX
JMP 0x001bee7c
LAB_001bee4f:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x58]
MOV EDX,dword ptr [RSP + 0x54]
CALL 0x0012f780
MOV dword ptr [RSP + 0xa8],0x0
MOV qword ptr [RSP + 0xb0],0x6
LAB_001bee7c:
MOV RAX,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0xb0]
ADD RSP,0xb8
RET
|
int1 [16]
js_object_isSealed(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5,int param_6)
{
int iVar1;
int1 auVar2 [16];
uint local_a8 [14];
uint local_70;
int4 local_6c;
uint local_68;
uint local_64;
long local_60;
int8 local_58;
int8 local_50;
int8 local_48;
int local_3c;
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_50 = *param_5;
local_48 = param_5[1];
local_3c = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar1 = JS_IsObject(local_50,local_48);
if (iVar1 == 0) {
local_10 = 1;
local_8 = 1;
}
else {
local_58 = local_50;
local_6c = 3;
iVar1 = JS_GetOwnPropertyNamesInternal(local_28,&local_60,&local_64,local_50,3);
if (iVar1 == 0) {
for (local_68 = 0; local_68 < local_64; local_68 = local_68 + 1) {
local_70 = JS_GetOwnPropertyInternal
(local_28,local_a8,local_58,
*(int4 *)(local_60 + 4 + (ulong)local_68 * 8));
if ((int)local_70 < 0) {
js_free_prop_enum(local_28,local_60,local_64);
local_10 = 0;
local_8 = 6;
goto LAB_001bee7c;
}
if ((local_70 != 0) &&
((js_free_desc(local_28,local_a8), (local_a8[0] & 1) != 0 ||
((local_3c != 0 && ((local_a8[0] & 2) != 0)))))) {
local_70 = 0;
goto LAB_001bee1e;
}
}
local_70 = JS_IsExtensible(local_28,local_50,local_48);
if ((int)local_70 < 0) {
local_10 = 0;
local_8 = 6;
}
else {
local_70 = local_70 ^ 1;
LAB_001bee1e:
js_free_prop_enum(local_28,local_60,local_64);
auVar2 = js_bool(local_70);
local_8 = auVar2._8_8_;
local_10 = auVar2._0_4_;
uStack_c = auVar2._4_4_;
}
}
else {
local_10 = 0;
local_8 = 6;
}
}
LAB_001bee7c:
auVar2._4_4_ = uStack_c;
auVar2._0_4_ = local_10;
auVar2._8_8_ = local_8;
return auVar2;
}
|
|
11,597 |
js_object_isSealed
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_object_isSealed(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_frozen)
{
JSValue obj = argv[0];
JSObject *p;
JSPropertyEnum *props;
uint32_t len, i;
int flags, res;
if (!JS_IsObject(obj))
return JS_TRUE;
p = JS_VALUE_GET_OBJ(obj);
flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK;
if (JS_GetOwnPropertyNamesInternal(ctx, &props, &len, p, flags))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
JSPropertyDescriptor desc;
JSAtom prop = props[i].atom;
res = JS_GetOwnPropertyInternal(ctx, &desc, p, prop);
if (res < 0)
goto exception;
if (res) {
js_free_desc(ctx, &desc);
if ((desc.flags & JS_PROP_CONFIGURABLE)
|| (is_frozen && (desc.flags & JS_PROP_WRITABLE))) {
res = FALSE;
goto done;
}
}
}
res = JS_IsExtensible(ctx, obj);
if (res < 0)
return JS_EXCEPTION;
res ^= 1;
done:
js_free_prop_enum(ctx, props, len);
return js_bool(res);
exception:
js_free_prop_enum(ctx, props, len);
return JS_EXCEPTION;
}
|
O1
|
c
|
js_object_isSealed:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movsd (%r8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x8(%r8), %rbx
movl $0x1, %edx
cmpl $-0x1, %ebx
jne 0x7004b
movl %r9d, %ebp
movq %rdi, %r14
movq 0x20(%rsp), %r13
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq %r13, %rcx
movl $0x3, %r8d
callq 0x229a9
testl %eax, %eax
je 0x7005f
xorl %eax, %eax
movl $0x6, %edx
jmp 0x70050
movl $0x1, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, 0x10(%rsp)
movq %rbx, 0x28(%rsp)
movl 0x14(%rsp), %eax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x700e4
movq 0x18(%rsp), %rbp
xorl %r15d, %r15d
movl 0x4(%rbp,%r15,8), %ecx
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movq %r13, %rdx
callq 0x22fc5
movl %eax, %ebx
testl %eax, %eax
js 0x700ce
je 0x700ca
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3ccaf
movl 0x30(%rsp), %ecx
movl $0x6, %eax
xorl %r12d, %r12d
testb $0x1, %cl
jne 0x700d6
cmpl $0x0, 0x10(%rsp)
setne %dl
andl $0x2, %ecx
shrl %ecx
testb %cl, %dl
jne 0x700d6
xorl %eax, %eax
jmp 0x700d3
movl $0x5, %eax
movl %ebx, %r12d
testl %eax, %eax
jne 0x70107
incq %r15
cmpq %r15, 0x8(%rsp)
jne 0x7007e
movq 0x20(%rsp), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
callq 0xf672
testl %eax, %eax
js 0x70042
movl %eax, %r12d
xorl $0x1, %r12d
jmp 0x70111
cmpl $0x5, %eax
je 0x70135
cmpl $0x6, %eax
jne 0x7014a
movq 0x18(%rsp), %rsi
movq %r14, %rdi
movq 0x8(%rsp), %rdx
callq 0x23265
xorl %eax, %eax
testl %r12d, %r12d
setne %al
movl $0x1, %edx
jmp 0x70050
movq %r14, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rdx
callq 0x23265
jmp 0x70042
xorl %eax, %eax
jmp 0x70050
|
js_object_isSealed:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
movsd xmm0, qword ptr [r8]
movsd [rsp+98h+var_78], xmm0
mov rbx, [r8+8]
mov edx, 1
cmp ebx, 0FFFFFFFFh
jnz short loc_7004B
mov ebp, r9d
mov r14, rdi
mov r13, [rsp+98h+var_78]
lea rsi, [rsp+98h+var_80]
lea rdx, [rsp+98h+var_84]
mov rcx, r13
mov r8d, 3
call JS_GetOwnPropertyNamesInternal
test eax, eax
jz short loc_7005F
loc_70042:
xor eax, eax
mov edx, 6
jmp short loc_70050
loc_7004B:
mov eax, 1
loc_70050:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7005F:
mov [rsp+98h+var_88], ebp
mov [rsp+98h+var_70], rbx
mov eax, [rsp+98h+var_84]
mov [rsp+98h+var_90], rax
test rax, rax
jz short loc_700E4
mov rbp, [rsp+98h+var_80]
xor r15d, r15d
loc_7007E:
mov ecx, [rbp+r15*8+4]
mov rdi, r14
lea rsi, [rsp+98h+var_68]
mov rdx, r13
call JS_GetOwnPropertyInternal
mov ebx, eax
test eax, eax
js short loc_700CE
jz short loc_700CA
mov rdi, r14
lea rsi, [rsp+98h+var_68]
call js_free_desc
mov ecx, [rsp+98h+var_68]
mov eax, 6
xor r12d, r12d
test cl, 1
jnz short loc_700D6
cmp [rsp+98h+var_88], 0
setnz dl
and ecx, 2
shr ecx, 1
test dl, cl
jnz short loc_700D6
loc_700CA:
xor eax, eax
jmp short loc_700D3
loc_700CE:
mov eax, 5
loc_700D3:
mov r12d, ebx
loc_700D6:
test eax, eax
jnz short loc_70107
inc r15
cmp [rsp+98h+var_90], r15
jnz short loc_7007E
loc_700E4:
mov rsi, [rsp+98h+var_78]
mov rdi, r14
mov rdx, [rsp+98h+var_70]
call JS_IsExtensible
test eax, eax
js loc_70042
mov r12d, eax
xor r12d, 1
jmp short loc_70111
loc_70107:
cmp eax, 5
jz short loc_70135
cmp eax, 6
jnz short loc_7014A
loc_70111:
mov rsi, [rsp+98h+var_80]
mov rdi, r14
mov rdx, [rsp+98h+var_90]
call js_free_prop_enum
xor eax, eax
test r12d, r12d
setnz al
mov edx, 1
jmp loc_70050
loc_70135:
mov rdi, r14
mov rsi, rbp
mov rdx, [rsp+98h+var_90]
call js_free_prop_enum
jmp loc_70042
loc_7014A:
xor eax, eax
jmp loc_70050
|
_BOOL8 js_object_isSealed(long long a1, long long a2, long long a3, long long a4, long long *a5, int a6)
{
long long v6; // rbx
long long v8; // r13
long long v10; // rbp
long long v11; // r15
int OwnPropertyInternal; // eax
int v13; // ebx
int v14; // eax
int v15; // r12d
int IsExtensible; // eax
long long v17; // [rsp+8h] [rbp-90h]
int v18; // [rsp+10h] [rbp-88h]
unsigned int v19; // [rsp+14h] [rbp-84h] BYREF
long long v20; // [rsp+18h] [rbp-80h] BYREF
long long v21; // [rsp+20h] [rbp-78h]
long long v22; // [rsp+28h] [rbp-70h]
_BYTE v23[104]; // [rsp+30h] [rbp-68h] BYREF
v21 = *a5;
v6 = a5[1];
if ( (_DWORD)v6 != -1 )
return 1LL;
v8 = v21;
if ( (unsigned int)JS_GetOwnPropertyNamesInternal(a1, &v20, &v19, v21, 3) )
return 0LL;
v18 = a6;
v22 = v6;
v17 = v19;
if ( !v19 )
{
LABEL_16:
IsExtensible = JS_IsExtensible(a1, v21, v22);
if ( IsExtensible >= 0 )
{
v15 = IsExtensible ^ 1;
goto LABEL_19;
}
return 0LL;
}
v10 = v20;
v11 = 0LL;
while ( 1 )
{
OwnPropertyInternal = JS_GetOwnPropertyInternal(a1, (long long)v23, v8, *(_DWORD *)(v10 + 8 * v11 + 4));
v13 = OwnPropertyInternal;
if ( OwnPropertyInternal < 0 )
{
v14 = 5;
goto LABEL_13;
}
if ( !OwnPropertyInternal
|| (js_free_desc(a1, (long long)v23), v14 = 6, v15 = 0, (v23[0] & 1) == 0)
&& (((unsigned __int8)(v23[0] & 2) >> 1) & (v18 != 0)) == 0 )
{
v14 = 0;
LABEL_13:
v15 = v13;
}
if ( v14 )
break;
if ( v17 == ++v11 )
goto LABEL_16;
}
if ( v14 == 5 )
{
js_free_prop_enum(a1, v10, v17);
return 0LL;
}
LABEL_19:
js_free_prop_enum(a1, v20, v17);
return v15 != 0;
}
|
js_object_isSealed:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOVSD XMM0,qword ptr [R8]
MOVSD qword ptr [RSP + 0x20],XMM0
MOV RBX,qword ptr [R8 + 0x8]
MOV EDX,0x1
CMP EBX,-0x1
JNZ 0x0017004b
MOV EBP,R9D
MOV R14,RDI
MOV R13,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0x14]
MOV RCX,R13
MOV R8D,0x3
CALL 0x001229a9
TEST EAX,EAX
JZ 0x0017005f
LAB_00170042:
XOR EAX,EAX
MOV EDX,0x6
JMP 0x00170050
LAB_0017004b:
MOV EAX,0x1
LAB_00170050:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017005f:
MOV dword ptr [RSP + 0x10],EBP
MOV qword ptr [RSP + 0x28],RBX
MOV EAX,dword ptr [RSP + 0x14]
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x001700e4
MOV RBP,qword ptr [RSP + 0x18]
XOR R15D,R15D
LAB_0017007e:
MOV ECX,dword ptr [RBP + R15*0x8 + 0x4]
MOV RDI,R14
LEA RSI,[RSP + 0x30]
MOV RDX,R13
CALL 0x00122fc5
MOV EBX,EAX
TEST EAX,EAX
JS 0x001700ce
JZ 0x001700ca
MOV RDI,R14
LEA RSI,[RSP + 0x30]
CALL 0x0013ccaf
MOV ECX,dword ptr [RSP + 0x30]
MOV EAX,0x6
XOR R12D,R12D
TEST CL,0x1
JNZ 0x001700d6
CMP dword ptr [RSP + 0x10],0x0
SETNZ DL
AND ECX,0x2
SHR ECX,0x1
TEST DL,CL
JNZ 0x001700d6
LAB_001700ca:
XOR EAX,EAX
JMP 0x001700d3
LAB_001700ce:
MOV EAX,0x5
LAB_001700d3:
MOV R12D,EBX
LAB_001700d6:
TEST EAX,EAX
JNZ 0x00170107
INC R15
CMP qword ptr [RSP + 0x8],R15
JNZ 0x0017007e
LAB_001700e4:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,R14
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x0010f672
TEST EAX,EAX
JS 0x00170042
MOV R12D,EAX
XOR R12D,0x1
JMP 0x00170111
LAB_00170107:
CMP EAX,0x5
JZ 0x00170135
CMP EAX,0x6
JNZ 0x0017014a
LAB_00170111:
MOV RSI,qword ptr [RSP + 0x18]
MOV RDI,R14
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00123265
XOR EAX,EAX
TEST R12D,R12D
SETNZ AL
MOV EDX,0x1
JMP 0x00170050
LAB_00170135:
MOV RDI,R14
MOV RSI,RBP
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00123265
JMP 0x00170042
LAB_0017014a:
XOR EAX,EAX
JMP 0x00170050
|
bool js_object_isSealed(int8 param_1)
{
int8 uVar1;
int8 uVar2;
long lVar3;
bool bVar4;
int iVar5;
uint uVar6;
uint uVar7;
ulong uVar8;
int8 *in_R8;
int in_R9D;
ulong uVar9;
uint local_84;
long local_80;
int8 local_78;
int8 local_70;
uint local_68 [14];
uVar1 = *in_R8;
uVar2 = in_R8[1];
if ((int)uVar2 == -1) {
local_78 = uVar1;
iVar5 = JS_GetOwnPropertyNamesInternal(param_1,&local_80,&local_84,uVar1,3);
lVar3 = local_80;
if (iVar5 == 0) {
uVar8 = (ulong)local_84;
local_70 = uVar2;
if (uVar8 != 0) {
uVar9 = 0;
do {
uVar6 = JS_GetOwnPropertyInternal
(param_1,local_68,uVar1,*(int4 *)(lVar3 + 4 + uVar9 * 8));
if ((int)uVar6 < 0) {
iVar5 = 5;
uVar7 = uVar6;
}
else {
if (uVar6 != 0) {
js_free_desc(param_1,local_68);
iVar5 = 6;
uVar7 = 0;
if (((local_68[0] & 1) != 0) || ((in_R9D != 0 & (byte)((local_68[0] & 2) >> 1)) != 0))
goto LAB_001700d6;
}
iVar5 = 0;
uVar7 = uVar6;
}
LAB_001700d6:
if (iVar5 != 0) {
if (iVar5 != 5) {
if (iVar5 != 6) {
return false;
}
goto LAB_00170111;
}
js_free_prop_enum(param_1,lVar3,uVar8);
goto LAB_00170042;
}
uVar9 = uVar9 + 1;
} while (uVar8 != uVar9);
}
uVar7 = JS_IsExtensible(param_1,local_78,local_70);
if (-1 < (int)uVar7) {
uVar7 = uVar7 ^ 1;
LAB_00170111:
js_free_prop_enum(param_1,local_80,uVar8);
return uVar7 != 0;
}
}
LAB_00170042:
bVar4 = false;
}
else {
bVar4 = true;
}
return bVar4;
}
|
|
11,598 |
js_object_isSealed
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_object_isSealed(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_frozen)
{
JSValue obj = argv[0];
JSObject *p;
JSPropertyEnum *props;
uint32_t len, i;
int flags, res;
if (!JS_IsObject(obj))
return JS_TRUE;
p = JS_VALUE_GET_OBJ(obj);
flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK;
if (JS_GetOwnPropertyNamesInternal(ctx, &props, &len, p, flags))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
JSPropertyDescriptor desc;
JSAtom prop = props[i].atom;
res = JS_GetOwnPropertyInternal(ctx, &desc, p, prop);
if (res < 0)
goto exception;
if (res) {
js_free_desc(ctx, &desc);
if ((desc.flags & JS_PROP_CONFIGURABLE)
|| (is_frozen && (desc.flags & JS_PROP_WRITABLE))) {
res = FALSE;
goto done;
}
}
}
res = JS_IsExtensible(ctx, obj);
if (res < 0)
return JS_EXCEPTION;
res ^= 1;
done:
js_free_prop_enum(ctx, props, len);
return js_bool(res);
exception:
js_free_prop_enum(ctx, props, len);
return JS_EXCEPTION;
}
|
O2
|
c
|
js_object_isSealed:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, 0x8(%rsp)
movq 0x8(%r8), %rbx
pushq $0x1
popq %rdx
cmpl $-0x1, %ebx
jne 0x5e2c0
movq %rdi, %r14
movq (%r8), %r13
leaq 0x18(%rsp), %rsi
leaq 0xc(%rsp), %rdx
pushq $0x3
popq %r8
movq %r13, %rcx
callq 0x1ca73
pushq $0x6
popq %rdx
testl %eax, %eax
je 0x5e2c8
xorl %ebx, %ebx
jmp 0x5e36a
movq %rdx, %rbx
jmp 0x5e36a
movq %rbx, 0x10(%rsp)
movl 0xc(%rsp), %r15d
movq 0x18(%rsp), %r12
xorl %ebp, %ebp
leaq 0x20(%rsp), %rbx
cmpq %rbp, %r15
je 0x5e329
movl 0x4(%r12,%rbp,8), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1d004
testl %eax, %eax
js 0x5e357
je 0x5e320
movq %r14, %rdi
movq %rbx, %rsi
callq 0x35571
movl 0x20(%rsp), %eax
testb $0x1, %al
jne 0x5e325
cmpl $0x0, 0x8(%rsp)
sete %cl
testb $0x2, %al
sete %al
orb %cl, %al
je 0x5e325
incq %rbp
jmp 0x5e2de
xorl %ebx, %ebx
jmp 0x5e345
movq %r14, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
callq 0x1d28e
testl %eax, %eax
js 0x5e365
xorl %ebx, %ebx
cmpl $0x1, %eax
setne %bl
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x1d247
pushq $0x1
jmp 0x5e369
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x1d247
xorl %ebx, %ebx
pushq $0x6
popq %rdx
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_object_isSealed:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rsp+88h+var_80], r9d
mov rbx, [r8+8]
push 1
pop rdx
cmp ebx, 0FFFFFFFFh
jnz short loc_5E2C0
mov r14, rdi
mov r13, [r8]
lea rsi, [rsp+88h+var_70]
lea rdx, [rsp+88h+var_7C]
push 3
pop r8
mov rcx, r13
call JS_GetOwnPropertyNamesInternal
push 6
pop rdx
test eax, eax
jz short loc_5E2C8
xor ebx, ebx
jmp loc_5E36A
loc_5E2C0:
mov rbx, rdx
jmp loc_5E36A
loc_5E2C8:
mov [rsp+88h+var_78], rbx
mov r15d, [rsp+88h+var_7C]
mov r12, [rsp+88h+var_70]
xor ebp, ebp
lea rbx, [rsp+88h+var_68]
loc_5E2DE:
cmp r15, rbp
jz short loc_5E329
mov ecx, [r12+rbp*8+4]
mov rdi, r14
mov rsi, rbx
mov rdx, r13
call JS_GetOwnPropertyInternal
test eax, eax
js short loc_5E357
jz short loc_5E320
mov rdi, r14
mov rsi, rbx
call js_free_desc
mov eax, [rsp+88h+var_68]
test al, 1
jnz short loc_5E325
cmp [rsp+88h+var_80], 0
setz cl
test al, 2
setz al
or al, cl
jz short loc_5E325
loc_5E320:
inc rbp
jmp short loc_5E2DE
loc_5E325:
xor ebx, ebx
jmp short loc_5E345
loc_5E329:
mov rdi, r14
mov rsi, r13
mov rdx, [rsp+88h+var_78]
call JS_IsExtensible
test eax, eax
js short loc_5E365
xor ebx, ebx
cmp eax, 1
setnz bl
loc_5E345:
mov rdi, r14
mov rsi, r12
mov edx, r15d
call js_free_prop_enum
push 1
jmp short loc_5E369
loc_5E357:
mov rdi, r14
mov rsi, r12
mov edx, r15d
call js_free_prop_enum
loc_5E365:
xor ebx, ebx
push 6
loc_5E369:
pop rdx
loc_5E36A:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long js_object_isSealed(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long *a13,
int a14)
{
long long v14; // rbx
long long v15; // r13
unsigned int *v16; // r8
double v17; // xmm4_8
double v18; // xmm5_8
_BOOL8 v19; // rbx
long long v20; // r15
long long v21; // r12
long long i; // rbp
int v23; // eax
int IsExtensible; // eax
unsigned int v27; // [rsp+Ch] [rbp-7Ch] BYREF
long long v28; // [rsp+10h] [rbp-78h]
long long v29; // [rsp+18h] [rbp-70h] BYREF
long long v30[13]; // [rsp+20h] [rbp-68h] BYREF
v14 = a13[1];
if ( (_DWORD)v14 != -1 )
return 1LL;
v15 = *a13;
if ( (unsigned int)JS_GetOwnPropertyNamesInternal(a1, &v29, (int *)&v27, *a13, 3) )
return 0LL;
v28 = v14;
v20 = v27;
v21 = v29;
for ( i = 0LL; v20 != i; ++i )
{
LOBYTE(v23) = JS_GetOwnPropertyInternal(a1, (long long)v30, v15, *(_DWORD *)(v21 + 8 * i + 4), v16);
if ( v23 < 0 )
{
js_free_prop_enum(a1, v21, v20);
return 0LL;
}
if ( v23 )
{
js_free_desc(a1, v30);
if ( (v30[0] & 1) != 0 || a14 != 0 && (v30[0] & 2) != 0 )
{
v19 = 0LL;
LABEL_15:
js_free_prop_enum(a1, v21, v20);
return v19;
}
}
}
IsExtensible = JS_IsExtensible(a1, v15, v28, a2, a3, a4, a5, v17, v18, a8, a9);
if ( IsExtensible >= 0 )
{
v19 = IsExtensible != 1;
goto LABEL_15;
}
return 0LL;
}
|
js_object_isSealed:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV dword ptr [RSP + 0x8],R9D
MOV RBX,qword ptr [R8 + 0x8]
PUSH 0x1
POP RDX
CMP EBX,-0x1
JNZ 0x0015e2c0
MOV R14,RDI
MOV R13,qword ptr [R8]
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0xc]
PUSH 0x3
POP R8
MOV RCX,R13
CALL 0x0011ca73
PUSH 0x6
POP RDX
TEST EAX,EAX
JZ 0x0015e2c8
XOR EBX,EBX
JMP 0x0015e36a
LAB_0015e2c0:
MOV RBX,RDX
JMP 0x0015e36a
LAB_0015e2c8:
MOV qword ptr [RSP + 0x10],RBX
MOV R15D,dword ptr [RSP + 0xc]
MOV R12,qword ptr [RSP + 0x18]
XOR EBP,EBP
LEA RBX,[RSP + 0x20]
LAB_0015e2de:
CMP R15,RBP
JZ 0x0015e329
MOV ECX,dword ptr [R12 + RBP*0x8 + 0x4]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R13
CALL 0x0011d004
TEST EAX,EAX
JS 0x0015e357
JZ 0x0015e320
MOV RDI,R14
MOV RSI,RBX
CALL 0x00135571
MOV EAX,dword ptr [RSP + 0x20]
TEST AL,0x1
JNZ 0x0015e325
CMP dword ptr [RSP + 0x8],0x0
SETZ CL
TEST AL,0x2
SETZ AL
OR AL,CL
JZ 0x0015e325
LAB_0015e320:
INC RBP
JMP 0x0015e2de
LAB_0015e325:
XOR EBX,EBX
JMP 0x0015e345
LAB_0015e329:
MOV RDI,R14
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0011d28e
TEST EAX,EAX
JS 0x0015e365
XOR EBX,EBX
CMP EAX,0x1
SETNZ BL
LAB_0015e345:
MOV RDI,R14
MOV RSI,R12
MOV EDX,R15D
CALL 0x0011d247
PUSH 0x1
JMP 0x0015e369
LAB_0015e357:
MOV RDI,R14
MOV RSI,R12
MOV EDX,R15D
CALL 0x0011d247
LAB_0015e365:
XOR EBX,EBX
PUSH 0x6
LAB_0015e369:
POP RDX
LAB_0015e36a:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] js_object_isSealed(int8 param_1)
{
int8 uVar1;
int8 uVar2;
int iVar3;
ulong uVar4;
int8 *in_R8;
int in_R9D;
ulong uVar5;
int1 auVar6 [16];
ulong uStack_90;
uint local_7c;
int8 local_78;
long local_70;
uint local_68 [14];
uVar1 = in_R8[1];
uStack_90 = 1;
uVar4 = uStack_90;
if ((int)uVar1 == -1) {
uVar2 = *in_R8;
iVar3 = JS_GetOwnPropertyNamesInternal(param_1,&local_70,&local_7c,uVar2,3);
uStack_90 = 6;
if (iVar3 == 0) {
uVar5 = (ulong)local_7c;
local_78 = uVar1;
for (uVar4 = 0; uVar5 != uVar4; uVar4 = uVar4 + 1) {
iVar3 = JS_GetOwnPropertyInternal
(param_1,local_68,uVar2,*(int4 *)(local_70 + 4 + uVar4 * 8));
if (iVar3 < 0) {
js_free_prop_enum(param_1,local_70,uVar5);
goto LAB_0015e365;
}
if ((iVar3 != 0) &&
((js_free_desc(param_1,local_68), (local_68[0] & 1) != 0 ||
((local_68[0] & 2) != 0 && in_R9D != 0)))) {
uVar4 = 0;
goto LAB_0015e345;
}
}
iVar3 = JS_IsExtensible(param_1,uVar2,local_78);
if (iVar3 < 0) {
LAB_0015e365:
uVar4 = 0;
uStack_90 = 6;
}
else {
uVar4 = (ulong)(iVar3 != 1);
LAB_0015e345:
js_free_prop_enum(param_1,local_70,uVar5);
uStack_90 = 1;
}
}
else {
uVar4 = 0;
}
}
auVar6._8_8_ = uStack_90;
auVar6._0_8_ = uVar4;
return auVar6;
}
|
|
11,599 |
js_object_isSealed
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_object_isSealed(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_frozen)
{
JSValue obj = argv[0];
JSObject *p;
JSPropertyEnum *props;
uint32_t len, i;
int flags, res;
if (!JS_IsObject(obj))
return JS_TRUE;
p = JS_VALUE_GET_OBJ(obj);
flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK;
if (JS_GetOwnPropertyNamesInternal(ctx, &props, &len, p, flags))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
JSPropertyDescriptor desc;
JSAtom prop = props[i].atom;
res = JS_GetOwnPropertyInternal(ctx, &desc, p, prop);
if (res < 0)
goto exception;
if (res) {
js_free_desc(ctx, &desc);
if ((desc.flags & JS_PROP_CONFIGURABLE)
|| (is_frozen && (desc.flags & JS_PROP_WRITABLE))) {
res = FALSE;
goto done;
}
}
}
res = JS_IsExtensible(ctx, obj);
if (res < 0)
return JS_EXCEPTION;
res ^= 1;
done:
js_free_prop_enum(ctx, props, len);
return js_bool(res);
exception:
js_free_prop_enum(ctx, props, len);
return JS_EXCEPTION;
}
|
O3
|
c
|
js_object_isSealed:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq 0x8(%r8), %r12
movl $0x1, %edx
cmpl $-0x1, %r12d
jne 0x72491
movl %r9d, %ebp
movq %rdi, %r14
movq (%r8), %r13
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq %r13, %rcx
movl $0x3, %r8d
callq 0x2319a
testl %eax, %eax
je 0x7249b
xorl %ebx, %ebx
movl $0x6, %edx
jmp 0x7252e
movl $0x1, %ebx
jmp 0x7252e
movl 0x14(%rsp), %eax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x724f8
movq 0x18(%rsp), %r15
xorl %ebx, %ebx
movl 0x4(%r15,%rbx,8), %ecx
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
movq %r13, %rdx
callq 0x237bd
testl %eax, %eax
js 0x72540
je 0x724ee
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x3e21f
movl 0x20(%rsp), %eax
testb $0x1, %al
jne 0x72517
testl %ebp, %ebp
sete %cl
testb $0x2, %al
sete %al
orb %cl, %al
je 0x72517
incq %rbx
cmpq %rbx, 0x8(%rsp)
jne 0x724b0
cmpw $0x30, 0x6(%r13)
je 0x72555
movzbl 0x5(%r13), %eax
andl $0x1, %eax
xorl %ebx, %ebx
cmpl $0x1, %eax
setne %bl
movq 0x18(%rsp), %r15
jmp 0x72519
xorl %ebx, %ebx
movq %r14, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x23a1b
movl $0x1, %edx
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x23a1b
jmp 0x72485
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0xf6c1
testl %eax, %eax
jns 0x72508
jmp 0x72485
|
js_object_isSealed:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r12, [r8+8]
mov edx, 1
cmp r12d, 0FFFFFFFFh
jnz short loc_72491
mov ebp, r9d
mov r14, rdi
mov r13, [r8]
lea rsi, [rsp+88h+var_70]
lea rdx, [rsp+88h+var_74]
mov rcx, r13
mov r8d, 3
call JS_GetOwnPropertyNamesInternal
test eax, eax
jz short loc_7249B
loc_72485:
xor ebx, ebx
mov edx, 6
jmp loc_7252E
loc_72491:
mov ebx, 1
jmp loc_7252E
loc_7249B:
mov eax, [rsp+88h+var_74]
mov [rsp+88h+var_80], rax
test rax, rax
jz short loc_724F8
mov r15, [rsp+88h+var_70]
xor ebx, ebx
loc_724B0:
mov ecx, [r15+rbx*8+4]
mov rdi, r14
lea rsi, [rsp+88h+var_68]
mov rdx, r13
call JS_GetOwnPropertyInternal
test eax, eax
js short loc_72540
jz short loc_724EE
mov rdi, r14
lea rsi, [rsp+88h+var_68]
call js_free_desc
mov eax, [rsp+88h+var_68]
test al, 1
jnz short loc_72517
test ebp, ebp
setz cl
test al, 2
setz al
or al, cl
jz short loc_72517
loc_724EE:
inc rbx
cmp [rsp+88h+var_80], rbx
jnz short loc_724B0
loc_724F8:
cmp word ptr [r13+6], 30h ; '0'
jz short loc_72555
movzx eax, byte ptr [r13+5]
and eax, 1
loc_72508:
xor ebx, ebx
cmp eax, 1
setnz bl
mov r15, [rsp+88h+var_70]
jmp short loc_72519
loc_72517:
xor ebx, ebx
loc_72519:
mov rdi, r14
mov rsi, r15
mov rdx, [rsp+88h+var_80]
call js_free_prop_enum
mov edx, 1
loc_7252E:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_72540:
mov rdi, r14
mov rsi, r15
mov rdx, [rsp+88h+var_80]
call js_free_prop_enum
jmp loc_72485
loc_72555:
mov rdi, r14
mov rsi, r13
mov rdx, r12
call js_proxy_isExtensible
test eax, eax
jns short loc_72508
jmp loc_72485
|
long long js_object_isSealed(long long a1, long long a2, long long a3, long long a4, long long *a5, int a6)
{
long long v6; // r12
long long v8; // r13
_BOOL8 v9; // rbx
long long v10; // r15
long long v11; // rbx
int v12; // eax
long long v13; // rdx
long long v14; // rcx
long long v15; // r8
long long v16; // r9
int isExtensible; // eax
long long v19; // [rsp+8h] [rbp-80h]
unsigned int v20; // [rsp+14h] [rbp-74h] BYREF
long long v21; // [rsp+18h] [rbp-70h] BYREF
_QWORD v22[13]; // [rsp+20h] [rbp-68h] BYREF
v6 = a5[1];
if ( (_DWORD)v6 != -1 )
return 1LL;
v8 = *a5;
if ( (unsigned int)JS_GetOwnPropertyNamesInternal(a1, &v21, &v20, *a5, 3) )
return 0LL;
v19 = v20;
if ( v20 )
{
v10 = v21;
v11 = 0LL;
while ( 1 )
{
LOBYTE(v12) = JS_GetOwnPropertyInternal(a1, (long long)v22, v8, *(_DWORD *)(v10 + 8 * v11 + 4));
if ( v12 < 0 )
break;
if ( v12 )
{
js_free_desc(a1, v22, v13, v14, v15, v16);
if ( (v22[0] & 1) != 0 || a6 != 0 && (v22[0] & 2) != 0 )
{
v9 = 0LL;
goto LABEL_16;
}
}
if ( v19 == ++v11 )
goto LABEL_12;
}
js_free_prop_enum(a1, v10, v19);
return 0LL;
}
LABEL_12:
if ( *(_WORD *)(v8 + 6) == 48 )
{
isExtensible = js_proxy_isExtensible(a1, v8, v6);
if ( isExtensible < 0 )
return 0LL;
}
else
{
isExtensible = *(_BYTE *)(v8 + 5) & 1;
}
v9 = isExtensible != 1;
v10 = v21;
LABEL_16:
js_free_prop_enum(a1, v10, v19);
return v9;
}
|
js_object_isSealed:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R12,qword ptr [R8 + 0x8]
MOV EDX,0x1
CMP R12D,-0x1
JNZ 0x00172491
MOV EBP,R9D
MOV R14,RDI
MOV R13,qword ptr [R8]
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0x14]
MOV RCX,R13
MOV R8D,0x3
CALL 0x0012319a
TEST EAX,EAX
JZ 0x0017249b
LAB_00172485:
XOR EBX,EBX
MOV EDX,0x6
JMP 0x0017252e
LAB_00172491:
MOV EBX,0x1
JMP 0x0017252e
LAB_0017249b:
MOV EAX,dword ptr [RSP + 0x14]
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x001724f8
MOV R15,qword ptr [RSP + 0x18]
XOR EBX,EBX
LAB_001724b0:
MOV ECX,dword ptr [R15 + RBX*0x8 + 0x4]
MOV RDI,R14
LEA RSI,[RSP + 0x20]
MOV RDX,R13
CALL 0x001237bd
TEST EAX,EAX
JS 0x00172540
JZ 0x001724ee
MOV RDI,R14
LEA RSI,[RSP + 0x20]
CALL 0x0013e21f
MOV EAX,dword ptr [RSP + 0x20]
TEST AL,0x1
JNZ 0x00172517
TEST EBP,EBP
SETZ CL
TEST AL,0x2
SETZ AL
OR AL,CL
JZ 0x00172517
LAB_001724ee:
INC RBX
CMP qword ptr [RSP + 0x8],RBX
JNZ 0x001724b0
LAB_001724f8:
CMP word ptr [R13 + 0x6],0x30
JZ 0x00172555
MOVZX EAX,byte ptr [R13 + 0x5]
AND EAX,0x1
LAB_00172508:
XOR EBX,EBX
CMP EAX,0x1
SETNZ BL
MOV R15,qword ptr [RSP + 0x18]
JMP 0x00172519
LAB_00172517:
XOR EBX,EBX
LAB_00172519:
MOV RDI,R14
MOV RSI,R15
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00123a1b
MOV EDX,0x1
LAB_0017252e:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00172540:
MOV RDI,R14
MOV RSI,R15
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00123a1b
JMP 0x00172485
LAB_00172555:
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
CALL 0x0010f6c1
TEST EAX,EAX
JNS 0x00172508
JMP 0x00172485
|
bool js_object_isSealed(int8 param_1)
{
long lVar1;
long lVar2;
int iVar3;
uint uVar4;
ulong uVar5;
ulong uVar6;
long *in_R8;
int in_R9D;
long lVar7;
bool bVar8;
uint local_74;
long local_70;
uint local_68 [14];
lVar1 = in_R8[1];
if ((int)lVar1 != -1) {
return true;
}
lVar2 = *in_R8;
iVar3 = JS_GetOwnPropertyNamesInternal(param_1,&local_70,&local_74,lVar2,3);
lVar7 = local_70;
if (iVar3 == 0) {
uVar5 = (ulong)local_74;
if (uVar5 != 0) {
uVar6 = 0;
do {
iVar3 = JS_GetOwnPropertyInternal
(param_1,local_68,lVar2,*(int4 *)(lVar7 + 4 + uVar6 * 8));
if (iVar3 < 0) {
js_free_prop_enum(param_1,lVar7,uVar5);
goto LAB_00172485;
}
if ((iVar3 != 0) &&
((js_free_desc(param_1,local_68), (local_68[0] & 1) != 0 ||
((local_68[0] & 2) != 0 && in_R9D != 0)))) {
bVar8 = false;
goto LAB_00172519;
}
uVar6 = uVar6 + 1;
} while (uVar5 != uVar6);
}
if (*(short *)(lVar2 + 6) == 0x30) {
uVar4 = js_proxy_isExtensible(param_1,lVar2,lVar1);
if ((int)uVar4 < 0) goto LAB_00172485;
}
else {
uVar4 = *(byte *)(lVar2 + 5) & 1;
}
bVar8 = uVar4 != 1;
lVar7 = local_70;
LAB_00172519:
js_free_prop_enum(param_1,lVar7,uVar5);
}
else {
LAB_00172485:
bVar8 = false;
}
return bVar8;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.